diff --git a/package-lock.json b/package-lock.json index cce2b9f1..dc765b04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "kredits-web", - "version": "1.7.0", + "version": "1.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b01601b0..81398fd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kredits-web", - "version": "1.7.0", + "version": "1.8.0", "private": true, "description": "Contribution dashboard of the Kosmos project", "repository": "https://github.com/67P/kredits-web", diff --git a/release/assets/kredits-web-351b8d4d70a0d451dde0a8f89f828d07.css b/release/assets/kredits-web-351b8d4d70a0d451dde0a8f89f828d07.css new file mode 100644 index 00000000..95a73999 --- /dev/null +++ b/release/assets/kredits-web-351b8d4d70a0d451dde0a8f89f828d07.css @@ -0,0 +1 @@ +@charset "UTF-8";body,button,h1,h2,h3,h4,h5,input{font-family:"Open Sans",sans-serif;font-weight:300}a,section h2{color:#68d7fb}*{margin:0;padding:0;box-sizing:border-box;font-size:14px}:active,:focus,:hover{outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);-webkit-tap-highlight-color:transparent}main{padding:1rem 2rem}@media (max-width:600px){main{padding:1rem}}main#dashboard{width:100%;display:grid;grid-row-gap:2rem;grid-template-areas:"stats" "contributions"}main.center-column{display:flex;flex-direction:column;align-items:center}main.center-column section{width:600px;max-width:100%}main.center-column section header{text-align:center}main section .content a{font-size:inherit}main section .content.text-lg p{font-size:1.2rem;margin-bottom:1em;line-height:1.5em}main section .content.text-center{text-align:center}main section .content p.mg-bottom-md{margin-bottom:2rem}main section .content p.actions{text-align:center;padding-top:2rem}@media (min-width:550px){main#dashboard{grid-column-gap:4rem;grid-row-gap:2rem;grid-template-columns:2fr 4fr;grid-template-areas:"stats contributions"}main#dashboard.with-details{grid-column-gap:3rem;grid-template-columns:2fr 4fr 2fr;grid-template-areas:"stats contributions details"}}main section{margin-bottom:5rem}main section:first-of-type{margin-top:2rem}main section header{margin-bottom:3rem}main section header.with-nav{display:grid;grid-template-columns:auto 5rem;grid-template-areas:"title" "actions"}main section header h2{display:inline-block}main section header nav{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}@media (max-width:600px){main section{margin-bottom:5rem}main section header{margin-bottom:2rem}}body{background-image:linear-gradient(to bottom,rgba(22,21,40,.4),rgba(0,0,0,.75)),url(/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);background-repeat:none;background-attachment:fixed;color:#fff}@media screen and (min-width:900px){body{background-size:cover}}button,h1,h2,h3,h4,h5,input{font-size:1rem}section h2{font-size:1.4rem}section#people .content p.stats{margin-bottom:1rem;font-size:1rem;color:#fff;text-align:center}section#people .content p.stats span.number{font-weight:600}.button,button,input[type=submit],table.contributor-list tr.current-user,ul.contribution-list li .amount,ul.contribution-list li .recipient,ul.proposal-list li .amount,ul.proposal-list li .recipient,ul.proposal-list li .symbol{font-weight:500}section#contributions-by-type .chart{width:50%;margin-left:auto;margin-right:auto}section#proposals-closed .actions,section#proposals-open .actions{padding-top:3rem;font-size:1rem;color:#68d7fb;text-align:center}@media (max-width:600px){section#contributions-by-type .chart{width:75%}section#proposals-closed .actions,section#proposals-open .actions{padding-top:2rem}main section#contributions-confirmed,main section#contributions-unconfirmed{margin-top:0}}section#proposals-closed .actions a,section#proposals-open .actions a{color:#68d7fb}@media (min-width:550px){section h2{font-size:2rem}}.button,button,input[type=submit]{display:inline-block;padding:.6rem 2rem;background-color:rgba(22,21,40,.6);border:1px solid #161528;border-radius:3px;color:#68d7fb;text-decoration:none;text-transform:uppercase;cursor:pointer;letter-spacing:.1em}.button+.button,.button+button,.button+input[type=submit],button+.button,button+button,button+input[type=submit],input[type=submit]+.button,input[type=submit]+button,input[type=submit]+input[type=submit]{margin-left:.5rem}.button:hover,button:hover,input[type=submit]:hover{background-color:rgba(22,21,40,.8)}.button.active,.button:active,button.active,button:active,input[type=submit].active,input[type=submit]:active{border-color:#68d7fb}.button[disabled],button[disabled],input[type=submit][disabled]{color:rgba(255,255,255,.5)}.button.small,button.small,input[type=submit].small{font-size:.8rem;padding:.2rem .8rem}.button.danger,button.danger,input[type=submit].danger{color:#fb6868;background-color:rgba(40,21,21,.6);border-color:#281515}.button.danger:hover,button.danger:hover,input[type=submit].danger:hover{background-color:rgba(40,21,21,.8)}.button.danger.active,.button.danger:active,button.danger.active,button.danger:active,input[type=submit].danger.active,input[type=submit].danger:active{border-color:#fb6868}.button.green,button.green,input[type=submit].green{color:#97fb68;background-color:rgba(21,40,21,.6);border-color:#152815}.button.green:hover,button.green:hover,input[type=submit].green:hover{background-color:rgba(21,40,21,.8)}.button.green.active,.button.green:active,button.green.active,button.green:active,input[type=submit].green.active,input[type=submit].green:active{border-color:#97fb68}.button.icon svg,button.icon svg,input[type=submit].icon svg{width:2rem;height:2rem;vertical-align:middle;margin-right:1rem}.button.icon svg .fg,button.icon svg .fg,input[type=submit].icon svg .fg{fill:#68d7fb}section#add-contribution form p,section#add-contributor form p,section#add-proposal form p,section#signup form p{margin-bottom:1.5rem}section#add-contribution form p.mg-bottom-md,section#add-contributor form p.mg-bottom-md,section#add-proposal form p.mg-bottom-md,section#signup form p.mg-bottom-md{margin-bottom:2rem}section#add-contribution form p.label,section#add-contributor form p.label,section#add-proposal form p.label,section#signup form p.label{margin-bottom:.5rem}section#add-contribution form p.actions,section#add-contributor form p.actions,section#add-proposal form p.actions,section#signup form p.actions{padding-top:1.5rem;text-align:center}section#add-contribution form p.actions a,section#add-contributor form p.actions a,section#add-proposal form p.actions a,section#signup form p.actions a{color:#68d7fb;margin-left:1rem}section#add-contribution form label,section#add-contributor form label,section#add-proposal form label,section#signup form label{display:block;margin-bottom:.5rem;opacity:.7}section#add-contribution form input[type=text],section#add-contribution form select,section#add-contributor form input[type=text],section#add-contributor form select,section#add-proposal form input[type=text],section#add-proposal form select,section#signup form input[type=text],section#signup form select{width:100%;padding:1rem;border:none;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(22,21,40,.3);color:#fff;font-size:1.2rem;transition:border-color .1s linear}section#add-contribution form input[type=text].valid,section#add-contribution form input[type=text]:focus,section#add-contribution form select.valid,section#add-contribution form select:focus,section#add-contributor form input[type=text].valid,section#add-contributor form input[type=text]:focus,section#add-contributor form select.valid,section#add-contributor form select:focus,section#add-proposal form input[type=text].valid,section#add-proposal form input[type=text]:focus,section#add-proposal form select.valid,section#add-proposal form select:focus,section#signup form input[type=text].valid,section#signup form input[type=text]:focus,section#signup form select.valid,section#signup form select:focus{background-color:rgba(22,21,40,.6)}section#add-contribution form input[type=text]:focus,section#add-contribution form select:focus,section#add-contributor form input[type=text]:focus,section#add-contributor form select:focus,section#add-proposal form input[type=text]:focus,section#add-proposal form select:focus,section#signup form input[type=text]:focus,section#signup form select:focus{border-color:#68d7fb}section#contribution-details .content,table.contributor-list tr:first-of-type,ul.contribution-list li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}section#add-contribution form input[type=text]::placeholder,section#add-contribution form select::placeholder,section#add-contributor form input[type=text]::placeholder,section#add-contributor form select::placeholder,section#add-proposal form input[type=text]::placeholder,section#add-proposal form select::placeholder,section#signup form input[type=text]::placeholder,section#signup form select::placeholder{color:rgba(238,238,238,.5)}section#add-contribution form select,section#add-contributor form select,section#add-proposal form select,section#signup form select{-moz-appearance:none;-webkit-appearance:none;appearance:none;border-radius:0;background-color:rgba(22,21,40,.6);background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 1.5rem) calc(1rem + .5rem),calc(100% - 1rem) calc(1rem + .5rem);background-size:.5rem .5rem,.5rem .5rem;background-repeat:no-repeat}section#add-contribution form select:invalid,section#add-contributor form select:invalid,section#add-proposal form select:invalid,section#signup form select:invalid{color:rgba(238,238,238,.5)}section#add-contribution form input[type=submit],section#add-contributor form input[type=submit],section#add-proposal form input[type=submit],section#signup form input[type=submit]{padding:.6rem 2rem}section#add-contribution form input[type=submit]:disabled,section#add-contributor form input[type=submit]:disabled,section#add-proposal form input[type=submit]:disabled,section#signup form input[type=submit]:disabled{background-color:transparent}section#add-contribution form input[type=checkbox],section#add-contributor form input[type=checkbox],section#add-proposal form input[type=checkbox],section#signup form input[type=checkbox]{display:none}section#add-contribution form label.checkbox,section#add-contributor form label.checkbox,section#add-proposal form label.checkbox,section#signup form label.checkbox{line-height:3.2rem;font-size:1.2rem}section#add-contribution form label.checkbox::before,section#add-contributor form label.checkbox::before,section#add-proposal form label.checkbox::before,section#signup form label.checkbox::before{display:inline-block;margin-right:.8rem;height:3.2rem;width:3.2rem;font-size:2rem;background-color:rgba(22,21,40,.3);border-bottom:1px solid rgba(255,255,255,.2);text-align:center;vertical-align:middle;content:'✓';color:rgba(255,255,255,.2)}section#add-contribution form input[type=checkbox]:checked+label.checkbox::before,section#add-contributor form input[type=checkbox]:checked+label.checkbox::before,section#add-proposal form input[type=checkbox]:checked+label.checkbox::before,section#signup form input[type=checkbox]:checked+label.checkbox::before{background-color:rgba(22,21,40,.6);color:#fff}.quick-filter{font-size:1.2rem;margin-bottom:2rem}.quick-filter label,.quick-filter p{font-size:inherit}.quick-filter p{padding:.2rem 0 0}.quick-filter label+label{margin-left:3.6rem}ul.contribution-list{clear:both;width:100%;list-style:none}ul.contribution-list li{display:grid;grid-template-columns:auto 5rem 5rem;grid-row-gap:.5rem;padding:.8rem 1.2rem;background-color:rgba(255,255,255,.1);font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.2);cursor:pointer}.external-accounts a,section#contributor-profile .content ul.external-accounts li{display:inline-block}ul.contribution-list li.confirmed,ul.contribution-list li.vetoed{grid-template-columns:auto 5rem}ul.contribution-list li.vetoed{text-decoration:line-through;opacity:.6}ul.contribution-list li.selected{background-color:rgba(255,255,255,.2)}section#contribution-details .content,table.contributor-list tr{background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2)}ul.contribution-list li p{align-self:center;margin:0;font-size:inherit;line-height:2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.contribution-list li p.kredits-amount,ul.contribution-list li p.voting{text-align:right}ul.contribution-list li span{font-size:inherit}ul.contribution-list li span.title a{font-size:inherit;text-decoration:none;color:#fff}ul.contribution-list li span.title a:active,ul.contribution-list li span.title a:hover{color:#68d7fb}ul.contribution-list li .description{line-height:1.4em;font-size:1rem}ul.contribution-list li .category{color:#68d7fb;padding-right:.2rem}ul.contribution-list li .category.community{color:#fb6868}ul.contribution-list li .category.dev{color:#e068fb}ul.contribution-list li .category.design{color:#fbe468}ul.contribution-list li .category.docs{color:#97fb68}ul.contribution-list li .category.ops{color:#8f68fb}ul.contribution-list li .symbol{font-size:.8rem;padding-left:.2rem}ul.contribution-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}section#contribution-details header nav .amount{font-size:1.5rem}section#contribution-details header nav .symbol{padding-left:.2rem}section#contribution-details .content{width:100%;margin:0 0 1.5rem;padding:2rem}section#contribution-details .content h3{font-size:1.5rem;margin-bottom:2rem}section#contribution-details .content p{margin-bottom:2rem}section#contribution-details .content p span{font-size:inherit}section#contribution-details .content p.who-what-when{font-size:1.2rem;margin-bottom:1.2rem}section#contribution-details .content p:last-of-type{margin-bottom:0}section#contribution-details .content a{color:#68d7fb;text-decoration:none;font-size:inherit}section#contribution-details .content a:hover{text-decoration:underline}section#contribution-details .actions{text-align:center}table.contributor-list{width:100%;border-collapse:collapse;margin-bottom:1.5rem}table.contributor-list tr{cursor:pointer}table.contributor-list tr.selected{background-color:rgba(255,255,255,.2)}table.contributor-list tr td{padding:0 1.2rem;line-height:3.6rem}table.contributor-list tr td.person{text-align:left;font-size:1.2rem}table.contributor-list tr td.person img.avatar{margin-right:.2rem}table.contributor-list tr td.kredits{text-align:right}table.contributor-list tr td.kredits .amount{font-size:1.2rem;font-weight:500}table.contributor-list tr td.kredits .symbol{font-size:.8rem;padding-left:.2rem}section#contributor-profile{text-align:center}section#contributor-profile header{z-index:2;width:100%;text-align:center}section#contributor-profile header img{margin:0 auto;border:3px solid rgba(255,255,255,.2)}section#contributor-profile .content,ul.proposal-list li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}section#contributor-profile .content{z-index:1;width:100%;margin:-7.2rem 0 1.5rem;padding:6rem 1.2rem 2rem;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(255,255,255,.1)}section#contributor-profile .content h2{text-align:center;margin-bottom:.6rem}section#contributor-profile .content p.role{margin-bottom:2rem}section#contributor-profile .content ul.external-accounts{list-style:none}section#contributor-profile .content ul.external-accounts li+li{margin-left:.6rem}section#contributor-profile .actions .button{margin-bottom:.6rem}.external-accounts a{width:4rem;height:4rem;padding:.8rem;background-color:rgba(0,0,0,.3);color:#fff;border-radius:2rem}.external-accounts a span.site{display:none}.external-accounts a svg{display:block;position:relative;width:100%;height:100%}.external-accounts a svg .fg{fill:#fff}.external-accounts a:active,.external-accounts a:hover{background-color:rgba(0,0,0,.5)}.external-accounts a:active svg .fg,.external-accounts a:hover svg .fg{fill:#68d7fb}@keyframes pulse{from{opacity:.1}to{opacity:.6}}.loading-spinner{margin-top:12rem;text-align:center;font-size:1.4rem;color:#68d7fb}@media (max-width:600px){.loading-spinner{margin-top:6rem}}.loading-spinner svg{width:200px;height:200px;margin-bottom:2rem}.loading-spinner svg #path-comet{fill:#68d7fb;opacity:.1;animation-name:pulse;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-direction:alternate;animation-duration:1s}ul.proposal-list{clear:both;width:100%;list-style:none}ul.proposal-list li{display:grid;grid-template-columns:auto 5rem;grid-row-gap:.5rem;padding:1rem 1.2rem;background-color:rgba(255,255,255,.1);font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.2)}ul.proposal-list li p{align-self:center;margin:0;font-size:inherit;line-height:2rem}ul.proposal-list li p.kredits-amount,ul.proposal-list li p.voting{text-align:right}ul.proposal-list li p.description,ul.proposal-list li p.voting{grid-column-start:span 2}ul.proposal-list li span{font-size:inherit}ul.proposal-list li .description{line-height:1.4em;font-size:1rem}ul.proposal-list li .category{color:#68d7fb;padding-right:.2rem}ul.proposal-list li .category.community{color:#fb6868}ul.proposal-list li .category.dev{color:#e068fb}ul.proposal-list li .category.design{color:#fbe468}ul.proposal-list li .category.docs{color:#97fb68}ul.proposal-list li .category.ops{color:#8f68fb}ul.proposal-list li .symbol{font-size:1rem;padding-left:.2rem}ul.proposal-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}@media (min-width:550px){ul.proposal-list li{grid-template-columns:auto 10rem;grid-row-gap:.5rem}ul.proposal-list li p.kredits-amount,ul.proposal-list li p.voting,ul.proposal-list li.unconfirmed p.kredits-amount,ul.proposal-list li.unconfirmed p.voting{text-align:right}ul.proposal-list li.unconfirmed p.description,ul.proposal-list li.unconfirmed p.voting{grid-column-start:span 1}ul.proposal-list li .description{font-size:inherit}}#topbar{padding:0 1rem;height:3rem;line-height:3rem;background-color:rgba(0,0,0,.3)}@media (min-width:961px){#topbar{padding:0 2rem;height:4rem;line-height:4rem}}#topbar h1{display:inline-block;text-transform:uppercase}#topbar h1 a{color:inherit;text-decoration:none}#topbar section#user-account{display:inline-block;float:right}header#topbar section#user-account button{margin-left:1.2rem}img.avatar{width:2rem;height:2rem;vertical-align:middle;margin-right:.2rem;border-radius:1rem}img.avatar.medium{margin:0;width:10rem;height:10rem;border-radius:5rem}img.avatar.large{margin:0;width:256px;height:256px;border-radius:128px} \ No newline at end of file diff --git a/release/assets/kredits-web-abcf1575c8eb056a923a583efdc2d00f.js b/release/assets/kredits-web-4a6676cd8de19316b4c92d18e734356d.js similarity index 82% rename from release/assets/kredits-web-abcf1575c8eb056a923a583efdc2d00f.js rename to release/assets/kredits-web-4a6676cd8de19316b4c92d18e734356d.js index 51a72615..26136ca4 100644 --- a/release/assets/kredits-web-abcf1575c8eb056a923a583efdc2d00f.js +++ b/release/assets/kredits-web-4a6676cd8de19316b4c92d18e734356d.js @@ -3,17 +3,17 @@ define("kredits-web/app",["exports","kredits-web/resolver","ember-load-initializ var o=Ember.Application.extend({modulePrefix:r.default.modulePrefix,podModulePrefix:r.default.podModulePrefix,Resolver:t.default});(0,n.default)(o,r.default.modulePrefix) var i=o e.default=i}),define("kredits-web/components/add-contribution/component",["exports","moment"],function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0 -try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var r=Ember.Component.extend({attributes:null,contributors:Object.freeze([]),isValidContributor:Ember.computed.notEmpty("contributorId"),isValidKind:Ember.computed.notEmpty("kind"),isValidAmount:Ember.computed("amount",function(){return parseInt(this.amount,10)>0}),isValidDescription:Ember.computed.notEmpty("description"),isValidUrl:Ember.computed.notEmpty("url"),isValid:Ember.computed.and("isValidContributor","isValidKind","isValidAmount","isValidDescription"),init:function(){this._super.apply(this,arguments),this.set("defaultDate",(0,t.default)().startOf("hour").toDate()),this.set("attributes",{contributorId:null,kind:null,date:this.defaultDate,amount:null,description:null,url:null}),this.reset()},reset:function(){this.setProperties(this.attributes)},actions:{submit:function(){var e=this if(this.isValid){var t=this.getProperties(Object.keys(this.attributes)),r=n((t.date instanceof Array?t.date[0]:t.date).toISOString().split("T"),2),o=[r[0],r[1]] t.date=o[0],t.time=o[1],this.set("inProgress",!0),this.save(t).then(function(){e.reset()},function(e){console.warn(e),window.alert("Something went wrong. Check the browser console for details.")}).finally(function(){return e.set("inProgress",!1)})}else alert("Invalid data. Please review and try again.")}}}) e.default=r}),define("kredits-web/components/add-contribution/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"AUOL+M29",block:'{"symbols":["contributor"],"statements":[[7,"form"],[9],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"Contributor:"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"select"],[11,"required",""],[12,"onchange",[29,"action",[[24,0,[]],[29,"mut",[[25,["contributorId"]]],null]],[["value"],["target.value"]]]],[9],[0,"\\n "],[7,"option"],[11,"value",""],[11,"selected",""],[11,"disabled",""],[11,"hidden",""],[9],[10],[0,"\\n"],[4,"each",[[25,["contributors"]]],null,{"statements":[[0," "],[7,"option"],[12,"value",[24,1,["id"]]],[12,"selected",[29,"eq",[[25,["contributorId"]],[24,1,["id"]]],null]],[9],[1,[24,1,["name"]],false],[10],[0,"\\n"]],"parameters":[1]},null],[0," "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"Kind:"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"select"],[11,"required",""],[12,"onchange",[29,"action",[[24,0,[]],[29,"mut",[[25,["kind"]]],null]],[["value"],["target.value"]]]],[9],[0,"\\n "],[7,"option"],[11,"value",""],[11,"selected",""],[11,"disabled",""],[11,"hidden",""],[9],[10],[0,"\\n "],[7,"option"],[11,"value","community"],[12,"selected",[29,"eq",[[25,["kind"]],"community"],null]],[9],[0,"Community"],[10],[0,"\\n "],[7,"option"],[11,"value","design"],[12,"selected",[29,"eq",[[25,["kind"]],"design"],null]],[9],[0,"Design"],[10],[0,"\\n "],[7,"option"],[11,"value","dev"],[12,"selected",[29,"eq",[[25,["kind"]],"dev"],null]],[9],[0,"Development"],[10],[0,"\\n "],[7,"option"],[11,"value","docs"],[12,"selected",[29,"eq",[[25,["kind"]],"docs"],null]],[9],[0,"Documentation"],[10],[0,"\\n "],[7,"option"],[11,"value","ops"],[12,"selected",[29,"eq",[[25,["kind"]],"ops"],null]],[9],[0,"IT Operations"],[10],[0,"\\n "],[7,"option"],[11,"value","special"],[12,"selected",[29,"eq",[[25,["kind"]],"special"],null]],[9],[0,"Special"],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"Date:"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[1,[29,"ember-flatpickr",null,[["date","defaultDate","maxDate","enableTime","time_24hr","onChange"],[[25,["date"]],[25,["defaultDate"]],[25,["defaultDate"]],true,true,[29,"action",[[24,0,[]],[29,"mut",[[25,["date"]]],null]],null]]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"Amount:"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[1,[29,"input",null,[["type","placeholder","value","class"],["text","500",[25,["amount"]],[29,"if",[[25,["isValidAmount"]],"valid",""],null]]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"Description:"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[1,[29,"input",null,[["type","value","class"],["text",[25,["description"]],[29,"if",[[25,["isValidDescription"]],"valid",""],null]]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"label"],[9],[0,"\\n "],[7,"p"],[11,"class","label"],[9],[0,"URL (optional):"],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[1,[29,"input",null,[["type","value","class"],["text",[25,["url"]],[29,"if",[[25,["isValidUrl"]],"valid",""],null]]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n\\n "],[7,"p"],[11,"class","actions"],[9],[0,"\\n "],[1,[29,"input",null,[["type","disabled","value"],["submit",[25,["inProgress"]],[29,"if",[[25,["inProgress"]],"Processing","Save"],null]]]],false],[0,"\\n "],[10],[0,"\\n"],[3,"action",[[24,0,[]],"submit"],[["on"],["submit"]]],[10],[0,"\\n\\n"]],"hasEval":false}',meta:{moduleName:"kredits-web/components/add-contribution/template.hbs"}}) -e.default=t}),define("kredits-web/components/add-contributor/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var t=Ember.Component.extend({kredits:Ember.inject.service(),attributes:null,isValidAccount:Ember.computed.notEmpty("account"),isValidName:Ember.computed.notEmpty("name"),isValidURL:Ember.computed.notEmpty("url"),isValidGithubUID:Ember.computed.notEmpty("github_uid"),isValidGithubUsername:Ember.computed.notEmpty("github_username"),isValidGiteaUsername:Ember.computed.notEmpty("gitea_username"),isValidWikiUsername:Ember.computed.notEmpty("wiki_username"),isValid:Ember.computed.and("isValidAccount","isValidName","isValidGithubUID"),inProgress:!1,init:function(){this._super.apply(this,arguments),this.setDefaultAttributes(),this.reset()},setDefaultAttributes:function(){Ember.isPresent(this.attributes)||this.set("attributes",{account:null,name:null,kind:"person",url:null,github_username:null,github_uid:null,gitea_username:null,wiki_username:null})},reset:function(){this.setProperties(this.attributes)},actions:{submit:function(){var e=this +e.default=t}),define("kredits-web/components/add-contributor/component",["exports","web3-utils"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var n=Ember.Component.extend({kredits:Ember.inject.service(),attributes:null,isValidAccount:Ember.computed("account",function(){return(0,t.isAddress)(this.account)}),isValidName:Ember.computed.notEmpty("name"),isValidURL:Ember.computed.notEmpty("url"),isValidGithubUID:Ember.computed.notEmpty("github_uid"),isValidGithubUsername:Ember.computed.notEmpty("github_username"),isValidGiteaUsername:Ember.computed.notEmpty("gitea_username"),isValidWikiUsername:Ember.computed.notEmpty("wiki_username"),isValid:Ember.computed.and("isValidAccount","isValidName","isValidGithubUID"),inProgress:!1,init:function(){this._super.apply(this,arguments),this.setDefaultAttributes(),this.reset()},setDefaultAttributes:function(){Ember.isPresent(this.attributes)||this.set("attributes",{account:null,name:null,kind:"person",url:null,github_username:null,github_uid:null,gitea_username:null,wiki_username:null})},reset:function(){this.setProperties(this.attributes)},actions:{submit:function(){var e=this if(this.isValid){var t=Object.keys(this.attributes),n=this.getProperties(t) this.set("inProgress",!0),this.save(n).then(function(){e.reset()}).catch(function(e){console.warn(e),window.alert("Something went wrong. Please check the browser console.")}).finally(function(){e.set("inProgress",!1)})}else alert("Invalid data. Please review and try again.")}}}) -e.default=t}),define("kredits-web/components/add-contributor/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=n}),define("kredits-web/components/add-contributor/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"ew3F7Kx7",block:'{"symbols":[],"statements":[[7,"form"],[9],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-account"],[9],[0,"Ethereum account"],[10],[0,"\\n "],[1,[29,"input",null,[["name","id","type","value","placeholder","class"],["account","c-account","text",[25,["account"]],"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4",[29,"if",[[25,["isValidAccount"]],"valid",""],null]]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-kind"],[9],[0,"Kind"],[10],[0,"\\n "],[7,"select"],[11,"required",""],[12,"onchange",[29,"action",[[24,0,[]],[29,"mut",[[25,["kind"]]],null]],[["value"],["target.value"]]]],[11,"id","c-kind"],[9],[0,"\\n "],[7,"option"],[11,"value","person"],[12,"selected",[29,"eq",[[25,["kind"]],"person"],null]],[9],[0,"Person"],[10],[0,"\\n "],[7,"option"],[11,"value","organization"],[12,"selected",[29,"eq",[[25,["kind"]],"organization"],null]],[9],[0,"Organization"],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-name"],[9],[0,"Name"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["name","text",[25,["name"]],"Zero Cool",[29,"if",[[25,["isValidName"]],"valid",""],null],"c-name"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-url"],[9],[0,"URL"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["url","text",[25,["url"]],"http://zerocool.bit",[29,"if",[[25,["isValidURL"]],"valid",""],null],"c-url"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-github-uid"],[9],[0,"GitHub UID"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["github_uid","text",[25,["github_uid"]],"2342",[29,"if",[[25,["isValidGithubUID"]],"valid",""],null],"c-github-uid"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-github-username"],[9],[0,"GitHub username"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["github_username","text",[25,["github_username"]],"zerocool",[29,"if",[[25,["isValidGithubUsername"]],"valid",""],null],"c-github-username"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-gitea-username"],[9],[0,"Gitea username"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["gitea_username","text",[25,["gitea_username"]],"zerocool",[29,"if",[[25,["isValidGiteaUsername"]],"valid",""],null],"c-gitea-username"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[7,"label"],[11,"for","c-wiki-username"],[9],[0,"Wiki username"],[10],[0,"\\n "],[1,[29,"input",null,[["name","type","value","placeholder","class","id"],["wiki_username","text",[25,["wiki_username"]],"ZeroCool",[29,"if",[[25,["isValidWikiUsername"]],"valid",""],null],"c-wiki-username"]]],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[11,"class","actions"],[9],[0,"\\n "],[1,[29,"input",null,[["type","disabled","value"],["submit",[25,["inProgress"]],[29,"if",[[25,["inProgress"]],"Processing","Save"],null]]]],false],[0,"\\n "],[10],[0,"\\n"],[3,"action",[[24,0,[]],"submit"],[["on"],["submit"]]],[10],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"kredits-web/components/add-contributor/template.hbs"}}) e.default=t}),define("kredits-web/components/add-proposal/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Component.extend({attributes:null,contributors:Object.freeze([]),isValidContributor:Ember.computed.notEmpty("contributorId"),isValidAmount:Ember.computed("amount",function(){return parseInt(this.amount,10)>0}),isValidDescription:Ember.computed.notEmpty("description"),isValidUrl:Ember.computed.notEmpty("url"),isValid:Ember.computed.and("isValidContributor","isValidAmount","isValidDescription"),init:function(){this._super.apply(this,arguments),this.set("attributes",{contributorId:null,kind:"community",amount:null,description:null,url:null})},didInsertElement:function(){this._super.apply(this,arguments),this.reset()},reset:function(){this.setProperties(this.attributes)},actions:{submit:function(){var e=this @@ -67,11 +67,15 @@ e.default=t}),define("kredits-web/components/proposal-list/component",["exports" var t=Ember.Component.extend({tagName:"ul",classNames:["proposal-list"],actions:{confirm:function(e){this.contractInteractionEnabled?this.confirmProposal(e):window.alert("Only members can vote on proposals. Please ask someone to set you up.")}}}) e.default=t}),define("kredits-web/components/proposal-list/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"m53EF4sk",block:'{"symbols":["proposal"],"statements":[[4,"each",[[25,["proposals"]]],null,{"statements":[[0," "],[7,"li"],[12,"data-proposal-id",[24,1,["id"]]],[12,"class",[29,"if",[[24,1,["isExecuted"]],"confirmed","unconfirmed"],null]],[9],[0,"\\n "],[7,"p"],[11,"class","meta"],[9],[0,"\\n "],[7,"span"],[12,"class",[30,["category ",[24,1,["kind"]]]]],[9],[0,"♥ ("],[1,[24,1,["kind"]],false],[0,")"],[10],[0,"\\n "],[7,"span"],[11,"class","recipient"],[9],[1,[24,1,["contributor","name"]],false],[0,":"],[10],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[11,"class","kredits-amount"],[9],[0,"\\n "],[7,"span"],[11,"class","amount"],[9],[1,[24,1,["amount"]],false],[10],[7,"span"],[11,"class","symbol"],[9],[0,"₭S"],[10],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[11,"class","description"],[9],[0,"\\n "],[7,"span"],[11,"class","description"],[9],[1,[24,1,["description"]],false],[10],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[11,"class","voting"],[9],[0,"\\n"],[4,"unless",[[24,1,["isExecuted"]]],null,{"statements":[[0," "],[7,"span"],[11,"class","votes"],[9],[0,"("],[1,[24,1,["votesCount"]],false],[0,"/"],[1,[24,1,["votesNeeded"]],false],[0," votes)"],[10],[0,"\\n "],[7,"button"],[9],[0,"+1"],[3,"action",[[24,0,[]],"confirm",[24,1,["id"]]]],[10],[0,"\\n"]],"parameters":[]},null],[0," "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[1]},null]],"hasEval":false}',meta:{moduleName:"kredits-web/components/proposal-list/template.hbs"}}) +e.default=t}),define("kredits-web/components/topbar-account-panel/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.Component.extend({tagName:"",kredits:Ember.inject.service(),router:Ember.inject.service(),actions:{signup:function(){this.router.transitionTo("signup")}}}) +e.default=t}) +define("kredits-web/components/topbar-account-panel/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.HTMLBars.template({id:"15JWmvIR",block:'{"symbols":[],"statements":[[7,"section"],[11,"id","user-account"],[9],[0,"\\n"],[4,"if",[[29,"and",[[25,["kredits","hasAccounts"]],[25,["kredits","currentUser"]]],null]],null,{"statements":[[0," "],[1,[25,["kredits","currentUser","name"]],false],[0,"\\n"],[4,"if",[[25,["kredits","currentUserIsCore"]]],null,{"statements":[[0," "],[7,"span"],[11,"class","core-flag"],[9],[0,"(core)"],[10],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," Anonymous\\n "],[7,"button"],[11,"class","small green"],[9],[0,"Sign up"],[3,"action",[[24,0,[]],"signup"]],[10],[0,"\\n"]],"parameters":[]}],[10]],"hasEval":false}',meta:{moduleName:"kredits-web/components/topbar-account-panel/template.hbs"}}) e.default=t}),define("kredits-web/components/user-avatar/component",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t={small:"128",medium:"256",large:"512"},n=Ember.Component.extend({contributor:null,tagName:"img",classNames:["avatar"],classNameBindings:["size"],attributeBindings:["src","title"],size:"small",src:Ember.computed.alias("avatarURL"),title:Ember.computed.alias("contributor.name"),avatarURL:Ember.computed("contributor.github_uid","size",function(){var e=this.contributor.github_uid if(e)return"https://avatars2.githubusercontent.com/u/".concat(e,"?v=3&s=").concat(t[this.size])})}) -e.default=n}) -define("kredits-web/components/user-avatar/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=n}),define("kredits-web/components/user-avatar/template",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"rnnAjEgP",block:'{"symbols":[],"statements":[],"hasEval":false}',meta:{moduleName:"kredits-web/components/user-avatar/template.hbs"}}) e.default=t}),define("kredits-web/controllers/application",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Controller.extend({kredits:Ember.inject.service()}) @@ -91,33 +95,39 @@ var t=Ember.Controller.extend({roleName:Ember.computed("model.isCore","totalKred e.default=t}),define("kredits-web/controllers/proposals/new",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Controller.extend({kredits:Ember.inject.service(),contributors:Ember.computed.alias("kredits.contributors"),minedContributors:Ember.computed.filterBy("contributors","id"),actions:{save:function(e){var t=this,n=this.contributors.findBy("id",e.contributorId) return e.contributorIpfsHash=n.get("ipfsHash"),this.kredits.addProposal(e).then(function(e){return t.transitionToRoute("index"),e})}}}) -e.default=t}),define("kredits-web/helpers/and",["exports","ember-truth-helpers/helpers/and"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return t.and}})}),define("kredits-web/helpers/app-version",["exports","kredits-web/config/environment","ember-cli-app-version/utils/regexp"],function(e,t,n){function r(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.default.APP.version,i=r.versionOnly||r.hideSha,s=r.shaOnly||r.hideVersion,l=null -return i&&(r.showExtended&&(l=o.match(n.versionExtendedRegExp)),l||(l=o.match(n.versionRegExp))),s&&(l=o.match(n.shaRegExp)),l?l[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0 +e.default=t}),define("kredits-web/controllers/signup/eth-account",["exports","web3-utils","kredits-web/config/environment"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var r=Ember.Controller.extend({kredits:Ember.inject.service(),ethAddress:null,githubAccessToken:Ember.computed.alias("kredits.githubAccessToken"),isValidEthAccount:Ember.computed("ethAddress",function(){return(0,t.isAddress)(this.ethAddress)}),signupButtonDisabled:Ember.computed.not("isValidEthAccount"),actions:{completeSignup:function(){var e=this,t={accessToken:this.githubAccessToken,account:this.ethAddress} +fetch(n.default.githubSignupUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(function(e){return e.json()}).then(function(t){console.log("Created contributor:",t),e.setProperties({githubAccessToken:null,ethAddress:null}),e.transitionToRoute("signup.complete")})}}}) +e.default=r}),define("kredits-web/controllers/signup/index",["exports","kredits-web/config/environment"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var n=Ember.Controller.extend({actions:{connectGithub:function(){window.location=t.default.githubConnectUrl}}}) +e.default=n}),define("kredits-web/helpers/and",["exports","ember-truth-helpers/helpers/and"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return t.and}})}),define("kredits-web/helpers/app-version",["exports","kredits-web/config/environment","ember-cli-app-version/utils/regexp"],function(e,t,n){function r(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.default.APP.version,i=r.versionOnly||r.hideSha,s=r.shaOnly||r.hideVersion,a=null +return i&&(r.showExtended&&(a=o.match(n.versionExtendedRegExp)),a||(a=o.match(n.versionRegExp))),s&&(a=o.match(n.shaRegExp)),a?a[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0 var o=Ember.Helper.helper(r) e.default=o}),define("kredits-web/helpers/await",["exports","ember-promise-helpers/helpers/await"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/capitalize-string",["exports"],function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0 -try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Helper.extend({compute:function(e){var n=t(e,1)[0] return n.charAt(0).toUpperCase()+n.slice(1)}}) e.default=n}),define("kredits-web/helpers/contribution-status",["exports"],function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0 -try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Helper.extend({kredits:Ember.inject.service(),currentBlock:Ember.computed.alias("kredits.currentBlock"),compute:function(e){var n=t(e,1)[0] return n.vetoed?"vetoed":n.confirmedAt>this.currentBlock?"unconfirmed":"confirmed"}}) e.default=n}),define("kredits-web/helpers/eq",["exports","ember-truth-helpers/helpers/equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return t.equal}})}),define("kredits-web/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})}),define("kredits-web/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})}),define("kredits-web/helpers/is-after",["exports","ember-moment/helpers/is-after"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})}),define("kredits-web/helpers/is-before",["exports","ember-moment/helpers/is-before"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-between",["exports","ember-moment/helpers/is-between"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-confirmed-contribution",["exports"],function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0 -try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Helper.extend({kredits:Ember.inject.service(),currentBlock:Ember.computed.alias("kredits.currentBlock"),compute:function(e){var n=t(e,1)[0] return!n.vetoed&&n.confirmedAt<=this.currentBlock}}) e.default=n}),define("kredits-web/helpers/is-current-user",["exports"],function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0 -try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Helper.extend({kredits:Ember.inject.service(),currentUser:Ember.computed.alias("kredits.currentUser"),compute:function(e){var n=t(e,1)[0] return Ember.isPresent(n)&&Ember.isPresent(this.currentUser)&&n.account===this.currentUser.account}}) -e.default=n}),define("kredits-web/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})}),define("kredits-web/helpers/is-fulfilled",["exports","ember-promise-helpers/helpers/is-fulfilled"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isFulfilled",{enumerable:!0,get:function(){return t.isFulfilled}})}),define("kredits-web/helpers/is-pending",["exports","ember-promise-helpers/helpers/is-pending"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isPending",{enumerable:!0,get:function(){return t.isPending}})}),define("kredits-web/helpers/is-rejected",["exports","ember-promise-helpers/helpers/is-rejected"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isRejected",{enumerable:!0,get:function(){return t.isRejected}})}),define("kredits-web/helpers/is-same-or-after",["exports","ember-moment/helpers/is-same-or-after"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-same-or-before",["exports","ember-moment/helpers/is-same-or-before"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-same",["exports","ember-moment/helpers/is-same"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})}) -define("kredits-web/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})}),define("kredits-web/helpers/moment-add",["exports","ember-moment/helpers/moment-add"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-calendar",["exports","ember-moment/helpers/moment-calendar"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-diff",["exports","ember-moment/helpers/moment-diff"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-format",["exports","ember-moment/helpers/moment-format"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-from-now",["exports","ember-moment/helpers/moment-from-now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-from",["exports","ember-moment/helpers/moment-from"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-subtract",["exports","ember-moment/helpers/moment-subtract"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to-date",["exports","ember-moment/helpers/moment-to-date"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to-now",["exports","ember-moment/helpers/moment-to-now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to",["exports","ember-moment/helpers/moment-to"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment",["exports","ember-moment/helpers/moment"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEq",{enumerable:!0,get:function(){return t.notEq}})}),define("kredits-web/helpers/not",["exports","ember-truth-helpers/helpers/not"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})}),define("kredits-web/helpers/now",["exports","ember-moment/helpers/now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/or",["exports","ember-truth-helpers/helpers/or"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})}),define("kredits-web/helpers/promise-all",["exports","ember-promise-helpers/helpers/promise-all"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"promiseAll",{enumerable:!0,get:function(){return t.promiseAll}})}),define("kredits-web/helpers/promise-hash",["exports","ember-promise-helpers/helpers/promise-hash"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"promiseHash",{enumerable:!0,get:function(){return t.promiseHash}})}),define("kredits-web/helpers/promise-rejected-reason",["exports","ember-promise-helpers/helpers/promise-rejected-reason"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/utc",["exports","ember-moment/helpers/utc"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"utc",{enumerable:!0,get:function(){return t.utc}})}),define("kredits-web/helpers/xor",["exports","ember-truth-helpers/helpers/xor"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"xor",{enumerable:!0,get:function(){return t.xor}})}),define("kredits-web/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","kredits-web/config/environment"],function(e,t,n){var r,o +e.default=n}),define("kredits-web/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})}),define("kredits-web/helpers/is-fulfilled",["exports","ember-promise-helpers/helpers/is-fulfilled"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isFulfilled",{enumerable:!0,get:function(){return t.isFulfilled}})}),define("kredits-web/helpers/is-pending",["exports","ember-promise-helpers/helpers/is-pending"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isPending",{enumerable:!0,get:function(){return t.isPending}})}),define("kredits-web/helpers/is-rejected",["exports","ember-promise-helpers/helpers/is-rejected"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isRejected",{enumerable:!0,get:function(){return t.isRejected}})}) +define("kredits-web/helpers/is-same-or-after",["exports","ember-moment/helpers/is-same-or-after"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-same-or-before",["exports","ember-moment/helpers/is-same-or-before"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/is-same",["exports","ember-moment/helpers/is-same"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})}),define("kredits-web/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})}),define("kredits-web/helpers/moment-add",["exports","ember-moment/helpers/moment-add"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-calendar",["exports","ember-moment/helpers/moment-calendar"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-diff",["exports","ember-moment/helpers/moment-diff"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-format",["exports","ember-moment/helpers/moment-format"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-from-now",["exports","ember-moment/helpers/moment-from-now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-from",["exports","ember-moment/helpers/moment-from"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-subtract",["exports","ember-moment/helpers/moment-subtract"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to-date",["exports","ember-moment/helpers/moment-to-date"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to-now",["exports","ember-moment/helpers/moment-to-now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-to",["exports","ember-moment/helpers/moment-to"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment-unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/moment",["exports","ember-moment/helpers/moment"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEq",{enumerable:!0,get:function(){return t.notEq}})}),define("kredits-web/helpers/not",["exports","ember-truth-helpers/helpers/not"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})}),define("kredits-web/helpers/now",["exports","ember-moment/helpers/now"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/or",["exports","ember-truth-helpers/helpers/or"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})}),define("kredits-web/helpers/promise-all",["exports","ember-promise-helpers/helpers/promise-all"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"promiseAll",{enumerable:!0,get:function(){return t.promiseAll}})}),define("kredits-web/helpers/promise-hash",["exports","ember-promise-helpers/helpers/promise-hash"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"promiseHash",{enumerable:!0,get:function(){return t.promiseHash}})}),define("kredits-web/helpers/promise-rejected-reason",["exports","ember-promise-helpers/helpers/promise-rejected-reason"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/helpers/utc",["exports","ember-moment/helpers/utc"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"utc",{enumerable:!0,get:function(){return t.utc}})}),define("kredits-web/helpers/xor",["exports","ember-truth-helpers/helpers/xor"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"xor",{enumerable:!0,get:function(){return t.xor}})}),define("kredits-web/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","kredits-web/config/environment"],function(e,t,n){var r,o Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.default.APP&&(r=n.default.APP.name,o=n.default.APP.version) var i={name:"App Version",initialize:(0,t.default)(r,o)} e.default=i}),define("kredits-web/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0] e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}} -e.default=n}),define("kredits-web/initializers/export-application-global",["exports","kredits-web/config/environment"],function(e,t){function n(){var e=arguments[1]||arguments[0] +e.default=n}) +define("kredits-web/initializers/export-application-global",["exports","kredits-web/config/environment"],function(e,t){function n(){var e=arguments[1]||arguments[0] if(!1!==t.default.exportApplicationGlobal){var n if("undefined"!=typeof window)n=window else if("undefined"!=typeof global)n=global @@ -131,12 +141,11 @@ e.default=n}),define("kredits-web/models/contributor",["exports","kredits-web/ut var r=Ember.Object.extend({id:(0,t.default)("idRaw","toString"),account:null,balance:(0,n.default)("balanceRaw"),totalKreditsEarned:(0,t.default)("totalKreditsEarnedRaw","toNumber"),contributionsCount:(0,t.default)("contributionsCountRaw","toNumber"),isCore:!1,ipfsHash:null,kind:null,name:null,url:null,github_username:null,github_uid:null,wiki_username:null,ipfsData:""}) e.default=r}),define("kredits-web/models/proposal",["exports","kredits-web/utils/cps/bignumber"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Object.extend({id:(0,t.default)("idRaw","toString"),creatorAccount:null,contributorId:(0,t.default)("contributorIdRaw","toString"),amount:(0,t.default)("amountRaw","toNumber"),votesCount:(0,t.default)("votesCountRaw","toNumber"),votesNeeded:(0,t.default)("votesNeededRaw","toNumber"),executed:null,ipfsHash:null,isExecuted:Ember.computed.alias("executed"),kind:null,description:null,details:null,url:null,ipfsData:"",init:function(){this._super.apply(this,arguments),this.set("details",{})}}) -e.default=n}) -define("kredits-web/resolver",["exports","ember-resolver"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=n}),define("kredits-web/resolver",["exports","ember-resolver"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=t.default e.default=n}),define("kredits-web/router",["exports","kredits-web/config/environment"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var n=Ember.Router.extend({location:t.default.locationType,rootURL:t.default.rootURL}) -n.map(function(){this.route("dashboard",function(){this.route("contributors",function(){this.route("show",{path:":id"})}),this.route("contributions",function(){this.route("show",{path:":id"})})}),this.route("proposals",function(){this.route("new")}),this.route("contributions",function(){this.route("new")}),this.route("contributors",function(){this.route("new"),this.route("edit",{path:":id/edit"})})}) +n.map(function(){this.route("dashboard",function(){this.route("contributors",function(){this.route("show",{path:":id"})}),this.route("contributions",function(){this.route("show",{path:":id"})})}),this.route("proposals",function(){this.route("new")}),this.route("contributions",function(){this.route("new")}),this.route("contributors",function(){this.route("new"),this.route("edit",{path:":id/edit"})}),this.route("signup",function(){this.route("github"),this.route("eth-account"),this.route("complete")})}) var r=n e.default=r}),define("kredits-web/routes/application",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Route.extend({kredits:Ember.inject.service(),beforeModel:function(e){var t=this.kredits @@ -150,26 +159,37 @@ e.default=t}),define("kredits-web/routes/dashboard/contributors/show",["exports" var t=Ember.Route.extend({kredits:Ember.inject.service(),contributors:Ember.computed.alias("kredits.contributors"),model:function(e){return this.contributors.findBy("id",e.id)},setupController:function(e,t){this._super(e,t),this.controllerFor("dashboard").setProperties({showDetailsPane:!0,selectedContributorId:t.id})},deactivate:function(){this.controllerFor("dashboard").setProperties({showDetailsPane:!1,selectedContributorId:null})}}) e.default=t}),define("kredits-web/routes/index",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Route.extend({redirect:function(){this.transitionTo("dashboard")}}) -e.default=t}),define("kredits-web/services/ajax",["exports","ember-ajax/services/ajax"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/services/kredits",["exports","ethers","kredits-contracts","kredits-web/utils/group-by","kredits-web/utils/format-kredits","kredits-web/config/environment","kredits-web/models/contributor","kredits-web/models/proposal","kredits-web/models/contribution"],function(e,t,n,r,o,i,s,l,a){function u(e,t,n,r,o,i,s){try{var l=e[i](s),a=l.value}catch(u){return void n(u)}l.done?t(a):Promise.resolve(a).then(r,o)}function d(e){return function(){var t=this,n=arguments +e.default=t}),define("kredits-web/routes/signup",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.Route.extend({}) +e.default=t}),define("kredits-web/routes/signup/complete",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.Route.extend({}) +e.default=t}),define("kredits-web/routes/signup/eth-account",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.Route.extend({kredits:Ember.inject.service(),redirect:function(){this._super.apply(this,arguments),Ember.isEmpty(this.kredits.githubAccessToken)&&this.transitionTo("signup.index")}}) +e.default=t}),define("kredits-web/routes/signup/github",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var t=Ember.Route.extend({kredits:Ember.inject.service(),redirect:function(){var e +this._super.apply(this,arguments) +try{e=window.location.hash.match(/access_token=(.+)/)[1]}catch(t){}if(Ember.isEmpty(e)||"undefined"===e)return console.error("No GitHub access token found."),void this.transitionTo("signup") +this.kredits.set("githubAccessToken",e),this.transitionTo("signup.eth-account")}}) +e.default=t}),define("kredits-web/services/ajax",["exports","ember-ajax/services/ajax"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("kredits-web/services/kredits",["exports","ethers","kredits-contracts","kredits-web/utils/group-by","kredits-web/utils/format-kredits","kredits-web/config/environment","kredits-web/models/contributor","kredits-web/models/proposal","kredits-web/models/contribution"],function(e,t,n,r,o,i,s,a,l){function u(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments return new Promise(function(r,o){var i=e.apply(t,n) -function s(e){u(i,r,o,s,l,"next",e)}function l(e){u(i,r,o,s,l,"throw",e)}s(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var c=Ember.Service.extend({currentBlock:null,currentUserAccounts:null,currentUser:null,contributors:null,contributions:null,proposals:null,currentUserIsContributor:Ember.computed.notEmpty("currentUser"),currentUserIsCore:Ember.computed.alias("currentUser.isCore"),hasAccounts:Ember.computed.notEmpty("currentUserAccounts"),accountNeedsUnlock:Ember.computed("currentUserAccounts",function(){return this.currentUserAccounts&&Ember.isEmpty(this.currentUserAccounts)}),contributionsUnconfirmed:Ember.computed("contributions.[]","currentBlock",function(){var e=this +function s(e){u(i,r,o,s,a,"next",e)}function a(e){u(i,r,o,s,a,"throw",e)}s(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var c=Ember.Service.extend({currentBlock:null,currentUserAccounts:null,currentUser:null,contributors:null,contributions:null,proposals:null,githubAccessToken:null,currentUserIsContributor:Ember.computed.notEmpty("currentUser"),currentUserIsCore:Ember.computed.alias("currentUser.isCore"),hasAccounts:Ember.computed.notEmpty("currentUserAccounts"),accountNeedsUnlock:Ember.computed("currentUserAccounts",function(){return this.currentUserAccounts&&Ember.isEmpty(this.currentUserAccounts)}),contributionsUnconfirmed:Ember.computed("contributions.[]","currentBlock",function(){var e=this return this.contributions.filter(function(t){return t.confirmedAt>e.currentBlock})}),contributionsConfirmed:Ember.computed("contributions.[]","currentBlock",function(){var e=this return this.contributions.filterBy("vetoed",!1).filter(function(t){return t.confirmedAt<=e.currentBlock})}),kreditsByContributor:Ember.computed("contributionsUnconfirmed.@each.vetoed","contributors.[]",function(){var e=this,t=this.contributionsUnconfirmed.filterBy("vetoed",!1),n=(0,r.default)(t,"contributorId"),o=n.map(function(e){return e.value.toString()}),i=this.contributors.reject(function(e){return o.includes(e.id)}),s=n.map(function(t){var n=t.items.mapBy("amount").reduce(function(e,t){return e+t}),r=e.contributors.findBy("id",t.value.toString()) return Ember.Object.create({contributor:r,amountUnconfirmed:n,amountConfirmed:r.totalKreditsEarned,amountTotal:r.totalKreditsEarned+n})}) return i.forEach(function(e){s.push(Ember.Object.create({contributor:e,amountUnconfirmed:0,amountConfirmed:e.totalKreditsEarned,amountTotal:e.totalKreditsEarned}))}),s}),init:function(){this._super.apply(this,arguments),this.set("contributors",[]),this.set("proposals",[]),this.set("contributions",[])},getEthProvider:function(){var e,n=this -return new Ember.RSVP.Promise(function(){var r=d(regeneratorRuntime.mark(function r(o){var s,l,a -return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=function(){return(a=d(regeneratorRuntime.mark(function n(r,i){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:console.debug("[kredits] Using user-provided instance, e.g. from Mist browser or Metamask"),(e=new t.default.providers.Web3Provider(r)).listAccounts().then(function(t){i.set("currentUserAccounts",t) +return new Ember.RSVP.Promise(function(){var r=d(regeneratorRuntime.mark(function r(o){var s,a,l +return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(l=function(){return(l=d(regeneratorRuntime.mark(function n(r,i){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:console.debug("[kredits] Using user-provided instance, e.g. from Mist browser or Metamask"),(e=new t.default.providers.Web3Provider(r)).listAccounts().then(function(t){i.set("currentUserAccounts",t) var n=0===t.length?null:e.getSigner() o({ethProvider:e,ethSigner:n})}) -case 3:case"end":return n.stop()}},n)}))).apply(this,arguments)},l=function(e,t){return a.apply(this,arguments)},s=function(){console.debug("[kredits] Creating new instance from npm module class"),console.debug("[kredits] providerURL: ".concat(i.default.web3ProviderUrl)),e=new t.default.providers.JsonRpcProvider(i.default.web3ProviderUrl),o({ethProvider:e,ethSigner:null})},!window.ethereum){r.next=15 +case 3:case"end":return n.stop()}},n)}))).apply(this,arguments)},a=function(e,t){return l.apply(this,arguments)},s=function(){console.debug("[kredits] Creating new instance from npm module class"),console.debug("[kredits] providerURL: ".concat(i.default.web3ProviderUrl)),e=new t.default.providers.JsonRpcProvider(i.default.web3ProviderUrl),o({ethProvider:e,ethSigner:null})},!window.ethereum){r.next=15 break}return r.prev=4,r.next=7,window.ethereum.enable() -case 7:l(window.ethereum,n),r.next=13 +case 7:a(window.ethereum,n),r.next=13 break case 10:r.prev=10,r.t0=r.catch(4),s() case 13:r.next=16 break -case 15:window.web3?l(window.web3.currentProvider,n):s() +case 15:window.web3?a(window.web3.currentProvider,n):s() case 16:case"end":return r.stop()}},r,null,[[4,10]])})) return function(e){return r.apply(this,arguments)}}())},setup:function(){var e=this return this.getEthProvider().then(function(t){return new n.default(t.ethProvider,t.ethSigner,{addresses:{Kernel:i.default.kreditsKernelAddress},apm:i.default.kreditsApmDomain,ipfsConfig:i.default.ipfs}).init().then(function(){var t=d(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.set("kredits",n),t.t0=e,t.next=4,n.provider.getBlockNumber() @@ -180,20 +200,20 @@ return this.getContributors().then(function(t){return e.contributors.pushObjects e.github_uid=t}return console.debug("[kredits] add contributor",e),this.kredits.Contributor.add(e,{gasLimit:35e4}).then(function(e){console.debug("[kredits] add contributor response",e)})},updateContributor:function(e,t){if(t.github_uid){var n=parseInt(t.github_uid) t.github_uid=n}return console.debug("[kredits] update contributor",t),this.kredits.Contributor.updateProfile(e,t,{gasLimit:35e4}).then(function(e){console.debug("[kredits] updateProfile response",e)})},getContributors:function(){return this.kredits.Contributor.all().then(function(e){return e.map(function(e){return s.default.create(e)})})},addContribution:function(e){var t=this return console.debug("[kredits] add contribution",e),this.kredits.Contribution.addContribution(e,{gasLimit:3e5}).then(function(n){console.debug("[kredits] add contribution response",n),e.contributor=t.contributors.findBy("id",e.contributorId) -var r=a.default.create(e) +var r=l.default.create(e) return r.set("confirmedAtBlock",n.blockNumber+40320),t.contributions.pushObject(r),r})},addProposal:function(e){var t=this -return console.debug("[kredits] add proposal",e),this.kredits.Proposal.addProposal(e).then(function(n){return console.debug("[kredits] add proposal response",n),e.contributor=t.contributors.findBy("id",e.contributorId),l.default.create(e)})},getProposals:function(){var e=this -return this.kredits.Proposal.all().then(function(t){return t.map(function(t){return t.contributor=e.contributors.findBy("id",t.contributorId.toString()),l.default.create(t)})})},getContributions:function(){var e=this -return this.kredits.Contribution.all({page:{size:200}}).then(function(t){return t.map(function(t){return t.contributor=e.contributors.findBy("id",t.contributorId.toString()),a.default.create(t)})})},vote:function(e){return console.debug("[kredits] vote for",e),this.kredits.Proposal.functions.vote(e).then(function(e){return console.debug("[kredits] vote response",e),e})},veto:function(e){return console.debug("[kredits] veto against",e),this.kredits.Contribution.functions.veto(e,{gasLimit:3e5}).then(function(e){return console.debug("[kredits] veto response",e),e})},getCurrentUser:Ember.computed("kredits.provider",function(){var e=this -return Ember.isEmpty(this.currentUserAccounts)?Ember.RSVP.resolve():this.kredits.Contributor.functions.getContributorIdByAddress(this.get("currentUserAccounts.firstObject")).then(function(t){return 0===t?Ember.RSVP.resolve():e.kredits.Contributor.getById(t)})}),findProposalById:function(e){return this.proposals.findBy("id",e.toString())},addContractEventHandlers:function(){this.kredits.Contributor.on("ContributorProfileUpdated",this.handleContributorChange.bind(this)).on("ContributorAccountUpdated",this.handleContributorChange.bind(this)).on("ContributorAdded",this.handleContributorChange.bind(this)),this.kredits.Contribution.on("ContributionVetoed",this.handleContributionVetoed.bind(this)),this.kredits.Proposal.on("ProposalCreated",this.handleProposalCreated.bind(this)).on("ProposalVoted",this.handleProposalVoted.bind(this)).on("ProposalExecuted",this.handleProposalExecuted.bind(this)),this.kredits.Token.on("Transfer",this.handleTransfer.bind(this))},handleContributorChange:function(){var e=d(regeneratorRuntime.mark(function e(t){var n,r,o,i,l,a,u=arguments +return console.debug("[kredits] add proposal",e),this.kredits.Proposal.addProposal(e).then(function(n){return console.debug("[kredits] add proposal response",n),e.contributor=t.contributors.findBy("id",e.contributorId),a.default.create(e)})},getProposals:function(){var e=this +return this.kredits.Proposal.all().then(function(t){return t.map(function(t){return t.contributor=e.contributors.findBy("id",t.contributorId.toString()),a.default.create(t)})})},getContributions:function(){var e=this +return this.kredits.Contribution.all({page:{size:200}}).then(function(t){return t.map(function(t){return t.contributor=e.contributors.findBy("id",t.contributorId.toString()),l.default.create(t)})})},vote:function(e){return console.debug("[kredits] vote for",e),this.kredits.Proposal.functions.vote(e).then(function(e){return console.debug("[kredits] vote response",e),e})},veto:function(e){return console.debug("[kredits] veto against",e),this.kredits.Contribution.functions.veto(e,{gasLimit:3e5}).then(function(e){return console.debug("[kredits] veto response",e),e})},getCurrentUser:Ember.computed("kredits.provider",function(){var e=this +return Ember.isEmpty(this.currentUserAccounts)?Ember.RSVP.resolve():this.kredits.Contributor.functions.getContributorIdByAddress(this.get("currentUserAccounts.firstObject")).then(function(t){return 0===t?Ember.RSVP.resolve():e.kredits.Contributor.getById(t)})}),findProposalById:function(e){return this.proposals.findBy("id",e.toString())},addContractEventHandlers:function(){this.kredits.Contributor.on("ContributorProfileUpdated",this.handleContributorChange.bind(this)).on("ContributorAccountUpdated",this.handleContributorChange.bind(this)).on("ContributorAdded",this.handleContributorChange.bind(this)),this.kredits.Contribution.on("ContributionVetoed",this.handleContributionVetoed.bind(this)),this.kredits.Proposal.on("ProposalCreated",this.handleProposalCreated.bind(this)).on("ProposalVoted",this.handleProposalVoted.bind(this)).on("ProposalExecuted",this.handleProposalExecuted.bind(this)),this.kredits.Token.on("Transfer",this.handleTransfer.bind(this))},handleContributorChange:function(){var e=d(regeneratorRuntime.mark(function e(t){var n,r,o,i,a,l,u=arguments return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(console.debug("[kredits] Contributor add/update event received for ID",t),n=u.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{} @@ -227,6 +256,6 @@ return r}}),define("kredits-web/utils/group-by",["exports"],function(e){Object.d r&&r.forEach(function(e){var r=Ember.get(e,t),o=n.findBy("value",r) Ember.isPresent(o)?Ember.get(o,"items").push(e):(o={property:t,value:r,items:[e]},n.push(o))}) return n}}),define("kredits-web/config/environment",[],function(){try{var e="kredits-web/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))} -return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("kredits-web/app").default.create({name:"kredits-web",version:"1.7.0+a4ca37d8"}) +return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("kredits-web/app").default.create({name:"kredits-web",version:"1.8.0+74c8e32c"}) -//# sourceMappingURL=kredits-web-d10376425f05f7b4f82219223591f0de.map \ No newline at end of file +//# sourceMappingURL=kredits-web-868d8b969971077e799f2af0a4243e4d.map \ No newline at end of file diff --git a/release/assets/kredits-web-868d8b969971077e799f2af0a4243e4d.map b/release/assets/kredits-web-868d8b969971077e799f2af0a4243e4d.map new file mode 100644 index 00000000..4ee5b795 --- /dev/null +++ b/release/assets/kredits-web-868d8b969971077e799f2af0a4243e4d.map @@ -0,0 +1 @@ +{"version":3,"sources":["vendor/ember-cli/app-prefix.js","kredits-web/app.js","kredits-web/components/add-contribution/component.js","kredits-web/components/add-contribution/template.js","kredits-web/components/add-contributor/component.js","kredits-web/components/add-contributor/template.js","kredits-web/components/add-proposal/component.js","kredits-web/components/add-proposal/template.js","kredits-web/components/chart-contributions-by-type/component.js","kredits-web/components/chart-contributions-by-type/template.js","kredits-web/components/contribution-list/component.js","kredits-web/components/contribution-list/template.js","kredits-web/components/contributor-list/component.js","kredits-web/components/contributor-list/template.js","kredits-web/components/ember-chart.js","kredits-web/components/ember-flatpickr.js","kredits-web/components/external-account-link/component.js","kredits-web/components/external-account-link/template.js","kredits-web/components/icon-account-gitea-kosmos-org/component.js","kredits-web/components/icon-account-gitea-kosmos-org/template.js","kredits-web/components/icon-account-github-com/component.js","kredits-web/components/icon-account-github-com/template.js","kredits-web/components/icon-account-wiki-kosmos-org/component.js","kredits-web/components/icon-account-wiki-kosmos-org/template.js","kredits-web/components/icon-web-globe/component.js","kredits-web/components/icon-web-globe/template.js","kredits-web/components/loading-spinner/component.js","kredits-web/components/loading-spinner/template.js","kredits-web/components/proposal-list/component.js","kredits-web/components/proposal-list/template.js","kredits-web/components/topbar-account-panel/component.js","kredits-web/components/topbar-account-panel/template.js","kredits-web/components/user-avatar/component.js","kredits-web/components/user-avatar/template.js","kredits-web/controllers/application.js","kredits-web/controllers/contributions/new.js","kredits-web/controllers/contributors/edit.js","kredits-web/controllers/contributors/new.js","kredits-web/controllers/dashboard.js","kredits-web/controllers/dashboard/contributors/show.js","kredits-web/controllers/proposals/new.js","kredits-web/controllers/signup/eth-account.js","kredits-web/controllers/signup/index.js","kredits-web/helpers/and.js","kredits-web/helpers/app-version.js","kredits-web/helpers/await.js","kredits-web/helpers/capitalize-string.js","kredits-web/helpers/contribution-status.js","kredits-web/helpers/eq.js","kredits-web/helpers/gt.js","kredits-web/helpers/gte.js","kredits-web/helpers/is-after.js","kredits-web/helpers/is-array.js","kredits-web/helpers/is-before.js","kredits-web/helpers/is-between.js","kredits-web/helpers/is-confirmed-contribution.js","kredits-web/helpers/is-current-user.js","kredits-web/helpers/is-equal.js","kredits-web/helpers/is-fulfilled.js","kredits-web/helpers/is-pending.js","kredits-web/helpers/is-rejected.js","kredits-web/helpers/is-same-or-after.js","kredits-web/helpers/is-same-or-before.js","kredits-web/helpers/is-same.js","kredits-web/helpers/lt.js","kredits-web/helpers/lte.js","kredits-web/helpers/moment-add.js","kredits-web/helpers/moment-calendar.js","kredits-web/helpers/moment-diff.js","kredits-web/helpers/moment-duration.js","kredits-web/helpers/moment-format.js","kredits-web/helpers/moment-from-now.js","kredits-web/helpers/moment-from.js","kredits-web/helpers/moment-subtract.js","kredits-web/helpers/moment-to-date.js","kredits-web/helpers/moment-to-now.js","kredits-web/helpers/moment-to.js","kredits-web/helpers/moment-unix.js","kredits-web/helpers/moment.js","kredits-web/helpers/not-eq.js","kredits-web/helpers/not.js","kredits-web/helpers/now.js","kredits-web/helpers/or.js","kredits-web/helpers/promise-all.js","kredits-web/helpers/promise-hash.js","kredits-web/helpers/promise-rejected-reason.js","kredits-web/helpers/unix.js","kredits-web/helpers/utc.js","kredits-web/helpers/xor.js","kredits-web/initializers/app-version.js","kredits-web/initializers/container-debug-adapter.js","kredits-web/initializers/export-application-global.js","kredits-web/models/contribution.js","kredits-web/models/contributor.js","kredits-web/models/proposal.js","kredits-web/resolver.js","kredits-web/router.js","kredits-web/routes/application.js","kredits-web/routes/contributors/edit.js","kredits-web/routes/dashboard/contributions/show.js","kredits-web/routes/dashboard/contributors/show.js","kredits-web/routes/index.js","kredits-web/routes/signup.js","kredits-web/routes/signup/complete.js","kredits-web/routes/signup/eth-account.js","kredits-web/routes/signup/github.js","kredits-web/services/ajax.js","kredits-web/services/kredits.js","kredits-web/services/moment.js","kredits-web/templates/application-loading.js","kredits-web/templates/application.js","kredits-web/templates/contributions/new.js","kredits-web/templates/contributors/edit.js","kredits-web/templates/contributors/new.js","kredits-web/templates/dashboard.js","kredits-web/templates/dashboard/contributions/show.js","kredits-web/templates/dashboard/contributors/show.js","kredits-web/templates/proposals/new.js","kredits-web/templates/signup.js","kredits-web/templates/signup/complete.js","kredits-web/templates/signup/eth-account.js","kredits-web/templates/signup/index.js","kredits-web/utils/cps/bignumber.js","kredits-web/utils/cps/kredits.js","kredits-web/utils/format-kredits.js","kredits-web/utils/group-by.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"names":["define","_exports","_resolver","_emberLoadInitializers","_environment","Object","defineProperty","value","default","App","Ember","Application","extend","modulePrefix","podModulePrefix","Resolver","_default","_moment","_slicedToArray","arr","i","Array","isArray","_arrayWithHoles","_arr","_n","_d","_e","undefined","_s","_i","Symbol","iterator","next","done","push","length","err","_iterableToArrayLimit","TypeError","_nonIterableRest","Component","attributes","contributors","freeze","isValidContributor","computed","notEmpty","isValidKind","isValidAmount","parseInt","this","amount","isValidDescription","isValidUrl","isValid","and","init","_super","apply","arguments","set","startOf","toDate","contributorId","kind","date","defaultDate","description","url","reset","setProperties","actions","submit","_this","getProperties","keys","_dateInput$toISOStrin2","toISOString","split","_ref","time","save","then","console","warn","window","alert","finally","HTMLBars","template","id","block","meta","moduleName","_web3Utils","kredits","inject","service","isValidAccount","isAddress","account","isValidName","isValidURL","isValidGithubUID","isValidGithubUsername","isValidGiteaUsername","isValidWikiUsername","inProgress","setDefaultAttributes","isPresent","name","github_username","github_uid","gitea_username","wiki_username","contributor","catch","didInsertElement","proposal","saved","scroll","categoryColors","contributions","chartOptions","legend","display","chartData","filterBy","map","c","reduce","kinds","datasets","data","borderColor","borderWidth","labels","router","tagName","classNames","selectedContribution","showQuickFilter","hideSmallContributions","contributionKind","contributorsSorting","sort","contributorsActive","activeIds","mapBy","toString","uniq","filter","includes","contributionKinds","contributionsFiltered","included","veto","contributionId","contractInteractionEnabled","vetoContribution","openContributionDetails","contribution","transitionTo","selectedContributorId","openContributorDetails","_emberChart","_emberFlatpickr","enumerable","get","iconComponentName","site","match","replace","confirm","proposalId","confirmProposal","signup","SIZES","small","medium","large","classNameBindings","attributeBindings","size","src","alias","title","avatarURL","concat","Controller","minedContributors","sortedContributors","findBy","contributorIpfsHash","ipfsHash","addContribution","transitionToRoute","updateContributor","model","addContributor","showDetailsPane","selectedContributionId","currentBlock","contributionsConfirmed","contributionsUnconfirmed","contributionsSorting","contributionsUnconfirmedSorted","contributionsConfirmedSorted","kreditsByContributor","kreditsToplistSorting","showUnconfirmedKredits","kreditsToplist","hideUnconfirmedKredits","not","showQuickFilterUnconfirmed","showQuickFilterConfirmed","transaction","debug","hash","vote","toggleQuickFilterUnconfirmed","toggleProperty","toggleQuickFilterConfirmed","roleName","isCore","totalKreditsEarned","addProposal","ethAddress","githubAccessToken","isValidEthAccount","signupButtonDisabled","completeSignup","payload","accessToken","fetch","githubSignupUrl","method","headers","Content-Type","body","JSON","stringify","res","json","log","connectGithub","location","githubConnectUrl","_and","_regexp","appVersion","_","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","Helper","helper","_await","compute","string","charAt","toUpperCase","slice","vetoed","confirmedAt","_equal","equal","_gt","gt","_gte","gte","_isAfter","_isArray","_isBefore","_isBetween","currentUser","_isEqual","isEqual","_isFulfilled","isFulfilled","_isPending","isPending","_isRejected","isRejected","_isSameOrAfter","_isSameOrBefore","_isSame","_lt","lt","_lte","lte","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_unix","_notEqual","notEq","_not","_now","_or","or","_promiseAll","promiseAll","_promiseHash","promiseHash","_promiseRejectedReason","_utc","utc","_xor","xor","_initializerFactory","initialize","_containerDebugAdapter","app","register","application","exportApplicationGlobal","theGlobal","global","self","globalName","String","classify","reopen","willDestroy","_bignumber","creatorAccount","details","ipfsData","iso8601Date","_kredits","balance","contributionsCount","votesCount","votesNeeded","executed","isExecuted","_emberResolver","Router","locationType","rootURL","route","path","Route","beforeModel","transition","setup","preflightChecks","error","retry","afterModel","loadInitialData","addContractEventHandlers","params","setupController","controller","controllerFor","deactivate","redirect","isEmpty","_ajax","_ethers","_kreditsContracts","_groupBy","_formatKredits","_contributor","_proposal","_contribution","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","Promise","_asyncToGenerator","fn","args","Service","currentUserAccounts","proposals","currentUserIsContributor","currentUserIsCore","hasAccounts","accountNeedsUnlock","_this2","_this3","contributionsGrouped","contributorsWithUnconfirmed","contributorsWithOnlyConfirmed","amountUnconfirmed","items","a","b","create","amountConfirmed","amountTotal","forEach","getEthProvider","ethProvider","_this4","RSVP","regeneratorRuntime","mark","_callee2","instantiateWithoutAccount","instantiateWithAccount","_instantiateWithAccount","wrap","_context2","prev","_callee","web3Provider","context","_context","providers","Web3Provider","listAccounts","accounts","ethSigner","getSigner","stop","_x2","_x3","web3ProviderUrl","JsonRpcProvider","ethereum","enable","t0","web3","currentProvider","_x","_this5","providerAndSigner","addresses","Kernel","kreditsKernelAddress","apm","kreditsApmDomain","ipfsConfig","ipfs","_ref5","_callee3","_context3","provider","getBlockNumber","t1","sent","call","getCurrentUser","contributorData","abrupt","_x4","totalSupply","Token","functions","total","Contribution","toNumber","_this6","getContributors","pushObjects","getContributions","uidInt","Contributor","add","gasLimit","updateProfile","all","_this7","blockNumber","pushObject","_this8","Proposal","getProposals","_this9","_this10","page","_this11","getContributorIdByAddress","getById","findProposalById","on","handleContributorChange","bind","handleContributionVetoed","handleProposalCreated","handleProposalVoted","handleProposalExecuted","handleTransfer","_handleContributorChange","_callee4","_len","_key","newContributor","oldContributor","_args4","_context4","removeObject","_x5","_this12","voterId","totalVotes","incrementProperty","from","to","decrementProperty","defaultFormat","dependentKey","converterMethod","utils","BigNumber","isBigNumber","bnValue","bigNumberify","options","etherValue","formatEther","decimals","collection","property","groups","A","item","group","metaName","prefix","rawConfig","document","querySelector","getAttribute","exports","parse","decodeURIComponent","Error","runningTests","require"],"mappings":"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","file":"kredits-web.js","sourcesContent":["'use strict';\n\n\n","define(\"kredits-web/app\", [\"exports\", \"kredits-web/resolver\", \"ember-load-initializers\", \"kredits-web/config/environment\"], function (_exports, _resolver, _emberLoadInitializers, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var App = Ember.Application.extend({\n modulePrefix: _environment.default.modulePrefix,\n podModulePrefix: _environment.default.podModulePrefix,\n Resolver: _resolver.default\n });\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n var _default = App;\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/component\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Component.extend({\n attributes: null,\n contributors: Object.freeze([]),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidKind: Ember.computed.notEmpty('kind'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidKind', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('defaultDate', (0, _moment.default)().startOf('hour').toDate()); // Default attributes used by reset\n\n this.set('attributes', {\n contributorId: null,\n kind: null,\n date: this.defaultDate,\n amount: null,\n description: null,\n url: null\n });\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = this.getProperties(Object.keys(this.attributes));\n var dateInput = attributes.date instanceof Array ? attributes.date[0] : attributes.date;\n\n var _dateInput$toISOStrin = dateInput.toISOString().split('T'),\n _dateInput$toISOStrin2 = _slicedToArray(_dateInput$toISOStrin, 2),\n date = _dateInput$toISOStrin2[0],\n time = _dateInput$toISOStrin2[1];\n\n var _ref = [date, time];\n attributes.date = _ref[0];\n attributes.time = _ref[1];\n this.set('inProgress', true);\n this.save(attributes).then(function ()\n /*contribution*/\n {\n _this.reset();\n }, function (err) {\n console.warn(err);\n window.alert('Something went wrong. Check the browser console for details.');\n }).finally(function () {\n return _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"AUOL+M29\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Contributor:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,1,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,1,[\\\"id\\\"]]],null]],[9],[1,[24,1,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Kind:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"community\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"community\\\"],null]],[9],[0,\\\"Community\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"design\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"design\\\"],null]],[9],[0,\\\"Design\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"dev\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"dev\\\"],null]],[9],[0,\\\"Development\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"docs\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"docs\\\"],null]],[9],[0,\\\"Documentation\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"ops\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"ops\\\"],null]],[9],[0,\\\"IT Operations\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"special\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"special\\\"],null]],[9],[0,\\\"Special\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Date:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"ember-flatpickr\\\",null,[[\\\"date\\\",\\\"defaultDate\\\",\\\"maxDate\\\",\\\"enableTime\\\",\\\"time_24hr\\\",\\\"onChange\\\"],[[25,[\\\"date\\\"]],[25,[\\\"defaultDate\\\"]],[25,[\\\"defaultDate\\\"]],true,true,[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"date\\\"]]],null]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Amount:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"500\\\",[25,[\\\"amount\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Description:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[25,[\\\"description\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"URL (optional):\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[25,[\\\"url\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[25,[\\\"inProgress\\\"]],[29,\\\"if\\\",[[25,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contribution/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/component\", [\"exports\", \"web3-utils\"], function (_exports, _web3Utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n kredits: Ember.inject.service(),\n attributes: null,\n isValidAccount: Ember.computed('account', function () {\n return (0, _web3Utils.isAddress)(this.account);\n }),\n isValidName: Ember.computed.notEmpty('name'),\n isValidURL: Ember.computed.notEmpty('url'),\n isValidGithubUID: Ember.computed.notEmpty('github_uid'),\n isValidGithubUsername: Ember.computed.notEmpty('github_username'),\n isValidGiteaUsername: Ember.computed.notEmpty('gitea_username'),\n isValidWikiUsername: Ember.computed.notEmpty('wiki_username'),\n isValid: Ember.computed.and('isValidAccount', 'isValidName', 'isValidGithubUID'),\n inProgress: false,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.setDefaultAttributes();\n this.reset();\n },\n setDefaultAttributes: function setDefaultAttributes() {\n if (Ember.isPresent(this.attributes)) {\n return;\n }\n\n this.set('attributes', {\n account: null,\n name: null,\n kind: 'person',\n url: null,\n github_username: null,\n github_uid: null,\n gitea_username: null,\n wiki_username: null\n });\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var contributor = this.getProperties(attributes);\n this.set('inProgress', true);\n this.save(contributor).then(function () {\n _this.reset();\n }).catch(function (err) {\n console.warn(err);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ew3F7Kx7\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-account\\\"],[9],[0,\\\"Ethereum account\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"id\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"account\\\",\\\"c-account\\\",\\\"text\\\",[25,[\\\"account\\\"]],\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\",[29,\\\"if\\\",[[25,[\\\"isValidAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-kind\\\"],[9],[0,\\\"Kind\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[11,\\\"id\\\",\\\"c-kind\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"person\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"person\\\"],null]],[9],[0,\\\"Person\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"organization\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"organization\\\"],null]],[9],[0,\\\"Organization\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-name\\\"],[9],[0,\\\"Name\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"name\\\",\\\"text\\\",[25,[\\\"name\\\"]],\\\"Zero Cool\\\",[29,\\\"if\\\",[[25,[\\\"isValidName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-name\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-url\\\"],[9],[0,\\\"URL\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"url\\\",\\\"text\\\",[25,[\\\"url\\\"]],\\\"http://zerocool.bit\\\",[29,\\\"if\\\",[[25,[\\\"isValidURL\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-url\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-github-uid\\\"],[9],[0,\\\"GitHub UID\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_uid\\\",\\\"text\\\",[25,[\\\"github_uid\\\"]],\\\"2342\\\",[29,\\\"if\\\",[[25,[\\\"isValidGithubUID\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-uid\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-github-username\\\"],[9],[0,\\\"GitHub username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_username\\\",\\\"text\\\",[25,[\\\"github_username\\\"]],\\\"zerocool\\\",[29,\\\"if\\\",[[25,[\\\"isValidGithubUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-gitea-username\\\"],[9],[0,\\\"Gitea username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"gitea_username\\\",\\\"text\\\",[25,[\\\"gitea_username\\\"]],\\\"zerocool\\\",[29,\\\"if\\\",[[25,[\\\"isValidGiteaUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-gitea-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-wiki-username\\\"],[9],[0,\\\"Wiki username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"wiki_username\\\",\\\"text\\\",[25,[\\\"wiki_username\\\"]],\\\"ZeroCool\\\",[29,\\\"if\\\",[[25,[\\\"isValidWikiUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-wiki-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[25,[\\\"inProgress\\\"]],[29,\\\"if\\\",[[25,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contributor/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-proposal/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n attributes: null,\n contributors: Object.freeze([]),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments); // Default attributes used by reset\n\n\n this.set('attributes', {\n contributorId: null,\n kind: 'community',\n amount: null,\n description: null,\n url: null\n });\n },\n didInsertElement: function didInsertElement() {\n this._super.apply(this, arguments);\n\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var proposal = this.getProperties(attributes);\n var saved = this.save(proposal); // The promise handles inProgress\n\n this.set('inProgress', saved);\n saved.then(function () {\n _this.reset();\n\n window.scroll(0, 0);\n window.alert('Proposal added.');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-proposal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"0bKQElzy\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[0,\\\"Contributor\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,1,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,1,[\\\"id\\\"]]],null]],[9],[1,[24,1,[\\\"github_username\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"community\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"community\\\"],null]],[9],[0,\\\"Community\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"design\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"design\\\"],null]],[9],[0,\\\"Design\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"dev\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"dev\\\"],null]],[9],[0,\\\"Development\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"docs\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"docs\\\"],null]],[9],[0,\\\"Documentation\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"ops\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"ops\\\"],null]],[9],[0,\\\"IT Operations\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"100\\\",[25,[\\\"amount\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"Description\\\",[25,[\\\"description\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"URL (optional)\\\",[25,[\\\"url\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[29,\\\"is-pending\\\",[[25,[\\\"inProgress\\\"]]],null],[29,\\\"if\\\",[[29,\\\"is-pending\\\",[[25,[\\\"inProgress\\\"]]],null],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"index\\\"]],{\\\"statements\\\":[[0,\\\"Back\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-proposal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var categoryColors = {\n community: \"#fb6868\",\n design: \"#fbe468\",\n dev: \"#e068fb\",\n docs: \"#97fb68\",\n ops: \"#8f68fb\"\n };\n\n var _default = Ember.Component.extend({\n contributions: null,\n chartOptions: Object.freeze({\n legend: {\n display: false\n }\n }),\n chartData: Ember.computed('contributions', function () {\n var kredits = this.contributions.filterBy('vetoed', false).map(function (c) {\n return {\n kind: c.kind,\n amount: c.amount\n };\n }).reduce(function (kinds, c) {\n if (c.kind in kinds) {\n kinds[c.kind] = kinds[c.kind] + c.amount;\n } else {\n kinds[c.kind] = c.amount;\n }\n\n return kinds;\n }, {});\n return {\n datasets: [{\n data: [kredits['community'], kredits['design'], kredits['dev'], kredits['ops'], kredits['docs']],\n borderColor: [categoryColors.community, categoryColors.design, categoryColors.dev, categoryColors.ops, categoryColors.docs],\n borderWidth: 1\n }],\n labels: ['Community', 'Design', 'Development', 'Operations & Infrastructure', 'Documentation']\n };\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"433uRPu8\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chart\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"ember-chart\\\",null,[[\\\"type\\\",\\\"data\\\",\\\"options\\\",\\\"width\\\",\\\"height\\\"],[\\\"doughnut\\\",[25,[\\\"chartData\\\"]],[25,[\\\"chartOptions\\\"]],200,200]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/chart-contributions-by-type/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'div',\n classNames: ['contributions'],\n selectedContribution: null,\n showQuickFilter: false,\n hideSmallContributions: false,\n contributorId: null,\n contributionKind: null,\n kredits: Ember.inject.service(),\n contributorsSorting: Object.freeze(['name:asc']),\n contributors: Ember.computed.sort('kredits.contributors', 'contributorsSorting'),\n contributorsActive: Ember.computed('contributors.[]', 'contributions', function () {\n var activeIds = this.contributions.mapBy('contributorId').map(function (id) {\n return id.toString();\n }).uniq();\n return this.contributors.filter(function (c) {\n return activeIds.includes(c.id.toString());\n });\n }),\n contributionKinds: Ember.computed('contributions.[]', function () {\n return this.contributions.mapBy('kind').uniq();\n }),\n contributionsFiltered: Ember.computed('contributions.[]', 'hideSmallContributions', 'contributorId', 'contributionKind', function () {\n var _this = this;\n\n return this.contributions.filter(function (c) {\n var included = true;\n\n if (_this.hideSmallContributions && c.amount <= 500) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributorId) && c.contributorId.toString() !== _this.contributorId.toString()) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributionKind) && c.kind !== _this.contributionKind) {\n included = false;\n }\n\n return included;\n });\n }),\n actions: {\n veto: function veto(contributionId) {\n if (this.contractInteractionEnabled) {\n this.vetoContribution(contributionId);\n } else {\n window.alert('Only members can veto contributions. Please ask someone to set you up.');\n }\n },\n openContributionDetails: function openContributionDetails(contribution) {\n this.router.transitionTo('dashboard.contributions.show', contribution);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"G1DDHmYe\",\n \"block\": \"{\\\"symbols\\\":[\\\"contribution\\\",\\\"kind\\\",\\\"contributor\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,[\\\"showQuickFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"quick-filter\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contributor\\\"],[9],[0,\\\"\\\\n Contributor:\\\\n \\\"],[7,\\\"select\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[9],[0,\\\"all\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributorsActive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,3,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,3,[\\\"id\\\"]]],null]],[9],[1,[24,3,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contribution-kind\\\"],[9],[0,\\\"\\\\n Kind:\\\\n \\\"],[7,\\\"select\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributionKind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[9],[0,\\\"all\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributionKinds\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,2,[]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributionKind\\\"]],[24,2,[]]],null]],[9],[1,[29,\\\"capitalize-string\\\",[[24,2,[]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contribution-size\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[25,[\\\"hideSmallContributions\\\"]]]]],false],[0,\\\"\\\\n Hide small contributions\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"contribution-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributionsFiltered\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"role\\\",\\\"button\\\"],[12,\\\"data-contribution-id\\\",[24,1,[\\\"id\\\"]]],[12,\\\"class\\\",[30,[[29,\\\"contribution-status\\\",[[24,1,[]]],null],[29,\\\"if\\\",[[24,1,[\\\"vetoed\\\"]],\\\" vetoed\\\"],null],[29,\\\"if\\\",[[29,\\\"eq\\\",[[24,1,[\\\"id\\\"]],[25,[\\\"selectedContributionId\\\"]]],null],\\\" selected\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"meta\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"recipient\\\"],[9],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[24,1,[\\\"contributor\\\"]]]]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[30,[\\\"category \\\",[24,1,[\\\"kind\\\"]]]]],[9],[0,\\\"(\\\"],[1,[24,1,[\\\"kind\\\"]],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[1,[24,1,[\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"kredits-amount\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[24,1,[\\\"amount\\\"]],false],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,1,[\\\"vetoed\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[29,\\\"is-confirmed-contribution\\\",[[24,1,[]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"voting\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"small danger\\\"],[9],[0,\\\"veto\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"veto\\\",[24,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"openContributionDetails\\\",[24,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contribution-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'table',\n classNames: 'contributor-list',\n selectedContributorId: null,\n actions: {\n openContributorDetails: function openContributorDetails(contributor) {\n this.router.transitionTo('dashboard.contributors.show', contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"+uskaOjb\",\n \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributorList\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[11,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[30,[[29,\\\"if\\\",[[29,\\\"is-current-user\\\",[[24,1,[\\\"contributor\\\"]]],null],\\\"current-user\\\"],null],\\\" \\\",[29,\\\"if\\\",[[29,\\\"eq\\\",[[24,1,[\\\"contributor\\\",\\\"id\\\"]],[25,[\\\"selectedContributorId\\\"]]],null],\\\"selected\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"person\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[24,1,[\\\"contributor\\\"]]]]],false],[0,\\\" \\\"],[1,[24,1,[\\\"contributor\\\",\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"kredits\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"showUnconfirmedKredits\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,1,[\\\"amountTotal\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,1,[\\\"amountConfirmed\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"openContributorDetails\\\",[24,1,[\\\"contributor\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contributor-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-chart\", [\"exports\", \"ember-cli-chart/components/ember-chart\"], function (_exports, _emberChart) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberChart.default;\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-flatpickr\", [\"exports\", \"ember-flatpickr/components/ember-flatpickr\"], function (_exports, _emberFlatpickr) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberFlatpickr.default;\n }\n });\n});","define(\"kredits-web/components/external-account-link/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\",\n account: null,\n iconComponentName: Ember.computed('account.site', function () {\n if (this.account.site.match(/github|gitea|wiki/)) {\n return 'icon-account-' + this.account.site.replace(/\\./g, '-');\n } else {\n return 'icon-web-globe';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"U1CUwUvu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"account\\\",\\\"url\\\"]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[12,\\\"title\\\",[30,[[25,[\\\"account\\\",\\\"username\\\"]],\\\" on \\\",[25,[\\\"account\\\",\\\"site\\\"]]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"site\\\"],[9],[1,[25,[\\\"account\\\",\\\"site\\\"]],false],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"component\\\",[[25,[\\\"iconComponentName\\\"]]],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/external-account-link/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-gitea-kosmos-org/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-gitea-kosmos-org/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JiltL+jf\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-gitea\\\"],[11,\\\"width\\\",\\\"400\\\"],[11,\\\"height\\\",\\\"400\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 400 400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"d\\\",\\\"m235.61 136.7 7e-3 32.7 4.493 2.189c2.471 1.204 4.628 2.25 4.793 2.324s0.3-15.626 0.3-34.889v-35.024h-9.6l7e-3 32.7m-22.336 30.528c-2.787 0.548-5.894 2.175-8.11 4.244-2.296 2.145-1.694 0.967-24.197 47.328l-11.164 23v4.6c0 4.305 0.076 4.75 1.185 6.942 2.815 5.56 1.055 4.606 69.415 37.629l4.2 2.029h4.221c10.104 0 11.144-1.319 26.676-33.8 0.999-2.09 4.15-8.57 7.001-14.4s6.916-14.2 9.033-18.6l3.849-8 0.01-4.219c0.02-8.49-2.644-11.721-14.326-17.371-4.215-2.038-11.264-5.461-15.664-7.606-15.241-7.429-22.802-11.07-23.125-11.137-0.418-0.086-1.177 1.299-5.112 9.333l-3.234 6.6 1.19 2.2c0.654 1.21 1.308 3.038 1.454 4.063l0.265 1.862 5.747 2.8c22.047 10.742 22.975 15.314 9.007 44.377l-3.317 6.902 1.162 2.098c3.865 6.974-0.923 15.098-8.898 15.098-12.557 0-13.717-18.335-1.278-20.2l1.842-0.276 3.101-6.462c12.037-25.079 11.953-25.952-3.232-33.53l-7.333-3.659-2.319 1.032c-1.276 0.567-3.151 1.153-4.167 1.301l-1.848 0.269-6.785 13.855-6.786 13.854 1.109 1.747c6.109 9.633-5.532 20.771-14.552 13.924-6.729-5.108-4.39-16.742 3.633-18.073 0.812-0.134 1.71-0.318 1.996-0.408 0.429-0.136 6.592-12.372 13.118-26.044l1.37-2.87-0.782-1.33c-3.586-6.099 0.331-14.253 7.353-15.306l1.683-0.252 3.969-8.045c2.183-4.425 4.019-8.168 4.08-8.319s-2.979-1.758-6.755-3.571c-8.092-3.885-10.4-4.452-14.685-3.609\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m73.4 97.876c-2.903 0.376-8.068 1.377-8.8 1.705-0.44 0.197-2.915 1.007-5.5 1.8s-4.7 1.617-4.7 1.831c0 0.213-0.225 0.388-0.5 0.388-0.63 1e-3 -5.615 2.344-5.893 2.771-0.114 0.175-0.837 0.638-1.607 1.029-5.482 2.788-14.835 11.523-18.63 17.4-0.639 0.99-1.274 1.89-1.409 2-0.659 0.534-4.752 8.933-5.555 11.4-0.502 1.54-1.048 2.98-1.213 3.2-0.587 0.782-2.031 7.531-2.489 11.633-0.256 2.292-0.61 4.167-0.785 4.167-0.443 0-0.403 17.45 0.042 18.305 0.199 0.382 0.566 2.748 0.816 5.258 0.493 4.939 1.847 12.516 2.428 13.578 0.198 0.363 0.83 2.369 1.405 4.459 1.927 7.009 10.26 22.927 12.44 23.764 0.303 0.116 0.55 0.481 0.55 0.812 0 0.813 10.667 11.552 12.3 12.383 0.715 0.364 1.3 0.821 1.3 1.017 0 0.195 0.945 0.934 2.1 1.642s2.19 1.41 2.3 1.561 1.28 0.875 2.6 1.609c1.32 0.735 2.67 1.552 3 1.816s1.95 1.086 3.6 1.827c1.65 0.74 3.101 1.486 3.224 1.658 0.123 0.171 1.741 0.865 3.596 1.542s3.557 1.384 3.783 1.572c0.226 0.187 2.388 0.907 4.804 1.599s4.753 1.423 5.193 1.624c1.299 0.593 7.258 1.856 12.2 2.586 2.53 0.374 4.96 0.83 5.4 1.013 1.151 0.48 8.262 1.165 15.067 1.45l5.866 0.247 0.877 2.594c0.903 2.673 4.652 10.529 5.195 10.884 0.168 0.11 0.585 0.83 0.928 1.6 0.685 1.538 1.927 3.686 2.313 4 0.135 0.11 0.826 1.19 1.536 2.4 1.544 2.634 4.561 7.175 5.293 7.968 0.289 0.313 0.975 1.236 1.525 2.051 1.729 2.563 7.039 9.405 8.557 11.025 0.244 0.26 1.523 1.692 2.843 3.183 3.476 3.925 7.354 7.774 10.261 10.183 1.397 1.157 2.629 2.223 2.739 2.368s1.096 0.884 2.191 1.643c1.094 0.758 2.33 1.681 2.745 2.051s1.229 0.911 1.809 1.203 1.884 1.026 2.897 1.632c1.952 1.167 7.201 3.093 8.428 3.093 0.402 0 0.73 0.18 0.73 0.4 0 0.511 115.46 0.557 115.77 0.046 0.121-0.194 1.074-0.482 2.119-0.639 2.437-0.365 7.765-2.307 9.27-3.378 0.64-0.456 1.334-0.829 1.542-0.829 0.451 0 5.639-3.687 8.597-6.111 2.854-2.337 5.633-5.107 8.718-8.689 1.42-1.65 2.681-3.09 2.8-3.2 0.581-0.536 5.161-6.76 5.812-7.9 0.409-0.715 0.869-1.3 1.023-1.3 0.153 0 0.938-1.125 1.742-2.5 2.068-3.533 4.108-6.822 4.561-7.352 0.213-0.248 1.043-1.755 1.845-3.348s1.62-3.1 1.818-3.348c0.687-0.864 5.069-9.661 5.555-11.152 0.269-0.825 0.642-1.5 0.829-1.5s0.878-1.396 1.536-3.101c0.658-1.706 1.671-4.047 2.251-5.203 0.581-1.156 1.405-3.116 1.832-4.356 0.426-1.239 0.934-2.453 1.129-2.696 0.194-0.244 0.946-2.154 1.671-4.244s1.446-3.89 1.602-4c0.155-0.11 0.964-2.36 1.797-5 0.832-2.64 1.627-4.89 1.766-5s0.861-2.27 1.604-4.8c0.742-2.53 1.484-4.782 1.649-5.003 0.164-0.222 0.872-2.562 1.573-5.2 0.701-2.639 1.412-4.977 1.58-5.197s0.965-3.19 1.77-6.6 1.623-6.488 1.817-6.84c0.195-0.353 0.919-3.503 1.611-7 0.692-3.498 1.431-6.678 1.642-7.068 0.211-0.389 0.938-4.169 1.616-8.4 0.677-4.23 1.388-8.052 1.579-8.492 0.192-0.44 0.708-3.77 1.147-7.4 4.258-35.198 1.497-55.451-8.208-60.199l-2.219-1.086-7.473 0.266c-4.111 0.146-7.834 0.417-8.274 0.602-0.801 0.336-13.842 0.941-52 2.412-11.22 0.433-22.2 0.881-24.4 0.997-2.2 0.115-11.334 0.415-20.298 0.665l-16.298 0.455-0.204 69.922-9.392-4.634-8e-3 -65.272-19.3-0.277c-10.615-0.153-19.84-0.441-20.5-0.642-0.66-0.2-6.69-0.551-13.4-0.779-21.82-0.743-58.18-2.495-59-2.843-0.44-0.187-4.04-0.453-8-0.591s-11.34-0.508-16.4-0.822c-8.365-0.519-22.619-0.685-25.6-0.298m13.657 31.23c0.269 0.173 0.809 3.742 1.313 8.694 0.471 4.62 1.021 8.76 1.221 9.2 0.201 0.44 0.561 2.42 0.801 4.4 0.709 5.856 2.382 15.937 2.787 16.8 0.207 0.44 0.943 3.68 1.636 7.2s1.4 6.58 1.571 6.8 0.803 2.56 1.405 5.2c0.601 2.64 1.333 5.34 1.627 6 0.293 0.66 1.193 3.63 2 6.6 0.808 2.97 1.597 5.49 1.754 5.6s0.884 2.27 1.614 4.8c0.731 2.53 1.455 4.69 1.608 4.8 0.154 0.11 0.868 2.09 1.587 4.4 0.72 2.31 1.494 4.429 1.721 4.71 0.226 0.28 0.341 0.567 0.255 0.637-0.263 0.215-9.713-1.339-10.37-1.704-0.337-0.188-1.237-0.468-2-0.623-4-0.814-10.947-2.703-11.712-3.185-0.481-0.304-1.325-0.675-1.875-0.825-1.377-0.377-5.355-1.954-5.6-2.22-0.11-0.12-1.447-0.841-2.971-1.604-1.524-0.762-3.216-1.791-3.759-2.286s-1.16-0.9-1.372-0.9c-1.422 0-11.329-9.68-12.558-12.27-0.347-0.731-0.775-1.33-0.951-1.33-0.593 0-4.638-8.175-5.591-11.3-0.519-1.705-1.071-3.1-1.226-3.1s-0.372-0.495-0.482-1.1c-0.111-0.605-0.599-3.08-1.084-5.5-1.119-5.58-1.528-15.681-0.814-20.111 0.516-3.208 1.895-8.141 2.372-8.489 0.15-0.11 0.752-1.19 1.338-2.4 2.053-4.245 6.611-8.836 11.098-11.177 1.43-0.746 2.69-1.485 2.8-1.643 0.28-0.402 6.231-2.23 8.4-2.58 0.99-0.16 2.003-0.454 2.251-0.654 0.248-0.199 2.678-0.513 5.4-0.697s5.039-0.357 5.149-0.385c0.11-0.029 0.406 0.08 0.657 0.242m131.79 38.066c2.262 0.371 16.092 6.678 15.866 7.236-0.061 0.151-1.897 3.894-4.08 8.319l-3.969 8.045-1.683 0.252c-7.022 1.053-10.939 9.207-7.353 15.306l0.782 1.33-1.37 2.87c-6.526 13.672-12.689 25.908-13.118 26.044-0.286 0.09-1.184 0.274-1.996 0.408-8.023 1.331-10.362 12.965-3.633 18.073 9.02 6.847 20.661-4.291 14.552-13.924l-1.109-1.747 6.786-13.854 6.785-13.855 1.848-0.269c1.016-0.148 2.891-0.734 4.167-1.301l2.319-1.032 7.333 3.659c15.185 7.578 15.269 8.451 3.232 33.53l-3.101 6.462-1.842 0.276c-12.439 1.865-11.279 20.2 1.278 20.2 7.975 0 12.763-8.124 8.898-15.098l-1.162-2.098 3.317-6.902c13.968-29.063 13.04-33.635-9.007-44.377l-5.747-2.8-0.265-1.862c-0.146-1.025-0.8-2.853-1.454-4.063l-1.19-2.2 3.234-6.6c3.935-8.034 4.694-9.419 5.112-9.333 0.323 0.067 7.884 3.708 23.125 11.137 4.4 2.145 11.449 5.568 15.664 7.606 11.682 5.65 14.346 8.881 14.326 17.371l-0.01 4.219-3.849 8c-2.117 4.4-6.182 12.77-9.033 18.6s-6.002 12.31-7.001 14.4c-15.532 32.481-16.572 33.8-26.676 33.8h-4.221l-4.2-2.029c-68.36-33.023-66.6-32.069-69.415-37.629-1.109-2.192-1.185-2.637-1.185-6.942v-4.6l11.164-23c22.503-46.361 21.901-45.183 24.197-47.328 3.874-3.618 8.661-5.122 13.684-4.3\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-gitea-kosmos-org/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-github-com/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-github-com/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DB4qRdw9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"id\\\",\\\"svg825\\\"],[11,\\\"class\\\",\\\"icon-github\\\"],[11,\\\"width\\\",\\\"260\\\"],[11,\\\"height\\\",\\\"260\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 212.4575 186.23\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 260 260\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"transform\\\",\\\"translate(23.766 36.885)\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"d\\\",\\\"m151.79 86.234c-7.078 0.1229-14.154 0.5605-21.232 0.7069-12.318 0.248-24.64 0.5664-36.961 0.512-11.176-0.0472-22.358-0.9728-33.518-0.7052-7.3164 0.1776-14.373 2.2948-20.131 7.584-9.9472 9.1368-12.522 21-11.314 33.807 1.92 20.357 9.2716 31.449 29.115 37.064 15.793 4.4704 31.963 5.2088 48.199 4.9744 5.254 0 10.51 0.1367 15.758-0.0292 12.723-0.4064 25.264-2.2072 37.358-6.3596 10.846-3.7225 18.799-10.691 22.572-22.166 2.6736-8.1288 3.7148-16.388 2.5544-24.853-1.7772-12.959-13.275-30.86-32.4-30.535zm-81.576 59.996c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20zm76 0c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20z\\\"],[11,\\\"fill\\\",\\\"none\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m200.25 59.188c-2.5076-3.4493-4.3632-6.3888-3.8748-11.44 0.6796-7.0664-0.3536-14.396-1.3204-21.518-1.2188-8.9843-3.5236-17.74-7.1776-26.23-9.0332 1.9356-17.981 3.49-25.963 8.0976-8.4648 4.8908-16.695 10.215-25.08 15.25-0.9532 0.5704-2.3124 0.8848-3.3848 0.7032-17.967-3.1368-35.92-3.0196-53.898-0.086-1.3632 0.2244-3.0724-0.2345-4.2948-0.9608-4.4436-2.6604-8.6564-5.7344-13.123-8.3516-11.656-6.844-23.66-12.822-37.494-14.59-0.3928 0.8597-0.7188 1.4785-0.9612 2.1253-4.164 11.22-6.6424 22.844-7.4276 34.82-0.2872 4.3516-0.6092 8.8048 0 13.072 0.3456 2.4296-4e-3 3.8788-1.3924 5.6132-4.8516 6.0488-8.6368 12.717-11.102 20.219-4.6972 14.295-4.4004 28.861-2.2756 43.475 1.7268 11.974 4.7344 23.537 11.324 33.873 13.186 20.682 32.892 29.774 55.572 31.705 19.308 1.6464 38.8 1.1992 58.213 1.2364 13.855 0.0251 27.57-1.4924 40.715-6.6389 20.375-7.9727 33.859-22.604 40.275-44.166 3.7344-12.545 5.2324-25.396 4.8144-38.498-0.4412-13.81-4.0504-26.566-12.144-37.711zm-18.609 82.435c-3.7736 11.475-11.727 18.444-22.572 22.166-12.094 4.1524-24.635 5.9532-37.358 6.3596-5.248 0.1659-10.504 0.0292-15.758 0.0292-16.236 0.2344-32.406-0.504-48.199-4.9744-19.844-5.6152-27.195-16.707-29.115-37.064-1.2072-12.807 1.3672-24.67 11.314-33.807 5.7576-5.2892 12.814-7.4064 20.131-7.584 11.16-0.2676 22.342 0.658 33.518 0.7052 12.32 0.0544 24.642-0.264 36.961-0.512 7.0784-0.1464 14.154-0.584 21.232-0.7069 19.125-0.3243 30.623 17.576 32.4 30.535 1.1604 8.4647 0.1192 16.724-2.5544 24.853z\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"ellipse\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"cx\\\",\\\"70.214\\\"],[11,\\\"cy\\\",\\\"126.23\\\"],[11,\\\"rx\\\",\\\"16\\\"],[11,\\\"ry\\\",\\\"20\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"ellipse\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"cx\\\",\\\"146.21\\\"],[11,\\\"cy\\\",\\\"126.23\\\"],[11,\\\"rx\\\",\\\"16\\\"],[11,\\\"ry\\\",\\\"20\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-github-com/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-wiki-kosmos-org/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-wiki-kosmos-org/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"BV/BbT8B\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-wiki\\\"],[11,\\\"width\\\",\\\"120\\\"],[11,\\\"height\\\",\\\"120\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 120 120\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"transform\\\",\\\"translate(18.1,3)\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"6.2 5 45.7 20.5 45.7 91 6.2 75.5\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"90 5 50.5 20.5 50.5 91 90 75.5\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"87 88 87 81.8 60.4 91\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"9.2 88 9.2 81.8 34.9 91\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-wiki-kosmos-org/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-web-globe/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-web-globe/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"QUXphtad\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-web-globe\\\"],[11,\\\"width\\\",\\\"60\\\"],[11,\\\"height\\\",\\\"60\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 64 64\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m48.1 14.3c-0.4-0.5-0.9-1-1.4-1.5-4.3-4.2-10.2-6.8-16.7-6.8s-12.4 2.6-16.7 6.8c-0.5 0.5-1 1-1.4 1.5-3.7 4.2-5.9 9.7-5.9 15.7s2.2 11.5 5.8 15.7c0.4 0.5 0.9 1 1.4 1.5 4.3 4.2 10.3 6.8 16.8 6.8s12.5-2.6 16.8-6.9c0.5-0.5 0.9-0.9 1.4-1.5 3.6-4.1 5.8-9.6 5.8-15.6s-2.2-11.5-5.9-15.7zm3.9 14.7h-8.1c-0.1-3-1-7.3-2.4-10.5 1.8-0.8 3.5-1.8 5.1-3 3.1 3.6 5.1 8.5 5.4 13.5zm-21-20.1c3 2.3 5.8 5.2 7.6 8.5-2.4 0.9-4.6 1.3-7.6 1.4zm-2 9.9c-3-0.1-5.2-0.6-7.6-1.4 1.8-3.3 4.6-6.3 7.6-8.5zm0 2v8.2h-10.8c0.1-3 0.9-6.8 2.3-9.8 2.7 1 5.5 1.5 8.5 1.6zm0 10.2v8c-3 0.1-5.9 0.7-8.6 1.7-1.4-3-2.1-5.7-2.3-9.7zm0 10v10.1c-3-2.3-5.8-5.3-7.7-8.6 2.4-0.9 4.7-1.4 7.7-1.5zm2 0c3 0.1 5.3 0.6 7.7 1.5-1.9 3.4-4.7 6.3-7.7 8.6zm0-2v-8h10.8c-0.1 4-0.9 6.7-2.3 9.7-2.6-1-5.5-1.5-8.5-1.7zm0-10v-8.2c3-0.1 5.8-0.7 8.5-1.6 1.4 3 2.2 6.8 2.3 9.8zm9.5-12.3c-1.7-3.2-4.1-6-6.9-8.3 4.4 0.6 8.4 2.7 11.5 5.6-1.4 1.1-3 1.9-4.6 2.7zm-14.1-8.4c-2.9 2.3-5.2 5.2-6.9 8.3-1.6-0.7-3.2-1.6-4.6-2.6 3.1-2.9 7.1-5 11.5-5.7zm-12.9 7.2c1.6 1.2 3.3 2.2 5.1 3-1.5 3.3-2.3 7.5-2.4 10.5h-8.2c0.3-5 2.3-9.9 5.5-13.5zm-5.5 15.5h8.1c0.1 4 1 7.2 2.4 10.5-1.8 0.8-3.5 1.8-5.1 3-3.2-3.7-5.1-8.5-5.4-13.5zm11.4 12.2c1.7 3.2 4.1 6.1 7 8.4-4.5-0.7-8.5-2.8-11.6-5.8 1.5-1 3-1.8 4.6-2.6zm14.2 8.5c2.9-2.4 5.3-5.2 7-8.4 1.6 0.7 3.2 1.6 4.6 2.6-3.1 3-7.2 5-11.6 5.8zm13-7.3c-1.6-1.2-3.3-2.2-5.1-3 1.4-3.2 2.3-6.5 2.4-10.5h8.1c-0.3 5.1-2.2 9.9-5.4 13.5z\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-web-globe/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n classNames: ['loading-spinner']\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"b6SWTOaj\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"x\\\",\\\"0px\\\"],[11,\\\"y\\\",\\\"0px\\\"],[11,\\\"viewBox\\\",\\\"0 0 132 100\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 100 100\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"id\\\",\\\"path-comet\\\"],[11,\\\"d\\\",\\\"M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337\\\\n c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492\\\\n c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z\\\"],[9],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Loading data...\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/loading-spinner/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/proposal-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: 'ul',\n classNames: ['proposal-list'],\n actions: {\n confirm: function confirm(proposalId) {\n if (this.contractInteractionEnabled) {\n this.confirmProposal(proposalId);\n } else {\n window.alert('Only members can vote on proposals. Please ask someone to set you up.');\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/proposal-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"m53EF4sk\",\n \"block\": \"{\\\"symbols\\\":[\\\"proposal\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[25,[\\\"proposals\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[12,\\\"data-proposal-id\\\",[24,1,[\\\"id\\\"]]],[12,\\\"class\\\",[29,\\\"if\\\",[[24,1,[\\\"isExecuted\\\"]],\\\"confirmed\\\",\\\"unconfirmed\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"meta\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[30,[\\\"category \\\",[24,1,[\\\"kind\\\"]]]]],[9],[0,\\\"♥ (\\\"],[1,[24,1,[\\\"kind\\\"]],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"recipient\\\"],[9],[1,[24,1,[\\\"contributor\\\",\\\"name\\\"]],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"kredits-amount\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[24,1,[\\\"amount\\\"]],false],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[1,[24,1,[\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"voting\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,1,[\\\"isExecuted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"votes\\\"],[9],[0,\\\"(\\\"],[1,[24,1,[\\\"votesCount\\\"]],false],[0,\\\"/\\\"],[1,[24,1,[\\\"votesNeeded\\\"]],false],[0,\\\" votes)\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[9],[0,\\\"+1\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"confirm\\\",[24,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/proposal-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/topbar-account-panel/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: '',\n kredits: Ember.inject.service(),\n router: Ember.inject.service(),\n actions: {\n signup: function signup() {\n this.router.transitionTo('signup');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/topbar-account-panel/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"15JWmvIR\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"user-account\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[29,\\\"and\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]],[25,[\\\"kredits\\\",\\\"currentUser\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[25,[\\\"kredits\\\",\\\"currentUser\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"currentUserIsCore\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"core-flag\\\"],[9],[0,\\\"(core)\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" Anonymous\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"small green\\\"],[9],[0,\\\"Sign up\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"signup\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/topbar-account-panel/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var SIZES = {\n 'small': '128',\n // pixels\n 'medium': '256',\n 'large': '512'\n };\n\n var _default = Ember.Component.extend({\n contributor: null,\n tagName: 'img',\n classNames: ['avatar'],\n classNameBindings: ['size'],\n attributeBindings: ['src', 'title'],\n size: 'small',\n src: Ember.computed.alias('avatarURL'),\n title: Ember.computed.alias('contributor.name'),\n avatarURL: Ember.computed('contributor.github_uid', 'size', function () {\n var github_uid = this.contributor.github_uid;\n\n if (github_uid) {\n return \"https://avatars2.githubusercontent.com/u/\".concat(github_uid, \"?v=3&s=\").concat(SIZES[this.size]);\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rnnAjEgP\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/user-avatar/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n sortedContributors: Ember.computed.sort('minedContributors', 'contributorsSorting'),\n actions: {\n save: function save(contribution) {\n var _this = this;\n\n var contributor = this.contributors.findBy('id', contribution.contributorId);\n contribution.contributorIpfsHash = contributor.ipfsHash;\n return this.kredits.addContribution(contribution).then(function (contribution) {\n _this.transitionToRoute('index');\n\n return contribution;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(attributes) {\n var _this = this;\n\n return this.kredits.updateContributor(this.model.id, attributes).then(function () {\n return _this.transitionToRoute('index');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(contributor) {\n var _this = this;\n\n return this.kredits.addContributor(contributor).then(function () {\n return _this.transitionToRoute('index');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n showDetailsPane: false,\n selectedContributorId: null,\n selectedContributionId: null,\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n contributions: Ember.computed.alias('kredits.contributions'),\n contributionsConfirmed: Ember.computed.alias('kredits.contributionsConfirmed'),\n contributionsUnconfirmed: Ember.computed.alias('kredits.contributionsUnconfirmed'),\n contributionsSorting: Object.freeze(['date:desc', 'time:desc', 'id:desc']),\n contributionsUnconfirmedSorted: Ember.computed.sort('contributionsUnconfirmed', 'contributionsSorting'),\n contributionsConfirmedSorted: Ember.computed.sort('contributionsConfirmed', 'contributionsSorting'),\n kreditsByContributor: Ember.computed.alias('kredits.kreditsByContributor'),\n kreditsToplistSorting: Ember.computed('showUnconfirmedKredits', function () {\n return this.showUnconfirmedKredits ? ['amountTotal:desc'] : ['amountConfirmed:desc'];\n }),\n kreditsToplist: Ember.computed.sort('kreditsByContributor', 'kreditsToplistSorting'),\n showUnconfirmedKredits: true,\n hideUnconfirmedKredits: Ember.computed.not('showUnconfirmedKredits'),\n showQuickFilterUnconfirmed: false,\n showQuickFilterConfirmed: false,\n actions: {\n vetoContribution: function vetoContribution(contributionId) {\n this.kredits.veto(contributionId).then(function (transaction) {\n console.debug('[controllers:index] Veto submitted to Ethereum blockhain: ' + transaction.hash);\n });\n },\n confirmProposal: function confirmProposal(proposalId) {\n this.kredits.vote(proposalId).then(function (transaction) {\n console.debug('[controllers:index] Vote submitted to Ethereum blockhain: ' + transaction.hash);\n });\n },\n toggleQuickFilterUnconfirmed: function toggleQuickFilterUnconfirmed() {\n this.toggleProperty('showQuickFilterUnconfirmed');\n },\n toggleQuickFilterConfirmed: function toggleQuickFilterConfirmed() {\n this.toggleProperty('showQuickFilterConfirmed');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n roleName: Ember.computed('model.isCore', 'totalKreditsEarned', function () {\n if (this.model.isCore) return 'Core Contributor';\n if (this.model.totalKreditsEarned <= 5000) return 'Newcomer';\n return 'Contributor';\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/proposals/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n actions: {\n save: function save(proposal) {\n var _this = this;\n\n // contributorIpfsHash is needed for the proposal ipfs data. I'm not happy to do this here but I think to load all the contributors in addProposal again is a bit too much. I hope we can refactor it later.\n var contributor = this.contributors.findBy('id', proposal.contributorId);\n proposal.contributorIpfsHash = contributor.get('ipfsHash');\n return this.kredits.addProposal(proposal).then(function (proposal) {\n _this.transitionToRoute('index');\n\n return proposal;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/signup/eth-account\", [\"exports\", \"web3-utils\", \"kredits-web/config/environment\"], function (_exports, _web3Utils, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n ethAddress: null,\n githubAccessToken: Ember.computed.alias('kredits.githubAccessToken'),\n isValidEthAccount: Ember.computed('ethAddress', function () {\n return (0, _web3Utils.isAddress)(this.ethAddress);\n }),\n signupButtonDisabled: Ember.computed.not('isValidEthAccount'),\n actions: {\n completeSignup: function completeSignup() {\n var _this = this;\n\n var payload = {\n accessToken: this.githubAccessToken,\n account: this.ethAddress\n };\n fetch(_environment.default.githubSignupUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n }).then(function (res) {\n return res.json();\n }).then(function (data) {\n console.log('Created contributor:', data);\n\n _this.setProperties({\n githubAccessToken: null,\n ethAddress: null\n });\n\n _this.transitionToRoute('signup.complete');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/signup/index\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n actions: {\n connectGithub: function connectGithub() {\n window.location = _environment.default.githubConnectUrl;\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _and.default;\n }\n });\n Object.defineProperty(_exports, \"and\", {\n enumerable: true,\n get: function get() {\n return _and.and;\n }\n });\n});","define(\"kredits-web/helpers/app-version\", [\"exports\", \"kredits-web/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n\n function appVersion(_) {\n var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var version = _environment.default.APP.version; // e.g. 1.0.0-alpha.1+4jds75hf\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n var versionOnly = hash.versionOnly || hash.hideSha;\n var shaOnly = hash.shaOnly || hash.hideVersion;\n var match = null;\n\n if (versionOnly) {\n if (hash.showExtended) {\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n } // Fallback to just version\n\n\n if (!match) {\n match = version.match(_regexp.versionRegExp); // 1.0.0\n }\n }\n\n if (shaOnly) {\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n }\n\n return match ? match[0] : version;\n }\n\n var _default = Ember.Helper.helper(appVersion);\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/await\", [\"exports\", \"ember-promise-helpers/helpers/await\"], function (_exports, _await) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _await.default;\n }\n });\n});","define(\"kredits-web/helpers/capitalize-string\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n string = _ref2[0];\n\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/contribution-status\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n if (contribution.vetoed) {\n return 'vetoed';\n } else if (contribution.confirmedAt > this.currentBlock) {\n return 'unconfirmed';\n } else {\n return 'confirmed';\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _equal.default;\n }\n });\n Object.defineProperty(_exports, \"equal\", {\n enumerable: true,\n get: function get() {\n return _equal.equal;\n }\n });\n});","define(\"kredits-web/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gt.default;\n }\n });\n Object.defineProperty(_exports, \"gt\", {\n enumerable: true,\n get: function get() {\n return _gt.gt;\n }\n });\n});","define(\"kredits-web/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gte.default;\n }\n });\n Object.defineProperty(_exports, \"gte\", {\n enumerable: true,\n get: function get() {\n return _gte.gte;\n }\n });\n});","define(\"kredits-web/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isArray.default;\n }\n });\n Object.defineProperty(_exports, \"isArray\", {\n enumerable: true,\n get: function get() {\n return _isArray.isArray;\n }\n });\n});","define(\"kredits-web/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBetween.default;\n }\n });\n});","define(\"kredits-web/helpers/is-confirmed-contribution\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n return !contribution.vetoed && contribution.confirmedAt <= this.currentBlock;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-current-user\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentUser: Ember.computed.alias('kredits.currentUser'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contributor = _ref2[0];\n\n return Ember.isPresent(contributor) && Ember.isPresent(this.currentUser) && contributor.account === this.currentUser.account;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEqual.default;\n }\n });\n Object.defineProperty(_exports, \"isEqual\", {\n enumerable: true,\n get: function get() {\n return _isEqual.isEqual;\n }\n });\n});","define(\"kredits-web/helpers/is-fulfilled\", [\"exports\", \"ember-promise-helpers/helpers/is-fulfilled\"], function (_exports, _isFulfilled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.default;\n }\n });\n Object.defineProperty(_exports, \"isFulfilled\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.isFulfilled;\n }\n });\n});","define(\"kredits-web/helpers/is-pending\", [\"exports\", \"ember-promise-helpers/helpers/is-pending\"], function (_exports, _isPending) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isPending.default;\n }\n });\n Object.defineProperty(_exports, \"isPending\", {\n enumerable: true,\n get: function get() {\n return _isPending.isPending;\n }\n });\n});","define(\"kredits-web/helpers/is-rejected\", [\"exports\", \"ember-promise-helpers/helpers/is-rejected\"], function (_exports, _isRejected) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isRejected.default;\n }\n });\n Object.defineProperty(_exports, \"isRejected\", {\n enumerable: true,\n get: function get() {\n return _isRejected.isRejected;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSame.default;\n }\n });\n});","define(\"kredits-web/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lt.default;\n }\n });\n Object.defineProperty(_exports, \"lt\", {\n enumerable: true,\n get: function get() {\n return _lt.lt;\n }\n });\n});","define(\"kredits-web/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lte.default;\n }\n });\n Object.defineProperty(_exports, \"lte\", {\n enumerable: true,\n get: function get() {\n return _lte.lte;\n }\n });\n});","define(\"kredits-web/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentAdd.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentCalendar.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDiff.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDuration.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFormat.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFromNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFrom.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentSubtract.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToDate.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentTo.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _moment.default;\n }\n });\n});","define(\"kredits-web/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _notEqual.default;\n }\n });\n Object.defineProperty(_exports, \"notEq\", {\n enumerable: true,\n get: function get() {\n return _notEqual.notEq;\n }\n });\n});","define(\"kredits-web/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _not.default;\n }\n });\n Object.defineProperty(_exports, \"not\", {\n enumerable: true,\n get: function get() {\n return _not.not;\n }\n });\n});","define(\"kredits-web/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _now.default;\n }\n });\n});","define(\"kredits-web/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _or.default;\n }\n });\n Object.defineProperty(_exports, \"or\", {\n enumerable: true,\n get: function get() {\n return _or.or;\n }\n });\n});","define(\"kredits-web/helpers/promise-all\", [\"exports\", \"ember-promise-helpers/helpers/promise-all\"], function (_exports, _promiseAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.default;\n }\n });\n Object.defineProperty(_exports, \"promiseAll\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.promiseAll;\n }\n });\n});","define(\"kredits-web/helpers/promise-hash\", [\"exports\", \"ember-promise-helpers/helpers/promise-hash\"], function (_exports, _promiseHash) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.default;\n }\n });\n Object.defineProperty(_exports, \"promiseHash\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.promiseHash;\n }\n });\n});","define(\"kredits-web/helpers/promise-rejected-reason\", [\"exports\", \"ember-promise-helpers/helpers/promise-rejected-reason\"], function (_exports, _promiseRejectedReason) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseRejectedReason.default;\n }\n });\n});","define(\"kredits-web/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utc.default;\n }\n });\n Object.defineProperty(_exports, \"utc\", {\n enumerable: true,\n get: function get() {\n return _utc.utc;\n }\n });\n});","define(\"kredits-web/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _xor.default;\n }\n });\n Object.defineProperty(_exports, \"xor\", {\n enumerable: true,\n get: function get() {\n return _xor.xor;\n }\n });\n});","define(\"kredits-web/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"kredits-web/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var name, version;\n\n if (_environment.default.APP) {\n name = _environment.default.APP.name;\n version = _environment.default.APP.version;\n }\n\n var _default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = {\n name: 'container-debug-adapter',\n initialize: function initialize() {\n var app = arguments[1] || arguments[0];\n app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n app.inject('container-debug-adapter:main', 'namespace', 'application:main');\n }\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/export-application-global\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.initialize = initialize;\n _exports.default = void 0;\n\n function initialize() {\n var application = arguments[1] || arguments[0];\n\n if (_environment.default.exportApplicationGlobal !== false) {\n var theGlobal;\n\n if (typeof window !== 'undefined') {\n theGlobal = window;\n } else if (typeof global !== 'undefined') {\n theGlobal = global;\n } else if (typeof self !== 'undefined') {\n theGlobal = self;\n } else {\n // no reasonable global, just bail\n return;\n }\n\n var value = _environment.default.exportApplicationGlobal;\n var globalName;\n\n if (typeof value === 'string') {\n globalName = value;\n } else {\n globalName = Ember.String.classify(_environment.default.modulePrefix);\n }\n\n if (!theGlobal[globalName]) {\n theGlobal[globalName] = application;\n application.reopen({\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n\n delete theGlobal[globalName];\n }\n });\n }\n }\n }\n\n var _default = {\n name: 'export-application-global',\n initialize: initialize\n };\n _exports.default = _default;\n});","define(\"kredits-web/models/contribution\", [\"exports\", \"kredits-web/utils/cps/bignumber\"], function (_exports, _bignumber) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n contributorId: null,\n amount: null,\n confirmedAt: (0, _bignumber.default)('confirmedAtBlock', 'toNumber'),\n vetoed: null,\n ipfsHash: null,\n creatorAccount: null,\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n date: null,\n time: null,\n ipfsData: '',\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('details', {});\n },\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/contributor\", [\"exports\", \"kredits-web/utils/cps/bignumber\", \"kredits-web/utils/cps/kredits\"], function (_exports, _bignumber, _kredits) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: (0, _bignumber.default)('idRaw', 'toString'),\n account: null,\n balance: (0, _kredits.default)('balanceRaw'),\n totalKreditsEarned: (0, _bignumber.default)('totalKreditsEarnedRaw', 'toNumber'),\n contributionsCount: (0, _bignumber.default)('contributionsCountRaw', 'toNumber'),\n isCore: false,\n ipfsHash: null,\n // IPFS\n kind: null,\n name: null,\n url: null,\n github_username: null,\n github_uid: null,\n wiki_username: null,\n ipfsData: ''\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/proposal\", [\"exports\", \"kredits-web/utils/cps/bignumber\"], function (_exports, _bignumber) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: (0, _bignumber.default)('idRaw', 'toString'),\n creatorAccount: null,\n contributorId: (0, _bignumber.default)('contributorIdRaw', 'toString'),\n amount: (0, _bignumber.default)('amountRaw', 'toNumber'),\n votesCount: (0, _bignumber.default)('votesCountRaw', 'toNumber'),\n votesNeeded: (0, _bignumber.default)('votesNeededRaw', 'toNumber'),\n executed: null,\n ipfsHash: null,\n // Shortcuts\n isExecuted: Ember.computed.alias('executed'),\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n ipfsData: '',\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('details', {});\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberResolver.default;\n _exports.default = _default;\n});","define(\"kredits-web/router\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Router = Ember.Router.extend({\n location: _environment.default.locationType,\n rootURL: _environment.default.rootURL\n });\n Router.map(function () {\n this.route('dashboard', function () {\n this.route('contributors', function () {\n this.route('show', {\n path: ':id'\n });\n });\n this.route('contributions', function () {\n this.route('show', {\n path: ':id'\n });\n });\n });\n this.route('proposals', function () {\n this.route('new');\n });\n this.route('contributions', function () {\n this.route('new');\n });\n this.route('contributors', function () {\n this.route('new');\n this.route('edit', {\n path: ':id/edit'\n });\n });\n this.route('signup', function () {\n this.route('github');\n this.route('eth-account');\n this.route('complete');\n });\n });\n var _default = Router;\n _exports.default = _default;\n});","define(\"kredits-web/routes/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n beforeModel: function beforeModel(transition) {\n var kredits = this.kredits;\n return kredits.setup().then(function () {\n kredits.get('kredits').preflightChecks().catch(function (error) {\n console.error('Kredits preflight check failed!');\n console.error(error);\n });\n\n if (kredits.get('accountNeedsUnlock')) {\n if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {\n transition.retry();\n }\n }\n }).catch(function (error) {\n console.log('Error initializing Kredits', error);\n });\n },\n afterModel: function afterModel() {\n var _this = this;\n\n return this.kredits.loadInitialData().then(function () {\n _this.kredits.addContractEventHandlers();\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.kredits.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', {\n account: model.account,\n name: model.name,\n kind: model.kind,\n url: model.url,\n github_username: model.github_username,\n github_uid: model.github_uid,\n gitea_username: model.gitea_username,\n wiki_username: model.wiki_username\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributions: Ember.computed.alias('kredits.contributions'),\n model: function model(params) {\n return this.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributionId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributionId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributorId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributorId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n redirect: function redirect() {\n this.transitionTo('dashboard');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/eth-account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n redirect: function redirect() {\n this._super.apply(this, arguments);\n\n if (Ember.isEmpty(this.kredits.githubAccessToken)) {\n this.transitionTo('signup.index');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/github\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n redirect: function redirect() {\n this._super.apply(this, arguments);\n\n var accessToken;\n\n try {\n accessToken = window.location.hash.match(/access_token=(.+)/)[1];\n } catch (error) {\n /* ignore */\n }\n\n if (Ember.isEmpty(accessToken) || accessToken === 'undefined') {\n console.error('No GitHub access token found.');\n this.transitionTo('signup');\n return;\n }\n\n this.kredits.set('githubAccessToken', accessToken);\n this.transitionTo('signup.eth-account');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/ajax\", [\"exports\", \"ember-ajax/services/ajax\"], function (_exports, _ajax) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ajax.default;\n }\n });\n});","define(\"kredits-web/services/kredits\", [\"exports\", \"ethers\", \"kredits-contracts\", \"kredits-web/utils/group-by\", \"kredits-web/utils/format-kredits\", \"kredits-web/config/environment\", \"kredits-web/models/contributor\", \"kredits-web/models/proposal\", \"kredits-web/models/contribution\"], function (_exports, _ethers, _kreditsContracts, _groupBy, _formatKredits, _environment, _contributor, _proposal, _contribution) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var _default = Ember.Service.extend({\n currentBlock: null,\n currentUserAccounts: null,\n // default to not having an account. this is the wen web3 is loaded.\n currentUser: null,\n contributors: null,\n contributions: null,\n proposals: null,\n githubAccessToken: null,\n currentUserIsContributor: Ember.computed.notEmpty('currentUser'),\n currentUserIsCore: Ember.computed.alias('currentUser.isCore'),\n hasAccounts: Ember.computed.notEmpty('currentUserAccounts'),\n accountNeedsUnlock: Ember.computed('currentUserAccounts', function () {\n return this.currentUserAccounts && Ember.isEmpty(this.currentUserAccounts);\n }),\n contributionsUnconfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this = this;\n\n return this.contributions.filter(function (contribution) {\n return contribution.confirmedAt > _this.currentBlock;\n });\n }),\n contributionsConfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this2 = this;\n\n return this.contributions.filterBy('vetoed', false).filter(function (contribution) {\n return contribution.confirmedAt <= _this2.currentBlock;\n });\n }),\n kreditsByContributor: Ember.computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function () {\n var _this3 = this;\n\n var contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false);\n var contributionsGrouped = (0, _groupBy.default)(contributionsUnconfirmed, 'contributorId');\n var contributorsWithUnconfirmed = contributionsGrouped.map(function (c) {\n return c.value.toString();\n });\n var contributorsWithOnlyConfirmed = this.contributors.reject(function (c) {\n return contributorsWithUnconfirmed.includes(c.id);\n });\n var kreditsByContributor = contributionsGrouped.map(function (c) {\n var amountUnconfirmed = c.items.mapBy('amount').reduce(function (a, b) {\n return a + b;\n });\n\n var contributor = _this3.contributors.findBy('id', c.value.toString());\n\n return Ember.Object.create({\n contributor: contributor,\n amountUnconfirmed: amountUnconfirmed,\n amountConfirmed: contributor.totalKreditsEarned,\n amountTotal: contributor.totalKreditsEarned + amountUnconfirmed\n });\n });\n contributorsWithOnlyConfirmed.forEach(function (c) {\n kreditsByContributor.push(Ember.Object.create({\n contributor: c,\n amountUnconfirmed: 0,\n amountConfirmed: c.totalKreditsEarned,\n amountTotal: c.totalKreditsEarned\n }));\n });\n return kreditsByContributor;\n }),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('contributors', []);\n this.set('proposals', []);\n this.set('contributions', []);\n },\n // This is called in the application route's beforeModel(). So it is\n // initialized before everything else, and we can rely on the ethProvider and\n // the potential currentUserAccounts to be available\n getEthProvider: function getEthProvider() {\n var _this4 = this;\n\n var ethProvider;\n return new Ember.RSVP.Promise(\n /*#__PURE__*/\n function () {\n var _ref = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee2(resolve) {\n var instantiateWithoutAccount, instantiateWithAccount, _instantiateWithAccount;\n\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _instantiateWithAccount = function _ref4() {\n _instantiateWithAccount = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee(web3Provider, context) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.debug('[kredits] Using user-provided instance, e.g. from Mist browser or Metamask');\n ethProvider = new _ethers.default.providers.Web3Provider(web3Provider); // const network = await ethProvider.getNetwork();\n\n ethProvider.listAccounts().then(function (accounts) {\n context.set('currentUserAccounts', accounts);\n var ethSigner = accounts.length === 0 ? null : ethProvider.getSigner();\n resolve({\n ethProvider: ethProvider,\n ethSigner: ethSigner\n });\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _instantiateWithAccount.apply(this, arguments);\n };\n\n instantiateWithAccount = function _ref3(_x2, _x3) {\n return _instantiateWithAccount.apply(this, arguments);\n };\n\n instantiateWithoutAccount = function _ref2() {\n console.debug('[kredits] Creating new instance from npm module class');\n console.debug(\"[kredits] providerURL: \".concat(_environment.default.web3ProviderUrl));\n ethProvider = new _ethers.default.providers.JsonRpcProvider(_environment.default.web3ProviderUrl);\n resolve({\n ethProvider: ethProvider,\n ethSigner: null\n });\n };\n\n if (!window.ethereum) {\n _context2.next = 15;\n break;\n }\n\n _context2.prev = 4;\n _context2.next = 7;\n return window.ethereum.enable();\n\n case 7:\n // Acccounts now exposed\n instantiateWithAccount(window.ethereum, _this4);\n _context2.next = 13;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2[\"catch\"](4);\n instantiateWithoutAccount();\n\n case 13:\n _context2.next = 16;\n break;\n\n case 15:\n // Legacy dapp browsers...\n if (window.web3) {\n instantiateWithAccount(window.web3.currentProvider, _this4);\n } // Non-dapp browsers...\n else {\n instantiateWithoutAccount();\n }\n\n case 16:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[4, 10]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n setup: function setup() {\n var _this5 = this;\n\n return this.getEthProvider().then(function (providerAndSigner) {\n var kredits = new _kreditsContracts.default(providerAndSigner.ethProvider, providerAndSigner.ethSigner, {\n addresses: {\n Kernel: _environment.default.kreditsKernelAddress\n },\n apm: _environment.default.kreditsApmDomain,\n ipfsConfig: _environment.default.ipfs\n });\n return kredits.init().then(\n /*#__PURE__*/\n function () {\n var _ref5 = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee3(kredits) {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this5.set('kredits', kredits);\n\n _context3.t0 = _this5;\n _context3.next = 4;\n return kredits.provider.getBlockNumber();\n\n case 4:\n _context3.t1 = _context3.sent;\n\n _context3.t0.set.call(_context3.t0, 'currentBlock', _context3.t1);\n\n if (_this5.currentUserAccounts && _this5.currentUserAccounts.length > 0) {\n _this5.getCurrentUser.then(function (contributorData) {\n _this5.set('currentUser', contributorData);\n });\n }\n\n return _context3.abrupt(\"return\", kredits);\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function (_x4) {\n return _ref5.apply(this, arguments);\n };\n }());\n });\n },\n totalSupply: Ember.computed(function () {\n return this.kredits.Token.functions.totalSupply().then(function (total) {\n return (0, _formatKredits.default)(total);\n });\n }),\n totalKreditsEarned: Ember.computed(function () {\n return this.kredits.Contribution.functions.totalKreditsEarned(true).then(function (total) {\n return total.toNumber();\n });\n }),\n loadInitialData: function loadInitialData() {\n var _this6 = this;\n\n return this.getContributors().then(function (contributors) {\n return _this6.contributors.pushObjects(contributors);\n }).then(function () {\n return _this6.getContributions();\n }).then(function (contributions) {\n return _this6.contributions.pushObjects(contributions);\n });\n },\n addContributor: function addContributor(attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] add contributor', attributes);\n return this.kredits.Contributor.add(attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] add contributor response', data);\n });\n },\n updateContributor: function updateContributor(id, attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] update contributor', attributes);\n return this.kredits.Contributor.updateProfile(id, attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] updateProfile response', data);\n });\n },\n getContributors: function getContributors() {\n return this.kredits.Contributor.all().then(function (contributors) {\n return contributors.map(function (contributor) {\n return _contributor.default.create(contributor);\n });\n });\n },\n addContribution: function addContribution(attributes) {\n var _this7 = this;\n\n console.debug('[kredits] add contribution', attributes);\n return this.kredits.Contribution.addContribution(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] add contribution response', data);\n attributes.contributor = _this7.contributors.findBy('id', attributes.contributorId);\n\n var contribution = _contribution.default.create(attributes); // TODO receive from wrapper\n\n\n contribution.set('confirmedAtBlock', data.blockNumber + 40320);\n\n _this7.contributions.pushObject(contribution);\n\n return contribution;\n });\n },\n addProposal: function addProposal(attributes) {\n var _this8 = this;\n\n console.debug('[kredits] add proposal', attributes);\n return this.kredits.Proposal.addProposal(attributes).then(function (data) {\n console.debug('[kredits] add proposal response', data);\n attributes.contributor = _this8.contributors.findBy('id', attributes.contributorId);\n return _proposal.default.create(attributes);\n });\n },\n getProposals: function getProposals() {\n var _this9 = this;\n\n return this.kredits.Proposal.all().then(function (proposals) {\n return proposals.map(function (proposal) {\n proposal.contributor = _this9.contributors.findBy('id', proposal.contributorId.toString());\n return _proposal.default.create(proposal);\n });\n });\n },\n getContributions: function getContributions() {\n var _this10 = this;\n\n return this.kredits.Contribution.all({\n page: {\n size: 200\n }\n }).then(function (contributions) {\n return contributions.map(function (contribution) {\n contribution.contributor = _this10.contributors.findBy('id', contribution.contributorId.toString());\n return _contribution.default.create(contribution);\n });\n });\n },\n vote: function vote(proposalId) {\n console.debug('[kredits] vote for', proposalId);\n return this.kredits.Proposal.functions.vote(proposalId).then(function (data) {\n console.debug('[kredits] vote response', data);\n return data;\n });\n },\n veto: function veto(contributionId) {\n console.debug('[kredits] veto against', contributionId);\n return this.kredits.Contribution.functions.veto(contributionId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n return data;\n });\n },\n getCurrentUser: Ember.computed('kredits.provider', function () {\n var _this11 = this;\n\n if (Ember.isEmpty(this.currentUserAccounts)) {\n return Ember.RSVP.resolve();\n }\n\n return this.kredits.Contributor.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject')).then(function (id) {\n // check if the user is a contributor or not\n if (id === 0) {\n return Ember.RSVP.resolve();\n } else {\n return _this11.kredits.Contributor.getById(id);\n }\n });\n }),\n findProposalById: function findProposalById(proposalId) {\n return this.proposals.findBy('id', proposalId.toString());\n },\n // Contract events\n addContractEventHandlers: function addContractEventHandlers() {\n this.kredits.Contributor.on('ContributorProfileUpdated', this.handleContributorChange.bind(this)).on('ContributorAccountUpdated', this.handleContributorChange.bind(this)).on('ContributorAdded', this.handleContributorChange.bind(this));\n this.kredits.Contribution.on('ContributionVetoed', this.handleContributionVetoed.bind(this));\n this.kredits.Proposal.on('ProposalCreated', this.handleProposalCreated.bind(this)).on('ProposalVoted', this.handleProposalVoted.bind(this)).on('ProposalExecuted', this.handleProposalExecuted.bind(this));\n this.kredits.Token.on('Transfer', this.handleTransfer.bind(this));\n },\n handleContributorChange: function () {\n var _handleContributorChange = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee4(contributorId) {\n var _len,\n args,\n _key,\n contributorData,\n newContributor,\n oldContributor,\n _args4 = arguments;\n\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.debug('[kredits] Contributor add/update event received for ID', contributorId);\n\n for (_len = _args4.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = _args4[_key];\n }\n\n console.debug('[kredits] Event data:', args);\n _context4.next = 5;\n return this.kredits.Contributor.getById(contributorId);\n\n case 5:\n contributorData = _context4.sent;\n newContributor = _contributor.default.create(contributorData);\n oldContributor = this.contributors.findBy('id', contributorId.toString());\n\n if (oldContributor) {\n console.debug('[kredits] old contributor', oldContributor);\n this.contributors.removeObject(oldContributor);\n }\n\n console.debug('[kredits] new contributor', newContributor);\n this.contributors.pushObject(newContributor);\n\n case 11:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function handleContributorChange(_x5) {\n return _handleContributorChange.apply(this, arguments);\n }\n\n return handleContributorChange;\n }(),\n handleContributionVetoed: function handleContributionVetoed(contributionId) {\n console.debug('[kredits] ContributionVetoed event received for ', contributionId);\n var contribution = this.contributions.findBy('id', contributionId);\n console.debug('[kredits] contribution', contribution);\n\n if (contribution) {\n contribution.set('vetoed', true);\n }\n },\n handleProposalCreated: function handleProposalCreated(proposalId) {\n var _this12 = this;\n\n var proposal = this.findProposalById(proposalId);\n\n if (proposal) {\n console.debug('[events] proposal exists, not adding from event');\n return;\n }\n\n this.kredits.Proposal.getById(proposalId).then(function (proposal) {\n proposal.contributor = _this12.contributors.findBy('id', proposal.contributorId.toString());\n\n _this12.proposals.pushObject(_proposal.default.create(proposal));\n });\n },\n // TODO: We may want to reload that proposal to show the voter as voted\n handleProposalVoted: function handleProposalVoted(proposalId, voterId, totalVotes) {\n var proposal = this.findProposalById(proposalId);\n\n if (proposal) {\n proposal.set('votesCount', totalVotes);\n }\n },\n handleProposalExecuted: function handleProposalExecuted(proposalId, contributorId, amount) {\n var proposal = this.findProposalById(proposalId);\n\n if (proposal.get('isExecuted')) {\n console.debug('[events] proposal already executed, not adding from event');\n return;\n }\n\n proposal.set('executed', true);\n this.contributors.findBy('id', contributorId.toString()).incrementProperty('balance', amount);\n },\n handleTransfer: function handleTransfer(from, to, value) {\n value = value.toNumber();\n this.contributors.findBy('address', from).decrementProperty('balance', value);\n this.contributors.findBy('address', to).incrementProperty('balance', value);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/moment\", [\"exports\", \"ember-moment/services/moment\", \"kredits-web/config/environment\"], function (_exports, _moment, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var get = Ember.get;\n\n var _default = _moment.default.extend({\n defaultFormat: get(_environment.default, 'moment.outputFormat')\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application-loading\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"xIBaadOO\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[23,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application-loading.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"n0l12247\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"header\\\"],[11,\\\"id\\\",\\\"topbar\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[9],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"dashboard\\\"]],{\\\"statements\\\":[[0,\\\"Kosmos Kredits\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[1,[23,\\\"topbar-account-panel\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[23,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Qh3b3zeA\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contribution\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Submit a contribution\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contribution\\\",null,[[\\\"contributors\\\",\\\"save\\\"],[[25,[\\\"sortedContributors\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Nh2+dVjE\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contributor\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Update contributor profile\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contributor\\\",null,[[\\\"attributes\\\",\\\"save\\\"],[[25,[\\\"attributes\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/edit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"T7trqSXO\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contributor\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Add contributor profile\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contributor\\\",null,[[\\\"save\\\"],[[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wJtINv3A\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"id\\\",\\\"dashboard\\\"],[12,\\\"class\\\",[29,\\\"if\\\",[[25,[\\\"showDetailsPane\\\"]],\\\"with-details\\\"],null]],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"people\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contributors\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\"],[\\\"Add contributor profile\\\",\\\"button small green\\\",\\\"contributors.new\\\"]],{\\\"statements\\\":[[0,\\\"add\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"contributor-list\\\",null,[[\\\"contributorList\\\",\\\"showUnconfirmedKredits\\\",\\\"selectedContributorId\\\"],[[25,[\\\"kreditsToplist\\\"]],[25,[\\\"showUnconfirmedKredits\\\"]],[25,[\\\"selectedContributorId\\\"]]]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"number\\\"],[9],[1,[29,\\\"await\\\",[[25,[\\\"kredits\\\",\\\"totalKreditsEarned\\\"]]],null],false],[10],[0,\\\" kredits confirmed and issued to\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"number\\\"],[9],[1,[25,[\\\"contributorsWithKredits\\\",\\\"length\\\"]],false],[10],[0,\\\" contributors\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"hide-unnconfirmed-kredits\\\",[25,[\\\"showUnconfirmedKredits\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"hide-unnconfirmed-kredits\\\"],[9],[0,\\\"Show unconfirmed kredits in toplist\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-by-type\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contributions by type\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"chart-contributions-by-type\\\",null,[[\\\"contributions\\\"],[[25,[\\\"contributions\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"contributions\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"contributionsUnconfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-unconfirmed\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Latest Contributions\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[30,[\\\"small \\\",[29,\\\"if\\\",[[25,[\\\"showQuickFilterUnconfirmed\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"filter\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"toggleQuickFilterUnconfirmed\\\"]],[10],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\"],[\\\"Submit a contribution\\\",\\\"button small green\\\",\\\"contributions.new\\\"]],{\\\"statements\\\":[[0,\\\"add\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[1,[29,\\\"contribution-list\\\",null,[[\\\"contributions\\\",\\\"vetoContribution\\\",\\\"contractInteractionEnabled\\\",\\\"selectedContributionId\\\",\\\"showQuickFilter\\\"],[[25,[\\\"contributionsUnconfirmedSorted\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"vetoContribution\\\"],null],[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]],[25,[\\\"selectedContributionId\\\"]],[25,[\\\"showQuickFilterUnconfirmed\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-confirmed\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Confirmed Contributions\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[30,[\\\"small \\\",[29,\\\"if\\\",[[25,[\\\"showQuickFilterConfirmed\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"filter\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"toggleQuickFilterConfirmed\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"contribution-list\\\",null,[[\\\"contributions\\\",\\\"vetoContribution\\\",\\\"selectedContributionId\\\",\\\"showQuickFilter\\\"],[[25,[\\\"contributionsConfirmedSorted\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"vetoContribution\\\"],null],[25,[\\\"selectedContributionId\\\"]],[25,[\\\"showQuickFilterConfirmed\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"details\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"5w0/Xa/Y\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contribution-details\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contribution #\\\"],[1,[25,[\\\"model\\\",\\\"id\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[25,[\\\"model\\\",\\\"amount\\\"]],false],[10],[0,\\\" \\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"who-what-when\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"contributor\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[25,[\\\"model\\\",\\\"contributor\\\"]]]]],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"dashboard.contributors.show\\\",[25,[\\\"model\\\",\\\"contributor\\\"]]]],{\\\"statements\\\":[[1,[25,[\\\"model\\\",\\\"contributor\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n contributed\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"date\\\"],[12,\\\"title\\\",[25,[\\\"model\\\",\\\"iso8601Date\\\"]]],[9],[1,[29,\\\"moment-from\\\",[[25,[\\\"model\\\",\\\"iso8601Date\\\"]]],null],false],[10],[0,\\\":\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[25,[\\\"model\\\",\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Kind: \\\"],[1,[25,[\\\"model\\\",\\\"kind\\\"]],false],[0,\\\"\\\\n \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"Status: \\\"],[1,[29,\\\"contribution-status\\\",[[25,[\\\"model\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"model\\\",\\\"url\\\"]]],[12,\\\"title\\\",[25,[\\\"model\\\",\\\"description\\\"]]],[11,\\\"class\\\",\\\"button\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"\\\\n Open URL\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://ipfs.io/ipfs/\\\",[25,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributions/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MQ3uD3UV\",\n \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributor-profile\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\",\\\"size\\\"],[[25,[\\\"model\\\"]],\\\"medium\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[25,[\\\"model\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"role\\\"],[9],[1,[23,\\\"roleName\\\"],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"external-accounts\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"model\\\",\\\"accounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"external-account-link\\\",null,[[\\\"account\\\"],[[24,1,[]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"model\\\",\\\"url\\\"]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[11,\\\"title\\\",\\\"Website\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"site\\\"],[9],[0,\\\"Web\\\"],[10],[0,\\\"\\\\n \\\"],[1,[23,\\\"icon-web-globe\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://rinkeby.etherscan.io/address/\\\",[25,[\\\"model\\\",\\\"account\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"Inspect Ethereum transactions\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://ipfs.io/ipfs/\\\",[25,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"Inspect IPFS profile\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"button small\\\",\\\"contributors.edit\\\",[25,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"Edit profile\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributors/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/proposals/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JAv6QiTC\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-proposal\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Add Proposal\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-proposal\\\",null,[[\\\"contributors\\\",\\\"save\\\"],[[25,[\\\"minedContributors\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/proposals/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"oYV04pJl\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"signup\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"vw9BEH2t\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Welcome aboard!\\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content text-lg text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Congratulations. Your initial profile is now complete.\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Why not say hi to your fellow contributors\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"https://wiki.kosmos.org/Main_Page#Community_.2F_Getting_in_touch_.2F_Getting_involved\\\"],[9],[0,\\\"in one of our chat rooms\\\"],[10],[0,\\\"?.\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\"],[\\\"button small\\\",\\\"dashboard\\\"]],{\\\"statements\\\":[[0,\\\"Return to dashboard\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/complete.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/eth-account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"SdPScpbK\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Complete your contributor profile\\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content text-lg\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"mg-bottom-md\\\"],[9],[0,\\\"\\\\n Kredits allow you to take part in project governance, and to earn rewards for\\\\n your contributions. For both, you will need an Ethereum wallet/account.\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n Ethereum account:\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"text\\\",[25,[\\\"ethAddress\\\"]],\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\",[29,\\\"if\\\",[[25,[\\\"isValidEthAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[23,\\\"signupButtonDisabled\\\"]],[9],[0,\\\"\\\\n Complete my profile\\\\n \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"completeSignup\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/eth-account.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"tt7XHpu0\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Create your contributor profile\\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content text-lg\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n You have already contributed to a Kosmos project, or you are interested\\\\n in contributing in the near future? Fantastic!\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n In order to earn kredits for your contributions, you will need a\\\\n registered contributor profile. The quickest way to register is by\\\\n connecting one of the following accounts:\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"icon\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,\\\"icon-account-github-com\\\"],false],[0,\\\"\\\\n Connect GitHub\\\\n \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"connectGithub\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/index.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/utils/cps/bignumber\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(dependentKey, converterMethod) {\n return Ember.computed(dependentKey, {\n get: function get() {\n var value = this.get(dependentKey);\n\n if (value && _ethers.default.utils.BigNumber.isBigNumber(value)) {\n return value[converterMethod]();\n } else {\n return value;\n }\n },\n set: function set(key, value) {\n var bnValue = _ethers.default.utils.bigNumberify(value);\n\n this.set(dependentKey, bnValue);\n return bnValue[converterMethod]();\n }\n });\n }\n});","define(\"kredits-web/utils/cps/kredits\", [\"exports\", \"ethers\", \"kredits-web/utils/format-kredits\"], function (_exports, _ethers, _formatKredits) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(dependentKey) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return Ember.computed(dependentKey, {\n get: function get() {\n var value = this.get(dependentKey);\n return (0, _formatKredits.default)(value, options);\n },\n set: function set(key, value) {\n var bnValue = _ethers.default.utils.bigNumberify(value);\n\n this.set(dependentKey, bnValue);\n return (0, _formatKredits.default)(bnValue, options);\n }\n });\n }\n});","define(\"kredits-web/utils/format-kredits\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(value) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var etherValue = _ethers.default.utils.formatEther(value);\n\n if (!options.decimals) {\n etherValue = parseInt(etherValue).toString();\n }\n\n return etherValue;\n }\n});","define(\"kredits-web/utils/group-by\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = groupBy;\n\n function groupBy(collection, property) {\n var groups = Ember.A();\n var items = collection;\n\n if (items) {\n items.forEach(function (item) {\n var value = Ember.get(item, property);\n var group = groups.findBy('value', value);\n\n if (Ember.isPresent(group)) {\n Ember.get(group, 'items').push(item);\n } else {\n group = {\n property: property,\n value: value,\n items: [item]\n };\n groups.push(group);\n }\n });\n }\n\n return groups;\n }\n});","define('kredits-web/config/environment', [], function() {\n var prefix = 'kredits-web';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n if (!runningTests) {\n require(\"kredits-web/app\")[\"default\"].create({\"name\":\"kredits-web\",\"version\":\"1.8.0+74c8e32c\"});\n }\n \n"]} \ No newline at end of file diff --git a/release/assets/kredits-web-d10376425f05f7b4f82219223591f0de.map b/release/assets/kredits-web-d10376425f05f7b4f82219223591f0de.map deleted file mode 100644 index b72a8148..00000000 --- a/release/assets/kredits-web-d10376425f05f7b4f82219223591f0de.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["vendor/ember-cli/app-prefix.js","kredits-web/app.js","kredits-web/components/add-contribution/component.js","kredits-web/components/add-contribution/template.js","kredits-web/components/add-contributor/component.js","kredits-web/components/add-contributor/template.js","kredits-web/components/add-proposal/component.js","kredits-web/components/add-proposal/template.js","kredits-web/components/chart-contributions-by-type/component.js","kredits-web/components/chart-contributions-by-type/template.js","kredits-web/components/contribution-list/component.js","kredits-web/components/contribution-list/template.js","kredits-web/components/contributor-list/component.js","kredits-web/components/contributor-list/template.js","kredits-web/components/ember-chart.js","kredits-web/components/ember-flatpickr.js","kredits-web/components/external-account-link/component.js","kredits-web/components/external-account-link/template.js","kredits-web/components/icon-account-gitea-kosmos-org/component.js","kredits-web/components/icon-account-gitea-kosmos-org/template.js","kredits-web/components/icon-account-github-com/component.js","kredits-web/components/icon-account-github-com/template.js","kredits-web/components/icon-account-wiki-kosmos-org/component.js","kredits-web/components/icon-account-wiki-kosmos-org/template.js","kredits-web/components/icon-web-globe/component.js","kredits-web/components/icon-web-globe/template.js","kredits-web/components/loading-spinner/component.js","kredits-web/components/loading-spinner/template.js","kredits-web/components/proposal-list/component.js","kredits-web/components/proposal-list/template.js","kredits-web/components/user-avatar/component.js","kredits-web/components/user-avatar/template.js","kredits-web/controllers/application.js","kredits-web/controllers/contributions/new.js","kredits-web/controllers/contributors/edit.js","kredits-web/controllers/contributors/new.js","kredits-web/controllers/dashboard.js","kredits-web/controllers/dashboard/contributors/show.js","kredits-web/controllers/proposals/new.js","kredits-web/helpers/and.js","kredits-web/helpers/app-version.js","kredits-web/helpers/await.js","kredits-web/helpers/capitalize-string.js","kredits-web/helpers/contribution-status.js","kredits-web/helpers/eq.js","kredits-web/helpers/gt.js","kredits-web/helpers/gte.js","kredits-web/helpers/is-after.js","kredits-web/helpers/is-array.js","kredits-web/helpers/is-before.js","kredits-web/helpers/is-between.js","kredits-web/helpers/is-confirmed-contribution.js","kredits-web/helpers/is-current-user.js","kredits-web/helpers/is-equal.js","kredits-web/helpers/is-fulfilled.js","kredits-web/helpers/is-pending.js","kredits-web/helpers/is-rejected.js","kredits-web/helpers/is-same-or-after.js","kredits-web/helpers/is-same-or-before.js","kredits-web/helpers/is-same.js","kredits-web/helpers/lt.js","kredits-web/helpers/lte.js","kredits-web/helpers/moment-add.js","kredits-web/helpers/moment-calendar.js","kredits-web/helpers/moment-diff.js","kredits-web/helpers/moment-duration.js","kredits-web/helpers/moment-format.js","kredits-web/helpers/moment-from-now.js","kredits-web/helpers/moment-from.js","kredits-web/helpers/moment-subtract.js","kredits-web/helpers/moment-to-date.js","kredits-web/helpers/moment-to-now.js","kredits-web/helpers/moment-to.js","kredits-web/helpers/moment-unix.js","kredits-web/helpers/moment.js","kredits-web/helpers/not-eq.js","kredits-web/helpers/not.js","kredits-web/helpers/now.js","kredits-web/helpers/or.js","kredits-web/helpers/promise-all.js","kredits-web/helpers/promise-hash.js","kredits-web/helpers/promise-rejected-reason.js","kredits-web/helpers/unix.js","kredits-web/helpers/utc.js","kredits-web/helpers/xor.js","kredits-web/initializers/app-version.js","kredits-web/initializers/container-debug-adapter.js","kredits-web/initializers/export-application-global.js","kredits-web/models/contribution.js","kredits-web/models/contributor.js","kredits-web/models/proposal.js","kredits-web/resolver.js","kredits-web/router.js","kredits-web/routes/application.js","kredits-web/routes/contributors/edit.js","kredits-web/routes/dashboard/contributions/show.js","kredits-web/routes/dashboard/contributors/show.js","kredits-web/routes/index.js","kredits-web/services/ajax.js","kredits-web/services/kredits.js","kredits-web/services/moment.js","kredits-web/templates/application-loading.js","kredits-web/templates/application.js","kredits-web/templates/contributions/new.js","kredits-web/templates/contributors/edit.js","kredits-web/templates/contributors/new.js","kredits-web/templates/dashboard.js","kredits-web/templates/dashboard/contributions/show.js","kredits-web/templates/dashboard/contributors/show.js","kredits-web/templates/proposals/new.js","kredits-web/utils/cps/bignumber.js","kredits-web/utils/cps/kredits.js","kredits-web/utils/format-kredits.js","kredits-web/utils/group-by.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"names":["define","_exports","_resolver","_emberLoadInitializers","_environment","Object","defineProperty","value","default","App","Ember","Application","extend","modulePrefix","podModulePrefix","Resolver","_default","_moment","_slicedToArray","arr","i","Array","isArray","_arrayWithHoles","_arr","_n","_d","_e","undefined","_s","_i","Symbol","iterator","next","done","push","length","err","_iterableToArrayLimit","TypeError","_nonIterableRest","Component","attributes","contributors","freeze","isValidContributor","computed","notEmpty","isValidKind","isValidAmount","parseInt","this","amount","isValidDescription","isValidUrl","isValid","and","init","_super","apply","arguments","set","startOf","toDate","contributorId","kind","date","defaultDate","description","url","reset","setProperties","actions","submit","_this","getProperties","keys","_dateInput$toISOStrin2","toISOString","split","_ref","time","save","then","console","warn","window","alert","finally","HTMLBars","template","id","block","meta","moduleName","kredits","inject","service","isValidAccount","isValidName","isValidURL","isValidGithubUID","isValidGithubUsername","isValidGiteaUsername","isValidWikiUsername","inProgress","setDefaultAttributes","isPresent","account","name","github_username","github_uid","gitea_username","wiki_username","contributor","catch","didInsertElement","proposal","saved","scroll","categoryColors","contributions","chartOptions","legend","display","chartData","filterBy","map","c","reduce","kinds","datasets","data","borderColor","borderWidth","labels","router","tagName","classNames","selectedContribution","showQuickFilter","hideSmallContributions","contributionKind","contributorsSorting","sort","contributorsActive","activeIds","mapBy","toString","uniq","filter","includes","contributionKinds","contributionsFiltered","included","veto","contributionId","contractInteractionEnabled","vetoContribution","openContributionDetails","contribution","transitionTo","selectedContributorId","openContributorDetails","_emberChart","_emberFlatpickr","enumerable","get","iconComponentName","site","match","replace","confirm","proposalId","confirmProposal","SIZES","small","medium","large","classNameBindings","attributeBindings","size","src","alias","title","avatarURL","concat","Controller","minedContributors","sortedContributors","findBy","contributorIpfsHash","ipfsHash","addContribution","transitionToRoute","updateContributor","model","addContributor","showDetailsPane","selectedContributionId","currentBlock","contributionsConfirmed","contributionsUnconfirmed","contributionsSorting","contributionsUnconfirmedSorted","contributionsConfirmedSorted","kreditsByContributor","kreditsToplistSorting","showUnconfirmedKredits","kreditsToplist","hideUnconfirmedKredits","not","showQuickFilterUnconfirmed","showQuickFilterConfirmed","transaction","debug","hash","vote","toggleQuickFilterUnconfirmed","toggleProperty","toggleQuickFilterConfirmed","roleName","isCore","totalKreditsEarned","addProposal","_and","_regexp","appVersion","_","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","Helper","helper","_await","compute","string","charAt","toUpperCase","slice","vetoed","confirmedAt","_equal","equal","_gt","gt","_gte","gte","_isAfter","_isArray","_isBefore","_isBetween","currentUser","_isEqual","isEqual","_isFulfilled","isFulfilled","_isPending","isPending","_isRejected","isRejected","_isSameOrAfter","_isSameOrBefore","_isSame","_lt","lt","_lte","lte","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_unix","_notEqual","notEq","_not","_now","_or","or","_promiseAll","promiseAll","_promiseHash","promiseHash","_promiseRejectedReason","_utc","utc","_xor","xor","_initializerFactory","initialize","_containerDebugAdapter","app","register","application","exportApplicationGlobal","theGlobal","global","self","globalName","String","classify","reopen","willDestroy","_bignumber","creatorAccount","details","ipfsData","iso8601Date","_kredits","balance","contributionsCount","votesCount","votesNeeded","executed","isExecuted","_emberResolver","Router","location","locationType","rootURL","route","path","Route","beforeModel","transition","setup","preflightChecks","error","retry","log","afterModel","loadInitialData","addContractEventHandlers","params","setupController","controller","controllerFor","deactivate","redirect","_ajax","_ethers","_kreditsContracts","_groupBy","_formatKredits","_contributor","_proposal","_contribution","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","Promise","_asyncToGenerator","fn","args","Service","currentUserAccounts","proposals","currentUserIsContributor","currentUserIsCore","hasAccounts","accountNeedsUnlock","isEmpty","_this2","_this3","contributionsGrouped","contributorsWithUnconfirmed","contributorsWithOnlyConfirmed","amountUnconfirmed","items","a","b","create","amountConfirmed","amountTotal","forEach","getEthProvider","ethProvider","_this4","RSVP","regeneratorRuntime","mark","_callee2","instantiateWithoutAccount","instantiateWithAccount","_instantiateWithAccount","wrap","_context2","prev","_callee","web3Provider","context","_context","providers","Web3Provider","listAccounts","accounts","ethSigner","getSigner","stop","_x2","_x3","web3ProviderUrl","JsonRpcProvider","ethereum","enable","t0","web3","currentProvider","_x","_this5","providerAndSigner","addresses","Kernel","kreditsKernelAddress","apm","kreditsApmDomain","ipfsConfig","ipfs","_ref5","_callee3","_context3","provider","getBlockNumber","t1","sent","call","getCurrentUser","contributorData","abrupt","_x4","totalSupply","Token","functions","total","Contribution","toNumber","_this6","getContributors","pushObjects","getContributions","uidInt","Contributor","add","gasLimit","updateProfile","all","_this7","blockNumber","pushObject","_this8","Proposal","getProposals","_this9","_this10","page","_this11","getContributorIdByAddress","getById","findProposalById","on","handleContributorChange","bind","handleContributionVetoed","handleProposalCreated","handleProposalVoted","handleProposalExecuted","handleTransfer","_handleContributorChange","_callee4","_len","_key","newContributor","oldContributor","_args4","_context4","removeObject","_x5","_this12","voterId","totalVotes","incrementProperty","from","to","decrementProperty","defaultFormat","dependentKey","converterMethod","utils","BigNumber","isBigNumber","bnValue","bigNumberify","options","etherValue","formatEther","decimals","collection","property","groups","A","item","group","metaName","prefix","rawConfig","document","querySelector","getAttribute","exports","JSON","parse","decodeURIComponent","Error","runningTests","require"],"mappings":"AAAA;ACAAA,OAAA,kBAAA,CAAA,UAAA,uBAAA,0BAAA,kCAAA,SAAAC,EAAAC,EAAAC,EAAAC,GAGAC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAC,EAAAC,MAAAC,YAAAC,OAAA,CACAC,aAAAT,EAAAI,QAAAK,aACAC,gBAAAV,EAAAI,QAAAM,gBACAC,SAAAb,EAAAM,WAEA,EAAAL,EAAAK,SAAAC,EAAAL,EAAAI,QAAAK;AACA,IAAAG,EAAAP;AACAR,EAAAO,QAAAQ,ICdAhB,OAAA,oDAAA,CAAA,UAAA,UAAA,SAAAC,EAAAgB,GAQA,SAAAC,EAAAC,EAAAC,GAAA,OAMA,SAAAD,GAAA,GAAAE,MAAAC,QAAAH,GAAA,OAAAA,EANAI,CAAAJ,IAIA,SAAAA,EAAAC,GAAA,IAAAI,EAAA,GAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC;AAAA,IAAA,IAAA,IAAAC,EAAAC,EAAAX,EAAAY,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,QAAAV,EAAAW,KAAAN,EAAAtB,QAAAa,GAAAI,EAAAY,SAAAhB,GAAAK,GAAA,IAAA,MAAAY,GAAAX,GAAA,EAAAC,EAAAU,EAAA,QAAA,IAAAZ,GAAA,MAAAK,EAAA,QAAAA,EAAA,SAAA,QAAA,GAAAJ,EAAA,MAAAC,GAAA,OAAAH,EAJAc,CAAAnB,EAAAC,IAEA,WAAA,MAAA,IAAAmB,UAAA,wDAFAC,GALAnC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAUA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA8B,WAAA,KACAC,aAAAtC,OAAAuC,OAAA,IACAC,mBAAAnC,MAAAoC,SAAAC,SAAA,iBACAC,YAAAtC,MAAAoC,SAAAC,SAAA,QACAE,cAAAvC,MAAAoC,SAAA,SAAA,WACA,OAAAI,SAAAC,KAAAC,OAAA,IAAA,IAEAC,mBAAA3C,MAAAoC,SAAAC,SAAA,eACAO,WAAA5C,MAAAoC,SAAAC,SAAA,OACAQ,QAAA7C,MAAAoC,SAAAU,IAAA,qBAAA,cAAA,gBAAA,sBACAC,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAU,IAAA,eAAA,EAAA5C,EAAAT,WAAAsD,QAAA,QAAAC,UAEAZ,KAAAU,IAAA,aAAA,CACAG,cAAA,KACAC,KAAA,KACAC,KAAAf,KAAAgB,YACAf,OAAA,KACAgB,YAAA,KACAC,IAAA,OAEAlB,KAAAmB,SAEAA,MAAA,WACAnB,KAAAoB,cAAApB,KAAAT,aAEA8B,QAAA,CACAC,OAAA,WACA,IAAAC,EAAAvB;AAEA,GAAAA,KAAAI,QAAA,CAKA,IAAAb,EAAAS,KAAAwB,cAAAtE,OAAAuE,KAAAzB,KAAAT,aAIAmC,EAAA3D,GAHAwB,EAAAwB,gBAAA7C,MAAAqB,EAAAwB,KAAA,GAAAxB,EAAAwB,MAEAY,cAAAC,MAAA,KACA,GAIAC,EAAA,CAHAH,EAAA,GACAA,EAAA;AAGAnC,EAAAwB,KAAAc,EAAA,GACAtC,EAAAuC,KAAAD,EAAA,GACA7B,KAAAU,IAAA,cAAA,GACAV,KAAA+B,KAAAxC,GAAAyC,KAAA,WAGAT,EAAAJ,SACA,SAAAjC,GACA+C,QAAAC,KAAAhD,GACAiD,OAAAC,MAAA,kEACAC,QAAA,WACA,OAAAd,EAAAb,IAAA,cAAA,UAxBA0B,MAAA;AA8BAtF,EAAAO,QAAAQ,IChFAhB,OAAA,mDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,knHACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,mDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAvD,WAAA,KAEAwD,eAAAxF,MAAAoC,SAAAC,SAAA,WACAoD,YAAAzF,MAAAoC,SAAAC,SAAA,QACAqD,WAAA1F,MAAAoC,SAAAC,SAAA,OACAsD,iBAAA3F,MAAAoC,SAAAC,SAAA,cACAuD,sBAAA5F,MAAAoC,SAAAC,SAAA,mBACAwD,qBAAA7F,MAAAoC,SAAAC,SAAA,kBACAyD,oBAAA9F,MAAAoC,SAAAC,SAAA,iBACAQ,QAAA7C,MAAAoC,SAAAU,IAAA,iBAAA,cAAA,oBACAiD,YAAA,EACAhD,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAuD,uBACAvD,KAAAmB,SAEAoC,qBAAA,WACAhG,MAAAiG,UAAAxD,KAAAT,aAIAS,KAAAU,IAAA,aAAA,CACA+C,QAAA,KACAC,KAAA,KACA5C,KAAA,SACAI,IAAA,KACAyC,gBAAA,KACAC,WAAA,KACAC,eAAA,KACAC,cAAA,QAGA3C,MAAA,WACAnB,KAAAoB,cAAApB,KAAAT,aAEA8B,QAAA,CACAC,OAAA,WACA,IAAAC,EAAAvB;AAEA,GAAAA,KAAAI,QAAA,CAKA,IAAAb,EAAArC,OAAAuE,KAAAzB,KAAAT,YACAwE,EAAA/D,KAAAwB,cAAAjC;AACAS,KAAAU,IAAA,cAAA,GACAV,KAAA+B,KAAAgC,GAAA/B,KAAA,WACAT,EAAAJ,UACA6C,MAAA,SAAA9E,GACA+C,QAAAC,KAAAhD,GACAiD,OAAAC,MAAA,6DACAC,QAAA,WACAd,EAAAb,IAAA,cAAA,UAbA0B,MAAA;AAmBAtF,EAAAO,QAAAQ,ICtEAhB,OAAA,kDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,2vGACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,gDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA8B,WAAA,KACAC,aAAAtC,OAAAuC,OAAA,IACAC,mBAAAnC,MAAAoC,SAAAC,SAAA,iBACAE,cAAAvC,MAAAoC,SAAA,SAAA,WACA,OAAAI,SAAAC,KAAAC,OAAA,IAAA,IAEAC,mBAAA3C,MAAAoC,SAAAC,SAAA,eACAO,WAAA5C,MAAAoC,SAAAC,SAAA,OACAQ,QAAA7C,MAAAoC,SAAAU,IAAA,qBAAA,gBAAA,sBACAC,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAGAT,KAAAU,IAAA,aAAA,CACAG,cAAA,KACAC,KAAA,YACAb,OAAA,KACAgB,YAAA,KACAC,IAAA,QAGA+C,iBAAA,WACAjE,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAmB,SAEAA,MAAA,WACAnB,KAAAoB,cAAApB,KAAAT,aAEA8B,QAAA,CACAC,OAAA,WACA,IAAAC,EAAAvB;AAEA,GAAAA,KAAAI,QAAA,CAKA,IAAAb,EAAArC,OAAAuE,KAAAzB,KAAAT,YACA2E,EAAAlE,KAAAwB,cAAAjC,GACA4E,EAAAnE,KAAA+B,KAAAmC;AAEAlE,KAAAU,IAAA,aAAAyD,GACAA,EAAAnC,KAAA,WACAT,EAAAJ,QAEAgB,OAAAiC,OAAA,EAAA,GACAjC,OAAAC,MAAA,0BAbAA,MAAA;AAmBAtF,EAAAO,QAAAQ,IC9DAhB,OAAA,+CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,umFACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,+DAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAgH,EACA,UADAA,EAEA,UAFAA,EAGA,UAHAA,EAIA,UAJAA,EAKA,UAGAxG,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6G,cAAA,KACAC,aAAArH,OAAAuC,OAAA,CACA+E,OAAA,CACAC,SAAA,KAGAC,UAAAnH,MAAAoC,SAAA,gBAAA,WACA,IAAAiD,EAAA5C,KAAAsE,cAAAK,SAAA,UAAA,GAAAC,IAAA,SAAAC,GACA,MAAA,CACA/D,KAAA+D,EAAA/D,KACAb,OAAA4E,EAAA5E,UAEA6E,OAAA,SAAAC,EAAAF,GAOA,OANAA,EAAA/D,QAAAiE,EACAA,EAAAF,EAAA/D,MAAAiE,EAAAF,EAAA/D,MAAA+D,EAAA5E,OAEA8E,EAAAF,EAAA/D,MAAA+D,EAAA5E,OAGA8E,GACA;AACA,MAAA,CACAC,SAAA,CAAA,CACAC,KAAA,CAAArC,EAAA,UAAAA,EAAA,OAAAA,EAAA,IAAAA,EAAA,IAAAA,EAAA,MACAsC,YAAA,CAAAb,EAAAA,EAAAA,EAAAA,EAAAA,GACAc,YAAA,IAEAC,OAAA,CAAA,YAAA,SAAA,cAAA,8BAAA;AAKAtI,EAAAO,QAAAQ,IChDAhB,OAAA,8DAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,2PACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,qDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA4H,OAAA9H,MAAAsF,OAAAC,UACAwC,QAAA,MACAC,WAAA,CAAA,iBACAC,qBAAA,KACAC,iBAAA,EACAC,wBAAA,EACA7E,cAAA,KACA8E,iBAAA,KACA/C,QAAArF,MAAAsF,OAAAC,UACA8C,oBAAA1I,OAAAuC,OAAA,CAAA,aACAD,aAAAjC,MAAAoC,SAAAkG,KAAA,uBAAA,uBACAC,mBAAAvI,MAAAoC,SAAA,kBAAA,gBAAA,WACA,IAAAoG,EAAA/F,KAAAsE,cAAA0B,MAAA,iBAAApB,IAAA,SAAApC,GACA,OAAAA,EAAAyD,aACAC;AACA,OAAAlG,KAAAR,aAAA2G,OAAA,SAAAtB,GACA,OAAAkB,EAAAK,SAAAvB,EAAArC,GAAAyD,gBAGAI,kBAAA9I,MAAAoC,SAAA,mBAAA,WACA,OAAAK,KAAAsE,cAAA0B,MAAA,QAAAE,SAEAI,sBAAA/I,MAAAoC,SAAA,mBAAA,yBAAA,gBAAA,mBAAA,WACA,IAAA4B,EAAAvB;AAEA,OAAAA,KAAAsE,cAAA6B,OAAA,SAAAtB,GACA,IAAA0B,GAAA;AAcA,OAZAhF,EAAAmE,wBAAAb,EAAA5E,QAAA,MACAsG,GAAA,GAGAhJ,MAAAiG,UAAAjC,EAAAV,gBAAAgE,EAAAhE,cAAAoF,aAAA1E,EAAAV,cAAAoF,aACAM,GAAA,GAGAhJ,MAAAiG,UAAAjC,EAAAoE,mBAAAd,EAAA/D,OAAAS,EAAAoE,mBACAY,GAAA,GAGAA,MAGAlF,QAAA,CACAmF,KAAA,SAAAC,GACAzG,KAAA0G,2BACA1G,KAAA2G,iBAAAF,GAEAtE,OAAAC,MAAA,2EAGAwE,wBAAA,SAAAC,GACA7G,KAAAqF,OAAAyB,aAAA,+BAAAD;AAKA/J,EAAAO,QAAAQ,IClEAhB,OAAA,oDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,i1GACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,oDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA4H,OAAA9H,MAAAsF,OAAAC,UACAwC,QAAA,QACAC,WAAA,mBACAwB,sBAAA,KACA1F,QAAA,CACA2F,uBAAA,SAAAjD,GACA/D,KAAAqF,OAAAyB,aAAA,8BAAA/C;AAKAjH,EAAAO,QAAAQ,ICpBAhB,OAAA,mDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,ksCACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,qCAAA,CAAA,UAAA,0CAAA,SAAAC,EAAAmK,GAGA/J,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAQ,EAAAoJ,EAAA5J;AACAP,EAAAO,QAAAQ,ICRAhB,OAAA,yCAAA,CAAA,UAAA,8CAAA,SAAAC,EAAAoK,GAGAhK,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAF,EAAA7J,aCTAR,OAAA,yDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA,GACA7B,QAAA,KACA4D,kBAAA9J,MAAAoC,SAAA,eAAA,WACA,OAAAK,KAAAyD,QAAA6D,KAAAC,MAAA,qBACA,gBAAAvH,KAAAyD,QAAA6D,KAAAE,QAAA,MAAA,KAEA;AAKA1K,EAAAO,QAAAQ,ICpBAhB,OAAA,wDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,yYACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,iEAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA;AAGAxI,EAAAO,QAAAQ,ICZAhB,OAAA,gEAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,kyOACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,2DAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA;AAGAxI,EAAAO,QAAAQ,ICZAhB,OAAA,0DAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,ioGACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,gEAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA;AAGAxI,EAAAO,QAAAQ,ICZAhB,OAAA,+DAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,qmCACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,kDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA;AAGAxI,EAAAO,QAAAQ,ICZAhB,OAAA,iDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,s8DACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,mDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA8H,WAAA,CAAA;AAGAzI,EAAAO,QAAAQ,ICZAhB,OAAA,kDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,07BACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,iDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+B,UAAA7B,OAAA,CACA6H,QAAA,KACAC,WAAA,CAAA,iBACAlE,QAAA,CACAoG,QAAA,SAAAC,GACA1H,KAAA0G,2BACA1G,KAAA2H,gBAAAD,GAEAvF,OAAAC,MAAA;AAMAtF,EAAAO,QAAAQ,ICtBAhB,OAAA,gDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,k3CACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,+CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAuK,EAAA,CACAC,MAAA,MAEAC,OAAA,MACAC,MAAA,OAGAlK,EAAAN,MAAA+B,UAAA7B,OAAA,CACAsG,YAAA,KACAuB,QAAA,MACAC,WAAA,CAAA,UACAyC,kBAAA,CAAA,QACAC,kBAAA,CAAA,MAAA,SACAC,KAAA,QACAC,IAAA5K,MAAAoC,SAAAyI,MAAA,aACAC,MAAA9K,MAAAoC,SAAAyI,MAAA,oBACAE,UAAA/K,MAAAoC,SAAA,yBAAA,OAAA,WACA,IAAAiE,EAAA5D,KAAA+D,YAAAH;AAEA,GAAAA,EACA,MAAA,4CAAA2E,OAAA3E,EAAA,WAAA2E,OAAAX,EAAA5H,KAAAkI;AAKApL,EAAAO,QAAAQ;AChCAhB,OAAA,8CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,iDACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,sCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC;AAGAhG,EAAAO,QAAAQ,ICZAhB,OAAA,4CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAtD,aAAAjC,MAAAoC,SAAAyI,MAAA,wBACAK,kBAAAlL,MAAAoC,SAAAgF,SAAA,eAAA,MACAiB,oBAAA1I,OAAAuC,OAAA,CAAA,aACAiJ,mBAAAnL,MAAAoC,SAAAkG,KAAA,oBAAA,uBACAxE,QAAA,CACAU,KAAA,SAAA8E,GACA,IAAAtF,EAAAvB,KAEA+D,EAAA/D,KAAAR,aAAAmJ,OAAA,KAAA9B,EAAAhG;AAEA,OADAgG,EAAA+B,oBAAA7E,EAAA8E,SACA7I,KAAA4C,QAAAkG,gBAAAjC,GAAA7E,KAAA,SAAA6E,GAGA,OAFAtF,EAAAwH,kBAAA,SAEAlC;AAMA/J,EAAAO,QAAAQ,IC7BAhB,OAAA,4CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAzB,QAAA,CACAU,KAAA,SAAAxC,GACA,IAAAgC,EAAAvB;AAEA,OAAAA,KAAA4C,QAAAoG,kBAAAhJ,KAAAiJ,MAAAzG,GAAAjD,GAAAyC,KAAA,WACA,OAAAT,EAAAwH,kBAAA;AAMAjM,EAAAO,QAAAQ,ICrBAhB,OAAA,2CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAzB,QAAA,CACAU,KAAA,SAAAgC,GACA,IAAAxC,EAAAvB;AAEA,OAAAA,KAAA4C,QAAAsG,eAAAnF,GAAA/B,KAAA,WACA,OAAAT,EAAAwH,kBAAA;AAMAjM,EAAAO,QAAAQ,ICrBAhB,OAAA,oCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAqG,iBAAA,EACApC,sBAAA,KACAqC,uBAAA,KACAC,aAAA9L,MAAAoC,SAAAyI,MAAA,wBACA9D,cAAA/G,MAAAoC,SAAAyI,MAAA,yBACAkB,uBAAA/L,MAAAoC,SAAAyI,MAAA,kCACAmB,yBAAAhM,MAAAoC,SAAAyI,MAAA,oCACAoB,qBAAAtM,OAAAuC,OAAA,CAAA,YAAA,YAAA,YACAgK,+BAAAlM,MAAAoC,SAAAkG,KAAA,2BAAA,wBACA6D,6BAAAnM,MAAAoC,SAAAkG,KAAA,yBAAA,wBACA8D,qBAAApM,MAAAoC,SAAAyI,MAAA,gCACAwB,sBAAArM,MAAAoC,SAAA,yBAAA,WACA,OAAAK,KAAA6J,uBAAA,CAAA,oBAAA,CAAA,0BAEAC,eAAAvM,MAAAoC,SAAAkG,KAAA,uBAAA,yBACAgE,wBAAA,EACAE,uBAAAxM,MAAAoC,SAAAqK,IAAA,0BACAC,4BAAA,EACAC,0BAAA,EACA7I,QAAA,CACAsF,iBAAA,SAAAF,GACAzG,KAAA4C,QAAA4D,KAAAC,GAAAzE,KAAA,SAAAmI,GACAlI,QAAAmI,MAAA,6DAAAD,EAAAE,SAGA1C,gBAAA,SAAAD,GACA1H,KAAA4C,QAAA0H,KAAA5C,GAAA1F,KAAA,SAAAmI,GACAlI,QAAAmI,MAAA,6DAAAD,EAAAE,SAGAE,6BAAA,WACAvK,KAAAwK,eAAA,+BAEAC,2BAAA,WACAzK,KAAAwK,eAAA;AAKA1N,EAAAO,QAAAQ,ICjDAhB,OAAA,sDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAiN,SAAAnN,MAAAoC,SAAA,eAAA,qBAAA,WACA,OAAAK,KAAAiJ,MAAA0B,OAAA,mBACA3K,KAAAiJ,MAAA2B,oBAAA,IAAA,WACA;AAIA9N,EAAAO,QAAAQ,IChBAhB,OAAA,wCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAiL,WAAA/K,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAtD,aAAAjC,MAAAoC,SAAAyI,MAAA,wBACAK,kBAAAlL,MAAAoC,SAAAgF,SAAA,eAAA,MACAtD,QAAA,CACAU,KAAA,SAAAmC,GACA,IAAA3C,EAAAvB,KAGA+D,EAAA/D,KAAAR,aAAAmJ,OAAA,KAAAzE,EAAArD;AAEA,OADAqD,EAAA0E,oBAAA7E,EAAAqD,IAAA,YACApH,KAAA4C,QAAAiI,YAAA3G,GAAAlC,KAAA,SAAAkC,GAGA,OAFA3C,EAAAwH,kBAAA,SAEA7E;AAMApH,EAAAO,QAAAQ,IC5BAhB,OAAA,0BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAAgO,GAGA5N,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0D,EAAAzN,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0D,EAAAzK,SCfAxD,OAAA,kCAAA,CAAA,UAAA,iCAAA,sCAAA,SAAAC,EAAAG,EAAA8N,GASA,SAAAC,EAAAC,GACA,IAAAZ,EAAA5J,UAAAxB,OAAA,QAAAR,IAAAgC,UAAA,GAAAA,UAAA,GAAA,GACAyK,EAAAjO,EAAAI,QAAA8N,IAAAD,QAGAE,EAAAf,EAAAe,aAAAf,EAAAgB,QACAC,EAAAjB,EAAAiB,SAAAjB,EAAAkB,YACAhE,EAAA;AAiBA,OAfA6D,IACAf,EAAAmB,eACAjE,EAAA2D,EAAA3D,MAAAwD,EAAAU,wBAIAlE,IACAA,EAAA2D,EAAA3D,MAAAwD,EAAAW,iBAIAJ,IACA/D,EAAA2D,EAAA3D,MAAAwD,EAAAY,YAGApE,EAAAA,EAAA,GAAA2D,EA9BAhO,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAkO,WAAAA,EACAlO,EAAAO,aAAA;AA6BA,IAAAQ,EAAAN,MAAAqO,OAAAC,OAAAb;AAEAlO,EAAAO,QAAAQ,ICtCAhB,OAAA,4BAAA,CAAA,UAAA,uCAAA,SAAAC,EAAAgP,GAGA5O,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0E,EAAAzO,aCTAR,OAAA,wCAAA,CAAA,WAAA,SAAAC,GAQA,SAAAiB,EAAAC,EAAAC,GAAA,OAMA,SAAAD,GAAA,GAAAE,MAAAC,QAAAH,GAAA,OAAAA,EANAI,CAAAJ,IAIA,SAAAA,EAAAC,GAAA,IAAAI,EAAA,GAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC;AAAA,IAAA,IAAA,IAAAC,EAAAC,EAAAX,EAAAY,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,QAAAV,EAAAW,KAAAN,EAAAtB,QAAAa,GAAAI,EAAAY,SAAAhB,GAAAK,GAAA,IAAA,MAAAY,GAAAX,GAAA,EAAAC,EAAAU,EAAA,QAAA,IAAAZ,GAAA,MAAAK,EAAA,QAAAA,EAAA,SAAA,QAAA,GAAAJ,EAAA,MAAAC,GAAA,OAAAH,EAJAc,CAAAnB,EAAAC,IAEA,WAAA,MAAA,IAAAmB,UAAA,wDAFAC,GALAnC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAUA,IAAAQ,EAAAN,MAAAqO,OAAAnO,OAAA,CACAsO,QAAA,SAAAlK,GACA,IACAmK,EADAjO,EAAA8D,EAAA,GACA;AAEA,OAAAmK,EAAAC,OAAA,GAAAC,cAAAF,EAAAG,MAAA;AAIArP,EAAAO,QAAAQ,ICzBAhB,OAAA,0CAAA,CAAA,WAAA,SAAAC,GAQA,SAAAiB,EAAAC,EAAAC,GAAA,OAMA,SAAAD,GAAA,GAAAE,MAAAC,QAAAH,GAAA,OAAAA,EANAI,CAAAJ,IAIA,SAAAA,EAAAC,GAAA,IAAAI,EAAA,GAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC;AAAA,IAAA,IAAA,IAAAC,EAAAC,EAAAX,EAAAY,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,QAAAV,EAAAW,KAAAN,EAAAtB,QAAAa,GAAAI,EAAAY,SAAAhB,GAAAK,GAAA,IAAA,MAAAY,GAAAX,GAAA,EAAAC,EAAAU,EAAA,QAAA,IAAAZ,GAAA,MAAAK,EAAA,QAAAA,EAAA,SAAA,QAAA,GAAAJ,EAAA,MAAAC,GAAA,OAAAH,EAJAc,CAAAnB,EAAAC,IAEA,WAAA,MAAA,IAAAmB,UAAA,wDAFAC,GALAnC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAUA,IAAAQ,EAAAN,MAAAqO,OAAAnO,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAuG,aAAA9L,MAAAoC,SAAAyI,MAAA,wBACA2D,QAAA,SAAAlK,GACA,IACAgF,EADA9I,EAAA8D,EAAA,GACA;AAEA,OAAAgF,EAAAuF,OACA,SACAvF,EAAAwF,YAAArM,KAAAqJ,aACA,cAEA;AAKAvM,EAAAO,QAAAQ,ICjCAhB,OAAA,yBAAA,CAAA,UAAA,qCAAA,SAAAC,EAAAwP,GAGApP,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAkF,EAAAjP,WAGAH,OAAAC,eAAAL,EAAA,QAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAkF,EAAAC,WCfA1P,OAAA,yBAAA,CAAA,UAAA,kCAAA,SAAAC,EAAA0P,GAGAtP,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAoF,EAAAnP,WAGAH,OAAAC,eAAAL,EAAA,KAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAoF,EAAAC,QCfA5P,OAAA,0BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAA4P,GAGAxP,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAsF,EAAArP,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAsF,EAAAC,SCfA9P,OAAA,+BAAA,CAAA,UAAA,iCAAA,SAAAC,EAAA8P,GAGA1P,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAwF,EAAAvP,aCTAR,OAAA,+BAAA,CAAA,UAAA,wCAAA,SAAAC,EAAA+P,GAGA3P,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAyF,EAAAxP,WAGAH,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAyF,EAAA1O,aCfAtB,OAAA,gCAAA,CAAA,UAAA,kCAAA,SAAAC,EAAAgQ,GAGA5P,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0F,EAAAzP,aCTAR,OAAA,iCAAA,CAAA,UAAA,mCAAA,SAAAC,EAAAiQ,GAGA7P,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA2F,EAAA1P,aCTAR,OAAA,gDAAA,CAAA,WAAA,SAAAC,GAQA,SAAAiB,EAAAC,EAAAC,GAAA,OAMA,SAAAD,GAAA,GAAAE,MAAAC,QAAAH,GAAA,OAAAA,EANAI,CAAAJ,IAIA,SAAAA,EAAAC,GAAA,IAAAI,EAAA,GAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC;AAAA,IAAA,IAAA,IAAAC,EAAAC,EAAAX,EAAAY,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,QAAAV,EAAAW,KAAAN,EAAAtB,QAAAa,GAAAI,EAAAY,SAAAhB,GAAAK,GAAA,IAAA,MAAAY,GAAAX,GAAA,EAAAC,EAAAU,EAAA,QAAA,IAAAZ,GAAA,MAAAK,EAAA,QAAAA,EAAA,SAAA,QAAA,GAAAJ,EAAA,MAAAC,GAAA,OAAAH,EAJAc,CAAAnB,EAAAC,IAEA,WAAA,MAAA,IAAAmB,UAAA,wDAFAC,GALAnC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAUA,IAAAQ,EAAAN,MAAAqO,OAAAnO,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAuG,aAAA9L,MAAAoC,SAAAyI,MAAA,wBACA2D,QAAA,SAAAlK,GACA,IACAgF,EADA9I,EAAA8D,EAAA,GACA;AAEA,OAAAgF,EAAAuF,QAAAvF,EAAAwF,aAAArM,KAAAqJ;AAIAvM,EAAAO,QAAAQ,IC3BAhB,OAAA,sCAAA,CAAA,WAAA,SAAAC,GAQA,SAAAiB,EAAAC,EAAAC,GAAA,OAMA,SAAAD,GAAA,GAAAE,MAAAC,QAAAH,GAAA,OAAAA,EANAI,CAAAJ,IAIA,SAAAA,EAAAC,GAAA,IAAAI,EAAA,GAAAC,GAAA,EAAAC,GAAA,EAAAC,OAAAC;AAAA,IAAA,IAAA,IAAAC,EAAAC,EAAAX,EAAAY,OAAAC,cAAAP,GAAAI,EAAAC,EAAAG,QAAAC,QAAAV,EAAAW,KAAAN,EAAAtB,QAAAa,GAAAI,EAAAY,SAAAhB,GAAAK,GAAA,IAAA,MAAAY,GAAAX,GAAA,EAAAC,EAAAU,EAAA,QAAA,IAAAZ,GAAA,MAAAK,EAAA,QAAAA,EAAA,SAAA,QAAA,GAAAJ,EAAA,MAAAC,GAAA,OAAAH,EAJAc,CAAAnB,EAAAC,IAEA,WAAA,MAAA,IAAAmB,UAAA,wDAFAC,GALAnC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAUA,IAAAQ,EAAAN,MAAAqO,OAAAnO,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAkK,YAAAzP,MAAAoC,SAAAyI,MAAA,uBACA2D,QAAA,SAAAlK,GACA,IACAkC,EADAhG,EAAA8D,EAAA,GACA;AAEA,OAAAtE,MAAAiG,UAAAO,IAAAxG,MAAAiG,UAAAxD,KAAAgN,cAAAjJ,EAAAN,UAAAzD,KAAAgN,YAAAvJ;AAIA3G,EAAAO,QAAAQ,IC3BAhB,OAAA,+BAAA,CAAA,UAAA,wCAAA,SAAAC,EAAAmQ,GAGA/P,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA6F,EAAA5P,WAGAH,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA6F,EAAAC,aCfArQ,OAAA,mCAAA,CAAA,UAAA,8CAAA,SAAAC,EAAAqQ,GAGAjQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA+F,EAAA9P,WAGAH,OAAAC,eAAAL,EAAA,cAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA+F,EAAAC,iBCfAvQ,OAAA,iCAAA,CAAA,UAAA,4CAAA,SAAAC,EAAAuQ,GAGAnQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAiG,EAAAhQ,WAGAH,OAAAC,eAAAL,EAAA,YAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAiG,EAAAC,eCfAzQ,OAAA,kCAAA,CAAA,UAAA,6CAAA,SAAAC,EAAAyQ,GAGArQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAmG,EAAAlQ,WAGAH,OAAAC,eAAAL,EAAA,aAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAmG,EAAAC,gBCfA3Q,OAAA,uCAAA,CAAA,UAAA,yCAAA,SAAAC,EAAA2Q,GAGAvQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAqG,EAAApQ,aCTAR,OAAA,wCAAA,CAAA,UAAA,0CAAA,SAAAC,EAAA4Q,GAGAxQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAsG,EAAArQ,aCTAR,OAAA,8BAAA,CAAA,UAAA,gCAAA,SAAAC,EAAA6Q,GAGAzQ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAuG,EAAAtQ,aCTAR,OAAA,yBAAA,CAAA,UAAA,kCAAA,SAAAC,EAAA8Q,GAGA1Q,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAwG,EAAAvQ,WAGAH,OAAAC,eAAAL,EAAA,KAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAwG,EAAAC;ACfAhR,OAAA,0BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAAgR,GAGA5Q,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0G,EAAAzQ,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0G,EAAAC,SCfAlR,OAAA,iCAAA,CAAA,UAAA,mCAAA,SAAAC,EAAAkR,GAGA9Q,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA4G,EAAA3Q,aCTAR,OAAA,sCAAA,CAAA,UAAA,wCAAA,SAAAC,EAAAmR,GAGA/Q,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA6G,EAAA5Q,aCTAR,OAAA,kCAAA,CAAA,UAAA,oCAAA,SAAAC,EAAAoR,GAGAhR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA8G,EAAA7Q,aCTAR,OAAA,sCAAA,CAAA,UAAA,wCAAA,SAAAC,EAAAqR,GAGAjR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA+G,EAAA9Q,aCTAR,OAAA,oCAAA,CAAA,UAAA,sCAAA,SAAAC,EAAAsR,GAGAlR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAgH,EAAA/Q,aCTAR,OAAA,sCAAA,CAAA,UAAA,wCAAA,SAAAC,EAAAuR,GAGAnR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAiH,EAAAhR,aCTAR,OAAA,kCAAA,CAAA,UAAA,oCAAA,SAAAC,EAAAwR,GAGApR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAkH,EAAAjR,aCTAR,OAAA,sCAAA,CAAA,UAAA,wCAAA,SAAAC,EAAAyR,GAGArR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAmH,EAAAlR,aCTAR,OAAA,qCAAA,CAAA,UAAA,uCAAA,SAAAC,EAAA0R,GAGAtR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAoH,EAAAnR,aCTAR,OAAA,oCAAA,CAAA,UAAA,sCAAA,SAAAC,EAAA2R,GAGAvR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAqH,EAAApR,aCTAR,OAAA,gCAAA,CAAA,UAAA,kCAAA,SAAAC,EAAA4R,GAGAxR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAsH,EAAArR,aCTAR,OAAA,kCAAA,CAAA,UAAA,6BAAA,SAAAC,EAAA6R,GAGAzR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAuH,EAAAtR,aCTAR,OAAA,6BAAA,CAAA,UAAA,+BAAA,SAAAC,EAAAgB,GAGAZ,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAtJ,EAAAT,aCTAR,OAAA,6BAAA,CAAA,UAAA,yCAAA,SAAAC,EAAA8R,GAGA1R,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAwH,EAAAvR,WAGAH,OAAAC,eAAAL,EAAA,QAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAwH,EAAAC,WCfAhS,OAAA,0BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAAgS,GAGA5R,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0H,EAAAzR,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0H,EAAA9E,SCfAnN,OAAA,0BAAA,CAAA,UAAA,4BAAA,SAAAC,EAAAiS,GAGA7R,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA2H,EAAA1R,aCTAR,OAAA,yBAAA,CAAA,UAAA,kCAAA,SAAAC,EAAAkS,GAGA9R,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA4H,EAAA3R,WAGAH,OAAAC,eAAAL,EAAA,KAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA4H,EAAAC,QCfApS,OAAA,kCAAA,CAAA,UAAA,6CAAA,SAAAC,EAAAoS,GAGAhS,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA8H,EAAA7R,WAGAH,OAAAC,eAAAL,EAAA,aAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA8H,EAAAC,gBCfAtS,OAAA,mCAAA,CAAA,UAAA,8CAAA,SAAAC,EAAAsS,GAGAlS,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAgI,EAAA/R,WAGAH,OAAAC,eAAAL,EAAA,cAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAgI,EAAAC,iBCfAxS,OAAA,8CAAA,CAAA,UAAA,yDAAA,SAAAC,EAAAwS,GAGApS,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAkI,EAAAjS,aCTAR,OAAA,2BAAA,CAAA,UAAA,6BAAA,SAAAC,EAAA6R,GAGAzR,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAuH,EAAAtR,aCTAR,OAAA,0BAAA,CAAA,UAAA,4BAAA,SAAAC,EAAAyS,GAGArS,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAmI,EAAAlS,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAmI,EAAAC,SCfA3S,OAAA,0BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAA2S,GAGAvS,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAqI,EAAApS,WAGAH,OAAAC,eAAAL,EAAA,MAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAAqI,EAAAC,SCfA7S,OAAA,uCAAA,CAAA,UAAA,4CAAA,kCAAA,SAAAC,EAAA6S,EAAA1S,GAOA,IAAAyG,EAAAwH;AAJAhO,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA,EAGAJ,EAAAI,QAAA8N,MACAzH,EAAAzG,EAAAI,QAAA8N,IAAAzH,KACAwH,EAAAjO,EAAAI,QAAA8N,IAAAD;AAGA,IAAArN,EAAA,CACA6F,KAAA,cACAkM,YAAA,EAAAD,EAAAtS,SAAAqG,EAAAwH;AAEApO,EAAAO,QAAAQ,IClBAhB,OAAA,mDAAA,CAAA,UAAA,4DAAA,SAAAC,EAAA+S,GAGA3S,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAQ,EAAA,CACA6F,KAAA,0BACAkM,WAAA,WACA,IAAAE,EAAArP,UAAA,IAAAA,UAAA;AACAqP,EAAAC,SAAA,+BAAAF,EAAAxS,SACAyS,EAAAjN,OAAA,+BAAA,YAAA;AAGA/F,EAAAO,QAAAQ,ICfAhB,OAAA,qDAAA,CAAA,UAAA,kCAAA,SAAAC,EAAAG,GASA,SAAA2S,IACA,IAAAI,EAAAvP,UAAA,IAAAA,UAAA;AAEA,IAAA,IAAAxD,EAAAI,QAAA4S,wBAAA,CACA,IAAAC;AAEA,GAAA,oBAAA/N,OACA+N,EAAA/N;KACA,GAAA,oBAAAgO,OACAD,EAAAC;IACA,CAAA,GAAA,oBAAAC,KAIA;AAHAF,EAAAE,KAMA,IACAC,EADAjT,EAAAH,EAAAI,QAAA4S;AAIAI,EADA,iBAAAjT,EACAA,EAEAG,MAAA+S,OAAAC,SAAAtT,EAAAI,QAAAK,cAGAwS,EAAAG,KACAH,EAAAG,GAAAL,EACAA,EAAAQ,OAAA,CACAC,YAAA,WACAzQ,KAAAO,OAAAC,MAAAR,KAAAS,kBAEAyP,EAAAG,QAtCAnT,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAA8S,WAAAA,EACA9S,EAAAO,aAAA;AAyCA,IAAAQ,EAAA,CACA6F,KAAA,4BACAkM,WAAAA;AAEA9S,EAAAO,QAAAQ,ICpDAhB,OAAA,kCAAA,CAAA,UAAA,mCAAA,SAAAC,EAAA4T,GAGAxT,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAL,OAAAO,OAAA,CAEA+E,GAAA,KACA3B,cAAA,KACAZ,OAAA,KACAoM,aAAA,EAAAqE,EAAArT,SAAA,mBAAA,YACA+O,OAAA,KACAvD,SAAA,KACA8H,eAAA,KAEA7P,KAAA,KACAG,YAAA,KACA2P,QAAA,KACA1P,IAAA,KACAH,KAAA,KACAe,KAAA,KACA+O,SAAA,GACAvQ,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAU,IAAA,UAAA,KAEAoQ,YAAAvT,MAAAoC,SAAA,OAAA,OAAA,WACA,OAAAK,KAAA8B,KAAA,GAAAyG,OAAAvI,KAAAe,KAAA,KAAAwH,OAAAvI,KAAA8B,MAAA9B,KAAAe;AAIAjE,EAAAO,QAAAQ,ICnCAhB,OAAA,iCAAA,CAAA,UAAA,kCAAA,iCAAA,SAAAC,EAAA4T,EAAAK,GAGA7T,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAL,OAAAO,OAAA,CAEA+E,IAAA,EAAAkO,EAAArT,SAAA,QAAA,YACAoG,QAAA,KACAuN,SAAA,EAAAD,EAAA1T,SAAA,cACAuN,oBAAA,EAAA8F,EAAArT,SAAA,wBAAA,YACA4T,oBAAA,EAAAP,EAAArT,SAAA,wBAAA,YACAsN,QAAA,EACA9B,SAAA,KAEA/H,KAAA,KACA4C,KAAA,KACAxC,IAAA,KACAyC,gBAAA,KACAC,WAAA,KACAE,cAAA,KACA+M,SAAA;AAGA/T,EAAAO,QAAAQ,IC3BAhB,OAAA,8BAAA,CAAA,UAAA,mCAAA,SAAAC,EAAA4T,GAGAxT,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAL,OAAAO,OAAA,CAEA+E,IAAA,EAAAkO,EAAArT,SAAA,QAAA,YACAsT,eAAA,KACA9P,eAAA,EAAA6P,EAAArT,SAAA,mBAAA,YACA4C,QAAA,EAAAyQ,EAAArT,SAAA,YAAA,YACA6T,YAAA,EAAAR,EAAArT,SAAA,gBAAA,YACA8T,aAAA,EAAAT,EAAArT,SAAA,iBAAA,YACA+T,SAAA,KACAvI,SAAA,KAEAwI,WAAA9T,MAAAoC,SAAAyI,MAAA,YAEAtH,KAAA,KACAG,YAAA,KACA2P,QAAA,KACA1P,IAAA,KACA2P,SAAA,GACAvQ,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAU,IAAA,UAAA;AAIA5D,EAAAO,QAAAQ;ACjCAhB,OAAA,uBAAA,CAAA,UAAA,kBAAA,SAAAC,EAAAwU,GAGApU,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAQ,EAAAyT,EAAAjU;AACAP,EAAAO,QAAAQ,ICRAhB,OAAA,qBAAA,CAAA,UAAA,kCAAA,SAAAC,EAAAG,GAGAC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAAkU,EAAAhU,MAAAgU,OAAA9T,OAAA,CACA+T,SAAAvU,EAAAI,QAAAoU,aACAC,QAAAzU,EAAAI,QAAAqU;AAEAH,EAAA3M,IAAA,WACA5E,KAAA2R,MAAA,YAAA,WACA3R,KAAA2R,MAAA,eAAA,WACA3R,KAAA2R,MAAA,OAAA,CACAC,KAAA,UAGA5R,KAAA2R,MAAA,gBAAA,WACA3R,KAAA2R,MAAA,OAAA,CACAC,KAAA,YAIA5R,KAAA2R,MAAA,YAAA,WACA3R,KAAA2R,MAAA,SAEA3R,KAAA2R,MAAA,gBAAA,WACA3R,KAAA2R,MAAA,SAEA3R,KAAA2R,MAAA,eAAA,WACA3R,KAAA2R,MAAA,OACA3R,KAAA2R,MAAA,OAAA,CACAC,KAAA;AAIA,IAAA/T,EAAA0T;AACAzU,EAAAO,QAAAQ,ICtCAhB,OAAA,iCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAsU,MAAApU,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAgP,YAAA,SAAAC,GACA,IAAAnP,EAAA5C,KAAA4C;AACA,OAAAA,EAAAoP,QAAAhQ,KAAA,WACAY,EAAAwE,IAAA,WAAA6K,kBAAAjO,MAAA,SAAAkO,GACAjQ,QAAAiQ,MAAA,mCACAjQ,QAAAiQ,MAAAA,KAGAtP,EAAAwE,IAAA,uBACAK,QAAA,qFACAsK,EAAAI,UAGAnO,MAAA,SAAAkO,GACAjQ,QAAAmQ,IAAA,6BAAAF,MAGAG,WAAA,WACA,IAAA9Q,EAAAvB;AAEA,OAAAA,KAAA4C,QAAA0P,kBAAAtQ,KAAA,WACAT,EAAAqB,QAAA2P;AAKAzV,EAAAO,QAAAQ,ICpCAhB,OAAA,uCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAsU,MAAApU,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAtD,aAAAjC,MAAAoC,SAAAyI,MAAA,wBACAa,MAAA,SAAAuJ,GACA,OAAAxS,KAAA4C,QAAApD,aAAAmJ,OAAA,KAAA6J,EAAAhQ,KAEAiQ,gBAAA,SAAAC,EAAAzJ,GACAjJ,KAAAO,OAAAmS,EAAAzJ,GAEAyJ,EAAAhS,IAAA,aAAA,CACA+C,QAAAwF,EAAAxF,QACAC,KAAAuF,EAAAvF,KACA5C,KAAAmI,EAAAnI,KACAI,IAAA+H,EAAA/H,IACAyC,gBAAAsF,EAAAtF,gBACAC,WAAAqF,EAAArF,WACAC,eAAAoF,EAAApF,eACAC,cAAAmF,EAAAnF;AAKAhH,EAAAO,QAAAQ,IC9BAhB,OAAA,kDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAsU,MAAApU,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAwB,cAAA/G,MAAAoC,SAAAyI,MAAA,yBACAa,MAAA,SAAAuJ,GACA,OAAAxS,KAAAsE,cAAAqE,OAAA,KAAA5I,SAAAyS,EAAAhQ,MAEAiQ,gBAAA,SAAAC,EAAAzJ,GACAjJ,KAAAO,OAAAmS,EAAAzJ,GAEAjJ,KAAA2S,cAAA,aAAAvR,cAAA,CACA+H,iBAAA,EACAC,uBAAAH,EAAAzG,MAGAoQ,WAAA,WACA5S,KAAA2S,cAAA,aAAAvR,cAAA,CACA+H,iBAAA,EACAC,uBAAA;AAKAtM,EAAAO,QAAAQ,IC9BAhB,OAAA,iDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAsU,MAAApU,OAAA,CACAmF,QAAArF,MAAAsF,OAAAC,UACAtD,aAAAjC,MAAAoC,SAAAyI,MAAA,wBACAa,MAAA,SAAAuJ,GACA,OAAAxS,KAAAR,aAAAmJ,OAAA,KAAA6J,EAAAhQ,KAEAiQ,gBAAA,SAAAC,EAAAzJ,GACAjJ,KAAAO,OAAAmS,EAAAzJ,GAEAjJ,KAAA2S,cAAA,aAAAvR,cAAA,CACA+H,iBAAA,EACApC,sBAAAkC,EAAAzG,MAGAoQ,WAAA,WACA5S,KAAA2S,cAAA,aAAAvR,cAAA,CACA+H,iBAAA,EACApC,sBAAA;AAKAjK,EAAAO,QAAAQ,IC9BAhB,OAAA,2BAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAAsU,MAAApU,OAAA,CACAoV,SAAA,WACA7S,KAAA8G,aAAA;AAIAhK,EAAAO,QAAAQ,ICdAhB,OAAA,4BAAA,CAAA,UAAA,4BAAA,SAAAC,EAAAgW,GAGA5V,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAF,OAAAC,eAAAL,EAAA,UAAA,CACAqK,YAAA,EACAC,IAAA,WACA,OAAA0L,EAAAzV,aCTAR,OAAA,+BAAA,CAAA,UAAA,SAAA,oBAAA,6BAAA,mCAAA,iCAAA,iCAAA,8BAAA,mCAAA,SAAAC,EAAAiW,EAAAC,EAAAC,EAAAC,EAAAjW,EAAAkW,EAAAC,EAAAC,GAQA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAA,IAAA,IAAAC,EAAAP,EAAAK,GAAAC,GAAAzW,EAAA0W,EAAA1W,MAAA,MAAA8U,GAAA,YAAAuB,EAAAvB,GAAA4B,EAAA/U,KAAAyU,EAAApW,GAAA2W,QAAAP,QAAApW,GAAA4E,KAAA0R,EAAAC,GAEA,SAAAK,EAAAC,GAAA,OAAA,WAAA,IAAA7D,EAAApQ,KAAAkU,EAAAzT;AAAA,OAAA,IAAAsT,QAAA,SAAAP,EAAAC,GAAA,IAAAF,EAAAU,EAAAzT,MAAA4P,EAAA8D;AAAA,SAAAR,EAAAtW,GAAAkW,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAvW,GAAA,SAAAuW,EAAAzU,GAAAoU,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,QAAAzU,GAAAwU,OAAAjV,MAPAvB,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAMA,IAAAQ,EAAAN,MAAA4W,QAAA1W,OAAA,CACA4L,aAAA,KACA+K,oBAAA,KAEApH,YAAA,KACAxN,aAAA,KACA8E,cAAA,KACA+P,UAAA,KACAC,yBAAA/W,MAAAoC,SAAAC,SAAA,eACA2U,kBAAAhX,MAAAoC,SAAAyI,MAAA,sBACAoM,YAAAjX,MAAAoC,SAAAC,SAAA,uBACA6U,mBAAAlX,MAAAoC,SAAA,sBAAA,WACA,OAAAK,KAAAoU,qBAAA7W,MAAAmX,QAAA1U,KAAAoU,uBAEA7K,yBAAAhM,MAAAoC,SAAA,mBAAA,eAAA,WACA,IAAA4B,EAAAvB;AAEA,OAAAA,KAAAsE,cAAA6B,OAAA,SAAAU,GACA,OAAAA,EAAAwF,YAAA9K,EAAA8H,iBAGAC,uBAAA/L,MAAAoC,SAAA,mBAAA,eAAA,WACA,IAAAgV,EAAA3U;AAEA,OAAAA,KAAAsE,cAAAK,SAAA,UAAA,GAAAwB,OAAA,SAAAU,GACA,OAAAA,EAAAwF,aAAAsI,EAAAtL,iBAGAM,qBAAApM,MAAAoC,SAAA,wCAAA,kBAAA,WACA,IAAAiV,EAAA5U,KAEAuJ,EAAAvJ,KAAAuJ,yBAAA5E,SAAA,UAAA,GACAkQ,GAAA,EAAA5B,EAAA5V,SAAAkM,EAAA,iBACAuL,EAAAD,EAAAjQ,IAAA,SAAAC,GACA,OAAAA,EAAAzH,MAAA6I,aAEA8O,EAAA/U,KAAAR,aAAAiU,OAAA,SAAA5O,GACA,OAAAiQ,EAAA1O,SAAAvB,EAAArC,MAEAmH,EAAAkL,EAAAjQ,IAAA,SAAAC,GACA,IAAAmQ,EAAAnQ,EAAAoQ,MAAAjP,MAAA,UAAAlB,OAAA,SAAAoQ,EAAAC,GACA,OAAAD,EAAAC,IAGApR,EAAA6Q,EAAApV,aAAAmJ,OAAA,KAAA9D,EAAAzH,MAAA6I;AAEA,OAAA1I,MAAAL,OAAAkY,OAAA,CACArR,YAAAA,EACAiR,kBAAAA,EACAK,gBAAAtR,EAAA6G,mBACA0K,YAAAvR,EAAA6G,mBAAAoK;AAWA,OARAD,EAAAQ,QAAA,SAAA1Q,GACA8E,EAAA3K,KAAAzB,MAAAL,OAAAkY,OAAA,CACArR,YAAAc,EACAmQ,kBAAA,EACAK,gBAAAxQ,EAAA+F,mBACA0K,YAAAzQ,EAAA+F,wBAGAjB,IAEArJ,KAAA,WACAN,KAAAO,OAAAC,MAAAR,KAAAS,WAEAT,KAAAU,IAAA,eAAA,IACAV,KAAAU,IAAA,YAAA,IACAV,KAAAU,IAAA,gBAAA,KAKA8U,eAAA,WACA,IAEAC,EAFAC,EAAA1V;AAGA,OAAA,IAAAzC,MAAAoY,KAAA5B,QAEA,WACA,IAAAlS,EAAAmS,EAEA4B,mBAAAC,KAAA,SAAAC,EAAAtC,GACA,IAAAuC,EAAAC,EAAAC;AAEA,OAAAL,mBAAAM,KAAA,SAAAC,GACA,OACA,OAAAA,EAAAC,KAAAD,EAAArX,MACA,KAAA,EA6CA,GA5CAmX,EAAA,WA2BA,OA1BAA,EAAAjC,EAEA4B,mBAAAC,KAAA,SAAAQ,EAAAC,EAAAC,GACA,OAAAX,mBAAAM,KAAA,SAAAM,GACA,OACA,OAAAA,EAAAJ,KAAAI,EAAA1X,MACA,KAAA,EACAmD,QAAAmI,MAAA,+EACAqL,EAAA,IAAA1C,EAAA1V,QAAAoZ,UAAAC,aAAAJ,IAEAK,eAAA3U,KAAA,SAAA4U,GACAL,EAAA7V,IAAA,sBAAAkW;AACA,IAAAC,EAAA,IAAAD,EAAA3X,OAAA,KAAAwW,EAAAqB;AACAtD,EAAA,CACAiC,YAAAA,EACAoB,UAAAA;AAIA,KAAA,EACA,IAAA,MACA,OAAAL,EAAAO,SAGAV,OAEA7V,MAAAR,KAAAS,YAGAuV,EAAA,SAAAgB,EAAAC,GACA,OAAAhB,EAAAzV,MAAAR,KAAAS,YAGAsV,EAAA,WACA9T,QAAAmI,MAAA,yDACAnI,QAAAmI,MAAA,0BAAA7B,OAAAtL,EAAAI,QAAA6Z,kBACAzB,EAAA,IAAA1C,EAAA1V,QAAAoZ,UAAAU,gBAAAla,EAAAI,QAAA6Z,iBACA1D,EAAA,CACAiC,YAAAA,EACAoB,UAAA,SAIA1U,OAAAiV,SAAA,CACAjB,EAAArX,KAAA;AACA,MAKA,OAFAqX,EAAAC,KAAA,EACAD,EAAArX,KAAA,EACAqD,OAAAiV,SAAAC;AAEA,KAAA,EAEArB,EAAA7T,OAAAiV,SAAA1B,GACAS,EAAArX,KAAA;AACA;AAEA,KAAA,GACAqX,EAAAC,KAAA,GACAD,EAAAmB,GAAAnB,EAAA,MAAA,GACAJ;AAEA,KAAA,GACAI,EAAArX,KAAA;AACA;AAEA,KAAA,GAEAqD,OAAAoV,KACAvB,EAAA7T,OAAAoV,KAAAC,gBAAA9B,GAGAK;AAGA,KAAA,GACA,IAAA,MACA,OAAAI,EAAAY,SAGAjB,EAAA,KAAA,CAAA,CAAA,EAAA;AAGA,OAAA,SAAA2B,GACA,OAAA5V,EAAArB,MAAAR,KAAAS,YAhGA,KAoGAuR,MAAA,WACA,IAAA0F,EAAA1X;AAEA,OAAAA,KAAAwV,iBAAAxT,KAAA,SAAA2V,GAQA,OAPA,IAAA3E,EAAA3V,QAAAsa,EAAAlC,YAAAkC,EAAAd,UAAA,CACAe,UAAA,CACAC,OAAA5a,EAAAI,QAAAya,sBAEAC,IAAA9a,EAAAI,QAAA2a,iBACAC,WAAAhb,EAAAI,QAAA6a,OAEA5X,OAAA0B,KAEA,WACA,IAAAmW,EAAAnE,EAEA4B,mBAAAC,KAAA,SAAAuC,EAAAxV,GACA,OAAAgT,mBAAAM,KAAA,SAAAmC,GACA,OACA,OAAAA,EAAAjC,KAAAiC,EAAAvZ,MACA,KAAA,EAKA,OAJA4Y,EAAAhX,IAAA,UAAAkC,GAEAyV,EAAAf,GAAAI,EACAW,EAAAvZ,KAAA,EACA8D,EAAA0V,SAAAC;AAEA,KAAA,EAWA,OAVAF,EAAAG,GAAAH,EAAAI,KAEAJ,EAAAf,GAAA5W,IAAAgY,KAAAL,EAAAf,GAAA,eAAAe,EAAAG,IAEAd,EAAAtD,qBAAAsD,EAAAtD,oBAAAnV,OAAA,GACAyY,EAAAiB,eAAA3W,KAAA,SAAA4W,GACAlB,EAAAhX,IAAA,cAAAkY,KAIAP,EAAAQ,OAAA,SAAAjW;AAEA,KAAA,EACA,IAAA,MACA,OAAAyV,EAAAtB,SAGAqB;AAGA,OAAA,SAAAU,GACA,OAAAX,EAAA3X,MAAAR,KAAAS,YApCA,OAyCAsY,YAAAxb,MAAAoC,SAAA,WACA,OAAAK,KAAA4C,QAAAoW,MAAAC,UAAAF,cAAA/W,KAAA,SAAAkX,GACA,OAAA,EAAAhG,EAAA7V,SAAA6b,OAGAtO,mBAAArN,MAAAoC,SAAA,WACA,OAAAK,KAAA4C,QAAAuW,aAAAF,UAAArO,oBAAA,GAAA5I,KAAA,SAAAkX,GACA,OAAAA,EAAAE,eAGA9G,gBAAA,WACA,IAAA+G,EAAArZ;AAEA,OAAAA,KAAAsZ,kBAAAtX,KAAA,SAAAxC,GACA,OAAA6Z,EAAA7Z,aAAA+Z,YAAA/Z,KACAwC,KAAA,WACA,OAAAqX,EAAAG,qBACAxX,KAAA,SAAAsC,GACA,OAAA+U,EAAA/U,cAAAiV,YAAAjV,MAGA4E,eAAA,SAAA3J,GACA,GAAAA,EAAAqE,WAAA,CACA,IAAA6V,EAAA1Z,SAAAR,EAAAqE;AACArE,EAAAqE,WAAA6V,EAIA,OADAxX,QAAAmI,MAAA,4BAAA7K,GACAS,KAAA4C,QAAA8W,YAAAC,IAAApa,EAAA,CACAqa,SAAA,OACA5X,KAAA,SAAAiD,GACAhD,QAAAmI,MAAA,qCAAAnF,MAGA+D,kBAAA,SAAAxG,EAAAjD,GACA,GAAAA,EAAAqE,WAAA,CACA,IAAA6V,EAAA1Z,SAAAR,EAAAqE;AACArE,EAAAqE,WAAA6V,EAIA,OADAxX,QAAAmI,MAAA,+BAAA7K,GACAS,KAAA4C,QAAA8W,YAAAG,cAAArX,EAAAjD,EAAA,CACAqa,SAAA,OACA5X,KAAA,SAAAiD,GACAhD,QAAAmI,MAAA,mCAAAnF,MAGAqU,gBAAA,WACA,OAAAtZ,KAAA4C,QAAA8W,YAAAI,MAAA9X,KAAA,SAAAxC,GACA,OAAAA,EAAAoF,IAAA,SAAAb,GACA,OAAAoP,EAAA9V,QAAA+X,OAAArR,QAIA+E,gBAAA,SAAAvJ,GACA,IAAAwa,EAAA/Z;AAGA,OADAiC,QAAAmI,MAAA,6BAAA7K,GACAS,KAAA4C,QAAAuW,aAAArQ,gBAAAvJ,EAAA,CACAqa,SAAA,MACA5X,KAAA,SAAAiD,GACAhD,QAAAmI,MAAA,sCAAAnF,GACA1F,EAAAwE,YAAAgW,EAAAva,aAAAmJ,OAAA,KAAApJ,EAAAsB;AAEA,IAAAgG,EAAAwM,EAAAhW,QAAA+X,OAAA7V;AAOA,OAJAsH,EAAAnG,IAAA,mBAAAuE,EAAA+U,YAAA,OAEAD,EAAAzV,cAAA2V,WAAApT,GAEAA,KAGAgE,YAAA,SAAAtL,GACA,IAAA2a,EAAAla;AAGA,OADAiC,QAAAmI,MAAA,yBAAA7K,GACAS,KAAA4C,QAAAuX,SAAAtP,YAAAtL,GAAAyC,KAAA,SAAAiD,GAGA,OAFAhD,QAAAmI,MAAA,kCAAAnF,GACA1F,EAAAwE,YAAAmW,EAAA1a,aAAAmJ,OAAA,KAAApJ,EAAAsB,eACAuS,EAAA/V,QAAA+X,OAAA7V,MAGA6a,aAAA,WACA,IAAAC,EAAAra;AAEA,OAAAA,KAAA4C,QAAAuX,SAAAL,MAAA9X,KAAA,SAAAqS,GACA,OAAAA,EAAAzP,IAAA,SAAAV,GAEA,OADAA,EAAAH,YAAAsW,EAAA7a,aAAAmJ,OAAA,KAAAzE,EAAArD,cAAAoF,YACAmN,EAAA/V,QAAA+X,OAAAlR,QAIAsV,iBAAA,WACA,IAAAc,EAAAta;AAEA,OAAAA,KAAA4C,QAAAuW,aAAAW,IAAA,CACAS,KAAA,CACArS,KAAA,OAEAlG,KAAA,SAAAsC,GACA,OAAAA,EAAAM,IAAA,SAAAiC,GAEA,OADAA,EAAA9C,YAAAuW,EAAA9a,aAAAmJ,OAAA,KAAA9B,EAAAhG,cAAAoF,YACAoN,EAAAhW,QAAA+X,OAAAvO,QAIAyD,KAAA,SAAA5C,GAEA,OADAzF,QAAAmI,MAAA,qBAAA1C,GACA1H,KAAA4C,QAAAuX,SAAAlB,UAAA3O,KAAA5C,GAAA1F,KAAA,SAAAiD,GAEA,OADAhD,QAAAmI,MAAA,0BAAAnF,GACAA,KAGAuB,KAAA,SAAAC,GAEA,OADAxE,QAAAmI,MAAA,yBAAA3D,GACAzG,KAAA4C,QAAAuW,aAAAF,UAAAzS,KAAAC,EAAA,CACAmT,SAAA,MACA5X,KAAA,SAAAiD,GAEA,OADAhD,QAAAmI,MAAA,0BAAAnF,GACAA,KAGA0T,eAAApb,MAAAoC,SAAA,mBAAA,WACA,IAAA6a,EAAAxa;AAEA,OAAAzC,MAAAmX,QAAA1U,KAAAoU,qBACA7W,MAAAoY,KAAAnC,UAGAxT,KAAA4C,QAAA8W,YAAAT,UAAAwB,0BAAAza,KAAAoH,IAAA,oCAAApF,KAAA,SAAAQ,GAEA,OAAA,IAAAA,EACAjF,MAAAoY,KAAAnC,UAEAgH,EAAA5X,QAAA8W,YAAAgB,QAAAlY,OAIAmY,iBAAA,SAAAjT,GACA,OAAA1H,KAAAqU,UAAA1L,OAAA,KAAAjB,EAAAzB,aAGAsM,yBAAA,WACAvS,KAAA4C,QAAA8W,YAAAkB,GAAA,4BAAA5a,KAAA6a,wBAAAC,KAAA9a,OAAA4a,GAAA,4BAAA5a,KAAA6a,wBAAAC,KAAA9a,OAAA4a,GAAA,mBAAA5a,KAAA6a,wBAAAC,KAAA9a,OACAA,KAAA4C,QAAAuW,aAAAyB,GAAA,qBAAA5a,KAAA+a,yBAAAD,KAAA9a,OACAA,KAAA4C,QAAAuX,SAAAS,GAAA,kBAAA5a,KAAAgb,sBAAAF,KAAA9a,OAAA4a,GAAA,gBAAA5a,KAAAib,oBAAAH,KAAA9a,OAAA4a,GAAA,mBAAA5a,KAAAkb,uBAAAJ,KAAA9a,OACAA,KAAA4C,QAAAoW,MAAA4B,GAAA,WAAA5a,KAAAmb,eAAAL,KAAA9a,QAEA6a,wBAAA,WACA,IAAAO,EAAApH,EAEA4B,mBAAAC,KAAA,SAAAwF,EAAAxa,GACA,IAAAya,EACApH,EACAqH,EACA3C,EACA4C,EACAC,EACAC,EAAAjb;AAEA,OAAAmV,mBAAAM,KAAA,SAAAyF,GACA,OACA,OAAAA,EAAAvF,KAAAuF,EAAA7c,MACA,KAAA,EAGA,IAFAmD,QAAAmI,MAAA,yDAAAvJ,GAEAya,EAAAI,EAAAzc,OAAAiV,EAAA,IAAAhW,MAAAod,EAAA,EAAAA,EAAA,EAAA,GAAAC,EAAA,EAAAA,EAAAD,EAAAC,IACArH,EAAAqH,EAAA,GAAAG,EAAAH;AAKA,OAFAtZ,QAAAmI,MAAA,wBAAA8J,GACAyH,EAAA7c,KAAA,EACAkB,KAAA4C,QAAA8W,YAAAgB,QAAA7Z;AAEA,KAAA,EACA+X,EAAA+C,EAAAlD,KACA+C,EAAArI,EAAA9V,QAAA+X,OAAAwD,IACA6C,EAAAzb,KAAAR,aAAAmJ,OAAA,KAAA9H,EAAAoF,eAGAhE,QAAAmI,MAAA,4BAAAqR,GACAzb,KAAAR,aAAAoc,aAAAH,IAGAxZ,QAAAmI,MAAA,4BAAAoR,GACAxb,KAAAR,aAAAya,WAAAuB;AAEA,KAAA,GACA,IAAA,MACA,OAAAG,EAAA5E,SAGAsE,EAAArb;AAOA,OAJA,SAAA6b,GACA,OAAAT,EAAA5a,MAAAR,KAAAS,YAhDA,GAqDAsa,yBAAA,SAAAtU,GACAxE,QAAAmI,MAAA,mDAAA3D;AACA,IAAAI,EAAA7G,KAAAsE,cAAAqE,OAAA,KAAAlC;AACAxE,QAAAmI,MAAA,yBAAAvD,GAEAA,GACAA,EAAAnG,IAAA,UAAA,IAGAsa,sBAAA,SAAAtT,GACA,IAAAoU,EAAA9b;AAEAA,KAAA2a,iBAAAjT,GAGAzF,QAAAmI,MAAA,mDAIApK,KAAA4C,QAAAuX,SAAAO,QAAAhT,GAAA1F,KAAA,SAAAkC,GACAA,EAAAH,YAAA+X,EAAAtc,aAAAmJ,OAAA,KAAAzE,EAAArD,cAAAoF,YAEA6V,EAAAzH,UAAA4F,WAAA7G,EAAA/V,QAAA+X,OAAAlR,OAIA+W,oBAAA,SAAAvT,EAAAqU,EAAAC,GACA,IAAA9X,EAAAlE,KAAA2a,iBAAAjT;AAEAxD,GACAA,EAAAxD,IAAA,aAAAsb,IAGAd,uBAAA,SAAAxT,EAAA7G,EAAAZ,GACA,IAAAiE,EAAAlE,KAAA2a,iBAAAjT;AAEAxD,EAAAkD,IAAA,cACAnF,QAAAmI,MAAA,8DAIAlG,EAAAxD,IAAA,YAAA,GACAV,KAAAR,aAAAmJ,OAAA,KAAA9H,EAAAoF,YAAAgW,kBAAA,UAAAhc,KAEAkb,eAAA,SAAAe,EAAAC,EAAA/e,GACAA,EAAAA,EAAAgc,WACApZ,KAAAR,aAAAmJ,OAAA,UAAAuT,GAAAE,kBAAA,UAAAhf,GACA4C,KAAAR,aAAAmJ,OAAA,UAAAwT,GAAAF,kBAAA,UAAA7e;AAIAN,EAAAO,QAAAQ,ICnfAhB,OAAA,8BAAA,CAAA,UAAA,+BAAA,kCAAA,SAAAC,EAAAgB,EAAAb,GAGAC,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AACA,IAAA+J,EAAA7J,MAAA6J,IAEAvJ,EAAAC,EAAAT,QAAAI,OAAA,CACA4e,cAAAjV,EAAAnK,EAAAI,QAAA;AAGAP,EAAAO,QAAAQ,ICbAhB,OAAA,4CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,2FACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,oCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,4wBACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,0CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,qhBACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,0CAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,8gBACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,yCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,0eACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,kCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,k9IACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,qDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,wsEACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,oDAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,w/DACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,sCAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,aAAA;AAEA,IAAAQ,EAAAN,MAAA+E,SAAAC,SAAA,CACAC,GAAA,WACAC,MAAA,2aACAC,KAAA,CACAC,WAAA;AAIA7F,EAAAO,QAAAQ,IChBAhB,OAAA,kCAAA,CAAA,UAAA,UAAA,SAAAC,EAAAiW,GAGA7V,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,QAEA,SAAAif,EAAAC,GACA,OAAAhf,MAAAoC,SAAA2c,EAAA,CACAlV,IAAA,WACA,IAAAhK,EAAA4C,KAAAoH,IAAAkV;AAEA,OAAAlf,GAAA2V,EAAA1V,QAAAmf,MAAAC,UAAAC,YAAAtf,GACAA,EAAAmf,KAEAnf,GAGAsD,IAAA,SAAAkT,EAAAxW,GACA,IAAAuf,EAAA5J,EAAA1V,QAAAmf,MAAAI,aAAAxf;AAGA,OADA4C,KAAAU,IAAA4b,EAAAK,GACAA,EAAAJ,WCvBA1f,OAAA,gCAAA,CAAA,UAAA,SAAA,oCAAA,SAAAC,EAAAiW,EAAAG,GAGAhW,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,QAEA,SAAAif,GACA,IAAAO,EAAApc,UAAAxB,OAAA,QAAAR,IAAAgC,UAAA,GAAAA,UAAA,GAAA;AACA,OAAAlD,MAAAoC,SAAA2c,EAAA,CACAlV,IAAA,WACA,IAAAhK,EAAA4C,KAAAoH,IAAAkV;AACA,OAAA,EAAApJ,EAAA7V,SAAAD,EAAAyf,IAEAnc,IAAA,SAAAkT,EAAAxW,GACA,IAAAuf,EAAA5J,EAAA1V,QAAAmf,MAAAI,aAAAxf;AAGA,OADA4C,KAAAU,IAAA4b,EAAAK,IACA,EAAAzJ,EAAA7V,SAAAsf,EAAAE,SCnBAhgB,OAAA,mCAAA,CAAA,UAAA,UAAA,SAAAC,EAAAiW,GAGA7V,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,QAEA,SAAAD,GACA,IAAAyf,EAAApc,UAAAxB,OAAA,QAAAR,IAAAgC,UAAA,GAAAA,UAAA,GAAA,GAEAqc,EAAA/J,EAAA1V,QAAAmf,MAAAO,YAAA3f;AAEAyf,EAAAG,WACAF,EAAA/c,SAAA+c,GAAA7W;AAGA,OAAA6W,KCjBAjgB,OAAA,6BAAA,CAAA,WAAA,SAAAC,GAGAI,OAAAC,eAAAL,EAAA,aAAA,CACAM,OAAA,IAEAN,EAAAO,QAEA,SAAA4f,EAAAC,GACA,IAAAC,EAAA5f,MAAA6f,IACAnI,EAAAgI;AAEAhI,GACAA,EAAAM,QAAA,SAAA8H,GACA,IAAAjgB,EAAAG,MAAA6J,IAAAiW,EAAAH,GACAI,EAAAH,EAAAxU,OAAA,QAAAvL;AAEAG,MAAAiG,UAAA8Z,GACA/f,MAAA6J,IAAAkW,EAAA,SAAAte,KAAAqe,IAEAC,EAAA,CACAJ,SAAAA,EACA9f,MAAAA,EACA6X,MAAA,CAAAoI,IAEAF,EAAAne,KAAAse;AAKA,OAAAH,KC9BAtgB,OAAA,iCAAA,GAAA,WAEA,IACA,IAAA0gB,EAAAC,iCACAC,EAAAC,SAAAC,cAAA,cAAAJ,EAAA,MAAAK,aAAA,WAGAC,EAAA,CAAAxgB,QAFAygB,KAAAC,MAAAC,mBAAAP;AAMA,OAFAvgB,OAAAC,eAAA0gB,EAAA,aAAA,CAAAzgB,OAAA,IAEAygB,EAEA,MAAA3e,GACA,MAAA,IAAA+e,MAAA,kDAAAV,EAAA,SCbAW,cACAC,QAAA,mBAAA,QAAA/I,OAAA,CAAA1R,KAAA,cAAAwH,QAAA","file":"kredits-web.js","sourcesContent":["'use strict';\n\n\n","define(\"kredits-web/app\", [\"exports\", \"kredits-web/resolver\", \"ember-load-initializers\", \"kredits-web/config/environment\"], function (_exports, _resolver, _emberLoadInitializers, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var App = Ember.Application.extend({\n modulePrefix: _environment.default.modulePrefix,\n podModulePrefix: _environment.default.podModulePrefix,\n Resolver: _resolver.default\n });\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n var _default = App;\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/component\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Component.extend({\n attributes: null,\n contributors: Object.freeze([]),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidKind: Ember.computed.notEmpty('kind'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidKind', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('defaultDate', (0, _moment.default)().startOf('hour').toDate()); // Default attributes used by reset\n\n this.set('attributes', {\n contributorId: null,\n kind: null,\n date: this.defaultDate,\n amount: null,\n description: null,\n url: null\n });\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = this.getProperties(Object.keys(this.attributes));\n var dateInput = attributes.date instanceof Array ? attributes.date[0] : attributes.date;\n\n var _dateInput$toISOStrin = dateInput.toISOString().split('T'),\n _dateInput$toISOStrin2 = _slicedToArray(_dateInput$toISOStrin, 2),\n date = _dateInput$toISOStrin2[0],\n time = _dateInput$toISOStrin2[1];\n\n var _ref = [date, time];\n attributes.date = _ref[0];\n attributes.time = _ref[1];\n this.set('inProgress', true);\n this.save(attributes).then(function ()\n /*contribution*/\n {\n _this.reset();\n }, function (err) {\n console.warn(err);\n window.alert('Something went wrong. Check the browser console for details.');\n }).finally(function () {\n return _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"AUOL+M29\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Contributor:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,1,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,1,[\\\"id\\\"]]],null]],[9],[1,[24,1,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Kind:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"community\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"community\\\"],null]],[9],[0,\\\"Community\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"design\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"design\\\"],null]],[9],[0,\\\"Design\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"dev\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"dev\\\"],null]],[9],[0,\\\"Development\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"docs\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"docs\\\"],null]],[9],[0,\\\"Documentation\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"ops\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"ops\\\"],null]],[9],[0,\\\"IT Operations\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"special\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"special\\\"],null]],[9],[0,\\\"Special\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Date:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"ember-flatpickr\\\",null,[[\\\"date\\\",\\\"defaultDate\\\",\\\"maxDate\\\",\\\"enableTime\\\",\\\"time_24hr\\\",\\\"onChange\\\"],[[25,[\\\"date\\\"]],[25,[\\\"defaultDate\\\"]],[25,[\\\"defaultDate\\\"]],true,true,[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"date\\\"]]],null]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Amount:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"500\\\",[25,[\\\"amount\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"Description:\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[25,[\\\"description\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"label\\\"],[9],[0,\\\"URL (optional):\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[25,[\\\"url\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[25,[\\\"inProgress\\\"]],[29,\\\"if\\\",[[25,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contribution/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n kredits: Ember.inject.service(),\n attributes: null,\n // TODO: add proper address validation\n isValidAccount: Ember.computed.notEmpty('account'),\n isValidName: Ember.computed.notEmpty('name'),\n isValidURL: Ember.computed.notEmpty('url'),\n isValidGithubUID: Ember.computed.notEmpty('github_uid'),\n isValidGithubUsername: Ember.computed.notEmpty('github_username'),\n isValidGiteaUsername: Ember.computed.notEmpty('gitea_username'),\n isValidWikiUsername: Ember.computed.notEmpty('wiki_username'),\n isValid: Ember.computed.and('isValidAccount', 'isValidName', 'isValidGithubUID'),\n inProgress: false,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.setDefaultAttributes();\n this.reset();\n },\n setDefaultAttributes: function setDefaultAttributes() {\n if (Ember.isPresent(this.attributes)) {\n return;\n }\n\n this.set('attributes', {\n account: null,\n name: null,\n kind: 'person',\n url: null,\n github_username: null,\n github_uid: null,\n gitea_username: null,\n wiki_username: null\n });\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var contributor = this.getProperties(attributes);\n this.set('inProgress', true);\n this.save(contributor).then(function () {\n _this.reset();\n }).catch(function (err) {\n console.warn(err);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ew3F7Kx7\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-account\\\"],[9],[0,\\\"Ethereum account\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"id\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"account\\\",\\\"c-account\\\",\\\"text\\\",[25,[\\\"account\\\"]],\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\",[29,\\\"if\\\",[[25,[\\\"isValidAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-kind\\\"],[9],[0,\\\"Kind\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[11,\\\"id\\\",\\\"c-kind\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"person\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"person\\\"],null]],[9],[0,\\\"Person\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"organization\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"organization\\\"],null]],[9],[0,\\\"Organization\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-name\\\"],[9],[0,\\\"Name\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"name\\\",\\\"text\\\",[25,[\\\"name\\\"]],\\\"Zero Cool\\\",[29,\\\"if\\\",[[25,[\\\"isValidName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-name\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-url\\\"],[9],[0,\\\"URL\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"url\\\",\\\"text\\\",[25,[\\\"url\\\"]],\\\"http://zerocool.bit\\\",[29,\\\"if\\\",[[25,[\\\"isValidURL\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-url\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-github-uid\\\"],[9],[0,\\\"GitHub UID\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_uid\\\",\\\"text\\\",[25,[\\\"github_uid\\\"]],\\\"2342\\\",[29,\\\"if\\\",[[25,[\\\"isValidGithubUID\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-uid\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-github-username\\\"],[9],[0,\\\"GitHub username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_username\\\",\\\"text\\\",[25,[\\\"github_username\\\"]],\\\"zerocool\\\",[29,\\\"if\\\",[[25,[\\\"isValidGithubUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-gitea-username\\\"],[9],[0,\\\"Gitea username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"gitea_username\\\",\\\"text\\\",[25,[\\\"gitea_username\\\"]],\\\"zerocool\\\",[29,\\\"if\\\",[[25,[\\\"isValidGiteaUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-gitea-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"c-wiki-username\\\"],[9],[0,\\\"Wiki username\\\"],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"wiki_username\\\",\\\"text\\\",[25,[\\\"wiki_username\\\"]],\\\"ZeroCool\\\",[29,\\\"if\\\",[[25,[\\\"isValidWikiUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-wiki-username\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[25,[\\\"inProgress\\\"]],[29,\\\"if\\\",[[25,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contributor/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-proposal/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n attributes: null,\n contributors: Object.freeze([]),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments); // Default attributes used by reset\n\n\n this.set('attributes', {\n contributorId: null,\n kind: 'community',\n amount: null,\n description: null,\n url: null\n });\n },\n didInsertElement: function didInsertElement() {\n this._super.apply(this, arguments);\n\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit() {\n var _this = this;\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var proposal = this.getProperties(attributes);\n var saved = this.save(proposal); // The promise handles inProgress\n\n this.set('inProgress', saved);\n saved.then(function () {\n _this.reset();\n\n window.scroll(0, 0);\n window.alert('Proposal added.');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-proposal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"0bKQElzy\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"hidden\\\",\\\"\\\"],[9],[0,\\\"Contributor\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,1,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,1,[\\\"id\\\"]]],null]],[9],[1,[24,1,[\\\"github_username\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"select\\\"],[11,\\\"required\\\",\\\"\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"community\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"community\\\"],null]],[9],[0,\\\"Community\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"design\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"design\\\"],null]],[9],[0,\\\"Design\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"dev\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"dev\\\"],null]],[9],[0,\\\"Development\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"docs\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"docs\\\"],null]],[9],[0,\\\"Documentation\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"ops\\\"],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"kind\\\"]],\\\"ops\\\"],null]],[9],[0,\\\"IT Operations\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"100\\\",[25,[\\\"amount\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"Description\\\",[25,[\\\"description\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"URL (optional)\\\",[25,[\\\"url\\\"]],[29,\\\"if\\\",[[25,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[29,\\\"is-pending\\\",[[25,[\\\"inProgress\\\"]]],null],[29,\\\"if\\\",[[29,\\\"is-pending\\\",[[25,[\\\"inProgress\\\"]]],null],\\\"Processing\\\",\\\"Save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"index\\\"]],{\\\"statements\\\":[[0,\\\"Back\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"submit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-proposal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var categoryColors = {\n community: \"#fb6868\",\n design: \"#fbe468\",\n dev: \"#e068fb\",\n docs: \"#97fb68\",\n ops: \"#8f68fb\"\n };\n\n var _default = Ember.Component.extend({\n contributions: null,\n chartOptions: Object.freeze({\n legend: {\n display: false\n }\n }),\n chartData: Ember.computed('contributions', function () {\n var kredits = this.contributions.filterBy('vetoed', false).map(function (c) {\n return {\n kind: c.kind,\n amount: c.amount\n };\n }).reduce(function (kinds, c) {\n if (c.kind in kinds) {\n kinds[c.kind] = kinds[c.kind] + c.amount;\n } else {\n kinds[c.kind] = c.amount;\n }\n\n return kinds;\n }, {});\n return {\n datasets: [{\n data: [kredits['community'], kredits['design'], kredits['dev'], kredits['ops'], kredits['docs']],\n borderColor: [categoryColors.community, categoryColors.design, categoryColors.dev, categoryColors.ops, categoryColors.docs],\n borderWidth: 1\n }],\n labels: ['Community', 'Design', 'Development', 'Operations & Infrastructure', 'Documentation']\n };\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"433uRPu8\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chart\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"ember-chart\\\",null,[[\\\"type\\\",\\\"data\\\",\\\"options\\\",\\\"width\\\",\\\"height\\\"],[\\\"doughnut\\\",[25,[\\\"chartData\\\"]],[25,[\\\"chartOptions\\\"]],200,200]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/chart-contributions-by-type/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'div',\n classNames: ['contributions'],\n selectedContribution: null,\n showQuickFilter: false,\n hideSmallContributions: false,\n contributorId: null,\n contributionKind: null,\n kredits: Ember.inject.service(),\n contributorsSorting: Object.freeze(['name:asc']),\n contributors: Ember.computed.sort('kredits.contributors', 'contributorsSorting'),\n contributorsActive: Ember.computed('contributors.[]', 'contributions', function () {\n var activeIds = this.contributions.mapBy('contributorId').map(function (id) {\n return id.toString();\n }).uniq();\n return this.contributors.filter(function (c) {\n return activeIds.includes(c.id.toString());\n });\n }),\n contributionKinds: Ember.computed('contributions.[]', function () {\n return this.contributions.mapBy('kind').uniq();\n }),\n contributionsFiltered: Ember.computed('contributions.[]', 'hideSmallContributions', 'contributorId', 'contributionKind', function () {\n var _this = this;\n\n return this.contributions.filter(function (c) {\n var included = true;\n\n if (_this.hideSmallContributions && c.amount <= 500) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributorId) && c.contributorId.toString() !== _this.contributorId.toString()) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributionKind) && c.kind !== _this.contributionKind) {\n included = false;\n }\n\n return included;\n });\n }),\n actions: {\n veto: function veto(contributionId) {\n if (this.contractInteractionEnabled) {\n this.vetoContribution(contributionId);\n } else {\n window.alert('Only members can veto contributions. Please ask someone to set you up.');\n }\n },\n openContributionDetails: function openContributionDetails(contribution) {\n this.router.transitionTo('dashboard.contributions.show', contribution);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"G1DDHmYe\",\n \"block\": \"{\\\"symbols\\\":[\\\"contribution\\\",\\\"kind\\\",\\\"contributor\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,[\\\"showQuickFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"quick-filter\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contributor\\\"],[9],[0,\\\"\\\\n Contributor:\\\\n \\\"],[7,\\\"select\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[9],[0,\\\"all\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributorsActive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,3,[\\\"id\\\"]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributorId\\\"]],[24,3,[\\\"id\\\"]]],null]],[9],[1,[24,3,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contribution-kind\\\"],[9],[0,\\\"\\\\n Kind:\\\\n \\\"],[7,\\\"select\\\"],[12,\\\"onchange\\\",[29,\\\"action\\\",[[24,0,[]],[29,\\\"mut\\\",[[25,[\\\"contributionKind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"selected\\\",\\\"\\\"],[9],[0,\\\"all\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributionKinds\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[24,2,[]]],[12,\\\"selected\\\",[29,\\\"eq\\\",[[25,[\\\"contributionKind\\\"]],[24,2,[]]],null]],[9],[1,[29,\\\"capitalize-string\\\",[[24,2,[]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"filter-contribution-size\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[25,[\\\"hideSmallContributions\\\"]]]]],false],[0,\\\"\\\\n Hide small contributions\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"contribution-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributionsFiltered\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"role\\\",\\\"button\\\"],[12,\\\"data-contribution-id\\\",[24,1,[\\\"id\\\"]]],[12,\\\"class\\\",[30,[[29,\\\"contribution-status\\\",[[24,1,[]]],null],[29,\\\"if\\\",[[24,1,[\\\"vetoed\\\"]],\\\" vetoed\\\"],null],[29,\\\"if\\\",[[29,\\\"eq\\\",[[24,1,[\\\"id\\\"]],[25,[\\\"selectedContributionId\\\"]]],null],\\\" selected\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"meta\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"recipient\\\"],[9],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[24,1,[\\\"contributor\\\"]]]]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[30,[\\\"category \\\",[24,1,[\\\"kind\\\"]]]]],[9],[0,\\\"(\\\"],[1,[24,1,[\\\"kind\\\"]],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[1,[24,1,[\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"kredits-amount\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[24,1,[\\\"amount\\\"]],false],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,1,[\\\"vetoed\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[29,\\\"is-confirmed-contribution\\\",[[24,1,[]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"voting\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"small danger\\\"],[9],[0,\\\"veto\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"veto\\\",[24,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"openContributionDetails\\\",[24,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contribution-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'table',\n classNames: 'contributor-list',\n selectedContributorId: null,\n actions: {\n openContributorDetails: function openContributorDetails(contributor) {\n this.router.transitionTo('dashboard.contributors.show', contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"+uskaOjb\",\n \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"contributorList\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[11,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[30,[[29,\\\"if\\\",[[29,\\\"is-current-user\\\",[[24,1,[\\\"contributor\\\"]]],null],\\\"current-user\\\"],null],\\\" \\\",[29,\\\"if\\\",[[29,\\\"eq\\\",[[24,1,[\\\"contributor\\\",\\\"id\\\"]],[25,[\\\"selectedContributorId\\\"]]],null],\\\"selected\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"person\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[24,1,[\\\"contributor\\\"]]]]],false],[0,\\\" \\\"],[1,[24,1,[\\\"contributor\\\",\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"kredits\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"showUnconfirmedKredits\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,1,[\\\"amountTotal\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[24,1,[\\\"amountConfirmed\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[24,0,[]],\\\"openContributorDetails\\\",[24,1,[\\\"contributor\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contributor-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-chart\", [\"exports\", \"ember-cli-chart/components/ember-chart\"], function (_exports, _emberChart) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberChart.default;\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-flatpickr\", [\"exports\", \"ember-flatpickr/components/ember-flatpickr\"], function (_exports, _emberFlatpickr) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberFlatpickr.default;\n }\n });\n});","define(\"kredits-web/components/external-account-link/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\",\n account: null,\n iconComponentName: Ember.computed('account.site', function () {\n if (this.account.site.match(/github|gitea|wiki/)) {\n return 'icon-account-' + this.account.site.replace(/\\./g, '-');\n } else {\n return 'icon-web-globe';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"U1CUwUvu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"account\\\",\\\"url\\\"]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[12,\\\"title\\\",[30,[[25,[\\\"account\\\",\\\"username\\\"]],\\\" on \\\",[25,[\\\"account\\\",\\\"site\\\"]]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"site\\\"],[9],[1,[25,[\\\"account\\\",\\\"site\\\"]],false],[10],[0,\\\"\\\\n \\\"],[1,[29,\\\"component\\\",[[25,[\\\"iconComponentName\\\"]]],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/external-account-link/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-gitea-kosmos-org/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-gitea-kosmos-org/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JiltL+jf\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-gitea\\\"],[11,\\\"width\\\",\\\"400\\\"],[11,\\\"height\\\",\\\"400\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 400 400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"d\\\",\\\"m235.61 136.7 7e-3 32.7 4.493 2.189c2.471 1.204 4.628 2.25 4.793 2.324s0.3-15.626 0.3-34.889v-35.024h-9.6l7e-3 32.7m-22.336 30.528c-2.787 0.548-5.894 2.175-8.11 4.244-2.296 2.145-1.694 0.967-24.197 47.328l-11.164 23v4.6c0 4.305 0.076 4.75 1.185 6.942 2.815 5.56 1.055 4.606 69.415 37.629l4.2 2.029h4.221c10.104 0 11.144-1.319 26.676-33.8 0.999-2.09 4.15-8.57 7.001-14.4s6.916-14.2 9.033-18.6l3.849-8 0.01-4.219c0.02-8.49-2.644-11.721-14.326-17.371-4.215-2.038-11.264-5.461-15.664-7.606-15.241-7.429-22.802-11.07-23.125-11.137-0.418-0.086-1.177 1.299-5.112 9.333l-3.234 6.6 1.19 2.2c0.654 1.21 1.308 3.038 1.454 4.063l0.265 1.862 5.747 2.8c22.047 10.742 22.975 15.314 9.007 44.377l-3.317 6.902 1.162 2.098c3.865 6.974-0.923 15.098-8.898 15.098-12.557 0-13.717-18.335-1.278-20.2l1.842-0.276 3.101-6.462c12.037-25.079 11.953-25.952-3.232-33.53l-7.333-3.659-2.319 1.032c-1.276 0.567-3.151 1.153-4.167 1.301l-1.848 0.269-6.785 13.855-6.786 13.854 1.109 1.747c6.109 9.633-5.532 20.771-14.552 13.924-6.729-5.108-4.39-16.742 3.633-18.073 0.812-0.134 1.71-0.318 1.996-0.408 0.429-0.136 6.592-12.372 13.118-26.044l1.37-2.87-0.782-1.33c-3.586-6.099 0.331-14.253 7.353-15.306l1.683-0.252 3.969-8.045c2.183-4.425 4.019-8.168 4.08-8.319s-2.979-1.758-6.755-3.571c-8.092-3.885-10.4-4.452-14.685-3.609\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m73.4 97.876c-2.903 0.376-8.068 1.377-8.8 1.705-0.44 0.197-2.915 1.007-5.5 1.8s-4.7 1.617-4.7 1.831c0 0.213-0.225 0.388-0.5 0.388-0.63 1e-3 -5.615 2.344-5.893 2.771-0.114 0.175-0.837 0.638-1.607 1.029-5.482 2.788-14.835 11.523-18.63 17.4-0.639 0.99-1.274 1.89-1.409 2-0.659 0.534-4.752 8.933-5.555 11.4-0.502 1.54-1.048 2.98-1.213 3.2-0.587 0.782-2.031 7.531-2.489 11.633-0.256 2.292-0.61 4.167-0.785 4.167-0.443 0-0.403 17.45 0.042 18.305 0.199 0.382 0.566 2.748 0.816 5.258 0.493 4.939 1.847 12.516 2.428 13.578 0.198 0.363 0.83 2.369 1.405 4.459 1.927 7.009 10.26 22.927 12.44 23.764 0.303 0.116 0.55 0.481 0.55 0.812 0 0.813 10.667 11.552 12.3 12.383 0.715 0.364 1.3 0.821 1.3 1.017 0 0.195 0.945 0.934 2.1 1.642s2.19 1.41 2.3 1.561 1.28 0.875 2.6 1.609c1.32 0.735 2.67 1.552 3 1.816s1.95 1.086 3.6 1.827c1.65 0.74 3.101 1.486 3.224 1.658 0.123 0.171 1.741 0.865 3.596 1.542s3.557 1.384 3.783 1.572c0.226 0.187 2.388 0.907 4.804 1.599s4.753 1.423 5.193 1.624c1.299 0.593 7.258 1.856 12.2 2.586 2.53 0.374 4.96 0.83 5.4 1.013 1.151 0.48 8.262 1.165 15.067 1.45l5.866 0.247 0.877 2.594c0.903 2.673 4.652 10.529 5.195 10.884 0.168 0.11 0.585 0.83 0.928 1.6 0.685 1.538 1.927 3.686 2.313 4 0.135 0.11 0.826 1.19 1.536 2.4 1.544 2.634 4.561 7.175 5.293 7.968 0.289 0.313 0.975 1.236 1.525 2.051 1.729 2.563 7.039 9.405 8.557 11.025 0.244 0.26 1.523 1.692 2.843 3.183 3.476 3.925 7.354 7.774 10.261 10.183 1.397 1.157 2.629 2.223 2.739 2.368s1.096 0.884 2.191 1.643c1.094 0.758 2.33 1.681 2.745 2.051s1.229 0.911 1.809 1.203 1.884 1.026 2.897 1.632c1.952 1.167 7.201 3.093 8.428 3.093 0.402 0 0.73 0.18 0.73 0.4 0 0.511 115.46 0.557 115.77 0.046 0.121-0.194 1.074-0.482 2.119-0.639 2.437-0.365 7.765-2.307 9.27-3.378 0.64-0.456 1.334-0.829 1.542-0.829 0.451 0 5.639-3.687 8.597-6.111 2.854-2.337 5.633-5.107 8.718-8.689 1.42-1.65 2.681-3.09 2.8-3.2 0.581-0.536 5.161-6.76 5.812-7.9 0.409-0.715 0.869-1.3 1.023-1.3 0.153 0 0.938-1.125 1.742-2.5 2.068-3.533 4.108-6.822 4.561-7.352 0.213-0.248 1.043-1.755 1.845-3.348s1.62-3.1 1.818-3.348c0.687-0.864 5.069-9.661 5.555-11.152 0.269-0.825 0.642-1.5 0.829-1.5s0.878-1.396 1.536-3.101c0.658-1.706 1.671-4.047 2.251-5.203 0.581-1.156 1.405-3.116 1.832-4.356 0.426-1.239 0.934-2.453 1.129-2.696 0.194-0.244 0.946-2.154 1.671-4.244s1.446-3.89 1.602-4c0.155-0.11 0.964-2.36 1.797-5 0.832-2.64 1.627-4.89 1.766-5s0.861-2.27 1.604-4.8c0.742-2.53 1.484-4.782 1.649-5.003 0.164-0.222 0.872-2.562 1.573-5.2 0.701-2.639 1.412-4.977 1.58-5.197s0.965-3.19 1.77-6.6 1.623-6.488 1.817-6.84c0.195-0.353 0.919-3.503 1.611-7 0.692-3.498 1.431-6.678 1.642-7.068 0.211-0.389 0.938-4.169 1.616-8.4 0.677-4.23 1.388-8.052 1.579-8.492 0.192-0.44 0.708-3.77 1.147-7.4 4.258-35.198 1.497-55.451-8.208-60.199l-2.219-1.086-7.473 0.266c-4.111 0.146-7.834 0.417-8.274 0.602-0.801 0.336-13.842 0.941-52 2.412-11.22 0.433-22.2 0.881-24.4 0.997-2.2 0.115-11.334 0.415-20.298 0.665l-16.298 0.455-0.204 69.922-9.392-4.634-8e-3 -65.272-19.3-0.277c-10.615-0.153-19.84-0.441-20.5-0.642-0.66-0.2-6.69-0.551-13.4-0.779-21.82-0.743-58.18-2.495-59-2.843-0.44-0.187-4.04-0.453-8-0.591s-11.34-0.508-16.4-0.822c-8.365-0.519-22.619-0.685-25.6-0.298m13.657 31.23c0.269 0.173 0.809 3.742 1.313 8.694 0.471 4.62 1.021 8.76 1.221 9.2 0.201 0.44 0.561 2.42 0.801 4.4 0.709 5.856 2.382 15.937 2.787 16.8 0.207 0.44 0.943 3.68 1.636 7.2s1.4 6.58 1.571 6.8 0.803 2.56 1.405 5.2c0.601 2.64 1.333 5.34 1.627 6 0.293 0.66 1.193 3.63 2 6.6 0.808 2.97 1.597 5.49 1.754 5.6s0.884 2.27 1.614 4.8c0.731 2.53 1.455 4.69 1.608 4.8 0.154 0.11 0.868 2.09 1.587 4.4 0.72 2.31 1.494 4.429 1.721 4.71 0.226 0.28 0.341 0.567 0.255 0.637-0.263 0.215-9.713-1.339-10.37-1.704-0.337-0.188-1.237-0.468-2-0.623-4-0.814-10.947-2.703-11.712-3.185-0.481-0.304-1.325-0.675-1.875-0.825-1.377-0.377-5.355-1.954-5.6-2.22-0.11-0.12-1.447-0.841-2.971-1.604-1.524-0.762-3.216-1.791-3.759-2.286s-1.16-0.9-1.372-0.9c-1.422 0-11.329-9.68-12.558-12.27-0.347-0.731-0.775-1.33-0.951-1.33-0.593 0-4.638-8.175-5.591-11.3-0.519-1.705-1.071-3.1-1.226-3.1s-0.372-0.495-0.482-1.1c-0.111-0.605-0.599-3.08-1.084-5.5-1.119-5.58-1.528-15.681-0.814-20.111 0.516-3.208 1.895-8.141 2.372-8.489 0.15-0.11 0.752-1.19 1.338-2.4 2.053-4.245 6.611-8.836 11.098-11.177 1.43-0.746 2.69-1.485 2.8-1.643 0.28-0.402 6.231-2.23 8.4-2.58 0.99-0.16 2.003-0.454 2.251-0.654 0.248-0.199 2.678-0.513 5.4-0.697s5.039-0.357 5.149-0.385c0.11-0.029 0.406 0.08 0.657 0.242m131.79 38.066c2.262 0.371 16.092 6.678 15.866 7.236-0.061 0.151-1.897 3.894-4.08 8.319l-3.969 8.045-1.683 0.252c-7.022 1.053-10.939 9.207-7.353 15.306l0.782 1.33-1.37 2.87c-6.526 13.672-12.689 25.908-13.118 26.044-0.286 0.09-1.184 0.274-1.996 0.408-8.023 1.331-10.362 12.965-3.633 18.073 9.02 6.847 20.661-4.291 14.552-13.924l-1.109-1.747 6.786-13.854 6.785-13.855 1.848-0.269c1.016-0.148 2.891-0.734 4.167-1.301l2.319-1.032 7.333 3.659c15.185 7.578 15.269 8.451 3.232 33.53l-3.101 6.462-1.842 0.276c-12.439 1.865-11.279 20.2 1.278 20.2 7.975 0 12.763-8.124 8.898-15.098l-1.162-2.098 3.317-6.902c13.968-29.063 13.04-33.635-9.007-44.377l-5.747-2.8-0.265-1.862c-0.146-1.025-0.8-2.853-1.454-4.063l-1.19-2.2 3.234-6.6c3.935-8.034 4.694-9.419 5.112-9.333 0.323 0.067 7.884 3.708 23.125 11.137 4.4 2.145 11.449 5.568 15.664 7.606 11.682 5.65 14.346 8.881 14.326 17.371l-0.01 4.219-3.849 8c-2.117 4.4-6.182 12.77-9.033 18.6s-6.002 12.31-7.001 14.4c-15.532 32.481-16.572 33.8-26.676 33.8h-4.221l-4.2-2.029c-68.36-33.023-66.6-32.069-69.415-37.629-1.109-2.192-1.185-2.637-1.185-6.942v-4.6l11.164-23c22.503-46.361 21.901-45.183 24.197-47.328 3.874-3.618 8.661-5.122 13.684-4.3\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-gitea-kosmos-org/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-github-com/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-github-com/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DB4qRdw9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"id\\\",\\\"svg825\\\"],[11,\\\"class\\\",\\\"icon-github\\\"],[11,\\\"width\\\",\\\"260\\\"],[11,\\\"height\\\",\\\"260\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 212.4575 186.23\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 260 260\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"transform\\\",\\\"translate(23.766 36.885)\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"d\\\",\\\"m151.79 86.234c-7.078 0.1229-14.154 0.5605-21.232 0.7069-12.318 0.248-24.64 0.5664-36.961 0.512-11.176-0.0472-22.358-0.9728-33.518-0.7052-7.3164 0.1776-14.373 2.2948-20.131 7.584-9.9472 9.1368-12.522 21-11.314 33.807 1.92 20.357 9.2716 31.449 29.115 37.064 15.793 4.4704 31.963 5.2088 48.199 4.9744 5.254 0 10.51 0.1367 15.758-0.0292 12.723-0.4064 25.264-2.2072 37.358-6.3596 10.846-3.7225 18.799-10.691 22.572-22.166 2.6736-8.1288 3.7148-16.388 2.5544-24.853-1.7772-12.959-13.275-30.86-32.4-30.535zm-81.576 59.996c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20zm76 0c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20z\\\"],[11,\\\"fill\\\",\\\"none\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m200.25 59.188c-2.5076-3.4493-4.3632-6.3888-3.8748-11.44 0.6796-7.0664-0.3536-14.396-1.3204-21.518-1.2188-8.9843-3.5236-17.74-7.1776-26.23-9.0332 1.9356-17.981 3.49-25.963 8.0976-8.4648 4.8908-16.695 10.215-25.08 15.25-0.9532 0.5704-2.3124 0.8848-3.3848 0.7032-17.967-3.1368-35.92-3.0196-53.898-0.086-1.3632 0.2244-3.0724-0.2345-4.2948-0.9608-4.4436-2.6604-8.6564-5.7344-13.123-8.3516-11.656-6.844-23.66-12.822-37.494-14.59-0.3928 0.8597-0.7188 1.4785-0.9612 2.1253-4.164 11.22-6.6424 22.844-7.4276 34.82-0.2872 4.3516-0.6092 8.8048 0 13.072 0.3456 2.4296-4e-3 3.8788-1.3924 5.6132-4.8516 6.0488-8.6368 12.717-11.102 20.219-4.6972 14.295-4.4004 28.861-2.2756 43.475 1.7268 11.974 4.7344 23.537 11.324 33.873 13.186 20.682 32.892 29.774 55.572 31.705 19.308 1.6464 38.8 1.1992 58.213 1.2364 13.855 0.0251 27.57-1.4924 40.715-6.6389 20.375-7.9727 33.859-22.604 40.275-44.166 3.7344-12.545 5.2324-25.396 4.8144-38.498-0.4412-13.81-4.0504-26.566-12.144-37.711zm-18.609 82.435c-3.7736 11.475-11.727 18.444-22.572 22.166-12.094 4.1524-24.635 5.9532-37.358 6.3596-5.248 0.1659-10.504 0.0292-15.758 0.0292-16.236 0.2344-32.406-0.504-48.199-4.9744-19.844-5.6152-27.195-16.707-29.115-37.064-1.2072-12.807 1.3672-24.67 11.314-33.807 5.7576-5.2892 12.814-7.4064 20.131-7.584 11.16-0.2676 22.342 0.658 33.518 0.7052 12.32 0.0544 24.642-0.264 36.961-0.512 7.0784-0.1464 14.154-0.584 21.232-0.7069 19.125-0.3243 30.623 17.576 32.4 30.535 1.1604 8.4647 0.1192 16.724-2.5544 24.853z\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"ellipse\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"cx\\\",\\\"70.214\\\"],[11,\\\"cy\\\",\\\"126.23\\\"],[11,\\\"rx\\\",\\\"16\\\"],[11,\\\"ry\\\",\\\"20\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"ellipse\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"cx\\\",\\\"146.21\\\"],[11,\\\"cy\\\",\\\"126.23\\\"],[11,\\\"rx\\\",\\\"16\\\"],[11,\\\"ry\\\",\\\"20\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-github-com/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-wiki-kosmos-org/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-account-wiki-kosmos-org/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"BV/BbT8B\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-wiki\\\"],[11,\\\"width\\\",\\\"120\\\"],[11,\\\"height\\\",\\\"120\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 120 120\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\"],[11,\\\"transform\\\",\\\"translate(18.1,3)\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"6.2 5 45.7 20.5 45.7 91 6.2 75.5\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"90 5 50.5 20.5 50.5 91 90 75.5\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"87 88 87 81.8 60.4 91\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"polygon\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[11,\\\"points\\\",\\\"9.2 88 9.2 81.8 34.9 91\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-account-wiki-kosmos-org/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-web-globe/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\"\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/icon-web-globe/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"QUXphtad\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"icon-web-globe\\\"],[11,\\\"width\\\",\\\"60\\\"],[11,\\\"height\\\",\\\"60\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 64 64\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[11,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[11,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"class\\\",\\\"fg\\\"],[11,\\\"d\\\",\\\"m48.1 14.3c-0.4-0.5-0.9-1-1.4-1.5-4.3-4.2-10.2-6.8-16.7-6.8s-12.4 2.6-16.7 6.8c-0.5 0.5-1 1-1.4 1.5-3.7 4.2-5.9 9.7-5.9 15.7s2.2 11.5 5.8 15.7c0.4 0.5 0.9 1 1.4 1.5 4.3 4.2 10.3 6.8 16.8 6.8s12.5-2.6 16.8-6.9c0.5-0.5 0.9-0.9 1.4-1.5 3.6-4.1 5.8-9.6 5.8-15.6s-2.2-11.5-5.9-15.7zm3.9 14.7h-8.1c-0.1-3-1-7.3-2.4-10.5 1.8-0.8 3.5-1.8 5.1-3 3.1 3.6 5.1 8.5 5.4 13.5zm-21-20.1c3 2.3 5.8 5.2 7.6 8.5-2.4 0.9-4.6 1.3-7.6 1.4zm-2 9.9c-3-0.1-5.2-0.6-7.6-1.4 1.8-3.3 4.6-6.3 7.6-8.5zm0 2v8.2h-10.8c0.1-3 0.9-6.8 2.3-9.8 2.7 1 5.5 1.5 8.5 1.6zm0 10.2v8c-3 0.1-5.9 0.7-8.6 1.7-1.4-3-2.1-5.7-2.3-9.7zm0 10v10.1c-3-2.3-5.8-5.3-7.7-8.6 2.4-0.9 4.7-1.4 7.7-1.5zm2 0c3 0.1 5.3 0.6 7.7 1.5-1.9 3.4-4.7 6.3-7.7 8.6zm0-2v-8h10.8c-0.1 4-0.9 6.7-2.3 9.7-2.6-1-5.5-1.5-8.5-1.7zm0-10v-8.2c3-0.1 5.8-0.7 8.5-1.6 1.4 3 2.2 6.8 2.3 9.8zm9.5-12.3c-1.7-3.2-4.1-6-6.9-8.3 4.4 0.6 8.4 2.7 11.5 5.6-1.4 1.1-3 1.9-4.6 2.7zm-14.1-8.4c-2.9 2.3-5.2 5.2-6.9 8.3-1.6-0.7-3.2-1.6-4.6-2.6 3.1-2.9 7.1-5 11.5-5.7zm-12.9 7.2c1.6 1.2 3.3 2.2 5.1 3-1.5 3.3-2.3 7.5-2.4 10.5h-8.2c0.3-5 2.3-9.9 5.5-13.5zm-5.5 15.5h8.1c0.1 4 1 7.2 2.4 10.5-1.8 0.8-3.5 1.8-5.1 3-3.2-3.7-5.1-8.5-5.4-13.5zm11.4 12.2c1.7 3.2 4.1 6.1 7 8.4-4.5-0.7-8.5-2.8-11.6-5.8 1.5-1 3-1.8 4.6-2.6zm14.2 8.5c2.9-2.4 5.3-5.2 7-8.4 1.6 0.7 3.2 1.6 4.6 2.6-3.1 3-7.2 5-11.6 5.8zm13-7.3c-1.6-1.2-3.3-2.2-5.1-3 1.4-3.2 2.3-6.5 2.4-10.5h8.1c-0.3 5.1-2.2 9.9-5.4 13.5z\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/icon-web-globe/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n classNames: ['loading-spinner']\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"b6SWTOaj\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"version\\\",\\\"1.1\\\"],[11,\\\"x\\\",\\\"0px\\\"],[11,\\\"y\\\",\\\"0px\\\"],[11,\\\"viewBox\\\",\\\"0 0 132 100\\\"],[11,\\\"enable-background\\\",\\\"new 0 0 100 100\\\"],[11,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"id\\\",\\\"path-comet\\\"],[11,\\\"d\\\",\\\"M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337\\\\n c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492\\\\n c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z\\\"],[9],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Loading data...\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/loading-spinner/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/proposal-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: 'ul',\n classNames: ['proposal-list'],\n actions: {\n confirm: function confirm(proposalId) {\n if (this.contractInteractionEnabled) {\n this.confirmProposal(proposalId);\n } else {\n window.alert('Only members can vote on proposals. Please ask someone to set you up.');\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/proposal-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"m53EF4sk\",\n \"block\": \"{\\\"symbols\\\":[\\\"proposal\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[25,[\\\"proposals\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[12,\\\"data-proposal-id\\\",[24,1,[\\\"id\\\"]]],[12,\\\"class\\\",[29,\\\"if\\\",[[24,1,[\\\"isExecuted\\\"]],\\\"confirmed\\\",\\\"unconfirmed\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"meta\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[30,[\\\"category \\\",[24,1,[\\\"kind\\\"]]]]],[9],[0,\\\"♥ (\\\"],[1,[24,1,[\\\"kind\\\"]],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"recipient\\\"],[9],[1,[24,1,[\\\"contributor\\\",\\\"name\\\"]],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"kredits-amount\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[24,1,[\\\"amount\\\"]],false],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[1,[24,1,[\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"voting\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,1,[\\\"isExecuted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"votes\\\"],[9],[0,\\\"(\\\"],[1,[24,1,[\\\"votesCount\\\"]],false],[0,\\\"/\\\"],[1,[24,1,[\\\"votesNeeded\\\"]],false],[0,\\\" votes)\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[9],[0,\\\"+1\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"confirm\\\",[24,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/proposal-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var SIZES = {\n 'small': '128',\n // pixels\n 'medium': '256',\n 'large': '512'\n };\n\n var _default = Ember.Component.extend({\n contributor: null,\n tagName: 'img',\n classNames: ['avatar'],\n classNameBindings: ['size'],\n attributeBindings: ['src', 'title'],\n size: 'small',\n src: Ember.computed.alias('avatarURL'),\n title: Ember.computed.alias('contributor.name'),\n avatarURL: Ember.computed('contributor.github_uid', 'size', function () {\n var github_uid = this.contributor.github_uid;\n\n if (github_uid) {\n return \"https://avatars2.githubusercontent.com/u/\".concat(github_uid, \"?v=3&s=\").concat(SIZES[this.size]);\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rnnAjEgP\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/user-avatar/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n sortedContributors: Ember.computed.sort('minedContributors', 'contributorsSorting'),\n actions: {\n save: function save(contribution) {\n var _this = this;\n\n var contributor = this.contributors.findBy('id', contribution.contributorId);\n contribution.contributorIpfsHash = contributor.ipfsHash;\n return this.kredits.addContribution(contribution).then(function (contribution) {\n _this.transitionToRoute('index');\n\n return contribution;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(attributes) {\n var _this = this;\n\n return this.kredits.updateContributor(this.model.id, attributes).then(function () {\n return _this.transitionToRoute('index');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(contributor) {\n var _this = this;\n\n return this.kredits.addContributor(contributor).then(function () {\n return _this.transitionToRoute('index');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n showDetailsPane: false,\n selectedContributorId: null,\n selectedContributionId: null,\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n contributions: Ember.computed.alias('kredits.contributions'),\n contributionsConfirmed: Ember.computed.alias('kredits.contributionsConfirmed'),\n contributionsUnconfirmed: Ember.computed.alias('kredits.contributionsUnconfirmed'),\n contributionsSorting: Object.freeze(['date:desc', 'time:desc', 'id:desc']),\n contributionsUnconfirmedSorted: Ember.computed.sort('contributionsUnconfirmed', 'contributionsSorting'),\n contributionsConfirmedSorted: Ember.computed.sort('contributionsConfirmed', 'contributionsSorting'),\n kreditsByContributor: Ember.computed.alias('kredits.kreditsByContributor'),\n kreditsToplistSorting: Ember.computed('showUnconfirmedKredits', function () {\n return this.showUnconfirmedKredits ? ['amountTotal:desc'] : ['amountConfirmed:desc'];\n }),\n kreditsToplist: Ember.computed.sort('kreditsByContributor', 'kreditsToplistSorting'),\n showUnconfirmedKredits: true,\n hideUnconfirmedKredits: Ember.computed.not('showUnconfirmedKredits'),\n showQuickFilterUnconfirmed: false,\n showQuickFilterConfirmed: false,\n actions: {\n vetoContribution: function vetoContribution(contributionId) {\n this.kredits.veto(contributionId).then(function (transaction) {\n console.debug('[controllers:index] Veto submitted to Ethereum blockhain: ' + transaction.hash);\n });\n },\n confirmProposal: function confirmProposal(proposalId) {\n this.kredits.vote(proposalId).then(function (transaction) {\n console.debug('[controllers:index] Vote submitted to Ethereum blockhain: ' + transaction.hash);\n });\n },\n toggleQuickFilterUnconfirmed: function toggleQuickFilterUnconfirmed() {\n this.toggleProperty('showQuickFilterUnconfirmed');\n },\n toggleQuickFilterConfirmed: function toggleQuickFilterConfirmed() {\n this.toggleProperty('showQuickFilterConfirmed');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n roleName: Ember.computed('model.isCore', 'totalKreditsEarned', function () {\n if (this.model.isCore) return 'Core Contributor';\n if (this.model.totalKreditsEarned <= 5000) return 'Newcomer';\n return 'Contributor';\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/proposals/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n actions: {\n save: function save(proposal) {\n var _this = this;\n\n // contributorIpfsHash is needed for the proposal ipfs data. I'm not happy to do this here but I think to load all the contributors in addProposal again is a bit too much. I hope we can refactor it later.\n var contributor = this.contributors.findBy('id', proposal.contributorId);\n proposal.contributorIpfsHash = contributor.get('ipfsHash');\n return this.kredits.addProposal(proposal).then(function (proposal) {\n _this.transitionToRoute('index');\n\n return proposal;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _and.default;\n }\n });\n Object.defineProperty(_exports, \"and\", {\n enumerable: true,\n get: function get() {\n return _and.and;\n }\n });\n});","define(\"kredits-web/helpers/app-version\", [\"exports\", \"kredits-web/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n\n function appVersion(_) {\n var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var version = _environment.default.APP.version; // e.g. 1.0.0-alpha.1+4jds75hf\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n var versionOnly = hash.versionOnly || hash.hideSha;\n var shaOnly = hash.shaOnly || hash.hideVersion;\n var match = null;\n\n if (versionOnly) {\n if (hash.showExtended) {\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n } // Fallback to just version\n\n\n if (!match) {\n match = version.match(_regexp.versionRegExp); // 1.0.0\n }\n }\n\n if (shaOnly) {\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n }\n\n return match ? match[0] : version;\n }\n\n var _default = Ember.Helper.helper(appVersion);\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/await\", [\"exports\", \"ember-promise-helpers/helpers/await\"], function (_exports, _await) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _await.default;\n }\n });\n});","define(\"kredits-web/helpers/capitalize-string\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n string = _ref2[0];\n\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/contribution-status\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n if (contribution.vetoed) {\n return 'vetoed';\n } else if (contribution.confirmedAt > this.currentBlock) {\n return 'unconfirmed';\n } else {\n return 'confirmed';\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _equal.default;\n }\n });\n Object.defineProperty(_exports, \"equal\", {\n enumerable: true,\n get: function get() {\n return _equal.equal;\n }\n });\n});","define(\"kredits-web/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gt.default;\n }\n });\n Object.defineProperty(_exports, \"gt\", {\n enumerable: true,\n get: function get() {\n return _gt.gt;\n }\n });\n});","define(\"kredits-web/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gte.default;\n }\n });\n Object.defineProperty(_exports, \"gte\", {\n enumerable: true,\n get: function get() {\n return _gte.gte;\n }\n });\n});","define(\"kredits-web/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isArray.default;\n }\n });\n Object.defineProperty(_exports, \"isArray\", {\n enumerable: true,\n get: function get() {\n return _isArray.isArray;\n }\n });\n});","define(\"kredits-web/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBetween.default;\n }\n });\n});","define(\"kredits-web/helpers/is-confirmed-contribution\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n return !contribution.vetoed && contribution.confirmedAt <= this.currentBlock;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-current-user\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\n function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentUser: Ember.computed.alias('kredits.currentUser'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contributor = _ref2[0];\n\n return Ember.isPresent(contributor) && Ember.isPresent(this.currentUser) && contributor.account === this.currentUser.account;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEqual.default;\n }\n });\n Object.defineProperty(_exports, \"isEqual\", {\n enumerable: true,\n get: function get() {\n return _isEqual.isEqual;\n }\n });\n});","define(\"kredits-web/helpers/is-fulfilled\", [\"exports\", \"ember-promise-helpers/helpers/is-fulfilled\"], function (_exports, _isFulfilled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.default;\n }\n });\n Object.defineProperty(_exports, \"isFulfilled\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.isFulfilled;\n }\n });\n});","define(\"kredits-web/helpers/is-pending\", [\"exports\", \"ember-promise-helpers/helpers/is-pending\"], function (_exports, _isPending) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isPending.default;\n }\n });\n Object.defineProperty(_exports, \"isPending\", {\n enumerable: true,\n get: function get() {\n return _isPending.isPending;\n }\n });\n});","define(\"kredits-web/helpers/is-rejected\", [\"exports\", \"ember-promise-helpers/helpers/is-rejected\"], function (_exports, _isRejected) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isRejected.default;\n }\n });\n Object.defineProperty(_exports, \"isRejected\", {\n enumerable: true,\n get: function get() {\n return _isRejected.isRejected;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSame.default;\n }\n });\n});","define(\"kredits-web/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lt.default;\n }\n });\n Object.defineProperty(_exports, \"lt\", {\n enumerable: true,\n get: function get() {\n return _lt.lt;\n }\n });\n});","define(\"kredits-web/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lte.default;\n }\n });\n Object.defineProperty(_exports, \"lte\", {\n enumerable: true,\n get: function get() {\n return _lte.lte;\n }\n });\n});","define(\"kredits-web/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentAdd.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentCalendar.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDiff.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDuration.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFormat.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFromNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFrom.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentSubtract.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToDate.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentTo.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _moment.default;\n }\n });\n});","define(\"kredits-web/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _notEqual.default;\n }\n });\n Object.defineProperty(_exports, \"notEq\", {\n enumerable: true,\n get: function get() {\n return _notEqual.notEq;\n }\n });\n});","define(\"kredits-web/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _not.default;\n }\n });\n Object.defineProperty(_exports, \"not\", {\n enumerable: true,\n get: function get() {\n return _not.not;\n }\n });\n});","define(\"kredits-web/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _now.default;\n }\n });\n});","define(\"kredits-web/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _or.default;\n }\n });\n Object.defineProperty(_exports, \"or\", {\n enumerable: true,\n get: function get() {\n return _or.or;\n }\n });\n});","define(\"kredits-web/helpers/promise-all\", [\"exports\", \"ember-promise-helpers/helpers/promise-all\"], function (_exports, _promiseAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.default;\n }\n });\n Object.defineProperty(_exports, \"promiseAll\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.promiseAll;\n }\n });\n});","define(\"kredits-web/helpers/promise-hash\", [\"exports\", \"ember-promise-helpers/helpers/promise-hash\"], function (_exports, _promiseHash) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.default;\n }\n });\n Object.defineProperty(_exports, \"promiseHash\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.promiseHash;\n }\n });\n});","define(\"kredits-web/helpers/promise-rejected-reason\", [\"exports\", \"ember-promise-helpers/helpers/promise-rejected-reason\"], function (_exports, _promiseRejectedReason) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseRejectedReason.default;\n }\n });\n});","define(\"kredits-web/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utc.default;\n }\n });\n Object.defineProperty(_exports, \"utc\", {\n enumerable: true,\n get: function get() {\n return _utc.utc;\n }\n });\n});","define(\"kredits-web/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _xor.default;\n }\n });\n Object.defineProperty(_exports, \"xor\", {\n enumerable: true,\n get: function get() {\n return _xor.xor;\n }\n });\n});","define(\"kredits-web/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"kredits-web/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var name, version;\n\n if (_environment.default.APP) {\n name = _environment.default.APP.name;\n version = _environment.default.APP.version;\n }\n\n var _default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = {\n name: 'container-debug-adapter',\n initialize: function initialize() {\n var app = arguments[1] || arguments[0];\n app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n app.inject('container-debug-adapter:main', 'namespace', 'application:main');\n }\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/export-application-global\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.initialize = initialize;\n _exports.default = void 0;\n\n function initialize() {\n var application = arguments[1] || arguments[0];\n\n if (_environment.default.exportApplicationGlobal !== false) {\n var theGlobal;\n\n if (typeof window !== 'undefined') {\n theGlobal = window;\n } else if (typeof global !== 'undefined') {\n theGlobal = global;\n } else if (typeof self !== 'undefined') {\n theGlobal = self;\n } else {\n // no reasonable global, just bail\n return;\n }\n\n var value = _environment.default.exportApplicationGlobal;\n var globalName;\n\n if (typeof value === 'string') {\n globalName = value;\n } else {\n globalName = Ember.String.classify(_environment.default.modulePrefix);\n }\n\n if (!theGlobal[globalName]) {\n theGlobal[globalName] = application;\n application.reopen({\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n\n delete theGlobal[globalName];\n }\n });\n }\n }\n }\n\n var _default = {\n name: 'export-application-global',\n initialize: initialize\n };\n _exports.default = _default;\n});","define(\"kredits-web/models/contribution\", [\"exports\", \"kredits-web/utils/cps/bignumber\"], function (_exports, _bignumber) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n contributorId: null,\n amount: null,\n confirmedAt: (0, _bignumber.default)('confirmedAtBlock', 'toNumber'),\n vetoed: null,\n ipfsHash: null,\n creatorAccount: null,\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n date: null,\n time: null,\n ipfsData: '',\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('details', {});\n },\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/contributor\", [\"exports\", \"kredits-web/utils/cps/bignumber\", \"kredits-web/utils/cps/kredits\"], function (_exports, _bignumber, _kredits) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: (0, _bignumber.default)('idRaw', 'toString'),\n account: null,\n balance: (0, _kredits.default)('balanceRaw'),\n totalKreditsEarned: (0, _bignumber.default)('totalKreditsEarnedRaw', 'toNumber'),\n contributionsCount: (0, _bignumber.default)('contributionsCountRaw', 'toNumber'),\n isCore: false,\n ipfsHash: null,\n // IPFS\n kind: null,\n name: null,\n url: null,\n github_username: null,\n github_uid: null,\n wiki_username: null,\n ipfsData: ''\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/proposal\", [\"exports\", \"kredits-web/utils/cps/bignumber\"], function (_exports, _bignumber) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: (0, _bignumber.default)('idRaw', 'toString'),\n creatorAccount: null,\n contributorId: (0, _bignumber.default)('contributorIdRaw', 'toString'),\n amount: (0, _bignumber.default)('amountRaw', 'toNumber'),\n votesCount: (0, _bignumber.default)('votesCountRaw', 'toNumber'),\n votesNeeded: (0, _bignumber.default)('votesNeededRaw', 'toNumber'),\n executed: null,\n ipfsHash: null,\n // Shortcuts\n isExecuted: Ember.computed.alias('executed'),\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n ipfsData: '',\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('details', {});\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberResolver.default;\n _exports.default = _default;\n});","define(\"kredits-web/router\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Router = Ember.Router.extend({\n location: _environment.default.locationType,\n rootURL: _environment.default.rootURL\n });\n Router.map(function () {\n this.route('dashboard', function () {\n this.route('contributors', function () {\n this.route('show', {\n path: ':id'\n });\n });\n this.route('contributions', function () {\n this.route('show', {\n path: ':id'\n });\n });\n });\n this.route('proposals', function () {\n this.route('new');\n });\n this.route('contributions', function () {\n this.route('new');\n });\n this.route('contributors', function () {\n this.route('new');\n this.route('edit', {\n path: ':id/edit'\n });\n });\n });\n var _default = Router;\n _exports.default = _default;\n});","define(\"kredits-web/routes/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n beforeModel: function beforeModel(transition) {\n var kredits = this.kredits;\n return kredits.setup().then(function () {\n kredits.get('kredits').preflightChecks().catch(function (error) {\n console.error('Kredits preflight check failed!');\n console.error(error);\n });\n\n if (kredits.get('accountNeedsUnlock')) {\n if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {\n transition.retry();\n }\n }\n }).catch(function (error) {\n console.log('Error initializing Kredits', error);\n });\n },\n afterModel: function afterModel() {\n var _this = this;\n\n return this.kredits.loadInitialData().then(function () {\n _this.kredits.addContractEventHandlers();\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.kredits.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', {\n account: model.account,\n name: model.name,\n kind: model.kind,\n url: model.url,\n github_username: model.github_username,\n github_uid: model.github_uid,\n gitea_username: model.gitea_username,\n wiki_username: model.wiki_username\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributions: Ember.computed.alias('kredits.contributions'),\n model: function model(params) {\n return this.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributionId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributionId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributorId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributorId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n redirect: function redirect() {\n this.transitionTo('dashboard');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/ajax\", [\"exports\", \"ember-ajax/services/ajax\"], function (_exports, _ajax) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ajax.default;\n }\n });\n});","define(\"kredits-web/services/kredits\", [\"exports\", \"ethers\", \"kredits-contracts\", \"kredits-web/utils/group-by\", \"kredits-web/utils/format-kredits\", \"kredits-web/config/environment\", \"kredits-web/models/contributor\", \"kredits-web/models/proposal\", \"kredits-web/models/contribution\"], function (_exports, _ethers, _kreditsContracts, _groupBy, _formatKredits, _environment, _contributor, _proposal, _contribution) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var _default = Ember.Service.extend({\n currentBlock: null,\n currentUserAccounts: null,\n // default to not having an account. this is the wen web3 is loaded.\n currentUser: null,\n contributors: null,\n contributions: null,\n proposals: null,\n currentUserIsContributor: Ember.computed.notEmpty('currentUser'),\n currentUserIsCore: Ember.computed.alias('currentUser.isCore'),\n hasAccounts: Ember.computed.notEmpty('currentUserAccounts'),\n accountNeedsUnlock: Ember.computed('currentUserAccounts', function () {\n return this.currentUserAccounts && Ember.isEmpty(this.currentUserAccounts);\n }),\n contributionsUnconfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this = this;\n\n return this.contributions.filter(function (contribution) {\n return contribution.confirmedAt > _this.currentBlock;\n });\n }),\n contributionsConfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this2 = this;\n\n return this.contributions.filterBy('vetoed', false).filter(function (contribution) {\n return contribution.confirmedAt <= _this2.currentBlock;\n });\n }),\n kreditsByContributor: Ember.computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function () {\n var _this3 = this;\n\n var contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false);\n var contributionsGrouped = (0, _groupBy.default)(contributionsUnconfirmed, 'contributorId');\n var contributorsWithUnconfirmed = contributionsGrouped.map(function (c) {\n return c.value.toString();\n });\n var contributorsWithOnlyConfirmed = this.contributors.reject(function (c) {\n return contributorsWithUnconfirmed.includes(c.id);\n });\n var kreditsByContributor = contributionsGrouped.map(function (c) {\n var amountUnconfirmed = c.items.mapBy('amount').reduce(function (a, b) {\n return a + b;\n });\n\n var contributor = _this3.contributors.findBy('id', c.value.toString());\n\n return Ember.Object.create({\n contributor: contributor,\n amountUnconfirmed: amountUnconfirmed,\n amountConfirmed: contributor.totalKreditsEarned,\n amountTotal: contributor.totalKreditsEarned + amountUnconfirmed\n });\n });\n contributorsWithOnlyConfirmed.forEach(function (c) {\n kreditsByContributor.push(Ember.Object.create({\n contributor: c,\n amountUnconfirmed: 0,\n amountConfirmed: c.totalKreditsEarned,\n amountTotal: c.totalKreditsEarned\n }));\n });\n return kreditsByContributor;\n }),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('contributors', []);\n this.set('proposals', []);\n this.set('contributions', []);\n },\n // This is called in the application route's beforeModel(). So it is\n // initialized before everything else, and we can rely on the ethProvider and\n // the potential currentUserAccounts to be available\n getEthProvider: function getEthProvider() {\n var _this4 = this;\n\n var ethProvider;\n return new Ember.RSVP.Promise(\n /*#__PURE__*/\n function () {\n var _ref = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee2(resolve) {\n var instantiateWithoutAccount, instantiateWithAccount, _instantiateWithAccount;\n\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _instantiateWithAccount = function _ref4() {\n _instantiateWithAccount = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee(web3Provider, context) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.debug('[kredits] Using user-provided instance, e.g. from Mist browser or Metamask');\n ethProvider = new _ethers.default.providers.Web3Provider(web3Provider); // const network = await ethProvider.getNetwork();\n\n ethProvider.listAccounts().then(function (accounts) {\n context.set('currentUserAccounts', accounts);\n var ethSigner = accounts.length === 0 ? null : ethProvider.getSigner();\n resolve({\n ethProvider: ethProvider,\n ethSigner: ethSigner\n });\n });\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _instantiateWithAccount.apply(this, arguments);\n };\n\n instantiateWithAccount = function _ref3(_x2, _x3) {\n return _instantiateWithAccount.apply(this, arguments);\n };\n\n instantiateWithoutAccount = function _ref2() {\n console.debug('[kredits] Creating new instance from npm module class');\n console.debug(\"[kredits] providerURL: \".concat(_environment.default.web3ProviderUrl));\n ethProvider = new _ethers.default.providers.JsonRpcProvider(_environment.default.web3ProviderUrl);\n resolve({\n ethProvider: ethProvider,\n ethSigner: null\n });\n };\n\n if (!window.ethereum) {\n _context2.next = 15;\n break;\n }\n\n _context2.prev = 4;\n _context2.next = 7;\n return window.ethereum.enable();\n\n case 7:\n // Acccounts now exposed\n instantiateWithAccount(window.ethereum, _this4);\n _context2.next = 13;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2[\"catch\"](4);\n instantiateWithoutAccount();\n\n case 13:\n _context2.next = 16;\n break;\n\n case 15:\n // Legacy dapp browsers...\n if (window.web3) {\n instantiateWithAccount(window.web3.currentProvider, _this4);\n } // Non-dapp browsers...\n else {\n instantiateWithoutAccount();\n }\n\n case 16:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[4, 10]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n },\n setup: function setup() {\n var _this5 = this;\n\n return this.getEthProvider().then(function (providerAndSigner) {\n var kredits = new _kreditsContracts.default(providerAndSigner.ethProvider, providerAndSigner.ethSigner, {\n addresses: {\n Kernel: _environment.default.kreditsKernelAddress\n },\n apm: _environment.default.kreditsApmDomain,\n ipfsConfig: _environment.default.ipfs\n });\n return kredits.init().then(\n /*#__PURE__*/\n function () {\n var _ref5 = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee3(kredits) {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this5.set('kredits', kredits);\n\n _context3.t0 = _this5;\n _context3.next = 4;\n return kredits.provider.getBlockNumber();\n\n case 4:\n _context3.t1 = _context3.sent;\n\n _context3.t0.set.call(_context3.t0, 'currentBlock', _context3.t1);\n\n if (_this5.currentUserAccounts && _this5.currentUserAccounts.length > 0) {\n _this5.getCurrentUser.then(function (contributorData) {\n _this5.set('currentUser', contributorData);\n });\n }\n\n return _context3.abrupt(\"return\", kredits);\n\n case 8:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function (_x4) {\n return _ref5.apply(this, arguments);\n };\n }());\n });\n },\n totalSupply: Ember.computed(function () {\n return this.kredits.Token.functions.totalSupply().then(function (total) {\n return (0, _formatKredits.default)(total);\n });\n }),\n totalKreditsEarned: Ember.computed(function () {\n return this.kredits.Contribution.functions.totalKreditsEarned(true).then(function (total) {\n return total.toNumber();\n });\n }),\n loadInitialData: function loadInitialData() {\n var _this6 = this;\n\n return this.getContributors().then(function (contributors) {\n return _this6.contributors.pushObjects(contributors);\n }).then(function () {\n return _this6.getContributions();\n }).then(function (contributions) {\n return _this6.contributions.pushObjects(contributions);\n });\n },\n addContributor: function addContributor(attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] add contributor', attributes);\n return this.kredits.Contributor.add(attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] add contributor response', data);\n });\n },\n updateContributor: function updateContributor(id, attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] update contributor', attributes);\n return this.kredits.Contributor.updateProfile(id, attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] updateProfile response', data);\n });\n },\n getContributors: function getContributors() {\n return this.kredits.Contributor.all().then(function (contributors) {\n return contributors.map(function (contributor) {\n return _contributor.default.create(contributor);\n });\n });\n },\n addContribution: function addContribution(attributes) {\n var _this7 = this;\n\n console.debug('[kredits] add contribution', attributes);\n return this.kredits.Contribution.addContribution(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] add contribution response', data);\n attributes.contributor = _this7.contributors.findBy('id', attributes.contributorId);\n\n var contribution = _contribution.default.create(attributes); // TODO receive from wrapper\n\n\n contribution.set('confirmedAtBlock', data.blockNumber + 40320);\n\n _this7.contributions.pushObject(contribution);\n\n return contribution;\n });\n },\n addProposal: function addProposal(attributes) {\n var _this8 = this;\n\n console.debug('[kredits] add proposal', attributes);\n return this.kredits.Proposal.addProposal(attributes).then(function (data) {\n console.debug('[kredits] add proposal response', data);\n attributes.contributor = _this8.contributors.findBy('id', attributes.contributorId);\n return _proposal.default.create(attributes);\n });\n },\n getProposals: function getProposals() {\n var _this9 = this;\n\n return this.kredits.Proposal.all().then(function (proposals) {\n return proposals.map(function (proposal) {\n proposal.contributor = _this9.contributors.findBy('id', proposal.contributorId.toString());\n return _proposal.default.create(proposal);\n });\n });\n },\n getContributions: function getContributions() {\n var _this10 = this;\n\n return this.kredits.Contribution.all({\n page: {\n size: 200\n }\n }).then(function (contributions) {\n return contributions.map(function (contribution) {\n contribution.contributor = _this10.contributors.findBy('id', contribution.contributorId.toString());\n return _contribution.default.create(contribution);\n });\n });\n },\n vote: function vote(proposalId) {\n console.debug('[kredits] vote for', proposalId);\n return this.kredits.Proposal.functions.vote(proposalId).then(function (data) {\n console.debug('[kredits] vote response', data);\n return data;\n });\n },\n veto: function veto(contributionId) {\n console.debug('[kredits] veto against', contributionId);\n return this.kredits.Contribution.functions.veto(contributionId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n return data;\n });\n },\n getCurrentUser: Ember.computed('kredits.provider', function () {\n var _this11 = this;\n\n if (Ember.isEmpty(this.currentUserAccounts)) {\n return Ember.RSVP.resolve();\n }\n\n return this.kredits.Contributor.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject')).then(function (id) {\n // check if the user is a contributor or not\n if (id === 0) {\n return Ember.RSVP.resolve();\n } else {\n return _this11.kredits.Contributor.getById(id);\n }\n });\n }),\n findProposalById: function findProposalById(proposalId) {\n return this.proposals.findBy('id', proposalId.toString());\n },\n // Contract events\n addContractEventHandlers: function addContractEventHandlers() {\n this.kredits.Contributor.on('ContributorProfileUpdated', this.handleContributorChange.bind(this)).on('ContributorAccountUpdated', this.handleContributorChange.bind(this)).on('ContributorAdded', this.handleContributorChange.bind(this));\n this.kredits.Contribution.on('ContributionVetoed', this.handleContributionVetoed.bind(this));\n this.kredits.Proposal.on('ProposalCreated', this.handleProposalCreated.bind(this)).on('ProposalVoted', this.handleProposalVoted.bind(this)).on('ProposalExecuted', this.handleProposalExecuted.bind(this));\n this.kredits.Token.on('Transfer', this.handleTransfer.bind(this));\n },\n handleContributorChange: function () {\n var _handleContributorChange = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee4(contributorId) {\n var _len,\n args,\n _key,\n contributorData,\n newContributor,\n oldContributor,\n _args4 = arguments;\n\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.debug('[kredits] Contributor add/update event received for ID', contributorId);\n\n for (_len = _args4.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = _args4[_key];\n }\n\n console.debug('[kredits] Event data:', args);\n _context4.next = 5;\n return this.kredits.Contributor.getById(contributorId);\n\n case 5:\n contributorData = _context4.sent;\n newContributor = _contributor.default.create(contributorData);\n oldContributor = this.contributors.findBy('id', contributorId.toString());\n\n if (oldContributor) {\n console.debug('[kredits] old contributor', oldContributor);\n this.contributors.removeObject(oldContributor);\n }\n\n console.debug('[kredits] new contributor', newContributor);\n this.contributors.pushObject(newContributor);\n\n case 11:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function handleContributorChange(_x5) {\n return _handleContributorChange.apply(this, arguments);\n }\n\n return handleContributorChange;\n }(),\n handleContributionVetoed: function handleContributionVetoed(contributionId) {\n console.debug('[kredits] ContributionVetoed event received for ', contributionId);\n var contribution = this.contributions.findBy('id', contributionId);\n console.debug('[kredits] contribution', contribution);\n\n if (contribution) {\n contribution.set('vetoed', true);\n }\n },\n handleProposalCreated: function handleProposalCreated(proposalId) {\n var _this12 = this;\n\n var proposal = this.findProposalById(proposalId);\n\n if (proposal) {\n console.debug('[events] proposal exists, not adding from event');\n return;\n }\n\n this.kredits.Proposal.getById(proposalId).then(function (proposal) {\n proposal.contributor = _this12.contributors.findBy('id', proposal.contributorId.toString());\n\n _this12.proposals.pushObject(_proposal.default.create(proposal));\n });\n },\n // TODO: We may want to reload that proposal to show the voter as voted\n handleProposalVoted: function handleProposalVoted(proposalId, voterId, totalVotes) {\n var proposal = this.findProposalById(proposalId);\n\n if (proposal) {\n proposal.set('votesCount', totalVotes);\n }\n },\n handleProposalExecuted: function handleProposalExecuted(proposalId, contributorId, amount) {\n var proposal = this.findProposalById(proposalId);\n\n if (proposal.get('isExecuted')) {\n console.debug('[events] proposal already executed, not adding from event');\n return;\n }\n\n proposal.set('executed', true);\n this.contributors.findBy('id', contributorId.toString()).incrementProperty('balance', amount);\n },\n handleTransfer: function handleTransfer(from, to, value) {\n value = value.toNumber();\n this.contributors.findBy('address', from).decrementProperty('balance', value);\n this.contributors.findBy('address', to).incrementProperty('balance', value);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/moment\", [\"exports\", \"ember-moment/services/moment\", \"kredits-web/config/environment\"], function (_exports, _moment, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var get = Ember.get;\n\n var _default = _moment.default.extend({\n defaultFormat: get(_environment.default, 'moment.outputFormat')\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application-loading\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"xIBaadOO\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[23,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application-loading.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"i3AEWasr\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"header\\\"],[11,\\\"id\\\",\\\"topbar\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[9],[4,\\\"link-to\\\",null,[[\\\"route\\\"],[\\\"dashboard\\\"]],{\\\"statements\\\":[[0,\\\"Kosmos Kredits\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"user-account\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"currentUser\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[25,[\\\"kredits\\\",\\\"currentUser\\\",\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"currentUserIsCore\\\"]]],null,{\\\"statements\\\":[[0,\\\"(core)\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" Anonymous\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[23,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Qh3b3zeA\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contribution\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Submit a contribution\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contribution\\\",null,[[\\\"contributors\\\",\\\"save\\\"],[[25,[\\\"sortedContributors\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Nh2+dVjE\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contributor\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Update contributor profile\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contributor\\\",null,[[\\\"attributes\\\",\\\"save\\\"],[[25,[\\\"attributes\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/edit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"T7trqSXO\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"class\\\",\\\"center-column\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-contributor\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Add contributor profile\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-contributor\\\",null,[[\\\"save\\\"],[[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wJtINv3A\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"main\\\"],[11,\\\"id\\\",\\\"dashboard\\\"],[12,\\\"class\\\",[29,\\\"if\\\",[[25,[\\\"showDetailsPane\\\"]],\\\"with-details\\\"],null]],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"people\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contributors\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\"],[\\\"Add contributor profile\\\",\\\"button small green\\\",\\\"contributors.new\\\"]],{\\\"statements\\\":[[0,\\\"add\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"contributor-list\\\",null,[[\\\"contributorList\\\",\\\"showUnconfirmedKredits\\\",\\\"selectedContributorId\\\"],[[25,[\\\"kreditsToplist\\\"]],[25,[\\\"showUnconfirmedKredits\\\"]],[25,[\\\"selectedContributorId\\\"]]]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"number\\\"],[9],[1,[29,\\\"await\\\",[[25,[\\\"kredits\\\",\\\"totalKreditsEarned\\\"]]],null],false],[10],[0,\\\" kredits confirmed and issued to\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"number\\\"],[9],[1,[25,[\\\"contributorsWithKredits\\\",\\\"length\\\"]],false],[10],[0,\\\" contributors\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"stats\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"hide-unnconfirmed-kredits\\\",[25,[\\\"showUnconfirmedKredits\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"hide-unnconfirmed-kredits\\\"],[9],[0,\\\"Show unconfirmed kredits in toplist\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-by-type\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contributions by type\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"chart-contributions-by-type\\\",null,[[\\\"contributions\\\"],[[25,[\\\"contributions\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"contributions\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"contributionsUnconfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-unconfirmed\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Latest Contributions\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[30,[\\\"small \\\",[29,\\\"if\\\",[[25,[\\\"showQuickFilterUnconfirmed\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"filter\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"toggleQuickFilterUnconfirmed\\\"]],[10],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\"],[\\\"Submit a contribution\\\",\\\"button small green\\\",\\\"contributions.new\\\"]],{\\\"statements\\\":[[0,\\\"add\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[1,[29,\\\"contribution-list\\\",null,[[\\\"contributions\\\",\\\"vetoContribution\\\",\\\"contractInteractionEnabled\\\",\\\"selectedContributionId\\\",\\\"showQuickFilter\\\"],[[25,[\\\"contributionsUnconfirmedSorted\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"vetoContribution\\\"],null],[25,[\\\"kredits\\\",\\\"hasAccounts\\\"]],[25,[\\\"selectedContributionId\\\"]],[25,[\\\"showQuickFilterUnconfirmed\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributions-confirmed\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Confirmed Contributions\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[30,[\\\"small \\\",[29,\\\"if\\\",[[25,[\\\"showQuickFilterConfirmed\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"filter\\\"],[3,\\\"action\\\",[[24,0,[]],\\\"toggleQuickFilterConfirmed\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"contribution-list\\\",null,[[\\\"contributions\\\",\\\"vetoContribution\\\",\\\"selectedContributionId\\\",\\\"showQuickFilter\\\"],[[25,[\\\"contributionsConfirmedSorted\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"vetoContribution\\\"],null],[25,[\\\"selectedContributionId\\\"]],[25,[\\\"showQuickFilterConfirmed\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"details\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"5w0/Xa/Y\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contribution-details\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"with-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Contribution #\\\"],[1,[25,[\\\"model\\\",\\\"id\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"amount\\\"],[9],[1,[25,[\\\"model\\\",\\\"amount\\\"]],false],[10],[0,\\\" \\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"symbol\\\"],[9],[0,\\\"₭S\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"who-what-when\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"contributor\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\"],[[25,[\\\"model\\\",\\\"contributor\\\"]]]]],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",null,[[\\\"route\\\",\\\"model\\\"],[\\\"dashboard.contributors.show\\\",[25,[\\\"model\\\",\\\"contributor\\\"]]]],{\\\"statements\\\":[[1,[25,[\\\"model\\\",\\\"contributor\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n contributed\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"date\\\"],[12,\\\"title\\\",[25,[\\\"model\\\",\\\"iso8601Date\\\"]]],[9],[1,[29,\\\"moment-from\\\",[[25,[\\\"model\\\",\\\"iso8601Date\\\"]]],null],false],[10],[0,\\\":\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[25,[\\\"model\\\",\\\"description\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n Kind: \\\"],[1,[25,[\\\"model\\\",\\\"kind\\\"]],false],[0,\\\"\\\\n \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"Status: \\\"],[1,[29,\\\"contribution-status\\\",[[25,[\\\"model\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"model\\\",\\\"url\\\"]]],[12,\\\"title\\\",[25,[\\\"model\\\",\\\"description\\\"]]],[11,\\\"class\\\",\\\"button\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"\\\\n Open URL\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://ipfs.io/ipfs/\\\",[25,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributions/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MQ3uD3UV\",\n \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"contributor-profile\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"user-avatar\\\",null,[[\\\"contributor\\\",\\\"size\\\"],[[25,[\\\"model\\\"]],\\\"medium\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[25,[\\\"model\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"role\\\"],[9],[1,[23,\\\"roleName\\\"],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"external-accounts\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[25,[\\\"model\\\",\\\"accounts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"external-account-link\\\",null,[[\\\"account\\\"],[[24,1,[]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[25,[\\\"model\\\",\\\"url\\\"]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[11,\\\"title\\\",\\\"Website\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"site\\\"],[9],[0,\\\"Web\\\"],[10],[0,\\\"\\\\n \\\"],[1,[23,\\\"icon-web-globe\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"actions\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://rinkeby.etherscan.io/address/\\\",[25,[\\\"model\\\",\\\"account\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"Inspect Ethereum transactions\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[30,[\\\"https://ipfs.io/ipfs/\\\",[25,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[11,\\\"class\\\",\\\"button small\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[0,\\\"Inspect IPFS profile\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[4,\\\"link-to\\\",null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"button small\\\",\\\"contributors.edit\\\",[25,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"Edit profile\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributors/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/proposals/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JAv6QiTC\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"id\\\",\\\"add-proposal\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Add Proposal\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[29,\\\"add-proposal\\\",null,[[\\\"contributors\\\",\\\"save\\\"],[[25,[\\\"minedContributors\\\"]],[29,\\\"action\\\",[[24,0,[]],\\\"save\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/proposals/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/utils/cps/bignumber\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(dependentKey, converterMethod) {\n return Ember.computed(dependentKey, {\n get: function get() {\n var value = this.get(dependentKey);\n\n if (value && _ethers.default.utils.BigNumber.isBigNumber(value)) {\n return value[converterMethod]();\n } else {\n return value;\n }\n },\n set: function set(key, value) {\n var bnValue = _ethers.default.utils.bigNumberify(value);\n\n this.set(dependentKey, bnValue);\n return bnValue[converterMethod]();\n }\n });\n }\n});","define(\"kredits-web/utils/cps/kredits\", [\"exports\", \"ethers\", \"kredits-web/utils/format-kredits\"], function (_exports, _ethers, _formatKredits) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(dependentKey) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return Ember.computed(dependentKey, {\n get: function get() {\n var value = this.get(dependentKey);\n return (0, _formatKredits.default)(value, options);\n },\n set: function set(key, value) {\n var bnValue = _ethers.default.utils.bigNumberify(value);\n\n this.set(dependentKey, bnValue);\n return (0, _formatKredits.default)(bnValue, options);\n }\n });\n }\n});","define(\"kredits-web/utils/format-kredits\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(value) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var etherValue = _ethers.default.utils.formatEther(value);\n\n if (!options.decimals) {\n etherValue = parseInt(etherValue).toString();\n }\n\n return etherValue;\n }\n});","define(\"kredits-web/utils/group-by\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = groupBy;\n\n function groupBy(collection, property) {\n var groups = Ember.A();\n var items = collection;\n\n if (items) {\n items.forEach(function (item) {\n var value = Ember.get(item, property);\n var group = groups.findBy('value', value);\n\n if (Ember.isPresent(group)) {\n Ember.get(group, 'items').push(item);\n } else {\n group = {\n property: property,\n value: value,\n items: [item]\n };\n groups.push(group);\n }\n });\n }\n\n return groups;\n }\n});","define('kredits-web/config/environment', [], function() {\n var prefix = 'kredits-web';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n if (!runningTests) {\n require(\"kredits-web/app\")[\"default\"].create({\"name\":\"kredits-web\",\"version\":\"1.7.0+a4ca37d8\"});\n }\n \n"]} \ No newline at end of file diff --git a/release/assets/kredits-web-e95be4cbe614c5aa4c7a891c6eedb028.css b/release/assets/kredits-web-e95be4cbe614c5aa4c7a891c6eedb028.css deleted file mode 100644 index c0e608c6..00000000 --- a/release/assets/kredits-web-e95be4cbe614c5aa4c7a891c6eedb028.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";body,button,h1,h2,h3,h4,h5,input{font-family:"Open Sans",sans-serif;font-weight:300}*{margin:0;padding:0;box-sizing:border-box;font-size:14px}:active,:focus,:hover{outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);-webkit-tap-highlight-color:transparent}main{padding:1rem 2rem}main#dashboard{width:100%;display:grid;grid-row-gap:2rem;grid-template-areas:"stats" "contributions"}main.center-column{display:flex;flex-direction:column;align-items:center}main.center-column section{width:600px;max-width:100%}main.center-column section header{text-align:center}@media (min-width:550px){main#dashboard{grid-column-gap:4rem;grid-row-gap:2rem;grid-template-columns:2fr 4fr;grid-template-areas:"stats contributions"}main#dashboard.with-details{grid-column-gap:3rem;grid-template-columns:2fr 4fr 2fr;grid-template-areas:"stats contributions details"}}main section{margin-bottom:5rem}main section:first-of-type{margin-top:2rem}main section header{margin-bottom:3rem}main section header.with-nav{display:grid;grid-template-columns:auto 5rem;grid-template-areas:"title" "actions"}main section header h2{display:inline-block}main section header nav{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}@media (max-width:600px){main{padding:1rem}main section{margin-bottom:5rem}main section header{margin-bottom:2rem}}body{background-image:linear-gradient(to bottom,rgba(22,21,40,.4),rgba(0,0,0,.75)),url(/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);background-repeat:none;background-attachment:fixed;color:#fff}@media screen and (min-width:900px){body{background-size:cover}}button,h1,h2,h3,h4,h5,input{font-size:1rem}section h2{font-size:1.4rem;color:#68d7fb}section#people .content p.stats{margin-bottom:1rem;font-size:1rem;color:#fff;text-align:center}section#people .content p.stats span.number{font-weight:600}.button,button,input[type=submit],table.contributor-list tr.current-user,ul.contribution-list li .amount,ul.contribution-list li .recipient,ul.proposal-list li .amount,ul.proposal-list li .recipient,ul.proposal-list li .symbol{font-weight:500}section#contributions-by-type .chart{width:50%;margin-left:auto;margin-right:auto}section#proposals-closed .actions,section#proposals-open .actions{padding-top:3rem;font-size:1rem;color:#68d7fb;text-align:center}@media (max-width:600px){section#contributions-by-type .chart{width:75%}section#proposals-closed .actions,section#proposals-open .actions{padding-top:2rem}main section#contributions-confirmed,main section#contributions-unconfirmed{margin-top:0}}section#proposals-closed .actions a,section#proposals-open .actions a{color:#68d7fb}@media (min-width:550px){section h2{font-size:2rem}}.button,button,input[type=submit]{display:inline-block;padding:.6rem 2rem;background-color:rgba(22,21,40,.6);border:1px solid #161528;border-radius:3px;color:#68d7fb;text-decoration:none;text-transform:uppercase;cursor:pointer;letter-spacing:.1em}.button+.button,.button+button,.button+input[type=submit],button+.button,button+button,button+input[type=submit],input[type=submit]+.button,input[type=submit]+button,input[type=submit]+input[type=submit]{margin-left:.5rem}.button:hover,button:hover,input[type=submit]:hover{background-color:rgba(22,21,40,.8)}.button.active,.button:active,button.active,button:active,input[type=submit].active,input[type=submit]:active{border-color:#68d7fb}.button.small,button.small,input[type=submit].small{font-size:.8rem;padding:.2rem .8rem}.button.danger,button.danger,input[type=submit].danger{color:#fb6868;background-color:rgba(40,21,21,.6);border-color:#281515}.button.danger:hover,button.danger:hover,input[type=submit].danger:hover{background-color:rgba(40,21,21,.8)}.button.danger.active,.button.danger:active,button.danger.active,button.danger:active,input[type=submit].danger.active,input[type=submit].danger:active{border-color:#fb6868}.button.green,button.green,input[type=submit].green{color:#97fb68;background-color:rgba(21,40,21,.6);border-color:#152815}.button.green:hover,button.green:hover,input[type=submit].green:hover{background-color:rgba(21,40,21,.8)}.button.green.active,.button.green:active,button.green.active,button.green:active,input[type=submit].green.active,input[type=submit].green:active{border-color:#97fb68}section#add-contribution form p,section#add-contributor form p,section#add-proposal form p{margin-bottom:1.5rem}section#add-contribution form p.label,section#add-contributor form p.label,section#add-proposal form p.label{margin-bottom:.5rem}section#add-contribution form p.actions,section#add-contributor form p.actions,section#add-proposal form p.actions{padding-top:1.5rem;text-align:center}section#add-contribution form p.actions a,section#add-contributor form p.actions a,section#add-proposal form p.actions a{color:#68d7fb;margin-left:1rem}section#add-contribution form label,section#add-contributor form label,section#add-proposal form label{display:block;margin-bottom:.5rem;opacity:.7}section#add-contribution form input[type=text],section#add-contribution form select,section#add-contributor form input[type=text],section#add-contributor form select,section#add-proposal form input[type=text],section#add-proposal form select{width:100%;padding:1rem;border:none;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(22,21,40,.3);color:#fff;font-size:1.2rem;transition:border-color .1s linear}section#add-contribution form input[type=text].valid,section#add-contribution form input[type=text]:focus,section#add-contribution form select.valid,section#add-contribution form select:focus,section#add-contributor form input[type=text].valid,section#add-contributor form input[type=text]:focus,section#add-contributor form select.valid,section#add-contributor form select:focus,section#add-proposal form input[type=text].valid,section#add-proposal form input[type=text]:focus,section#add-proposal form select.valid,section#add-proposal form select:focus{background-color:rgba(22,21,40,.6)}section#add-contribution form input[type=text]:focus,section#add-contribution form select:focus,section#add-contributor form input[type=text]:focus,section#add-contributor form select:focus,section#add-proposal form input[type=text]:focus,section#add-proposal form select:focus{border-color:#68d7fb}section#contribution-details .content,table.contributor-list tr:first-of-type,ul.contribution-list li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}section#add-contribution form input[type=text]::placeholder,section#add-contribution form select::placeholder,section#add-contributor form input[type=text]::placeholder,section#add-contributor form select::placeholder,section#add-proposal form input[type=text]::placeholder,section#add-proposal form select::placeholder{color:rgba(238,238,238,.5)}section#add-contribution form select,section#add-contributor form select,section#add-proposal form select{-moz-appearance:none;-webkit-appearance:none;appearance:none;border-radius:0;background-color:rgba(22,21,40,.6);background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 1.5rem) calc(1rem + .5rem),calc(100% - 1rem) calc(1rem + .5rem);background-size:.5rem .5rem,.5rem .5rem;background-repeat:no-repeat}section#add-contribution form select:invalid,section#add-contributor form select:invalid,section#add-proposal form select:invalid{color:rgba(238,238,238,.5)}section#add-contribution form input[type=submit],section#add-contributor form input[type=submit],section#add-proposal form input[type=submit]{padding:.6rem 2rem}section#add-contribution form input[type=submit]:disabled,section#add-contributor form input[type=submit]:disabled,section#add-proposal form input[type=submit]:disabled{background-color:transparent}section#add-contribution form input[type=checkbox],section#add-contributor form input[type=checkbox],section#add-proposal form input[type=checkbox]{display:none}section#add-contribution form label.checkbox,section#add-contributor form label.checkbox,section#add-proposal form label.checkbox{line-height:3.2rem;font-size:1.2rem}section#add-contribution form label.checkbox::before,section#add-contributor form label.checkbox::before,section#add-proposal form label.checkbox::before{display:inline-block;margin-right:.8rem;height:3.2rem;width:3.2rem;font-size:2rem;background-color:rgba(22,21,40,.3);border-bottom:1px solid rgba(255,255,255,.2);text-align:center;vertical-align:middle;content:'✓';color:rgba(255,255,255,.2)}section#add-contribution form input[type=checkbox]:checked+label.checkbox::before,section#add-contributor form input[type=checkbox]:checked+label.checkbox::before,section#add-proposal form input[type=checkbox]:checked+label.checkbox::before{background-color:rgba(22,21,40,.6);color:#fff}.quick-filter{font-size:1.2rem;margin-bottom:2rem}.quick-filter label,.quick-filter p{font-size:inherit}.quick-filter p{padding:.2rem 0 0}.quick-filter label+label{margin-left:3.6rem}ul.contribution-list{clear:both;width:100%;list-style:none}ul.contribution-list li{display:grid;grid-template-columns:auto 5rem 5rem;grid-row-gap:.5rem;padding:.8rem 1.2rem;background-color:rgba(255,255,255,.1);font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.2);cursor:pointer}.external-accounts a,section#contributor-profile .content ul.external-accounts li{display:inline-block}ul.contribution-list li.confirmed,ul.contribution-list li.vetoed{grid-template-columns:auto 5rem}ul.contribution-list li.vetoed{text-decoration:line-through;opacity:.6}ul.contribution-list li.selected{background-color:rgba(255,255,255,.2)}section#contribution-details .content,table.contributor-list tr{background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2)}ul.contribution-list li p{align-self:center;margin:0;font-size:inherit;line-height:2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.contribution-list li p.kredits-amount,ul.contribution-list li p.voting{text-align:right}ul.contribution-list li span{font-size:inherit}ul.contribution-list li span.title a{font-size:inherit;text-decoration:none;color:#fff}ul.contribution-list li span.title a:active,ul.contribution-list li span.title a:hover{color:#68d7fb}ul.contribution-list li .description{line-height:1.4em;font-size:1rem}ul.contribution-list li .category{color:#68d7fb;padding-right:.2rem}ul.contribution-list li .category.community{color:#fb6868}ul.contribution-list li .category.dev{color:#e068fb}ul.contribution-list li .category.design{color:#fbe468}ul.contribution-list li .category.docs{color:#97fb68}ul.contribution-list li .category.ops{color:#8f68fb}ul.contribution-list li .symbol{font-size:.8rem;padding-left:.2rem}ul.contribution-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}section#contribution-details header nav .amount{font-size:1.5rem}section#contribution-details header nav .symbol{padding-left:.2rem}section#contribution-details .content{width:100%;margin:0 0 1.5rem;padding:2rem}section#contribution-details .content h3{font-size:1.5rem;margin-bottom:2rem}section#contribution-details .content p{margin-bottom:2rem}section#contribution-details .content p span{font-size:inherit}section#contribution-details .content p.who-what-when{font-size:1.2rem;margin-bottom:1.2rem}section#contribution-details .content p:last-of-type{margin-bottom:0}section#contribution-details .content a{color:#68d7fb;text-decoration:none;font-size:inherit}section#contribution-details .content a:hover{text-decoration:underline}section#contribution-details .actions{text-align:center}table.contributor-list{width:100%;border-collapse:collapse;margin-bottom:1.5rem}table.contributor-list tr{cursor:pointer}table.contributor-list tr.selected{background-color:rgba(255,255,255,.2)}table.contributor-list tr td{padding:0 1.2rem;line-height:3.6rem}table.contributor-list tr td.person{text-align:left;font-size:1.2rem}table.contributor-list tr td.person img.avatar{margin-right:.2rem}table.contributor-list tr td.kredits{text-align:right}table.contributor-list tr td.kredits .amount{font-size:1.2rem;font-weight:500}table.contributor-list tr td.kredits .symbol{font-size:.8rem;padding-left:.2rem}section#contributor-profile{text-align:center}section#contributor-profile header{z-index:2;width:100%;text-align:center}section#contributor-profile header img{margin:0 auto;border:3px solid rgba(255,255,255,.2)}section#contributor-profile .content,ul.proposal-list li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}section#contributor-profile .content{z-index:1;width:100%;margin:-7.2rem 0 1.5rem;padding:6rem 1.2rem 2rem;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(255,255,255,.1)}section#contributor-profile .content h2{text-align:center;margin-bottom:.6rem}section#contributor-profile .content p.role{margin-bottom:2rem}section#contributor-profile .content ul.external-accounts{list-style:none}section#contributor-profile .content ul.external-accounts li+li{margin-left:.6rem}section#contributor-profile .actions .button{margin-bottom:.6rem}.external-accounts a{width:4rem;height:4rem;padding:.8rem;background-color:rgba(0,0,0,.3);color:#fff;border-radius:2rem}.external-accounts a span.site{display:none}.external-accounts a svg{display:block;position:relative;width:100%;height:100%}.external-accounts a svg .fg{fill:#fff}.external-accounts a:active,.external-accounts a:hover{background-color:rgba(0,0,0,.5)}.external-accounts a:active svg .fg,.external-accounts a:hover svg .fg{fill:#68d7fb}@keyframes pulse{from{opacity:.1}to{opacity:.6}}.loading-spinner{margin-top:12rem;text-align:center;font-size:1.4rem;color:#68d7fb}@media (max-width:600px){.loading-spinner{margin-top:6rem}}.loading-spinner svg{width:200px;height:200px;margin-bottom:2rem}.loading-spinner svg #path-comet{fill:#68d7fb;opacity:.1;animation-name:pulse;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-direction:alternate;animation-duration:1s}ul.proposal-list{clear:both;width:100%;list-style:none}ul.proposal-list li{display:grid;grid-template-columns:auto 5rem;grid-row-gap:.5rem;padding:1rem 1.2rem;background-color:rgba(255,255,255,.1);font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.2)}ul.proposal-list li p{align-self:center;margin:0;font-size:inherit;line-height:2rem}ul.proposal-list li p.kredits-amount,ul.proposal-list li p.voting{text-align:right}ul.proposal-list li p.description,ul.proposal-list li p.voting{grid-column-start:span 2}ul.proposal-list li span{font-size:inherit}ul.proposal-list li .description{line-height:1.4em;font-size:1rem}ul.proposal-list li .category{color:#68d7fb;padding-right:.2rem}ul.proposal-list li .category.community{color:#fb6868}ul.proposal-list li .category.dev{color:#e068fb}ul.proposal-list li .category.design{color:#fbe468}ul.proposal-list li .category.docs{color:#97fb68}ul.proposal-list li .category.ops{color:#8f68fb}ul.proposal-list li .symbol{font-size:1rem;padding-left:.2rem}ul.proposal-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}@media (min-width:550px){ul.proposal-list li{grid-template-columns:auto 10rem;grid-row-gap:.5rem}ul.proposal-list li p.kredits-amount,ul.proposal-list li p.voting,ul.proposal-list li.unconfirmed p.kredits-amount,ul.proposal-list li.unconfirmed p.voting{text-align:right}ul.proposal-list li.unconfirmed p.description,ul.proposal-list li.unconfirmed p.voting{grid-column-start:span 1}ul.proposal-list li .description{font-size:inherit}}#topbar{padding:0 1rem;height:3rem;line-height:3rem;background-color:rgba(0,0,0,.3)}@media (min-width:961px){#topbar{padding:0 2rem;height:4rem;line-height:4rem}}#topbar h1{display:inline-block;text-transform:uppercase}#topbar h1 a{color:inherit;text-decoration:none}#topbar section#user-account{display:inline-block;float:right}img.avatar{width:2rem;height:2rem;vertical-align:middle;margin-right:.2rem;border-radius:1rem}img.avatar.medium{margin:0;width:10rem;height:10rem;border-radius:5rem}img.avatar.large{margin:0;width:256px;height:256px;border-radius:128px} \ No newline at end of file diff --git a/release/assets/vendor-d84a577c9f0624a0b15861936fe740f2.js b/release/assets/vendor-765025e7de61c40a38fb3d7f2c93d4aa.js similarity index 90% rename from release/assets/vendor-d84a577c9f0624a0b15861936fe740f2.js rename to release/assets/vendor-765025e7de61c40a38fb3d7f2c93d4aa.js index 7a540729..9099f5ed 100644 --- a/release/assets/vendor-d84a577c9f0624a0b15861936fe740f2.js +++ b/release/assets/vendor-765025e7de61c40a38fb3d7f2c93d4aa.js @@ -56,7 +56,7 @@ E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function( return a._invoke=function(e,r,n){var i=u return function(o,a){if(i===c)throw new Error("Generator is already running") if(i===f){if("throw"===o)throw a -return A()}for(;;){var s=n.delegate +return M()}for(;;){var s=n.delegate if(s){if("return"===o||"throw"===o&&s.iterator[o]===t){n.delegate=null var d=s.iterator.return if(d){var p=m(d,s.iterator,a) @@ -84,12 +84,12 @@ if(n)return n.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o>>0,n=0;nEe(e)?(o=e+1,s-Ee(e)):(o=e,s),{year:o,dayOfYear:a}}function He(e,t,r){var n,i,o=Ue(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1 return a<1?n=a+Ke(i=e.year()-1,t,r):a>Ke(e.year(),t,r)?(n=a-Ke(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Ke(e,t,r){var n=Ue(e,t,r),i=Ue(e+1,t,r) -return(Ee(e)-n+i)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),D("week",5),D("isoWeek",5),ue("w",J),ue("ww",J,W),ue("W",J),ue("WW",J,W),de(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=_(e)}),H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),D("day",11),D("weekday",11),D("isoWeekday",11),ue("d",J),ue("e",J),ue("E",J),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),de(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict) +return(Ee(e)-n+i)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),B("week",5),B("isoWeek",5),ue("w",J),ue("ww",J,W),ue("W",J),ue("WW",J,W),de(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=_(e)}),H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),ue("d",J),ue("e",J),ue("E",J),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),de(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict) null!=i?t.d=i:h(r).invalidWeekday=e}),de(["d","e","E"],function(e,t,r,n){t[n]=_(e)}) var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=ae,Ze=ae,Je=ae -function Qe(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],u=[],l=[] +function Xe(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],u=[],l=[] for(t=0;t<7;t++)r=f([2e3,1]).day(t),n=this.weekdaysMin(r,""),i=this.weekdaysShort(r,""),o=this.weekdays(r,""),a.push(n),s.push(i),u.push(o),l.push(n),l.push(i),l.push(o) for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ce(s[t]),u[t]=ce(u[t]),l[t]=ce(l[t]) -this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function $e(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Xe),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),$e("a",!0),$e("A",!1),P("hour","h"),D("hour",13),ue("a",et),ue("A",et),ue("H",J),ue("h",J),ue("k",J),ue("HH",J,W),ue("hh",J,W),ue("kk",J,W),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),he(["H","HH"],ge),he(["k","kk"],function(e,t,r){var n=_(e) +this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function $e(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Qe),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),$e("a",!0),$e("A",!1),P("hour","h"),B("hour",13),ue("a",et),ue("A",et),ue("H",J),ue("h",J),ue("k",J),ue("HH",J,W),ue("hh",J,W),ue("kk",J,W),ue("hmm",X),ue("hmmss",Q),ue("Hmm",X),ue("Hmmss",Q),he(["H","HH"],ge),he(["k","kk"],function(e,t,r){var n=_(e) t[ge]=24===n?0:n}),he(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),he(["h","hh"],function(e,t,r){t[ge]=_(e),h(r).bigHour=!0}),he("hmm",function(e,t,r){var n=e.length-2 t[ge]=_(e.substr(0,n)),t[ve]=_(e.substr(n)),h(r).bigHour=!0}),he("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2 t[ge]=_(e.substr(0,n)),t[ve]=_(e.substr(n,2)),t[be]=_(e.substr(i)),h(r).bigHour=!0}),he("Hmm",function(e,t,r){var n=e.length-2 t[ge]=_(e.substr(0,n)),t[ve]=_(e.substr(n))}),he("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2 t[ge]=_(e.substr(0,n)),t[ve]=_(e.substr(n,2)),t[be]=_(e.substr(i))}) -var tt,rt=Me("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},it={},ot={} +var tt,rt=Ae("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ge,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},it={},ot={} function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var r return e&&((r=o(t)?ct(e):lt(e,t))?tt=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null var r,n=nt -if(t.abbr=e,null!=it[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=it[e]._config +if(t.abbr=e,null!=it[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=it[e]._config else if(null!=t.parentLocale)if(null!=it[t.parentLocale])n=it[t.parentLocale]._config else{if(null==(r=st(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null n=r._config}return it[e]=new I(C(n,t)),ot[e]&&ot[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ct(e){var t @@ -184,9 +184,9 @@ t--}o++}return tt}(e)}function ft(e){var t,r=e._a return r&&-2===h(e).overflow&&(t=r[me]<0||11Ie(r[pe],r[me])?ye:r[ge]<0||24Ke(r,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=ze(r,n,i,o,a),e._a[pe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[pe],i[pe]),(e._dayOfYear>Ee(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Fe(a,0,e._dayOfYear),e._a[me]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t] for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t] 24===e._a[ge]&&0===e._a[ve]&&0===e._a[be]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Fe:function(e,t,r,n,i,o,a){var s @@ -217,58 +217,58 @@ return e._locale=e._locale||ct(e._l),null===g||void 0===w&&""===g?p({nullInput:! if(0===e._f.length)return h(e).invalidFormat=!0,e._d=new Date(NaN) for(i=0;ir.valueOf():r.valueOf()r.valueOf():r.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hr.isLocal=function(){return!!this.isValid()&&!this._isUTC},hr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hr.isUtc=Ut,hr.isUTC=Ut,hr.zoneAbbr=function(){return this._isUTC?"UTC":""},hr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hr.dates=k("dates accessor is deprecated. Use date instead.",ar),hr.months=k("months accessor is deprecated. Use month instead",Le),hr.years=k("years accessor is deprecated. Use year instead",Ae),hr.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),hr.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted +else if("string"==typeof this._i){var e=Dt(ie,this._i) +null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},hr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},hr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hr.isLocal=function(){return!!this.isValid()&&!this._isUTC},hr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hr.isUtc=Ut,hr.isUTC=Ut,hr.zoneAbbr=function(){return this._isUTC?"UTC":""},hr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hr.dates=k("dates accessor is deprecated. Use date instead.",ar),hr.months=k("months accessor is deprecated. Use month instead",Le),hr.years=k("years accessor is deprecated. Use year instead",Me),hr.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),hr.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted var e={} -if(y(e,this),(e=xt(e))._a){var t=e._isUTC?f(e._a):Mt(e._a) +if(y(e,this),(e=xt(e))._a){var t=e._isUTC?f(e._a):At(e._a) this._isDSTShifted=this.isValid()&&0+~]|"+B+")"+B+"*"),V=new RegExp(B+"|>"),W=new RegExp(U),G=new RegExp("^"+j+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),re=function(e,t,r){var n="0x"+t-65536 +var E=function(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w="sizzle"+1*new Date,_=e.document,S=0,E=0,k=ue(),x=ue(),M=ue(),A=ue(),T=function(e,t){return e===t&&(f=!0),0},C={}.hasOwnProperty,I=[],O=I.pop,P=I.push,R=I.push,N=I.slice,L=function(e,t){for(var r=0,n=e.length;r+~]|"+D+")"+D+"*"),V=new RegExp(D+"|>"),W=new RegExp(U),G=new RegExp("^"+j+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),re=function(e,t,r){var n="0x"+t-65536 return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"}) try{R.apply(I=N.call(_.childNodes),_.childNodes),I[_.childNodes.length].nodeType}catch(xe){R={apply:I.length?function(e,t){P.apply(e,N.call(t))}:function(e,t){for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function se(e,t,n,i){var o,s,l,c,f,p,g,v=t&&t.ownerDocument,S=t?t.nodeType:9 if(n=n||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return n if(!i&&((t?t.ownerDocument||t:_)!==d&&h(t),t=t||d,m)){if(11!==S&&(f=$.exec(e)))if(o=f[1]){if(9===S){if(!(l=t.getElementById(o)))return n if(l.id===o)return n.push(l),n}else if(v&&(l=v.getElementById(o))&&b(t,l)&&l.id===o)return n.push(l),n}else{if(f[2])return R.apply(n,t.getElementsByTagName(e)),n -if((o=f[3])&&r.getElementsByClassName&&t.getElementsByClassName)return R.apply(n,t.getElementsByClassName(o)),n}if(r.qsa&&!M[e+" "]&&(!y||!y.test(e))&&(1!==S||"object"!==t.nodeName.toLowerCase())){if(g=e,v=t,1===S&&V.test(e)){for((c=t.getAttribute("id"))?c=c.replace(ne,ie):t.setAttribute("id",c=w),s=(p=a(e)).length;s--;)p[s]="#"+c+" "+be(p[s]) -g=p.join(","),v=ee.test(e)&&ge(t.parentNode)||t}try{return R.apply(n,v.querySelectorAll(g)),n}catch(E){M(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return u(e.replace(H,"$1"),t,n,i)}function ue(){var e=[] +if((o=f[3])&&r.getElementsByClassName&&t.getElementsByClassName)return R.apply(n,t.getElementsByClassName(o)),n}if(r.qsa&&!A[e+" "]&&(!y||!y.test(e))&&(1!==S||"object"!==t.nodeName.toLowerCase())){if(g=e,v=t,1===S&&V.test(e)){for((c=t.getAttribute("id"))?c=c.replace(ne,ie):t.setAttribute("id",c=w),s=(p=a(e)).length;s--;)p[s]="#"+c+" "+be(p[s]) +g=p.join(","),v=ee.test(e)&&ge(t.parentNode)||t}try{return R.apply(n,v.querySelectorAll(g)),n}catch(E){A(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return u(e.replace(H,"$1"),t,n,i)}function ue(){var e=[] return function t(r,i){return e.push(r+" ")>n.cacheLength&&delete t[e.shift()],t[r+" "]=i}}function le(e){return e[w]=!0,e}function ce(e){var t=d.createElement("fieldset") try{return!!e(t)}catch(xe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var r=e.split("|"),i=r.length;i--;)n.attrHandle[r[i]]=t}function he(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex if(n)return n @@ -465,7 +465,7 @@ if(r)for(;r=r.nextSibling;)if(r===t)return-1 return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var r=t.nodeName.toLowerCase() return("input"===r||"button"===r)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ye(e){return le(function(t){return t=+t,le(function(r,n){for(var i,o=e([],r.length,t),a=o.length;a--;)r[i=o[a]]&&(r[i]=!(n[i]=r[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in r=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,r=(e.ownerDocument||e).documentElement return!Z.test(t||r&&r.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:_ -return a!==d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,m=!o(d),_!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),r.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=X.test(d.getElementsByClassName),r.getById=ce(function(e){return p.appendChild(e).id=w,!d.getElementsByName||!d.getElementsByName(w).length}),r.getById?(n.filter.ID=function(e){var t=e.replace(te,re) +return a!==d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,m=!o(d),_!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),r.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=Q.test(d.getElementsByClassName),r.getById=ce(function(e){return p.appendChild(e).id=w,!d.getElementsByName||!d.getElementsByName(w).length}),r.getById?(n.filter.ID=function(e){var t=e.replace(te,re) return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var r=t.getElementById(e) return r?[r]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,re) return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id") @@ -473,9 +473,9 @@ return r&&r.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m) if(o){if((r=o.getAttributeNode("id"))&&r.value===e)return[o] for(i=t.getElementsByName(e),n=0;o=i[n++];)if((r=o.getAttributeNode("id"))&&r.value===e)return[o]}return[]}}),n.find.TAG=r.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,n=[],i=0,o=t.getElementsByTagName(e) if("*"===e){for(;r=o[i++];)1===r.nodeType&&n.push(r) -return n}return o},n.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],y=[],(r.qsa=X.test(d.querySelectorAll))&&(ce(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+B+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+w+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||y.push(".#.+[+~]")}),ce(function(e){e.innerHTML="" +return n}return o},n.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],y=[],(r.qsa=Q.test(d.querySelectorAll))&&(ce(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+D+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+w+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||y.push(".#.+[+~]")}),ce(function(e){e.innerHTML="" var t=d.createElement("input") -t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(r.matchesSelector=X.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){r.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),g.push("!=",U)}),y=y.length&&new RegExp(y.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(p.compareDocumentPosition),b=t||X.test(p.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode +t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+D+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(r.matchesSelector=Q.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){r.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),g.push("!=",U)}),y=y.length&&new RegExp(y.join("|")),g=g.length&&new RegExp(g.join("|")),t=Q.test(p.compareDocumentPosition),b=t||Q.test(p.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0 return!1},T=t?function(e,t){if(e===t)return f=!0,0 var n=!e.compareDocumentPosition-!t.compareDocumentPosition @@ -486,8 +486,8 @@ if(i===o)return he(e,t) for(r=e;r=r.parentNode;)a.unshift(r) for(r=t;r=r.parentNode;)s.unshift(r) for(;a[n]===s[n];)n++ -return n?he(a[n],s[n]):a[n]===_?-1:s[n]===_?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&h(e),r.matchesSelector&&m&&!M[t+" "]&&(!g||!g.test(t))&&(!y||!y.test(t)))try{var n=v.call(e,t) -if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(xe){M(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&h(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&h(e) +return n?he(a[n],s[n]):a[n]===_?-1:s[n]===_?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&h(e),r.matchesSelector&&m&&!A[t+" "]&&(!g||!g.test(t))&&(!y||!y.test(t)))try{var n=v.call(e,t) +if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(xe){A(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&h(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&h(e) var i=n.attrHandle[t.toLowerCase()],o=i&&C.call(n.attrHandle,t.toLowerCase())?i(e,t,!m):void 0 return void 0!==o?o:r.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(ne,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],i=0,o=0 if(f=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(T),f){for(;t=e[o++];)t===e[o]&&(i=n.push(o)) @@ -497,7 +497,7 @@ for(e=e.firstChild;e;e=e.nextSibling)r+=i(e)}else if(3===o||4===o)return e.nodeV return r},(n=se.selectors={cacheLength:50,createPseudo:le,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,re),e[3]=(e[3]||e[4]||e[5]||"").replace(te,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2] return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&W.test(r)&&(t=a(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,re).toLowerCase() return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "] -return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(n){var i=se.attr(n,e) +return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(n){var i=se.attr(n,e) return null==i?"!="===t:!t||(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i.replace(z," ")+" ").indexOf(r)>-1:"|="===t&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,n,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t return 1===n&&0===i?function(e){return!!e.parentNode}:function(t,r,u){var l,c,f,h,d,p,m=o!==a?"nextSibling":"previousSibling",y=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!u&&!s,b=!1 if(y){if(o){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1 @@ -509,7 +509,7 @@ do{if(r=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.t return!1}}),target:function(t){var r=e.location&&e.location.hash return r&&r.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase() return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1 -return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase() +return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase() return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ye(function(){return[0]}),last:ye(function(e,t){return[t-1]}),eq:ye(function(e,t,r){return[r<0?r+t:r]}),even:ye(function(e,t){for(var r=0;r1&&_e(h),u>1&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(H,"$1"),r,u0,i=e.length>0,o=function(o,a,s,u,c){var f,p,y,g=0,v="0",b=o&&[],w=[],_=l,E=o||i&&n.find.TAG("*",c),k=S+=null==_?1:Math.random()||.1,x=E.length +if(!r)break}return t?s.length:s?se.error(e):x(e,u).slice(0)},s=se.compile=function(e,t){var r,i=[],o=[],s=M[e+" "] +if(!s){for(t||(t=a(e)),r=t.length;r--;)(s=ke(t[r]))[w]?i.push(s):o.push(s);(s=M(e,function(e,t){var r=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,p,y,g=0,v="0",b=o&&[],w=[],_=l,E=o||i&&n.find.TAG("*",c),k=S+=null==_?1:Math.random()||.1,x=E.length for(c&&(l=a===d||a||c);v!==x&&null!=(f=E[v]);v++){if(i&&f){for(p=0,a||f.ownerDocument===d||(h(f),s=!m);y=e[p++];)if(y(f,a||d,s)){u.push(f) break}c&&(S=k)}r&&((f=!y&&f)&&g--,o&&b.push(f))}if(g+=v,r&&v!==g){for(p=0;y=t[p++];)y(b,w,a,s) if(o){if(g>0)for(;v--;)b[v]||w[v]||(w[v]=O.call(u)) @@ -543,18 +543,18 @@ w=Se(w)}R.apply(u,w),c&&!o&&w.length>0&&g+t.length>1&&se.uniqueSort(u)}return c& return r?le(o):o}(o,i))).selector=e}return s},u=se.select=function(e,t,r,i){var o,u,l,c,f,h="function"==typeof e&&e,d=!i&&a(e=h.selector||e) if(r=r||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&m&&n.relative[u[1].type]){if(!(t=(n.find.ID(l.matches[0].replace(te,re),t)||[])[0]))return r h&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=Y.needsContext.test(e)?0:u.length;o--&&(l=u[o],!n.relative[c=l.type]);)if((f=n.find[c])&&(i=f(l.matches[0].replace(te,re),ee.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&be(u)))return R.apply(r,i),r -break}}return(h||s(e,d))(i,t,!m,r,!t||ee.test(e)&&ge(t.parentNode)||t),r},r.sortStable=w.split("").sort(T).join("")===w,r.detectDuplicates=!!f,h(),r.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),r.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(D,function(e,t,r){var n +break}}return(h||s(e,d))(i,t,!m,r,!t||ee.test(e)&&ge(t.parentNode)||t),r},r.sortStable=w.split("").sort(T).join("")===w,r.detectDuplicates=!!f,h(),r.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),r.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(B,function(e,t,r){var n if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),se}(e) w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape var k=function(e,t,r){for(var n=[],i=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(r))break n.push(e)}return n},x=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e) -return r},A=w.expr.match.needsContext -function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i +return r},M=w.expr.match.needsContext +function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i function C(e,t,r){return m(t)?w.grep(e,function(e,n){return!!t.call(e,n,e)!==r}):t.nodeType?w.grep(e,function(e){return e===t!==r}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==r}):w.filter(t,e,r)}w.filter=function(e,t,r){var n=t[0] return r&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?w.find.matchesSelector(n,e)?[n]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,r,n=this.length,i=this if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t1?w.uniqueSort(r):r},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&A.test(e)?w(e):e||[],!1).length}}) +return n>1?w.uniqueSort(r):r},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&M.test(e)?w(e):e||[],!1).length}}) var I,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,r){var i,o if(!e)return this if(r=r||I,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e) @@ -563,12 +563,12 @@ return this}return(o=n.getElementById(i[2]))&&(this[0]=o,this.length=1),this}ret var P=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0} function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),r=t.length return this.filter(function(){for(var e=0;e-1:1===r.nodeType&&w.find.matchesSelector(r,e))){o.push(r) +if(!M.test(e))for(;n-1:1===r.nodeType&&w.find.matchesSelector(r,e))){o.push(r) break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode -return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,r){return k(e,"parentNode",r)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,r){return k(e,"nextSibling",r)},prevUntil:function(e,t,r){return k(e,"previousSibling",r)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(M(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(r,n){var i=w.map(this,t,r) +return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,r){return k(e,"parentNode",r)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,r){return k(e,"nextSibling",r)},prevUntil:function(e,t,r){return k(e,"previousSibling",r)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(r,n){var i=w.map(this,t,r) return"Until"!==e.slice(-5)&&(n=r),n&&"string"==typeof n&&(i=w.filter(n,i)),this.length>1&&(R[e]||w.uniqueSort(i),P.test(e)&&i.reverse()),this.pushStack(i)}}) var L=/[^\x20\t\r\n\f]+/g -function D(e){return e}function B(e){throw e}function j(e,t,r,n){var i +function B(e){return e}function D(e){throw e}function j(e,t,r,n){var i try{e&&m(i=e.promise)?i.call(e).done(t).fail(r):e&&m(i=e.then)?i.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={} return w.each(e.match(L)||[],function(e,r){t[r]=!0}),t}(e):w.extend({},e) var t,r,n,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,n=t=!0;a.length;s=-1)for(r=a.shift();++s=o&&(n!==B&&(s=void 0,u=[e]),r.rejectWith(s,u))}} -t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){r[0][3].add(a(0,e,m(i)?i:D,e.notifyWith)),r[1][3].add(a(0,e,m(t)?t:D)),r[2][3].add(a(0,e,m(n)?n:B))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={} +l=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(l)?i?l.call(e,a(o,r,B,i),a(o,r,D,i)):(o++,l.call(e,a(o,r,B,i),a(o,r,D,i),a(o,r,B,r.notifyWith))):(n!==B&&(s=void 0,u=[e]),(i||r.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(n!==D&&(s=void 0,u=[e]),r.rejectWith(s,u))}} +t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){r[0][3].add(a(0,e,m(i)?i:B,e.notifyWith)),r[1][3].add(a(0,e,m(t)?t:B)),r[2][3].add(a(0,e,m(n)?n:D))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={} return w.each(r,function(e,t){var a=t[2],s=t[5] i[t[1]]=a.add,s&&a.add(function(){n=s},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,r=t,n=Array(r),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(r){n[e]=this,i[e]=arguments.length>1?o.call(arguments):r,--t||a.resolveWith(n,i)}} if(t<=1&&(j(e,a.done(s(r)).resolve,a.reject,!t),"pending"===a.state()||m(i[r]&&i[r].then)))return a.then() @@ -603,9 +603,9 @@ return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[t if(void 0!==n){if(void 0!==t){r=(t=Array.isArray(t)?t.map(W):(t=W(t))in n?[t]:t.match(L)||[]).length for(;r--;)delete n[t[r]]}(void 0===t||w.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando] return void 0!==t&&!w.isEmptyObject(t)}} -var Z=new Y,J=new Y,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g +var Z=new Y,J=new Y,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g function $(e,t,r){var n -if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(r)}catch(i){}J.set(e,t,r)}else r=void 0 +if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:X.test(e)?JSON.parse(e):e)}(r)}catch(i){}J.set(e,t,r)}else r=void 0 return r}w.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,r){return J.access(e,t,r)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,r){return Z.access(e,t,r)},_removeData:function(e,t){Z.remove(e,t)}}),w.fn.extend({data:function(e,t){var r,n,i,o=this[0],a=o&&o.attributes if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&0===(n=a[r].name).indexOf("data-")&&(n=W(n.slice(5)),$(o,n,i[n])) Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):H(this,function(t){var r @@ -634,7 +634,7 @@ for(o=0;o\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]} function ye(e,t){var r -return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?w.merge([e],r):r}function ge(e,t){for(var r=0,n=e.length;r-1)i&&i.push(o) else if(l=ie(o),a=ye(f.appendChild(o),"script"),l&&ge(a),r)for(c=0;o=a[c++];)pe.test(o.type||"")&&r.push(o) return f}ve=n.createDocumentFragment().appendChild(n.createElement("div")),(be=n.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ve.appendChild(be),p.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML="",p.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue var Se=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/ -function xe(){return!0}function Ae(){return!1}function Me(e,t){return e===function(){try{return n.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,r,n,i,o){var a,s +function xe(){return!0}function Me(){return!1}function Ae(e,t){return e===function(){try{return n.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,r,n,i,o){var a,s if("object"==typeof t){for(s in"string"!=typeof r&&(n=n||r,r=void 0),t)Te(e,s,r,n,t[s],o) -return e}if(null==n&&null==i?(i=r,n=r=void 0):null==i&&("string"==typeof r?(i=n,n=void 0):(i=n,n=r,r=void 0)),!1===i)i=Ae +return e}if(null==n&&null==i?(i=r,n=r=void 0):null==i&&("string"==typeof r?(i=n,n=void 0):(i=n,n=r,r=void 0)),!1===i)i=Me else if(!i)return e return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,n,r)})}function Ce(e,t,r){r?(Z.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var n,i,a=Z.get(this,t) if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation() @@ -659,31 +659,31 @@ if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a= return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var r,n,i,o,a,s=[],u=t.delegateCount,l=e.target if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},r=0;r-1:w.find(i,this,null,[l]).length),a[i]&&o.push(n) o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Oe=/\s*$/g -function Ne(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var r,n,i,o,a,s,u,l +function Ne(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var r,n,i,o,a,s,u,l if(1===t.nodeType){if(Z.hasData(e)&&(o=Z.access(e),a=Z.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(r=0,n=l[i].length;r1&&"string"==typeof y&&!p.checkClone&&Pe.test(y))return e.each(function(i){var o=e.eq(i) g&&(t[0]=y.call(this,i,o.html())),je(o,t,r,n)}) if(h&&(o=(i=_e(t,e[0].ownerDocument,!1,e,n)).firstChild,1===i.childNodes.length&&(i=o),o||n)){for(u=(s=w.map(ye(i,"script"),Le)).length;f")},clone:function(e,t,r){var n,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e) if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ye(c),n=0,i=(o=ye(e)).length;n0&&ge(a,!f&&ye(e,"script")),c},cleanData:function(e){for(var t,r,n,i=w.event.special,o=0;void 0!==(r=e[o]);o++)if(G(r)){if(t=r[Z.expando]){if(t.events)for(n in t.events)i[n]?w.event.remove(r,n):w.removeEvent(r,n,t.handle) r[Z.expando]=void 0}r[J.expando]&&(r[J.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return H(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e) t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ye(e,!1)),e.textContent="") @@ -705,7 +705,7 @@ i="1%"!==t.top,u=12===r(t.marginLeft),c.style.right="60%",s=36===r(t.right),o=36 c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))})() var Ve=["Webkit","Moz","ms"],We=n.createElement("div").style,Ge={} function Ye(e){var t=w.cssProps[e]||Ge[e] -return t||(e in We?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=Ve.length;r--;)if((e=Ve[r]+t)in We)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Qe={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"} +return t||(e in We?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=Ve.length;r--;)if((e=Ve[r]+t)in We)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"} function $e(e,t,r){var n=te.exec(t) return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function et(e,t,r,n,i,o){var a="width"===t?1:0,s=0,u=0 if(r===(n?"border":"content"))return 0 @@ -716,7 +716,7 @@ a="auto"}return(!p.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"= return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,r,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=W(t),u=Je.test(t),l=e.style if(u||(t=Ye(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===r)return a&&"get"in a&&void 0!==(i=a.get(e,!1,n))?i:l[t] "string"===(o=typeof r)&&(i=te.exec(r))&&i[1]&&(r=ue(e,t,i),o="number"),null!=r&&r==r&&("number"!==o||u||(r+=i&&i[3]||(w.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==r||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,n))||(u?l.setProperty(t,r):l[t]=r))}},css:function(e,t,r,n){var i,o,a,s=W(t) -return Je.test(t)||(t=Ye(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,r)),void 0===i&&(i=Ke(e,t,n)),"normal"===i&&t in Xe&&(i=Xe[t]),""===r||r?(o=parseFloat(i),!0===r||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,r,n){if(r)return!Ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,n):se(e,Qe,function(){return tt(e,t,n)})},set:function(e,r,n){var i,o=ze(e),a=!p.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===w.css(e,"boxSizing",!1,o),u=n?et(e,t,n,s,o):0 +return Je.test(t)||(t=Ye(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,r)),void 0===i&&(i=Ke(e,t,n)),"normal"===i&&t in Qe&&(i=Qe[t]),""===r||r?(o=parseFloat(i),!0===r||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,r,n){if(r)return!Ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,n):se(e,Xe,function(){return tt(e,t,n)})},set:function(e,r,n){var i,o=ze(e),a=!p.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===w.css(e,"boxSizing",!1,o),u=n?et(e,t,n,s,o):0 return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),u&&(i=te.exec(r))&&"px"!==(i[3]||"px")&&(e.style[t]=r,r=w.css(e,t)),$e(0,r,u)}}}),w.cssHooks.marginLeft=qe(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(r){for(var n=0,i={},o="string"==typeof r?r.split(" "):[r];n<4;n++)i[e+re[n]+t]=o[n]||o[n-2]||o[0] return i}},"margin"!==e&&(w.cssHooks[e+t].set=$e)}),w.fn.extend({css:function(e,t){return H(this,function(e,t,r){var n,i,o={},a=0 if(Array.isArray(t)){for(n=ze(e),i=t.length;a1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,r){var n,i,o=e.nodeType -if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,r):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ht:void 0)),void 0!==r?null===r?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(n=i.set(e,r,t))?n:(e.setAttribute(t,r+""),r):i&&"get"in i&&null!==(n=i.get(e,t))?n:null==(n=w.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&M(e,"input")){var r=e.value +if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,r):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ht:void 0)),void 0!==r?null===r?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(n=i.set(e,r,t))?n:(e.setAttribute(t,r+""),r):i&&"get"in i&&null!==(n=i.get(e,t))?n:null==(n=w.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&A(e,"input")){var r=e.value return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,i=t&&t.match(L) if(i&&1===e.nodeType)for(;r=i[n++];)e.removeAttribute(r)}}),ht={set:function(e,t,r){return!1===t?w.removeAttr(e,r):e.setAttribute(r,r),r}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var r=dt[t]||w.find.attr dt[t]=function(e,t,n){var i,o,a=t.toLowerCase() @@ -788,7 +788,7 @@ w.fn.extend({val:function(e){var t,r,n,i=this[0] return arguments.length?(n=m(e),this.each(function(r){var i 1===this.nodeType&&(null==(i=n?e.call(this,r,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(i,"value"))?r:"string"==typeof(r=i.value)?r.replace(bt,""):null==r?"":r:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value") return null!=t?t:yt(w.text(e))}},select:{get:function(e){var t,r,n,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length -for(n=o<0?u:a?o:0;n-1)&&(r=!0) return r||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},p.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),p.focusin="onfocusin"in e var wt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()} @@ -805,7 +805,7 @@ var St=e.location,Et=Date.now(),kt=/\?/ w.parseXML=function(t){var r if(!t||"string"!=typeof t)return null try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(n){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),r} -var xt=/\[\]$/,At=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i +var xt=/\[\]$/,Mt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i function Ct(e,t,r,n){var i if(Array.isArray(t))w.each(t,function(t,i){r||xt.test(e)?n(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,n)}) else if(r||"object"!==b(t))n(e,t) @@ -816,17 +816,17 @@ if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.na else for(r in e)Ct(r,e[r],t,i) return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements") return e?w.makeArray(e):this}).filter(function(){var e=this.type -return this.name&&!w(this).is(":disabled")&&Tt.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var r=w(this).val() -return null==r?null:Array.isArray(r)?w.map(r,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:r.replace(At,"\r\n")}}).get()}}) -var It=/%20/g,Ot=/#.*$/,Pt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Dt={},Bt={},jt="*/".concat("*"),Ft=n.createElement("a") +return this.name&&!w(this).is(":disabled")&&Tt.test(this.nodeName)&&!At.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var r=w(this).val() +return null==r?null:Array.isArray(r)?w.map(r,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:r.replace(Mt,"\r\n")}}).get()}}) +var It=/%20/g,Ot=/#.*$/,Pt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Bt={},Dt={},jt="*/".concat("*"),Ft=n.createElement("a") function Ut(e){return function(t,r){"string"!=typeof t&&(r=t,t="*") var n,i=0,o=t.toLowerCase().match(L)||[] -if(m(r))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function zt(e,t,r,n){var i={},o=e===Bt +if(m(r))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function zt(e,t,r,n){var i={},o=e===Dt function a(s){var u return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,r,n) return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ht(e,t){var r,n,i=w.ajaxSettings.flatOptions||{} for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]) -return n&&w.extend(!0,e,n),e}Ft.href=St.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,w.ajaxSettings),t):Ht(w.ajaxSettings,e)},ajaxPrefilter:Ut(Dt),ajaxTransport:Ut(Bt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{} +return n&&w.extend(!0,e,n),e}Ft.href=St.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,w.ajaxSettings),t):Ht(w.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(Dt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{} var i,o,a,s,u,l,c,f,h,d,p=w.ajaxSetup({},r),m=p.context||p,y=p.context&&(m.nodeType||m.jquery)?w(m):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),b=p.statusCode||{},_={},S={},E="canceled",k={readyState:0,getResponseHeader:function(e){var t if(c){if(!s)for(s={};t=Rt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]) t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t @@ -835,13 +835,13 @@ else for(t in e)b[t]=[b[t],e[t]] return this},abort:function(e){var t=e||E return i&&i.abort(t),x(0,t),this}} if(g.promise(k),p.url=((t||p.url||St.href)+"").replace(Lt,St.protocol+"//"),p.type=r.method||r.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=n.createElement("a") -try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(A){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),zt(Dt,p,r,k),c)return k +try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(M){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),zt(Bt,p,r,k),c)return k for(h in(f=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nt.test(p.type),o=p.url.replace(Ot,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(It,"+")):(d=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(kt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Pt,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),p.url=o+d),p.ifModified&&(w.lastModified[o]&&k.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&k.setRequestHeader("If-None-Match",w.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||r.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+jt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(h,p.headers[h]) if(p.beforeSend&&(!1===p.beforeSend.call(m,k,p)||c))return k.abort() -if(E="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=zt(Bt,p,r,k)){if(k.readyState=1,f&&y.trigger("ajaxSend",[k,p]),c)return k +if(E="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=zt(Dt,p,r,k)){if(k.readyState=1,f&&y.trigger("ajaxSend",[k,p]),c)return k p.async&&p.timeout>0&&(u=e.setTimeout(function(){k.abort("timeout")},p.timeout)) -try{c=!1,i.send(_,x)}catch(A){if(c)throw A -x(-1,A)}}else x(-1,"No Transport") +try{c=!1,i.send(_,x)}catch(M){if(c)throw M +x(-1,M)}}else x(-1,"No Transport") function x(t,r,n,s){var l,h,d,_,S,E=r c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",k.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(_=function(e,t,r){for(var n,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type")) if(n)for(i in s)if(s[i]&&s[i].test(n)){u.unshift(i) @@ -852,7 +852,7 @@ if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a] for(o=c.shift();o;)if(e.responseFields[o]&&(r[e.responseFields[o]]=t),!u&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1])) break}if(!0!==a)if(a&&e.throws)t=a(t) -else try{t=a(t)}catch(A){return{state:"parsererror",error:a?A:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(p,_,k,l),l?(p.ifModified&&((S=k.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=S),(S=k.getResponseHeader("etag"))&&(w.etag[o]=S)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=_.state,h=_.data,l=!(d=_.error))):(d=E,!t&&E||(E="error",t<0&&(t=0))),k.status=t,k.statusText=(r||E)+"",l?g.resolveWith(m,[h,E,k]):g.rejectWith(m,[k,E,d]),k.statusCode(b),b=void 0,f&&y.trigger(l?"ajaxSuccess":"ajaxError",[k,p,l?h:d]),v.fireWith(m,[k,E]),f&&(y.trigger("ajaxComplete",[k,p]),--w.active||w.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,r){return w.get(e,t,r,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,r,n,i){return m(r)&&(i=i||n,n=r,r=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:r,success:n},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e,t){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t)}})},w.fn.extend({wrapAll:function(e){var t +else try{t=a(t)}catch(M){return{state:"parsererror",error:a?M:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(p,_,k,l),l?(p.ifModified&&((S=k.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=S),(S=k.getResponseHeader("etag"))&&(w.etag[o]=S)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=_.state,h=_.data,l=!(d=_.error))):(d=E,!t&&E||(E="error",t<0&&(t=0))),k.status=t,k.statusText=(r||E)+"",l?g.resolveWith(m,[h,E,k]):g.rejectWith(m,[k,E,d]),k.statusCode(b),b=void 0,f&&y.trigger(l?"ajaxSuccess":"ajaxError",[k,p,l?h:d]),v.fireWith(m,[k,E]),f&&(y.trigger("ajaxComplete",[k,p]),--w.active||w.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,r){return w.get(e,t,r,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,r,n,i){return m(r)&&(i=i||n,n=r,r=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:r,success:n},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e,t){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t)}})},w.fn.extend({wrapAll:function(e){var t return this[0]&&(m(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),r=t.contents() r.length?r.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e) @@ -883,7 +883,7 @@ if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[n] o?o.scrollTo(r?o.pageXOffset:i,r?i:o.pageYOffset):e[n]=i},e,n,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=qe(p.pixelPosition,function(e,r){if(r)return r=Ke(e,t),Ue.test(r)?w(e).position()[t]+"px":r})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(r,n){w.fn[n]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(!0===i||!0===o?"margin":"border") return H(this,function(t,r,i){var o return y(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,r,s):w.style(t,r,i,s)},t,a?i:void 0,a)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)}}),w.proxy=function(e,t){var r,n,i -if("string"==typeof t&&(r=e[t],t=e,e=r),m(e))return n=o.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=m,w.isWindow=y,w.camelCase=W,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e) +if("string"==typeof t&&(r=e[t],t=e,e=r),m(e))return n=o.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=m,w.isWindow=y,w.camelCase=W,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e) return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}) var Yt=e.jQuery,Zt=e.$ return w.noConflict=function(t){return e.$===w&&(e.$=Zt),t&&e.jQuery===w&&(e.jQuery=Yt),w},t||(e.jQuery=e.$=w),w}),function(){var e,t,r @@ -1043,26 +1043,26 @@ return t.forEach(function(t){for(var n in t)if(t.hasOwnProperty(n)&&e.detect(t[n r.push(o)}}),r},getRecords:function(){return(0,o.A)()},wrapRecord:function(e){var t={object:e} return t.columnValues=this.getRecordColumnValues(e),t.searchKeywords=this.getRecordKeywords(e),t.filterValues=this.getRecordFilterValues(e),t.color=this.getRecordColor(e),t},getRecordColumnValues:function(){return{}},getRecordKeywords:function(){return(0,o.A)()},getRecordFilterValues:function(){return{}},getRecordColor:function(){return null},observeRecord:function(){return function(){}}}) e.default=a}),e("@ember/-internals/glimmer",["exports","node-module","ember-babel","@ember/polyfills","@ember/-internals/owner","@glimmer/opcode-compiler","@ember/-internals/runtime","@ember/-internals/utils","@glimmer/reference","@ember/-internals/metal","@ember/debug","@glimmer/runtime","@glimmer/util","@ember/-internals/views","@ember/-internals/browser-environment","@ember/instrumentation","@ember/service","@ember/-internals/environment","@ember/string","@glimmer/wire-format","@ember/-internals/container","@ember/runloop","rsvp","@glimmer/node","@ember/-internals/routing","@ember/deprecated-features"],function(e,t,r,n,i,o,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x){"use strict" -function A(){const e=D(["component:-default"]) -return A=function(){return e},e}function M(){const e=D(["template-compiler:main"]) -return M=function(){return e},e}function T(){const e=D(["template-compiler:main"]) -return T=function(){return e},e}function C(){const e=D(["template-compiler:main"]) -return C=function(){return e},e}function I(){const e=D(["template:components/-default"]) -return I=function(){return e},e}function O(){const e=D(["template:-root"]) -return O=function(){return e},e}function P(){const e=D(["template:-root"]) -return P=function(){return e},e}function R(){const e=D(["component:-default"]) -return R=function(){return e},e}function N(){const e=D(["template:components/-default"]) -return N=function(){return e},e}function L(){const e=D(["template:components/-default"]) -return L=function(){return e},e}function D(e,t){return t||(t=e.slice(0)),e.raw=t,e}var B +function M(){const e=B(["component:-default"]) +return M=function(){return e},e}function A(){const e=B(["template-compiler:main"]) +return A=function(){return e},e}function T(){const e=B(["template-compiler:main"]) +return T=function(){return e},e}function C(){const e=B(["template-compiler:main"]) +return C=function(){return e},e}function I(){const e=B(["template:components/-default"]) +return I=function(){return e},e}function O(){const e=B(["template:-root"]) +return O=function(){return e},e}function P(){const e=B(["template:-root"]) +return P=function(){return e},e}function R(){const e=B(["component:-default"]) +return R=function(){return e},e}function N(){const e=B(["template:components/-default"]) +return N=function(){return e},e}function L(){const e=B(["template:components/-default"]) +return L=function(){return e},e}function B(e,t){return t||(t=e.slice(0)),e.raw=t,e}var D function j(e){return new F((0,o.templateFactory)(e))}e.template=j,e.helper=q,e.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML() if(null==e)return"" if(!e)return String(e) e=String(e)}if(!it.test(e))return e return e.replace(ot,at)},e.htmlSafe=st,e.isHTMLSafe=ut,e._resetRenderers=function(){Wt.length=0},e.renderSettled=function(){null===Zt&&(Zt=S.default.defer(),(0,_.getCurrentRunLoop)()||_.backburner.schedule("actions",null,Yt)) -return Zt.promise},e.getTemplate=function(e){if(er.hasOwnProperty(e))return er[e]},e.setTemplate=function(e,t){return er[e]=t},e.hasTemplate=function(e){return er.hasOwnProperty(e)},e.getTemplates=function(){return er},e.setTemplates=function(e){er=e},e.setupEngineRegistry=function(e){e.register("view:-outlet",kn),e.register("template:-outlet",_n),e.injection("view:-outlet","template","template:-outlet"),e.injection("service:-dom-changes","document","service:-document"),e.injection("service:-dom-tree-construction","document","service:-document"),e.register((0,w.privatize)(I()),bn),e.register("service:-glimmer-environment",ft),e.register((0,w.privatize)(C()),vn),e.injection((0,w.privatize)(T()),"environment","-environment:main"),e.injection("template","compiler",(0,w.privatize)(M())),e.optionsForType("helper",{instantiate:!1}),e.register("helper:loc",hr),e.register("component:-text-field",Ee),e.register("component:-checkbox",_e),e.register("component:link-to",Ie),e.register("component:input",fr),e.register("template:components/input",wn),e.register("component:textarea",ke) -g.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS||e.register((0,w.privatize)(A()),be)},e.setupApplicationRegistry=function(e){e.injection("service:-glimmer-environment","appendOperations","service:-dom-tree-construction"),e.injection("renderer","env","service:-glimmer-environment"),e.register("service:-dom-builder",{create:function(e){switch(e.bootOptions._renderMode){case"serialize":return E.serializeBuilder.bind(null) +return Zt.promise},e.getTemplate=function(e){if(er.hasOwnProperty(e))return er[e]},e.setTemplate=function(e,t){return er[e]=t},e.hasTemplate=function(e){return er.hasOwnProperty(e)},e.getTemplates=function(){return er},e.setTemplates=function(e){er=e},e.setupEngineRegistry=function(e){e.register("view:-outlet",kn),e.register("template:-outlet",_n),e.injection("view:-outlet","template","template:-outlet"),e.injection("service:-dom-changes","document","service:-document"),e.injection("service:-dom-tree-construction","document","service:-document"),e.register((0,w.privatize)(I()),bn),e.register("service:-glimmer-environment",ft),e.register((0,w.privatize)(C()),vn),e.injection((0,w.privatize)(T()),"environment","-environment:main"),e.injection("template","compiler",(0,w.privatize)(A())),e.optionsForType("helper",{instantiate:!1}),e.register("helper:loc",hr),e.register("component:-text-field",Ee),e.register("component:-checkbox",_e),e.register("component:link-to",Ie),e.register("component:input",fr),e.register("template:components/input",wn),e.register("component:textarea",ke) +g.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS||e.register((0,w.privatize)(M()),be)},e.setupApplicationRegistry=function(e){e.injection("service:-glimmer-environment","appendOperations","service:-dom-tree-construction"),e.injection("renderer","env","service:-glimmer-environment"),e.register("service:-dom-builder",{create:function(e){switch(e.bootOptions._renderMode){case"serialize":return E.serializeBuilder.bind(null) case"rehydrate":return f.rehydrationBuilder.bind(null) -default:return f.clientBuilder.bind(null)}}}),e.injection("service:-dom-builder","bootOptions","-environment:main"),e.injection("renderer","builder","service:-dom-builder"),e.register((0,w.privatize)(P()),U),e.injection("renderer","rootTemplate",(0,w.privatize)(O())),e.register("renderer:-dom",$t),e.register("renderer:-inert",Xt),p.hasDOM&&e.injection("service:-glimmer-environment","updateOperations","service:-dom-changes") +default:return f.clientBuilder.bind(null)}}}),e.injection("service:-dom-builder","bootOptions","-environment:main"),e.injection("renderer","builder","service:-dom-builder"),e.register((0,w.privatize)(P()),U),e.injection("renderer","rootTemplate",(0,w.privatize)(O())),e.register("renderer:-dom",$t),e.register("renderer:-inert",Qt),p.hasDOM&&e.injection("service:-glimmer-environment","updateOperations","service:-dom-changes") e.register("service:-dom-changes",{create:function(e){var t=e.document return new f.DOMChanges(t)}}),e.register("service:-dom-tree-construction",{create:function(e){var t=e.document,r=p.hasDOM?f.DOMTreeConstruction:E.NodeDOMTreeConstruction return new r(t)}})},e._registerMacros=function(e){fn.push(e)},e.iterableFor=Le,e.capabilities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} @@ -1079,19 +1079,19 @@ e.Helper=H,H.isHelperFactory=!0 var K=function(){function e(e){this.compute=e,this.isHelperFactory=!0}return e.prototype.create=function(){return{compute:this.compute}},e}() function q(e){return new K(e)}function V(e){return(0,a.isArray)(e)?0!==e.length:Boolean(e)}var W=(0,s.symbol)("UPDATE"),G=(0,s.symbol)("INVOKE") e.INVOKE=G -var Y=(0,s.symbol)("ACTION"),Z=function(){function e(){}return e.prototype.get=function(e){return X.create(this,e)},e}(),J=function(e){function t(){var t +var Y=(0,s.symbol)("ACTION"),Z=function(){function e(){}return e.prototype.get=function(e){return Q.create(this,e)},e}(),J=function(e){function t(){var t return(t=e.call(this)||this).lastRevision=null,t.lastValue=null,t}return(0,r.inheritsLoose)(t,e),t.prototype.value=function(){var e=this.tag,t=this.lastRevision,r=this.lastValue -return null!==t&&e.validate(t)||(r=this.lastValue=this.compute(),this.lastRevision=e.value()),r},t}(Z),Q=function(e){function t(t){var r +return null!==t&&e.validate(t)||(r=this.lastValue=this.compute(),this.lastRevision=e.value()),r},t}(Z),X=function(e){function t(t){var r return(r=e.call(this,t)||this).children=Object.create(null),r}return(0,r.inheritsLoose)(t,e),t.create=function(e){return he(e)},t.prototype.get=function(e){var t=this.children[e] return void 0===t&&(t=this.children[e]=new $(this.inner,e)),t},t}(u.ConstReference) -var X=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.inheritsLoose)(t,e),t.create=function(e,t){return(0,u.isConst)(e)?function(e,t){if(le(e))return new $(e,t) +var Q=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.inheritsLoose)(t,e),t.create=function(e,t){return(0,u.isConst)(e)?function(e,t){if(le(e))return new $(e,t) if(ce(e))return new ae(e[t]) if(fe(e))return f.UNDEFINED_REFERENCE throw(0,h.unreachable)()}(e.value(),t):new ee(e,t)},t.prototype.get=function(e){return new ee(this,e)},t}(J),$=function(e){function t(t,r){var n return(n=e.call(this)||this).parentValue=t,n.propertyKey=r,n.propertyTag=u.UpdatableTag.create((0,l.tagForProperty)(t,r)),n.tag=n.propertyTag,n}(0,r.inheritsLoose)(t,e) var n=t.prototype return n.compute=function(){var e=this.parentValue,t=this.propertyKey -return(0,l.get)(e,t)},n[W]=function(e){(0,l.set)(this.parentValue,this.propertyKey,e)},t}(X),ee=function(e){function t(t,r){var n;(n=e.call(this)||this).parentReference=t,n.propertyKey=r +return(0,l.get)(e,t)},n[W]=function(e){(0,l.set)(this.parentValue,this.propertyKey,e)},t}(Q),ee=function(e){function t(t,r){var n;(n=e.call(this)||this).parentReference=t,n.propertyKey=r var i=t.tag,o=n.propertyTag=u.UpdatableTag.create(u.CONSTANT_TAG) return n.tag=(0,u.combine)([i,o]),n}(0,r.inheritsLoose)(t,e) var n=t.prototype @@ -1101,7 +1101,7 @@ if("object"===i&&null!==n||"function"===i){var o=n 0 0 var a=(0,l.get)(o,r) -return t.inner.update((0,l.tagForProperty)(o,r)),a}},n[W]=function(e){(0,l.set)(this.parentReference.value(),this.propertyKey,e)},t}(X),te=function(e){function t(t){var r +return t.inner.update((0,l.tagForProperty)(o,r)),a}},n[W]=function(e){(0,l.set)(this.parentReference.value(),this.propertyKey,e)},t}(Q),te=function(e){function t(t){var r return(r=e.call(this)||this).tag=u.DirtyableTag.create(),r._value=t,r}(0,r.inheritsLoose)(t,e) var n=t.prototype return n.value=function(){return this._value},n.update=function(e){e!==this._value&&(this.tag.inner.dirty(),this._value=e)},t}(Z) @@ -1120,11 +1120,11 @@ var n=t.prototype return n.compute=function(){return this.inner.value()},n.get=function(e){return this.inner.get(e)},(0,r.createClass)(t,[{key:G,get:function(){return this.inner[G]}}]),t}(J) function ue(e,t){for(var r=e,n=0;n1&&void 0!==arguments[1])||arguments[1] -return le(e)?t?new Q(e):new ae(e):ce(e)?new ae(e):f.PrimitiveReference.create(e)}var de=(0,s.symbol)("DIRTY_TAG"),pe=(0,s.symbol)("ARGS"),me=(0,s.symbol)("ROOT_REF") +return le(e)?t?new X(e):new ae(e):ce(e)?new ae(e):f.PrimitiveReference.create(e)}var de=(0,s.symbol)("DIRTY_TAG"),pe=(0,s.symbol)("ARGS"),me=(0,s.symbol)("ROOT_REF") e.ROOT_REF=me -var ye=(0,s.symbol)("IS_DISPATCHING_ATTRS"),ge=(0,s.symbol)("HAS_BLOCK"),ve=(0,s.symbol)("BOUNDS"),be=d.CoreView.extend(d.ChildViewsSupport,d.ViewStateSupport,d.ClassNamesSupport,a.TargetActionSupport,d.ActionSupport,d.ViewMixin,((B={isComponent:!0,init:function(){this._super.apply(this,arguments),this[ye]=!1,this[de]=u.DirtyableTag.create(),this[me]=new Q(this),this[ve]=null},rerender:function(){this[de].inner.dirty(),this._super()}})[l.PROPERTY_DID_CHANGE]=function(e){if(!this[ye]){var t=this[pe],r=void 0!==t?t[e]:void 0 -void 0!==r&&void 0!==r[W]&&r[W]((0,l.get)(this,e))}},B.getAttr=function(e){return this.get(e)},B.readDOMAttr=function(e){var t=(0,d.getViewElement)(this),r=t,n=r.namespaceURI===f.SVG_NAMESPACE,i=(0,f.normalizeProperty)(r,e),o=i.type,a=i.normalized -return n||"attr"===o?r.getAttribute(a):r[a]},B.didReceiveAttrs=function(){},B.didRender=function(){},B.willRender=function(){},B.didUpdateAttrs=function(){},B.willUpdate=function(){},B.didUpdate=function(){},B)) +var ye=(0,s.symbol)("IS_DISPATCHING_ATTRS"),ge=(0,s.symbol)("HAS_BLOCK"),ve=(0,s.symbol)("BOUNDS"),be=d.CoreView.extend(d.ChildViewsSupport,d.ViewStateSupport,d.ClassNamesSupport,a.TargetActionSupport,d.ActionSupport,d.ViewMixin,((D={isComponent:!0,init:function(){this._super.apply(this,arguments),this[ye]=!1,this[de]=u.DirtyableTag.create(),this[me]=new X(this),this[ve]=null},rerender:function(){this[de].inner.dirty(),this._super()}})[l.PROPERTY_DID_CHANGE]=function(e){if(!this[ye]){var t=this[pe],r=void 0!==t?t[e]:void 0 +void 0!==r&&void 0!==r[W]&&r[W]((0,l.get)(this,e))}},D.getAttr=function(e){return this.get(e)},D.readDOMAttr=function(e){var t=(0,d.getViewElement)(this),r=t,n=r.namespaceURI===f.SVG_NAMESPACE,i=(0,f.normalizeProperty)(r,e),o=i.type,a=i.normalized +return n||"attr"===o?r.getAttribute(a):r[a]},D.didReceiveAttrs=function(){},D.didRender=function(){},D.willRender=function(){},D.didUpdateAttrs=function(){},D.willUpdate=function(){},D.didUpdate=function(){},D)) e.Component=be,be.toString=function(){return"@ember/component"},be.reopenClass({isComponentFactory:!0,positionalParams:[]}) var we=j({id:"hvtsz7RF",block:'{"symbols":[],"statements":[],"hasEval":false}',meta:{moduleName:"packages/@ember/-internals/glimmer/lib/templates/empty.hbs"}}),_e=be.extend({layout:we,classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,didInsertElement:function(){this._super.apply(this,arguments),this.element.indeterminate=Boolean(this.indeterminate)},change:function(){(0,l.set)(this,"checked",this.element.checked)}}) e.Checkbox=_e,_e.toString=function(){return"@ember/component/checkbox"} @@ -1137,12 +1137,12 @@ try{t.type=e}catch(r){}return Se[e]=t.type===e}(t)&&(r=t),r}}),size:null,pattern e.TextField=Ee,Ee.toString=function(){return"@ember/component/text-field"} var ke=be.extend(d.TextSupport,{classNames:["ember-text-area"],layout:we,tagName:"textarea",attributeBindings:["rows","cols","name","selectionEnd","selectionStart","autocomplete","wrap","lang","dir","value"],rows:null,cols:null}) e.TextArea=ke,ke.toString=function(){return"@ember/component/text-area"} -var xe,Ae=j({id:"VKeIRbyr",block:'{"symbols":["&default"],"statements":[[4,"if",[[26,1]],null,{"statements":[[15,1]],"parameters":[]},{"statements":[[1,[24,0,["linkTitle"]],false]],"parameters":[]}]],"hasEval":false}',meta:{moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs"}}),Me=Object.freeze({toString:function(){return"UNDEFINED"}}),Te=Object.freeze({});(xe=be.extend({layout:Ae,tagName:"a",route:Me,model:Me,models:Me,query:Me,"current-when":null,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init:function(){this._super.apply(this,arguments) +var xe,Me=j({id:"VKeIRbyr",block:'{"symbols":["&default"],"statements":[[4,"if",[[26,1]],null,{"statements":[[15,1]],"parameters":[]},{"statements":[[1,[24,0,["linkTitle"]],false]],"parameters":[]}]],"hasEval":false}',meta:{moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs"}}),Ae=Object.freeze({toString:function(){return"UNDEFINED"}}),Te=Object.freeze({});(xe=be.extend({layout:Me,tagName:"a",route:Ae,model:Ae,models:Ae,query:Ae,"current-when":null,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init:function(){this._super.apply(this,arguments) var e=this.eventName this.on(e,this,this._invoke)},_routing:(0,y.inject)("-routing"),_currentRoute:(0,l.alias)("_routing.currentRouteName"),_currentRouterState:(0,l.alias)("_routing.currentState"),_targetRouterState:(0,l.alias)("_routing.targetState"),_route:(0,l.computed)("route","_currentRouterState",function(){var e=this.route -return e===Me?this._currentRoute:e}),_models:(0,l.computed)("model","models",function(){var e=this.model,t=this.models -return e!==Me?[e]:t!==Me?t:[]}),_query:(0,l.computed)("query",function(){var e=this.query -return e===Me?Te:(0,n.assign)({},e)}),disabled:(0,l.computed)({get:function(e){return!1},set:function(e,t){return this._isDisabled=t,!!t&&this.disabledClass}}),active:(0,l.computed)("activeClass","_active",function(){return!!this._active&&this.activeClass}),_active:(0,l.computed)("_currentRouterState","_route","_models","_query","loading","current-when",function(){var e=this._currentRouterState +return e===Ae?this._currentRoute:e}),_models:(0,l.computed)("model","models",function(){var e=this.model,t=this.models +return e!==Ae?[e]:t!==Ae?t:[]}),_query:(0,l.computed)("query",function(){var e=this.query +return e===Ae?Te:(0,n.assign)({},e)}),disabled:(0,l.computed)({get:function(e){return!1},set:function(e,t){return this._isDisabled=t,!!t&&this.disabledClass}}),active:(0,l.computed)("activeClass","_active",function(){return!!this._active&&this.activeClass}),_active:(0,l.computed)("_currentRouterState","_route","_models","_query","loading","current-when",function(){var e=this._currentRouterState return!!e&&this._isActive(e)}),willBeActive:(0,l.computed)("_currentRouterState","_targetRouterState","_route","_models","_query","loading","current-when",function(){var e=this._currentRouterState,t=this._targetRouterState if(e!==t)return this._isActive(t)}),_isActive:function(e){if(this.loading)return!1 var t=this["current-when"] @@ -1166,7 +1166,7 @@ void 0!==e&&this.set("disabled",e) var t=this.params if(t&&0!==t.length){t=t.slice(),this[ge]||this.set("linkTitle",t.shift()) var r=t[t.length-1] -r&&r.isQueryParams?this.set("query",t.pop().values):this.set("query",Me),0===t.length?this.set("route",Me):this.set("route",t.shift()),this.set("model",Me),this.set("models",t)}else;}})).toString=function(){return"@ember/routing/link-component"},xe.reopenClass({positionalParams:"params"}) +r&&r.isQueryParams?this.set("query",t.pop().values):this.set("query",Ae),0===t.length?this.set("route",Ae):this.set("route",t.shift()),this.set("model",Ae),this.set("models",t)}else;}})).toString=function(){return"@ember/routing/link-component"},xe.reopenClass({positionalParams:"params"}) var Ce,Ie=xe e.LinkComponent=Ie var Oe=Ce @@ -1174,23 +1174,23 @@ e.DebugStack=Oe var Pe=(0,s.symbol)("EACH_IN"),Re=function(){function e(e){this.inner=e,this.tag=e.tag,this[Pe]=!0}var t=e.prototype return t.value=function(){return this.inner.value()},t.get=function(e){return this.inner.get(e)},e}() var Ne="be277757-bbbe-4620-9fcb-213ef433cca2" -function Le(e,t){return function(e){return null!==e&&"object"==typeof e&&e[Pe]}(e)?new qe(e,t||"@key"):new Ve(e,t||"@identity")}var De=function(){function e(e,t){this.length=e,this.keyFor=t,this.position=0}var t=e.prototype +function Le(e,t){return function(e){return null!==e&&"object"==typeof e&&e[Pe]}(e)?new qe(e,t||"@key"):new Ve(e,t||"@identity")}var Be=function(){function e(e,t){this.length=e,this.keyFor=t,this.position=0}var t=e.prototype return t.isEmpty=function(){return!1},t.memoFor=function(e){return e},t.next=function(){var e=this.length,t=this.keyFor,r=this.position if(r>=e)return null var n=this.valueFor(r),i=this.memoFor(r),o=t(n,i,r) -return this.position++,{key:o,value:n,memo:i}},e}(),Be=function(e){function t(t,r,n){var i +return this.position++,{key:o,value:n,memo:i}},e}(),De=function(e){function t(t,r,n){var i return(i=e.call(this,r,n)||this).array=t,i}return(0,r.inheritsLoose)(t,e),t.from=function(e,t){var r=e.length return 0===r?Ke:new this(e,r,t)},t.fromForEachable=function(e,t){var r=[] -return e.forEach(function(e){return r.push(e)}),this.from(r,t)},t.prototype.valueFor=function(e){return this.array[e]},t}(De),je=function(e){function t(t,r,n){var i +return e.forEach(function(e){return r.push(e)}),this.from(r,t)},t.prototype.valueFor=function(e){return this.array[e]},t}(Be),je=function(e){function t(t,r,n){var i return(i=e.call(this,r,n)||this).array=t,i}return(0,r.inheritsLoose)(t,e),t.from=function(e,t){var r=e.length -return 0===r?Ke:new this(e,r,t)},t.prototype.valueFor=function(e){return(0,l.objectAt)(this.array,e)},t}(De),Fe=function(e){function t(t,r,n,i){var o +return 0===r?Ke:new this(e,r,t)},t.prototype.valueFor=function(e){return(0,l.objectAt)(this.array,e)},t}(Be),Fe=function(e){function t(t,r,n,i){var o return(o=e.call(this,n,i)||this).keys=t,o.values=r,o}(0,r.inheritsLoose)(t,e),t.fromIndexable=function(e,t){var r=Object.keys(e),n=r.length if(0===n)return Ke for(var i=[],o=0;o=2)&&n.push(t),i.push(e),o++}),0===o?Ke:a?new this(n,i,o,t):new Be(i,o,t)} +return e.forEach(function(e,t){(a=a||r.length>=2)&&n.push(t),i.push(e),o++}),0===o?Ke:a?new this(n,i,o,t):new De(i,o,t)} var n=t.prototype -return n.valueFor=function(e){return this.values[e]},n.memoFor=function(e){return this.keys[e]},t}(De),Ue=function(){function e(e,t,r){this.iterable=e,this.result=t,this.keyFor=r,this.position=0}e.from=function(e,t){var r=e[Symbol.iterator](),n=r.next(),i=n.value +return n.valueFor=function(e){return this.values[e]},n.memoFor=function(e){return this.keys[e]},t}(Be),Ue=function(){function e(e,t,r){this.iterable=e,this.result=t,this.keyFor=r,this.position=0}e.from=function(e,t){var r=e[Symbol.iterator](),n=r.next(),i=n.value return n.done?Ke:Array.isArray(i)&&2===i.length?new this(r,n,t):new ze(r,n,t)} var t=e.prototype return t.isEmpty=function(){return!1},t.next=function(){var e=this.iterable,t=this.result,r=this.position,n=this.keyFor @@ -1205,18 +1205,18 @@ return t.iterate=function(){var e,t=this.ref,r=this.valueTag,n=t.value(),i=(0,l. return(0,s.isProxy)(n)&&(n=(0,a._contentFor)(n)),r.inner.update(i),null===(e=n)||"object"!=typeof e&&"function"!=typeof e?Ke:Array.isArray(n)||(0,a.isEmberArray)(n)?Fe.fromIndexable(n,this.keyFor(!0)):s.HAS_NATIVE_SYMBOL&&Ge(n)?He.from(n,this.keyFor()):We(n)?Fe.fromForEachable(n,this.keyFor()):Fe.fromIndexable(n,this.keyFor(!0))},t.valueReferenceFor=function(e){return new te(e.value)},t.updateValueReference=function(e,t){e.update(t.value)},t.memoReferenceFor=function(e){return new te(e.memo)},t.updateMemoReference=function(e,t){e.update(t.memo)},t.keyFor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.keyPath switch(t){case"@key":return e?Ze:$e(Je) case"@index":return Ye -case"@identity":return $e(Qe) -default:return $e(Xe(t))}},e}(),Ve=function(){function e(e,t){this.ref=e,this.keyPath=t,this.valueTag=u.UpdatableTag.create(u.CONSTANT_TAG),this.tag=(0,u.combine)([e.tag,this.valueTag])}var t=e.prototype +case"@identity":return $e(Xe) +default:return $e(Qe(t))}},e}(),Ve=function(){function e(e,t){this.ref=e,this.keyPath=t,this.valueTag=u.UpdatableTag.create(u.CONSTANT_TAG),this.tag=(0,u.combine)([e.tag,this.valueTag])}var t=e.prototype return t.iterate=function(){var e=this.ref,t=this.valueTag,r=e.value() if(t.inner.update((0,l.tagForProperty)(r,"[]")),null===r||"object"!=typeof r)return Ke var n=this.keyFor() -return Array.isArray(r)?Be.from(r,n):(0,a.isEmberArray)(r)?je.from(r,n):s.HAS_NATIVE_SYMBOL&&Ge(r)?ze.from(r,n):We(r)?Be.fromForEachable(r,n):Ke},t.valueReferenceFor=function(e){return new te(e.value)},t.updateValueReference=function(e,t){e.update(t.value)},t.memoReferenceFor=function(e){return new te(e.memo)},t.updateMemoReference=function(e,t){e.update(t.memo)},t.keyFor=function(){var e=this.keyPath +return Array.isArray(r)?De.from(r,n):(0,a.isEmberArray)(r)?je.from(r,n):s.HAS_NATIVE_SYMBOL&&Ge(r)?ze.from(r,n):We(r)?De.fromForEachable(r,n):Ke},t.valueReferenceFor=function(e){return new te(e.value)},t.updateValueReference=function(e,t){e.update(t.value)},t.memoReferenceFor=function(e){return new te(e.memo)},t.updateMemoReference=function(e,t){e.update(t.memo)},t.keyFor=function(){var e=this.keyPath switch(e){case"@index":return Ye -case"@identity":return $e(Qe) -default:return $e(Xe(e))}},e}() -function We(e){return"function"==typeof e.forEach}function Ge(e){return"function"==typeof e[Symbol.iterator]}function Ye(e,t,r){return String(r)}function Ze(e,t){return t}function Je(e,t){return Qe(t)}function Qe(e){switch(typeof e){case"string":return e +case"@identity":return $e(Xe) +default:return $e(Qe(e))}},e}() +function We(e){return"function"==typeof e.forEach}function Ge(e){return"function"==typeof e[Symbol.iterator]}function Ye(e,t,r){return String(r)}function Ze(e,t){return t}function Je(e,t){return Xe(t)}function Xe(e){switch(typeof e){case"string":return e case"number":return String(e) -default:return(0,s.guidFor)(e)}}function Xe(e){return function(t){return String((0,l.get)(t,e))}}function $e(e){var t={} +default:return(0,s.guidFor)(e)}}function Qe(e){return function(t){return String((0,l.get)(t,e))}}function $e(e){var t={} return function(r,n,i){var o=e(r,n,i),a=t[o] return void 0===a?(t[o]=0,o):(t[o]=++a,""+o+Ne+a)}}var et=function(){function e(e){this.string=e}var t=e.prototype return t.toString=function(){return""+this.string},t.toHTML=function(){return this.toString()},e}() @@ -1242,7 +1242,7 @@ var pt={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHoo var n=t.prototype return n.create=function(e,t,r,n){n.outletState=t.ref var i=t.controller -return{self:void 0===i?f.UNDEFINED_REFERENCE:new Q(i),finalize:(0,m._instrumentStart)("render.outlet",dt,t)}},n.getLayout=function(e,t){var r=e.template.asLayout() +return{self:void 0===i?f.UNDEFINED_REFERENCE:new X(i),finalize:(0,m._instrumentStart)("render.outlet",dt,t)}},n.getLayout=function(e,t){var r=e.template.asLayout() return{handle:r.compile(),symbolTable:r.symbolTable}},n.getCapabilities=function(){return pt},n.getSelf=function(e){return e.self},n.getTag=function(){return u.CONSTANT_TAG},n.didRenderLayout=function(e){e.finalize()},n.getDestructor=function(){return null},t}(ht),yt=new mt,gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt this.state=e,this.manager=t} function vt(){}var bt=function(){function e(e,t,r,n,i){this.environment=e,this.component=t,this.args=r,this.finalizer=n,this.hasWrappedElement=i,this.classRef=null,this.classRef=null,this.argsRevision=null===r?0:r.tag.value()}var t=e.prototype @@ -1266,7 +1266,7 @@ return null==a&&(a=t.elementId),a=f.PrimitiveReference.create(a),void n.setAttri return(n=e.call(this)||this).inner=t,n.isVisible=r,n.tag=(0,u.combine)([t.tag,r.tag]),n}return(0,r.inheritsLoose)(t,e),t.prototype.compute=function(){var e=this.inner.value() if(!1!==this.isVisible.value())return e if(e){var t=e+" display: none;" -return ut(e)?st(t):t}return kt},t}(u.CachedReference),At={install:function(e,t,r){r.setAttribute("style",(0,u.map)(wt(t,"isVisible"),this.mapStyleValue),!1,null)},mapStyleValue:function(e){return!1===e?kt:null}},Mt=function(e,t,r,n){var i=r.split(":"),o=i[0],a=i[1],s=i[2] +return ut(e)?st(t):t}return kt},t}(u.CachedReference),Mt={install:function(e,t,r){r.setAttribute("style",(0,u.map)(wt(t,"isVisible"),this.mapStyleValue),!1,null)},mapStyleValue:function(e){return!1===e?kt:null}},At=function(e,t,r,n){var i=r.split(":"),o=i[0],a=i[1],s=i[2] if(""===o)n.setAttribute("class",f.PrimitiveReference.create(a),!0,null) else{var u,l=o.indexOf(".")>-1,c=l?o.split("."):[],h=l?_t(t,c):wt(t,o) u=void 0===a?new Tt(h,l?c[c.length-1]:o):new Ct(h,a,s),n.setAttribute("class",u,!1,null)}},Tt=function(e){function t(t,r){var n @@ -1295,7 +1295,7 @@ var u=Math.min(a.length,t.positional.length) o={},(0,n.assign)(o,t.named.capture().map) for(var l=0;lg.ENV._RERENDER_LOOP_LIMIT)throw Jt=0,Wt[e].destroy(),new Error("infinite rendering invalidation detected") return Jt++,_.backburner.join(null,Yt)}Jt=0,function(){if(null!==Zt){var e=Zt.resolve Zt=null,_.backburner.join(null,e)}}()}) -var Qt=function(){function e(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.clientBuilder +var Xt=function(){function e(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.clientBuilder this._env=e,this._rootTemplate=t,this._viewRegistry=r,this._destinedForDOM=n,this._destroyed=!1,this._roots=[],this._lastRevision=-1,this._isRenderingRoots=!1,this._removedRoots=[],this._builder=i}var t=e.prototype return t.appendOutletView=function(e,t){var i=function(e){if(g.ENV._APPLICATION_TEMPLATE_WRAPPER){var t=(0,n.assign)({},pt,{dynamicTag:!0,elementHook:!0}),i=new(function(e){function n(){return e.apply(this,arguments)||this}(0,r.inheritsLoose)(n,e) var i=n.prototype @@ -1368,10 +1368,10 @@ for(;n.length;){var c=n.pop(),f=t.indexOf(c) t.splice(f,1)}0===this._roots.length&&Gt(this)},t._renderRootsTransaction=function(){if(!this._isRenderingRoots){this._isRenderingRoots=!0 var e=!1 try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=u.CURRENT_TAG.value(),!0===this._env.inTransaction&&this._env.commit()),this._isRenderingRoots=!1}}},t._clearAllRoots=function(){for(var e=this._roots,t=0;t1?(0,v.dasherize)(t.at(1).value()):null:!1===i?n>2?(0,v.dasherize)(t.at(2).value()):null:i}function xr(e){return"checkbox"===e.positional.at(0).value()?"-checkbox":"-text-field"}function Ar(e){var t=e.positional,r=t.at(0).value().split("."),n=r[r.length-1],i=t.at(1).value() -return!0===i?(0,v.dasherize)(n):i||0===i?String(i):""}function Mr(e){return e}function Tr(e,t,r,n,i){var o,a +return!0===i?n>1?(0,v.dasherize)(t.at(1).value()):null:!1===i?n>2?(0,v.dasherize)(t.at(2).value()):null:i}function xr(e){return"checkbox"===e.positional.at(0).value()?"-checkbox":"-text-field"}function Mr(e){var t=e.positional,r=t.at(0).value().split("."),n=r[r.length-1],i=t.at(1).value() +return!0===i?(0,v.dasherize)(n):i||0===i?String(i):""}function Ar(e){return e}function Tr(e,t,r,n,i){var o,a if("function"==typeof r[G])o=r,a=r[G] else{var s=typeof r "string"===s?(o=t,a=t.actions&&t.actions[r]):"function"===s&&(o=e,a=r)}return function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&(p=function(e){return d.map(function(e){return e.value()}).concat(e)}),h&&(m=function(e){var t=h.value() -return t&&e.length>0&&(e[0]=(0,l.get)(e[0],t)),e}),p&&m?function(e){return m(p(e))}:p||m||Mr) +return t&&e.length>0&&(e[0]=(0,l.get)(e[0],t)),e}),p&&m?function(e){return m(p(e))}:p||m||Ar) var h,d,p,m return(r="function"==typeof a[G]?Tr(a,a,a[G],f):(0,u.isConst)(c)&&(0,u.isConst)(a)?Tr(o.value(),c.value(),a.value(),f):function(e,t,r,n,i){return function(){return Tr(e,t.value(),r.value(),n).apply(void 0,arguments)}}(o.value(),c,a,f))[Y]=!0,new ae(r)},array:function(e,t){return t.positional.capture()},concat:function(e,t){return new oe(Ir,t.capture())},get:function(e,t){return Pr.create(t.positional.at(0),t.positional.at(1))},hash:function(e,t){return t.named.capture()},log:function(e,t){return new oe(Nr,t.capture())},mut:function(e,t){var r,n=t.positional.at(0) if((r=n)&&r[Lr])return n var i=Object.create(n) -return i[Dr]=n,i[G]=n[W],i[Lr]=!0,i},"query-params":function(e,t){return new oe(Br,t.capture())},readonly:function(e,t){var r=function(e){return e[Dr]||e}(t.positional.at(0)) +return i[Br]=n,i[G]=n[W],i[Lr]=!0,i},"query-params":function(e,t){return new oe(Dr,t.capture())},readonly:function(e,t){var r=function(e){return e[Br]||e}(t.positional.at(0)) return new se(r)},unbound:function(e,t){return ae.create(t.positional.at(0).value())},unless:function(e,t){var r=t.positional -return Rr.create(r.at(0),r.at(2),r.at(1))},"-class":function(e,t){return new oe(kr,t.capture())},"-each-in":function(e,t){return new Re(t.positional.at(0))},"-input-type":function(e,t){return new oe(xr,t.capture())},"-normalize-class":function(e,t){return new oe(Ar,t.capture())},"-get-dynamic-var":f.getDynamicVar,"-mount":function(e,t){var r=e.env,n=t.positional.at(0),i=t.named.has("model")?t.named.get("model"):void 0 +return Rr.create(r.at(0),r.at(2),r.at(1))},"-class":function(e,t){return new oe(kr,t.capture())},"-each-in":function(e,t){return new Re(t.positional.at(0))},"-input-type":function(e,t){return new oe(xr,t.capture())},"-normalize-class":function(e,t){return new oe(Mr,t.capture())},"-get-dynamic-var":f.getDynamicVar,"-mount":function(e,t){var r=e.env,n=t.positional.at(0),i=t.named.has("model")?t.named.get("model"):void 0 return new rn(n,r,i)},"-outlet":function(e,t){var r,n=e.dynamicScope() return r=0===t.positional.length?new u.ConstReference("main"):t.positional.at(0),new un(new on(n.outletState,r))},"-assert-implicit-component-helper-argument":Er},yn={action:{manager:new Kr,state:null}},gn=function(){function e(e){this.handles=[void 0],this.objToHandle=new WeakMap,this.builtInHelpers=mn,this.builtInModifiers=yn,this.templateCache=new Map,this.componentDefinitionCache=new Map,this.customManagerCache=new Map,this.templateCacheHits=0,this.templateCacheMisses=0,this.componentDefinitionCount=0,this.helperDefinitionCount=0 var t=new o.Macros;(function(e){var t=e.inlines,r=e.blocks -t.add("outlet",sn),t.add("mount",tn),t.addMissing(ln),r.add("let",Qr),r.addMissing(cn) +t.add("outlet",sn),t.add("mount",tn),t.addMissing(ln),r.add("let",Xr),r.addMissing(cn) for(var n=0;n=0;i--){var o=e[i] if(o.event===t&&(o.target===r&&o.method===n||3===o.kind))return i}return-1}e.meta=d}),e("@ember/-internals/metal",["exports","ember-babel","@ember/polyfills","@ember/-internals/meta","@ember/debug","@ember/-internals/utils","@ember/runloop","@glimmer/reference","@ember/error","ember/version","@ember/-internals/environment","@ember/deprecated-features","@ember/-internals/owner"],function(e,t,r,n,i,o,a,s,u,l,c,f,h){"use strict" -e.computed=Xe,e.isComputed=function(e,t){return Boolean(v(e,t))},e.getCacheFor=p,e.getCachedValueFor=m,e.peekCacheFor=y,e.alias=function(e){return Ve(new rt(e),tt)},e.deprecateProperty=function(e,t,r,n){function i(){}Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){i(),Ye(this,r,e)},get:function(){return i(),he(this,r)}})},e._getPath=de,e.get=he,e.getWithDefault=function(e,t,r){var n=he(e,t) +e.computed=Qe,e.isComputed=function(e,t){return Boolean(v(e,t))},e.getCacheFor=p,e.getCachedValueFor=m,e.peekCacheFor=y,e.alias=function(e){return Ve(new rt(e),tt)},e.deprecateProperty=function(e,t,r,n){function i(){}Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){i(),Ye(this,r,e)},get:function(){return i(),he(this,r)}})},e._getPath=de,e.get=he,e.getWithDefault=function(e,t,r){var n=he(e,t) if(void 0===n)return r return n},e.set=Ye,e.trySet=function(e,t,r){return Ye(e,t,r,!0)},e.objectAt=me,e.replace=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pe -Array.isArray(e)?ge(e,t,r,n):e.replace(t,r,n)},e.replaceInNativeArray=ge,e.addArrayObserver=function(e,t,r){return ve(e,t,r,A,!1)},e.removeArrayObserver=function(e,t,r){return ve(e,t,r,M,!0)},e.arrayContentWillChange=te,e.arrayContentDidChange=re,e.eachProxyFor=_e,e.eachProxyArrayWillChange=$,e.eachProxyArrayDidChange=ee,e.addListener=A,e.hasListeners=function(e,t){var r=(0,n.peekMeta)(e) +Array.isArray(e)?ge(e,t,r,n):e.replace(t,r,n)},e.replaceInNativeArray=ge,e.addArrayObserver=function(e,t,r){return ve(e,t,r,M,!1)},e.removeArrayObserver=function(e,t,r){return ve(e,t,r,A,!0)},e.arrayContentWillChange=te,e.arrayContentDidChange=re,e.eachProxyFor=_e,e.eachProxyArrayWillChange=$,e.eachProxyArrayDidChange=ee,e.addListener=M,e.hasListeners=function(e,t){var r=(0,n.peekMeta)(e) if(null===r)return!1 var i=r.matchingListeners(t) return void 0!==i&&i.length>0},e.on=function(){for(var e=arguments.length,t=new Array(e),r=0;r0},e.unwatch=Fe,e.watch=Be,e.watcherCount=je,e.getProperties=function(e,t){var r={},n=arguments,i=1 +void 0!==e.readableChains()&&e.writableChains(Te)},e.removeChainWatcher=Ie,e.watchPath=Le,e.unwatchPath=Be,e.isWatching=function(e,t){return je(e,t)>0},e.unwatch=Fe,e.watch=De,e.watcherCount=je,e.getProperties=function(e,t){var r={},n=arguments,i=1 2===arguments.length&&Array.isArray(t)&&(i=0,n=arguments[1]) for(;i1&&void 0!==arguments[1])||arguments[1] g.set(e,t)}var S=new o.Cache(1e3,function(e){return e.indexOf(".")}) function E(e){return"string"==typeof e&&-1!==S.get(e)}var k=":change" -function x(e){return e+k}function A(e,t,r,i,o){i||"function"!=typeof r||(i=r,r=null),(0,n.meta)(e).addToListeners(t,r,i,!0===o)}function M(e,t,r,i){i||"function"!=typeof r||(i=r,r=null) +function x(e){return e+k}function M(e,t,r,i,o){i||"function"!=typeof r||(i=r,r=null),(0,n.meta)(e).addToListeners(t,r,i,!0===o)}function A(e,t,r,i){i||"function"!=typeof r||(i=r,r=null) var o=(0,n.meta)(e) void 0===i?o.removeAllListeners(t):o.removeFromListeners(t,r,i)}function T(e,t,r,i,o){if(void 0===i){var a=void 0===o?(0,n.peekMeta)(e):o i="object"==typeof a&&null!==a?a.matchingListeners(t):void 0}if(void 0===i||0===i.length)return!1 for(var s=i.length-3;s>=0;s-=3){var u=i[s],l=i[s+1],c=i[s+2] -l&&(c&&M(e,t,u,l),u||(u=e),"string"==typeof l&&(l=u[l]),l.apply(u,r))}return!0}var C,I,O,P,R=function(){function e(){this.added=new Map,this.queue=[]}var t=e.prototype +l&&(c&&A(e,t,u,l),u||(u=e),"string"==typeof l&&(l=u[l]),l.apply(u,r))}return!0}var C,I,O,P,R=function(){function e(){this.added=new Map,this.queue=[]}var t=e.prototype return t.add=function(e,t,r){var n=this.added.get(e) void 0===n&&(n=new Set,this.added.set(e,n)),n.has(t)||(this.queue.push(e,t,r),n.add(t))},t.flush=function(){var e=this.queue this.added.clear(),this.queue=[] @@ -1658,9 +1658,9 @@ r.isDestroying||r.isDestroyed||T(r,i,[r,n])}},e}() function N(){return s.DirtyableTag.create()}function L(e,t,r){var i=typeof e if("function"!==i&&("object"!==i||null===e))return s.CONSTANT_TAG var a=void 0===r?(0,n.meta)(e):r -if((0,o.isProxy)(e))return D(e,a) +if((0,o.isProxy)(e))return B(e,a) var u=a.writableTags(),l=u[t] -return l||(u[t]=N())}function D(e,t){return"object"==typeof e&&null!==e?(void 0===t?(0,n.meta)(e):t).writableTag(N):s.CONSTANT_TAG}function B(e,t,r){var n=r.readableTag() +return l||(u[t]=N())}function B(e,t){return"object"==typeof e&&null!==e?(void 0===t?(0,n.meta)(e):t).writableTag(N):s.CONSTANT_TAG}function D(e,t,r){var n=r.readableTag() void 0!==n&&((0,o.isProxy)(e)?n.inner.first.inner.dirty():n.inner.dirty()) var i=r.readableTags(),a=void 0!==i?i[t]:void 0 void 0!==a&&C(a),void 0===n&&void 0===a||j()}function j(){a.backburner.ensureInstance()}C=function(e){e.inner.dirty()},e.runInTransaction=I,e.didRender=O,e.assertNotRendered=P,e.runInTransaction=I=function(e,t){return e[t](),!1} @@ -1676,7 +1676,7 @@ void 0===a&&(a=new Set,n.set(t,a)),a.has(r)||i.forEachInDeps(r,function(r){void void 0!==n&&n.notify(t,!0,H)}(0,t,i),function(e,t,r){if(r.isSourceDestroying())return var n=x(t) z>0?U.add(e,t,n):T(e,n,[e,t])}(e,t,i)),F in e&&e[F](t),null!==i){if(i.isSourceDestroying())return -B(e,t,i)}0}}var K=new Map,q=!0 +D(e,t,i)}0}}var K=new Map,q=!0 function V(e,t,r){var n=r.readableChainWatchers() void 0!==n&&n.revalidate(t)}function W(){z++}function G(){--z<=0&&U.flush()}function Y(e){W() try{e()}finally{G()}}function Z(e,t,r,i,o){void 0===o&&(o=(0,n.meta)(e)) @@ -1687,13 +1687,13 @@ if(e===Array.prototype&&(f=!1),w(r))c=r(e,t,void 0,o),Object.defineProperty(e,t, else if(null==r){l=i,u||!1===f?Object.defineProperty(e,t,{configurable:!0,enumerable:f,writable:!0,value:l}):e[t]=i}else l=r,Object.defineProperty(e,t,r) a&&V(0,t,o),"function"==typeof e.didDefineProperty&&e.didDefineProperty(e,t,l)}function J(e,t,r){var i=void 0===r?(0,n.meta)(e):r,o=i.peekWatching(t) if(i.writeWatching(t,o+1),0===o){var a=v(e,t,i) -void 0!==a&&void 0!==a.willWatch&&a.willWatch(e,t,i),"function"==typeof e.willWatchProperty&&e.willWatchProperty(t)}}function Q(e,t,r){var i=void 0===r?(0,n.peekMeta)(e):r +void 0!==a&&void 0!==a.willWatch&&a.willWatch(e,t,i),"function"==typeof e.willWatchProperty&&e.willWatchProperty(t)}}function X(e,t,r){var i=void 0===r?(0,n.peekMeta)(e):r if(null!==i&&!i.isSourceDestroyed()){var o=i.peekWatching(t) if(1===o){i.writeWatching(t,0) var a=v(e,t,i),s=void 0!==a -s&&void 0!==a.didUnwatch&&a.didUnwatch(e,t,i),"function"==typeof e.didUnwatchProperty&&e.didUnwatchProperty(t)}else o>1&&i.writeWatching(t,o-1)}}var X=new WeakMap -function $(e,t,r,n){var i=X.get(e) -void 0!==i&&i.arrayWillChange(e,t,r,n)}function ee(e,t,r,n){var i=X.get(e) +s&&void 0!==a.didUnwatch&&a.didUnwatch(e,t,i),"function"==typeof e.didUnwatchProperty&&e.didUnwatchProperty(t)}else o>1&&i.writeWatching(t,o-1)}}var Q=new WeakMap +function $(e,t,r,n){var i=Q.get(e) +void 0!==i&&i.arrayWillChange(e,t,r,n)}function ee(e,t,r,n){var i=Q.get(e) void 0!==i&&i.arrayDidChange(e,t,r,n)}function te(e,t,r,n){return void 0===t?(t=0,r=n=-1):(void 0===r&&(r=-1),void 0===n&&(n=-1)),$(e,t,r,n),T(e,"@array:before",[e,t,r,n]),e}function re(e,t,r,i){void 0===t?(t=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1)) var o=(0,n.peekMeta)(e);(i<0||r<0||i-r!=0)&&H(e,"length",o),H(e,"[]",o),ee(e,t,r,i),T(e,"@array:change",[e,t,r,i]) var a=y(e) @@ -1707,7 +1707,7 @@ function oe(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:new ie return se=e}var ce=j,fe=(0,o.symbol)("PROXY_CONTENT") @@ -1724,8 +1724,8 @@ function ge(e,t,r,n){if(te(e,t,r,n.length),n.length<=ye)e.splice.apply(e,[t,r].c else{e.splice(t,r) for(var i=0;i0?t+r:-1 if(i>0)for(var o in n)ke(e,o,this,t,i)}},t.arrayDidChange=function(e,t,r,i){var o=this._keys @@ -1739,7 +1739,7 @@ if(void 0!==t&&t[e]>0&&--t[e]<=0){var r=this._content ke(r,e,this,0,r.length)}},t.contentKeyDidChange=function(e,t){H(this,t)},e}() function Ee(e,t,r,n,i){for(;--i>=n;){var o=me(e,i) o&&be(o,t,r,"contentKeyDidChange")}}function ke(e,t,r,n,i){for(;--i>=n;){var o=me(e,i) -o&&we(o,t,r,"contentKeyDidChange")}}function xe(e){return"object"==typeof e&&null!==e}var Ae=function(){function e(){this.chains=Object.create(null)}var t=e.prototype +o&&we(o,t,r,"contentKeyDidChange")}}function xe(e){return"object"==typeof e&&null!==e}var Me=function(){function e(){this.chains=Object.create(null)}var t=e.prototype return t.add=function(e,t){var r=this.chains[e] void 0===r?this.chains[e]=[t]:r.push(t)},t.remove=function(e,t){var r=this.chains[e] if(void 0!==r)for(var n=0;n1&&r.push(this.value(),e)},e}() function Le(e,t,r){var i=void 0===r?(0,n.meta)(e):r,o=i.peekWatching(t) -i.writeWatching(t,o+1),0===o&&i.writableChains(Te).add(t)}function De(e,t,r){var i=void 0===r?(0,n.peekMeta)(e):r +i.writeWatching(t,o+1),0===o&&i.writableChains(Te).add(t)}function Be(e,t,r){var i=void 0===r?(0,n.peekMeta)(e):r if(null!==i){var o=i.peekWatching(t) -o>0&&(i.writeWatching(t,o-1),1===o&&i.writableChains(Te).remove(t))}}function Be(e,t,r){E(t)?Le(e,t,r):J(e,t,r)}function je(e,t){var r=(0,n.peekMeta)(e) -return null!==r&&r.peekWatching(t)||0}function Fe(e,t,r){E(t)?De(e,t,r):Q(e,t,r)}function Ue(e){var t=e[0],r=e[1],n=e[2] +o>0&&(i.writeWatching(t,o-1),1===o&&i.writableChains(Te).remove(t))}}function De(e,t,r){E(t)?Le(e,t,r):J(e,t,r)}function je(e,t){var r=(0,n.peekMeta)(e) +return null!==r&&r.peekWatching(t)||0}function Fe(e,t,r){E(t)?Be(e,t,r):X(e,t,r)}function Ue(e){var t=e[0],r=e[1],n=e[2] return 3===e.length&&("function"==typeof t||"object"==typeof t&&null!==t)&&"string"==typeof r&&("object"==typeof n&&null!==n&&"enumerable"in n&&"configurable"in n||void 0===n)}function ze(e,t,r,n){var i=e._dependentKeys if(null!=i)for(var o=0;o-1?n=function(e,t,n,i){var a=i[t]||e[t] if(!a)return n var s=(0,r.assign)({},a),u=!1 for(var l in n)if(n.hasOwnProperty(l)){var c=n[l] -_t(c)?(u=!0,s[l]=At(e,l,c,a,{})):s[l]=c}return u&&(s._super=o.ROOT),s}(e,t,n,s):_t(n)&&(n=At(e,t,n,s,a)),a[t]=void 0,s[t]=n)}function Tt(e,t,r,n){if(r)for(var i=0;i=0;u--)if(o=(i=e[u].route)&&i.actions&&i.actions[r]){if(!0!==o.apply(i,n))return void("error"===r&&i._router._markErrorAsHandled(n[0])) a=!0}var l=S[r] if(l)l.apply(this,[e].concat(n)) -else if(!a&&!t)throw new s.default("Nothing handled the action '"+r+"'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.")}function M(e,t,r){for(var n=e._routerMicrolib.applyIntent(t,r),i=n.routeInfos,o=n.params,a=0;a2&&void 0!==arguments[2]?arguments[2]:1 return(0,t.replace)(e,r,n,h),e}function E(e,r,n){return(0,t.replace)(e,r,0,[n]),n}function k(e){var t=e if(!t||t.setInterval)return!1 -if(Array.isArray(t)||M.detect(t))return!0 +if(Array.isArray(t)||A.detect(t))return!0 var r=(0,l.typeOf)(t) if("array"===r)return!0 var n=t.length return"number"==typeof n&&n==n&&"object"===r}function x(){var e=t.computed.apply(void 0,arguments) -return e.enumerable=!1,e}function A(e){return this.map(function(r){return(0,t.get)(r,e)})}var M=t.Mixin.create(i.default,((c={})[d]=!0,c.objectsAt=function(e){var r=this +return e.enumerable=!1,e}function M(e){return this.map(function(r){return(0,t.get)(r,e)})}var A=t.Mixin.create(i.default,((c={})[d]=!0,c.objectsAt=function(e){var r=this return e.map(function(e){return(0,t.objectAt)(r,e)})},c["[]"]=x({get:function(){return this},set:function(e,t){return this.replace(0,this.length,t),this}}),c.firstObject=x(function(){return(0,t.objectAt)(this,0)}).readOnly(),c.lastObject=x(function(){return(0,t.objectAt)(this,this.length-1)}).readOnly(),c.slice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,n=I(),i=this.length for(e<0&&(e=i+e),void 0===r||r>i?r=i:r<0&&(r=i+r);e=n)&&(r=n-1),r<0&&(r+=n) for(var i=r;i>=0;i--)if((0,t.objectAt)(this,i)===e)return i return-1},c.addArrayObserver=function(e,r){return(0,t.addArrayObserver)(this,e,r)},c.removeArrayObserver=function(e,r){return(0,t.removeArrayObserver)(this,e,r)},c.hasArrayObservers=x(function(){return(0,t.hasListeners)(this,"@array:change")||(0,t.hasListeners)(this,"@array:before")}),c.arrayContentWillChange=function(e,r,n){return(0,t.arrayContentWillChange)(this,e,r,n)},c.arrayContentDidChange=function(e,r,n){return(0,t.arrayContentDidChange)(this,e,r,n)},c.forEach=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.length,n=0;n1&&void 0!==arguments[1]?arguments[1]:null,r=I() -return this.forEach(function(n,i,o){return r[i]=e.call(t,n,i,o)}),r},c.mapBy=A,c.filter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=I() +e.call(t,i,n,this)}return this},c.getEach=M,c.setEach=function(e,r){return this.forEach(function(n){return(0,t.set)(n,e,r)})},c.map=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=I() +return this.forEach(function(n,i,o){return r[i]=e.call(t,n,i,o)}),r},c.mapBy=M,c.filter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=I() return this.forEach(function(n,i,o){e.call(t,n,i,o)&&r.push(n)}),r},c.reject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null return this.filter(function(){return!e.apply(t,arguments)})},c.filterBy=function(){return this.filter(y.apply(void 0,arguments))},c.rejectBy=function(){return this.reject(y.apply(void 0,arguments))},c.find=function(e){return v(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)},c.findBy=function(){return v(this,y.apply(void 0,arguments))},c.every=function(e){return w(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)},c.isEvery=function(){return w(this,y.apply(void 0,arguments))},c.any=function(e){return b(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)},c.isAny=function(){return b(this,y.apply(void 0,arguments))},c.reduce=function(e,t){var r=t return this.forEach(function(t,n){r=e(r,t,n,this)},this),r},c.invoke=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=P){n+="... "+(e.length break}n+=L(e[i],t,r)}return n+=" ]"}(e,r+1,n):function(e,t,r){if(t>R)return"[Object]" for(var n="{",i=I(e),o=0;o=P){n+="... "+(i.length-P)+" more keys" break}var a=i[o] -n+=D(a)+": "+L(e[a],t,r)}return n+=" }"}(e,r+1,n)}function D(e){return N.test(e)?e:O(e)}function B(e,t){return null!=e&&"function"==typeof e[t]}var j=Array.isArray +n+=B(a)+": "+L(e[a],t,r)}return n+=" }"}(e,r+1,n)}function B(e){return N.test(e)?e:O(e)}function D(e,t){return null!=e&&"function"==typeof e[t]}var j=Array.isArray var F=new WeakMap var U=Object.prototype.toString function z(e){return null==e}var H="function"==typeof Symbol&&"[object Symbol]"===Object.prototype.toString.call(Symbol()) @@ -3045,13 +3045,13 @@ var n=t.Object.extend() n.reopenClass({isServiceFactory:!0}) var i=n e.default=i}),e("@ember/string/index",["exports","@ember/string/lib/string_registry","@ember/-internals/environment","@ember/-internals/utils"],function(e,t,r,n){"use strict" -e.loc=w,e.w=_,e.decamelize=S,e.dasherize=E,e.camelize=k,e.classify=x,e.underscore=A,e.capitalize=M,Object.defineProperty(e,"_getStrings",{enumerable:!0,get:function(){return t.getStrings}}),Object.defineProperty(e,"_setStrings",{enumerable:!0,get:function(){return t.setStrings}}) +e.loc=w,e.w=_,e.decamelize=S,e.dasherize=E,e.camelize=k,e.classify=x,e.underscore=M,e.capitalize=A,Object.defineProperty(e,"_getStrings",{enumerable:!0,get:function(){return t.getStrings}}),Object.defineProperty(e,"_setStrings",{enumerable:!0,get:function(){return t.setStrings}}) var i=/[ _]/g,o=new n.Cache(1e3,function(e){return S(e).replace(i,"-")}),a=/(\-|\_|\.|\s)+(.)?/g,s=/(^|\/)([A-Z])/g,u=new n.Cache(1e3,function(e){return e.replace(a,function(e,t,r){return r?r.toUpperCase():""}).replace(s,function(e){return e.toLowerCase()})}),l=/^(\-|_)+(.)?/,c=/(.)(\-|\_|\.|\s)+(.)?/g,f=/(^|\/|\.)([a-z])/g,h=new n.Cache(1e3,function(e){for(var t=function(e,t,r){return r?"_"+r.toUpperCase():""},r=function(e,t,r,n){return t+(n?n.toUpperCase():"")},n=e.split("/"),i=0;i2)&&(r=Array.prototype.slice.call(arguments,1)),function(e,t){var r=0 return e.replace(/%@([0-9]+)?/g,function(e,n){var i=n?parseInt(n,10)-1:r++,o=i1&&void 0!==arguments[1]?arguments[1]:0 +e.patch(o,a)}},e}(),A=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0 this.size=t,this.encoder=new a.InstructionEncoder([]),this.labelsStack=new n.Stack,this.compiler=e}e.build=function(t,r){var n=new e(t) return r(n),n.commit()} var t=e.prototype @@ -3225,7 +3225,7 @@ case 2:return this.encoder.encode(e,1024,arguments[1]) case 3:return this.encoder.encode(e,1024,arguments[1],arguments[2]) default:return this.encoder.encode(e,1024,arguments[1],arguments[2],arguments[3])}},t.commit=function(){return this.pushMachine(24),this.compiler.commit(this.size,this.encoder.buffer)},t.reserve=function(e){this.encoder.encode(e,0,-1)},t.reserveWithOperand=function(e,t){this.encoder.encode(e,0,-1,t)},t.reserveMachine=function(e){this.encoder.encode(e,1024,-1)},t.main=function(){this.push(68,i.Register.s0),this.invokePreparedComponent(!1,!1,!0)},t.appendHTML=function(){this.push(28)},t.appendSafeHTML=function(){this.push(29)},t.appendDocumentFragment=function(){this.push(30)},t.appendNode=function(){this.push(31)},t.appendText=function(){this.push(32)},t.beginComponentTransaction=function(){this.push(91)},t.commitComponentTransaction=function(){this.push(92)},t.pushDynamicScope=function(){this.push(44)},t.popDynamicScope=function(){this.push(45)},t.pushRemoteElement=function(){this.push(41)},t.popRemoteElement=function(){this.push(42)},t.pushRootScope=function(e,t){this.push(20,e,t?1:0)},t.pushVirtualRootScope=function(e){this.push(21,e)},t.pushChildScope=function(){this.push(22)},t.popScope=function(){this.push(23)},t.prepareArgs=function(e){this.push(79,e)},t.createComponent=function(e,t){var r=0|t this.push(81,r,e)},t.registerComponentDestructor=function(e){this.push(82,e)},t.putComponentOperations=function(){this.push(83)},t.getComponentSelf=function(e){this.push(84,e)},t.getComponentTagName=function(e){this.push(85,e)},t.getComponentLayout=function(e){this.push(86,e)},t.setupForEval=function(e){this.push(87,e)},t.invokeComponentLayout=function(e){this.push(90,e)},t.didCreateElement=function(e){this.push(93,e)},t.didRenderLayout=function(e){this.push(94,e)},t.pushFrame=function(){this.pushMachine(57)},t.popFrame=function(){this.pushMachine(58)},t.pushSmallFrame=function(){this.pushMachine(59)},t.popSmallFrame=function(){this.pushMachine(60)},t.invokeVirtual=function(){this.pushMachine(49)},t.invokeYield=function(){this.push(51)},t.toBoolean=function(){this.push(63)},t.invokePreparedComponent=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null -this.beginComponentTransaction(),this.pushDynamicScope(),this.createComponent(i.Register.s0,e),n&&n(),this.registerComponentDestructor(i.Register.s0),this.getComponentSelf(i.Register.s0),this.pushVirtualRootScope(i.Register.s0),this.setVariable(0),this.setupForEval(i.Register.s0),r&&this.setNamedVariables(i.Register.s0),t&&this.setBlocks(i.Register.s0),this.pop(),this.invokeComponentLayout(i.Register.s0),this.didRenderLayout(i.Register.s0),this.popFrame(),this.popScope(),this.popDynamicScope(),this.commitComponentTransaction()},t.compileInline=function(e){return this.compiler.compileInline(e,this)},t.compileBlock=function(e,t,r,n,i){this.compiler.compileBlock(e,t,r,n,i,this)},t.label=function(e){this.labels.label(e,this.nextPos)},t.startLabels=function(){this.labelsStack.push(new A)},t.stopLabels=function(){this.labelsStack.pop().patch(this.encoder)},t.pushCurriedComponent=function(){this.push(74)},t.pushDynamicComponentInstance=function(){this.push(73)},t.openDynamicElement=function(){this.push(34)},t.flushElement=function(){this.push(38)},t.closeElement=function(){this.push(39)},t.putIterator=function(){this.push(66)},t.enterList=function(e){this.reserve(64),this.labels.target(this.pos,e)},t.exitList=function(){this.push(65)},t.iterate=function(e){this.reserve(67),this.labels.target(this.pos,e)},t.setNamedVariables=function(e){this.push(2,e)},t.setBlocks=function(e){this.push(3,e)},t.setVariable=function(e){this.push(4,e)},t.setBlock=function(e){this.push(5,e)},t.getVariable=function(e){this.push(6,e)},t.getBlock=function(e){this.push(8,e)},t.hasBlock=function(e){this.push(9,e)},t.concat=function(e){this.push(11,e)},t.load=function(e){this.push(18,e)},t.fetch=function(e){this.push(19,e)},t.dup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Register.sp,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0 +this.beginComponentTransaction(),this.pushDynamicScope(),this.createComponent(i.Register.s0,e),n&&n(),this.registerComponentDestructor(i.Register.s0),this.getComponentSelf(i.Register.s0),this.pushVirtualRootScope(i.Register.s0),this.setVariable(0),this.setupForEval(i.Register.s0),r&&this.setNamedVariables(i.Register.s0),t&&this.setBlocks(i.Register.s0),this.pop(),this.invokeComponentLayout(i.Register.s0),this.didRenderLayout(i.Register.s0),this.popFrame(),this.popScope(),this.popDynamicScope(),this.commitComponentTransaction()},t.compileInline=function(e){return this.compiler.compileInline(e,this)},t.compileBlock=function(e,t,r,n,i){this.compiler.compileBlock(e,t,r,n,i,this)},t.label=function(e){this.labels.label(e,this.nextPos)},t.startLabels=function(){this.labelsStack.push(new M)},t.stopLabels=function(){this.labelsStack.pop().patch(this.encoder)},t.pushCurriedComponent=function(){this.push(74)},t.pushDynamicComponentInstance=function(){this.push(73)},t.openDynamicElement=function(){this.push(34)},t.flushElement=function(){this.push(38)},t.closeElement=function(){this.push(39)},t.putIterator=function(){this.push(66)},t.enterList=function(e){this.reserve(64),this.labels.target(this.pos,e)},t.exitList=function(){this.push(65)},t.iterate=function(e){this.reserve(67),this.labels.target(this.pos,e)},t.setNamedVariables=function(e){this.push(2,e)},t.setBlocks=function(e){this.push(3,e)},t.setVariable=function(e){this.push(4,e)},t.setBlock=function(e){this.push(5,e)},t.getVariable=function(e){this.push(6,e)},t.getBlock=function(e){this.push(8,e)},t.hasBlock=function(e){this.push(9,e)},t.concat=function(e){this.push(11,e)},t.load=function(e){this.push(18,e)},t.fetch=function(e){this.push(19,e)},t.dup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Register.sp,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0 return this.push(16,e,t)},t.pop=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1 return this.push(17,e)},t.returnTo=function(e){this.reserveMachine(25),this.labels.target(this.pos,e)},t.primitiveReference=function(){this.push(14)},t.reifyU32=function(){this.push(15)},t.enter=function(e){this.push(61,e)},t.exit=function(){this.push(62)},t.return=function(){this.pushMachine(24)},t.jump=function(e){this.reserveMachine(52),this.labels.target(this.pos,e)},t.jumpIf=function(e){this.reserve(53),this.labels.target(this.pos,e)},t.jumpUnless=function(e){this.reserve(54),this.labels.target(this.pos,e)},t.jumpEq=function(e,t){this.reserveWithOperand(55,e),this.labels.target(this.pos,t)},t.assertSame=function(){this.push(56)},t.pushEmptyArgs=function(){this.push(77)},t.switch=function(e,t){var r=this,n=[],i=0 t(function(e,t){n.push({match:e,callback:t,label:"CLAUSE"+i++})}),this.enter(2),this.assertSame(),this.reifyU32(),this.startLabels(),n.slice(0,-1).forEach(function(e){return r.jumpEq(e.match,e.label)}) @@ -3233,7 +3233,7 @@ for(var o=n.length-1;o>=0;o--){var a=n[o] this.label(a.label),this.pop(2),a.callback(),0!==o&&this.jump("END")}this.label("END"),this.stopLabels(),this.exit()},t.stdAppend=function(e){var t=this this.switch(this.contentType(),function(r){r(1,function(){e?(t.assertSame(),t.appendHTML()):t.appendText()}),r(0,function(){t.pushCurriedComponent(),t.pushDynamicComponentInstance(),t.invokeBareComponent()}),r(3,function(){t.assertSame(),t.appendSafeHTML()}),r(4,function(){t.assertSame(),t.appendDocumentFragment()}),r(5,function(){t.assertSame(),t.appendNode()})})},t.populateLayout=function(e){this.push(89,e)},t.invokeBareComponent=function(){var e=this this.fetch(i.Register.s0),this.dup(i.Register.sp,1),this.load(i.Register.s0),this.pushFrame(),this.pushEmptyArgs(),this.prepareArgs(i.Register.s0),this.invokePreparedComponent(!1,!1,!0,function(){e.getComponentLayout(i.Register.s0),e.populateLayout(i.Register.s0)}),this.load(i.Register.s0)},t.isComponent=function(){this.push(69)},t.contentType=function(){this.push(70)},t.pushBlockScope=function(){this.push(47)},(0,r.createClass)(e,[{key:"pos",get:function(){return this.encoder.typePos}},{key:"nextPos",get:function(){return this.encoder.size}},{key:"labels",get:function(){return this.labelsStack.current}}]),e}() -e.StdOpcodeBuilder=M +e.StdOpcodeBuilder=A var T=function(e){function t(t,n){var i return(i=e.call(this,t,n?n.block.symbols.length:0)||this).containingLayout=n,i.component=new x((0,r.assertThisInitialized)(i)),i.expressionCompiler=function(){if(d)return d var e=d=new p @@ -3310,7 +3310,7 @@ var o=this.compileParams(e)<<4 i&&(o|=8),r&&(o|=7) var a=n.EMPTY_ARRAY if(t){a=t[0] -for(var s=t[1],u=0;u5&&void 0!==arguments[5]?arguments[5]:{},s=pt.empty(e,t,r,n),u=s.constants.resolver,l=L(u,i,null),c=l.manager,f=l.state @@ -3547,16 +3547,16 @@ if(n&&(e.positional.prepend(n.positional),e.named.merge(n.named)),!b(i))return i t=i}},(0,t.createClass)(e,[{key:"offset",get:function(){var e=this.inner,t=this.args,r=t?t.positional.length:0 return b(e)?r+e.offset:r}}]),e}() function _(e){return S(e)?"":String(e)}function S(e){return null==e||"function"!=typeof e.toString}function E(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function k(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function x(e){return"string"==typeof e}e.CurriedComponentDefinition=w -var A=function(e){function r(t,r,n){var i +var M=function(e){function r(t,r,n){var i return(i=e.call(this)||this).node=t,i.reference=r,i.lastValue=n,i.type="dynamic-text",i.tag=r.tag,i.lastRevision=i.tag.value(),i}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.evaluate=function(){var e=this.reference,t=this.tag t.validate(this.lastRevision)||(this.lastRevision=t.value(),this.update(e.value()))},n.update=function(e){var t,r=this.lastValue -e!==r&&((t=S(e)?"":x(e)?e:String(e))!==r&&(this.node.nodeValue=this.lastValue=t))},r}(s),M=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r.create=function(e){return new r(e)},r.prototype.toBool=function(e){return b(e)},r}(m),T=function(){function e(e){this.inner=e,this.tag=e.tag}return e.prototype.value=function(){var e,t=this.inner.value() +e!==r&&((t=S(e)?"":x(e)?e:String(e))!==r&&(this.node.nodeValue=this.lastValue=t))},r}(s),A=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r.create=function(e){return new r(e)},r.prototype.toBool=function(e){return b(e)},r}(m),T=function(){function e(e){this.inner=e,this.tag=e.tag}return e.prototype.value=function(){var e,t=this.inner.value() return function(e){return x(e)||S(e)||"boolean"==typeof e||"number"==typeof e}(t)?1:(e=t)&&e[v]?0:E(t)?3:function(e){return k(e)&&11===e.nodeType}(t)?4:k(t)?5:1},e}() a.add(28,function(e){var t=e.stack.pop().value(),r=S(t)?"":String(t) e.elements().appendDynamicHTML(r)}),a.add(29,function(e){var t=e.stack.pop().value().toHTML(),r=S(t)?"":t -e.elements().appendDynamicHTML(r)}),a.add(32,function(e){var t=e.stack.pop(),r=t.value(),i=S(r)?"":String(r),o=e.elements().appendDynamicText(i);(0,n.isConst)(t)||e.updateWith(new A(o,t,i))}),a.add(30,function(e){var t=e.stack.pop().value() +e.elements().appendDynamicHTML(r)}),a.add(32,function(e){var t=e.stack.pop(),r=t.value(),i=S(r)?"":String(r),o=e.elements().appendDynamicText(i);(0,n.isConst)(t)||e.updateWith(new M(o,t,i))}),a.add(30,function(e){var t=e.stack.pop().value() e.elements().appendDynamicFragment(t)}),a.add(31,function(e){var t=e.stack.pop().value() e.elements().appendDynamicNode(t)}),a.add(22,function(e){return e.pushChildScope()}),a.add(23,function(e){return e.popScope()}),a.add(44,function(e){return e.pushDynamicScope()}),a.add(45,function(e){return e.popDynamicScope()}),a.add(12,function(e,t){var r=t.op1 e.stack.push(e.constants.getOther(r))}),a.add(13,function(e,t){var r=t.op1,n=e.stack,i=r>>3 @@ -3623,18 +3623,18 @@ e.elements().setStaticAttribute(o,a,s)}),a.add(36,function(e,t){var r=t.op1,i=t. var N=function(e){function r(t,r){var n return(n=e.call(this)||this).reference=t,n.attribute=r,n.type="patch-element",n.tag=t.tag,n.lastRevision=n.tag.value(),n}return(0,t.inheritsLoose)(r,e),r.prototype.evaluate=function(e){var t=this.attribute,r=this.reference,n=this.tag n.validate(this.lastRevision)||(this.lastRevision=n.value(),t.update(r.value(),e.env))},r}(s) -function L(e,t,r){return e.lookupComponentDefinition(t,r)}var D=function(){function e(e,t,r,n){this.inner=e,this.resolver=t,this.meta=r,this.args=n,this.tag=e.tag,this.lastValue=null,this.lastDefinition=null}var t=e.prototype +function L(e,t,r){return e.lookupComponentDefinition(t,r)}var B=function(){function e(e,t,r,n){this.inner=e,this.resolver=t,this.meta=r,this.args=n,this.tag=e.tag,this.lastValue=null,this.lastDefinition=null}var t=e.prototype return t.value=function(){var e=this.inner,t=this.lastValue,r=e.value() if(r===t)return this.lastDefinition var n=null if(b(r))n=r else if("string"==typeof r&&r){n=L(this.resolver,r,this.meta)}return n=this.curry(n),this.lastValue=r,this.lastDefinition=n,n},t.get=function(){return f},t.curry=function(e){var t=this.args -return!t&&b(e)?e:e?new w(e,t):null},e}(),B=function(){function e(e){this.list=e,this.tag=(0,n.combineTagged)(e),this.list=e}return e.prototype.value=function(){for(var e=[],t=this.list,r=0;r=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length) this.slots[e]=t},e}() e.Scope=Le -var De=function(){function e(){this.scheduledInstallManagers=[],this.scheduledInstallModifiers=[],this.scheduledUpdateModifierManagers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.createdManagers=[],this.updatedComponents=[],this.updatedManagers=[],this.destructors=[]}var t=e.prototype +var Be=function(){function e(){this.scheduledInstallManagers=[],this.scheduledInstallModifiers=[],this.scheduledUpdateModifierManagers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.createdManagers=[],this.updatedComponents=[],this.updatedManagers=[],this.destructors=[]}var t=e.prototype return t.didCreate=function(e,t){this.createdComponents.push(e),this.createdManagers.push(t)},t.didUpdate=function(e,t){this.updatedComponents.push(e),this.updatedManagers.push(t)},t.scheduleInstallModifier=function(e,t){this.scheduledInstallManagers.push(t),this.scheduledInstallModifiers.push(e)},t.scheduleUpdateModifier=function(e,t){this.scheduledUpdateModifierManagers.push(t),this.scheduledUpdateModifiers.push(e)},t.didDestroy=function(e){this.destructors.push(e)},t.commit=function(){for(var e=this.createdComponents,t=this.createdManagers,r=0;r3&&void 0!==arguments[3]?arguments[3]:null)},(0,t.createClass)(e,[{key:"transaction",get:function(){return this._transaction}}]),e}() -e.Environment=Be +e.Environment=De var je=function(e){function r(t){if(!t){var r=window.document -t={appendOperations:new he(r),updateOperations:new le(r)}}return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r}(Be) +t={appendOperations:new he(r),updateOperations:new le(r)}}return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r}(De) e.DefaultEnvironment=je var Fe=function(){function e(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1 this.stack=e,this.heap=t,this.program=r,this.externs=n,this.pc=i,this.ra=o,this.currentOpSize=0}var t=e.prototype @@ -3862,10 +3862,10 @@ var n=new qe(e) this.pushBlockTracker(n,!0)},n.popRemoteElement=function(){this.popBlock(),this.popElement()},n.pushElement=function(e,t){this.cursorStack.push(new Z(e,t))},n.didAddDestroyable=function(e){this.block().newDestroyable(e)},n.didAppendBounds=function(e){return this.block().didAppendBounds(e),e},n.didAppendNode=function(e){return this.block().didAppendNode(e),e},n.didOpenElement=function(e){return this.block().openElement(e),e},n.willCloseElement=function(){this.block().closeElement()},n.appendText=function(e){return this.didAppendNode(this.__appendText(e))},n.__appendText=function(e){var t=this.dom,r=this.element,n=this.nextSibling,i=t.createTextNode(e) return t.insertBefore(r,i,n),i},n.__appendNode=function(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e},n.__appendFragment=function(e){var t=e.firstChild if(t){var r=new J(this.element,t,e.lastChild) -return this.dom.insertBefore(this.element,e,this.nextSibling),r}return new Q(this.element,this.__appendComment(""))},n.__appendHTML=function(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)},n.appendDynamicHTML=function(e){var t=this.trustedContent(e) +return this.dom.insertBefore(this.element,e,this.nextSibling),r}return new X(this.element,this.__appendComment(""))},n.__appendHTML=function(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)},n.appendDynamicHTML=function(e){var t=this.trustedContent(e) this.didAppendBounds(t)},n.appendDynamicText=function(e){var t=this.untrustedContent(e) return this.didAppendNode(t),t},n.appendDynamicFragment=function(e){var t=this.__appendFragment(e) -this.didAppendBounds(t)},n.appendDynamicNode=function(e){var t=this.__appendNode(e),r=new Q(this.element,t) +this.didAppendBounds(t)},n.appendDynamicNode=function(e){var t=this.__appendNode(e),r=new X(this.element,t) this.didAppendBounds(r)},n.trustedContent=function(e){return this.__appendHTML(e)},n.untrustedContent=function(e){return this.__appendText(e)},n.appendComment=function(e){return this.didAppendNode(this.__appendComment(e))},n.__appendComment=function(e){var t=this.dom,r=this.element,n=this.nextSibling,i=t.createComment(e) return t.insertBefore(r,i,n),i},n.__setAttribute=function(e,t,r){this.dom.setAttribute(this.constructing,e,t,r)},n.__setProperty=function(e,t){this.constructing[e]=t},n.setStaticAttribute=function(e,t,r){this.__setAttribute(e,t,r)},n.setDynamicAttribute=function(e,t,r,n){var i=this.constructing,o=this.env.attributeFor(i,e,r,n) return o.set(this,t,this.env),o},(0,t.createClass)(e,[{key:"element",get:function(){return this.cursorStack.current.element}},{key:"nextSibling",get:function(){return this.cursorStack.current.nextSibling}}]),e}() @@ -3918,21 +3918,21 @@ return n.execute=function(e,t){var r=this.frameStack for(this.try(e,t);!r.isEmpty();){var n=this.frame.nextStatement() null!==n?n.evaluate(this):this.frameStack.pop()}},n.goto=function(e){this.frame.goto(e)},n.try=function(e,t){this.frameStack.push(new tt(e,t))},n.throw=function(){this.frame.handleException(),this.frameStack.pop()},(0,t.createClass)(e,[{key:"frame",get:function(){return this.frameStack.current}}]),e}() e.UpdatingVM=Je -var Qe=function(e){function r(t,r,n,i,o){var a +var Xe=function(e){function r(t,r,n,i,o){var a return(a=e.call(this)||this).start=t,a.state=r,a.runtime=n,a.type="block",a.next=null,a.prev=null,a.children=o,a.bounds=i,a}(0,t.inheritsLoose)(r,e) var n=r.prototype -return n.parentElement=function(){return this.bounds.parentElement()},n.firstNode=function(){return this.bounds.firstNode()},n.lastNode=function(){return this.bounds.lastNode()},n.evaluate=function(e){e.try(this.children,null)},n.destroy=function(){this.bounds.destroy()},n.didDestroy=function(){this.runtime.env.didDestroy(this.bounds)},r}(s),Xe=function(e){function i(t,r,i,o,a){var s +return n.parentElement=function(){return this.bounds.parentElement()},n.firstNode=function(){return this.bounds.firstNode()},n.lastNode=function(){return this.bounds.lastNode()},n.evaluate=function(e){e.try(this.children,null)},n.destroy=function(){this.bounds.destroy()},n.didDestroy=function(){this.runtime.env.didDestroy(this.bounds)},r}(s),Qe=function(e){function i(t,r,i,o,a){var s return(s=e.call(this,t,r,i,o,a)||this).type="try",s.tag=s._tag=n.UpdatableTag.create(n.CONSTANT_TAG),s}(0,t.inheritsLoose)(i,e) var o=i.prototype return o.didInitializeChildren=function(){this._tag.inner.update((0,n.combineSlice)(this.children))},o.evaluate=function(e){e.try(this.children,this)},o.handleException=function(){var e=this,t=this.state,n=this.bounds,i=this.children,o=this.start,a=this.prev,s=this.next,u=this.runtime i.clear() var l=He.resume(u.env,n,n.reset(u.env)),c=pt.resume(t,u,l),f=new r.LinkedList -c.execute(o,function(r){r.stack=Ze.restore(t.stack),r.updatingOpcodeStack.push(f),r.updateWith(e),r.updatingOpcodeStack.push(i)}),this.prev=a,this.next=s},i}(Qe),$e=function(){function e(e,t){this.opcode=e,this.marker=t,this.didInsert=!1,this.didDelete=!1,this.map=e.map,this.updating=e.children}var t=e.prototype +c.execute(o,function(r){r.stack=Ze.restore(t.stack),r.updatingOpcodeStack.push(f),r.updateWith(e),r.updatingOpcodeStack.push(i)}),this.prev=a,this.next=s},i}(Xe),$e=function(){function e(e,t){this.opcode=e,this.marker=t,this.didInsert=!1,this.didDelete=!1,this.map=e.map,this.updating=e.children}var t=e.prototype return t.insert=function(e,t,n,i){var o=this.map,a=this.opcode,s=this.updating,u=null,l=null u="string"==typeof i?(l=o[i]).bounds.firstNode():this.marker var c=a.vmForInsertion(u),f=null,h=a.start c.execute(h,function(i){o[e]=f=i.iterate(n,t),i.updatingOpcodeStack.push(new r.LinkedList),i.updateWith(f),i.updatingOpcodeStack.push(f.children)}),s.insertBefore(f,l),this.didInsert=!0},t.retain=function(e,t,r){},t.move=function(e,t,r,n){var i=this.map,o=this.updating,a=i[e],s=i[n]||null -X(a,"string"==typeof n?s.firstNode():this.marker),o.remove(a),o.insertBefore(a,s)},t.delete=function(e){var t=this.map,r=t[e] +Q(a,"string"==typeof n?s.firstNode():this.marker),o.remove(a),o.insertBefore(a,s)},t.delete=function(e){var t=this.map,r=t[e] r.didDestroy(),$(r),this.updating.remove(r),delete t[e],this.didDelete=!0},t.done=function(){this.opcode.didInitializeChildren(this.didInsert||this.didDelete)},e}(),et=function(e){function i(t,i,o,a,s,u){var l;(l=e.call(this,t,i,o,a,s)||this).type="list-block",l.map=(0,r.dict)(),l.lastIterated=n.INITIAL,l.artifacts=u var c=l._tag=n.UpdatableTag.create(n.CONSTANT_TAG) return l.tag=(0,n.combine)([u.tag,c]),l}(0,t.inheritsLoose)(i,e) @@ -3943,7 +3943,7 @@ if(!r.tag.validate(i)){var o=this.bounds,a=t.dom,s=a.createComment("") a.insertAfter(o.parentElement(),s,o.lastNode()) var u=new $e(this,s) new n.IteratorSynchronizer({target:u,artifacts:r}).sync(),this.parentElement().removeChild(s)}e.prototype.evaluate.call(this,t)},o.vmForInsertion=function(e){var t=this.bounds,r=this.state,n=this.runtime,i=He.forInitialRender(n.env,{element:t.parentElement(),nextSibling:e}) -return pt.resume(r,n,i)},i}(Qe),tt=function(){function e(e,t){this.ops=e,this.exceptionHandler=t,this.current=e.head()}var t=e.prototype +return pt.resume(r,n,i)},i}(Xe),tt=function(){function e(e,t){this.ops=e,this.exceptionHandler=t,this.current=e.head()}var t=e.prototype return t.goto=function(e){this.current=e},t.nextStatement=function(){var e=this.current,t=this.ops return e&&(this.current=t.nextNode(e)),e},t.handleException=function(){this.exceptionHandler&&this.exceptionHandler.handleException()},e}(),rt=function(){function e(e,t,r,n){this.env=e,this.program=t,this.updating=r,this.bounds=n}var t=e.prototype return t.rerender=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{alwaysRevalidate:!1}).alwaysRevalidate,t=void 0!==e&&e,r=this.env,n=this.program,i=this.updating @@ -4005,11 +4005,11 @@ this.runtime=e,this.elementStack=i,this.dynamicScopeStack=new r.Stack,this.scope return o.fetch=function(e){this.stack.push(this[i.Register[e]])},o.load=function(e){this[i.Register[e]]=this.stack.pop()},o.fetchValue=function(e){return this[i.Register[e]]},o.loadValue=function(e,t){this[i.Register[e]]=t},o.pushFrame=function(){this.inner.pushFrame()},o.popFrame=function(){this.inner.popFrame()},o.goto=function(e){this.inner.goto(e)},o.call=function(e){this.inner.call(e)},o.returnTo=function(e){this.inner.returnTo(e)},o.return=function(){this.inner.return()},e.initial=function(t,n,i,o,a,s){var u=t.heap.scopesizeof(s),l=new e({program:t,env:n},Le.root(i,u),o,a) return l.pc=l.heap.getaddr(s),l.updatingOpcodeStack.push(new r.LinkedList),l},e.empty=function(t,n,i,o){var a={get:function(){return f},set:function(){return f},child:function(){return a}},s=new e({program:t,env:n},Le.root(f,0),a,i) return s.updatingOpcodeStack.push(new r.LinkedList),s.pc=s.heap.getaddr(o),s},e.resume=function(t,r,n){return new e(r,t.scope,t.dynamicScope,n)},o.capture=function(e){return{dynamicScope:this.dynamicScope(),scope:this.scope(),stack:this.stack.capture(e)}},o.beginCacheGroup=function(){this.cacheGroups.push(this.updating().tail())},o.commitCacheGroup=function(){var e=new P("END"),t=this.updating(),i=this.cacheGroups.pop(),o=i?t.nextNode(i):t.head(),a=t.tail(),s=(0,n.combineSlice)(new r.ListSlice(o,a)),u=new I(s,e) -t.insertBefore(u,o),t.append(new O(u)),t.append(e)},o.enter=function(e){var t=new r.LinkedList,n=this.capture(e),i=this.elements().pushUpdatableBlock(),o=new Xe(this.heap.gethandle(this.pc),n,this.runtime,i,t) +t.insertBefore(u,o),t.append(new O(u)),t.append(e)},o.enter=function(e){var t=new r.LinkedList,n=this.capture(e),i=this.elements().pushUpdatableBlock(),o=new Qe(this.heap.gethandle(this.pc),n,this.runtime,i,t) this.didEnter(o)},o.iterate=function(e,t){var n=this.stack n.push(t),n.push(e) var i=this.capture(2),o=this.elements().pushUpdatableBlock() -return new Xe(this.heap.gethandle(this.pc),i,this.runtime,o,new r.LinkedList)},o.enterItem=function(e,t){this.listBlock().map[e]=t,this.didEnter(t)},o.enterList=function(e){var t=new r.LinkedList,n=this.capture(0),i=this.elements().pushBlockList(t),o=this.stack.peek().artifacts,a=this.pc+e-this.currentOpSize,s=this.heap.gethandle(a),u=new et(s,n,this.runtime,i,t,o) +return new Qe(this.heap.gethandle(this.pc),i,this.runtime,o,new r.LinkedList)},o.enterItem=function(e,t){this.listBlock().map[e]=t,this.didEnter(t)},o.enterList=function(e){var t=new r.LinkedList,n=this.capture(0),i=this.elements().pushBlockList(t),o=this.stack.peek().artifacts,a=this.pc+e-this.currentOpSize,s=this.heap.gethandle(a),u=new et(s,n,this.runtime,i,t,o) this.listBlockStack.push(u),this.didEnter(u)},o.didEnter=function(e){this.updateWith(e),this.updatingOpcodeStack.push(e.children)},o.exit=function(){this.elements().popBlock(),this.updatingOpcodeStack.pop(),this.updating().tail().didInitializeChildren()},o.exitList=function(){this.exit(),this.listBlockStack.pop()},o.updateWith=function(e){this.updating().append(e)},o.listBlock=function(){return this.listBlockStack.current},o.updating=function(){return this.updatingOpcodeStack.current},o.elements=function(){return this.elementStack},o.scope=function(){return this.scopeStack.current},o.dynamicScope=function(){return this.dynamicScopeStack.current},o.pushChildScope=function(){this.scopeStack.push(this.scope().child())},o.pushDynamicScope=function(){var e=this.dynamicScope().child() return this.dynamicScopeStack.push(e),e},o.pushRootScope=function(e,t){var r=Le.sized(e) return t&&r.bindCallerScope(this.scope()),this.scopeStack.push(r),r},o.pushScope=function(e){this.scopeStack.push(e)},o.popScope=function(){this.scopeStack.pop()},o.popDynamicScope=function(){this.dynamicScopeStack.pop()},o.newDestroyable=function(e){this.elements().didAddDestroyable(e)},o.getSelf=function(){return this.scope().getSelf()},o.referenceForSymbol=function(e){return this.scope().getSymbol(e)},o.execute=function(e,t){var r @@ -4064,9 +4064,9 @@ if(r&&Et(r)&&function(e,t){if(e.namespaceURI===re)return e.tagName===t return e.tagName===t.toUpperCase()}(r,t))return this.unmatchedAttributes=[].slice.call(r.attributes),r if(r){if(Et(r)&&"TBODY"===r.tagName)return this.pushElement(r,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(t) this.clearMismatch(r)}return e.prototype.__openElement.call(this,t)},n.__setAttribute=function(t,r,n){var i=this.unmatchedAttributes -if(i){var o=At(i,t) +if(i){var o=Mt(i,t) if(o)return o.value!==r&&(o.value=r),void i.splice(i.indexOf(o),1)}return e.prototype.__setAttribute.call(this,t,r,n)},n.__setProperty=function(t,r){var n=this.unmatchedAttributes -if(n){var i=At(n,t) +if(n){var i=Mt(n,t) if(i)return i.value!==r&&(i.value=r),void n.splice(n.indexOf(i),1)}return e.prototype.__setProperty.call(this,t,r)},n.__flushElement=function(t,r){var n=this.unmatchedAttributes if(n){for(var i=0;i3?n-3:0),o=3;o1?t-1:0),n=1;n0||this._autorun},r.cancel=function(e){if(B++,null==e)return!1 +this._timers.splice(m,0,h,e,r,n,i,y),this._timers.splice(c,s)}0===c&&this._reinstallTimerTimeout()}return e},r.cancelTimers=function(){B++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()},r.hasTimers=function(){return this._timers.length>0||this._autorun},r.cancel=function(e){if(D++,null==e)return!1 var t=typeof e return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)},r.ensureInstance=function(){this._ensureInstance()},r.getDebugInfo=function(){var e=this if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:h(this._timers,s,2),instanceStack:[this.currentInstance].concat(this.instanceStack).map(function(t){return t&&t._getDebugInfo(e.DEBUG)})}},r._end=function(e){var t=this.currentInstance,r=null @@ -4231,7 +4231,7 @@ this.currentInstance.schedule(n,a,u,o,!1,l)}}e.splice(0,t),this._installTimerTim this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,r)}},r._ensureInstance=function(){var e=this.currentInstance return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e},r._scheduleAutorun=function(e){j++ var t=this._platform.next,r=this.options.flush -r?r(e,t):t(),this._autorun=!0},(0,t.createClass)(e,[{key:"counters",get:function(){return{begin:S,end:E,events:{begin:k,end:0},autoruns:{created:j,completed:F},run:x,join:A,defer:M,schedule:T,scheduleIterable:C,deferOnce:I,scheduleOnce:O,setTimeout:P,later:R,throttle:N,debounce:L,cancelTimers:D,cancel:B,loops:{total:U,nested:z}}}},{key:"defaultQueue",get:function(){return this._defaultQueue}}]),e}() +r?r(e,t):t(),this._autorun=!0},(0,t.createClass)(e,[{key:"counters",get:function(){return{begin:S,end:E,events:{begin:k,end:0},autoruns:{created:j,completed:F},run:x,join:M,defer:A,schedule:T,scheduleIterable:C,deferOnce:I,scheduleOnce:O,setTimeout:P,later:R,throttle:N,debounce:L,cancelTimers:B,cancel:D,loops:{total:U,nested:z}}}},{key:"defaultQueue",get:function(){return this._defaultQueue}}]),e}() H.Queue=p,H.buildPlatform=o,H.buildNext=i var K=H e.default=K}),e("dag-map",["exports"],function(e){"use strict" @@ -4269,16 +4269,16 @@ return e},e.assertThisInitialized=i,e.possibleConstructorReturn=function(e,t){if return i(e)},e.objectDestructuringEmpty=function(e){0} var t=Object.setPrototypeOf,r=new Map function n(e,t){for(var r=0;r2&&"[]"===o.slice(a-2)&&(s=!0,r[o=o.slice(0,a-2)]||(r[o]=[])),u=i[1]?M(i[1]):""),s?r[o].push(u):r[o]=u}return r},T.prototype.recognize=function(e){var t,r=[this.rootState],n={},i=!1,o=e.indexOf("#");-1!==o&&(e=e.substr(0,o)) +t.push(u)}else a+="="+encodeURIComponent(o),t.push(a)}}return 0===t.length?"":"?"+t.join("&")},T.prototype.parseQueryString=function(e){for(var t=e.split("&"),r={},n=0;n2&&"[]"===o.slice(a-2)&&(s=!0,r[o=o.slice(0,a-2)]||(r[o]=[])),u=i[1]?A(i[1]):""),s?r[o].push(u):r[o]=u}return r},T.prototype.recognize=function(e){var t,r=[this.rootState],n={},i=!1,o=e.indexOf("#");-1!==o&&(e=e.substr(0,o)) var a=e.indexOf("?") if(-1!==a){var u=e.substr(a+1,e.length) e=e.substr(0,a),n=this.parseQueryString(u)}"/"!==e.charAt(0)&&(e="/"+e) @@ -4366,7 +4366,7 @@ if(i!==u)return u-i}return i!==u?i-u:n!==s?s-n:0})}(h) var p=h[0] return p&&p.handlers&&(i&&p.pattern&&"(.+)$"===p.pattern.slice(-5)&&(l+="/"),t=function(e,t,r){var n=e.handlers,i=e.regex() if(!i||!n)throw new Error("state not initialized") -var o=t.match(i),a=1,s=new A(r) +var o=t.match(i),a=1,s=new M(r) s.length=n.length for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2] return e.map(function(i,o){var a=i.name,s=i.params,u=i.paramNames,l=i.context,c=i.route -if(E.has(i)&&n){var f=E.get(i),h=x(f=function(e,r){var n={get metadata(){return A(e)}} +if(E.has(i)&&n){var f=E.get(i),h=x(f=function(e,r){var n={get metadata(){return M(e)}} if(Object.isFrozen(r)||r.hasOwnProperty("metadata"))return Object.freeze((0,t.assign)({},r,n)) return(0,t.assign)(r,n)}(c,f),l) return E.set(i,h),h}var d={find:function(t,r){var n,i=[] 3===t.length&&(i=e.map(function(e){return E.get(e)})) -for(var o=0;e.length>o;o++)if(n=E.get(e[o]),t.call(r,n,o,i))return n},get name(){return a},get paramNames(){return u},get metadata(){return A(c)},get parent(){var t=e[o-1] +for(var o=0;e.length>o;o++)if(n=E.get(e[o]),t.call(r,n,o,i))return n},get name(){return a},get paramNames(){return u},get metadata(){return M(c)},get parent(){var t=e[o-1] return void 0===t?null:E.get(t)},get child(){var t=e[o+1] return void 0===t?null:E.get(t)},get localName(){var e=this.name.split(".") return e[e.length-1]},get params(){return s},get queryParams(){return r}} return n&&(d=x(d,l)),E.set(i,d),d})}function x(e,r){var n={get attributes(){return r}} -return Object.isFrozen(e)||e.hasOwnProperty("attributes")?Object.freeze((0,t.assign)({},e,n)):(0,t.assign)(e,n)}function A(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}var M=function(){function e(e,t,r,n){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,n&&this._processRoute(n)}var t=e.prototype +return Object.isFrozen(e)||e.hasOwnProperty("attributes")?Object.freeze((0,t.assign)({},e,n)):(0,t.assign)(e,n)}function M(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}var A=function(){function e(e,t,r,n){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,n&&this._processRoute(n)}var t=e.prototype return t.getModel=function(e){return n.Promise.resolve(this.context)},t.serialize=function(e){return this.params||{}},t.resolve=function(e,t){var r=this return n.Promise.resolve(this.routePromise).then(function(t){return r.checkForAbort(e,t)}).then(function(){return r.runBeforeModelHook(t)}).then(function(){return r.checkForAbort(e,null)}).then(function(){return r.getModel(t)}).then(function(t){return r.checkForAbort(e,t)}).then(function(e){return r.runAfterModelHook(t,e)}).then(function(e){return r.becomeResolved(t,e)})},t.becomeResolved=function(e,t){var r,n=this.serialize(t) e&&(this.stashResolvedModel(e,t),e[v]=e[v]||{},e[v][this.name]=n) @@ -4449,13 +4449,13 @@ return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(r=this.route.afterModel(t,e)),r=S(i=r)?null:i,n.Promise.resolve(r).then(function(){return e.resolvedModels[o]})},t.checkForAbort=function(e,t){return n.Promise.resolve(e()).then(function(){return t},null)},t.stashResolvedModel=function(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t},t.fetchRoute=function(){var e=this.router.getRoute(this.name) return this._processRoute(e)},t._processRoute=function(e){var t,r=this return this.routePromise=n.Promise.resolve(e),null!==(t=e)&&"object"==typeof t&&"function"==typeof t.then?(this.routePromise=this.routePromise.then(function(e){return r.updateRoute(e)}),this.route=void 0):e?this.updateRoute(e):void 0},(0,r.createClass)(e,[{key:"route",get:function(){return null!==this._route?this._route:this.fetchRoute()},set:function(e){this._route=e}},{key:"routePromise",get:function(){return this._routePromise?this._routePromise:(this.fetchRoute(),this._routePromise)},set:function(e){this._routePromise=e}}]),e}() -e.InternalRouteInfo=M +e.InternalRouteInfo=A var T=function(e){function t(t,r,n,i,o,a){var s -return(s=e.call(this,t,r,n,o)||this).params=i,s.isResolved=!0,s.context=a,s}return(0,r.inheritsLoose)(t,e),t.prototype.resolve=function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),n.Promise.resolve(this)},t}(M),C=function(e){function t(t,r,n,i,o){var a +return(s=e.call(this,t,r,n,o)||this).params=i,s.isResolved=!0,s.context=a,s}return(0,r.inheritsLoose)(t,e),t.prototype.resolve=function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),n.Promise.resolve(this)},t}(A),C=function(e){function t(t,r,n,i,o){var a return(a=e.call(this,t,r,n,o)||this).params={},a.params=i,a}return(0,r.inheritsLoose)(t,e),t.prototype.getModel=function(e){var t=this.params e&&e[b]&&(u(t={},this.params),t.queryParams=e[b]) var r=this.route,i=void 0 -return r.deserialize?i=r.deserialize(t,e):r.model&&(i=r.model(t,e)),i&&S(i)&&(i=void 0),n.Promise.resolve(i)},t}(M),I=function(e){function t(t,r,n,i){var o +return r.deserialize?i=r.deserialize(t,e):r.model&&(i=r.model(t,e)),i&&S(i)&&(i=void 0),n.Promise.resolve(i)},t}(A),I=function(e){function t(t,r,n,i){var o return(o=e.call(this,t,r,n)||this).context=i,o.serializer=o.router.getSerializer(r),o}(0,r.inheritsLoose)(t,e) var n=t.prototype return n.getModel=function(t){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),e.prototype.getModel.call(this,t)},n.serialize=function(e){var t=this.paramNames,r=this.context @@ -4465,7 +4465,7 @@ if(h(e))return n[t[0]]=e,n if(this.serializer)return this.serializer.call(null,e,t) if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t) if(1===t.length){var i=t[0] -return/_id$/.test(i)?n[i]=e.id:n[i]=e,n}},t}(M) +return/_id$/.test(i)?n[i]=e.id:n[i]=e,n}},t}(A) var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} this.router=e,this.data=t},P=function(){function e(){this.routeInfos=[],this.queryParams={},this.params={}}var t=e.prototype return t.promiseLabel=function(e){var t="" @@ -4500,7 +4500,7 @@ a=s&&s.context}return new I(this.router,e,t,a)},n.createParamHandlerInfo=functio if(h(s))i[u]=""+r.pop() else{if(!a.hasOwnProperty(u))throw new Error("You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route "+e) i[u]=a[u]}}return new C(this.router,e,t,i)},t}(O),L=function(){function e(t){var r=Error.call(this,t) -this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=r.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}(),D=function(e){function t(t,r,n){var i +this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=r.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}(),B=function(e){function t(t,r,n){var i return(i=e.call(this,t,n)||this).url=r,i.preTransitionState=void 0,i}return(0,r.inheritsLoose)(t,e),t.prototype.applyToState=function(e){var t,r,n=new P,i=this.router.recognizer.recognize(this.url) if(!i)throw new L(this.url) var o=!1,a=this.url @@ -4511,7 +4511,7 @@ var h=new C(this.router,c,f,l.params),d=h.route d?s(d):h.routePromise=h.routePromise.then(s) var p=e.routeInfos[t] o||h.shouldSupercede(p)?(o=!0,n.routeInfos[t]=h):n.routeInfos[t]=p}return u(n.queryParams,i.queryParams),n},t}(O) -function B(e,t){if(e.length!==t.length)return!1 +function D(e,t){if(e.length!==t.length)return!1 for(var r=0,n=e.length;r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r[r.length-1],o={} if(void 0!==i&&i.hasOwnProperty("queryParams")&&(o=r.pop().queryParams),void 0===e){f(this,"Updating query params") var a=this.state.routeInfos -t=new N(this,a[a.length-1].name,void 0,[],o)}else"/"===e.charAt(0)?(f(this,"Attempting URL transition to "+e),t=new D(this,e)):(f(this,"Attempting transition to "+e),t=new N(this,e,void 0,r,o)) +t=new N(this,a[a.length-1].name,void 0,[],o)}else"/"===e.charAt(0)?(f(this,"Attempting URL transition to "+e),t=new B(this,e)):(f(this,"Attempting transition to "+e),t=new N(this,e,void 0,r,o)) return this.transitionByIntent(t,n)},r.finalizeTransition=function(e,t){try{f(e.router,e.sequence,"Resolved all models on destination route; finalizing transition.") var r=t.routeInfos return this.setupContexts(t,e),e.isAborted?(this.state.routeInfos=this.currentRouteInfos,n.Promise.reject(_(e))):(this._updateURL(e,t),e.isActive=!1,this.activeTransition=void 0,this.triggerEvent(this.currentRouteInfos,!0,"didTransition",[]),this.didTransition(this.currentRouteInfos),this.toInfos(e,t.routeInfos,!0),this.routeDidChange(e),f(this,e.sequence,"TRANSITION COMPLETE."),r[r.length-1].route)}catch(a){if(!(a instanceof o)){var i=e[g].routeInfos @@ -4583,7 +4583,7 @@ var s=a[a.length-1].name,l=this.recognizer.handlersFor(s),c=0 for(i=l.length;c2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0 @@ -4682,14 +4682,14 @@ return n._init=function(e,t,r,n,i){var o=t.length||0 this.length=o,this._remaining=o,this._result=new Array(o),this._mapFn=i,this._enumerate(t)},n._setResultAt=function(e,t,r,n){if(n){var i=v(this._mapFn)(r,t) i===m?this._settledAt(p,t,i.error,!1):this._eachEntry(i,t,!1)}else this._remaining--,this._result[t]=r},t}(T) function Y(e,t,r){return"function"!=typeof t?P.reject(new TypeError("map expects a function as a second argument"),r):P.resolve(e,r).then(function(e){if(!Array.isArray(e))throw new TypeError("map must be called with an array") -return new G(P,e,t,r).promise})}function Z(e,t){return P.resolve(e,t)}function J(e,t){return P.reject(e,t)}var Q={},X=function(e){function t(){return e.apply(this,arguments)||this}(0,r.inheritsLoose)(t,e) +return new G(P,e,t,r).promise})}function Z(e,t){return P.resolve(e,t)}function J(e,t){return P.reject(e,t)}var X={},Q=function(e){function t(){return e.apply(this,arguments)||this}(0,r.inheritsLoose)(t,e) var n=t.prototype -return n._checkFullfillment=function(){if(0===this._remaining&&null!==this._result){var e=this._result.filter(function(e){return e!==Q}) +return n._checkFullfillment=function(){if(0===this._remaining&&null!==this._result){var e=this._result.filter(function(e){return e!==X}) S(this.promise,e),this._result=null}},n._setResultAt=function(e,t,r,n){if(n){this._result[t]=r var i=v(this._mapFn)(r,t) -i===m?this._settledAt(p,t,i.error,!1):this._eachEntry(i,t,!1)}else this._remaining--,r||(this._result[t]=Q)},t}(G) +i===m?this._settledAt(p,t,i.error,!1):this._eachEntry(i,t,!1)}else this._remaining--,r||(this._result[t]=X)},t}(G) function $(e,t,r){return"function"!=typeof t?P.reject(new TypeError("filter expects function as a second argument"),r):P.resolve(e,r).then(function(e){if(!Array.isArray(e))throw new TypeError("filter must be called with an array") -return new X(P,e,t,r).promise})}var ee,te=0 +return new Q(P,e,t,r).promise})}var ee,te=0 function re(e,t){ye[te]=e,ye[te+1]=t,2===(te+=2)&&le()}var ne="undefined"!=typeof window?window:void 0,ie=ne||{},oe=ie.MutationObserver||ie.WebKitMutationObserver,ae="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),se="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel function ue(){return function(){return setTimeout(ge,1)}}var le,ce,fe,he,de,pe,me,ye=new Array(1e3) function ge(){for(var e=0;e=0&&t<1?H(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return j(e,t) return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:j,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return F(e,t) var r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100) @@ -4774,9 +4774,9 @@ i&&(r=Math.round(parseInt(i,16)/255*100)/100)}else if(n=e.match(/^rgba?\(\s*([+- r=parseFloat(n[4])}else if(n=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;oo?(e=o/r.innerRadius,t.arc(r.x,r.y,r.innerRadius-o,i+e,n-e,!0)):t.arc(r.x,r.y,o,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(r.x,r.y,r.outerRadius,n,i),t.arc(r.x,r.y,r.innerRadius,i,n,!0),t.closePath(),t.lineWidth=2*r.borderWidth,t.lineJoin="round"):(t.lineWidth=r.borderWidth,t.lineJoin="bevel"),t.strokeStyle=r.borderColor,t.stroke()),t.restore()}}),xe=ce.valueOrDefault,Ae=se.global.defaultColor -se._set("global",{elements:{line:{tension:.4,backgroundColor:Ae,borderWidth:3,borderColor:Ae,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}) -var Me=me.extend({draw:function(){var e,t,r,n,i=this._view,o=this._chart.ctx,a=i.spanGaps,s=this._children.slice(),u=se.global,l=u.elements.line,c=-1 +t.save(),t.beginPath(),t.arc(r.x,r.y,Math.max(r.outerRadius-o,0),n,i),t.arc(r.x,r.y,r.innerRadius,i,n,!0),t.closePath(),t.fillStyle=r.backgroundColor,t.fill(),r.borderWidth&&("inner"===r.borderAlign?(t.beginPath(),e=o/r.outerRadius,t.arc(r.x,r.y,r.outerRadius,n-e,i+e),r.innerRadius>o?(e=o/r.innerRadius,t.arc(r.x,r.y,r.innerRadius-o,i+e,n-e,!0)):t.arc(r.x,r.y,o,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(r.x,r.y,r.outerRadius,n,i),t.arc(r.x,r.y,r.innerRadius,i,n,!0),t.closePath(),t.lineWidth=2*r.borderWidth,t.lineJoin="round"):(t.lineWidth=r.borderWidth,t.lineJoin="bevel"),t.strokeStyle=r.borderColor,t.stroke()),t.restore()}}),xe=ce.valueOrDefault,Me=se.global.defaultColor +se._set("global",{elements:{line:{tension:.4,backgroundColor:Me,borderWidth:3,borderColor:Me,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}) +var Ae=me.extend({draw:function(){var e,t,r,n,i=this._view,o=this._chart.ctx,a=i.spanGaps,s=this._children.slice(),u=se.global,l=u.elements.line,c=-1 for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=i.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||l.borderDash),o.lineDashOffset=xe(i.borderDashOffset,l.borderDashOffset),o.lineJoin=i.borderJoinStyle||l.borderJoinStyle,o.lineWidth=xe(i.borderWidth,l.borderWidth),o.strokeStyle=i.borderColor||u.defaultColor,o.beginPath(),c=-1,e=0;ee.x&&(t=Le(t,"left","right")):e.baser?r:n,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>r?r:o,l:u.left||a<0?0:a>t?t:a}}function Be(e,t,r){var n=null===t,i=null===r,o=!(!e||n&&i)&&Ne(e) +return ce.isObject(s)?(n=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):n=i=o=a=+s||0,{t:u.top||n<0?0:n>r?r:n,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>r?r:o,l:u.left||a<0?0:a>t?t:a}}function De(e,t,r){var n=null===t,i=null===r,o=!(!e||n&&i)&&Ne(e) return o&&(n||t>=o.left&&t<=o.right)&&(i||r>=o.top&&r<=o.bottom)}se._set("global",{elements:{rectangle:{backgroundColor:Pe,borderColor:Pe,borderSkipped:"bottom",borderWidth:0}}}) -var je=me.extend({draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=Ne(e),r=t.right-t.left,n=t.bottom-t.top,i=De(e,r/2,n/2) +var je=me.extend({draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=Ne(e),r=t.right-t.left,n=t.bottom-t.top,i=Be(e,r/2,n/2) return{outer:{x:t.left,y:t.top,w:r,h:n},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b}}}(t),n=r.outer,i=r.inner e.fillStyle=t.backgroundColor,e.fillRect(n.x,n.y,n.w,n.h),n.w===i.w&&n.h===i.h||(e.save(),e.beginPath(),e.rect(n.x,n.y,n.w,n.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view -return e.base-e.y},inRange:function(e,t){return Be(this._view,e,t)},inLabelRange:function(e,t){var r=this._view -return Re(r)?Be(r,e,null):Be(r,null,t)},inXRange:function(e){return Be(this._view,e,null)},inYRange:function(e){return Be(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view +return e.base-e.y},inRange:function(e,t){return De(this._view,e,t)},inLabelRange:function(e,t){var r=this._view +return Re(r)?De(r,e,null):De(r,null,t)},inXRange:function(e){return De(this._view,e,null)},inYRange:function(e){return De(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view return Re(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view return Re(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view -return{x:e.x,y:e.y}}}),Fe={},Ue=ke,ze=Me,He=Oe,Ke=je +return{x:e.x,y:e.y}}}),Fe={},Ue=ke,ze=Ae,He=Oe,Ke=je Fe.Arc=Ue,Fe.Line=ze,Fe.Point=He,Fe.Rectangle=Ke var qe=ce.options.resolve se._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}) @@ -4991,10 +4991,10 @@ return{text:r,fillStyle:Ze([s.backgroundColor,o.backgroundColor,u.backgroundColo for(r=0,n=(a.data.datasets||[]).length;r=Math.PI?-1:y<-Math.PI?1:0))+p,v={x:Math.cos(y),y:Math.sin(y)},b={x:Math.cos(g),y:Math.sin(g)},w=y<=0&&g>=0||y<=2*Math.PI&&2*Math.PI<=g,_=y<=.5*Math.PI&&.5*Math.PI<=g||y<=2.5*Math.PI&&2.5*Math.PI<=g,S=y<=-Math.PI&&-Math.PI<=g||y<=Math.PI&&Math.PI<=g,E=y<=.5*-Math.PI&&.5*-Math.PI<=g||y<=1.5*Math.PI&&1.5*Math.PI<=g,k=d/100,x={x:S?-1:Math.min(v.x*(v.x<0?1:k),b.x*(b.x<0?1:k)),y:E?-1:Math.min(v.y*(v.y<0?1:k),b.y*(b.y<0?1:k))},A={x:w?1:Math.max(v.x*(v.x>0?1:k),b.x*(b.x>0?1:k)),y:_?1:Math.max(v.y*(v.y>0?1:k),b.y*(b.y>0?1:k))},M={width:.5*(A.x-x.x),height:.5*(A.y-x.y)} -l=Math.min(s/M.width,u/M.height),c={x:-.5*(A.x+x.x),y:-.5*(A.y+x.y)}}for(t=0,r=h.length;t=Math.PI?-1:y<-Math.PI?1:0))+p,v={x:Math.cos(y),y:Math.sin(y)},b={x:Math.cos(g),y:Math.sin(g)},w=y<=0&&g>=0||y<=2*Math.PI&&2*Math.PI<=g,_=y<=.5*Math.PI&&.5*Math.PI<=g||y<=2.5*Math.PI&&2.5*Math.PI<=g,S=y<=-Math.PI&&-Math.PI<=g||y<=Math.PI&&Math.PI<=g,E=y<=.5*-Math.PI&&.5*-Math.PI<=g||y<=1.5*Math.PI&&1.5*Math.PI<=g,k=d/100,x={x:S?-1:Math.min(v.x*(v.x<0?1:k),b.x*(b.x<0?1:k)),y:E?-1:Math.min(v.y*(v.y<0?1:k),b.y*(b.y<0?1:k))},M={x:w?1:Math.max(v.x*(v.x>0?1:k),b.x*(b.x>0?1:k)),y:_?1:Math.max(v.y*(v.y>0?1:k),b.y*(b.y>0?1:k))},A={width:.5*(M.x-x.x),height:.5*(M.y-x.y)} +l=Math.min(s/A.width,u/A.height),c={x:-.5*(M.x+x.x),y:-.5*(M.y+x.y)}}for(t=0,r=h.length;t div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&St.default||St,kt="$chartjs",xt="chartjs-size-monitor",At="chartjs-render-monitor",Mt="chartjs-render-animation",Tt=["animationstart","webkitAnimationStart"],Ct={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"} +var St,Et=(St=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&St.default||St,kt="$chartjs",xt="chartjs-size-monitor",Mt="chartjs-render-monitor",At="chartjs-render-animation",Tt=["animationstart","webkitAnimationStart"],Ct={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"} function It(e,t){var r=ce.getStyle(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/) return n?Number(n[1]):void 0}var Ot=!!function(){var e=!1 try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}) window.addEventListener("e",null,t)}catch(r){}return e}()&&{passive:!0} function Pt(e,t,r){e.addEventListener(t,r,Ot)}function Rt(e,t,r){e.removeEventListener(t,r,Ot)}function Nt(e,t,r,n,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function Lt(e){var t=document.createElement("div") -return t.className=e||"",t}function Dt(e,t,r){var n,i,o,a,s=e[kt]||(e[kt]={}),u=s.resizer=function(e){var t=Lt(xt),r=Lt(xt+"-expand"),n=Lt(xt+"-shrink") +return t.className=e||"",t}function Bt(e,t,r){var n,i,o,a,s=e[kt]||(e[kt]={}),u=s.resizer=function(e){var t=Lt(xt),r=Lt(xt+"-expand"),n=Lt(xt+"-shrink") r.appendChild(Lt()),n.appendChild(Lt()),t.appendChild(r),t.appendChild(n),t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,n.scrollLeft=1e6,n.scrollTop=1e6} var i=function(){t._reset(),e()} return Pt(r,"scroll",i.bind(r,"expand")),Pt(n,"scroll",i.bind(n,"shrink")),t}((n=function(){if(s.resizer){var n=r.options.maintainAspectRatio&&e.parentNode,i=n?n.clientWidth:0 -t(Nt("resize",r)),n&&n.clientWidth0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view if(0!==t.opacity){var r={width:t.width,height:t.height},n={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(n,t,e,r),n.y+=t.yPadding,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),e.restore())}},handleEvent:function(e){var t,r=this,n=r._options -return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),(t=!ce.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),Qt=qt,Xt=Jt -Xt.positioners=Qt +return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),(t=!ce.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),Xt=qt,Qt=Jt +Qt.positioners=Xt var $t=ce.valueOrDefault function er(){return ce.merge({},[].slice.call(arguments),{merger:function(e,t,r,n){if("xAxes"===e||"yAxes"===e){var i,o,a,s=r[e].length for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?ce.merge(t[e][i],[Ht.getScaleDefaults(o),a]):ce.merge(t[e][i],a)}else ce._merger(e,t,r,n)}})}function tr(){return ce.merge({},[].slice.call(arguments),{merger:function(e,t,r,n){var i=t[e]||{},o=r[e] @@ -5255,7 +5255,7 @@ return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},genera n&&(n.controller.destroy(),delete r._meta[t])},destroy:function(){var e,t,r=this,n=r.canvas for(r.stop(),e=0,t=r.data.datasets.length;es*o?s/i:l/o:l*oi?{start:t-r,end:t}:{start:t,end:t+r}}function Nr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Lr(e,t,r,n){var i,o,a=r.y+n/2 +return t.display&&e.display?Ar(t.fontSize,se.global.defaultFontSize)+2*t.backdropPaddingY:0}function Rr(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:ei?{start:t-r,end:t}:{start:t,end:t+r}}function Nr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Lr(e,t,r,n){var i,o,a=r.y+n/2 if(ce.isArray(t))for(i=0,o=t.length;i270||e<90)&&(r.y-=t.h)}function Br(e){return ce.isNumber(e)?e:0}var jr=vr.extend({setDimensions:function(){var e=this +else e.fillText(t,r.x,a)}function Br(e,t,r){90===e||270===e?r.y-=t.h/2:(e>270||e<90)&&(r.y-=t.h)}function Dr(e){return ce.isNumber(e)?e:0}var jr=vr.extend({setDimensions:function(){var e=this e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Pr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY ce.each(t.data.datasets,function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o) ce.each(i.data,function(t,i){var o=+e.getRightValue(t) @@ -5415,14 +5415,14 @@ var s,u,l,c=Or(e) for(t=0;to.r&&(o.r=d.end,a.r=f),p.starto.b&&(o.b=p.end,a.b=f)}e.setReductions(e.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var n=this,i=t.l/Math.sin(r.l),o=Math.max(t.r-n.width,0)/Math.sin(r.r),a=-t.t/Math.cos(r.t),s=-Math.max(t.b-(n.height-n.paddingTop),0)/Math.cos(r.b) -i=Br(i),o=Br(o),a=Br(a),s=Br(s),n.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),n.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,r,n){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=r+i.drawingArea,u=i.height-i.paddingTop-n-i.drawingArea +i=Dr(i),o=Dr(o),a=Dr(a),s=Dr(s),n.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),n.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,r,n){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=r+i.drawingArea,u=i.height-i.paddingTop-n-i.drawingArea i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(e){return e*(2*Math.PI/Or(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this if(null===e)return 0 var r=t.drawingArea/(t.max-t.min) return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this.getIndexAngle(e)-Math.PI/2 return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,t=e.options,r=t.gridLines,n=t.ticks -if(t.display){var i=e.ctx,o=this.getIndexAngle(0),a=ce.options._parseFont(n);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,r=e.options,n=r.angleLines,i=r.gridLines,o=r.pointLabels,a=Mr(n.lineWidth,i.lineWidth),s=Mr(n.color,i.color),u=Pr(r) +if(t.display){var i=e.ctx,o=this.getIndexAngle(0),a=ce.options._parseFont(n);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,r=e.options,n=r.angleLines,i=r.gridLines,o=r.pointLabels,a=Ar(n.lineWidth,i.lineWidth),s=Ar(n.color,i.color),u=Pr(r) t.save(),t.lineWidth=a,t.strokeStyle=s,t.setLineDash&&(t.setLineDash(Cr([n.borderDash,i.borderDash,[]])),t.lineDashOffset=Cr([n.borderDashOffset,i.borderDashOffset,0])) var l=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),c=ce.options._parseFont(o) t.font=c.string,t.textBaseline="middle" @@ -5430,11 +5430,11 @@ for(var f=Or(e)-1;f>=0;f--){if(n.display&&a&&s){var h=e.getPointPosition(f,l) t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(h.x,h.y),t.stroke()}if(o.display){var d=0===f?u/2:0,p=e.getPointPosition(f,l+d+5),m=Tr(o.fontColor,f,se.global.defaultFontColor) t.fillStyle=m var y=e.getIndexAngle(f),g=ce.toDegrees(y) -t.textAlign=Nr(g),Dr(g,e._pointLabelSizes[f],p),Lr(t,e.pointLabels[f]||"",p,c.lineHeight)}}t.restore()}(e),ce.each(e.ticks,function(t,s){if(s>0||n.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]) +t.textAlign=Nr(g),Br(g,e._pointLabelSizes[f],p),Lr(t,e.pointLabels[f]||"",p,c.lineHeight)}}t.restore()}(e),ce.each(e.ticks,function(t,s){if(s>0||n.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]) if(r.display&&0!==s&&function(e,t,r,n){var i,o=e.ctx,a=t.circular,s=Or(e),u=Tr(t.color,n-1),l=Tr(t.lineWidth,n-1) if((a||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,r,0,2*Math.PI) else{i=e.getPointPosition(0,r),o.moveTo(i.x,i.y) -for(var c=1;c=i&&r<=o&&l.push(r) +case"auto":default:u=Xr(n,i,o,n.getLabelCapacity(i))}for("ticks"===a.bounds&&u.length&&(i=u[0],o=u[u.length-1]),i=Zr(n,s.min)||i,o=Zr(n,s.max)||o,e=0,t=u.length;e=i&&r<=o&&l.push(r) return n.min=i,n.max=o,n._unit=s.unit||function(e,t,r,n,i){var o,a for(o=qr.length-1;o>=qr.indexOf(r);o--)if(a=qr[o],Kr[a].common&&e._adapter.diff(i,n,a)>=t.length)return a return qr[r?qr.indexOf(r):0]}(n,l,s.minUnit,n.min,n.max),n._majorUnit=Jr(n._unit),n._table=function(e,t,r,n){if("linear"===n||!e.length)return[{time:t,pos:0},{time:r,pos:1}] @@ -5486,8 +5486,8 @@ return e>=0&&e0?a:1}}),$r={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}} -Xr._defaults=$r -var en={category:pr,linear:wr,logarithmic:xr,radialLinear:jr,time:Xr},tn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"} +Qr._defaults=$r +var en={category:pr,linear:wr,logarithmic:xr,radialLinear:jr,time:Qr},tn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"} sr._date.override("function"==typeof e?{_id:"moment",formats:function(){return tn},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,n){return e(t).add(r,n).valueOf()},diff:function(t,r,n){return e.duration(e(t).diff(e(r))).as(n)},startOf:function(t,r,n){return t=e(t),"isoWeek"===r?t.isoWeekday(n).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),se._set("global",{plugins:{filler:{propagate:!0}}}) var rn={dataset:function(e){var t=e.fill,r=e.chart,n=r.getDatasetMeta(t),i=n&&r.isDatasetVisible(t)&&n.dataset._children||[],o=i.length||0 return o?function(e,t){return tr.length){for(var u=0;un&&(n=o),n},ce.numberOfLabelLines=function(e){var t=1 -return ce.each(e,function(e){ce.isArray(e)&&e.length>t&&(t=e.length)}),t},ce.color=G?function(e){return e instanceof CanvasGradient&&(e=se.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},ce.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ce.color(e).saturate(.5).darken(.1).rgbString()}}(),ir._adapters=sr,ir.Animation=ge,ir.animationService=ve,ir.controllers=ct,ir.DatasetController=Ee,ir.defaults=se,ir.Element=me,ir.elements=Fe,ir.Interaction=gt,ir.layouts=_t,ir.platform=Ut,ir.plugins=zt,ir.Scale=dr,ir.scaleService=Ht,ir.Ticks=ur,ir.Tooltip=Xt,ir.helpers.each(en,function(e,t){ir.scaleService.registerScaleType(t,e,e._defaults)}),wn)wn.hasOwnProperty(kn)&&ir.plugins.register(wn[kn]) +return ce.each(e,function(e){ce.isArray(e)&&e.length>t&&(t=e.length)}),t},ce.color=G?function(e){return e instanceof CanvasGradient&&(e=se.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},ce.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ce.color(e).saturate(.5).darken(.1).rgbString()}}(),ir._adapters=sr,ir.Animation=ge,ir.animationService=ve,ir.controllers=ct,ir.DatasetController=Ee,ir.defaults=se,ir.Element=me,ir.elements=Fe,ir.Interaction=gt,ir.layouts=_t,ir.platform=Ut,ir.plugins=zt,ir.Scale=dr,ir.scaleService=Ht,ir.Ticks=ur,ir.Tooltip=Qt,ir.helpers.each(en,function(e,t){ir.scaleService.registerScaleType(t,e,e._defaults)}),wn)wn.hasOwnProperty(kn)&&ir.plugins.register(wn[kn]) ir.platform.initialize() var xn=ir return"undefined"!=typeof window&&(window.Chart=ir),ir.Chart=ir,ir.Legend=wn.legend._element,ir.Title=wn.title._element,ir.pluginService=ir.plugins,ir.PluginBase=ir.Element.extend({}),ir.canvasHelpers=ir.helpers.canvas,ir.layoutService=ir.layouts,ir.LinearScaleBase=vr,ir.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){ir[e]=function(t,r){return new ir(t,ir.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),xn}),"undefined"==typeof FastBoot&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.flatpickr=t()}(this,function(){"use strict" @@ -5668,17 +5668,17 @@ var n=u._input.value x(),me(),u._input.value!==n&&u._debouncedChange()}}function x(){if(void 0!==u.hourElement&&void 0!==u.minuteElement){var e,r,n=(parseInt(u.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(u.minuteElement.value,10)||0)%60,o=void 0!==u.secondElement?(parseInt(u.secondElement.value,10)||0)%60:0 void 0!==u.amPM&&(e=n,r=u.amPM.textContent,n=e%12+12*t(r===u.l10n.amPM[1])) var a=void 0!==u.config.minTime||u.config.minDate&&u.minDateHasTime&&u.latestSelectedDateObj&&0===h(u.latestSelectedDateObj,u.config.minDate,!0) -if(void 0!==u.config.maxTime||u.config.maxDate&&u.maxDateHasTime&&u.latestSelectedDateObj&&0===h(u.latestSelectedDateObj,u.config.maxDate,!0)){var s=void 0!==u.config.maxTime?u.config.maxTime:u.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(a){var l=void 0!==u.config.minTime?u.config.minTime:u.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(i=Math.max(i,l.getMinutes())),i===l.getMinutes()&&(o=Math.max(o,l.getSeconds()))}T(n,i,o)}}function A(e){var t=e||u.latestSelectedDateObj -t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function M(){var e=u.config.defaultHour,t=u.config.defaultMinute,r=u.config.defaultSeconds +if(void 0!==u.config.maxTime||u.config.maxDate&&u.maxDateHasTime&&u.latestSelectedDateObj&&0===h(u.latestSelectedDateObj,u.config.maxDate,!0)){var s=void 0!==u.config.maxTime?u.config.maxTime:u.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(a){var l=void 0!==u.config.minTime?u.config.minTime:u.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(i=Math.max(i,l.getMinutes())),i===l.getMinutes()&&(o=Math.max(o,l.getSeconds()))}T(n,i,o)}}function M(e){var t=e||u.latestSelectedDateObj +t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function A(){var e=u.config.defaultHour,t=u.config.defaultMinute,r=u.config.defaultSeconds if(void 0!==u.config.minDate){var n=u.config.minDate.getHours(),i=u.config.minDate.getMinutes();(e=Math.max(e,n))===n&&(t=Math.max(i,t)),e===n&&t===i&&(r=u.config.minDate.getSeconds())}if(void 0!==u.config.maxDate){var o=u.config.maxDate.getHours(),a=u.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(a,t)),e===o&&t===a&&(r=u.config.maxDate.getSeconds())}T(e,t,r)}function T(r,n,i){void 0!==u.latestSelectedDateObj&&u.latestSelectedDateObj.setHours(r%24,n,i||0,0),u.hourElement&&u.minuteElement&&!u.isMobile&&(u.hourElement.value=e(u.config.time_24hr?r:(12+r)%12+12*t(r%12==0)),u.minuteElement.value=e(n),void 0!==u.amPM&&(u.amPM.textContent=u.l10n.amPM[t(r>=12)]),void 0!==u.secondElement&&(u.secondElement.value=e(i)))}function C(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Z(t)}function I(e,t,r,n){return t instanceof Array?t.forEach(function(t){return I(e,t,r,n)}):e instanceof Array?e.forEach(function(e){return I(e,t,r,n)}):(e.addEventListener(t,r,n),void u._handlers.push({element:e,event:t,handler:r,options:n}))}function O(e){return function(t){1===t.which&&e(t)}}function P(){ce("onChange")}function R(e){var t=void 0!==e?u.parseDate(e):u.latestSelectedDateObj||(u.config.minDate&&u.config.minDate>u.now?u.config.minDate:u.config.maxDate&&u.config.maxDate=0&&h(e,u.selectedDates[1])<=0}(t)&&!he(t)&&o.classList.add("inRange"),u.weekNumbers&&1===u.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&u.weekNumbers.insertAdjacentHTML("beforeend",""+u.config.getWeek(t)+""),ce("onDayCreate",o),o}function B(e){e.focus(),"range"===u.config.mode&&$(e)}function j(e){for(var t=e>0?0:u.config.showMonths-1,r=e>0?u.config.showMonths:-1,n=t;n!=r;n+=e)for(var i=u.daysContainer.children[n],o=e>0?0:i.children.length-1,a=e>0?i.children.length:-1,s=o;s!=a;s+=e){var l=i.children[s] -if(-1===l.className.indexOf("hidden")&&J(l.dateObj))return l}}function F(e,t){var r=Q(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==u.selectedDateElem&&Q(u.selectedDateElem)?u.selectedDateElem:void 0!==u.todayDateElem&&Q(u.todayDateElem)?u.todayDateElem:j(t>0?1:-1) +o.delta=t,i&&i.dispatchEvent(o)}function B(e,t,r,n){var i=J(t,!0),o=v("span","flatpickr-day "+e,t.getDate().toString()) +return o.dateObj=t,o.$i=n,o.setAttribute("aria-label",u.formatDate(t,u.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===h(t,u.now)&&(u.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,he(t)&&(o.classList.add("selected"),u.selectedDateElem=o,"range"===u.config.mode&&(g(o,"startRange",u.selectedDates[0]&&0===h(t,u.selectedDates[0],!0)),g(o,"endRange",u.selectedDates[1]&&0===h(t,u.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("disabled"),"range"===u.config.mode&&function(e){return!("range"!==u.config.mode||u.selectedDates.length<2)&&h(e,u.selectedDates[0])>=0&&h(e,u.selectedDates[1])<=0}(t)&&!he(t)&&o.classList.add("inRange"),u.weekNumbers&&1===u.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&u.weekNumbers.insertAdjacentHTML("beforeend",""+u.config.getWeek(t)+""),ce("onDayCreate",o),o}function D(e){e.focus(),"range"===u.config.mode&&$(e)}function j(e){for(var t=e>0?0:u.config.showMonths-1,r=e>0?u.config.showMonths:-1,n=t;n!=r;n+=e)for(var i=u.daysContainer.children[n],o=e>0?0:i.children.length-1,a=e>0?i.children.length:-1,s=o;s!=a;s+=e){var l=i.children[s] +if(-1===l.className.indexOf("hidden")&&J(l.dateObj))return l}}function F(e,t){var r=X(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==u.selectedDateElem&&X(u.selectedDateElem)?u.selectedDateElem:void 0!==u.todayDateElem&&X(u.todayDateElem)?u.todayDateElem:j(t>0?1:-1) return void 0===n?u._input.focus():r?void function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():u.currentMonth,n=t>0?u.config.showMonths:-1,i=t>0?1:-1,o=r-u.currentMonth;o!=n;o+=i)for(var a=u.daysContainer.children[o],s=r-u.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c0?l:-1);c+=i){var f=a.children[c] -if(-1===f.className.indexOf("hidden")&&J(f.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return B(f)}u.changeMonth(i),F(j(i),0)}(n,t):B(n)}function U(e,t){for(var r=(new Date(e,t,1).getDay()-u.l10n.firstDayOfWeek+7)%7,n=u.utils.getDaysInMonth((t-1+12)%12),i=u.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=u.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=n+1-r,f=0;c<=n;c++,f++)o.appendChild(D(s,new Date(e,t-1,c),c,f)) -for(c=1;c<=i;c++,f++)o.appendChild(D("",new Date(e,t,c),c,f)) -for(var h=i+1;h<=42-r&&(1===u.config.showMonths||f%7!=0);h++,f++)o.appendChild(D(l,new Date(e,t+1,h%i),h,f)) +if(-1===f.className.indexOf("hidden")&&J(f.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return D(f)}u.changeMonth(i),F(j(i),0)}(n,t):D(n)}function U(e,t){for(var r=(new Date(e,t,1).getDay()-u.l10n.firstDayOfWeek+7)%7,n=u.utils.getDaysInMonth((t-1+12)%12),i=u.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=u.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=n+1-r,f=0;c<=n;c++,f++)o.appendChild(B(s,new Date(e,t-1,c),c,f)) +for(c=1;c<=i;c++,f++)o.appendChild(B("",new Date(e,t,c),c,f)) +for(var h=i+1;h<=42-r&&(1===u.config.showMonths||f%7!=0);h++,f++)o.appendChild(B(l,new Date(e,t+1,h%i),h,f)) var d=v("div","dayContainer") return d.appendChild(o),d}function z(){if(void 0!==u.daysContainer){b(u.daysContainer),u.weekNumbers&&b(u.weekNumbers) for(var e=document.createDocumentFragment(),t=0;t0,o=i?u.config.enable:u.config.disable,a=0;a=n.from.getTime()&&r.getTime()<=n.to.getTime())return i}return!i}function Q(e){return void 0!==u.daysContainer&&(-1===e.className.indexOf("hidden")&&u.daysContainer.contains(e))}function X(e){var t=e.target===u._input,r=u.config.allowInput,n=u.isOpen&&(!r||!t),i=u.config.inline&&t&&!r +return s&&s.getTime()===r.getTime()?i:!i}if("object"==typeof n&&void 0!==r&&n.from&&n.to&&r.getTime()>=n.from.getTime()&&r.getTime()<=n.to.getTime())return i}return!i}function X(e){return void 0!==u.daysContainer&&(-1===e.className.indexOf("hidden")&&u.daysContainer.contains(e))}function Q(e){var t=e.target===u._input,r=u.config.allowInput,n=u.isOpen&&(!r||!t),i=u.config.inline&&t&&!r if(13===e.keyCode&&t){if(r)return u.setDate(u._input.value,!0,e.target===u.altInput?u.config.altFormat:u.config.dateFormat),e.target.blur() u.open()}else if(G(e.target)||n||i){var o=!!u.timeContainer&&u.timeContainer.contains(e.target) switch(e.keyCode){case 13:o?E():ae(e) @@ -5713,7 +5713,7 @@ break case 8:case 46:t&&!u.config.allowInput&&(e.preventDefault(),u.clear()) break case 37:case 39:if(o)u.hourElement&&u.hourElement.focus() -else if(e.preventDefault(),void 0!==u.daysContainer&&(!1===r||Q(document.activeElement))){var a=39===e.keyCode?1:-1 +else if(e.preventDefault(),void 0!==u.daysContainer&&(!1===r||X(document.activeElement))){var a=39===e.keyCode?1:-1 e.ctrlKey?(W(a),F(j(1),0)):F(void 0,a)}break case 38:case 40:e.preventDefault() var s=40===e.keyCode?1:-1 @@ -5727,7 +5727,7 @@ break case u.l10n.amPM[1].charAt(0):case u.l10n.amPM[1].charAt(0).toLowerCase():u.amPM.textContent=u.l10n.amPM[1],x(),me()}ce("onKeyDown",e)}function $(e){if(1===u.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled"))){for(var t=e?e.dateObj.getTime():u.days.firstElementChild.dateObj.getTime(),r=u.parseDate(u.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,u.selectedDates[0].getTime()),i=Math.max(t,u.selectedDates[0].getTime()),o=u.daysContainer.lastChild.lastChild.dateObj.getTime(),a=!1,s=0,l=0,c=n;cn&&cs)?s=c:c>r&&(!l||c0&&c0&&c>l return p?(o.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){o.classList.remove(e)}),"continue"):a&&!p?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){o.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t0&&m&&m.lastChild.dateObj.getTime()>=c||(rt&&c===r&&o.classList.add("endRange"),c>=s&&(0===l||c<=l)&&d(c,r,t)&&o.classList.add("inRange")))))},g=0,v=h.children.length;g0||r.getMinutes()>0||r.getSeconds()>0),u.selectedDates&&(u.selectedDates=u.selectedDates.filter(function(e){return J(e)}),u.selectedDates.length||"min"!==e||A(r),me()),u.daysContainer&&(ie(),void 0!==r?u.currentYearElement[e]=r.getFullYear().toString():u.currentYearElement.removeAttribute(e),u.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function re(){"object"!=typeof u.config.locale&&void 0===k.l10ns[u.config.locale]&&u.config.errorHandler(new Error("flatpickr: invalid locale "+u.config.locale)),u.l10n=Object.assign({},k.l10ns.default,"object"==typeof u.config.locale?u.config.locale:"default"!==u.config.locale?k.l10ns[u.config.locale]:void 0),s.K="("+u.l10n.amPM[0]+"|"+u.l10n.amPM[1]+"|"+u.l10n.amPM[0].toLowerCase()+"|"+u.l10n.amPM[1].toLowerCase()+")",u.formatDate=c(u),u.parseDate=f({config:u.config,l10n:u.l10n})}function ne(e){if(void 0!==u.calendarContainer){ce("onPreCalendarPosition") +void 0!==r&&(u["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),u.selectedDates&&(u.selectedDates=u.selectedDates.filter(function(e){return J(e)}),u.selectedDates.length||"min"!==e||M(r),me()),u.daysContainer&&(ie(),void 0!==r?u.currentYearElement[e]=r.getFullYear().toString():u.currentYearElement.removeAttribute(e),u.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function re(){"object"!=typeof u.config.locale&&void 0===k.l10ns[u.config.locale]&&u.config.errorHandler(new Error("flatpickr: invalid locale "+u.config.locale)),u.l10n=Object.assign({},k.l10ns.default,"object"==typeof u.config.locale?u.config.locale:"default"!==u.config.locale?k.l10ns[u.config.locale]:void 0),s.K="("+u.l10n.amPM[0]+"|"+u.l10n.amPM[1]+"|"+u.l10n.amPM[0].toLowerCase()+"|"+u.l10n.amPM[1].toLowerCase()+")",u.formatDate=c(u),u.parseDate=f({config:u.config,l10n:u.l10n})}function ne(e){if(void 0!==u.calendarContainer){ce("onPreCalendarPosition") var t=e||u._positionElement,r=Array.prototype.reduce.call(u.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),n=u.calendarContainer.offsetWidth,i=u.config.position.split(" "),o=i[0],a=i.length>1?i[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,c="above"===o||"below"!==o&&lr,f=window.pageYOffset+s.top+(c?-r-2:t.offsetHeight+2) if(g(u.calendarContainer,"arrowTop",!c),g(u.calendarContainer,"arrowBottom",c),!u.config.inline){var h=window.pageXOffset+s.left-(null!=a&&"center"===a?(n-s.width)/2:0),d=window.document.body.offsetWidth-s.right,p=h+n>window.document.body.offsetWidth g(u.calendarContainer,"rightMost",p),u.config.static||(u.calendarContainer.style.top=f+"px",p?(u.calendarContainer.style.left="auto",u.calendarContainer.style.right=d+"px"):(u.calendarContainer.style.left=h+"px",u.calendarContainer.style.right="auto"))}}}function ie(){u.config.noCalendar||u.isMobile||(de(),z())}function oe(){u._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(u.close,0):u.close()}function ae(e){e.preventDefault(),e.stopPropagation() @@ -5737,10 +5737,10 @@ if(u.selectedDateElem=r,"single"===u.config.mode)u.selectedDates=[n] else if("multiple"===u.config.mode){var o=he(n) o?u.selectedDates.splice(parseInt(o),1):u.selectedDates.push(n)}else"range"===u.config.mode&&(2===u.selectedDates.length&&u.clear(!1),u.selectedDates.push(n),0!==h(n,u.selectedDates[0],!0)&&u.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})) if(x(),i){var a=u.currentYear!==n.getFullYear() -u.currentYear=n.getFullYear(),u.currentMonth=n.getMonth(),a&&ce("onYearChange"),ce("onMonthChange")}if(de(),z(),me(),u.config.enableTime&&setTimeout(function(){return u.showTimeInput=!0},50),i||"range"===u.config.mode||1!==u.config.showMonths?u.selectedDateElem&&u.selectedDateElem.focus():B(r),void 0!==u.hourElement&&setTimeout(function(){return void 0!==u.hourElement&&u.hourElement.select()},451),u.config.closeOnSelect){var s="single"===u.config.mode&&!u.config.enableTime,l="range"===u.config.mode&&2===u.selectedDates.length&&!u.config.enableTime;(s||l)&&oe()}P()}}u.parseDate=f({config:u.config,l10n:u.l10n}),u._handlers=[],u._bind=I,u._setHoursFromDate=A,u._positionCalendar=ne,u.changeMonth=W,u.changeYear=Z,u.clear=function(e){void 0===e&&(e=!0) +u.currentYear=n.getFullYear(),u.currentMonth=n.getMonth(),a&&ce("onYearChange"),ce("onMonthChange")}if(de(),z(),me(),u.config.enableTime&&setTimeout(function(){return u.showTimeInput=!0},50),i||"range"===u.config.mode||1!==u.config.showMonths?u.selectedDateElem&&u.selectedDateElem.focus():D(r),void 0!==u.hourElement&&setTimeout(function(){return void 0!==u.hourElement&&u.hourElement.select()},451),u.config.closeOnSelect){var s="single"===u.config.mode&&!u.config.enableTime,l="range"===u.config.mode&&2===u.selectedDates.length&&!u.config.enableTime;(s||l)&&oe()}P()}}u.parseDate=f({config:u.config,l10n:u.l10n}),u._handlers=[],u._bind=I,u._setHoursFromDate=M,u._positionCalendar=ne,u.changeMonth=W,u.changeYear=Z,u.clear=function(e){void 0===e&&(e=!0) u.input.value="",void 0!==u.altInput&&(u.altInput.value="") void 0!==u.mobileInput&&(u.mobileInput.value="") -u.selectedDates=[],u.latestSelectedDateObj=void 0,u.showTimeInput=!1,!0===u.config.enableTime&&M() +u.selectedDates=[],u.latestSelectedDateObj=void 0,u.showTimeInput=!1,!0===u.config.enableTime&&A() u.redraw(),e&&ce("onChange")},u.close=function(){u.isOpen=!1,u.isMobile||(u.calendarContainer.classList.remove("open"),u._input.classList.remove("active")) ce("onClose")},u._createElement=v,u.destroy=function(){void 0!==u.config&&ce("onDestroy") for(var e=u._handlers.length;e--;){var t=u._handlers[e] @@ -5754,11 +5754,11 @@ if(!0===u.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void if(u._input.disabled||u.config.inline)return var r=u.isOpen u.isOpen=!0,r||(u.calendarContainer.classList.add("open"),u._input.classList.add("active"),ce("onOpen"),ne(t)) -!0===u.config.enableTime&&!0===u.config.noCalendar&&(0===u.selectedDates.length&&(u.setDate(void 0!==u.config.minDate?new Date(u.config.minDate.getTime()):new Date,!1),M(),me()),!1!==u.config.allowInput||void 0!==e&&u.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return u.hourElement.select()},50))},u.redraw=ie,u.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(u.config,e):(u.config[e]=t,void 0!==se[e]?se[e].forEach(function(e){return e()}):m.indexOf(e)>-1&&(u.config[e]=n(t))) +!0===u.config.enableTime&&!0===u.config.noCalendar&&(0===u.selectedDates.length&&(u.setDate(void 0!==u.config.minDate?new Date(u.config.minDate.getTime()):new Date,!1),A(),me()),!1!==u.config.allowInput||void 0!==e&&u.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return u.hourElement.select()},50))},u.redraw=ie,u.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(u.config,e):(u.config[e]=t,void 0!==se[e]?se[e].forEach(function(e){return e()}):m.indexOf(e)>-1&&(u.config[e]=n(t))) u.redraw(),R(),me(!1)},u.setDate=function(e,t,r){void 0===t&&(t=!1) void 0===r&&(r=u.config.dateFormat) if(0!==e&&!e||e instanceof Array&&0===e.length)return u.clear(t) -ue(e,r),u.showTimeInput=u.selectedDates.length>0,u.latestSelectedDateObj=u.selectedDates[0],u.redraw(),R(),A(),me(t),t&&ce("onChange")},u.toggle=function(e){if(!0===u.isOpen)return u.close() +ue(e,r),u.showTimeInput=u.selectedDates.length>0,u.latestSelectedDateObj=u.selectedDates[0],u.redraw(),R(),M(),me(t),t&&ce("onChange")},u.toggle=function(e){if(!0===u.isOpen)return u.close() u.open(e)} var se={locale:[re,V],showMonths:[K,S,q]} function ue(e,t){var r=[] @@ -5810,7 +5810,7 @@ u.element.parentNode&&u.element.parentNode.insertBefore(s,u.element),s.appendChi u.mobileInput=v("input",u.input.className+" flatpickr-mobile"),u.mobileInput.step=u.input.getAttribute("step")||"any",u.mobileInput.tabIndex=1,u.mobileInput.type=e,u.mobileInput.disabled=u.input.disabled,u.mobileInput.required=u.input.required,u.mobileInput.placeholder=u.input.placeholder,u.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",u.selectedDates.length>0&&(u.mobileInput.defaultValue=u.mobileInput.value=u.formatDate(u.selectedDates[0],u.mobileFormatStr)),u.config.minDate&&(u.mobileInput.min=u.formatDate(u.config.minDate,"Y-m-d")),u.config.maxDate&&(u.mobileInput.max=u.formatDate(u.config.maxDate,"Y-m-d")),u.input.type="hidden",void 0!==u.altInput&&(u.altInput.type="hidden") try{u.input.parentNode&&u.input.parentNode.insertBefore(u.mobileInput,u.input.nextSibling)}catch(t){}I(u.mobileInput,"change",function(e){u.setDate(e.target.value,!1,u.mobileFormatStr),ce("onChange"),ce("onClose")})})() else{var e=r(ee,50) -u._debouncedChange=r(P,_),u.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(u.daysContainer,"mouseover",function(e){"range"===u.config.mode&&$(e.target)}),I(window.document.body,"keydown",X),u.config.static||I(u._input,"keydown",X),u.config.inline||u.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"click",Y):I(window.document,"mousedown",O(Y)),I(window.document,"focus",Y,{capture:!0}),!0===u.config.clickOpens&&(I(u._input,"focus",u.open),I(u._input,"mousedown",O(u.open))),void 0!==u.daysContainer&&(I(u.monthNav,"mousedown",O(ye)),I(u.monthNav,["keyup","increment"],C),I(u.daysContainer,"mousedown",O(ae))),void 0!==u.timeContainer&&void 0!==u.minuteElement&&void 0!==u.hourElement&&(I(u.timeContainer,["increment"],E),I(u.timeContainer,"blur",E,{capture:!0}),I(u.timeContainer,"mousedown",O(N)),I([u.hourElement,u.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==u.secondElement&&I(u.secondElement,"focus",function(){return u.secondElement&&u.secondElement.select()}),void 0!==u.amPM&&I(u.amPM,"mousedown",O(function(e){E(e),P()})))}}(),(u.selectedDates.length||u.config.noCalendar)&&(u.config.enableTime&&A(u.config.noCalendar?u.latestSelectedDateObj||u.config.minDate:void 0),me(!1)),S(),u.showTimeInput=u.selectedDates.length>0||u.config.noCalendar +u._debouncedChange=r(P,_),u.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(u.daysContainer,"mouseover",function(e){"range"===u.config.mode&&$(e.target)}),I(window.document.body,"keydown",Q),u.config.static||I(u._input,"keydown",Q),u.config.inline||u.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"click",Y):I(window.document,"mousedown",O(Y)),I(window.document,"focus",Y,{capture:!0}),!0===u.config.clickOpens&&(I(u._input,"focus",u.open),I(u._input,"mousedown",O(u.open))),void 0!==u.daysContainer&&(I(u.monthNav,"mousedown",O(ye)),I(u.monthNav,["keyup","increment"],C),I(u.daysContainer,"mousedown",O(ae))),void 0!==u.timeContainer&&void 0!==u.minuteElement&&void 0!==u.hourElement&&(I(u.timeContainer,["increment"],E),I(u.timeContainer,"blur",E,{capture:!0}),I(u.timeContainer,"mousedown",O(N)),I([u.hourElement,u.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==u.secondElement&&I(u.secondElement,"focus",function(){return u.secondElement&&u.secondElement.select()}),void 0!==u.amPM&&I(u.amPM,"mousedown",O(function(e){E(e),P()})))}}(),(u.selectedDates.length||u.config.noCalendar)&&(u.config.enableTime&&M(u.config.noCalendar?u.latestSelectedDateObj||u.config.minDate:void 0),me(!1)),S(),u.showTimeInput=u.selectedDates.length>0||u.config.noCalendar var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent) !u.isMobile&&o&&ne(),ce("onReady")}(),u}function E(e,t){for(var r=Array.prototype.slice.call(e),n=[],i=0;i2047&&(u<55296||u>57343)&&(c=u) break case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length -if(t<=A)return String.fromCharCode.apply(String,e) -for(var r="",n=0;nthis.length)&&(r=this.length),r<=0)return"" if((r>>>=0)<=(t>>>=0))return"" for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r) case"utf8":case"utf-8":return x(this,t,r) -case"ascii":return M(this,t,r) +case"ascii":return A(this,t,r) case"latin1":case"binary":return T(this,t,r) case"base64":return k(this,t,r) case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r) @@ -6768,8 +6749,8 @@ case"base64":return S(this,e,t,r) case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r) default:if(o)throw new TypeError("Unknown encoding: "+n) n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}} -var A=4096 -function M(e,t,r){var n="" +var M=4096 +function A(e,t,r){var n="" r=Math.min(e.length,r) for(var i=t;ii||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1) for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1) for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range") -if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,o){return o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length +if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,n,o){return o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255 -return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds") @@ -6869,13 +6850,13 @@ if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e) try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1) if(arguments.length>1)for(var r=1;rs.st&&i.sti.st&&s.sts.st&&i.sti.st&&s.st=0;n--)this.removeListener(e,t[n]) -return this},u.prototype.listeners=function(e){return d(this,e,!0)},u.prototype.rawListeners=function(e){return d(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},u.prototype.listenerCount=p,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){e.exports={encode:r(251),decode:r(252),encodingLength:r(253)}},function(e,t,r){(function(t){var n=r(18),i=r(105),o=r(441),a=function(){},s=/^v?\.0/.test(t.version),u=function(e){return"function"==typeof e},l=function(e,t,r,l){l=n(l) +return this},u.prototype.listeners=function(e){return d(this,e,!0)},u.prototype.rawListeners=function(e){return d(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},u.prototype.listenerCount=p,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){e.exports={encode:r(254),decode:r(255),encodingLength:r(256)}},function(e,t,r){(function(t){var n=r(18),i=r(106),o=r(444),a=function(){},s=/^v?\.0/.test(t.version),u=function(e){return"function"==typeof e},l=function(e,t,r,l){l=n(l) var c=!1 e.on("close",function(){c=!0}),i(e,{readable:t,writable:r},function(e){if(e)return l(e) c=!0,l()}) @@ -7191,7 +7172,7 @@ e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=u(t[t.lengt if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum") var n=t.map(function(i,o){var a=o0,function(t){e||(e=t),t&&n.forEach(c),a||(n.forEach(c),r(e))})}) -return t.reduce(f)}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n=r(21),i=r(12),o=r(28),a=r(17),s=r(266),u=r(267),l=/^https?:\/\/[^\/]+\/(ip(f|n)s)\/((\w+).*)/,c=/^\/(ip(f|n)s)\/((\w+).*)/,f=1,h=4,d=/^https?:\/\/([^\/]+)\.(ip(?:f|n)s)\.[^\/]+/ +return t.reduce(f)}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n=r(21),i=r(12),o=r(29),a=r(17),s=r(269),u=r(270),l=/^https?:\/\/[^\/]+\/(ip(f|n)s)\/((\w+).*)/,c=/^\/(ip(f|n)s)\/((\w+).*)/,f=1,h=4,d=/^https?:\/\/([^\/]+)\.(ip(?:f|n)s)\.[^\/]+/ function p(e){try{return new u(e),!0}catch(e){return!1}}function m(e){if(!e)return!1 if(a.isMultiaddr(e))return!0 try{return new a(e),!0}catch(e){return!1}}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h,i=b(e) @@ -7209,7 +7190,7 @@ if(n&&t===d){var a=o[n] return p(a=a.toLowerCase())}return!0}function v(e){return"string"==typeof e}function b(e){return t.isBuffer(e)?n.encode(e):!!v(e)&&e}var w=function(e){return y(e,d,2,1)},_=function(e){return g(e,d,2,1)} e.exports={multihash:function(e){var r=b(e) try{var o=t.from(n.decode(r)) -return i.decode(o),!0}catch(e){return!1}},multiaddr:m,peerMultiaddr:function(e){return m(e)&&s.IPFS.matches(e)},cid:p,base32cid:function(e){return"base32"===function(e){try{return o.isEncoded(e)}catch(e){return!1}}(e)&&p(e)},ipfsSubdomain:w,ipnsSubdomain:_,subdomain:function(e){return w(e)||_(e)},subdomainPattern:d,ipfsUrl:function(e){return y(e,l)},ipnsUrl:function(e){return g(e,l)},url:function(e){return y(e,l)||g(e,l)},urlPattern:l,ipfsPath:function(e){return y(e,c)},ipnsPath:function(e){return g(e,c)},path:function(e){return y(e,c)||g(e,c)},pathPattern:c,urlOrPath:function(e){return y(e,l)||g(e,l)||y(e,c)||g(e,c)},cidPath:function(e){return v(e)&&!p(e)&&y("/ipfs/".concat(e),c)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(260),i=r(76),o=r(14),a=r(21),s=r(22).proto(function(e){if(!(this instanceof s))return new s(e) +return i.decode(o),!0}catch(e){return!1}},multiaddr:m,peerMultiaddr:function(e){return m(e)&&s.IPFS.matches(e)},cid:p,base32cid:function(e){return"base32"===function(e){try{return o.isEncoded(e)}catch(e){return!1}}(e)&&p(e)},ipfsSubdomain:w,ipnsSubdomain:_,subdomain:function(e){return w(e)||_(e)},subdomainPattern:d,ipfsUrl:function(e){return y(e,l)},ipnsUrl:function(e){return g(e,l)},url:function(e){return y(e,l)||g(e,l)},urlPattern:l,ipfsPath:function(e){return y(e,c)},ipnsPath:function(e){return g(e,c)},path:function(e){return y(e,c)||g(e,c)},pathPattern:c,urlOrPath:function(e){return y(e,l)||g(e,l)||y(e,c)||g(e,c)},cidPath:function(e){return v(e)&&!p(e)&&y("/ipfs/".concat(e),c)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(263),i=r(77),o=r(14),a=r(21),s=r(23).proto(function(e){if(!(this instanceof s))return new s(e) if(null==e&&(e=""),e instanceof t)this.buffer=n.fromBuffer(e) else if("string"==typeof e||e instanceof String){if(e.length>0&&"/"!==e.charAt(0))throw new Error('multiaddr "'.concat(e,'" must start with a "/"')) this.buffer=n.fromString(e)}else{if(!(e.buffer&&e.protos&&e.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr") @@ -7230,7 +7211,7 @@ return{family:41===e[0]||55===e[0]?6:4,address:r[1],port:r[3]}},s.fromNodeAddres if(!t)throw new Error("requires transport protocol") var r="IPv6"===e.family?"ip6":"ip4" return s("/"+[r,e.address,t,e.port].join("/"))},s.prototype.isThinWaistAddress=function(e){var t=(e||this).protos() -return!(2!==t.length||4!==t[0].code&&41!==t[0].code||6!==t[1].code&&273!==t[1].code)},s.protocols=i,s.isName=function(e){return!!s.isMultiaddr(e)&&e.protos().some(function(e){return e.resolvable})},s.resolve=function(e,t){return s.isMultiaddr(e)&&s.isName(e)?t(new Error("not implemented yet")):t(new Error("not a valid name"))},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){var n=r(373) +return!(2!==t.length||4!==t[0].code&&41!==t[0].code||6!==t[1].code&&273!==t[1].code)},s.protocols=i,s.isName=function(e){return!!s.isMultiaddr(e)&&e.protos().some(function(e){return e.resolvable})},s.resolve=function(e,t){return s.isMultiaddr(e)&&s.isName(e)?t(new Error("not implemented yet")):t(new Error("not a valid name"))},e.exports=s}).call(this,r(0).Buffer)},function(e,t,r){var n=r(376) function i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))} return t.called=!1,t}function o(e){var t=function t(){if(t.called)throw new Error(t.onceError) return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`" @@ -7252,10 +7233,10 @@ for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^r return u==l?0:u>l^r?1:-1}function S(e,t,r,n){if(er||e!==c(e))throw Error(f+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function E(e){var t=e.c.length-1 return b(e.e/p)==t&&e.c[t]%2!=0}function k(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,r){var n,i if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else tj?g.c=g.e=null:e.ej?g.c=g.e=null:e.e=10;l/=10,u++);return void(u>j?g.c=g.e=null:(g.e=u,g.c=[e]))}y=String(e)}else{if(!s.test(y=String(e)))return o(g,y,f) g.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(l=y.search(/e/i))>0?(u<0&&(u=l),u+=+y.slice(l+1),y=y.substring(0,l)):u<0&&(u=y.length)}else{if(S(t,2,K.length,"Base"),10==t)return Y(g=new q(e),R+g.e+1,N) if(y=String(e),f="number"==typeof e){if(0*e!=0)return o(g,y,f,t) @@ -7264,29 +7245,29 @@ for(r=K.slice(0,t),u=l=0,d=y.length;l-1?y=y.replace(".",""):u=y.length}for(l=0;48===y.charCodeAt(l);l++);for(d=y.length;48===y.charCodeAt(--d););if(y=y.slice(l,++d)){if(d-=l,f&&q.DEBUG&&d>15&&(e>m||e!==c(e)))throw Error(h+g.s*e) if((u=u-l-1)>j)g.c=g.e=null -else if(u=D)?k(u,a):x(u,a,"0") +if(i=e.c[0],a=e.e,null==t)u=w(e.c),u=1==n||2==n&&(a<=L||a>=B)?k(u,a):x(u,a,"0") else if(o=(e=Y(new q(e),t,r)).e,s=(u=w(e.c)).length,1==n||2==n&&(t<=o||o<=L)){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 W(e,t){for(var r,n=1,i=new q(e[0]);n=10;i/=10,n++);return(r=n+r*p-1)>j?e.c=e.e=null:r=10;i/=10,n++);return(r=n+r*p-1)>j?e.c=e.e=null:r=10;s/=10,i++);if((o=t-i)<0)o+=p,a=t,h=(u=m[f=0])/g[i-a-1]%10|0 else if((f=l((o+1)/p))>=m.length){if(!n)break e for(;m.length<=f;m.push(0));u=h=0,i=1,a=(o%=p)-p+1}else{for(u=s=m[f],i=1;s>=10;s/=10,i++);h=(a=(o%=p)-p+i)<0?0:u/g[i-a-1]%10|0}if(n=n||t<0||null!=m[f+1]||(a<0?u:u%g[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?u/g[i-a]:0:m[f-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=g[(p-t%p)%p],e.e=-t||0):m[0]=e.e=0,e if(0==o?(m.length=f,s=1,f--):(m.length=f+1,s=g[p-o],m[f]=a>0?c(u/g[i-a]%g[a])*s:0),n)for(;;){if(0==f){for(o=1,a=m[0];a>=10;a/=10,o++);for(a=m[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,m[0]==d&&(m[0]=1)) break}if(m[f]+=s,m[f]!=d)break -m[f--]=0,s=1}for(o=m.length;0===m[--o];m.pop());}e.e>j?e.c=e.e=null:e.e=D?k(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,r +m[f--]=0,s=1}for(o=m.length;0===m[--o];m.pop());}e.e>j?e.c=e.e=null:e.e=B?k(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,r if(null!=e){if("object"!=i(e))throw Error(f+"Object expected: "+e) -if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(S(r=e[t],0,v,t),R=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(S(r=e[t],0,8,t),N=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(S(r[0],-v,0,t),S(r[1],0,v,t),L=r[0],D=r[1]):(S(r,-v,v,t),L=-(D=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)S(r[0],-v,-1,t),S(r[1],1,v,t),B=r[0],j=r[1] +if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(S(r=e[t],0,v,t),R=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(S(r=e[t],0,8,t),N=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(S(r[0],-v,0,t),S(r[1],0,v,t),L=r[0],B=r[1]):(S(r,-v,v,t),L=-(B=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)S(r[0],-v,-1,t),S(r[1],1,v,t),D=r[0],j=r[1] else{if(S(r,-v,v,t),!r)throw Error(f+t+" cannot be zero: "+r) -B=-(j=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(f+t+" not true or false: "+r) +D=-(j=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(f+t+" not true or false: "+r) if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!r,Error(f+"crypto unavailable") F=r}else F=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(S(r=e[t],0,9,t),U=r),e.hasOwnProperty(t="POW_PRECISION")&&(S(r=e[t],0,v,t),z=r),e.hasOwnProperty(t="FORMAT")){if("object"!=i(r=e[t]))throw Error(f+t+" not an object: "+r) H=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r) -K=r}}return{DECIMAL_PLACES:R,ROUNDING_MODE:N,EXPONENTIAL_AT:[L,D],RANGE:[B,j],CRYPTO:F,MODULO_MODE:U,POW_PRECISION:z,FORMAT:H,ALPHABET:K}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1 +K=r}}return{DECIMAL_PLACES:R,ROUNDING_MODE:N,EXPONENTIAL_AT:[L,B],RANGE:[D,j],CRYPTO:F,MODULO_MODE:U,POW_PRECISION:z,FORMAT:H,ALPHABET:K}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1 if(!q.DEBUG)return!0 var t,r,n=e.c,i=e.e,o=e.s e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-v&&i<=v&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0 @@ -7309,18 +7290,18 @@ return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o if(r!=n)o=r>n?1:-1 else for(i=o=0;it[i]?1:-1 break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,l,f,h,m,y,g,v,w,_,S,E,k,x,A,M,T,C=n.s==i.s?1:-1,I=n.c,O=i.c +for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var u,l,f,h,m,y,g,v,w,_,S,E,k,x,M,A,T,C=n.s==i.s?1:-1,I=n.c,O=i.c if(!(I&&I[0]&&O&&O[0]))return new q(n.s&&i.s&&(I?!O||I[0]!=O[0]:O)?I&&0==I[0]||!O?0*C:C/0:NaN) for(w=(v=new q(C)).c=[],C=o+(l=n.e-i.e)+1,s||(s=d,l=b(n.e/p)-b(i.e/p),C=C/p|0),f=0;O[f]==(I[f]||0);f++);if(O[f]>(I[f]||0)&&l--,C<0)w.push(1),h=!0 -else{for(x=I.length,M=O.length,f=0,C+=2,(m=c(s/(O[0]+1)))>1&&(O=e(O,m,s),I=e(I,m,s),M=O.length,x=I.length),k=M,S=(_=I.slice(0,M)).length;S=s/2&&A++ -do{if(m=0,(u=t(O,_,M,S))<0){if(E=_[0],M!=S&&(E=E*s+(_[1]||0)),(m=c(E/A))>1)for(m>=s&&(m=s-1),g=(y=e(O,m,s)).length,S=_.length;1==t(y,_,g,S);)m--,r(y,M1&&(O=e(O,m,s),I=e(I,m,s),A=O.length,x=I.length),k=A,S=(_=I.slice(0,A)).length;S=s/2&&M++ +do{if(m=0,(u=t(O,_,A,S))<0){if(E=_[0],A!=S&&(E=E*s+(_[1]||0)),(m=c(E/M))>1)for(m>=s&&(m=s-1),g=(y=e(O,m,s)).length,S=_.length;1==t(y,_,g,S);)m--,r(y,A=10;C/=10,f++);Y(v,o+(v.e=f+l*p-1)+1,a,h)}else v.e=l,v.r=+h -return v}}(),A=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,T=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,r,n){var i,o=r?t:t.replace(I,"") +return v}}(),M=/^(-?)0([xbo])(?=\w[\w.]*$)/i,A=/^([^.]+)\.$/,T=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,r,n){var i,o=r?t:t.replace(I,"") if(C.test(o))e.s=isNaN(o)?null:o<0?-1:1 -else{if(!r&&(o=o.replace(A,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(M,"$1").replace(T,"0.$1")),t!=o))return new q(o,i) +else{if(!r&&(o=o.replace(M,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(A,"$1").replace(T,"0.$1")),t!=o))return new q(o,i) if(q.DEBUG)throw Error(f+"Not a"+(n?" base "+n:"")+" number: "+t) e.s=null}e.c=e.e=null},O.absoluteValue=O.abs=function(){var e=new q(this) return e.s<0&&(e.s=1),e},O.comparedTo=function(e,t){return _(this,new q(e,t))},O.decimalPlaces=O.dp=function(e,t){var r,n,i,o=this @@ -7369,8 +7350,8 @@ if(null!=e&&(!(u=new q(e)).isInteger()&&(u.c||1!==u.s)||u.lt(P)))throw Error(f+" if(!v)return new q(g) for(t=new q(P),c=n=new q(P),i=l=new q(P),m=w(v),a=t.e=m.length-g.e-1,t.c[0]=y[(s=a%p)<0?p+s:s],e=!e||u.comparedTo(t)>0?a>0?t:c:u,s=j,j=1/0,u=new q(m),l.c[0]=0;h=r(u,t,0,1),1!=(o=n.plus(h.times(i))).comparedTo(e);)n=i,i=o,c=l.plus(h.times(o=c)),l=o,t=u.minus(h.times(o=t)),u=o return o=r(e.minus(n),i,0,1),l=l.plus(o.times(c)),n=n.plus(o.times(i)),l.s=c.s=g.s,d=r(c,i,a*=2,N).minus(g).abs().comparedTo(r(l,n,a,N).minus(g).abs())<1?[c,i]:[l,n],j=s,d},O.toNumber=function(){return+Z(this)},O.toPrecision=function(e,t){return null!=e&&S(e,1,v),V(this,e,t,2)},O.toString=function(e){var t,r=this,i=r.s,o=r.e -return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=L||o>=D?k(w(r.c),o):x(w(r.c),o,"0"):10===e?t=x(w((r=Y(new q(r),R+o+1,N)).c),r.e,"0"):(S(e,2,K.length,"Base"),t=n(x(w(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},O.valueOf=O.toJSON=function(){return Z(this)},O._isBigNumber=!0,u&&(O[Symbol.toStringTag]="BigNumber",O[Symbol.for("nodejs.util.inspect.custom")]=O.valueOf),null!=t&&q.set(t),q}()).default=a.BigNumber=a,void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){var n=r(249) -e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){"use strict" +return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=L||o>=B?k(w(r.c),o):x(w(r.c),o,"0"):10===e?t=x(w((r=Y(new q(r),R+o+1,N)).c),r.e,"0"):(S(e,2,K.length,"Base"),t=n(x(w(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},O.valueOf=O.toJSON=function(){return Z(this)},O._isBigNumber=!0,u&&(O[Symbol.toStringTag]="BigNumber",O[Symbol.for("nodejs.util.inspect.custom")]=O.valueOf),null!=t&&q.set(t),q}()).default=a.BigNumber=a,void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){var n=r(252) +e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 if(Reflect.construct.sham)return!1 if("function"==typeof Proxy)return!0 @@ -7392,7 +7373,7 @@ return o&&!o[s]&&Object.defineProperty(o,s,{value:!0}),o})[r] return u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Object.defineProperty(u.prototype,Symbol.toStringTag,{get:function(){return r}}),u["is".concat(r)]=function(e){return!(!e||!e[s])},u}},function(e,t,r){"use strict" var n=r(15),i=r(52) e.exports=function(e,t){n(e,i(function(e){return t(null,e)}),function(e){e&&t(e)})}},function(e,t,r){"use strict";(function(n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r")}},{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({name:this.name,size:this.size,cid:this._cid.toBaseEncodedString()})),Object.assign({},this._json)}},{key:"name",get:function(){return this._name},set:function(e){throw new Error("Can't set property: 'name' is immutable")}},{key:"nameAsBuffer",get:function(){return null!==this._nameBuf?this._nameBuf:(this._nameBuf=n.from(this._name),this._nameBuf)}},{key:"size",get:function(){return this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}},{key:"cid",get:function(){return this._cid},set:function(e){throw new Error("Can't set property: 'cid' is immutable")}}])&&i(t.prototype,r),e}();(t=e.exports=s(u,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})).create=r(504),t.util=r(505)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(254);(t=e.exports=a).encode=function(e,t){var r=s(e) +n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(5),a=r(65),s=r(23),u=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(n,"A link requires a cid to point to"),this._name=t||"",this._nameBuf=null,this._size=r,this._cid=new o(n)}var t,r +return t=e,(r=[{key:"toString",value:function(){return"DAGLink <".concat(this._cid.toBaseEncodedString(),' - name: "').concat(this.name,'", size: ').concat(this.size,">")}},{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({name:this.name,size:this.size,cid:this._cid.toBaseEncodedString()})),Object.assign({},this._json)}},{key:"name",get:function(){return this._name},set:function(e){throw new Error("Can't set property: 'name' is immutable")}},{key:"nameAsBuffer",get:function(){return null!==this._nameBuf?this._nameBuf:(this._nameBuf=n.from(this._name),this._nameBuf)}},{key:"size",get:function(){return this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}},{key:"cid",get:function(){return this._cid},set:function(e){throw new Error("Can't set property: 'cid' is immutable")}}])&&i(t.prototype,r),e}();(t=e.exports=s(u,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})).create=r(507),t.util=r(508)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(257);(t=e.exports=a).encode=function(e,t){var r=s(e) return a(r.name,n.from(r.encode(t)))},t.decode=function(e){n.isBuffer(e)&&(e=e.toString()) var t=e.substring(0,1) "string"==typeof(e=e.substring(1,e.length))&&(e=n.from(e)) @@ -7453,8 +7434,8 @@ t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemente return t}}).call(this,r(0).Buffer)},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId) var t=e._idleTimeout -t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(285),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){var n=r(8) -e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(298) +t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(288),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){var n=r(8) +e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(e,t,r){"use strict";(function(t){var n=r(12),i=r(301) function o(e,t,r,i){if("function"==typeof r&&(i=r,r=void 0),!i)throw new Error("Missing callback") o.digest(e,t,r,function(e,o){if(e)return i(e) i(null,n.encode(o,t,r))})}e.exports=o,o.Buffer=t,o.multihash=n,o.digest=function(e,t,r,n){if("function"==typeof r&&(n=r,r=void 0),!n)throw new Error("Missing callback") @@ -7489,7 +7470,7 @@ s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return for(var r in e)t.push(r) return t} e.exports=l -var i=r(160),o=r(164) +var i=r(161),o=r(165) r(2)(l,i) for(var a=n(o.prototype),s=0;s>4]+u[15&n])}return t.join("")}}),f={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],_=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],S=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],x=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] -function M(e){for(var t=[],r=0;r>4]+u[15&n])}return t.join("")}}),f={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],_=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],S=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],x=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],M=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] +function A(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t] for(var a,s=0,u=i;u>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^h[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24,t=i/2+1;t>2,c=u%4,this._Ke[l][c]=o[t],this._Kd[e-l][c]=o[t++],u++}for(var l=1;l>24&255]^k[a>>16&255]^x[a>>8&255]^A[255&a]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") -for(var t=this._Ke.length-1,r=[0,0,0,0],n=M(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] +for(a=o[i/2-1],o[i/2]^=d[255&a]^d[a>>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24,t=i/2+1;t>2,c=u%4,this._Ke[l][c]=o[t],this._Kd[e-l][c]=o[t++],u++}for(var l=1;l>24&255]^k[a>>16&255]^x[a>>8&255]^M[255&a]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") +for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] for(var o=1;o>24&255]^y[n[(i+1)%4]>>16&255]^g[n[(i+2)%4]>>8&255]^v[255&n[(i+3)%4]]^this._Ke[o][i] n=r.slice()}var s,u=a(16) for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+3)%4]]^s) return u},T.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)") -for(var t=this._Kd.length-1,r=[0,0,0,0],n=M(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] +for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] for(var o=1;o>24&255]^w[n[(i+3)%4]>>16&255]^_[n[(i+2)%4]>>8&255]^S[255&n[(i+1)%4]]^this._Kd[o][i] n=r.slice()}var s,u=a(16) for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(p[n[i]>>24&255]^s>>24),u[4*i+1]=255&(p[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(p[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(p[255&n[(i+1)%4]]^s) @@ -7962,7 +7943,7 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],A=8191&x,M=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,D=N>>>13,B=0|a[9],j=8191&B,F=B>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,Q=Z>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,h=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 var ye=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 l=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) @@ -7970,38 +7951,38 @@ var ge=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0 var ve=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,G)|0))<<13)|0 l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0 -var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,J)|0))<<13)|0 -l=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0 +var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,J)|0))<<13)|0 +l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0 var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0 -l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 +l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 var _e=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 var Se=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Q)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 var Ee=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0 -l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 +l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 var ke=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var xe=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 -var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Q)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Me=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 -l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 +l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 +var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Ae=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 +l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(F,J)|0,o=Math.imul(F,X),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,he)|0 +l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 var Ce=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(k,pe)|0))<<13)|0 -l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 -var Ie=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0 -l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 +l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 +var Ie=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(A,pe)|0))<<13)|0 +l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 var Oe=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0 -l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0 var Pe=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0 l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,fe),i=(i=Math.imul(j,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) -var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(D,pe)|0))<<13)|0 -l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 +var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(B,pe)|0))<<13)|0 +l=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 var Ne=(l+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0 -return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Ae,u[11]=Me,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} +return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>1]:A<0&&(x=u[v][-A-1>>1].neg()),_="affine"===x.type?_.mixedAdd(x):_.add(x))}}for(f=0;f>1]:M<0&&(x=u[v][-M-1>>1].neg()),_="affine"===x.type?_.mixedAdd(x):_.add(x))}}for(f=0;f>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":38}],38:[function(e,t,r){"use strict" @@ -8513,8 +8494,8 @@ for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 s%r==0&&E(n)}return o&&(e=s<<2,t=n[a],0>8&255),2>16&255)),u} -var E=function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,A,M,T,C,I,O,P,R,N,L,D,B,j,F,U,z,H,K,q,V,W,G,Y,Z,J,Q,X,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce -for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~g&b,e[1]=y^~v&w,e[10]=x^~M&C,e[11]=A^~T&I,e[20]=L^~B&F,e[21]=D^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~b&_,e[3]=v^~w&S,e[12]=M^~C&O,e[13]=T^~I&P,e[22]=B^~F&z,e[23]=j^~U&H,e[32]=G^~Z&Q,e[33]=Y^~J&X,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~Q&$,e[35]=J^~X&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&m,e[7]=S^~k&y,e[16]=O^~R&x,e[17]=P^~N&A,e[26]=z^~K&L,e[27]=H^~q&D,e[36]=Q^~$&V,e[37]=X^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~m&g,e[9]=k^~y&v,e[18]=R^~x&M,e[19]=N^~A&T,e[28]=K^~L&B,e[29]=q^~D&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=s[n],e[1]^=s[n+1]} +var E=function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,M,A,T,C,I,O,P,R,N,L,B,D,j,F,U,z,H,K,q,V,W,G,Y,Z,J,X,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,M=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~g&b,e[1]=y^~v&w,e[10]=x^~A&C,e[11]=M^~T&I,e[20]=L^~D&F,e[21]=B^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~b&_,e[3]=v^~w&S,e[12]=A^~C&O,e[13]=T^~I&P,e[22]=D^~F&z,e[23]=j^~U&H,e[32]=G^~Z&X,e[33]=Y^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~X&$,e[35]=J^~Q&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&m,e[7]=S^~k&y,e[16]=O^~R&x,e[17]=P^~N&M,e[26]=z^~K&L,e[27]=H^~q&B,e[36]=X^~$&V,e[37]=Q^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~m&g,e[9]=k^~y&v,e[18]=R^~x&A,e[19]=N^~M&T,e[28]=K^~L&D,e[29]=q^~B&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=s[n],e[1]^=s[n+1]} if(i)t.exports=m else for(g=0;g>0&255),m.push(y[r]>>8&255),m.push(y[r]>>16&255),m.push(y[r]>>24&255) @@ -8622,22 +8603,22 @@ void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}fu var r=[] return t.forEach(function(t){r.push(e(t))}),r}}function E(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),32===l.hexDataLength(e))?e.toLowerCase():(v.throwError("invalid hash",v.INVALID_ARGUMENT,{arg:"hash",value:e}),null)}function k(e){return s.bigNumberify(e).toNumber()}function x(e){if(!l.isHexString(e))throw new Error("invalid uint256") for(;e.length<66;)e="0x0"+e.substring(2) -return e}function A(e){if(null==e)return"latest" +return e}function M(e){if(null==e)return"latest" if("earliest"===e)return"0x0" if("latest"===e||"pending"===e)return e if("number"==typeof e)return l.hexStripZeros(l.hexlify(e)) if(l.isHexString(e))return l.hexStripZeros(e) -throw new Error("invalid blockTag")}var M={hash:E,blockHash:_(E,null),blockNumber:_(k,null),transactionIndex:_(k,null),confirmations:_(k,null),from:a.getAddress,gasPrice:s.bigNumberify,gasLimit:s.bigNumberify,to:_(a.getAddress,null),value:s.bigNumberify,nonce:k,data:l.hexlify,r:_(x),s:_(x),v:_(k),creates:_(a.getAddress,null),raw:_(l.hexlify)} +throw new Error("invalid blockTag")}var A={hash:E,blockHash:_(E,null),blockNumber:_(k,null),transactionIndex:_(k,null),confirmations:_(k,null),from:a.getAddress,gasPrice:s.bigNumberify,gasLimit:s.bigNumberify,to:_(a.getAddress,null),value:s.bigNumberify,nonce:k,data:l.hexlify,r:_(x),s:_(x),v:_(k),creates:_(a.getAddress,null),raw:_(l.hexlify)} function T(e){if(null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&s.bigNumberify(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=a.getContractAddress(e)),!e.raw&&e.v&&e.r&&e.s){var t=[l.stripZeros(l.hexlify(e.nonce)),l.stripZeros(l.hexlify(e.gasPrice)),l.stripZeros(l.hexlify(e.gasLimit)),e.to||"0x",l.stripZeros(l.hexlify(e.value||"0x")),l.hexlify(e.data||"0x"),l.stripZeros(l.hexlify(e.v||"0x")),l.stripZeros(l.hexlify(e.r)),l.stripZeros(l.hexlify(e.s))] -e.raw=p.encode(t)}var r=w(M,e),n=e.networkId +e.raw=p.encode(t)}var r=w(A,e),n=e.networkId return null!=e.chainId&&null==n&&null==r.v&&(n=e.chainId),l.isHexString(n)&&(n=s.bigNumberify(n).toNumber()),"number"!=typeof n&&null!=r.v&&((n=(r.v-35)/2)<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),r.networkId=n,r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}var C={hash:E,parentHash:E,number:k,timestamp:k,nonce:_(l.hexlify),difficulty:function(e){var t=s.bigNumberify(e) try{return t.toNumber()}catch(e){}return null},gasLimit:s.bigNumberify,gasUsed:s.bigNumberify,miner:a.getAddress,extraData:l.hexlify,transactions:_(S(E))},I=d.shallowCopy(C) function O(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),w(t?I:C,e)}I.transactions=_(S(T)) var P={from:_(a.getAddress),nonce:_(k),gasLimit:_(s.bigNumberify),gasPrice:_(s.bigNumberify),to:_(a.getAddress),value:_(s.bigNumberify),data:_(l.hexlify)} function R(e){return w(P,e)}var N={transactionLogIndex:_(k),transactionIndex:k,blockNumber:k,transactionHash:E,address:a.getAddress,topics:S(E),data:l.hexlify,logIndex:k,blockHash:E},L={to:_(a.getAddress,null),from:_(a.getAddress,null),contractAddress:_(a.getAddress,null),transactionIndex:k,root:_(E),gasUsed:s.bigNumberify,logsBloom:_(l.hexlify),blockHash:E,transactionHash:E,logs:S(function(e){return w(N,e)}),blockNumber:k,confirmations:_(k,null),cumulativeGasUsed:s.bigNumberify,status:_(k)} -function D(e){return Array.isArray(e)?e.forEach(function(e){D(e)}):null!=e&&E(e),e}var B,j={fromBlock:_(A,void 0),toBlock:_(A,void 0),address:_(a.getAddress,void 0),topics:_(D,void 0)},F={blockHash:_(E,void 0),address:_(a.getAddress,void 0),topics:_(D,void 0)},U={blockNumber:_(k),blockHash:_(E),transactionIndex:k,removed:_(function(e){if("boolean"==typeof e)return e +function B(e){return Array.isArray(e)?e.forEach(function(e){B(e)}):null!=e&&E(e),e}var D,j={fromBlock:_(M,void 0),toBlock:_(M,void 0),address:_(a.getAddress,void 0),topics:_(B,void 0)},F={blockHash:_(E,void 0),address:_(a.getAddress,void 0),topics:_(B,void 0)},U={blockNumber:_(k),blockHash:_(E),transactionIndex:k,removed:_(function(e){if("boolean"==typeof e)return e if("string"==typeof e){if("true"===e)return!0 -if("false"===e)return!1}throw new Error("invaid boolean - "+e)}),address:a.getAddress,data:(B=l.hexlify,function(e){return e?B(e):"0x"}),topics:S(E),transactionHash:E,logIndex:k} +if("false"===e)return!1}throw new Error("invaid boolean - "+e)}),address:a.getAddress,data:(D=l.hexlify,function(e){return e?D(e):"0x"}),topics:S(E),transactionHash:E,logIndex:k} function z(e){return w(U,e)}function H(e){return e.map(function(e){return"string"==typeof e?e:Array.isArray(e)?(e.forEach(function(e){null!==e&&32!==l.hexDataLength(e)&&v.throwError("invalid topic",v.INVALID_ARGUMENT,{argument:"topic",value:e})}),e.join(",")):null===e?"":v.throwError("invalid topic value",v.INVALID_ARGUMENT,{argument:"topic",value:e})}).join("&")}function K(e){if("string"==typeof e){if(20===l.hexDataLength(e))return"address:"+a.getAddress(e) if(e=e.toLowerCase(),32===l.hexDataLength(e))return"tx:"+e if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter::"+H(e) @@ -8671,16 +8652,16 @@ if(r!=t)throw new Error("invalid response - getBlockNumber") return e._setFastBlockNumber(r),r})})},t.prototype.getGasPrice=function(){var e=this return this.ready.then(function(){return e.perform("getGasPrice",{}).then(function(e){return s.bigNumberify(e)})})},t.prototype.getBalance=function(e,t){var r=this return this.ready.then(function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then(function(e){var t=e.addressOrName,n=e.blockTag -return r._getAddress(t).then(function(e){var t={address:e,blockTag:A(n)} +return r._getAddress(t).then(function(e){var t={address:e,blockTag:M(n)} return r.perform("getBalance",t).then(function(e){return s.bigNumberify(e)})})})})},t.prototype.getTransactionCount=function(e,t){var r=this return this.ready.then(function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then(function(e){var t=e.addressOrName,n=e.blockTag -return r._getAddress(t).then(function(e){var t={address:e,blockTag:A(n)} +return r._getAddress(t).then(function(e){var t={address:e,blockTag:M(n)} return r.perform("getTransactionCount",t).then(function(e){return s.bigNumberify(e).toNumber()})})})})},t.prototype.getCode=function(e,t){var r=this return this.ready.then(function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then(function(e){var t=e.addressOrName,n=e.blockTag -return r._getAddress(t).then(function(e){var t={address:e,blockTag:A(n)} +return r._getAddress(t).then(function(e){var t={address:e,blockTag:M(n)} return r.perform("getCode",t).then(function(e){return l.hexlify(e)})})})})},t.prototype.getStorageAt=function(e,t,r){var n=this return this.ready.then(function(){return d.resolveProperties({addressOrName:e,position:t,blockTag:r}).then(function(e){var t=e.addressOrName,r=e.position,i=e.blockTag -return n._getAddress(t).then(function(e){var t={address:e,blockTag:A(i),position:l.hexStripZeros(l.hexlify(r))} +return n._getAddress(t).then(function(e){var t={address:e,blockTag:M(i),position:l.hexStripZeros(l.hexlify(r))} return n.perform("getStorageAt",t).then(function(e){return l.hexlify(e)})})})})},t.prototype.sendTransaction=function(e){var t=this return this.ready.then(function(){return d.resolveProperties({signedTransaction:e}).then(function(e){var r=e.signedTransaction,n={signedTransaction:l.hexlify(r)} return t.perform("sendTransaction",n).then(function(e){return t._wrapTransaction(m.parse(r),e)},function(e){throw e.transaction=m.parse(r),e.transaction.hash&&(e.transactionHash=e.transaction.hash),e})})})},t.prototype._wrapTransaction=function(e,t){var r=this @@ -8688,13 +8669,13 @@ if(null!=t&&32!==l.hexDataLength(t))throw new Error("invalid response - sendTran var n=e return null!=t&&e.hash!==t&&v.throwError("Transaction hash mismatch from Provider.sendTransaction.",v.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=function(t){return 0!==t&&(r._emitted["t:"+e.hash]="pending"),r.waitForTransaction(e.hash,t).then(function(n){return null==n&&0===t?null:(r._emitted["t:"+e.hash]=n.blockNumber,0===n.status&&v.throwError("transaction failed",v.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e}),n)})},n},t.prototype.call=function(e,t){var r=this,n=d.shallowCopy(e) return this.ready.then(function(){return d.resolveProperties({blockTag:t,tx:n}).then(function(e){var t=e.blockTag,n=e.tx -return r._resolveNames(n,["to","from"]).then(function(e){var n={blockTag:A(t),transaction:R(e)} +return r._resolveNames(n,["to","from"]).then(function(e){var n={blockTag:M(t),transaction:R(e)} return r.perform("call",n).then(function(e){return l.hexlify(e)})})})})},t.prototype.estimateGas=function(e){var t=this,r={to:e.to,from:e.from,data:e.data,gasPrice:e.gasPrice,value:e.value} return this.ready.then(function(){return d.resolveProperties(r).then(function(e){return t._resolveNames(e,["to","from"]).then(function(e){var r={transaction:R(e)} return t.perform("estimateGas",r).then(function(e){return s.bigNumberify(e)})})})})},t.prototype.getBlock=function(e,t){var r=this return this.ready.then(function(){return d.resolveProperties({blockHashOrBlockTag:e}).then(function(e){var n=e.blockHashOrBlockTag try{var i=l.hexlify(n) -if(32===l.hexDataLength(i))return g.poll(function(){return r.perform("getBlock",{blockHash:i,includeTransactions:!!t}).then(function(e){return null==e?null==r._emitted["b:"+i]?null:void 0:O(e,t)})},{onceBlock:r})}catch(e){}try{var o=-128,a=A(n) +if(32===l.hexDataLength(i))return g.poll(function(){return r.perform("getBlock",{blockHash:i,includeTransactions:!!t}).then(function(e){return null==e?null==r._emitted["b:"+i]?null:void 0:O(e,t)})},{onceBlock:r})}catch(e){}try{var o=-128,a=M(n) return l.isHexString(a)&&(o=parseInt(a.substring(2),16)),g.poll(function(){return r.perform("getBlock",{blockTag:a,includeTransactions:!!t}).then(function(e){if(null==e){if(o<=r._emitted.block)return return null}return O(e,t)})},{onceBlock:r})}catch(e){}throw new Error("invalid block hash or block tag")})})},t.prototype.getTransaction=function(e){var r=this return this.ready.then(function(){return d.resolveProperties({transactionHash:e}).then(function(e){var n=e.transactionHash,i={transactionHash:E(n,!0)} @@ -8979,15 +8960,15 @@ if(t.gt(r))throw new Error("out-of-bounds") if(r=r.add(a.One).mul(a.NegativeOne),t.lt(r))throw new Error("out-of-bounds")}else if(t.lt(a.Zero)||t.gt(a.MaxUint256.maskn(8*this.size)))throw new Error("out-of-bounds") return t=t.toTwos(8*this.size).maskn(8*this.size),this.signed&&(t=t.fromTwos(8*this.size).toTwos(256)),f.padZeros(f.arrayify(t),32)}catch(t){s.throwError("invalid number value",s.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:e})}return null},t.prototype.decode=function(e,t){e.length>>2,t.words[2]=(63&e[22])<<20|e[23]<<12|e[24]<<4|e[25]>>>4,t.words[3]=(255&e[19])<<18|e[20]<<10|e[21]<<2|e[22]>>>6,t.words[4]=(3&e[15])<<24|e[16]<<16|e[17]<<8|e[18],t.words[5]=(15&e[12])<<22|e[13]<<14|e[14]<<6|e[15]>>>2,t.words[6]=(63&e[9])<<20|e[10]<<12|e[11]<<4|e[12]>>>4,t.words[7]=(255&e[6])<<18|e[7]<<10|e[8]<<2|e[9]>>>6,t.words[8]=(3&e[2])<<24|e[3]<<16|e[4]<<8|e[5],t.words[9]=e[0]<<14|e[1]<<6|e[2]>>>2,t.length=10,t.strip()},o.prototype.toBuffer=function(){for(var e=this.words,t=this.length;t<10;++t)e[t]=0 -return n.from([e[9]>>>14&255,e[9]>>>6&255,(63&e[9])<<2|e[8]>>>24&3,e[8]>>>16&255,e[8]>>>8&255,255&e[8],e[7]>>>18&255,e[7]>>>10&255,e[7]>>>2&255,(3&e[7])<<6|e[6]>>>20&63,e[6]>>>12&255,e[6]>>>4&255,(15&e[6])<<4|e[5]>>>22&15,e[5]>>>14&255,e[5]>>>6&255,(63&e[5])<<2|e[4]>>>24&3,e[4]>>>16&255,e[4]>>>8&255,255&e[4],e[3]>>>18&255,e[3]>>>10&255,e[3]>>>2&255,(3&e[3])<<6|e[2]>>>20&63,e[2]>>>12&255,e[2]>>>4&255,(15&e[2])<<4|e[1]>>>22&15,e[1]>>>14&255,e[1]>>>6&255,(63&e[1])<<2|e[0]>>>24&3,e[0]>>>16&255,e[0]>>>8&255,255&e[0]])},o.prototype.clone=function(){var e=new o -e.words=new Array(this.length) +return n},e.exports=t.default},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" +function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t +var r=function(){} +r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e +this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s +"object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 +try{s=r(317).Buffer}catch(e){}function u(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) +if("object"===t(e))return this._initArray(e,r,n) +"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) +var o=0 +"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(e,o):this._parseBase(e,r,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this +this.length=Math.ceil(e.length/3),this.words=new Array(this.length) +for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) +for(var r=0;r=t;r-=6)i=u(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++) +r+6!==t&&(i=u(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 +for(var n=0,i=1;i<=67108863;i*=t)n++ +n--,i=i/t|0 +for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0==(0|this.words[this.length-1]);)this.length-- -return this},o.prototype.normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.ucmp=function(e){if(this.length!==e.length)return this.length>e.length?1:-1 -for(var t=this.length-1;t>=0;--t)if(this.words[t]!==e.words[t])return this.words[t]>e.words[t]?1:-1 -return 0},o.prototype.gtOne=function(){return this.length>1||this.words[0]>1},o.prototype.isOverflow=function(){return this.ucmp(o.n)>=0},o.prototype.isHigh=function(){return 1===this.ucmp(o.nh)},o.prototype.bitLengthGT256=function(){return this.length>10||10===this.length&&this.words[9]>4194303},o.prototype.iuaddn=function(e){this.words[0]+=e -for(var t=0;this.words[t]>67108863&&te.length?(t=this,r=e):(t=e,r=this) -for(var n=0,i=0;n>>26}for(;0!==i&&n>>26 -if(this.length=t.length,0!==i)this.words[this.length++]=i -else if(t!==this)for(;n0?(t=this,r=e):(t=e,r=this) -for(var i=0,o=0;i>26,this.words[i]=67108863&a}for(;0!==o&&i>26,this.words[i]=67108863&a -if(0===o&&i>>26,u=67108863&i,l=Math.max(0,o-e.length+1),c=Math.min(o,t.length-1);l<=c;l++){var f=o-l,h=e.words[f]*t.words[l]+u -s+=h/67108864|0,u=67108863&h}r.words[o]=u,i=s}return 0!==i&&(r.words[r.length++]=i),r.strip()},o.umulTo10x10=Math.imul?i.umulTo10x10:o.umulTo,o.umulnTo=function(e,t,r){if(0===t)return r.words=[0],r.length=1,r -for(var n=0,i=0;n0?(r.words[n]=i,r.length=e.length+1):r.length=e.length,r},o.prototype.umul=function(e){var t=new o -return t.words=new Array(this.length+e.length),10===this.length&&10===e.length?o.umulTo10x10(this,e,t):1===this.length?o.umulnTo(e,this.words[0],t):1===e.length?o.umulnTo(this,e.words[0],t):o.umulTo(this,e,t)},o.prototype.isplit=function(e){e.length=Math.min(this.length,9) -for(var t=0;t>>22,r=n}return r>>>=22,this.words[t-10]=r,0===r&&this.length>10?this.length-=10:this.length-=9,this},o.prototype.fireduce=function(){return this.isOverflow()&&this.isub(o.n),this},o.prototype.ureduce=function(){var e=this.clone().isplit(o.tmp).umul(o.nc).iadd(o.tmp) -return e.bitLengthGT256()&&(e=e.isplit(o.tmp).umul(o.nc).iadd(o.tmp)).bitLengthGT256()&&(e=e.isplit(o.tmp).umul(o.nc).iadd(o.tmp)),e.fireduce()},o.prototype.ishrn=function(e){for(var t=(1<=0;--n){var o=this.words[n] -this.words[n]=i<>>e,i=o&t}return this.length>1&&0===this.words[this.length-1]&&(this.length-=1),this},o.prototype.uinvm=function(){for(var e=this.clone(),t=o.n.clone(),r=o.fromNumber(1),n=o.fromNumber(0),i=o.fromNumber(0),a=o.fromNumber(1);e.isEven()&&t.isEven();){for(var s=1,u=1;0==(e.words[0]&u)&&0==(t.words[0]&u)&&s<26;++s,u<<=1);e.ishrn(s),t.ishrn(s)}for(var l=t.clone(),c=e.clone();!e.isZero();){for(var f=0,h=1;0==(e.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(e.ishrn(f);f-- >0;)(r.isOdd()||n.isOdd())&&(r.iadd(l),n.isub(c)),r.ishrn(1),n.ishrn(1) -for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.ishrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(c)),i.ishrn(1),a.ishrn(1) -e.ucmp(t)>=0?(e.isub(t),r.isub(i),n.isub(a)):(t.isub(e),i.isub(r),a.isub(n))}if(1===i.negative){i.negative=0 -var m=i.ureduce() -return m.negative^=1,m.normSign().iadd(o.n)}return i.ureduce()},o.prototype.imulK=function(){this.words[this.length]=0,this.words[this.length+1]=0,this.length+=2 -for(var e=0,t=0;e0?this.isub(o.p):this.strip(),this},o.prototype.redNeg=function(){return this.isZero()?o.fromNumber(0):o.p.sub(this)},o.prototype.redAdd=function(e){return this.clone().redIAdd(e)},o.prototype.redIAdd=function(e){return this.iadd(e),this.ucmp(o.p)>=0&&this.isub(o.p),this},o.prototype.redIAdd7=function(){return this.iuaddn(7),this.ucmp(o.p)>=0&&this.isub(o.p),this},o.prototype.redSub=function(e){return this.clone().redISub(e)},o.prototype.redISub=function(e){return this.isub(e),0!==this.negative&&this.iadd(o.p),this},o.prototype.redMul=function(e){return this.umul(e).redIReduce()},o.prototype.redSqr=function(){return this.umul(this).redIReduce()},o.prototype.redSqrt=function(){if(this.isZero())return this.clone() -for(var e=this.redSqr(),t=e.redSqr(),r=t.redSqr().redMul(t),n=r.redMul(e),i=n.redMul(this),o=i,a=0;a<54;++a)o=o.redSqr().redSqr().redSqr().redSqr().redMul(i) -for(o=o.redSqr().redSqr().redSqr().redSqr().redMul(n),a=0;a<5;++a)o=o.redSqr().redSqr().redSqr().redSqr().redMul(i) -return 0===(o=(o=o.redSqr().redSqr().redSqr().redSqr().redMul(r)).redSqr().redSqr().redSqr().redSqr().redSqr().redSqr().redMul(r)).redSqr().ucmp(this)?o:null},o.prototype.redInvm=function(){for(var e,t=this.clone(),r=o.p.clone(),n=o.fromNumber(1),i=o.fromNumber(0);t.gtOne()&&r.gtOne();){for(var a=0,s=1;0==(t.words[0]&s)&&a<26;++a,s<<=1);if(a>0)for(t.ishrn(a);a-- >0;)n.isOdd()&&n.iadd(o.p),n.ishrn(1) -for(var u=0,l=1;0==(r.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(r.ishrn(u);u-- >0;)i.isOdd()&&i.iadd(o.p),i.ishrn(1) -t.ucmp(r)>=0?(t.isub(r),n.isub(i)):(r.isub(t),i.isub(n))}return 0!==(e=1===t.length&&1===t.words[0]?n:i).negative&&e.iadd(o.p),0!==e.negative?(e.negative=0,e.redIReduce().redNeg()):e.redIReduce()},o.prototype.getNAF=function(e){for(var t=[],r=1<>1,o=this.clone();!o.isZero();){for(var a=0,s=1;0==(o.words[0]&s)&&a<26;++a,s<<=1)t.push(0) -if(0!==a)o.ishrn(a) -else{var u=o.words[0]&n -if(u>=i)t.push(i-u),o.iuaddn(u-i).ishrn(1) -else if(t.push(u),o.words[0]-=u,!o.isZero()){for(a=e-1;a>0;--a)t.push(0) -o.ishrn(e)}}}return t},o.prototype.inspect=function(){if(this.isZero())return"0" -for(var e=this.toBuffer().toString("hex"),t=0;"0"===e[t];++t);return e.slice(t)},o.n=o.fromBuffer(n.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex")),o.nh=o.n.clone().ishrn(1),o.nc=o.fromBuffer(n.from("000000000000000000000000000000014551231950B75FC4402DA1732FC9BEBF","hex")),o.p=o.fromBuffer(n.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","hex")),o.psn=o.p.sub(o.n),o.tmp=new o,o.tmp.words=new Array(10),o.fromNumber(1).words[3]=0,e.exports=o},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(e===t)return 0 -for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;l--)if(c[l]!==f[l])return!1 -for(l=c.length-1;l>=0;l--)if(!b(e[s=c[l]],t[s],r,n))return!1 -return!0}(e,t,r,s))}return r?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1 -if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e) -try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function S(e,t,r,n){var i -if("function"!=typeof t)throw new TypeError('"block" argument must be a function') -"string"==typeof r&&(n=r,r=null),i=function(e){var t -try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n) -var o="string"==typeof n,s=!e&&i&&!r -if((!e&&a.isError(i)&&o&&_(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!_(i,r)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0) -var t=e.stackStartFunction||g -if(Error.captureStackTrace)Error.captureStackTrace(this,t) -else{var r=new Error -if(r.stack){var n=r.stack,i=p(t),o=n.indexOf("\n"+i) -if(o>=0){var a=n.indexOf("\n",o+1) -n=n.substring(a+1)}this.stack=n}}},a.inherits(h.AssertionError,Error),h.fail=g,h.ok=v,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){b(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){b(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){b(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){S(!0,e,t,r)},h.doesNotThrow=function(e,t,r){S(!1,e,t,r)},h.ifError=function(e){if(e)throw e} -var E=Object.keys||function(e){var t=[] -for(var r in e)s.call(e,r)&&t.push(r) -return t}}).call(this,r(6))},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e -switch(e){case"%s":return String(n[r++]) -case"%d":return Number(n[r++]) -case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),f(n,e,n.depth)}function l(e,t){var r=u.styles[t] -return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function c(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e) -return v(i)||(i=f(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined") -if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'" -return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r) -if(o)return o -var a=Object.keys(r),s=function(e){var t={} -return a.forEach(function(e,r){t[e]=!0}),t}() -if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r) -if(0===a.length){if(k(r)){var u=r.name?": "+r.name:"" -return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp") -if(S(r))return e.stylize(Date.prototype.toString.call(r),"date") -if(E(r))return h(r)}var l,c="",_=!1,x=["{","}"] -return p(r)&&(_=!0,x=["[","]"]),k(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(l,c,x)):x[0]+c+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u -if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),T(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===x(e)}function _(e){return"object"===n(e)&&null!==e}function S(e){return _(e)&&"[object Date]"===x(e)}function E(e){return _(e)&&("[object Error]"===x(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid -s[r]=function(){var e=t.format.apply(t,arguments) -console.error("%s %d: %s",r,n,e)}}else s[r]=function(){} -return s[r]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=b,t.isRegExp=w,t.isObject=_,t.isDate=S,t.isError=E,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=r(362) -var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] -function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":") -return[e.getDate(),M[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(2),t._extend=function(e,t){if(!t||!_(t))return e -for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]] -return e} -var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0 -function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value") -r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function') -if(C&&e[C]){var t -if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function') -return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o")}},{key:"data",get:function(){return this._data},set:function(e){throw new Error("Can't set property: 'data' is immutable")}},{key:"links",get:function(){return this._links},set:function(e){throw new Error("Can't set property: 'links' is immutable")}},{key:"size",get:function(){return void 0===this._size&&(this._size=this.links.reduce(function(e,t){return e+t.size},this._serializedSize)),this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}}])&&i(t.prototype,r),e}();(t=e.exports=a(s,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})).create=r(69),t.clone=r(506),t.addLink=r(507),t.rmLink=r(508)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(502),i=r(70).serialize,o=r(71).linkSort,a=r(68),s=r(27) -e.exports=function(e,r,u){if("function"==typeof e?(u=e,e=void 0):"string"==typeof e&&(e=t.from(e)),"function"==typeof r&&(u=r,r=[]),!t.isBuffer(e))return u(new Error("Passed 'data' is not a buffer or a string!")) -r=r.map(function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)}),r=n(r,o),i({data:e,links:r},function(t,n){return t?u(t):u(null,new a(e,r,n.length))})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(5),o=r(59)(r(503)),a=r(214),s=r(27),u=r(68),l=r(31),c=r(66),f=r(91) -function h(e,t){var r,n=e.data,i=e.links,a=void 0===i?[]:i -!u.isDAGNode(e)&&a&&(a=a.map(function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)})) -try{r=o.PBNode.encode(function(e){var t={} -return e.data&&e.data.length>0?t.Data=e.data:t.Data=null,e.links&&e.links.length>0?t.Links=e.links.map(function(e){return{Hash:e.cid.buffer,Name:e.name,Tsize:e.size}}):t.Links=null,t}({data:n,links:a}))}catch(e){return t(e)}t(null,r)}(t=e.exports).serialize=h,t.deserialize=function(e,t){var r=o.PBNode.decode(e),i=r.Links.map(function(e){return new s(e.Name,e.Tsize,e.Hash)}),a=null==r.Data?n.alloc(0):r.Data -f(function(){return t(null,new u(a,i,e.length))})},t.cid=function(e,t,r){"function"==typeof t&&(r=t,t={}) -var o=(t=t||{}).hashAlg||a.defaultHashAlg,s=t.version -void 0===s&&(s="sha2-256"===o?0:1),c([function(t){if(n.isBuffer(e))return t(null,e) -h(e,t)},function(e,t){return l(e,o,t)},function(e,t){return t(null,new i(s,a.multicodec,e))}],r)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(27),o=r(70).cid;(t=e.exports).cloneData=function(e){var t -return e.data&&e.data.length>0?(t=n.alloc(e.data.length),e.data.copy(t)):t=n.alloc(0),t},t.cloneLinks=function(e){return e.links.slice()},t.linkSort=function(e,t){return n.compare(e.nameAsBuffer,t.nameAsBuffer)},t.toDAGLink=function(e,t,r){"function"==typeof t&&(r=t,t={}),o(e,t,function(n,o){if(n)return r(n) -r(null,new i(t.name||"",e.size,o))})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" -var n=r(20) -t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32),t.SHIFT16=Math.pow(2,16),t.MAX_SAFE_HIGH=2097151,t.NEG_ONE=new n(-1),t.TEN=new n(10),t.TWO=new n(2),t.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},,function(e,t){e.exports=function(e){console.warn(e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{} -return this.count.then(function(r){var n=l(r,t).map(function(t){return e.getById(t)}) -return Promise.all(n)})}},{key:"pinIpfsHashes",value:function(){var e=this -return this.count.then(function(t){var r=function(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);tt){var n=new Error("Too few bytes to parse DER.") -throw n.available=e.length(),n.remaining=t,n.requested=r,n}}o.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},o.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},o.create=function(e,t,r,n,a){if(i.util.isArray(n)){for(var s=[],u=0;ur){if(i.strict){var p=new Error("Too few bytes to read ASN.1 value.") -throw p.available=t.length(),p.remaining=r,p.requested=d,p}d=r}var m=32==(32&u) -if(m)if(f=[],void 0===d)for(;;){if(a(t,r,2),t.bytes(2)===String.fromCharCode(0,0)){t.getBytes(2),r-=2 -break}s=t.length(),f.push(e(t,r,n+1,i)),r-=s-t.length()}else for(;d>0;)s=t.length(),f.push(e(t,d,n+1,i)),r-=s-t.length(),d-=s-t.length() -if(void 0===f&&l===o.Class.UNIVERSAL&&c===o.Type.BITSTRING&&(h=t.bytes(d)),void 0===f&&i.decodeBitStrings&&l===o.Class.UNIVERSAL&&c===o.Type.BITSTRING&&d>1){var y=t.read,g=r,v=0 -if(c===o.Type.BITSTRING&&(a(t,r,1),v=t.getByte(),r--),0===v)try{s=t.length() -var b=e(t,r,n+1,{verbose:i.verbose,strict:!0,decodeBitStrings:!0}),w=s-t.length() -r-=w,c==o.Type.BITSTRING&&w++ -var _=b.tagClass -w!==d||_!==o.Class.UNIVERSAL&&_!==o.Class.CONTEXT_SPECIFIC||(f=[b])}catch(e){}void 0===f&&(t.read=y,r=g)}if(void 0===f){if(void 0===d){if(i.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.") -d=r}if(c===o.Type.BMPSTRING)for(f="";d>0;d-=2)a(t,r,2),f+=String.fromCharCode(t.getInt16()),r-=2 -else f=t.getBytes(d)}var S=void 0===h?null:{bitStringContents:h} -return o.create(l,c,m,f,S)}(e,e.length(),0,t)},o.toDer=function(e){var t=i.util.createBuffer(),r=e.tagClass|e.type,n=i.util.createBuffer(),a=!1 -if("bitStringContents"in e&&(a=!0,e.original&&(a=o.equals(e,e.original))),a)n.putBytes(e.bitStringContents) -else if(e.composed){e.constructed?r|=32:n.putByte(0) -for(var s=0;s1&&(0===e.value.charCodeAt(0)&&0==(128&e.value.charCodeAt(1))||255===e.value.charCodeAt(0)&&128==(128&e.value.charCodeAt(1)))?n.putBytes(e.value.substr(1)):n.putBytes(e.value) -if(t.putByte(r),n.length()<=127)t.putByte(127&n.length()) -else{var u=n.length(),l="" -do{l+=String.fromCharCode(255&u),u>>>=8}while(u>0) -for(t.putByte(128|l.length),s=l.length-1;s>=0;--s)t.putByte(l.charCodeAt(s))}return t.putBuffer(n),t},o.oidToDer=function(e){var t,r,n,o,a=e.split("."),s=i.util.createBuffer() -s.putByte(40*parseInt(a[0],10)+parseInt(a[1],10)) -for(var u=2;u>>=7,t||(o|=128),r.push(o),t=!1}while(n>0) -for(var l=r.length-1;l>=0;--l)s.putByte(r[l])}return s},o.derToOid=function(e){var t -"string"==typeof e&&(e=i.util.createBuffer(e)) -var r=e.getByte() -t=Math.floor(r/40)+"."+r%40 -for(var n=0;e.length()>0;)n<<=7,128&(r=e.getByte())?n+=127&r:(t+="."+(n+r),n=0) -return t},o.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10) -r=r>=50?1900+r:2e3+r -var n=parseInt(e.substr(2,2),10)-1,i=parseInt(e.substr(4,2),10),o=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),s=0 -if(e.length>11){var u=e.charAt(10),l=10 -"+"!==u&&"-"!==u&&(s=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,n,i),t.setUTCHours(o,a,s,0),l&&("+"===(u=e.charAt(l))||"-"===u)){var c=60*parseInt(e.substr(l+1,2),10)+parseInt(e.substr(l+4,2),10) -c*=6e4,"+"===u?t.setTime(+t-c):t.setTime(+t+c)}return t},o.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10)-1,i=parseInt(e.substr(6,2),10),o=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),u=0,l=0,c=!1 -"Z"===e.charAt(e.length-1)&&(c=!0) -var f=e.length-5,h=e.charAt(f) -return"+"!==h&&"-"!==h||(l=60*parseInt(e.substr(f+1,2),10)+parseInt(e.substr(f+4,2),10),l*=6e4,"+"===h&&(l*=-1),c=!0),"."===e.charAt(14)&&(u=1e3*parseFloat(e.substr(14),10)),c?(t.setUTCFullYear(r,n,i),t.setUTCHours(o,a,s,u),t.setTime(+t+l)):(t.setFullYear(r,n,i),t.setHours(o,a,s,u)),t},o.dateToUtcTime=function(e){if("string"==typeof e)return e -var t="",r=[] -r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds()) -for(var n=0;n=-128&&e<128)return t.putSignedInt(e,8) -if(e>=-32768&&e<32768)return t.putSignedInt(e,16) -if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24) -if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32) -var r=new Error("Integer too large; max is 32-bits.") -throw r.integer=e,r},o.derToInteger=function(e){"string"==typeof e&&(e=i.util.createBuffer(e)) -var t=8*e.length() -if(t>32)throw new Error("Integer too large; max is 32-bits.") -return e.getSignedInt(t)},o.validate=function(e,t,r,n){var a=!1 -if(e.tagClass!==t.tagClass&&void 0!==t.tagClass||e.type!==t.type&&void 0!==t.type)n&&(e.tagClass!==t.tagClass&&n.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&n.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"')) -else if(e.constructed===t.constructed||void 0===t.constructed){if(a=!0,t.value&&i.util.isArray(t.value))for(var s=0,u=0;a&&u0&&(n+="\n") -for(var a="",u=0;u1?n+="0x"+i.util.bytesToHex(e.value.slice(1)):n+="(none)",e.value.length>0){var h=e.value.charCodeAt(0) -1==h?n+=" (1 unused bit shown)":h>1&&(n+=" ("+h+" unused bits shown)")}}else e.type===o.Type.OCTETSTRING?(s.test(e.value)||(n+="("+e.value+") "),n+="0x"+i.util.bytesToHex(e.value)):e.type===o.Type.UTF8?n+=i.util.decodeUtf8(e.value):e.type===o.Type.PRINTABLESTRING||e.type===o.Type.IA5String?n+=e.value:s.test(e.value)?n+="0x"+i.util.bytesToHex(e.value):0===e.value.length?n+="[null]":n+=e.value}return n}},function(e,t,r){var n=r(8) -n.pki=n.pki||{} -var i=e.exports=n.pki.oids=n.oids=n.oids||{} -function o(e,t){i[e]=t,i[t]=e}function a(e,t){i[e]=t}o("1.2.840.113549.1.1.1","rsaEncryption"),o("1.2.840.113549.1.1.4","md5WithRSAEncryption"),o("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),o("1.2.840.113549.1.1.7","RSAES-OAEP"),o("1.2.840.113549.1.1.8","mgf1"),o("1.2.840.113549.1.1.9","pSpecified"),o("1.2.840.113549.1.1.10","RSASSA-PSS"),o("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),o("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),o("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),o("1.2.840.10040.4.3","dsa-with-sha1"),o("1.3.14.3.2.7","desCBC"),o("1.3.14.3.2.26","sha1"),o("2.16.840.1.101.3.4.2.1","sha256"),o("2.16.840.1.101.3.4.2.2","sha384"),o("2.16.840.1.101.3.4.2.3","sha512"),o("1.2.840.113549.2.5","md5"),o("1.2.840.113549.1.7.1","data"),o("1.2.840.113549.1.7.2","signedData"),o("1.2.840.113549.1.7.3","envelopedData"),o("1.2.840.113549.1.7.4","signedAndEnvelopedData"),o("1.2.840.113549.1.7.5","digestedData"),o("1.2.840.113549.1.7.6","encryptedData"),o("1.2.840.113549.1.9.1","emailAddress"),o("1.2.840.113549.1.9.2","unstructuredName"),o("1.2.840.113549.1.9.3","contentType"),o("1.2.840.113549.1.9.4","messageDigest"),o("1.2.840.113549.1.9.5","signingTime"),o("1.2.840.113549.1.9.6","counterSignature"),o("1.2.840.113549.1.9.7","challengePassword"),o("1.2.840.113549.1.9.8","unstructuredAddress"),o("1.2.840.113549.1.9.14","extensionRequest"),o("1.2.840.113549.1.9.20","friendlyName"),o("1.2.840.113549.1.9.21","localKeyId"),o("1.2.840.113549.1.9.22.1","x509Certificate"),o("1.2.840.113549.1.12.10.1.1","keyBag"),o("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),o("1.2.840.113549.1.12.10.1.3","certBag"),o("1.2.840.113549.1.12.10.1.4","crlBag"),o("1.2.840.113549.1.12.10.1.5","secretBag"),o("1.2.840.113549.1.12.10.1.6","safeContentsBag"),o("1.2.840.113549.1.5.13","pkcs5PBES2"),o("1.2.840.113549.1.5.12","pkcs5PBKDF2"),o("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),o("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),o("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),o("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),o("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),o("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),o("1.2.840.113549.2.7","hmacWithSHA1"),o("1.2.840.113549.2.8","hmacWithSHA224"),o("1.2.840.113549.2.9","hmacWithSHA256"),o("1.2.840.113549.2.10","hmacWithSHA384"),o("1.2.840.113549.2.11","hmacWithSHA512"),o("1.2.840.113549.3.7","des-EDE3-CBC"),o("2.16.840.1.101.3.4.1.2","aes128-CBC"),o("2.16.840.1.101.3.4.1.22","aes192-CBC"),o("2.16.840.1.101.3.4.1.42","aes256-CBC"),o("2.5.4.3","commonName"),o("2.5.4.5","serialName"),o("2.5.4.6","countryName"),o("2.5.4.7","localityName"),o("2.5.4.8","stateOrProvinceName"),o("2.5.4.10","organizationName"),o("2.5.4.11","organizationalUnitName"),o("2.16.840.1.113730.1.1","nsCertType"),a("2.5.29.1","authorityKeyIdentifier"),a("2.5.29.2","keyAttributes"),a("2.5.29.3","certificatePolicies"),a("2.5.29.4","keyUsageRestriction"),a("2.5.29.5","policyMapping"),a("2.5.29.6","subtreesConstraint"),a("2.5.29.7","subjectAltName"),a("2.5.29.8","issuerAltName"),a("2.5.29.9","subjectDirectoryAttributes"),a("2.5.29.10","basicConstraints"),a("2.5.29.11","nameConstraints"),a("2.5.29.12","policyConstraints"),a("2.5.29.13","basicConstraints"),o("2.5.29.14","subjectKeyIdentifier"),o("2.5.29.15","keyUsage"),a("2.5.29.16","privateKeyUsagePeriod"),o("2.5.29.17","subjectAltName"),o("2.5.29.18","issuerAltName"),o("2.5.29.19","basicConstraints"),a("2.5.29.20","cRLNumber"),a("2.5.29.21","cRLReason"),a("2.5.29.22","expirationDate"),a("2.5.29.23","instructionCode"),a("2.5.29.24","invalidityDate"),a("2.5.29.25","cRLDistributionPoints"),a("2.5.29.26","issuingDistributionPoint"),a("2.5.29.27","deltaCRLIndicator"),a("2.5.29.28","issuingDistributionPoint"),a("2.5.29.29","certificateIssuer"),a("2.5.29.30","nameConstraints"),o("2.5.29.31","cRLDistributionPoints"),o("2.5.29.32","certificatePolicies"),a("2.5.29.33","policyMappings"),a("2.5.29.34","policyConstraints"),o("2.5.29.35","authorityKeyIdentifier"),a("2.5.29.36","policyConstraints"),o("2.5.29.37","extKeyUsage"),a("2.5.29.46","freshestCRL"),a("2.5.29.54","inhibitAnyPolicy"),o("1.3.6.1.4.1.11129.2.4.2","timestampList"),o("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),o("1.3.6.1.5.5.7.3.1","serverAuth"),o("1.3.6.1.5.5.7.3.2","clientAuth"),o("1.3.6.1.5.5.7.3.3","codeSigning"),o("1.3.6.1.5.5.7.3.4","emailProtection"),o("1.3.6.1.5.5.7.3.8","timeStamping")},function(e,t,r){"use strict";(function(e,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=c,t.wrap=f -var o,a,s=(o=r(61))&&o.__esModule?o:{default:o},u=t.hasSetImmediate="function"==typeof e&&e,l=t.hasNextTick="object"===(void 0===n?"undefined":i(n))&&"function"==typeof n.nextTick -function c(e){setTimeout(e,0)}function f(e){return function(t){var r=(0,s.default)(arguments,1) -e(function(){t.apply(null,r)})}}a=u?e:l?n.nextTick:c,t.default=f(a)}).call(this,r(29).setImmediate,r(3))},function(e,t,r){"use strict" -e.exports=function(e,t){return e.then(function(e){t(null,e)},function(e){t(e)})}},function(e,t,r){"use strict" -e.exports=self.crypto||self.msCrypto},function(e,t,r){"use strict" -var n=t -n.bignum=r(135),n.define=r(315).define,n.base=r(319),n.constants=r(320),n.decoders=r(138),n.encoders=r(136)},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(86).Reporter,o=r(49).EncoderBuffer,a=r(49).DecoderBuffer,s=r(316),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u) -function c(e,t,r){var n={} -this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c -var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"] -c.prototype.clone=function(){var e=this._baseState,t={} -f.forEach(function(r){t[r]=e[r]}) -var r=new this.constructor(t.parent) -return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState -l.forEach(function(t){this[t]=function(){var r=new this.constructor(this) -return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState -s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this) -e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!==n(e)||e.constructor!==Object)return e -var t={} -return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0) -var n=e[r] -t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState -throw new Error(e+" not implemented for encoding: "+t.enc)}}),u.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments) -return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){s(e) -var t=this._baseState -return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState -return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState -return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState -return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments) -return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState -return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState -return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState -return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState -if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t)) -var n,i=r.default,o=!0,s=null -if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var u=null -if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(e,u,r.any),e.isError(o))return o}else{var l=e.save() -try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(l)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var c=this._decodeTag(e,r.explicit) -if(e.isError(c))return c -e=c}var f=e.offset -if(null===r.use&&null===r.choice){var h -r.any&&(h=e.save()) -var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any) -if(e.isError(d))return d -r.any?i=e.raw(h):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i -if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new a(i) -i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState -return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState -return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1 -return Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o] -try{var u=s._decode(e,t) -if(e.isError(u))return!1 -n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState -if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r) -if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var o=this._baseState -if(null===o.parent)return o.children[0]._encode(e,t||new i) -var a=null -if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return -e=o.default}var s=null,u=!1 -if(o.any)a=this._createEncoderBuffer(e) -else if(o.choice)a=this._encodeChoice(e,t) -else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),u=!0 -else if(o.children)s=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e) -if(null===r._baseState.key)return t.error("Child should have a key") -var i=t.enterKey(r._baseState.key) -if("object"!==n(e))return t.error("Child expected, but input is not object") -var o=r._encode(e[r._baseState.key],t,e) -return t.leaveKey(i),o},this).filter(function(e){return e}),s=this._createEncoderBuffer(s) -else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag) -if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array") -var l=this.clone() -l._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){var n=this._baseState -return this._getUse(n.args[0],e)._encode(r,t)},l))}else null!==o.use?a=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),u=!0) -if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,f=null===o.implicit?"universal":"context" -null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(c,u,f,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type] -return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState -if(/str$/.test(e))return this._encodeStr(t,e) -if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]) -if("objid"===e)return this._encodeObjid(t,null,null) -if("gentime"===e||"utctime"===e)return this._encodeTime(t,e) -if("null_"===e)return this._encodeNull() -if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]) -if("bool"===e)return this._encodeBool(t) -if("objDesc"===e)return this._encodeStr(t,e) -throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)}},function(e,t,r){"use strict" -var n=r(2) -function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState -return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState -t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState -t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState -this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj -return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj -return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o -if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t -return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState -return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict" -function n(e){var t={} -return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0) -var n=e[r] -t[n]=r}),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},function(e,t,r){(t=e.exports=r(145)).Stream=t,t.Readable=t,t.Writable=r(89),t.Duplex=r(25),t.Transform=r(148),t.PassThrough=r(338)},function(e,t,r){"use strict";(function(t,n,i){var o=r(62) -function a(e){var t=this -this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry -for(e.entry=null;n;){var i=n.callback -t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v -var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick -v.WritableState=g -var l=r(50) -l.inherits=r(2) -var c,f={deprecate:r(32)},h=r(146),d=r(7).Buffer,p=i.Uint8Array||function(){},m=r(147) -function y(){}function g(e,t){s=s||r(25),e=e||{} -var n=t instanceof s -this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode) -var i=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384 -this.highWaterMark=i||0===i?i:n&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1 -var f=!1===e.decodeStrings -this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb -if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,i) -else{var a=S(r) -a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(25),!(c.call(v,this)||this instanceof s))return new v(e) -this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function b(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function _(e,t){t.bufferProcessing=!0 -var r=t.bufferedRequest -if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree -o.entry=r -for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1 -i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback -if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=S(t) -return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next -return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===v&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof p) -return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end") -e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1 -return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}(t,n,i) -n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length -t.length+=s -var u=t.length-1))throw new TypeError("Unknown encoding: "+e) -return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState -"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(3),r(29).setImmediate,r(6))},function(e,t,r){var n=r(7).Buffer,i=r(144).Transform,o=r(11).StringDecoder -function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(2)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t)) -var i=this._update(e) -return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n -try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t -try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0) -return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings") -var n=this._decoder.write(e) -return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n,i=(n=r(81))&&n.__esModule?n:{default:n} -t.default=i.default,e.exports=t.default},function(e,t){e.exports=function(){}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.") -var t=e -e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0 -var n,i=(n=r(356))&&n.__esModule?n:{default:n},o="function"==typeof Symbol -function a(e){return o&&"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){return a(e)?(0,i.default)(e):e},t.isAsync=a},function(e,t,r){"use strict" -var n=r(34).codes.ERR_STREAM_PREMATURE_CLOSE -function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r) -r||(r={}),o=function(e){var t=!1 -return function(){if(!t){t=!0 -for(var r=arguments.length,n=new Array(r),i=0;i1;){var t=e.pop(),r=t.obj[t.prop] -if(o(r)){for(var n=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(o):s<128?i+=a[s]:s<2048?i+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?i+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(o)),i+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!==n(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t -if("object"!==n(r)){if(o(t))t.push(r) -else{if(!t||"object"!==n(t))return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==n(t))return[t].concat(r) -var u=t -return o(t)&&!o(r)&&(u=s(t,a)),o(t)&&o(r)?(r.forEach(function(r,o){if(i.call(t,o)){var s=t[o] -s&&"object"===n(s)&&r&&"object"===n(r)?t[o]=e(s,r,a):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,n){var o=r[n] -return i.call(t,n)?t[n]=e(t[n],o,a):t[n]=o,t},u)}}},function(e,t,r){var n=r(205),i=r(466),o=r(121).EOL,a=r(467) -function s(e){return(e=e||{}).strict=!1!==e.strict,i(function(t){try{if(t)return JSON.parse(t)}catch(r){e.strict&&this.emit("error",new Error("Could not parse row "+t.slice(0,50)+"..."))}},e)}e.exports=s,e.exports.serialize=e.exports.stringify=function(e){return n.obj(e,function(e,t,r){r(null,a(e)+o)})},e.exports.parse=s},function(e,t,r){"use strict";(function(e){var n=r(20),i=r(72),o=i.SHIFT32,a=i.SHIFT16 -t.parseHalf=function(e){var t,r,n -return n=128&e[0]?-1:1,t=(124&e[0])>>2,r=(3&e[0])<<8|e[1],t?31===t?n*(r?NaN:1/0):n*Math.pow(2,t-25)*(1024+r):5.960464477539063e-8*n*r},t.arrayBufferToBignumber=function(e){for(var t,r=e.byteLength,i="",o=0;o2097151?new n(s).times(o).plus(u):s*o+u},t.writeHalf=function(t,r){var n=e.allocUnsafe(4) -n.writeFloatBE(r,0) -var i=n.readUInt32BE(0) -if(0!=(8191&i))return!1 -var o=i>>16&32768,a=i>>23&255,s=8388607&i -if(a>=113&&a<=142)o+=(a-112<<10)+(s>>13) -else{if(!(a>=103&&a<113))return!1 -if(s&(1<<126-a)-1)return!1 -o+=s+8388608>>126-a}return t.writeUInt16BE(o,0),!0},t.keySorter=function(e,t){var r=e[0].byteLength,n=t[0].byteLength -return r>n?1:n>r?-1:e[0].compare(t[0])},t.isNegativeZero=function(e){return 0===e&&1/e<0},t.nextPowerOf2=function(e){var t=0 -if(e&&!(e&e-1))return e -for(;0!==e;)e>>=1,t+=1 -return 1<this[a])return _(this,this[p].get(e)),!1 -var o=this[p].get(e).value -return this[f]&&(this[h]||this[f](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[s]+=i-o.length,o.length=i,this.get(e),w(this),!0}var l=new S(e,t,i,n,r) -return l.length>this[a]?(this[f]&&this[f](e,t),!1):(this[s]+=l.length,this[d].unshift(l),this[p].set(e,this[d].head),w(this),!0)}},{key:"has",value:function(e){if(!this[p].has(e))return!1 -var t=this[p].get(e).value -return!b(this,t)}},{key:"get",value:function(e){return v(this,e,!0)}},{key:"peek",value:function(e){return v(this,e,!1)}},{key:"pop",value:function(){var e=this[d].tail -return e?(_(this,e),e.value):null}},{key:"del",value:function(e){_(this,this[p].get(e))}},{key:"load",value:function(e){this.reset() -for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],i=n.e||0 -if(0===i)this.set(n.k,n.v) -else{var o=i-t -o>0&&this.set(n.k,n.v,o)}}}},{key:"prune",value:function(){var e=this -this[p].forEach(function(t,r){return v(e,r,!1)})}},{key:"max",set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number") -this[a]=e||1/0,w(this)},get:function(){return this[a]}},{key:"allowStale",set:function(e){this[l]=!!e},get:function(){return this[l]}},{key:"maxAge",set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number") -this[c]=e,w(this)},get:function(){return this[c]}},{key:"lengthCalculator",set:function(e){var t=this -"function"!=typeof e&&(e=y),e!==this[u]&&(this[u]=e,this[s]=0,this[d].forEach(function(e){e.length=t[u](e.value,e.key),t[s]+=e.length})),w(this)},get:function(){return this[u]}},{key:"length",get:function(){return this[s]}},{key:"itemCount",get:function(){return this[d].length}}])&&i(t.prototype,r),e}(),v=function(e,t,r){var n=e[p].get(t) -if(n){var i=n.value -if(b(e,i)){if(_(e,n),!e[l])return}else r&&(e[m]&&(n.value.now=Date.now()),e[d].unshiftNode(n)) -return i.value}},b=function(e,t){if(!t||!t.maxAge&&!e[c])return!1 -var r=Date.now()-t.now -return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},w=function(e){if(e[s]>e[a])for(var t=e[d].tail;e[s]>e[a]&&null!==t;){var r=t.prev -_(e,t),t=r}},_=function(e,t){if(t){var r=t.value -e[f]&&e[f](r.key,r.value),e[s]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}},S=function e(t,r,i,o,a){n(this,e),this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=a||0},E=function(e,t,r,n){var i=r.value -b(e,i)&&(_(e,r),e[l]||(i=void 0)),i&&t.call(n,i.value,i.key,e)} -e.exports=g},function(e,t,r){"use strict" -var n=r(23) -e.exports=function(e,t,r){"function"==typeof e.pipe?n(e,function(e,n){if(e)return r(e) -t(n,r)}):t(e,r)}},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f] -for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l -else{if(o===u)return a?NaN:1/0*(d?-1:1) -a+=Math.pow(2,n),o-=l}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0 -for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,l-=8);e[r+d-p]|=128*m}},function(e,t){var r={}.toString -e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,r){var n=r(240).freshApi() -n.addFormat({date:function(e){return/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(e)?null:"A valid ISO 8601 full-date string is expected"},time:function(e){return/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/.test(e)?null:"A valid ISO 8601 full-time string is expected"}}),e.exports=n},function(e,t,r){function n(e,t){for(var r=0;r=0||!n.gcd(t.n).equals(o.ONE)) -for(var a=(e=e.multiply(n.modPow(t.e,t.n)).mod(t.n)).mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);a.compareTo(s)<0;)a=a.add(t.p) -var u=a.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s) -return u.multiply(n.modInverse(t.n)).mod(t.n)} -function m(e,t,r){var n=i.util.createBuffer(),o=Math.ceil(t.n.bitLength()/8) -if(e.length>o-11){var a=new Error("Message is too long for PKCS#1 v1.5 padding.") -throw a.length=e.length,a.max=o-11,a}n.putByte(0),n.putByte(r) -var s,u=o-3-e.length -if(0===r||1===r){s=0===r?0:255 -for(var l=0;l0;){var c=0,f=i.random.getBytes(u) -for(l=0;l1;){if(255!==a.getByte()){--a.read -break}++l}else if(2===u)for(l=0;a.length()>1;){if(0===a.getByte()){--a.read -break}++l}if(0!==a.getByte()||l!==o-3-a.length())throw new Error("Encryption block is invalid.") -return a.getBytes()}function g(e,t,r){"function"==typeof t&&(r=t,t={}) -var n={algorithm:{name:(t=t||{}).algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}} -function a(){u(e.pBits,function(t,n){return t?r(t):(e.p=n,null!==e.q?l(t,e.q):void u(e.qBits,l))})}function u(e,t){i.prime.generateProbablePrime(e,n,t)}function l(t,n){if(t)return r(t) -if(e.q=n,e.p.compareTo(e.q)<0){var i=e.p -e.p=e.q,e.q=i}if(0!==e.p.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.p=null,void a() -if(0!==e.q.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.q=null,void u(e.qBits,l) -if(e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(o.ONE))return e.p=e.q=null,void a() -if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void u(e.qBits,l) -var c=e.e.modInverse(e.phi) -e.keys={privateKey:s.rsa.setPrivateKey(e.n,e.e,c,e.p,e.q,c.mod(e.p1),c.mod(e.q1),e.q.modInverse(e.p)),publicKey:s.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}"prng"in t&&(n.prng=t.prng),a()}function v(e){var t=e.toString(16) -t[0]>="8"&&(t="00"+t) -var r=i.util.hexToBytes(t) -return r.length>1&&(0===r.charCodeAt(0)&&0==(128&r.charCodeAt(1))||255===r.charCodeAt(0)&&128==(128&r.charCodeAt(1)))?r.substr(1):r}function b(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function w(e){return"undefined"!=typeof window&&"object"===n(window.crypto)&&"object"===n(window.crypto.subtle)&&"function"==typeof window.crypto.subtle[e]}function _(e){return"undefined"!=typeof window&&"object"===n(window.msCrypto)&&"object"===n(window.msCrypto.subtle)&&"function"==typeof window.msCrypto.subtle[e]}function S(e){for(var t=i.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),n=0;n0;)c.putByte(0),--f -return c.putBytes(i.util.hexToBytes(l)),c.getBytes()},s.rsa.decrypt=function(e,t,r,n){var a=Math.ceil(t.n.bitLength()/8) -if(e.length!==a){var s=new Error("Encrypted message length is invalid.") -throw s.length=e.length,s.expected=a,s}var u=new o(i.util.createBuffer(e).toHex(),16) -if(u.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.") -for(var l=p(u,t,r).toString(16),c=i.util.createBuffer(),f=a-Math.ceil(l.length/2);f>0;)c.putByte(0),--f -return c.putBytes(i.util.hexToBytes(l)),!1!==n?y(c.getBytes(),t,r):c.getBytes()},s.rsa.createKeyPairGenerationState=function(e,t,r){"string"==typeof e&&(e=parseInt(e,10)),e=e||2048 -var n,a=(r=r||{}).prng||i.random,s={nextBytes:function(e){for(var t=a.getBytesSync(e.length),r=0;r>1,pBits:e-(e>>1),pqState:0,num:null,keys:null}).e.fromInt(n.eInt),n},s.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC") -var r=new o(null) -r.fromInt(30) -for(var n,i=0,a=function(e,t){return e|t},l=+new Date,c=0;null===e.keys&&(t<=0||cf?e.pqState=0:e.num.isProbablePrime(b(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(u[i++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state -else if(2===e.state)e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),++e.state -else if(3===e.state)0===e.phi.gcd(e.e).compareTo(o.ONE)?++e.state:(e.p=null,e.q=null,e.state=0) -else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0) -else if(5===e.state){var d=e.e.modInverse(e.phi) -e.keys={privateKey:s.rsa.setPrivateKey(e.n,e.e,d,e.p,e.q,d.mod(e.p1),d.mod(e.q1),e.q.modInverse(e.p)),publicKey:s.rsa.setPublicKey(e.n,e.e)}}c+=(n=+new Date)-l,l=n}return null!==e.keys},s.rsa.generateKeyPair=function(e,t,r,o){if(1===arguments.length?"object"===n(e)?(r=e,e=void 0):"function"==typeof e&&(o=e,e=void 0):2===arguments.length?"number"==typeof e?"function"==typeof t?(o=t,t=void 0):"number"!=typeof t&&(r=t,t=void 0):(r=e,o=t,e=void 0,t=void 0):3===arguments.length&&("number"==typeof t?"function"==typeof r&&(o=r,r=void 0):(o=r,r=t,t=void 0)),r=r||{},void 0===e&&(e=r.bits||2048),void 0===t&&(t=r.e||65537),!i.options.usePureJavaScript&&o&&e>=256&&e<=16384&&(65537===t||3===t)){if(w("generateKey")&&w("exportKey"))return window.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:S(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(e){return window.crypto.subtle.exportKey("pkcs8",e.privateKey)}).then(void 0,function(e){o(e)}).then(function(e){if(e){var t=s.privateKeyFromAsn1(a.fromDer(i.util.createBuffer(e))) -o(null,{privateKey:t,publicKey:s.setRsaPublicKey(t.n,t.e)})}}) -if(_("generateKey")&&_("exportKey")){var u=window.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:S(t),hash:{name:"SHA-256"}},!0,["sign","verify"]) -return u.oncomplete=function(e){var t=e.target.result,r=window.msCrypto.subtle.exportKey("pkcs8",t.privateKey) -r.oncomplete=function(e){var t=e.target.result,r=s.privateKeyFromAsn1(a.fromDer(i.util.createBuffer(t))) -o(null,{privateKey:r,publicKey:s.setRsaPublicKey(r.n,r.e)})},r.onerror=function(e){o(e)}},void(u.onerror=function(e){o(e)})}}var l=s.rsa.createKeyPairGenerationState(e,t,r) -if(!o)return s.rsa.stepKeyPairGenerationState(l,0),l.keys -g(l,r,o)},s.setRsaPublicKey=s.rsa.setPublicKey=function(e,t){var r={n:e,e:t,encrypt:function(e,t,n){if("string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,r){return m(e,t,2).getBytes()}} -else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return i.pkcs1.encode_rsa_oaep(t,e,n)}} -else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}} -else if("string"==typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".') -var o=t.encode(e,r,!0) -return s.rsa.encrypt(o,r,!0)},verify:function(e,t,n){"string"==typeof n?n=n.toUpperCase():void 0===n&&(n="RSASSA-PKCS1-V1_5"),"RSASSA-PKCS1-V1_5"===n?n={verify:function(e,t){return t=y(t,r,!0),e===a.fromDer(t).value[1].value}}:"NONE"!==n&&"NULL"!==n&&null!==n||(n={verify:function(e,t){return e===y(t,r,!0)}}) -var i=s.rsa.decrypt(t,r,!0,!1) -return n.verify(e,i,r.n.bitLength())}} -return r},s.setRsaPrivateKey=s.rsa.setPrivateKey=function(e,t,r,n,o,a,u,l){var c={n:e,e:t,d:r,p:n,q:o,dP:a,dQ:u,qInv:l,decrypt:function(e,t,r){"string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5") -var n=s.rsa.decrypt(e,c,!1,!1) -if("RSAES-PKCS1-V1_5"===t)t={decode:y} -else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return i.pkcs1.decode_rsa_oaep(t,e,r)}} -else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".') -t={decode:function(e){return e}}}return t.decode(n,c,!1)},sign:function(e,t){var r=!1 -"string"==typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:d},r=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},r=1) -var n=t.encode(e,c.n.bitLength()) -return s.rsa.encrypt(n,c,r)}} -return c},s.wrapRsaPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(e).getBytes())])},s.privateKeyFromAsn1=function(e){var t,r,n,u,f,h,d,p,m={},y=[] -if(a.validate(e,l,m,y)&&(e=a.fromDer(i.util.createBuffer(m.privateKey))),m={},y=[],!a.validate(e,c,m,y)){var g=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.") -throw g.errors=y,g}return t=i.util.createBuffer(m.privateKeyModulus).toHex(),r=i.util.createBuffer(m.privateKeyPublicExponent).toHex(),n=i.util.createBuffer(m.privateKeyPrivateExponent).toHex(),u=i.util.createBuffer(m.privateKeyPrime1).toHex(),f=i.util.createBuffer(m.privateKeyPrime2).toHex(),h=i.util.createBuffer(m.privateKeyExponent1).toHex(),d=i.util.createBuffer(m.privateKeyExponent2).toHex(),p=i.util.createBuffer(m.privateKeyCoefficient).toHex(),s.setRsaPrivateKey(new o(t,16),new o(r,16),new o(n,16),new o(u,16),new o(f,16),new o(h,16),new o(d,16),new o(p,16))},s.privateKeyToAsn1=s.privateKeyToRSAPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.e)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.d)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.p)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.q)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.dP)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.dQ)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.qInv))])},s.publicKeyFromAsn1=function(e){var t={},r=[] -if(a.validate(e,h,t,r)){var n,u=a.derToOid(t.publicKeyOid) -if(u!==s.oids.rsaEncryption)throw(n=new Error("Cannot read public key. Unknown OID.")).oid=u,n -e=t.rsaPublicKey}if(r=[],!a.validate(e,f,t,r))throw(n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=r,n -var l=i.util.createBuffer(t.publicKeyModulus).toHex(),c=i.util.createBuffer(t.publicKeyExponent).toHex() -return s.setRsaPublicKey(new o(l,16),new o(c,16))},s.publicKeyToAsn1=s.publicKeyToSubjectPublicKeyInfo=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,[s.publicKeyToRSAPublicKey(e)])])},s.publicKeyToRSAPublicKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.e))])}},function(e,t,r){var n,i=r(8) -function o(e,t,r){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function a(){return new o(null)}function s(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this.data[e],l=this.data[e++]>>14,c=s*u+l*a -i=((u=a*u+((16383&c)<<14)+r.data[n]+i)>>28)+(c>>14)+s*l,r.data[n++]=268435455&u}return i}e.exports=i.jsbn=i.jsbn||{},i.jsbn.BigInteger=o,"undefined"==typeof navigator?(o.prototype.am=s,n=28):"Microsoft Internet Explorer"==navigator.appName?(o.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this.data[e],l=this.data[e++]>>15,c=s*u+l*a -i=((u=a*u+((32767&c)<<15)+r.data[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r.data[n++]=1073741823&u}return i},n=30):"Netscape"!=navigator.appName?(o.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this.data[e++]+r.data[n]+i -i=Math.floor(a/67108864),r.data[n++]=67108863&a}return i},n=26):(o.prototype.am=s,n=28),o.prototype.DB=n,o.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function y(e){this.m=e}function g(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 E(e){for(var t=0;0!=e;)e&=e-1,++t -return t}function k(){}function x(e){return e}function A(e){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}y.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},y.prototype.revert=function(e){return e},y.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},y.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},y.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.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},g.prototype.revert=function(e){var t=a() -return e.copyTo(t),this.reduce(t),t},g.prototype.reduce=function(e){for(;e.t<=this.mt2;)e.data[e.t++]=0 -for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM -for(r=t+this.m.t,e.data[r]+=this.m.am(0,n,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},g.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},g.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.data[t]=this.data[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.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0},o.prototype.fromString=function(e,t){var r -if(16==t)r=4 -else if(8==t)r=3 -else if(256==t)r=8 -else if(2==t)r=1 -else if(32==t)r=5 -else{if(4!=t)return void this.fromRadix(e,t) -r=2}this.t=0,this.s=0 -for(var n=e.length,i=!1,a=0;--n>=0;){var s=8==r?255&e[n]:d(e,n) -s<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==a?this.data[this.t++]=s:a+r>this.DB?(this.data[this.t-1]|=(s&(1<>this.DB-a):this.data[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e;)--this.t},o.prototype.dlShiftTo=function(e,t){var r -for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r] -for(r=e-1;r>=0;--r)t.data[r]=0 -t.t=this.t+e,t.s=this.s},o.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t.data[r+a+1]=this.data[r]>>i|s,s=(this.data[r]&o)<=0;--r)t.data[r]=0 -t.data[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 r=Math.floor(e/this.DB) -if(r>=this.t)t.t=0 -else{var n=e%this.DB,i=this.DB-n,o=(1<>n -for(var a=r+1;a>n -n>0&&(t.data[this.t-r-1]|=(this.s&o)<>=this.DB -if(e.t>=this.DB -n+=this.s}else{for(n+=this.s;r>=this.DB -n-=e.s}t.s=n<0?-1:0,n<-1?t.data[r++]=this.DV+n:n>0&&(t.data[r++]=n),t.t=r,t.clamp()},o.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t -for(t.t=i+n.t;--i>=0;)t.data[i]=0 -for(i=0;i=0;)e.data[r]=0 -for(r=0;r=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()},o.prototype.divRemTo=function(e,t,r){var n=e.abs() -if(!(n.t<=0)){var i=this.abs() -if(i.t0?(n.lShiftTo(c,s),i.lShiftTo(c,r)):(n.copyTo(s),i.copyTo(r)) -var f=s.t,h=s.data[f-1] -if(0!=h){var d=h*(1<1?s.data[f-2]>>this.F2:0),p=this.FV/d,y=(1<=0&&(r.data[r.t++]=1,r.subTo(w,r)),o.ONE.dlShiftTo(f,w),w.subTo(s,s);s.t=0;){var _=r.data[--v]==h?this.DM:Math.floor(r.data[v]*p+(r.data[v-1]+g)*y) -if((r.data[v]+=s.am(0,_,r,b,0,f))<_)for(s.dlShiftTo(b,w),r.subTo(w,r);r.data[v]<--_;)r.subTo(w,r)}null!=t&&(r.drShiftTo(f,t),u!=l&&o.ZERO.subTo(t,t)),r.t=f,r.clamp(),c>0&&r.rShiftTo(c,r),u<0&&o.ZERO.subTo(r,r)}}},o.prototype.invDigit=function(){if(this.t<1)return 0 -var e=this.data[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.data[0]:this.s)},o.prototype.exp=function(e,t){if(e>4294967295||e<1)return o.ONE -var r=a(),n=a(),i=t.convert(this),s=m(e)-1 -for(i.copyTo(r);--s>=0;)if(t.sqrTo(r,n),(e&1<0)t.mulTo(n,i,r) -else{var u=r -r=n,n=u}return t.revert(r)},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 r,n=(1<0)for(s>s)>0&&(i=!0,o=h(r));a>=0;)s>(s+=this.DB-t)):(r=this.data[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=h(r)) -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 r=this.t -if(0!=(t=r-e.t))return this.s<0?-t:t -for(;--r>=0;)if(0!=(t=this.data[r]-e.data[r]))return t -return 0},o.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this.data[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 r -return r=e<256||t.isEven()?new y(t):new g(t),this.exp(e,r)},o.ZERO=p(0),o.ONE=p(1),k.prototype.convert=x,k.prototype.revert=x,k.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},k.prototype.sqrTo=function(e,t){e.squareTo(t)},A.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},A.prototype.revert=function(e){return e},A.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)},A.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},A.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)} -var M=[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],T=(1<<26)/M[M.length-1] -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),r=Math.pow(e,t),n=p(r),i=a(),o=a(),s="" -for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,i.divRemTo(n,i,o) -return o.intValue().toString(e)+s},o.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10) -for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,a=0,s=0,u=0;u=r&&(this.dMultiply(n),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,r){if("number"==typeof t)if(e<2)this.fromInt(1) -else for(this.fromNumber(e,r),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 n=new Array,i=7&e -n.length=1+(e>>3),t.nextBytes(n),i>0?n[0]&=(1<>=this.DB -if(e.t>=this.DB -n+=this.s}else{for(n+=this.s;r>=this.DB -n+=e.s}t.s=n<0?-1:0,n>0?t.data[r++]=n:n<-1&&(t.data[r++]=this.DV+n),t.t=r,t.clamp()},o.prototype.dMultiply=function(e){this.data[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.data[this.t++]=0 -for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}},o.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t) -for(r.s=0,r.t=i;i>0;)r.data[--i]=0 -for(n=r.t-this.t;i=0;)r.data[n]=0 -for(n=Math.max(t-this.t,0);n0)if(0==t)r=this.data[0]%e -else for(var n=this.t-1;n>=0;--n)r=(t*r+this.data[n])%e -return r},o.prototype.millerRabin=function(e){var t=this.subtract(o.ONE),r=t.getLowestSetBit() -if(r<=0)return!1 -for(var n,i=t.shiftRight(r),a={nextBytes:function(e){for(var t=0;t=0) -var u=n.modPow(i,this) -if(0!=u.compareTo(o.ONE)&&0!=u.compareTo(t)){for(var l=1;l++>24},o.prototype.shortValue=function(){return 0==this.t?this.s:this.data[0]<<16>>16},o.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},o.prototype.toByteArray=function(){var e=this.t,t=new Array -t[0]=this.s -var r,n=this.DB-e*this.DB%8,i=0 -if(e-- >0)for(n>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<=0;)n<8?(r=(this.data[e]&(1<>(n+=this.DB-8)):(r=this.data[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r) -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,v,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,w,t),t},o.prototype.andNot=function(e){var t=a() -return this.bitwiseTo(e,_,t),t},o.prototype.not=function(){for(var e=a(),t=0;t=this.t?0!=this.s:0!=(this.data[t]&1<1){var f=a() -for(n.sqrTo(s[1],f);u<=c;)s[u]=a(),n.mulTo(f,s[u-2],s[u]),u+=2}var h,d,v=e.t-1,b=!0,w=a() -for(i=m(e.data[v])-1;v>=0;){for(i>=l?h=e.data[v]>>i-l&c:(h=(e.data[v]&(1<0&&(h|=e.data[v-1]>>this.DB+i-l)),u=r;0==(1&h);)h>>=1,--u -if((i-=u)<0&&(i+=this.DB,--v),b)s[h].copyTo(o),b=!1 -else{for(;u>1;)n.sqrTo(o,w),n.sqrTo(w,o),u-=2 -u>0?n.sqrTo(o,w):(d=o,o=w,w=d),n.mulTo(w,s[h],o)}for(;v>=0&&0==(e.data[v]&1<=0?(r.subTo(n,r),t&&i.subTo(s,i),a.subTo(u,a)):(n.subTo(r,n),t&&s.subTo(i,s),u.subTo(a,u))}return 0!=n.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 k)},o.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone() -if(t.compareTo(r)<0){var n=t -t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit() -if(o<0)return t -for(i0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r)) -return o>0&&r.lShiftTo(o,r),r},o.prototype.isProbablePrime=function(e){var t,r=this.abs() -if(1==r.t&&r.data[0]<=M[M.length-1]){for(t=0;t>>=2,i=0;i>8^255&f^99,o[m]=f,a[f]=m,d=(h=e[f])<<24^f<<16^f<<8^f^h,p=((r=e[m])^(n=e[r])^(i=e[n]))<<24^(m^i)<<16^(m^n^i)<<8^m^r^i -for(var g=0;g<4;++g)u[g][m]=d,l[g][f]=p,d=d<<24|d>>>8,p=p<<24|p>>>8 -0===m?m=y=1:(m=r^e[e[e[r^i]]],y^=e[e[y]])}}function d(e,t){for(var r,n=e.slice(0),i=1,a=n.length,u=f*(a+6+1),c=a;c>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[i]<<24,i++):a>6&&c%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),n[c]=n[c-a]^r -if(t){for(var h,d=l[0],p=l[1],m=l[2],y=l[3],g=n.slice(0),v=(c=0,(u=n.length)-f);c>>24]]^p[o[h>>>16&255]]^m[o[h>>>8&255]]^y[o[255&h]] -n=g}return n}function p(e,t,r,n){var i,s,c,f,h,d,p,m,y,g,v,b,w=e.length/4-1 -n?(i=l[0],s=l[1],c=l[2],f=l[3],h=a):(i=u[0],s=u[1],c=u[2],f=u[3],h=o),d=t[0]^e[0],p=t[n?3:1]^e[1],m=t[2]^e[2],y=t[n?1:3]^e[3] -for(var _=3,S=1;S>>24]^s[p>>>16&255]^c[m>>>8&255]^f[255&y]^e[++_],v=i[p>>>24]^s[m>>>16&255]^c[y>>>8&255]^f[255&d]^e[++_],b=i[m>>>24]^s[y>>>16&255]^c[d>>>8&255]^f[255&p]^e[++_],y=i[y>>>24]^s[d>>>16&255]^c[p>>>8&255]^f[255&m]^e[++_],d=g,p=v,m=b -r[0]=h[d>>>24]<<24^h[p>>>16&255]<<16^h[m>>>8&255]<<8^h[255&y]^e[++_],r[n?3:1]=h[p>>>24]<<24^h[m>>>16&255]<<16^h[y>>>8&255]<<8^h[255&d]^e[++_],r[2]=h[m>>>24]<<24^h[y>>>16&255]<<16^h[d>>>8&255]<<8^h[255&p]^e[++_],r[n?1:3]=h[y>>>24]<<24^h[d>>>16&255]<<16^h[p>>>8&255]<<8^h[255&m]^e[++_]}function m(e){var t,r="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start -return t.start=function(e,r){var o=null -r instanceof n.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=e,i.call(t,r)},t}},function(e,t,r){var n=r(8) -r(9),e.exports=n.cipher=n.cipher||{},n.cipher.algorithms=n.cipher.algorithms||{},n.cipher.createCipher=function(e,t){var r=e -if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e) -return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},n.cipher.createDecipher=function(e,t){var r=e -if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e) -return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},n.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),n.cipher.algorithms[e]=t},n.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in n.cipher.algorithms?n.cipher.algorithms[e]:null} -var i=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)} -i.prototype.start=function(e){e=e||{} -var t={} -for(var r in e)t[r]=e[r] -t.decrypt=this._decrypt,this._finish=!1,this._input=n.util.createBuffer(),this.output=e.output||n.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)}) -var t={} -return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t)||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},function(e,t,r){var n=r(8) -r(9),n.cipher=n.cipher||{} -var i=e.exports=n.cipher.modes=n.cipher.modes||{} -function o(e){if("string"==typeof e&&(e=n.util.createBuffer(e)),n.util.isArray(e)&&e.length>4){var t=e -e=n.util.createBuffer() -for(var r=0;r0))return!0 -for(var n=0;n0))return!0 -for(var n=0;n0)return!1 -var r=e.length(),n=e.at(r-1) -return!(n>this.blockSize<<2||(e.truncate(n),0))},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.") -this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.") -this._iv=o(e.iv),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,r){if(e.length()0))return!0 -for(var n=0;n0))return!0 -for(var n=0;n0)return!1 -var r=e.length(),n=e.at(r-1) -return!(n>this.blockSize<<2||(e.truncate(n),0))},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") -this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,r){var n=e.length() -if(0===n)return!0 -if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize -else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 -t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,r){var n=e.length() -if(0===n)return!0 -if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize -else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 -t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") -this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,r){var n=e.length() -if(0===e.length())return!0 -if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize -else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 -t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") -this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,r){var n=e.length() -if(0===n)return!0 -if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 -t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") -var t,r=n.util.createBuffer(e.iv) -if(this._cipherLength=0,t="additionalData"in e?n.util.createBuffer(e.additionalData):n.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=n.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.") -this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits) -var i=r.length() -if(12===i)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1] -else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]) -this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*i)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,t=n.util.createBuffer(t),this._aDataLength=s(8*t.length()) -var o=t.length()%this.blockSize -for(o&&t.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,r){var n=e.length() -if(0===n)return!0 -if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize){for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 -t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,r){var n=e.length() -if(n0))return!0 -this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock) -for(var i=0;i0;--n)t[n]=e[n]>>>1|(1&e[n-1])<<31 -t[0]=e[0]>>>1,r&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=e[r/8|0]>>>4*(7-r%8)&15,i=this._m[r][n] -t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,o=new Array(i),a=0;a>>1,i=new Array(r) -i[n]=e.slice(0) -for(var o=n>>>1;o>0;)this.pow(i[2*o],i[o]=[]),o>>=1 -for(o=2;o=0;u--)C>>=8,C+=x.at(u)+T.at(u),T.setAt(u,255&C) -M.putBuffer(T)}w=M,f.putBuffer(E)}return f.truncate(f.length()-o),f},a.pbe.getCipher=function(e,t,r){switch(e){case a.oids.pkcs5PBES2:return a.pbe.getCipherForPBES2(e,t,r) -case a.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case a.oids["pbewithSHAAnd40BitRC2-CBC"]:return a.pbe.getCipherForPKCS12PBE(e,t,r) -default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.") -throw n.oid=e,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}},a.pbe.getCipherForPBES2=function(e,t,r){var i,s={},u=[] -if(!o.validate(t,l,s,u))throw(i=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=u,i -if((e=o.derToOid(s.kdfOid))!==a.oids.pkcs5PBKDF2)throw(i=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=e,i.supportedOids=["pkcs5PBKDF2"],i -if((e=o.derToOid(s.encOid))!==a.oids["aes128-CBC"]&&e!==a.oids["aes192-CBC"]&&e!==a.oids["aes256-CBC"]&&e!==a.oids["des-EDE3-CBC"]&&e!==a.oids.desCBC)throw(i=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=e,i.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],i -var c,f,d=s.kdfSalt,p=n.util.createBuffer(s.kdfIterationCount) -switch(p=p.getInt(p.length()<<3),a.oids[e]){case"aes128-CBC":c=16,f=n.aes.createDecryptionCipher -break -case"aes192-CBC":c=24,f=n.aes.createDecryptionCipher -break -case"aes256-CBC":c=32,f=n.aes.createDecryptionCipher -break -case"des-EDE3-CBC":c=24,f=n.des.createDecryptionCipher -break -case"desCBC":c=8,f=n.des.createDecryptionCipher}var m=h(s.prfOid),y=n.pkcs5.pbkdf2(r,d,p,c,m),g=s.encIv,v=f(y) -return v.start(g),v},a.pbe.getCipherForPKCS12PBE=function(e,t,r){var i={},s=[] -if(!o.validate(t,c,i,s))throw(m=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=s,m -var u,l,f,d=n.util.createBuffer(i.salt),p=n.util.createBuffer(i.iterations) -switch(p=p.getInt(p.length()<<3),e){case a.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:u=24,l=8,f=n.des.startDecrypting -break -case a.oids["pbewithSHAAnd40BitRC2-CBC"]:u=5,l=8,f=function(e,t){var r=n.rc2.createDecryptionCipher(e,40) -return r.start(t,null),r} -break -default:var m -throw(m=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=e,m}var y=h(i.prfOid),g=a.pbe.generatePkcs12Key(r,d,1,p,u,y) -return y.start(),f(g,a.pbe.generatePkcs12Key(r,d,2,p,l,y))},a.pbe.opensslDeriveBytes=function(e,t,r,i){if(null==i){if(!("md5"in n.md))throw new Error('"md5" hash algorithm unavailable.') -i=n.md.md5.create()}null===t&&(t="") -for(var o=[f(i,e+t)],a=16,s=1;a>=8 -return r.from(o)}}}).call(this,r(3),r(0).Buffer)},function(e,t,r){(function(t){function r(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var r -if(e instanceof Uint8Array)r=e -else if(e instanceof t)r=new Uint8Array(e) -else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array") -r=new Uint8Array(t.from(e,"utf8"))}return r},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,n){for(var i="\n"+e+" = ",o=0;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) -if("object"===t(e))return this._initArray(e,r,n) -"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) -var o=0 -"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(e,o):this._parseBase(e,r,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this -this.length=Math.ceil(e.length/3),this.words=new Array(this.length) -for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) -else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) -return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) -for(var r=0;r=t;r-=6)i=u(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++) -r+6!==t&&(i=u(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 -for(var n=0,i=1;i<=67108863;i*=t)n++ -n--,i=i/t|0 -for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length-- -return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} -var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] -function d(e,t,r){r.negative=t.negative^e.negative -var n=e.length+t.length|0 -r.length=n,n=n-1|0 -var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 -r.words[0]=s -for(var l=1;l>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0 -c+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r -if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" -for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r -return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],d=h[e] -r="" -var p=this.clone() -for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e) -r=(p=p.idivn(d)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r -return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] -return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) -i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() -var a,s,u="le"===t,l=new e(o),c=this.clone() -if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a -for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 -var t=e,r=0 -return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) -return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 -for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t -t=this.length>e.length?e:this -for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r +e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null) +return this.copy(e),e},a.prototype._expand=function(e){for(;this.length1&&0===this.words[this.length-1];)this.length-- +return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} +var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] +function d(e,t,r){r.negative=t.negative^e.negative +var n=e.length+t.length|0 +r.length=n,n=n-1|0 +var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 +r.words[0]=s +for(var l=1;l>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0 +c+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r +if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" +for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],d=h[e] +r="" +var p=this.clone() +for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e) +r=(p=p.idivn(d)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] +return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) +i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() +var a,s,u="le"===t,l=new e(o),c=this.clone() +if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a +for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 +var t=e,r=0 +return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) +return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 +for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t +t=this.length>e.length?e:this +for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r this.length>e.length?(t=this,r=e):(t=e,r=this) for(var n=0;n>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],A=8191&x,M=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,D=N>>>13,B=0|a[9],j=8191&B,F=B>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,Q=Z>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,h=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 var ye=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 l=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) @@ -10999,38 +9745,38 @@ var ge=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0 var ve=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,G)|0))<<13)|0 l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0 -var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,J)|0))<<13)|0 -l=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0 +var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,J)|0))<<13)|0 +l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0 var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0 -l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 +l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 var _e=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 var Se=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Q)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 var Ee=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0 -l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 +l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 var ke=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var xe=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 -var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Q)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Me=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 -l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 +l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 +var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Ae=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 +l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(F,J)|0,o=Math.imul(F,X),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,he)|0 +l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 var Ce=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(k,pe)|0))<<13)|0 -l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 -var Ie=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0 -l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 +l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 +var Ie=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(A,pe)|0))<<13)|0 +l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 var Oe=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0 -l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0 var Pe=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0 l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,fe),i=(i=Math.imul(j,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) -var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(D,pe)|0))<<13)|0 -l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 +var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(B,pe)|0))<<13)|0 +l=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 var Ne=(l+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0 -return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Ae,u[11]=Me,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} +return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e] var t -if("k256"===e)t=new b -else if("p224"===e)t=new w -else if("p192"===e)t=new _ -else{if("p25519"!==e)throw new Error("Unknown prime "+e) -t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t) -var r=e.add(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t) -var r=e.iadd(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t) -var r=e.sub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t) -var r=e.isub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone() -var t=this.m.andln(3) -if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) -return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) -i(!n.isZero()) -var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength() -for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u) -for(var f=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1 -i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m) -return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone() -return t.red=null,t},a.mont=function(e){return new k(e)},o(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) -return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e -var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) -var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(47)(e))},function(e,t,r){"use strict" +if("k256"===e)t=new b +else if("p224"===e)t=new w +else if("p192"===e)t=new _ +else{if("p25519"!==e)throw new Error("Unknown prime "+e) +t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t) +var r=e.add(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t) +var r=e.iadd(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t) +var r=e.sub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t) +var r=e.isub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone() +var t=this.m.andln(3) +if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) +return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) +i(!n.isZero()) +var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength() +for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u) +for(var f=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() +i(y=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1 +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new k(e)},o(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e +var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) +var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(22)(e))},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function') +var o,a,s=arguments.length +switch(s){case 0:case 1:return t.nextTick(e) +case 2:return t.nextTick(function(){e.call(null,r)}) +case 3:return t.nextTick(function(){e.call(null,r,n)}) +case 4:return t.nextTick(function(){e.call(null,r,n,i)}) +default:for(o=new Array(s-1),a=0;a>>2,t.words[2]=(63&e[22])<<20|e[23]<<12|e[24]<<4|e[25]>>>4,t.words[3]=(255&e[19])<<18|e[20]<<10|e[21]<<2|e[22]>>>6,t.words[4]=(3&e[15])<<24|e[16]<<16|e[17]<<8|e[18],t.words[5]=(15&e[12])<<22|e[13]<<14|e[14]<<6|e[15]>>>2,t.words[6]=(63&e[9])<<20|e[10]<<12|e[11]<<4|e[12]>>>4,t.words[7]=(255&e[6])<<18|e[7]<<10|e[8]<<2|e[9]>>>6,t.words[8]=(3&e[2])<<24|e[3]<<16|e[4]<<8|e[5],t.words[9]=e[0]<<14|e[1]<<6|e[2]>>>2,t.length=10,t.strip()},o.prototype.toBuffer=function(){for(var e=this.words,t=this.length;t<10;++t)e[t]=0 +return n.from([e[9]>>>14&255,e[9]>>>6&255,(63&e[9])<<2|e[8]>>>24&3,e[8]>>>16&255,e[8]>>>8&255,255&e[8],e[7]>>>18&255,e[7]>>>10&255,e[7]>>>2&255,(3&e[7])<<6|e[6]>>>20&63,e[6]>>>12&255,e[6]>>>4&255,(15&e[6])<<4|e[5]>>>22&15,e[5]>>>14&255,e[5]>>>6&255,(63&e[5])<<2|e[4]>>>24&3,e[4]>>>16&255,e[4]>>>8&255,255&e[4],e[3]>>>18&255,e[3]>>>10&255,e[3]>>>2&255,(3&e[3])<<6|e[2]>>>20&63,e[2]>>>12&255,e[2]>>>4&255,(15&e[2])<<4|e[1]>>>22&15,e[1]>>>14&255,e[1]>>>6&255,(63&e[1])<<2|e[0]>>>24&3,e[0]>>>16&255,e[0]>>>8&255,255&e[0]])},o.prototype.clone=function(){var e=new o +e.words=new Array(this.length) +for(var t=0;t1&&0==(0|this.words[this.length-1]);)this.length-- +return this},o.prototype.normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.ucmp=function(e){if(this.length!==e.length)return this.length>e.length?1:-1 +for(var t=this.length-1;t>=0;--t)if(this.words[t]!==e.words[t])return this.words[t]>e.words[t]?1:-1 +return 0},o.prototype.gtOne=function(){return this.length>1||this.words[0]>1},o.prototype.isOverflow=function(){return this.ucmp(o.n)>=0},o.prototype.isHigh=function(){return 1===this.ucmp(o.nh)},o.prototype.bitLengthGT256=function(){return this.length>10||10===this.length&&this.words[9]>4194303},o.prototype.iuaddn=function(e){this.words[0]+=e +for(var t=0;this.words[t]>67108863&&te.length?(t=this,r=e):(t=e,r=this) +for(var n=0,i=0;n>>26}for(;0!==i&&n>>26 +if(this.length=t.length,0!==i)this.words[this.length++]=i +else if(t!==this)for(;n0?(t=this,r=e):(t=e,r=this) +for(var i=0,o=0;i>26,this.words[i]=67108863&a}for(;0!==o&&i>26,this.words[i]=67108863&a +if(0===o&&i>>26,u=67108863&i,l=Math.max(0,o-e.length+1),c=Math.min(o,t.length-1);l<=c;l++){var f=o-l,h=e.words[f]*t.words[l]+u +s+=h/67108864|0,u=67108863&h}r.words[o]=u,i=s}return 0!==i&&(r.words[r.length++]=i),r.strip()},o.umulTo10x10=Math.imul?i.umulTo10x10:o.umulTo,o.umulnTo=function(e,t,r){if(0===t)return r.words=[0],r.length=1,r +for(var n=0,i=0;n0?(r.words[n]=i,r.length=e.length+1):r.length=e.length,r},o.prototype.umul=function(e){var t=new o +return t.words=new Array(this.length+e.length),10===this.length&&10===e.length?o.umulTo10x10(this,e,t):1===this.length?o.umulnTo(e,this.words[0],t):1===e.length?o.umulnTo(this,e.words[0],t):o.umulTo(this,e,t)},o.prototype.isplit=function(e){e.length=Math.min(this.length,9) +for(var t=0;t>>22,r=n}return r>>>=22,this.words[t-10]=r,0===r&&this.length>10?this.length-=10:this.length-=9,this},o.prototype.fireduce=function(){return this.isOverflow()&&this.isub(o.n),this},o.prototype.ureduce=function(){var e=this.clone().isplit(o.tmp).umul(o.nc).iadd(o.tmp) +return e.bitLengthGT256()&&(e=e.isplit(o.tmp).umul(o.nc).iadd(o.tmp)).bitLengthGT256()&&(e=e.isplit(o.tmp).umul(o.nc).iadd(o.tmp)),e.fireduce()},o.prototype.ishrn=function(e){for(var t=(1<=0;--n){var o=this.words[n] +this.words[n]=i<>>e,i=o&t}return this.length>1&&0===this.words[this.length-1]&&(this.length-=1),this},o.prototype.uinvm=function(){for(var e=this.clone(),t=o.n.clone(),r=o.fromNumber(1),n=o.fromNumber(0),i=o.fromNumber(0),a=o.fromNumber(1);e.isEven()&&t.isEven();){for(var s=1,u=1;0==(e.words[0]&u)&&0==(t.words[0]&u)&&s<26;++s,u<<=1);e.ishrn(s),t.ishrn(s)}for(var l=t.clone(),c=e.clone();!e.isZero();){for(var f=0,h=1;0==(e.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(e.ishrn(f);f-- >0;)(r.isOdd()||n.isOdd())&&(r.iadd(l),n.isub(c)),r.ishrn(1),n.ishrn(1) +for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.ishrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(c)),i.ishrn(1),a.ishrn(1) +e.ucmp(t)>=0?(e.isub(t),r.isub(i),n.isub(a)):(t.isub(e),i.isub(r),a.isub(n))}if(1===i.negative){i.negative=0 +var m=i.ureduce() +return m.negative^=1,m.normSign().iadd(o.n)}return i.ureduce()},o.prototype.imulK=function(){this.words[this.length]=0,this.words[this.length+1]=0,this.length+=2 +for(var e=0,t=0;e0?this.isub(o.p):this.strip(),this},o.prototype.redNeg=function(){return this.isZero()?o.fromNumber(0):o.p.sub(this)},o.prototype.redAdd=function(e){return this.clone().redIAdd(e)},o.prototype.redIAdd=function(e){return this.iadd(e),this.ucmp(o.p)>=0&&this.isub(o.p),this},o.prototype.redIAdd7=function(){return this.iuaddn(7),this.ucmp(o.p)>=0&&this.isub(o.p),this},o.prototype.redSub=function(e){return this.clone().redISub(e)},o.prototype.redISub=function(e){return this.isub(e),0!==this.negative&&this.iadd(o.p),this},o.prototype.redMul=function(e){return this.umul(e).redIReduce()},o.prototype.redSqr=function(){return this.umul(this).redIReduce()},o.prototype.redSqrt=function(){if(this.isZero())return this.clone() +for(var e=this.redSqr(),t=e.redSqr(),r=t.redSqr().redMul(t),n=r.redMul(e),i=n.redMul(this),o=i,a=0;a<54;++a)o=o.redSqr().redSqr().redSqr().redSqr().redMul(i) +for(o=o.redSqr().redSqr().redSqr().redSqr().redMul(n),a=0;a<5;++a)o=o.redSqr().redSqr().redSqr().redSqr().redMul(i) +return 0===(o=(o=o.redSqr().redSqr().redSqr().redSqr().redMul(r)).redSqr().redSqr().redSqr().redSqr().redSqr().redSqr().redMul(r)).redSqr().ucmp(this)?o:null},o.prototype.redInvm=function(){for(var e,t=this.clone(),r=o.p.clone(),n=o.fromNumber(1),i=o.fromNumber(0);t.gtOne()&&r.gtOne();){for(var a=0,s=1;0==(t.words[0]&s)&&a<26;++a,s<<=1);if(a>0)for(t.ishrn(a);a-- >0;)n.isOdd()&&n.iadd(o.p),n.ishrn(1) +for(var u=0,l=1;0==(r.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(r.ishrn(u);u-- >0;)i.isOdd()&&i.iadd(o.p),i.ishrn(1) +t.ucmp(r)>=0?(t.isub(r),n.isub(i)):(r.isub(t),i.isub(n))}return 0!==(e=1===t.length&&1===t.words[0]?n:i).negative&&e.iadd(o.p),0!==e.negative?(e.negative=0,e.redIReduce().redNeg()):e.redIReduce()},o.prototype.getNAF=function(e){for(var t=[],r=1<>1,o=this.clone();!o.isZero();){for(var a=0,s=1;0==(o.words[0]&s)&&a<26;++a,s<<=1)t.push(0) +if(0!==a)o.ishrn(a) +else{var u=o.words[0]&n +if(u>=i)t.push(i-u),o.iuaddn(u-i).ishrn(1) +else if(t.push(u),o.words[0]-=u,!o.isZero()){for(a=e-1;a>0;--a)t.push(0) +o.ishrn(e)}}}return t},o.prototype.inspect=function(){if(this.isZero())return"0" +for(var e=this.toBuffer().toString("hex"),t=0;"0"===e[t];++t);return e.slice(t)},o.n=o.fromBuffer(n.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex")),o.nh=o.n.clone().ishrn(1),o.nc=o.fromBuffer(n.from("000000000000000000000000000000014551231950B75FC4402DA1732FC9BEBF","hex")),o.p=o.fromBuffer(n.from("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","hex")),o.psn=o.p.sub(o.n),o.tmp=new o,o.tmp.words=new Array(10),o.fromNumber(1).words[3]=0,e.exports=o},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(e===t)return 0 +for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;l--)if(c[l]!==f[l])return!1 +for(l=c.length-1;l>=0;l--)if(!b(e[s=c[l]],t[s],r,n))return!1 +return!0}(e,t,r,s))}return r?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1 +if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e) +try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function S(e,t,r,n){var i +if("function"!=typeof t)throw new TypeError('"block" argument must be a function') +"string"==typeof r&&(n=r,r=null),i=function(e){var t +try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n) +var o="string"==typeof n,s=!e&&i&&!r +if((!e&&a.isError(i)&&o&&_(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!_(i,r)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0) +var t=e.stackStartFunction||g +if(Error.captureStackTrace)Error.captureStackTrace(this,t) +else{var r=new Error +if(r.stack){var n=r.stack,i=p(t),o=n.indexOf("\n"+i) +if(o>=0){var a=n.indexOf("\n",o+1) +n=n.substring(a+1)}this.stack=n}}},a.inherits(h.AssertionError,Error),h.fail=g,h.ok=v,h.equal=function(e,t,r){e!=t&&g(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){b(e,t,!1)||g(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){b(e,t,!0)||g(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){b(e,t,!1)&&g(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){S(!0,e,t,r)},h.doesNotThrow=function(e,t,r){S(!1,e,t,r)},h.ifError=function(e){if(e)throw e} +var E=Object.keys||function(e){var t=[] +for(var r in e)s.call(e,r)&&t.push(r) +return t}}).call(this,r(6))},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e +switch(e){case"%s":return String(n[r++]) +case"%d":return Number(n[r++]) +case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),f(n,e,n.depth)}function l(e,t){var r=u.styles[t] +return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function c(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e) +return v(i)||(i=f(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined") +if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'" +return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r) +if(o)return o +var a=Object.keys(r),s=function(e){var t={} +return a.forEach(function(e,r){t[e]=!0}),t}() +if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r) +if(0===a.length){if(k(r)){var u=r.name?": "+r.name:"" +return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp") +if(S(r))return e.stylize(Date.prototype.toString.call(r),"date") +if(E(r))return h(r)}var l,c="",_=!1,x=["{","}"] +return p(r)&&(_=!0,x=["[","]"]),k(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(l,c,x)):x[0]+c+x[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u +if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),T(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===x(e)}function _(e){return"object"===n(e)&&null!==e}function S(e){return _(e)&&"[object Date]"===x(e)}function E(e){return _(e)&&("[object Error]"===x(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid +s[r]=function(){var e=t.format.apply(t,arguments) +console.error("%s %d: %s",r,n,e)}}else s[r]=function(){} +return s[r]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=b,t.isRegExp=w,t.isObject=_,t.isDate=S,t.isError=E,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=r(365) +var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] +function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":") +return[e.getDate(),A[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(2),t._extend=function(e,t){if(!t||!_(t))return e +for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]] +return e} +var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0 +function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value") +r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function') +if(C&&e[C]){var t +if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function') +return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o")}},{key:"data",get:function(){return this._data},set:function(e){throw new Error("Can't set property: 'data' is immutable")}},{key:"links",get:function(){return this._links},set:function(e){throw new Error("Can't set property: 'links' is immutable")}},{key:"size",get:function(){return void 0===this._size&&(this._size=this.links.reduce(function(e,t){return e+t.size},this._serializedSize)),this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}}])&&i(t.prototype,r),e}();(t=e.exports=a(s,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})).create=r(70),t.clone=r(509),t.addLink=r(510),t.rmLink=r(511)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(505),i=r(71).serialize,o=r(72).linkSort,a=r(69),s=r(28) +e.exports=function(e,r,u){if("function"==typeof e?(u=e,e=void 0):"string"==typeof e&&(e=t.from(e)),"function"==typeof r&&(u=r,r=[]),!t.isBuffer(e))return u(new Error("Passed 'data' is not a buffer or a string!")) +r=r.map(function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)}),r=n(r,o),i({data:e,links:r},function(t,n){return t?u(t):u(null,new a(e,r,n.length))})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(5),o=r(59)(r(506)),a=r(215),s=r(28),u=r(69),l=r(32),c=r(67),f=r(92) +function h(e,t){var r,n=e.data,i=e.links,a=void 0===i?[]:i +!u.isDAGNode(e)&&a&&(a=a.map(function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)})) +try{r=o.PBNode.encode(function(e){var t={} +return e.data&&e.data.length>0?t.Data=e.data:t.Data=null,e.links&&e.links.length>0?t.Links=e.links.map(function(e){return{Hash:e.cid.buffer,Name:e.name,Tsize:e.size}}):t.Links=null,t}({data:n,links:a}))}catch(e){return t(e)}t(null,r)}(t=e.exports).serialize=h,t.deserialize=function(e,t){var r=o.PBNode.decode(e),i=r.Links.map(function(e){return new s(e.Name,e.Tsize,e.Hash)}),a=null==r.Data?n.alloc(0):r.Data +f(function(){return t(null,new u(a,i,e.length))})},t.cid=function(e,t,r){"function"==typeof t&&(r=t,t={}) +var o=(t=t||{}).hashAlg||a.defaultHashAlg,s=t.version +void 0===s&&(s="sha2-256"===o?0:1),c([function(t){if(n.isBuffer(e))return t(null,e) +h(e,t)},function(e,t){return l(e,o,t)},function(e,t){return t(null,new i(s,a.multicodec,e))}],r)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(n){var i=r(28),o=r(71).cid;(t=e.exports).cloneData=function(e){var t +return e.data&&e.data.length>0?(t=n.alloc(e.data.length),e.data.copy(t)):t=n.alloc(0),t},t.cloneLinks=function(e){return e.links.slice()},t.linkSort=function(e,t){return n.compare(e.nameAsBuffer,t.nameAsBuffer)},t.toDAGLink=function(e,t,r){"function"==typeof t&&(r=t,t={}),o(e,t,function(n,o){if(n)return r(n) +r(null,new i(t.name||"",e.size,o))})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" +var n=r(20) +t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32),t.SHIFT16=Math.pow(2,16),t.MAX_SAFE_HIGH=2097151,t.NEG_ONE=new n(-1),t.TEN=new n(10),t.TWO=new n(2),t.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},,function(e,t){e.exports=function(e){console.warn(e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{} +return this.count.then(function(r){var n=l(r,t).map(function(t){return e.getById(t)}) +return Promise.all(n)})}},{key:"pinIpfsHashes",value:function(){var e=this +return this.count.then(function(t){var r=function(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);tt){var n=new Error("Too few bytes to parse DER.") +throw n.available=e.length(),n.remaining=t,n.requested=r,n}}o.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},o.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},o.create=function(e,t,r,n,a){if(i.util.isArray(n)){for(var s=[],u=0;ur){if(i.strict){var p=new Error("Too few bytes to read ASN.1 value.") +throw p.available=t.length(),p.remaining=r,p.requested=d,p}d=r}var m=32==(32&u) +if(m)if(f=[],void 0===d)for(;;){if(a(t,r,2),t.bytes(2)===String.fromCharCode(0,0)){t.getBytes(2),r-=2 +break}s=t.length(),f.push(e(t,r,n+1,i)),r-=s-t.length()}else for(;d>0;)s=t.length(),f.push(e(t,d,n+1,i)),r-=s-t.length(),d-=s-t.length() +if(void 0===f&&l===o.Class.UNIVERSAL&&c===o.Type.BITSTRING&&(h=t.bytes(d)),void 0===f&&i.decodeBitStrings&&l===o.Class.UNIVERSAL&&c===o.Type.BITSTRING&&d>1){var y=t.read,g=r,v=0 +if(c===o.Type.BITSTRING&&(a(t,r,1),v=t.getByte(),r--),0===v)try{s=t.length() +var b=e(t,r,n+1,{verbose:i.verbose,strict:!0,decodeBitStrings:!0}),w=s-t.length() +r-=w,c==o.Type.BITSTRING&&w++ +var _=b.tagClass +w!==d||_!==o.Class.UNIVERSAL&&_!==o.Class.CONTEXT_SPECIFIC||(f=[b])}catch(e){}void 0===f&&(t.read=y,r=g)}if(void 0===f){if(void 0===d){if(i.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.") +d=r}if(c===o.Type.BMPSTRING)for(f="";d>0;d-=2)a(t,r,2),f+=String.fromCharCode(t.getInt16()),r-=2 +else f=t.getBytes(d)}var S=void 0===h?null:{bitStringContents:h} +return o.create(l,c,m,f,S)}(e,e.length(),0,t)},o.toDer=function(e){var t=i.util.createBuffer(),r=e.tagClass|e.type,n=i.util.createBuffer(),a=!1 +if("bitStringContents"in e&&(a=!0,e.original&&(a=o.equals(e,e.original))),a)n.putBytes(e.bitStringContents) +else if(e.composed){e.constructed?r|=32:n.putByte(0) +for(var s=0;s1&&(0===e.value.charCodeAt(0)&&0==(128&e.value.charCodeAt(1))||255===e.value.charCodeAt(0)&&128==(128&e.value.charCodeAt(1)))?n.putBytes(e.value.substr(1)):n.putBytes(e.value) +if(t.putByte(r),n.length()<=127)t.putByte(127&n.length()) +else{var u=n.length(),l="" +do{l+=String.fromCharCode(255&u),u>>>=8}while(u>0) +for(t.putByte(128|l.length),s=l.length-1;s>=0;--s)t.putByte(l.charCodeAt(s))}return t.putBuffer(n),t},o.oidToDer=function(e){var t,r,n,o,a=e.split("."),s=i.util.createBuffer() +s.putByte(40*parseInt(a[0],10)+parseInt(a[1],10)) +for(var u=2;u>>=7,t||(o|=128),r.push(o),t=!1}while(n>0) +for(var l=r.length-1;l>=0;--l)s.putByte(r[l])}return s},o.derToOid=function(e){var t +"string"==typeof e&&(e=i.util.createBuffer(e)) +var r=e.getByte() +t=Math.floor(r/40)+"."+r%40 +for(var n=0;e.length()>0;)n<<=7,128&(r=e.getByte())?n+=127&r:(t+="."+(n+r),n=0) +return t},o.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10) +r=r>=50?1900+r:2e3+r +var n=parseInt(e.substr(2,2),10)-1,i=parseInt(e.substr(4,2),10),o=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),s=0 +if(e.length>11){var u=e.charAt(10),l=10 +"+"!==u&&"-"!==u&&(s=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,n,i),t.setUTCHours(o,a,s,0),l&&("+"===(u=e.charAt(l))||"-"===u)){var c=60*parseInt(e.substr(l+1,2),10)+parseInt(e.substr(l+4,2),10) +c*=6e4,"+"===u?t.setTime(+t-c):t.setTime(+t+c)}return t},o.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10)-1,i=parseInt(e.substr(6,2),10),o=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),u=0,l=0,c=!1 +"Z"===e.charAt(e.length-1)&&(c=!0) +var f=e.length-5,h=e.charAt(f) +return"+"!==h&&"-"!==h||(l=60*parseInt(e.substr(f+1,2),10)+parseInt(e.substr(f+4,2),10),l*=6e4,"+"===h&&(l*=-1),c=!0),"."===e.charAt(14)&&(u=1e3*parseFloat(e.substr(14),10)),c?(t.setUTCFullYear(r,n,i),t.setUTCHours(o,a,s,u),t.setTime(+t+l)):(t.setFullYear(r,n,i),t.setHours(o,a,s,u)),t},o.dateToUtcTime=function(e){if("string"==typeof e)return e +var t="",r=[] +r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds()) +for(var n=0;n=-128&&e<128)return t.putSignedInt(e,8) +if(e>=-32768&&e<32768)return t.putSignedInt(e,16) +if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24) +if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32) +var r=new Error("Integer too large; max is 32-bits.") +throw r.integer=e,r},o.derToInteger=function(e){"string"==typeof e&&(e=i.util.createBuffer(e)) +var t=8*e.length() +if(t>32)throw new Error("Integer too large; max is 32-bits.") +return e.getSignedInt(t)},o.validate=function(e,t,r,n){var a=!1 +if(e.tagClass!==t.tagClass&&void 0!==t.tagClass||e.type!==t.type&&void 0!==t.type)n&&(e.tagClass!==t.tagClass&&n.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&n.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"')) +else if(e.constructed===t.constructed||void 0===t.constructed){if(a=!0,t.value&&i.util.isArray(t.value))for(var s=0,u=0;a&&u0&&(n+="\n") +for(var a="",u=0;u1?n+="0x"+i.util.bytesToHex(e.value.slice(1)):n+="(none)",e.value.length>0){var h=e.value.charCodeAt(0) +1==h?n+=" (1 unused bit shown)":h>1&&(n+=" ("+h+" unused bits shown)")}}else e.type===o.Type.OCTETSTRING?(s.test(e.value)||(n+="("+e.value+") "),n+="0x"+i.util.bytesToHex(e.value)):e.type===o.Type.UTF8?n+=i.util.decodeUtf8(e.value):e.type===o.Type.PRINTABLESTRING||e.type===o.Type.IA5String?n+=e.value:s.test(e.value)?n+="0x"+i.util.bytesToHex(e.value):0===e.value.length?n+="[null]":n+=e.value}return n}},function(e,t,r){var n=r(8) +n.pki=n.pki||{} +var i=e.exports=n.pki.oids=n.oids=n.oids||{} +function o(e,t){i[e]=t,i[t]=e}function a(e,t){i[e]=t}o("1.2.840.113549.1.1.1","rsaEncryption"),o("1.2.840.113549.1.1.4","md5WithRSAEncryption"),o("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),o("1.2.840.113549.1.1.7","RSAES-OAEP"),o("1.2.840.113549.1.1.8","mgf1"),o("1.2.840.113549.1.1.9","pSpecified"),o("1.2.840.113549.1.1.10","RSASSA-PSS"),o("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),o("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),o("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),o("1.2.840.10040.4.3","dsa-with-sha1"),o("1.3.14.3.2.7","desCBC"),o("1.3.14.3.2.26","sha1"),o("2.16.840.1.101.3.4.2.1","sha256"),o("2.16.840.1.101.3.4.2.2","sha384"),o("2.16.840.1.101.3.4.2.3","sha512"),o("1.2.840.113549.2.5","md5"),o("1.2.840.113549.1.7.1","data"),o("1.2.840.113549.1.7.2","signedData"),o("1.2.840.113549.1.7.3","envelopedData"),o("1.2.840.113549.1.7.4","signedAndEnvelopedData"),o("1.2.840.113549.1.7.5","digestedData"),o("1.2.840.113549.1.7.6","encryptedData"),o("1.2.840.113549.1.9.1","emailAddress"),o("1.2.840.113549.1.9.2","unstructuredName"),o("1.2.840.113549.1.9.3","contentType"),o("1.2.840.113549.1.9.4","messageDigest"),o("1.2.840.113549.1.9.5","signingTime"),o("1.2.840.113549.1.9.6","counterSignature"),o("1.2.840.113549.1.9.7","challengePassword"),o("1.2.840.113549.1.9.8","unstructuredAddress"),o("1.2.840.113549.1.9.14","extensionRequest"),o("1.2.840.113549.1.9.20","friendlyName"),o("1.2.840.113549.1.9.21","localKeyId"),o("1.2.840.113549.1.9.22.1","x509Certificate"),o("1.2.840.113549.1.12.10.1.1","keyBag"),o("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),o("1.2.840.113549.1.12.10.1.3","certBag"),o("1.2.840.113549.1.12.10.1.4","crlBag"),o("1.2.840.113549.1.12.10.1.5","secretBag"),o("1.2.840.113549.1.12.10.1.6","safeContentsBag"),o("1.2.840.113549.1.5.13","pkcs5PBES2"),o("1.2.840.113549.1.5.12","pkcs5PBKDF2"),o("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),o("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),o("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),o("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),o("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),o("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),o("1.2.840.113549.2.7","hmacWithSHA1"),o("1.2.840.113549.2.8","hmacWithSHA224"),o("1.2.840.113549.2.9","hmacWithSHA256"),o("1.2.840.113549.2.10","hmacWithSHA384"),o("1.2.840.113549.2.11","hmacWithSHA512"),o("1.2.840.113549.3.7","des-EDE3-CBC"),o("2.16.840.1.101.3.4.1.2","aes128-CBC"),o("2.16.840.1.101.3.4.1.22","aes192-CBC"),o("2.16.840.1.101.3.4.1.42","aes256-CBC"),o("2.5.4.3","commonName"),o("2.5.4.5","serialName"),o("2.5.4.6","countryName"),o("2.5.4.7","localityName"),o("2.5.4.8","stateOrProvinceName"),o("2.5.4.10","organizationName"),o("2.5.4.11","organizationalUnitName"),o("2.16.840.1.113730.1.1","nsCertType"),a("2.5.29.1","authorityKeyIdentifier"),a("2.5.29.2","keyAttributes"),a("2.5.29.3","certificatePolicies"),a("2.5.29.4","keyUsageRestriction"),a("2.5.29.5","policyMapping"),a("2.5.29.6","subtreesConstraint"),a("2.5.29.7","subjectAltName"),a("2.5.29.8","issuerAltName"),a("2.5.29.9","subjectDirectoryAttributes"),a("2.5.29.10","basicConstraints"),a("2.5.29.11","nameConstraints"),a("2.5.29.12","policyConstraints"),a("2.5.29.13","basicConstraints"),o("2.5.29.14","subjectKeyIdentifier"),o("2.5.29.15","keyUsage"),a("2.5.29.16","privateKeyUsagePeriod"),o("2.5.29.17","subjectAltName"),o("2.5.29.18","issuerAltName"),o("2.5.29.19","basicConstraints"),a("2.5.29.20","cRLNumber"),a("2.5.29.21","cRLReason"),a("2.5.29.22","expirationDate"),a("2.5.29.23","instructionCode"),a("2.5.29.24","invalidityDate"),a("2.5.29.25","cRLDistributionPoints"),a("2.5.29.26","issuingDistributionPoint"),a("2.5.29.27","deltaCRLIndicator"),a("2.5.29.28","issuingDistributionPoint"),a("2.5.29.29","certificateIssuer"),a("2.5.29.30","nameConstraints"),o("2.5.29.31","cRLDistributionPoints"),o("2.5.29.32","certificatePolicies"),a("2.5.29.33","policyMappings"),a("2.5.29.34","policyConstraints"),o("2.5.29.35","authorityKeyIdentifier"),a("2.5.29.36","policyConstraints"),o("2.5.29.37","extKeyUsage"),a("2.5.29.46","freshestCRL"),a("2.5.29.54","inhibitAnyPolicy"),o("1.3.6.1.4.1.11129.2.4.2","timestampList"),o("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),o("1.3.6.1.5.5.7.3.1","serverAuth"),o("1.3.6.1.5.5.7.3.2","clientAuth"),o("1.3.6.1.5.5.7.3.3","codeSigning"),o("1.3.6.1.5.5.7.3.4","emailProtection"),o("1.3.6.1.5.5.7.3.8","timeStamping")},function(e,t,r){"use strict";(function(e,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=c,t.wrap=f +var o,a,s=(o=r(61))&&o.__esModule?o:{default:o},u=t.hasSetImmediate="function"==typeof e&&e,l=t.hasNextTick="object"===(void 0===n?"undefined":i(n))&&"function"==typeof n.nextTick +function c(e){setTimeout(e,0)}function f(e){return function(t){var r=(0,s.default)(arguments,1) +e(function(){t.apply(null,r)})}}a=u?e:l?n.nextTick:c,t.default=f(a)}).call(this,r(30).setImmediate,r(3))},function(e,t,r){"use strict" +e.exports=function(e,t){return e.then(function(e){t(null,e)},function(e){t(e)})}},function(e,t,r){"use strict" +e.exports=self.crypto||self.msCrypto},function(e,t,r){"use strict" +var n=t +n.bignum=r(62),n.define=r(318).define,n.base=r(322),n.constants=r(323),n.decoders=r(139),n.encoders=r(137)},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(87).Reporter,o=r(49).EncoderBuffer,a=r(49).DecoderBuffer,s=r(319),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u) +function c(e,t,r){var n={} +this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c +var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"] +c.prototype.clone=function(){var e=this._baseState,t={} +f.forEach(function(r){t[r]=e[r]}) +var r=new this.constructor(t.parent) +return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState +l.forEach(function(t){this[t]=function(){var r=new this.constructor(this) +return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState +s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this) +e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!==n(e)||e.constructor!==Object)return e +var t={} +return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0) +var n=e[r] +t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState +throw new Error(e+" not implemented for encoding: "+t.enc)}}),u.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments) +return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){s(e) +var t=this._baseState +return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState +return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState +return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState +return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments) +return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState +return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState +return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState +return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState +if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t)) +var n,i=r.default,o=!0,s=null +if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var u=null +if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(e,u,r.any),e.isError(o))return o}else{var l=e.save() +try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(l)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var c=this._decodeTag(e,r.explicit) +if(e.isError(c))return c +e=c}var f=e.offset +if(null===r.use&&null===r.choice){var h +r.any&&(h=e.save()) +var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any) +if(e.isError(d))return d +r.any?i=e.raw(h):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i +if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new a(i) +i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState +return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState +return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1 +return Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o] +try{var u=s._decode(e,t) +if(e.isError(u))return!1 +n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState +if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r) +if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var o=this._baseState +if(null===o.parent)return o.children[0]._encode(e,t||new i) +var a=null +if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return +e=o.default}var s=null,u=!1 +if(o.any)a=this._createEncoderBuffer(e) +else if(o.choice)a=this._encodeChoice(e,t) +else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),u=!0 +else if(o.children)s=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e) +if(null===r._baseState.key)return t.error("Child should have a key") +var i=t.enterKey(r._baseState.key) +if("object"!==n(e))return t.error("Child expected, but input is not object") +var o=r._encode(e[r._baseState.key],t,e) +return t.leaveKey(i),o},this).filter(function(e){return e}),s=this._createEncoderBuffer(s) +else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag) +if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array") +var l=this.clone() +l._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){var n=this._baseState +return this._getUse(n.args[0],e)._encode(r,t)},l))}else null!==o.use?a=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),u=!0) +if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,f=null===o.implicit?"universal":"context" +null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(c,u,f,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type] +return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState +if(/str$/.test(e))return this._encodeStr(t,e) +if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]) +if("objid"===e)return this._encodeObjid(t,null,null) +if("gentime"===e||"utctime"===e)return this._encodeTime(t,e) +if("null_"===e)return this._encodeNull() +if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]) +if("bool"===e)return this._encodeBool(t) +if("objDesc"===e)return this._encodeStr(t,e) +throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)}},function(e,t,r){"use strict" +var n=r(2) +function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState +return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState +t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState +t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState +this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj +return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj +return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o +if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t +return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState +return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict" +function n(e){var t={} +return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0) +var n=e[r] +t[n]=r}),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},function(e,t,r){(t=e.exports=r(146)).Stream=t,t.Readable=t,t.Writable=r(90),t.Duplex=r(26),t.Transform=r(149),t.PassThrough=r(341)},function(e,t,r){"use strict";(function(t,n,i){var o=r(63) +function a(e){var t=this +this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry +for(e.entry=null;n;){var i=n.callback +t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v +var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick +v.WritableState=g +var l=r(50) +l.inherits=r(2) +var c,f={deprecate:r(33)},h=r(147),d=r(7).Buffer,p=i.Uint8Array||function(){},m=r(148) +function y(){}function g(e,t){s=s||r(26),e=e||{} +var n=t instanceof s +this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode) +var i=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384 +this.highWaterMark=i||0===i?i:n&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1 +var f=!1===e.decodeStrings +this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb +if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,i) +else{var a=S(r) +a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(26),!(c.call(v,this)||this instanceof s))return new v(e) +this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function b(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function _(e,t){t.bufferProcessing=!0 +var r=t.bufferedRequest +if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree +o.entry=r +for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1 +i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback +if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=S(t) +return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(v,h),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next +return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===v&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof p) +return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end") +e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1 +return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}(t,n,i) +n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length +t.length+=s +var u=t.length-1))throw new TypeError("Unknown encoding: "+e) +return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState +"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(3),r(30).setImmediate,r(6))},function(e,t,r){var n=r(7).Buffer,i=r(145).Transform,o=r(11).StringDecoder +function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(2)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t)) +var i=this._update(e) +return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n +try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t +try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0) +return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings") +var n=this._decoder.write(e) +return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n,i=(n=r(82))&&n.__esModule?n:{default:n} +t.default=i.default,e.exports=t.default},function(e,t){e.exports=function(){}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.") +var t=e +e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0 +var n,i=(n=r(359))&&n.__esModule?n:{default:n},o="function"==typeof Symbol +function a(e){return o&&"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){return a(e)?(0,i.default)(e):e},t.isAsync=a},function(e,t,r){"use strict" +var n=r(35).codes.ERR_STREAM_PREMATURE_CLOSE +function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r) +r||(r={}),o=function(e){var t=!1 +return function(){if(!t){t=!0 +for(var r=arguments.length,n=new Array(r),i=0;i1;){var t=e.pop(),r=t.obj[t.prop] +if(o(r)){for(var n=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(o):s<128?i+=a[s]:s<2048?i+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?i+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(o)),i+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!==n(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,a){if(!r)return t +if("object"!==n(r)){if(o(t))t.push(r) +else{if(!t||"object"!==n(t))return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==n(t))return[t].concat(r) +var u=t +return o(t)&&!o(r)&&(u=s(t,a)),o(t)&&o(r)?(r.forEach(function(r,o){if(i.call(t,o)){var s=t[o] +s&&"object"===n(s)&&r&&"object"===n(r)?t[o]=e(s,r,a):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,n){var o=r[n] +return i.call(t,n)?t[n]=e(t[n],o,a):t[n]=o,t},u)}}},function(e,t,r){var n=r(206),i=r(469),o=r(123).EOL,a=r(470) +function s(e){return(e=e||{}).strict=!1!==e.strict,i(function(t){try{if(t)return JSON.parse(t)}catch(r){e.strict&&this.emit("error",new Error("Could not parse row "+t.slice(0,50)+"..."))}},e)}e.exports=s,e.exports.serialize=e.exports.stringify=function(e){return n.obj(e,function(e,t,r){r(null,a(e)+o)})},e.exports.parse=s},function(e,t,r){"use strict";(function(e){var n=r(20),i=r(73),o=i.SHIFT32,a=i.SHIFT16 +t.parseHalf=function(e){var t,r,n +return n=128&e[0]?-1:1,t=(124&e[0])>>2,r=(3&e[0])<<8|e[1],t?31===t?n*(r?NaN:1/0):n*Math.pow(2,t-25)*(1024+r):5.960464477539063e-8*n*r},t.arrayBufferToBignumber=function(e){for(var t,r=e.byteLength,i="",o=0;o2097151?new n(s).times(o).plus(u):s*o+u},t.writeHalf=function(t,r){var n=e.allocUnsafe(4) +n.writeFloatBE(r,0) +var i=n.readUInt32BE(0) +if(0!=(8191&i))return!1 +var o=i>>16&32768,a=i>>23&255,s=8388607&i +if(a>=113&&a<=142)o+=(a-112<<10)+(s>>13) +else{if(!(a>=103&&a<113))return!1 +if(s&(1<<126-a)-1)return!1 +o+=s+8388608>>126-a}return t.writeUInt16BE(o,0),!0},t.keySorter=function(e,t){var r=e[0].byteLength,n=t[0].byteLength +return r>n?1:n>r?-1:e[0].compare(t[0])},t.isNegativeZero=function(e){return 0===e&&1/e<0},t.nextPowerOf2=function(e){var t=0 +if(e&&!(e&e-1))return e +for(;0!==e;)e>>=1,t+=1 +return 1<this[a])return _(this,this[p].get(e)),!1 +var o=this[p].get(e).value +return this[f]&&(this[h]||this[f](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[s]+=i-o.length,o.length=i,this.get(e),w(this),!0}var l=new S(e,t,i,n,r) +return l.length>this[a]?(this[f]&&this[f](e,t),!1):(this[s]+=l.length,this[d].unshift(l),this[p].set(e,this[d].head),w(this),!0)}},{key:"has",value:function(e){if(!this[p].has(e))return!1 +var t=this[p].get(e).value +return!b(this,t)}},{key:"get",value:function(e){return v(this,e,!0)}},{key:"peek",value:function(e){return v(this,e,!1)}},{key:"pop",value:function(){var e=this[d].tail +return e?(_(this,e),e.value):null}},{key:"del",value:function(e){_(this,this[p].get(e))}},{key:"load",value:function(e){this.reset() +for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],i=n.e||0 +if(0===i)this.set(n.k,n.v) +else{var o=i-t +o>0&&this.set(n.k,n.v,o)}}}},{key:"prune",value:function(){var e=this +this[p].forEach(function(t,r){return v(e,r,!1)})}},{key:"max",set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number") +this[a]=e||1/0,w(this)},get:function(){return this[a]}},{key:"allowStale",set:function(e){this[l]=!!e},get:function(){return this[l]}},{key:"maxAge",set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number") +this[c]=e,w(this)},get:function(){return this[c]}},{key:"lengthCalculator",set:function(e){var t=this +"function"!=typeof e&&(e=y),e!==this[u]&&(this[u]=e,this[s]=0,this[d].forEach(function(e){e.length=t[u](e.value,e.key),t[s]+=e.length})),w(this)},get:function(){return this[u]}},{key:"length",get:function(){return this[s]}},{key:"itemCount",get:function(){return this[d].length}}])&&i(t.prototype,r),e}(),v=function(e,t,r){var n=e[p].get(t) +if(n){var i=n.value +if(b(e,i)){if(_(e,n),!e[l])return}else r&&(e[m]&&(n.value.now=Date.now()),e[d].unshiftNode(n)) +return i.value}},b=function(e,t){if(!t||!t.maxAge&&!e[c])return!1 +var r=Date.now()-t.now +return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},w=function(e){if(e[s]>e[a])for(var t=e[d].tail;e[s]>e[a]&&null!==t;){var r=t.prev +_(e,t),t=r}},_=function(e,t){if(t){var r=t.value +e[f]&&e[f](r.key,r.value),e[s]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}},S=function e(t,r,i,o,a){n(this,e),this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=a||0},E=function(e,t,r,n){var i=r.value +b(e,i)&&(_(e,r),e[l]||(i=void 0)),i&&t.call(n,i.value,i.key,e)} +e.exports=g},function(e,t,r){"use strict" +var n=r(24) +e.exports=function(e,t,r){"function"==typeof e.pipe?n(e,function(e,n){if(e)return r(e) +t(n,r)}):t(e,r)}},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r=0&&t<=A} +v.each=v.forEach=function(e,t,r){var n,i +if(t=w(t,r),C(e))for(n=0,i=e.length;n0?0:a-1 +for(i||(n=t[o?o[s]:s],s+=e);s>=0&&s=3 +return t(e,w(r,i,4),n,o)}} +v.reduce=v.foldl=v.inject=I(1),v.reduceRight=v.foldr=I(-1),v.find=v.detect=function(e,t,r){var n=(C(e)?v.findIndex:v.findKey)(e,t,r) +if(void 0!==n&&-1!==n)return e[n]},v.filter=v.select=function(e,t,r){var n=[] +return t=_(t,r),v.each(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n},v.reject=function(e,t,r){return v.filter(e,v.negate(_(t)),r)},v.every=v.all=function(e,t,r){t=_(t,r) +for(var n=!C(e)&&v.keys(e),i=(n||e).length,o=0;o=0},v.invoke=S(function(e,t,r){var n,i +return v.isFunction(t)?i=t:v.isArray(t)&&(n=t.slice(0,-1),t=t[t.length-1]),v.map(e,function(e){var o=i +if(!o){if(n&&n.length&&(e=M(e,n)),null==e)return +o=e[t]}return null==o?o:o.apply(e,r)})}),v.pluck=function(e,t){return v.map(e,v.property(t))},v.where=function(e,t){return v.filter(e,v.matcher(t))},v.findWhere=function(e,t){return v.find(e,v.matcher(t))},v.max=function(e,t,r){var n,o,a=-1/0,s=-1/0 +if(null==t||"number"==typeof t&&"object"!=i(e[0])&&null!=e)for(var u=0,l=(e=C(e)?e:v.values(e)).length;ua&&(a=n) +else t=_(t,r),v.each(e,function(e,r,n){((o=t(e,r,n))>s||o===-1/0&&a===-1/0)&&(a=e,s=o)}) +return a},v.min=function(e,t,r){var n,o,a=1/0,s=1/0 +if(null==t||"number"==typeof t&&"object"!=i(e[0])&&null!=e)for(var u=0,l=(e=C(e)?e:v.values(e)).length;un||void 0===r)return 1 +if(r0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1 +else if(r&&o&&s)return n[o=r(n,i)]===i?o:-1 +if(i!=i)return(o=t(f.call(n,a,s),v.isNaN))>=0?o+a:-1 +for(o=e>0?a:s-1;o>=0&&ot?(n&&(clearTimeout(n),n=null),s=l,a=e.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,c)),a} +return l.cancel=function(){clearTimeout(n),s=0,n=i=o=null},l},v.debounce=function(e,t,r){var n,i,o=function(t,r){n=null,r&&(i=e.apply(t,r))},a=S(function(a){if(n&&clearTimeout(n),r){var s=!n +n=setTimeout(o,t),s&&(i=e.apply(this,a))}else n=v.delay(o,t,this,a) +return i}) +return a.cancel=function(){clearTimeout(n),n=null},a},v.wrap=function(e,t){return v.partial(t,e)},v.negate=function(e){return function(){return!e.apply(this,arguments)}},v.compose=function(){var e=arguments,t=e.length-1 +return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n) +return n}},v.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},v.once=v.partial(v.before=function(e,t){var r +return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),v.restArguments=S +var D=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(e,t){var r=j.length,n=e.constructor,i=v.isFunction(n)&&n.prototype||u,o="constructor" +for(x(e,o)&&!v.contains(t,o)&&t.push(o);r--;)(o=j[r])in e&&e[o]!==i[o]&&!v.contains(t,o)&&t.push(o)} +v.keys=function(e){if(!v.isObject(e))return[] +if(m)return m(e) +var t=[] +for(var r in e)x(e,r)&&t.push(r) +return D&&F(e,t),t},v.allKeys=function(e){if(!v.isObject(e))return[] +var t=[] +for(var r in e)t.push(r) +return D&&F(e,t),t},v.values=function(e){for(var t=v.keys(e),r=t.length,n=Array(r),i=0;i1&&(n=w(n,t[1])),t=v.allKeys(e)):(n=K,t=R(t,!1,!1),e=Object(e)) +for(var i=0,o=t.length;i1&&(r=t[1])):(t=v.map(R(t,!1,!1),String),n=function(e,r){return!v.contains(t,r)}),v.pick(e,n,r)}),v.defaults=U(v.allKeys,!0),v.create=function(e,t){var r=E(e) +return t&&v.extendOwn(r,t),r},v.clone=function(e){return v.isObject(e)?v.isArray(e)?e.slice():v.extend({},e):e},v.tap=function(e,t){return t(e),e},v.isMatch=function(e,t){var r=v.keys(t),n=r.length +if(null==e)return!n +for(var i=Object(e),o=0;o":">",'"':""","'":"'","`":"`"},W=v.invert(V),G=function(e){var t=function(t){return e[t]},r="(?:"+v.keys(e).join("|")+")",n=RegExp(r),i=RegExp(r,"g") +return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,t):e}} +v.escape=G(V),v.unescape=G(W),v.result=function(e,t,r){v.isArray(t)||(t=[t]) +var n=t.length +if(!n)return v.isFunction(r)?r.call(e):r +for(var i=0;i/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g} +var Z=/(.)^/,J={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},X=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(e){return"\\"+J[e]} +v.template=function(e,t,r){!t&&r&&(t=r),t=v.defaults({},t,v.templateSettings) +var n,i=RegExp([(t.escape||Z).source,(t.interpolate||Z).source,(t.evaluate||Z).source].join("|")+"|$","g"),o=0,a="__p+='" +e.replace(i,function(t,r,n,i,s){return a+=e.slice(o,s).replace(X,Q),o=s+t.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?a+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n" +try{n=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return n.call(this,e,v)},u=t.variable||"obj" +return s.source="function("+u+"){\n"+a+"}",s},v.chain=function(e){var t=v(e) +return t._chain=!0,t} +var $=function(e,t){return e._chain?v(t).chain():t} +v.mixin=function(e){return v.each(v.functions(e),function(t){var r=v[t]=e[t] +v.prototype[t]=function(){var e=[this._wrapped] +return c.apply(e,arguments),$(this,r.apply(v,e))}}),v},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=s[e] +v.prototype[e]=function(){var r=this._wrapped +return t.apply(r,arguments),"shift"!==e&&"splice"!==e||0!==r.length||delete r[0],$(this,r)}}),v.each(["concat","join","slice"],function(e){var t=s[e] +v.prototype[e]=function(){return $(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(n=function(){return v}.apply(t,[]))||(r.exports=n)}()}).call(this,r(6),r(22)(e))},function(e,t,r){(function(t){r(120),e.exports={contribution:JSON.parse(t("ewogICIkc2NoZW1hIjogImh0dHBzOi8vanNvbi1zY2hlbWEub3JnL2RyYWZ0LTA3L3NjaGVtYSMiLAogICJpZCI6ICJodHRwczovL3NjaGVtYS5rb3Ntb3Mub3JnL0NvbnRyaWJ1dGlvbiIsCiAgInByb3BlcnRpZXMiOiB7CiAgICAiQGNvbnRleHQiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJlbnVtIjogWyAiaHR0cHM6Ly9zY2hlbWEua29zbW9zLm9yZyIgXSwKICAgICAgImRlZmF1bHQiOiAiaHR0cHM6Ly9zY2hlbWEua29zbW9zLm9yZyIKICAgIH0sCiAgICAiQHR5cGUiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJlbnVtIjogWyAiQ29udHJpYnV0aW9uIiBdLAogICAgICAiZGVmYXVsdCI6ICJDb250cmlidXRpb24iCiAgICB9LAogICAgImNvbnRyaWJ1dG9yIjogewogICAgICAicHJvcGVydGllcyI6IHsKICAgICAgICAiaXBmcyI6IHsKICAgICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgICAiZm9ybWF0IjogInVyaSIsCiAgICAgICAgICAidGl0bGUiOiAiSVBGUyBVUkkiLAogICAgICAgICAgImRlc2NyaXB0aW9uIjogIkFuIElQRlMgb2JqZWN0IFVSSSBjb250YWluaW5nIHByb2ZpbGUgaW5mb3JtYXRpb24gb2YgdGhlIGNvbnRyaWJ1dG9yIgogICAgICAgIH0KICAgICAgfSwKICAgICAgInJlcXVpcmVkIjogWwogICAgICAgICJpcGZzIgogICAgICBdLAogICAgICAidHlwZSI6ICJvYmplY3QiCiAgICB9LAogICAgImRhdGUiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJmb3JtYXQiOiAiZGF0ZSIsCiAgICAgICJ0aXRsZSI6ICJEYXRlIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkRhdGUgb2YgY29udHJpYnV0aW9uIChSRkMgMzMzOSBmdWxsLWRhdGUpIgogICAgfSwKICAgICJ0aW1lIjogewogICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAiZm9ybWF0IjogInRpbWUiLAogICAgICAidGl0bGUiOiAiVGltZSIsCiAgICAgICJkZXNjcmlwdGlvbiI6ICJUaW1lIG9mIGNvbnRyaWJ1dGlvbiAoUkZDIDMzMzkgZnVsbC10aW1lKSIKICAgIH0sCiAgICAia2luZCI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgInRpdGxlIjogIktpbmQiLAogICAgICAiZGVzY3JpcHRpb24iOiAiVHlwZS9jYXRlZ29yeSBvZiBjb250cmlidXRpb24iLAogICAgICAiZW51bSI6IFsKICAgICAgICAiZGV2IiwKICAgICAgICAiZGVzaWduIiwKICAgICAgICAib3BzIiwKICAgICAgICAiZG9jcyIsCiAgICAgICAgImNvbW11bml0eSIsCiAgICAgICAgInNwZWNpYWwiCiAgICAgIF0KICAgIH0sCiAgICAiZGVzY3JpcHRpb24iOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJ0aXRsZSI6ICJEZXNjcmlwdGlvbiIsCiAgICAgICJkZXNjcmlwdGlvbiI6ICJBIHN1bW1hcnkgb2YgdGhlIGNvbnRyaWJ1dGlvbi4gQ2FuIGJlIG1hbnVhbGx5IGVudGVyZWQgb3IgYXV0b21hdGljYWxseSBnZW5lcmF0ZWQuIgogICAgfSwKICAgICJ1cmwiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJmb3JtYXQiOiAidXJpIiwKICAgICAgInRpdGxlIjogIlVSTCIsCiAgICAgICJkZXNjcmlwdGlvbiI6ICJBIFVSTCBwb2ludGluZyB0byBodW1hbi1yZWFkYWJsZSBkZXRhaWxzIG9mIHRoZSBjb250cmlidXRpb24iCiAgICB9LAogICAgImRldGFpbHMiOiB7CiAgICAgICJ0eXBlIjogIm9iamVjdCIsCiAgICAgICJwcm9wZXJ0aWVzIjoge30KICAgIH0KICB9LAogICJyZXF1aXJlZCI6IFsKICAgICJjb250cmlidXRvciIsCiAgICAiZGF0ZSIsCiAgICAia2luZCIsCiAgICAiZGVzY3JpcHRpb24iCiAgXSwKICAidHlwZSI6ICJvYmplY3QiCn0K","base64")),contributor:JSON.parse(t("ewogICIkc2NoZW1hIjogImh0dHBzOi8vanNvbi1zY2hlbWEub3JnL2RyYWZ0LTA3L3NjaGVtYSMiLAogICJpZCI6ICJodHRwczovL3NjaGVtYS5rb3Ntb3Mub3JnL0NvbnRyaWJ1dG9yIiwKICAicHJvcGVydGllcyI6IHsKICAgICJAY29udGV4dCI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgImVudW0iOiBbICJodHRwczovL3NjaGVtYS5rb3Ntb3Mub3JnIiBdLAogICAgICAiZGVmYXVsdCI6ICJodHRwczovL3NjaGVtYS5rb3Ntb3Mub3JnIgogICAgfSwKICAgICJAdHlwZSI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgImVudW0iOiBbICJDb250cmlidXRvciIgXSwKICAgICAgImRlZmF1bHQiOiAiQ29udHJpYnV0b3IiCiAgICB9LAogICAgImtpbmQiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJ0aXRsZSI6ICJLaW5kIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkNhdGVnb3J5IG9mIGNvbnRyaWJ1dG9yIiwKICAgICAgImVudW0iOiBbCiAgICAgICAgInBlcnNvbiIsCiAgICAgICAgIm9yZ2FuaXphdGlvbiIsCiAgICAgICAgInJvYm90IgogICAgICBdCiAgICB9LAogICAgIm5hbWUiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICJ0aXRsZSI6ICJOYW1lIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkRpc3BsYXkgbmFtZSBvZiB0aGUgcGVyc29uLCBvcmdhbmlzYXRpb24sIHJvYm90LCBvciB3aGF0ZXZlciBlbnRpdHkgbWlnaHQgY29ucmlidXRlIGluIHRoZSBmdXR1cmUiCiAgICB9LAogICAgInVybCI6IHsKICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgImZvcm1hdCI6ICJ1cmkiLAogICAgICAidGl0bGUiOiAiVVJMIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkEgVVJMIHBvaW50aW5nIHRvIHRoZSBjb250cmlidXRvcidzIHdlYnNpdGUgb3IgcHJvZmlsZSBwYWdlIG9uIHRoZSBXZWIiCiAgICB9LAogICAgImFjY291bnRzIjogewogICAgICAiaXRlbXMiOiB7CiAgICAgICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgICAic2l0ZSI6IHsKICAgICAgICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgICAgICAgInRpdGxlIjogIlNpdGUiLAogICAgICAgICAgICAiZGVzY3JpcHRpb24iOiAiU2l0ZSBuYW1lIG9yIGRvbWFpbiwgZS5nLiAnZ2l0aHViLmNvbSciCiAgICAgICAgICB9LAogICAgICAgICAgInVzZXJuYW1lIjogewogICAgICAgICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAgICAgICAidGl0bGUiOiAiVXNlcm5hbWUiLAogICAgICAgICAgICAiZGVzY3JpcHRpb24iOiAiUHVibGljbHkgdmlzaWJsZSBuaWNrbmFtZS9oYW5kbGUgb2YgdGhlIHVzZXIiCiAgICAgICAgICB9LAogICAgICAgICAgInVpZCI6IHsKICAgICAgICAgICAgInR5cGUiOiAiaW50ZWdlciIsCiAgICAgICAgICAgICJ0aXRsZSI6ICJVc2VyIElEIiwKICAgICAgICAgICAgImRlc2NyaXB0aW9uIjogIkEgbnVtZXJpYyBhY2NvdW50IElEIgogICAgICAgICAgfSwKICAgICAgICAgICJ1cmwiOiB7CiAgICAgICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgICAgICJmb3JtYXQiOiAidXJpIiwKICAgICAgICAgICAgInRpdGxlIjogIlVSTCIsCiAgICAgICAgICAgICJkZXNjcmlwdGlvbiI6ICJBIFVSTCBwb2ludGluZyB0byB0aGUgYWNjb3VudCdzIHB1YmxpYyBwcm9maWxlIgogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgInJlcXVpcmVkIjogWwogICAgICAgICAgInNpdGUiLAogICAgICAgICAgInVzZXJuYW1lIgogICAgICAgIF0sCiAgICAgICAgInR5cGUiOiAib2JqZWN0IgogICAgICB9LAogICAgICAidHlwZSI6ICJhcnJheSIKICAgIH0KICB9LAogICJyZXF1aXJlZCI6IFsKICAgICJraW5kIiwKICAgICJuYW1lIgogIF0sCiAgInR5cGUiOiAib2JqZWN0Igp9Cg==","base64"))}}).call(this,r(0).Buffer)},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f] +for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l +else{if(o===u)return a?NaN:1/0*(d?-1:1) +a+=Math.pow(2,n),o-=l}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0 +for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,l-=8);e[r+d-p]|=128*m}},function(e,t){var r={}.toString +e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,r){var n=r(243).freshApi() +n.addFormat({date:function(e){return/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(e)?null:"A valid ISO 8601 full-date string is expected"},time:function(e){return/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/.test(e)?null:"A valid ISO 8601 full-time string is expected"}}),e.exports=n},function(e,t,r){function n(e,t){for(var r=0;r=0||!n.gcd(t.n).equals(o.ONE)) +for(var a=(e=e.multiply(n.modPow(t.e,t.n)).mod(t.n)).mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);a.compareTo(s)<0;)a=a.add(t.p) +var u=a.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s) +return u.multiply(n.modInverse(t.n)).mod(t.n)} +function m(e,t,r){var n=i.util.createBuffer(),o=Math.ceil(t.n.bitLength()/8) +if(e.length>o-11){var a=new Error("Message is too long for PKCS#1 v1.5 padding.") +throw a.length=e.length,a.max=o-11,a}n.putByte(0),n.putByte(r) +var s,u=o-3-e.length +if(0===r||1===r){s=0===r?0:255 +for(var l=0;l0;){var c=0,f=i.random.getBytes(u) +for(l=0;l1;){if(255!==a.getByte()){--a.read +break}++l}else if(2===u)for(l=0;a.length()>1;){if(0===a.getByte()){--a.read +break}++l}if(0!==a.getByte()||l!==o-3-a.length())throw new Error("Encryption block is invalid.") +return a.getBytes()}function g(e,t,r){"function"==typeof t&&(r=t,t={}) +var n={algorithm:{name:(t=t||{}).algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}} +function a(){u(e.pBits,function(t,n){return t?r(t):(e.p=n,null!==e.q?l(t,e.q):void u(e.qBits,l))})}function u(e,t){i.prime.generateProbablePrime(e,n,t)}function l(t,n){if(t)return r(t) +if(e.q=n,e.p.compareTo(e.q)<0){var i=e.p +e.p=e.q,e.q=i}if(0!==e.p.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.p=null,void a() +if(0!==e.q.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.q=null,void u(e.qBits,l) +if(e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(o.ONE))return e.p=e.q=null,void a() +if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void u(e.qBits,l) +var c=e.e.modInverse(e.phi) +e.keys={privateKey:s.rsa.setPrivateKey(e.n,e.e,c,e.p,e.q,c.mod(e.p1),c.mod(e.q1),e.q.modInverse(e.p)),publicKey:s.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}"prng"in t&&(n.prng=t.prng),a()}function v(e){var t=e.toString(16) +t[0]>="8"&&(t="00"+t) +var r=i.util.hexToBytes(t) +return r.length>1&&(0===r.charCodeAt(0)&&0==(128&r.charCodeAt(1))||255===r.charCodeAt(0)&&128==(128&r.charCodeAt(1)))?r.substr(1):r}function b(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function w(e){return"undefined"!=typeof window&&"object"===n(window.crypto)&&"object"===n(window.crypto.subtle)&&"function"==typeof window.crypto.subtle[e]}function _(e){return"undefined"!=typeof window&&"object"===n(window.msCrypto)&&"object"===n(window.msCrypto.subtle)&&"function"==typeof window.msCrypto.subtle[e]}function S(e){for(var t=i.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),n=0;n0;)c.putByte(0),--f +return c.putBytes(i.util.hexToBytes(l)),c.getBytes()},s.rsa.decrypt=function(e,t,r,n){var a=Math.ceil(t.n.bitLength()/8) +if(e.length!==a){var s=new Error("Encrypted message length is invalid.") +throw s.length=e.length,s.expected=a,s}var u=new o(i.util.createBuffer(e).toHex(),16) +if(u.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.") +for(var l=p(u,t,r).toString(16),c=i.util.createBuffer(),f=a-Math.ceil(l.length/2);f>0;)c.putByte(0),--f +return c.putBytes(i.util.hexToBytes(l)),!1!==n?y(c.getBytes(),t,r):c.getBytes()},s.rsa.createKeyPairGenerationState=function(e,t,r){"string"==typeof e&&(e=parseInt(e,10)),e=e||2048 +var n,a=(r=r||{}).prng||i.random,s={nextBytes:function(e){for(var t=a.getBytesSync(e.length),r=0;r>1,pBits:e-(e>>1),pqState:0,num:null,keys:null}).e.fromInt(n.eInt),n},s.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC") +var r=new o(null) +r.fromInt(30) +for(var n,i=0,a=function(e,t){return e|t},l=+new Date,c=0;null===e.keys&&(t<=0||cf?e.pqState=0:e.num.isProbablePrime(b(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(u[i++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state +else if(2===e.state)e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),++e.state +else if(3===e.state)0===e.phi.gcd(e.e).compareTo(o.ONE)?++e.state:(e.p=null,e.q=null,e.state=0) +else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0) +else if(5===e.state){var d=e.e.modInverse(e.phi) +e.keys={privateKey:s.rsa.setPrivateKey(e.n,e.e,d,e.p,e.q,d.mod(e.p1),d.mod(e.q1),e.q.modInverse(e.p)),publicKey:s.rsa.setPublicKey(e.n,e.e)}}c+=(n=+new Date)-l,l=n}return null!==e.keys},s.rsa.generateKeyPair=function(e,t,r,o){if(1===arguments.length?"object"===n(e)?(r=e,e=void 0):"function"==typeof e&&(o=e,e=void 0):2===arguments.length?"number"==typeof e?"function"==typeof t?(o=t,t=void 0):"number"!=typeof t&&(r=t,t=void 0):(r=e,o=t,e=void 0,t=void 0):3===arguments.length&&("number"==typeof t?"function"==typeof r&&(o=r,r=void 0):(o=r,r=t,t=void 0)),r=r||{},void 0===e&&(e=r.bits||2048),void 0===t&&(t=r.e||65537),!i.options.usePureJavaScript&&o&&e>=256&&e<=16384&&(65537===t||3===t)){if(w("generateKey")&&w("exportKey"))return window.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:S(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(e){return window.crypto.subtle.exportKey("pkcs8",e.privateKey)}).then(void 0,function(e){o(e)}).then(function(e){if(e){var t=s.privateKeyFromAsn1(a.fromDer(i.util.createBuffer(e))) +o(null,{privateKey:t,publicKey:s.setRsaPublicKey(t.n,t.e)})}}) +if(_("generateKey")&&_("exportKey")){var u=window.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:S(t),hash:{name:"SHA-256"}},!0,["sign","verify"]) +return u.oncomplete=function(e){var t=e.target.result,r=window.msCrypto.subtle.exportKey("pkcs8",t.privateKey) +r.oncomplete=function(e){var t=e.target.result,r=s.privateKeyFromAsn1(a.fromDer(i.util.createBuffer(t))) +o(null,{privateKey:r,publicKey:s.setRsaPublicKey(r.n,r.e)})},r.onerror=function(e){o(e)}},void(u.onerror=function(e){o(e)})}}var l=s.rsa.createKeyPairGenerationState(e,t,r) +if(!o)return s.rsa.stepKeyPairGenerationState(l,0),l.keys +g(l,r,o)},s.setRsaPublicKey=s.rsa.setPublicKey=function(e,t){var r={n:e,e:t,encrypt:function(e,t,n){if("string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,r){return m(e,t,2).getBytes()}} +else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return i.pkcs1.encode_rsa_oaep(t,e,n)}} +else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}} +else if("string"==typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".') +var o=t.encode(e,r,!0) +return s.rsa.encrypt(o,r,!0)},verify:function(e,t,n){"string"==typeof n?n=n.toUpperCase():void 0===n&&(n="RSASSA-PKCS1-V1_5"),"RSASSA-PKCS1-V1_5"===n?n={verify:function(e,t){return t=y(t,r,!0),e===a.fromDer(t).value[1].value}}:"NONE"!==n&&"NULL"!==n&&null!==n||(n={verify:function(e,t){return e===y(t,r,!0)}}) +var i=s.rsa.decrypt(t,r,!0,!1) +return n.verify(e,i,r.n.bitLength())}} +return r},s.setRsaPrivateKey=s.rsa.setPrivateKey=function(e,t,r,n,o,a,u,l){var c={n:e,e:t,d:r,p:n,q:o,dP:a,dQ:u,qInv:l,decrypt:function(e,t,r){"string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5") +var n=s.rsa.decrypt(e,c,!1,!1) +if("RSAES-PKCS1-V1_5"===t)t={decode:y} +else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return i.pkcs1.decode_rsa_oaep(t,e,r)}} +else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".') +t={decode:function(e){return e}}}return t.decode(n,c,!1)},sign:function(e,t){var r=!1 +"string"==typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:d},r=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},r=1) +var n=t.encode(e,c.n.bitLength()) +return s.rsa.encrypt(n,c,r)}} +return c},s.wrapRsaPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(e).getBytes())])},s.privateKeyFromAsn1=function(e){var t,r,n,u,f,h,d,p,m={},y=[] +if(a.validate(e,l,m,y)&&(e=a.fromDer(i.util.createBuffer(m.privateKey))),m={},y=[],!a.validate(e,c,m,y)){var g=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.") +throw g.errors=y,g}return t=i.util.createBuffer(m.privateKeyModulus).toHex(),r=i.util.createBuffer(m.privateKeyPublicExponent).toHex(),n=i.util.createBuffer(m.privateKeyPrivateExponent).toHex(),u=i.util.createBuffer(m.privateKeyPrime1).toHex(),f=i.util.createBuffer(m.privateKeyPrime2).toHex(),h=i.util.createBuffer(m.privateKeyExponent1).toHex(),d=i.util.createBuffer(m.privateKeyExponent2).toHex(),p=i.util.createBuffer(m.privateKeyCoefficient).toHex(),s.setRsaPrivateKey(new o(t,16),new o(r,16),new o(n,16),new o(u,16),new o(f,16),new o(h,16),new o(d,16),new o(p,16))},s.privateKeyToAsn1=s.privateKeyToRSAPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.e)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.d)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.p)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.q)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.dP)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.dQ)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.qInv))])},s.publicKeyFromAsn1=function(e){var t={},r=[] +if(a.validate(e,h,t,r)){var n,u=a.derToOid(t.publicKeyOid) +if(u!==s.oids.rsaEncryption)throw(n=new Error("Cannot read public key. Unknown OID.")).oid=u,n +e=t.rsaPublicKey}if(r=[],!a.validate(e,f,t,r))throw(n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=r,n +var l=i.util.createBuffer(t.publicKeyModulus).toHex(),c=i.util.createBuffer(t.publicKeyExponent).toHex() +return s.setRsaPublicKey(new o(l,16),new o(c,16))},s.publicKeyToAsn1=s.publicKeyToSubjectPublicKeyInfo=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,[s.publicKeyToRSAPublicKey(e)])])},s.publicKeyToRSAPublicKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,v(e.e))])}},function(e,t,r){var n,i=r(8) +function o(e,t,r){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function a(){return new o(null)}function s(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this.data[e],l=this.data[e++]>>14,c=s*u+l*a +i=((u=a*u+((16383&c)<<14)+r.data[n]+i)>>28)+(c>>14)+s*l,r.data[n++]=268435455&u}return i}e.exports=i.jsbn=i.jsbn||{},i.jsbn.BigInteger=o,"undefined"==typeof navigator?(o.prototype.am=s,n=28):"Microsoft Internet Explorer"==navigator.appName?(o.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this.data[e],l=this.data[e++]>>15,c=s*u+l*a +i=((u=a*u+((32767&c)<<15)+r.data[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r.data[n++]=1073741823&u}return i},n=30):"Netscape"!=navigator.appName?(o.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this.data[e++]+r.data[n]+i +i=Math.floor(a/67108864),r.data[n++]=67108863&a}return i},n=26):(o.prototype.am=s,n=28),o.prototype.DB=n,o.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function y(e){this.m=e}function g(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 E(e){for(var t=0;0!=e;)e&=e-1,++t +return t}function k(){}function x(e){return e}function M(e){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}y.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},y.prototype.revert=function(e){return e},y.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},y.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},y.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.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},g.prototype.revert=function(e){var t=a() +return e.copyTo(t),this.reduce(t),t},g.prototype.reduce=function(e){for(;e.t<=this.mt2;)e.data[e.t++]=0 +for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM +for(r=t+this.m.t,e.data[r]+=this.m.am(0,n,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},g.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},g.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.data[t]=this.data[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.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0},o.prototype.fromString=function(e,t){var r +if(16==t)r=4 +else if(8==t)r=3 +else if(256==t)r=8 +else if(2==t)r=1 +else if(32==t)r=5 +else{if(4!=t)return void this.fromRadix(e,t) +r=2}this.t=0,this.s=0 +for(var n=e.length,i=!1,a=0;--n>=0;){var s=8==r?255&e[n]:d(e,n) +s<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==a?this.data[this.t++]=s:a+r>this.DB?(this.data[this.t-1]|=(s&(1<>this.DB-a):this.data[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e;)--this.t},o.prototype.dlShiftTo=function(e,t){var r +for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r] +for(r=e-1;r>=0;--r)t.data[r]=0 +t.t=this.t+e,t.s=this.s},o.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t.data[r+a+1]=this.data[r]>>i|s,s=(this.data[r]&o)<=0;--r)t.data[r]=0 +t.data[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 r=Math.floor(e/this.DB) +if(r>=this.t)t.t=0 +else{var n=e%this.DB,i=this.DB-n,o=(1<>n +for(var a=r+1;a>n +n>0&&(t.data[this.t-r-1]|=(this.s&o)<>=this.DB +if(e.t>=this.DB +n+=this.s}else{for(n+=this.s;r>=this.DB +n-=e.s}t.s=n<0?-1:0,n<-1?t.data[r++]=this.DV+n:n>0&&(t.data[r++]=n),t.t=r,t.clamp()},o.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t +for(t.t=i+n.t;--i>=0;)t.data[i]=0 +for(i=0;i=0;)e.data[r]=0 +for(r=0;r=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()},o.prototype.divRemTo=function(e,t,r){var n=e.abs() +if(!(n.t<=0)){var i=this.abs() +if(i.t0?(n.lShiftTo(c,s),i.lShiftTo(c,r)):(n.copyTo(s),i.copyTo(r)) +var f=s.t,h=s.data[f-1] +if(0!=h){var d=h*(1<1?s.data[f-2]>>this.F2:0),p=this.FV/d,y=(1<=0&&(r.data[r.t++]=1,r.subTo(w,r)),o.ONE.dlShiftTo(f,w),w.subTo(s,s);s.t=0;){var _=r.data[--v]==h?this.DM:Math.floor(r.data[v]*p+(r.data[v-1]+g)*y) +if((r.data[v]+=s.am(0,_,r,b,0,f))<_)for(s.dlShiftTo(b,w),r.subTo(w,r);r.data[v]<--_;)r.subTo(w,r)}null!=t&&(r.drShiftTo(f,t),u!=l&&o.ZERO.subTo(t,t)),r.t=f,r.clamp(),c>0&&r.rShiftTo(c,r),u<0&&o.ZERO.subTo(r,r)}}},o.prototype.invDigit=function(){if(this.t<1)return 0 +var e=this.data[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.data[0]:this.s)},o.prototype.exp=function(e,t){if(e>4294967295||e<1)return o.ONE +var r=a(),n=a(),i=t.convert(this),s=m(e)-1 +for(i.copyTo(r);--s>=0;)if(t.sqrTo(r,n),(e&1<0)t.mulTo(n,i,r) +else{var u=r +r=n,n=u}return t.revert(r)},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 r,n=(1<0)for(s>s)>0&&(i=!0,o=h(r));a>=0;)s>(s+=this.DB-t)):(r=this.data[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=h(r)) +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 r=this.t +if(0!=(t=r-e.t))return this.s<0?-t:t +for(;--r>=0;)if(0!=(t=this.data[r]-e.data[r]))return t +return 0},o.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this.data[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 r +return r=e<256||t.isEven()?new y(t):new g(t),this.exp(e,r)},o.ZERO=p(0),o.ONE=p(1),k.prototype.convert=x,k.prototype.revert=x,k.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},k.prototype.sqrTo=function(e,t){e.squareTo(t)},M.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},M.prototype.revert=function(e){return e},M.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)},M.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},M.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)} +var A=[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],T=(1<<26)/A[A.length-1] +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),r=Math.pow(e,t),n=p(r),i=a(),o=a(),s="" +for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,i.divRemTo(n,i,o) +return o.intValue().toString(e)+s},o.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10) +for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,a=0,s=0,u=0;u=r&&(this.dMultiply(n),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,r){if("number"==typeof t)if(e<2)this.fromInt(1) +else for(this.fromNumber(e,r),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 n=new Array,i=7&e +n.length=1+(e>>3),t.nextBytes(n),i>0?n[0]&=(1<>=this.DB +if(e.t>=this.DB +n+=this.s}else{for(n+=this.s;r>=this.DB +n+=e.s}t.s=n<0?-1:0,n>0?t.data[r++]=n:n<-1&&(t.data[r++]=this.DV+n),t.t=r,t.clamp()},o.prototype.dMultiply=function(e){this.data[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.data[this.t++]=0 +for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}},o.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t) +for(r.s=0,r.t=i;i>0;)r.data[--i]=0 +for(n=r.t-this.t;i=0;)r.data[n]=0 +for(n=Math.max(t-this.t,0);n0)if(0==t)r=this.data[0]%e +else for(var n=this.t-1;n>=0;--n)r=(t*r+this.data[n])%e +return r},o.prototype.millerRabin=function(e){var t=this.subtract(o.ONE),r=t.getLowestSetBit() +if(r<=0)return!1 +for(var n,i=t.shiftRight(r),a={nextBytes:function(e){for(var t=0;t=0) +var u=n.modPow(i,this) +if(0!=u.compareTo(o.ONE)&&0!=u.compareTo(t)){for(var l=1;l++>24},o.prototype.shortValue=function(){return 0==this.t?this.s:this.data[0]<<16>>16},o.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},o.prototype.toByteArray=function(){var e=this.t,t=new Array +t[0]=this.s +var r,n=this.DB-e*this.DB%8,i=0 +if(e-- >0)for(n>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<=0;)n<8?(r=(this.data[e]&(1<>(n+=this.DB-8)):(r=this.data[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r) +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,v,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,w,t),t},o.prototype.andNot=function(e){var t=a() +return this.bitwiseTo(e,_,t),t},o.prototype.not=function(){for(var e=a(),t=0;t=this.t?0!=this.s:0!=(this.data[t]&1<1){var f=a() +for(n.sqrTo(s[1],f);u<=c;)s[u]=a(),n.mulTo(f,s[u-2],s[u]),u+=2}var h,d,v=e.t-1,b=!0,w=a() +for(i=m(e.data[v])-1;v>=0;){for(i>=l?h=e.data[v]>>i-l&c:(h=(e.data[v]&(1<0&&(h|=e.data[v-1]>>this.DB+i-l)),u=r;0==(1&h);)h>>=1,--u +if((i-=u)<0&&(i+=this.DB,--v),b)s[h].copyTo(o),b=!1 +else{for(;u>1;)n.sqrTo(o,w),n.sqrTo(w,o),u-=2 +u>0?n.sqrTo(o,w):(d=o,o=w,w=d),n.mulTo(w,s[h],o)}for(;v>=0&&0==(e.data[v]&1<=0?(r.subTo(n,r),t&&i.subTo(s,i),a.subTo(u,a)):(n.subTo(r,n),t&&s.subTo(i,s),u.subTo(a,u))}return 0!=n.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 k)},o.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone() +if(t.compareTo(r)<0){var n=t +t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit() +if(o<0)return t +for(i0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r)) +return o>0&&r.lShiftTo(o,r),r},o.prototype.isProbablePrime=function(e){var t,r=this.abs() +if(1==r.t&&r.data[0]<=A[A.length-1]){for(t=0;t>>=2,i=0;i>8^255&f^99,o[m]=f,a[f]=m,d=(h=e[f])<<24^f<<16^f<<8^f^h,p=((r=e[m])^(n=e[r])^(i=e[n]))<<24^(m^i)<<16^(m^n^i)<<8^m^r^i +for(var g=0;g<4;++g)u[g][m]=d,l[g][f]=p,d=d<<24|d>>>8,p=p<<24|p>>>8 +0===m?m=y=1:(m=r^e[e[e[r^i]]],y^=e[e[y]])}}function d(e,t){for(var r,n=e.slice(0),i=1,a=n.length,u=f*(a+6+1),c=a;c>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[i]<<24,i++):a>6&&c%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),n[c]=n[c-a]^r +if(t){for(var h,d=l[0],p=l[1],m=l[2],y=l[3],g=n.slice(0),v=(c=0,(u=n.length)-f);c>>24]]^p[o[h>>>16&255]]^m[o[h>>>8&255]]^y[o[255&h]] +n=g}return n}function p(e,t,r,n){var i,s,c,f,h,d,p,m,y,g,v,b,w=e.length/4-1 +n?(i=l[0],s=l[1],c=l[2],f=l[3],h=a):(i=u[0],s=u[1],c=u[2],f=u[3],h=o),d=t[0]^e[0],p=t[n?3:1]^e[1],m=t[2]^e[2],y=t[n?1:3]^e[3] +for(var _=3,S=1;S>>24]^s[p>>>16&255]^c[m>>>8&255]^f[255&y]^e[++_],v=i[p>>>24]^s[m>>>16&255]^c[y>>>8&255]^f[255&d]^e[++_],b=i[m>>>24]^s[y>>>16&255]^c[d>>>8&255]^f[255&p]^e[++_],y=i[y>>>24]^s[d>>>16&255]^c[p>>>8&255]^f[255&m]^e[++_],d=g,p=v,m=b +r[0]=h[d>>>24]<<24^h[p>>>16&255]<<16^h[m>>>8&255]<<8^h[255&y]^e[++_],r[n?3:1]=h[p>>>24]<<24^h[m>>>16&255]<<16^h[y>>>8&255]<<8^h[255&d]^e[++_],r[2]=h[m>>>24]<<24^h[y>>>16&255]<<16^h[d>>>8&255]<<8^h[255&p]^e[++_],r[n?1:3]=h[y>>>24]<<24^h[d>>>16&255]<<16^h[p>>>8&255]<<8^h[255&m]^e[++_]}function m(e){var t,r="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start +return t.start=function(e,r){var o=null +r instanceof n.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=e,i.call(t,r)},t}},function(e,t,r){var n=r(8) +r(9),e.exports=n.cipher=n.cipher||{},n.cipher.algorithms=n.cipher.algorithms||{},n.cipher.createCipher=function(e,t){var r=e +if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e) +return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},n.cipher.createDecipher=function(e,t){var r=e +if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e) +return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},n.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),n.cipher.algorithms[e]=t},n.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in n.cipher.algorithms?n.cipher.algorithms[e]:null} +var i=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)} +i.prototype.start=function(e){e=e||{} +var t={} +for(var r in e)t[r]=e[r] +t.decrypt=this._decrypt,this._finish=!1,this._input=n.util.createBuffer(),this.output=e.output||n.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)}) +var t={} +return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t)||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},function(e,t,r){var n=r(8) +r(9),n.cipher=n.cipher||{} +var i=e.exports=n.cipher.modes=n.cipher.modes||{} +function o(e){if("string"==typeof e&&(e=n.util.createBuffer(e)),n.util.isArray(e)&&e.length>4){var t=e +e=n.util.createBuffer() +for(var r=0;r0))return!0 +for(var n=0;n0))return!0 +for(var n=0;n0)return!1 +var r=e.length(),n=e.at(r-1) +return!(n>this.blockSize<<2||(e.truncate(n),0))},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.") +this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.") +this._iv=o(e.iv),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,r){if(e.length()0))return!0 +for(var n=0;n0))return!0 +for(var n=0;n0)return!1 +var r=e.length(),n=e.at(r-1) +return!(n>this.blockSize<<2||(e.truncate(n),0))},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") +this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,r){var n=e.length() +if(0===n)return!0 +if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize +else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 +t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,r){var n=e.length() +if(0===n)return!0 +if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize +else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 +t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") +this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,r){var n=e.length() +if(0===e.length())return!0 +if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0)e.read-=this.blockSize +else for(i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 +t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") +this._iv=o(e.iv),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,r){var n=e.length() +if(0===n)return!0 +if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 +t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.") +var t,r=n.util.createBuffer(e.iv) +if(this._cipherLength=0,t="additionalData"in e?n.util.createBuffer(e.additionalData):n.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=n.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.") +this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits) +var i=r.length() +if(12===i)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1] +else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]) +this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*i)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,t=n.util.createBuffer(t),this._aDataLength=s(8*t.length()) +var o=t.length()%this.blockSize +for(o&&t.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,r){var n=e.length() +if(0===n)return!0 +if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize){for(var i=0;i0&&(o=this.blockSize-o),this._partialOutput.clear(),i=0;i0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0 +t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,r){var n=e.length() +if(n0))return!0 +this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock) +for(var i=0;i0;--n)t[n]=e[n]>>>1|(1&e[n-1])<<31 +t[0]=e[0]>>>1,r&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=e[r/8|0]>>>4*(7-r%8)&15,i=this._m[r][n] +t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,o=new Array(i),a=0;a>>1,i=new Array(r) +i[n]=e.slice(0) +for(var o=n>>>1;o>0;)this.pow(i[2*o],i[o]=[]),o>>=1 +for(o=2;o=0;u--)C>>=8,C+=x.at(u)+T.at(u),T.setAt(u,255&C) +A.putBuffer(T)}w=A,f.putBuffer(E)}return f.truncate(f.length()-o),f},a.pbe.getCipher=function(e,t,r){switch(e){case a.oids.pkcs5PBES2:return a.pbe.getCipherForPBES2(e,t,r) +case a.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case a.oids["pbewithSHAAnd40BitRC2-CBC"]:return a.pbe.getCipherForPKCS12PBE(e,t,r) +default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.") +throw n.oid=e,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}},a.pbe.getCipherForPBES2=function(e,t,r){var i,s={},u=[] +if(!o.validate(t,l,s,u))throw(i=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=u,i +if((e=o.derToOid(s.kdfOid))!==a.oids.pkcs5PBKDF2)throw(i=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=e,i.supportedOids=["pkcs5PBKDF2"],i +if((e=o.derToOid(s.encOid))!==a.oids["aes128-CBC"]&&e!==a.oids["aes192-CBC"]&&e!==a.oids["aes256-CBC"]&&e!==a.oids["des-EDE3-CBC"]&&e!==a.oids.desCBC)throw(i=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=e,i.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],i +var c,f,d=s.kdfSalt,p=n.util.createBuffer(s.kdfIterationCount) +switch(p=p.getInt(p.length()<<3),a.oids[e]){case"aes128-CBC":c=16,f=n.aes.createDecryptionCipher +break +case"aes192-CBC":c=24,f=n.aes.createDecryptionCipher +break +case"aes256-CBC":c=32,f=n.aes.createDecryptionCipher +break +case"des-EDE3-CBC":c=24,f=n.des.createDecryptionCipher +break +case"desCBC":c=8,f=n.des.createDecryptionCipher}var m=h(s.prfOid),y=n.pkcs5.pbkdf2(r,d,p,c,m),g=s.encIv,v=f(y) +return v.start(g),v},a.pbe.getCipherForPKCS12PBE=function(e,t,r){var i={},s=[] +if(!o.validate(t,c,i,s))throw(m=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=s,m +var u,l,f,d=n.util.createBuffer(i.salt),p=n.util.createBuffer(i.iterations) +switch(p=p.getInt(p.length()<<3),e){case a.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:u=24,l=8,f=n.des.startDecrypting +break +case a.oids["pbewithSHAAnd40BitRC2-CBC"]:u=5,l=8,f=function(e,t){var r=n.rc2.createDecryptionCipher(e,40) +return r.start(t,null),r} +break +default:var m +throw(m=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=e,m}var y=h(i.prfOid),g=a.pbe.generatePkcs12Key(r,d,1,p,u,y) +return y.start(),f(g,a.pbe.generatePkcs12Key(r,d,2,p,l,y))},a.pbe.opensslDeriveBytes=function(e,t,r,i){if(null==i){if(!("md5"in n.md))throw new Error('"md5" hash algorithm unavailable.') +i=n.md.md5.create()}null===t&&(t="") +for(var o=[f(i,e+t)],a=16,s=1;a>=8 +return r.from(o)}}}).call(this,r(3),r(0).Buffer)},function(e,t,r){(function(t){function r(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var r +if(e instanceof Uint8Array)r=e +else if(e instanceof t)r=new Uint8Array(e) +else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array") +r=new Uint8Array(t.from(e,"utf8"))}return r},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,n){for(var i="\n"+e+" = ",o=0;o>6],i=0==(32&r) @@ -11295,15 +11473,15 @@ if("gentime"===t)r=0|u.slice(0,4),n=0|u.slice(4,6),i=0|u.slice(6,8),o=0|u.slice( else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet") r=0|u.slice(0,2),n=0|u.slice(2,4),i=0|u.slice(4,6),o=0|u.slice(6,8),a=0|u.slice(8,10),s=0|u.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,o,a,s,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8() return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var r=e.raw(),n=new i(r) -return t&&(n=t[n.toString(10)]||n),n},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){"use strict";(function(e){var n=r(84).bignum +return t&&(n=t[n.toString(10)]||n),n},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){"use strict";(function(e){var n=r(85).bignum t.toBase64=function(t,r){return t.toArrayLike(e,"be",r).toString("base64").replace(/(=*)$/,"").replace(/\+/g,"-").replace(/\//g,"_")},t.toBn=function(t){return new n(e.from(t,"base64"))}}).call(this,r(0).Buffer)},function(e){e.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_RANGE_INVALID:"private key range is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid",EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid",EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature",ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function",RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},function(e,t,r){"use strict" -var n=r(2),i=r(143),o=r(7).Buffer,a=new Array(16) +var n=r(2),i=r(144),o=r(7).Buffer,a=new Array(16) function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function l(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) var r=this._a,n=this._b,i=this._c,o=this._d r=l(r,n,i,o,e[0],3614090360,7),o=l(o,r,n,i,e[1],3905402710,12),i=l(i,o,r,n,e[2],606105819,17),n=l(n,i,o,r,e[3],3250441966,22),r=l(r,n,i,o,e[4],4118548399,7),o=l(o,r,n,i,e[5],1200080426,12),i=l(i,o,r,n,e[6],2821735955,17),n=l(n,i,o,r,e[7],4249261313,22),r=l(r,n,i,o,e[8],1770035416,7),o=l(o,r,n,i,e[9],2336552879,12),i=l(i,o,r,n,e[10],4294925233,17),n=l(n,i,o,r,e[11],2304563134,22),r=l(r,n,i,o,e[12],1804603682,7),o=l(o,r,n,i,e[13],4254626195,12),i=l(i,o,r,n,e[14],2792965006,17),r=c(r,n=l(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=f(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,r,n,i,e[8],2272392833,11),i=f(i,o,r,n,e[11],1839030562,16),n=f(n,i,o,r,e[14],4259657740,23),r=f(r,n,i,o,e[1],2763975236,4),o=f(o,r,n,i,e[4],1272893353,11),i=f(i,o,r,n,e[7],4139469664,16),n=f(n,i,o,r,e[10],3200236656,23),r=f(r,n,i,o,e[13],681279174,4),o=f(o,r,n,i,e[0],3936430074,11),i=f(i,o,r,n,e[3],3572445317,16),n=f(n,i,o,r,e[6],76029189,23),r=f(r,n,i,o,e[9],3654602809,4),o=f(o,r,n,i,e[12],3873151461,11),i=f(i,o,r,n,e[15],530742520,16),r=h(r,n=f(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() var e=o.allocUnsafe(16) return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(144).Transform +var n=r(7).Buffer,i=r(145).Transform function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(2)(o,i),o.prototype._transform=function(e,t,r){var n=null try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called") @@ -11318,33 +11496,33 @@ void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0 for(var r=0;r<4;++r)this._length[r]=0 return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){e.exports=i var n=r(13).EventEmitter -function i(){n.call(this)}r(2)(i,n),i.Readable=r(88),i.Writable=r(339),i.Duplex=r(340),i.Transform=r(341),i.PassThrough=r(342),i.Stream=i,i.prototype.pipe=function(e,t){var r=this +function i(){n.call(this)}r(2)(i,n),i.Readable=r(89),i.Writable=r(342),i.Duplex=r(343),i.Transform=r(344),i.PassThrough=r(345),i.Stream=i,i.prototype.pipe=function(e,t){var r=this function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u)) var a=!1 -function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var i=r(62) +function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var i=r(63) e.exports=b -var o,a=r(117) +var o,a=r(119) b.ReadableState=v,r(13).EventEmitter -var s=function(e,t){return e.listeners(t).length},u=r(146),l=r(7).Buffer,c=t.Uint8Array||function(){},f=r(50) +var s=function(e,t){return e.listeners(t).length},u=r(147),l=r(7).Buffer,c=t.Uint8Array||function(){},f=r(50) f.inherits=r(2) -var h=r(335),d=void 0 +var h=r(338),d=void 0 d=h&&h.debuglog?h.debuglog("stream"):function(){} -var p,m=r(336),y=r(147) +var p,m=r(339),y=r(148) f.inherits(b,u) var g=["error","close","destroy","pause","resume"] function v(e,t){e=e||{} -var n=t instanceof(o=o||r(25)) +var n=t instanceof(o=o||r(26)) this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode) var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384 -this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(11).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||r(25),!(this instanceof b))return new b(e) +this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(11).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||r(26),!(this instanceof b))return new b(e) this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end() r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n -return n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):A(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):M(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState -t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){d("emit readable"),e.emit("readable"),I(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(M,e,t))}function M(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n return e>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) -for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,E=0|this._d,k=0|this._e,x=0;x<80;x+=1){var A,M -x<16?(A=m(r,n,i,o,d,e[s[x]],f[0],l[x]),M=b(w,_,S,E,k,e[u[x]],h[0],c[x])):x<32?(A=y(r,n,i,o,d,e[s[x]],f[1],l[x]),M=v(w,_,S,E,k,e[u[x]],h[1],c[x])):x<48?(A=g(r,n,i,o,d,e[s[x]],f[2],l[x]),M=g(w,_,S,E,k,e[u[x]],h[2],c[x])):x<64?(A=v(r,n,i,o,d,e[s[x]],f[3],l[x]),M=y(w,_,S,E,k,e[u[x]],h[3],c[x])):(A=b(r,n,i,o,d,e[s[x]],f[4],l[x]),M=m(w,_,S,E,k,e[u[x]],h[4],c[x])),r=d,d=o,o=p(i,10),i=n,n=A,w=k,k=E,E=p(S,10),S=_,_=M}var T=this._b+i+E|0 +for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,E=0|this._d,k=0|this._e,x=0;x<80;x+=1){var M,A +x<16?(M=m(r,n,i,o,d,e[s[x]],f[0],l[x]),A=b(w,_,S,E,k,e[u[x]],h[0],c[x])):x<32?(M=y(r,n,i,o,d,e[s[x]],f[1],l[x]),A=v(w,_,S,E,k,e[u[x]],h[1],c[x])):x<48?(M=g(r,n,i,o,d,e[s[x]],f[2],l[x]),A=g(w,_,S,E,k,e[u[x]],h[2],c[x])):x<64?(M=v(r,n,i,o,d,e[s[x]],f[3],l[x]),A=y(w,_,S,E,k,e[u[x]],h[3],c[x])):(M=b(r,n,i,o,d,e[s[x]],f[4],l[x]),A=m(w,_,S,E,k,e[u[x]],h[4],c[x])),r=d,d=o,o=p(i,10),i=n,n=M,w=k,k=E,E=p(S,10),S=_,_=A}var T=this._b+i+E|0 this._b=this._c+o+k|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=T},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() var e=n.alloc?n.alloc(20):new n(20) return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase() var r=t[e] if(!r)throw new Error(e+" is not supported (we accept pull requests)") -return new r}).sha=r(343),t.sha1=r(344),t.sha224=r(345),t.sha256=r(151),t.sha384=r(346),t.sha512=r(152)},function(e,t,r){var n=r(2),i=r(33),o=r(7).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64) +return new r}).sha=r(346),t.sha1=r(347),t.sha224=r(348),t.sha256=r(152),t.sha384=r(349),t.sha512=r(153)},function(e,t,r){var n=r(2),i=r(34),o=r(7).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64) function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g) for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+d(r[g-15])+r[g-16] for(var v=0;v<64;++v){var b=y+h(u)+l(u,p,m)+a[v]+r[v]|0,w=f(n)+c(n,i,o)|0 y=m,m=p,p=u,u=s+b|0,s=o,o=i,i=n,n=b+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32) -return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(2),i=r(33),o=r(7).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160) -function u(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,E=0|this._dl,k=0|this._el,x=0|this._fl,A=0|this._gl,M=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4) -for(;T<160;T+=2){var C=t[T-30],I=t[T-30+1],O=d(C,I),P=p(I,C),R=m(C=t[T-4],I=t[T-4+1]),N=y(I,C),L=t[T-14],D=t[T-14+1],B=t[T-32],j=t[T-32+1],F=P+D|0,U=O+L+g(F,P)|0 -U=(U=U+R+g(F=F+N|0,N)|0)+B+g(F=F+j|0,j)|0,t[T]=U,t[T+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1] -var H=c(r,n,i),K=c(w,_,S),q=f(r,w),V=f(w,r),W=h(s,k),G=h(k,s),Y=a[z],Z=a[z+1],J=l(s,u,v),Q=l(k,x,A),X=M+G|0,$=b+W+g(X,M)|0 -$=($=($=$+J+g(X=X+Q|0,Q)|0)+Y+g(X=X+Z|0,Z)|0)+U+g(X=X+F|0,F)|0 +return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(2),i=r(34),o=r(7).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160) +function u(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,E=0|this._dl,k=0|this._el,x=0|this._fl,M=0|this._gl,A=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4) +for(;T<160;T+=2){var C=t[T-30],I=t[T-30+1],O=d(C,I),P=p(I,C),R=m(C=t[T-4],I=t[T-4+1]),N=y(I,C),L=t[T-14],B=t[T-14+1],D=t[T-32],j=t[T-32+1],F=P+B|0,U=O+L+g(F,P)|0 +U=(U=U+R+g(F=F+N|0,N)|0)+D+g(F=F+j|0,j)|0,t[T]=U,t[T+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1] +var H=c(r,n,i),K=c(w,_,S),q=f(r,w),V=f(w,r),W=h(s,k),G=h(k,s),Y=a[z],Z=a[z+1],J=l(s,u,v),X=l(k,x,M),Q=A+G|0,$=b+W+g(Q,A)|0 +$=($=($=$+J+g(Q=Q+X|0,X)|0)+Y+g(Q=Q+Z|0,Z)|0)+U+g(Q=Q+F|0,F)|0 var ee=V+K|0,te=q+H+g(ee,V)|0 -b=v,M=A,v=u,A=x,u=s,x=k,s=o+$+g(k=E+X|0,E)|0,o=i,E=S,i=n,S=_,n=r,_=w,r=$+te+g(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+k|0,this._fl=this._fl+x|0,this._gl=this._gl+A|0,this._hl=this._hl+M|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,x)|0,this._gh=this._gh+v+g(this._gl,A)|0,this._hh=this._hh+b+g(this._hl,M)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64) +b=v,A=M,v=u,M=x,u=s,x=k,s=o+$+g(k=E+Q|0,E)|0,o=i,E=S,i=n,S=_,n=r,_=w,r=$+te+g(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+k|0,this._fl=this._fl+x|0,this._gl=this._gl+M|0,this._hl=this._hl+A|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,x)|0,this._gh=this._gh+v+g(this._gl,M)|0,this._hh=this._hh+b+g(this._hl,A)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64) function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(63),o=r(154) +var n=r(7).Buffer,i=r(64),o=r(155) function a(e,t){null===e&&null===t?(this.x=this.y=null,this.inf=!0):(this.x=e,this.y=t,this.inf=!1)}a.fromPublicKey=function(e){var t,r,n=e[0] return 33!==e.length||2!==n&&3!==n?65!==e.length||4!==n&&6!==n&&7!==n?null:(t=i.fromBuffer(e.slice(1,33)),r=i.fromBuffer(e.slice(33,65)),t.ucmp(i.p)>=0||r.ucmp(i.p)>=0?null:6!==n&&7!==n||r.isOdd()===(7===n)?0!==t.redSqr().redMul(t).redIAdd7().ucmp(r.redSqr())?null:new a(t,r):null):(t=i.fromBuffer(e.slice(1,33))).ucmp(i.p)>=0?null:null===(r=t.redSqr().redMul(t).redIAdd7().redSqrt())?null:(3===n!==r.isOdd()&&(r=r.redNeg()),new a(t,r))},a.prototype.toPublicKey=function(e){var t,r=this.x,i=this.y return e?((t=n.alloc(33))[0]=i.isOdd()?3:2,r.toBuffer().copy(t,1)):((t=n.alloc(65))[0]=4,r.toBuffer().copy(t,1),i.toBuffer().copy(t,33)),t},a.fromECJPoint=function(e){if(e.inf)return new a(null,null) @@ -11455,7 +11633,7 @@ i=l>0?i.mixedAdd(r[l-1>>1]):i.mixedAdd(r[-l-1>>1].neg())}return a.fromECJPoint(i t[0]=this for(var r=this.dbl(),n=1;n0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):A(e,s,t,!0) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):M(e,s,t,!0) else if(s.ended)e.emit("error",new v) else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):O(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,O(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState +var A=8388608 +function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(I,e))}function I(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) var r}function j(e){var t=e._readableState o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){o("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState +return o("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState switch(i.pipesCount){case 0:i.pipes=e break case 1:i.pipes=[i.pipes,e] @@ -11535,7 +11713,7 @@ default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}) var l=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(r) e.on("drain",l) var c=!1 function f(t){o("ondata") @@ -11556,9 +11734,9 @@ return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.re for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) for(var a=0;a-1))throw new _(e) +e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e) return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this,r(6),r(3))},function(e,t,r){"use strict" e.exports=c -var n=r(34).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(35) +var n=r(35).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(36) function l(e,t){var r=this._transformState r.transforming=!1 var n=r.writecb @@ -11611,18 +11789,18 @@ if(null!=r&&e.push(r),e._writableState.length)throw new s if(e._transformState.transforming)throw new a return e.push(null)}r(2)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){"use strict";(function(t,n){var i e.exports=k,k.ReadableState=E,r(13).EventEmitter -var o,a=function(e,t){return e.listeners(t).length},s=r(173),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(408) +var o,a=function(e,t){return e.listeners(t).length},s=r(174),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(411) o=c&&c.debuglog?c.debuglog("stream"):function(){} -var f,h,d=r(409),p=r(174),m=r(175).getHighWaterMark,y=r(37).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(411).emitExperimentalWarning +var f,h,d=r(412),p=r(175),m=r(176).getHighWaterMark,y=r(38).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(414).emitExperimentalWarning r(2)(k,s) var S=["error","close","destroy","pause","resume"] -function E(e,t,n){i=i||r(38),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(38),!(this instanceof k))return new k(e) +function E(e,t,n){i=i||r(39),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(39),!(this instanceof k))return new k(e) var t=this instanceof i this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,i){o("readableAddChunk",t) var a,s=e._readableState @@ -11630,19 +11808,19 @@ if(null===t)s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decode r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,s) else if(i||(a=function(e,t){var r,n return n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)e.emit("error",a) -else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):A(e,s,t,!0) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):M(e,s,t,!0) else if(s.ended)e.emit("error",new v) else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):O(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,O(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState +var A=8388608 +function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(I,e))}function I(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) var r}function j(e){var t=e._readableState o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){o("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState +return o("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState switch(i.pipesCount){case 0:i.pipes=e break case 1:i.pipes=[i.pipes,e] @@ -11659,7 +11837,7 @@ default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}) var l=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(r) e.on("drain",l) var c=!1 function f(t){o("ondata") @@ -11680,9 +11858,9 @@ return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.re for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) for(var a=0;a-1))throw new _(e) +e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e) return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this,r(6),r(3))},function(e,t,r){"use strict" e.exports=c -var n=r(37).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(38) +var n=r(38).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(39) function l(e,t){var r=this._transformState r.transforming=!1 var n=r.writecb @@ -11742,22 +11920,22 @@ n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Obj return t=e,(r=[{key:"createObjectURL",value:function(e){return this.super.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){this.super.revokeObjectURL(e)}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}},{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin},set:function(e){this.super.origin=e}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams},set:function(e){this.super.searchParams=e}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}}])&&n(t.prototype,r),e}() e.exports={URLWithLegacySupport:a,URLSearchParams:self.URLSearchParams,defaultBase:i,format:function(e){if("string"==typeof e)return new o(e).toString() if(!(e instanceof o)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",a=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),l=e.hash||"",c=e.pathname||"",f=e.path||c+u -return"".concat(i).concat(t||r).concat(a||s+n).concat(f).concat(l)}}}},function(e,t,r){var n=r(421),i=n,o=self.URL +return"".concat(i).concat(t||r).concat(a||s+n).concat(f).concat(l)}}}},function(e,t,r){var n=r(424),i=n,o=self.URL e.exports={http:n,https:i,getRequest:function(e,t){var r="http:" -return"string"==typeof e?r=new o(e).protocol:e.protocol&&(r=e.protocol),"http:"===r?n.request(e,t):i.request(e,t)}}},function(e,t){function r(e){return"function"==typeof e}e.exports={fetch:"fetch"in self&&r(self.fecth),writableStream:"WritableStream"in self&&r(self.WritableStream),abortController:"AbortController"in self&&r(self.AbortController),arrayBuffer:"ArrayBuffer"in self}},function(e,t,r){(function(t,n){var i=r(180),o=r(2),a=r(182),s=function(e,r,o){var s=this +return"string"==typeof e?r=new o(e).protocol:e.protocol&&(r=e.protocol),"http:"===r?n.request(e,t):i.request(e,t)}}},function(e,t){function r(e){return"function"==typeof e}e.exports={fetch:"fetch"in self&&r(self.fecth),writableStream:"WritableStream"in self&&r(self.WritableStream),abortController:"AbortController"in self&&r(self.AbortController),arrayBuffer:"ArrayBuffer"in self}},function(e,t,r){(function(t,n){var i=r(181),o=r(2),a=r(183),s=function(e,r,o){var s=this if(a.Readable.call(this),this._mode=r,this.headers={},this.rawHeaders=[],this.trailers={},this.rawTrailers=[],this.on("end",function(){t.nextTick(function(){return s.emit("close")})}),this._fetchResponse=e,this.url=e.url,this.statusCode=e.status,this.statusMessage=e.statusText,e.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)}),i.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,r){s._destroyed?r():s.push(n.from(e))?t():s._resumeFetch=t})},close:function(){clearTimeout(o),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}}) try{return void e.body.pipeTo(u).catch(function(e){console.log(e),self.clearTimeout(o),s._destroyed||s.emit("error",e)})}catch(e){}}var l=e.body.getReader() !function e(t){l.read().then(function(r){if(!t._destroyed){if(r.done)return clearTimeout(o),void t.push(null) t.push(n.from(r.value)),e(t)}}).catch(function(e){clearTimeout(o),t._destroyed||t.emit("error",e)})}(this)} o(s,a.Readable),s.prototype._read=function(){var e=this._resumeFetch -e&&(this._resumeFetch=null,e())},e.exports=s}).call(this,r(3),r(0).Buffer)},function(e,t,r){(t=e.exports=r(183)).Stream=t,t.Readable=t,t.Writable=r(187),t.Duplex=r(40),t.Transform=r(188),t.PassThrough=r(428),t.finished=r(103),t.pipeline=r(429)},function(e,t,r){"use strict";(function(t,n){var i +e&&(this._resumeFetch=null,e())},e.exports=s}).call(this,r(3),r(0).Buffer)},function(e,t,r){(t=e.exports=r(184)).Stream=t,t.Readable=t,t.Writable=r(188),t.Duplex=r(41),t.Transform=r(189),t.PassThrough=r(431),t.finished=r(104),t.pipeline=r(432)},function(e,t,r){"use strict";(function(t,n){var i e.exports=k,k.ReadableState=E,r(13).EventEmitter -var o,a=function(e,t){return e.listeners(t).length},s=r(184),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(423) +var o,a=function(e,t){return e.listeners(t).length},s=r(185),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(426) o=c&&c.debuglog?c.debuglog("stream"):function(){} -var f,h,d=r(424),p=r(185),m=r(186).getHighWaterMark,y=r(39).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(426).emitExperimentalWarning +var f,h,d=r(427),p=r(186),m=r(187).getHighWaterMark,y=r(40).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(429).emitExperimentalWarning r(2)(k,s) var S=["error","close","destroy","pause","resume"] -function E(e,t,n){i=i||r(40),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(40),!(this instanceof k))return new k(e) +function E(e,t,n){i=i||r(41),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(41),!(this instanceof k))return new k(e) var t=this instanceof i this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,i){o("readableAddChunk",t) var a,s=e._readableState @@ -11765,19 +11943,19 @@ if(null===t)s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decode r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,s) else if(i||(a=function(e,t){var r,n return n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)e.emit("error",a) -else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):A(e,s,t,!0) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):M(e,s,t,!0) else if(s.ended)e.emit("error",new v) else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):O(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,O(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState +var A=8388608 +function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(I,e))}function I(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) var r}function j(e){var t=e._readableState o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){o("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState +return o("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState switch(i.pipesCount){case 0:i.pipes=e break case 1:i.pipes=[i.pipes,e] @@ -11794,7 +11972,7 @@ default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}) var l=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(r) e.on("drain",l) var c=!1 function f(t){o("ondata") @@ -11815,9 +11993,9 @@ return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.re for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) for(var a=0;a-1))throw new _(e) +e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e) return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this,r(6),r(3))},function(e,t,r){"use strict" e.exports=c -var n=r(39).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(40) +var n=r(40).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(41) function l(e,t){var r=this._transformState r.transforming=!1 var n=r.writecb @@ -11870,12 +12048,12 @@ if(null!=r&&e.push(r),e._writableState.length)throw new s if(e._transformState.transforming)throw new a return e.push(null)}r(2)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):A(e,s,t,!0) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):M(e,s,t,!0) else if(s.ended)e.emit("error",new v) else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):O(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,O(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState +var A=8388608 +function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(I,e))}function I(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) var r}function j(e){var t=e._readableState o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){o("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState +return o("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState switch(i.pipesCount){case 0:i.pipes=e break case 1:i.pipes=[i.pipes,e] @@ -11950,7 +12128,7 @@ default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}) var l=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(r) e.on("drain",l) var c=!1 function f(t){o("ondata") @@ -11971,9 +12149,9 @@ return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.re for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) for(var a=0;a-1))throw new _(e) +e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e) return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this,r(6),r(3))},function(e,t,r){"use strict" e.exports=c -var n=r(41).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(42) +var n=r(42).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(43) function l(e,t){var r=this._transformState r.transforming=!1 var n=r.writecb @@ -12085,12 +12263,12 @@ if(0===i.compare(e,257,263))e[345]&&(o=d(e,345,155,t)+"/"+o) else if(0!==a.compare(e,257,263)||0!==s.compare(e,263,265))throw new Error("Invalid tar header: unknown format.") return 0===r&&o&&"/"===o[o.length-1]&&(r=5),{name:o,mode:u,uid:l,gid:f,size:p,mtime:new Date(1e3*m),type:y,linkname:g,uname:v,gname:b,devmajor:w,devminor:_}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,n){var i e.exports=k,k.ReadableState=E,r(13).EventEmitter -var o,a=function(e,t){return e.listeners(t).length},s=r(200),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(448) +var o,a=function(e,t){return e.listeners(t).length},s=r(201),u=r(0).Buffer,l=t.Uint8Array||function(){},c=r(451) o=c&&c.debuglog?c.debuglog("stream"):function(){} -var f,h,d=r(449),p=r(201),m=r(202).getHighWaterMark,y=r(44).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(451).emitExperimentalWarning +var f,h,d=r(452),p=r(202),m=r(203).getHighWaterMark,y=r(45).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=r(454).emitExperimentalWarning r(2)(k,s) var S=["error","close","destroy","pause","resume"] -function E(e,t,n){i=i||r(45),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(45),!(this instanceof k))return new k(e) +function E(e,t,n){i=i||r(46),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(11).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function k(e){if(i=i||r(46),!(this instanceof k))return new k(e) var t=this instanceof i this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function x(e,t,r,n,i){o("readableAddChunk",t) var a,s=e._readableState @@ -12098,19 +12276,19 @@ if(null===t)s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decode r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}(e,s) else if(i||(a=function(e,t){var r,n return n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)e.emit("error",a) -else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):A(e,s,t,!0) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?e.emit("error",new w):M(e,s,t,!0) else if(s.ended)e.emit("error",new v) else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):O(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,O(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState +var A=8388608 +function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(I,e))}function I(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) var r}function j(e){var t=e._readableState o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){o("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):C(this),null if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState +return o("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new b("_read()"))},k.prototype.pipe=function(e,t){var r=this,i=this._readableState switch(i.pipesCount){case 0:i.pipes=e break case 1:i.pipes=[i.pipes,e] @@ -12127,7 +12305,7 @@ default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}) var l=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(r) e.on("drain",l) var c=!1 function f(t){o("ondata") @@ -12148,9 +12326,9 @@ return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.re for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) for(var a=0;a-1))throw new _(e) +e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e) return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this,r(6),r(3))},function(e,t,r){"use strict" e.exports=c -var n=r(44).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(45) +var n=r(45).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(46) function l(e,t){var r=this._transformState r.transforming=!1 var n=r.writecb @@ -12203,17 +12381,17 @@ if(null!=r&&e.push(r),e._writableState.length)throw new s if(e._transformState.transforming)throw new a return e.push(null)}r(2)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length=400||!r.statusCode)return function(e,t){var r=new Error("Server responded with ".concat(e.statusCode)) h(e,function(e,n){if(e)return t(e) @@ -12236,7 +12414,7 @@ var n=String.prototype.replace,i=/%20/g e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=e.pop(),r={} return Array.isArray(e[e.length-1])||"object"!==n(e[e.length-1])||(r=e.pop()),{callback:t,sources:1===e.length&&Array.isArray(e[0])?e[0]:e,opts:r}}},function(e,t,r){"use strict" -var n=r(10),i=n.Transform,o=n.PassThrough,a=r(15),s=r(109),u=r(96),l=function(e){return{name:e.Name,type:e.Type,size:e.Size,hash:e.Hash}} +var n=r(10),i=n.Transform,o=n.PassThrough,a=r(15),s=r(110),u=r(97),l=function(e){return{name:e.Name,type:e.Type,size:e.Size,hash:e.Hash}} e.exports=function(e){return function(t,r){r=r||{} var n=new i({objectMode:!0,transform:function(e,t,r){r(null,l(e))}}),c=new o({objectMode:!0}) return e({path:"files/ls",args:t,qs:Object.assign({},r,{stream:!0})},function(e,t){if(e)return c.destroy(e) @@ -12244,13 +12422,13 @@ if(u(t)){var r=s.parse() a(t,r,n,c)}else(t.Entries||[]).forEach(function(e){c.write(l(e))}),c.end()}),c}}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{get:r(491)(t),stat:r(494)(t),put:r(495)(t)}}},function(e,t,r){"use strict";(function(t){function n(e,t){for(var r=0;r0)return i(new Error("path out of scope")) if("object"===n(t.value)&&t.value["/"]){var r try{r=o.isCID(new o(t.value["/"]))}catch(e){r=!1}if(r)return i(null,t.value)}i(null,!1)})}},function(e,t,r){"use strict" -t.util=r(216),t.resolver=r(220)},function(e,t,r){"use strict";(function(n,i){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(509),s=r(31),u=r(5),l=r(513),c=r(220),f=42 +t.util=r(217),t.resolver=r(221)},function(e,t,r){"use strict";(function(n,i){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(512),s=r(32),u=r(5),l=r(516),c=r(221),f=42 function h(e){return"string"==typeof e?e=new u(e).buffer:u.isCID(e)&&(e=e.buffer),new a.Tagged(f,n.concat([n.from("00","hex"),e]))}var d,p,m,y=new a.Decoder({tags:(d={},p=f,m=function(e){return e=e.slice(1),new u(e)},p in d?Object.defineProperty(d,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[p]=m,d)});(t=e.exports).serialize=function(e,t){var r try{var s=function(e){var t try{t=l(e)}catch(e){t=!1}if(t)throw new Error("The object passed has circular references") @@ -12285,8 +12463,8 @@ try{r=y.decodeFirst(e)}catch(e){return i(function(){return t(e)})}i(function(){r var i=(r=r||{}).hashAlg||c.defaultHashAlg,o=r.hashLen,a=void 0===r.version?1:r.version t.serialize(e,function(e,t){if(e)return n(e) s(t,i,o,function(e,t){if(e)return n(e) -n(null,new u(a,c.multicodec,t))})})}}).call(this,r(0).Buffer,r(29).setImmediate)},function(e,t,r){"use strict";(function(t,n){function i(e,t){for(var r=0;r0)throw new Error("Missing ".concat(e.length," elements")) switch(e.type){case l.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1])) @@ -12326,7 +12504,7 @@ if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Erro if(0===this._res.length)throw new Error("No valid result")}},{key:"decodeFirst",value:function(e){return this._decode(e),this._res[0]}},{key:"decodeAll",value:function(e){return this._decode(e),this._res}},{key:"_depth",get:function(){return this._parents.length}},{key:"_currentParent",get:function(){return this._parents[this._depth-1]}},{key:"_ref",get:function(){return this._currentParent.ref}}])&&i(r.prototype,d),p&&i(r,p),e}() d.decodeFirst=d.decode,e.exports=d}).call(this,r(0).Buffer,r(6))},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r255||(0|t)!==t)throw new Error("value must be a small positive integer: "+t) this.value=t}var t,r,o return t=e,o=[{key:"isSimple",value:function(t){return t instanceof e}},{key:"decode",value:function(t,r){switch(null==r&&(r=!0),t){case s.FALSE:return!1 @@ -12343,7 +12521,7 @@ if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive i return t=e,(r=[{key:"toString",value:function(){return"".concat(this.tag,"(").concat(JSON.stringify(this.value),")")}},{key:"encodeCBOR",value:function(e){return e._pushTag(this.tag),e.pushAny(this.value)}},{key:"convert",value:function(t){var r,n if("function"!=typeof(n=null!=t?t[this.tag]:void 0)&&"function"!=typeof(n=e["_tag"+this.tag]))return this try{return n.call(e,this.value)}catch(e){return r=e,this.err=r,this}}}])&&i(t.prototype,r),e}() -e.exports=o},function(e,t,r){"use strict";(function(n){var i=r(216),o=r(515),a=r(5);(t=e.exports).multicodec="dag-cbor",t.defaultHashAlg="sha2-256",t.resolve=function(e,t,r){"function"==typeof t&&(r=t,t=void 0),i.deserialize(e,function(e,i){if(e)return r(e) +e.exports=o},function(e,t,r){"use strict";(function(n){var i=r(217),o=r(518),a=r(5);(t=e.exports).multicodec="dag-cbor",t.defaultHashAlg="sha2-256",t.resolve=function(e,t,r){"function"==typeof t&&(r=t,t=void 0),i.deserialize(e,function(e,i){if(e)return r(e) if(!t||"/"===t)return r(null,{value:i,remainderPath:""}) var a,s=t.split("/"),u=o(i).get(s) if(void 0!==u)return r(null,{value:u,remainderPath:""}) @@ -12359,7 +12537,35 @@ if("object"===n(t)?r=t:null!=t&&(o.code=t),r)for(i in r)o[i]=r[i] return o}},function(e,t,r){"use strict" var n=r(1),i=r(4) e.exports=function(e){var t=i(e) -return n(function(e){t({path:"shutdown"},e)})}},,,function(e,t,r){(function(r){var n,i,o,a,s +return n(function(e){t({path:"shutdown"},e)})}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(611),o=r(612) +e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new i(1),r=String(e).toLowerCase().trim(),a="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),s=o(r) +if("-"===s.substr(0,1)&&(s=o(s.slice(1)),t=new i(-1,10)),!(s=""===s?"0":s).match(/^-?[0-9]+$/)&&s.match(/^[0-9A-Fa-f]+$/)||s.match(/^[a-fA-F]+$/)||!0===a&&s.match(/^[0-9A-Fa-f]+$/))return new i(s,16).mul(t) +if((s.match(/^-?[0-9]+$/)||""===s)&&!1===a)return new i(s,10).mul(t)}else if("object"===n(e)&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new i(e.toString(10),10) +throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,r){var n=r(116),i=r(62),o=r(224),a=r(614),s=r(615),u=function(e){return e instanceof i||e&&e.constructor&&"BN"===e.constructor.name},l=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},c=function(e){try{return o.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},f=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||h(e))},h=function(e){e=e.replace(/^0x/i,"") +for(var t=g(e.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1 +return!0},d=function(e){var t="" +e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("") +for(var r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16)) +return"0x"+t.join("")},isHex:function(e){return(n.isString(e)||n.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},isHexStrict:y,leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 +return(n?"0x":"")+new Array(i).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 +return(n?"0x":"")+e+new Array(i).join(r||"0")},toTwosComplement:function(e){return"0x"+c(e).toTwos(256).toString(16,64)},sha3:g}},,,function(e,t,r){(function(r){var n,i,o,a,s function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}s=function(){return function e(t,r,n){function i(s,u){if(!r[s]){if(!t[s]){if(!u&&"function"==typeof a&&a)return a(s,!0) if(o)return o(s,!0) var l=new Error("Cannot find module '"+s+"'") @@ -12531,25 +12737,25 @@ for(e=encodeURI(e);r>4]+u[15&n])}return t.join("")}}),f={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],_=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],S=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],x=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] -function M(e){for(var t=[],r=0;r>4]+u[15&n])}return t.join("")}}),f={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],w=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],_=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],S=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],x=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],M=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] +function A(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t] for(var a,s=0,u=i;u>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^h[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24,t=i/2+1;t>2,c=u%4,this._Ke[l][c]=o[t],this._Kd[e-l][c]=o[t++],u++}for(var l=1;l>24&255]^k[a>>16&255]^x[a>>8&255]^A[255&a]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") -for(var t=this._Ke.length-1,r=[0,0,0,0],n=M(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] +for(a=o[i/2-1],o[i/2]^=d[255&a]^d[a>>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24,t=i/2+1;t>2,c=u%4,this._Ke[l][c]=o[t],this._Kd[e-l][c]=o[t++],u++}for(var l=1;l>24&255]^k[a>>16&255]^x[a>>8&255]^M[255&a]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") +for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] for(var o=1;o>24&255]^y[n[(i+1)%4]>>16&255]^g[n[(i+2)%4]>>8&255]^v[255&n[(i+3)%4]]^this._Ke[o][i] n=r.slice()}var s,u=a(16) for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+3)%4]]^s) return u},T.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)") -for(var t=this._Kd.length-1,r=[0,0,0,0],n=M(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] +for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] for(var o=1;o>24&255]^w[n[(i+3)%4]>>16&255]^_[n[(i+2)%4]>>8&255]^S[255&n[(i+1)%4]]^this._Kd[o][i] n=r.slice()}var s,u=a(16) for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(p[n[i]>>24&255]^s>>24),u[4*i+1]=255&(p[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(p[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(p[255&n[(i+1)%4]]^s) @@ -12701,7 +12907,7 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],A=8191&x,M=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,D=N>>>13,B=0|a[9],j=8191&B,F=B>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,Q=Z>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,h=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 var ye=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 l=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) @@ -12709,38 +12915,38 @@ var ge=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0 var ve=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,G)|0))<<13)|0 l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0 -var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,J)|0))<<13)|0 -l=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0 +var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,J)|0))<<13)|0 +l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0 var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0 -l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 +l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 var _e=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 var Se=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,Q)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 var Ee=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0 -l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 +l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 var ke=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var xe=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 -var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Q)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Me=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 -l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 +l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 +var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Ae=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 +l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(F,J)|0,o=Math.imul(F,X),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,he)|0 +l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 var Ce=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(k,pe)|0))<<13)|0 -l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 -var Ie=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0 -l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 +l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 +var Ie=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(A,pe)|0))<<13)|0 +l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 var Oe=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0 -l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0 var Pe=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0 l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,fe),i=(i=Math.imul(j,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) -var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(D,pe)|0))<<13)|0 -l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 +var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(B,pe)|0))<<13)|0 +l=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 var Ne=(l+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0 -return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Ae,u[11]=Me,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} +return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>1]:A<0&&(x=u[v][-A-1>>1].neg()),_="affine"===x.type?_.mixedAdd(x):_.add(x))}}for(f=0;f>1]:M<0&&(x=u[v][-M-1>>1].neg()),_="affine"===x.type?_.mixedAdd(x):_.add(x))}}for(f=0;f>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":38}],38:[function(e,t,r){"use strict" @@ -13252,8 +13458,8 @@ for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 s%r==0&&E(n)}return o&&(e=s<<2,t=n[a],0>8&255),2>16&255)),u} -var E=function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,A,M,T,C,I,O,P,R,N,L,D,B,j,F,U,z,H,K,q,V,W,G,Y,Z,J,Q,X,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce -for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~g&b,e[1]=y^~v&w,e[10]=x^~M&C,e[11]=A^~T&I,e[20]=L^~B&F,e[21]=D^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~b&_,e[3]=v^~w&S,e[12]=M^~C&O,e[13]=T^~I&P,e[22]=B^~F&z,e[23]=j^~U&H,e[32]=G^~Z&Q,e[33]=Y^~J&X,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~Q&$,e[35]=J^~X&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&m,e[7]=S^~k&y,e[16]=O^~R&x,e[17]=P^~N&A,e[26]=z^~K&L,e[27]=H^~q&D,e[36]=Q^~$&V,e[37]=X^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~m&g,e[9]=k^~y&v,e[18]=R^~x&M,e[19]=N^~A&T,e[28]=K^~L&B,e[29]=q^~D&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=s[n],e[1]^=s[n+1]} +var E=function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,M,A,T,C,I,O,P,R,N,L,B,D,j,F,U,z,H,K,q,V,W,G,Y,Z,J,X,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,M=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~g&b,e[1]=y^~v&w,e[10]=x^~A&C,e[11]=M^~T&I,e[20]=L^~D&F,e[21]=B^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~b&_,e[3]=v^~w&S,e[12]=A^~C&O,e[13]=T^~I&P,e[22]=D^~F&z,e[23]=j^~U&H,e[32]=G^~Z&X,e[33]=Y^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~X&$,e[35]=J^~Q&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&m,e[7]=S^~k&y,e[16]=O^~R&x,e[17]=P^~N&M,e[26]=z^~K&L,e[27]=H^~q&B,e[36]=X^~$&V,e[37]=Q^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~m&g,e[9]=k^~y&v,e[18]=R^~x&A,e[19]=N^~M&T,e[28]=K^~L&D,e[29]=q^~B&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=s[n],e[1]^=s[n+1]} if(i)t.exports=m else for(g=0;g>0&255),m.push(y[r]>>8&255),m.push(y[r]>>16&255),m.push(y[r]>>24&255) @@ -13366,17 +13572,17 @@ if("earliest"===e)return"0x0" if("latest"===e||"pending"===e)return e if("number"==typeof e)return l.hexStripZeros(l.hexlify(e)) if(l.isHexString(e))return l.hexStripZeros(e) -throw new Error("invalid blockTag")}var A={hash:S,blockHash:w(S,null),blockNumber:w(E,null),transactionIndex:w(E,null),confirmations:w(E,null),from:a.getAddress,gasPrice:s.bigNumberify,gasLimit:s.bigNumberify,to:w(a.getAddress,null),value:s.bigNumberify,nonce:E,data:l.hexlify,r:w(k),s:w(k),v:w(E),creates:w(a.getAddress,null),raw:w(l.hexlify)} -function M(e){if(null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&s.bigNumberify(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=a.getContractAddress(e)),!e.raw&&e.v&&e.r&&e.s){var t=[l.stripZeros(l.hexlify(e.nonce)),l.stripZeros(l.hexlify(e.gasPrice)),l.stripZeros(l.hexlify(e.gasLimit)),e.to||"0x",l.stripZeros(l.hexlify(e.value||"0x")),l.hexlify(e.data||"0x"),l.stripZeros(l.hexlify(e.v||"0x")),l.stripZeros(l.hexlify(e.r)),l.stripZeros(l.hexlify(e.s))] -e.raw=d.encode(t)}var r=b(A,e),n=e.networkId +throw new Error("invalid blockTag")}var M={hash:S,blockHash:w(S,null),blockNumber:w(E,null),transactionIndex:w(E,null),confirmations:w(E,null),from:a.getAddress,gasPrice:s.bigNumberify,gasLimit:s.bigNumberify,to:w(a.getAddress,null),value:s.bigNumberify,nonce:E,data:l.hexlify,r:w(k),s:w(k),v:w(E),creates:w(a.getAddress,null),raw:w(l.hexlify)} +function A(e){if(null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&s.bigNumberify(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=a.getContractAddress(e)),!e.raw&&e.v&&e.r&&e.s){var t=[l.stripZeros(l.hexlify(e.nonce)),l.stripZeros(l.hexlify(e.gasPrice)),l.stripZeros(l.hexlify(e.gasLimit)),e.to||"0x",l.stripZeros(l.hexlify(e.value||"0x")),l.hexlify(e.data||"0x"),l.stripZeros(l.hexlify(e.v||"0x")),l.stripZeros(l.hexlify(e.r)),l.stripZeros(l.hexlify(e.s))] +e.raw=d.encode(t)}var r=b(M,e),n=e.networkId return null!=e.chainId&&null==n&&null==r.v&&(n=e.chainId),l.isHexString(n)&&(n=s.bigNumberify(n).toNumber()),"number"!=typeof n&&null!=r.v&&((n=(r.v-35)/2)<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),r.networkId=n,r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}var T={hash:S,parentHash:S,number:E,timestamp:E,nonce:w(l.hexlify),difficulty:function(e){var t=s.bigNumberify(e) try{return t.toNumber()}catch(e){}return null},gasLimit:s.bigNumberify,gasUsed:s.bigNumberify,miner:a.getAddress,extraData:l.hexlify,transactions:w(_(S))},C=h.shallowCopy(T) -function I(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),b(t?C:T,e)}C.transactions=w(_(M)) +function I(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),b(t?C:T,e)}C.transactions=w(_(A)) var O={from:w(a.getAddress),nonce:w(E),gasLimit:w(s.bigNumberify),gasPrice:w(s.bigNumberify),to:w(a.getAddress),value:w(s.bigNumberify),data:w(l.hexlify)} function P(e){return b(O,e)}var R={transactionLogIndex:w(E),transactionIndex:E,blockNumber:E,transactionHash:S,address:a.getAddress,topics:_(S),data:l.hexlify,logIndex:E,blockHash:S},N={to:w(a.getAddress,null),from:w(a.getAddress,null),contractAddress:w(a.getAddress,null),transactionIndex:E,root:w(S),gasUsed:s.bigNumberify,logsBloom:w(l.hexlify),blockHash:S,transactionHash:S,logs:_(function(e){return b(R,e)}),blockNumber:E,confirmations:w(E,null),cumulativeGasUsed:s.bigNumberify,status:w(E)} -function L(e){return Array.isArray(e)?e.forEach(function(e){L(e)}):null!=e&&S(e),e}var D,B={fromBlock:w(x,void 0),toBlock:w(x,void 0),address:w(a.getAddress,void 0),topics:w(L,void 0)},j={blockHash:w(S,void 0),address:w(a.getAddress,void 0),topics:w(L,void 0)},F={blockNumber:w(E),blockHash:w(S),transactionIndex:E,removed:w(function(e){if("boolean"==typeof e)return e +function L(e){return Array.isArray(e)?e.forEach(function(e){L(e)}):null!=e&&S(e),e}var B,D={fromBlock:w(x,void 0),toBlock:w(x,void 0),address:w(a.getAddress,void 0),topics:w(L,void 0)},j={blockHash:w(S,void 0),address:w(a.getAddress,void 0),topics:w(L,void 0)},F={blockNumber:w(E),blockHash:w(S),transactionIndex:E,removed:w(function(e){if("boolean"==typeof e)return e if("string"==typeof e){if("true"===e)return!0 -if("false"===e)return!1}throw new Error("invaid boolean - "+e)}),address:a.getAddress,data:(D=l.hexlify,function(e){return e?D(e):"0x"}),topics:_(S),transactionHash:S,logIndex:E} +if("false"===e)return!1}throw new Error("invaid boolean - "+e)}),address:a.getAddress,data:(B=l.hexlify,function(e){return e?B(e):"0x"}),topics:_(S),transactionHash:S,logIndex:E} function U(e){return b(F,e)}function z(e){return e.map(function(e){return"string"==typeof e?e:Array.isArray(e)?(e.forEach(function(e){null!==e&&32!==l.hexDataLength(e)&&g.throwError("invalid topic",g.INVALID_ARGUMENT,{argument:"topic",value:e})}),e.join(",")):null===e?"":g.throwError("invalid topic value",g.INVALID_ARGUMENT,{argument:"topic",value:e})}).join("&")}function H(e){if("string"==typeof e){if(20===l.hexDataLength(e))return"address:"+a.getAddress(e) if(e=e.toLowerCase(),32===l.hexDataLength(e))return"tx:"+e if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter::"+z(e) @@ -13450,7 +13656,7 @@ if(null==o.blockNumber)o.confirmations=0 else if(null==o.confirmations)return t._getFastBlockNumber().then(function(e){var t=e-o.blockNumber+1 return t<=0&&(t=1),o.confirmations=t,o}) return o}})},{onceBlock:t})})})},t.prototype.getLogs=function(e){var t=this -return this.ready.then(function(){return h.resolveProperties(e).then(function(e){return t._resolveNames(e,["address"]).then(function(e){var r,n={filter:(r=e,r&&r.blockHash?b(j,r):b(B,r))} +return this.ready.then(function(){return h.resolveProperties(e).then(function(e){return t._resolveNames(e,["address"]).then(function(e){var r,n={filter:(r=e,r&&r.blockHash?b(j,r):b(D,r))} return t.perform("getLogs",n).then(function(e){return _(U)(e)})})})})},t.prototype.getEtherPrice=function(){var e=this return this.ready.then(function(){return e.perform("getEtherPrice",{}).then(function(e){return e})})},t.prototype._resolveNames=function(e,t){var r=[],n=h.shallowCopy(e) return t.forEach(function(e){null!=n[e]&&r.push(this.resolveName(n[e]).then(function(t){n[e]=t}))},this),Promise.all(r).then(function(){return n})},t.prototype._getResolver=function(e){var t=this @@ -13472,7 +13678,7 @@ if((t=t.substring(64)).length<64)return null var r=s.bigNumberify("0x"+t.substring(0,64)).toNumber() if(2*r>(t=t.substring(64)).length)return null var n=m.toUtf8String("0x"+t.substring(0,2*r)) -return i.resolveName(n).then(function(t){return t!=e?null:n})})},t.checkTransactionResponse=function(e){return M(e)},t.prototype.doPoll=function(){},t.prototype.perform=function(e,t){return g.throwError(e+" not implemented",g.NOT_IMPLEMENTED,{operation:e}),null},t.prototype._startPending=function(){g.warn("WARNING: this provider does not support pending events")},t.prototype._stopPending=function(){},t.prototype._addEventListener=function(e,t,r){this._events.push({tag:H(e),listener:t,once:r}),"pending"===e&&this._startPending(),this.polling=!0},t.prototype.on=function(e,t){return this._addEventListener(e,t,!1),this},t.prototype.once=function(e,t){return this._addEventListener(e,t,!0),this},t.prototype.addEventListener=function(e,t){return this.on(e,t)},t.prototype.emit=function(e){for(var t=this,r=[],n=1;n2&&void 0!==arguments[2]?arguments[2]:{} +n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(56),o=r(230),a=r(75),s={Contributor:r(231),Contribution:r(232),Token:r(233),Proposal:r(234),Kernel:r(235),Acl:r(236)},u=["Contributor","Contribution","Token","Proposal","Acl"],l=r(237),c=r(238),f=r(250),h=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{} !function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e) var i=n.addresses,o=n.abis,a=n.ipfsConfig this.provider=t,this.signer=r,this.options=n,this.addresses=i||{},this.abis=o||s,this.ipfs=new f(a),this.contracts={}}var t,r,h @@ -14384,11 +14590,11 @@ return this.kredits.ipfs._ipfsAPI.id().catch(function(t){throw new Error("IPFS n return e.kredits.provider.getCode(r.contract.address).then(function(n){if("0x00"===n||n.length<5)throw new Error("Contract for: ".concat(t," not found at ").concat(r.contract.address," on network ").concat(e.kredits.provider.chainId)) return!0})}) return Promise.all(t)})}}])&&r(t.prototype,n),e}() -e.exports=n},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contributorsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"contributorIds",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"MANAGE_CONTRIBUTORS_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributors",outputs:[{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"oldHashDigest",type:"bytes32"},{indexed:!1,name:"newHashDigest",type:"bytes32"}],name:"ContributorProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"oldAccount",type:"address"},{indexed:!1,name:"newAccount",type:"address"}],name:"ContributorAccountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"account",type:"address"}],name:"ContributorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"root",type:"address"},{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getTokenContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributionContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"coreContributorsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"id",type:"uint32"},{name:"oldAccount",type:"address"},{name:"newAccount",type:"address"}],name:"updateContributorAccount",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"id",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"updateContributorProfileHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"addContributor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"isCoreTeam",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"addressIsCore",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"addressExists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"getContributorIdByAddress",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"getContributorAddressById",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_id",type:"uint32"}],name:"getContributorById",outputs:[{name:"id",type:"uint32"},{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"isCore",type:"bool"},{name:"balance",type:"uint256"},{name:"totalKreditsEarned",type:"uint32"},{name:"contributionsCount",type:"uint256"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ADD_CONTRIBUTION_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contributionsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributionOwner",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributions",outputs:[{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"claimed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"tokenMetadataURL",type:"string"},{name:"confirmedAtBlock",type:"uint256"},{name:"vetoed",type:"bool"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"},{name:"",type:"uint256"}],name:"ownedContributions",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"blocksToWait",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VETO_CONTRIBUTION_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!0,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ContributionAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!0,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ContributionClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"vetoedByAccount",type:"address"}],name:"ContributionVetoed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getTokenContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributorContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorAccount",type:"address"}],name:"getContributorIdByAddress",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorId",type:"uint32"}],name:"getContributorAddressById",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"ownerOf",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"},{name:"index",type:"uint32"}],name:"tokenOfOwnerByIndex",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"tokenMetadata",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"confirmedOnly",type:"bool"}],name:"totalKreditsEarned",outputs:[{name:"amount",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorId",type:"uint32"},{name:"confirmedOnly",type:"bool"}],name:"totalKreditsEarnedByContributor",outputs:[{name:"amount",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"getContribution",outputs:[{name:"id",type:"uint32"},{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"claimed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"confirmedAtBlock",type:"uint256"},{name:"exists",type:"bool"},{name:"vetoed",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint32"},{name:"contributorId",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"add",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributionId",type:"uint32"}],name:"veto",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributionId",type:"uint32"}],name:"claim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"_totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"_balances",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINT_TOKEN_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"recipient",type:"address"},{indexed:!1,name:"amount",type:"uint256"},{indexed:!1,name:"contributionId",type:"uint32"}],name:"LogMint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributorAccount",type:"address"},{name:"amount",type:"uint256"},{name:"contributionId",type:"uint32"}],name:"mintFor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"proposalsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"proposals",outputs:[{name:"creatorAccount",type:"address"},{name:"contributorId",type:"uint32"},{name:"votesCount",type:"uint16"},{name:"votesNeeded",type:"uint16"},{name:"amount",type:"uint32"},{name:"executed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VOTE_PROPOSAL_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ADD_PROPOSAL_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"creatorAccount",type:"address"},{indexed:!1,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"voterId",type:"uint32"},{indexed:!1,name:"totalVotes",type:"uint16"}],name:"ProposalVoted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getContributorContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributionContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"addProposal",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"proposalId",type:"uint32"}],name:"getProposal",outputs:[{name:"id",type:"uint32"},{name:"creatorAccount",type:"address"},{name:"contributorId",type:"uint32"},{name:"votesCount",type:"uint16"},{name:"votesNeeded",type:"uint16"},{name:"amount",type:"uint32"},{name:"executed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"voterIds",type:"uint32[]"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"proposalId",type:"uint32"}],name:"vote",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_proposalIds",type:"uint32[]"}],name:"batchVote",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"},{name:"",type:"bytes32"}],name:"apps",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"recoveryVaultAppId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"APP_MANAGER_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"},{name:"_initializePayload",type:"bytes"}],name:"newAppProxyPinned",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"}],name:"newAppProxy",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"},{name:"_initializePayload",type:"bytes"}],name:"newAppProxy",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"}],name:"newAppProxyPinned",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_shouldPetrify",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"},{indexed:!1,name:"isUpgradeable",type:"bool"},{indexed:!1,name:"appId",type:"bytes32"}],name:"NewAppProxy",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"namespace",type:"bytes32"},{indexed:!0,name:"appId",type:"bytes32"},{indexed:!1,name:"app",type:"address"}],name:"SetApp",type:"event"},{constant:!1,inputs:[{name:"_baseAcl",type:"address"},{name:"_permissionsCreator",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"},{name:"_initializePayload",type:"bytes"},{name:"_setDefault",type:"bool"}],name:"newAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"}],name:"newAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"}],name:"newPinnedAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"},{name:"_initializePayload",type:"bytes"},{name:"_setDefault",type:"bool"}],name:"newPinnedAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_namespace",type:"bytes32"},{name:"_appId",type:"bytes32"},{name:"_app",type:"address"}],name:"setApp",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_recoveryVaultAppId",type:"bytes32"}],name:"setRecoveryVaultAppId",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"CORE_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"APP_BASES_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ID",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"DEFAULT_ACL_APP_ID",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[{name:"_namespace",type:"bytes32"},{name:"_appId",type:"bytes32"}],name:"getApp",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"acl",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"bytes"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NO_PERMISSION",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CREATE_PERMISSIONS_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ANY_ENTITY",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"EMPTY_PARAM_HASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"BURN_ENTITY",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"entity",type:"address"},{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!1,name:"allowed",type:"bool"}],name:"SetPermission",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"entity",type:"address"},{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!1,name:"paramsHash",type:"bytes32"}],name:"SetPermissionParams",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!0,name:"manager",type:"address"}],name:"ChangePermissionManager",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_permissionsCreator",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_manager",type:"address"}],name:"createPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"grantPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"grantPermissionP",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"revokePermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_newManager",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"setPermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"removePermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"createBurnedPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"burnPermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"getPermissionParamsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_index",type:"uint256"}],name:"getPermissionParam",outputs:[{name:"",type:"uint8"},{name:"",type:"uint8"},{name:"",type:"uint240"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"getPermissionManager",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"bytes"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_paramsHash",type:"bytes32"},{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"evalParams",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports={4:"0xc34edf7d11b7f8433d597f0bb0697acdff55ef14"}},function(e,t,r){e.exports={Contributor:r(236),Contribution:r(242),Proposal:r(243),Token:r(244),Kernel:r(245),Acl:r(246)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e){return function(){var t=this,r=arguments +e.exports=n},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contributorsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"contributorIds",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"MANAGE_CONTRIBUTORS_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributors",outputs:[{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"oldHashDigest",type:"bytes32"},{indexed:!1,name:"newHashDigest",type:"bytes32"}],name:"ContributorProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"oldAccount",type:"address"},{indexed:!1,name:"newAccount",type:"address"}],name:"ContributorAccountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"account",type:"address"}],name:"ContributorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"root",type:"address"},{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getTokenContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributionContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"coreContributorsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"id",type:"uint32"},{name:"oldAccount",type:"address"},{name:"newAccount",type:"address"}],name:"updateContributorAccount",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"id",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"updateContributorProfileHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"addContributor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"isCoreTeam",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"addressIsCore",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"addressExists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"account",type:"address"}],name:"getContributorIdByAddress",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"id",type:"uint32"}],name:"getContributorAddressById",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_id",type:"uint32"}],name:"getContributorById",outputs:[{name:"id",type:"uint32"},{name:"account",type:"address"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"isCore",type:"bool"},{name:"balance",type:"uint256"},{name:"totalKreditsEarned",type:"uint32"},{name:"contributionsCount",type:"uint256"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ADD_CONTRIBUTION_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contributionsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributionOwner",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"contributions",outputs:[{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"claimed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"tokenMetadataURL",type:"string"},{name:"confirmedAtBlock",type:"uint256"},{name:"vetoed",type:"bool"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"},{name:"",type:"uint256"}],name:"ownedContributions",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"blocksToWait",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VETO_CONTRIBUTION_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!0,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ContributionAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!0,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ContributionClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"vetoedByAccount",type:"address"}],name:"ContributionVetoed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getTokenContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributorContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorAccount",type:"address"}],name:"getContributorIdByAddress",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorId",type:"uint32"}],name:"getContributorAddressById",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"ownerOf",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"},{name:"index",type:"uint32"}],name:"tokenOfOwnerByIndex",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"tokenMetadata",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"confirmedOnly",type:"bool"}],name:"totalKreditsEarned",outputs:[{name:"amount",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributorId",type:"uint32"},{name:"confirmedOnly",type:"bool"}],name:"totalKreditsEarnedByContributor",outputs:[{name:"amount",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"getContribution",outputs:[{name:"id",type:"uint32"},{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"claimed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"confirmedAtBlock",type:"uint256"},{name:"exists",type:"bool"},{name:"vetoed",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint32"},{name:"contributorId",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"add",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributionId",type:"uint32"}],name:"veto",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributionId",type:"uint32"}],name:"claim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"contributionId",type:"uint32"}],name:"exists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"_totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"_balances",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINT_TOKEN_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"spender",type:"address"},{name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"recipient",type:"address"},{indexed:!1,name:"amount",type:"uint256"},{indexed:!1,name:"contributionId",type:"uint32"}],name:"LogMint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"contributorAccount",type:"address"},{name:"amount",type:"uint256"},{name:"contributionId",type:"uint32"}],name:"mintFor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"proposalsCount",outputs:[{name:"",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint32"}],name:"proposals",outputs:[{name:"creatorAccount",type:"address"},{name:"contributorId",type:"uint32"},{name:"votesCount",type:"uint16"},{name:"votesNeeded",type:"uint16"},{name:"amount",type:"uint32"},{name:"executed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VOTE_PROPOSAL_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"appIds",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ADD_PROPOSAL_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"creatorAccount",type:"address"},{indexed:!1,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"voterId",type:"uint32"},{indexed:!1,name:"totalVotes",type:"uint16"}],name:"ProposalVoted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"id",type:"uint32"},{indexed:!1,name:"contributorId",type:"uint32"},{indexed:!1,name:"amount",type:"uint32"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_appIds",type:"bytes32[4]"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getContributorContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContributionContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"contributorId",type:"uint32"},{name:"amount",type:"uint32"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"}],name:"addProposal",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"proposalId",type:"uint32"}],name:"getProposal",outputs:[{name:"id",type:"uint32"},{name:"creatorAccount",type:"address"},{name:"contributorId",type:"uint32"},{name:"votesCount",type:"uint16"},{name:"votesNeeded",type:"uint16"},{name:"amount",type:"uint32"},{name:"executed",type:"bool"},{name:"hashDigest",type:"bytes32"},{name:"hashFunction",type:"uint8"},{name:"hashSize",type:"uint8"},{name:"voterIds",type:"uint32[]"},{name:"exists",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"proposalId",type:"uint32"}],name:"vote",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_proposalIds",type:"uint32[]"}],name:"batchVote",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"},{name:"",type:"bytes32"}],name:"apps",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"recoveryVaultAppId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"APP_MANAGER_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"},{name:"_initializePayload",type:"bytes"}],name:"newAppProxyPinned",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"}],name:"newAppProxy",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"},{name:"_initializePayload",type:"bytes"}],name:"newAppProxy",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kernel",type:"address"},{name:"_appId",type:"bytes32"}],name:"newAppProxyPinned",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_shouldPetrify",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"},{indexed:!1,name:"isUpgradeable",type:"bool"},{indexed:!1,name:"appId",type:"bytes32"}],name:"NewAppProxy",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"namespace",type:"bytes32"},{indexed:!0,name:"appId",type:"bytes32"},{indexed:!1,name:"app",type:"address"}],name:"SetApp",type:"event"},{constant:!1,inputs:[{name:"_baseAcl",type:"address"},{name:"_permissionsCreator",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"},{name:"_initializePayload",type:"bytes"},{name:"_setDefault",type:"bool"}],name:"newAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"}],name:"newAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"}],name:"newPinnedAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_appId",type:"bytes32"},{name:"_appBase",type:"address"},{name:"_initializePayload",type:"bytes"},{name:"_setDefault",type:"bool"}],name:"newPinnedAppInstance",outputs:[{name:"appProxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_namespace",type:"bytes32"},{name:"_appId",type:"bytes32"},{name:"_app",type:"address"}],name:"setApp",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_recoveryVaultAppId",type:"bytes32"}],name:"setRecoveryVaultAppId",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"CORE_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"APP_BASES_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"APP_ADDR_NAMESPACE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"KERNEL_APP_ID",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"DEFAULT_ACL_APP_ID",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[{name:"_namespace",type:"bytes32"},{name:"_appId",type:"bytes32"}],name:"getApp",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"acl",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"bytes"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports=[{constant:!0,inputs:[],name:"hasInitialized",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NO_PERMISSION",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_script",type:"bytes"}],name:"getEVMScriptExecutor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getRecoveryVault",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CREATE_PERMISSIONS_ROLE",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"token",type:"address"}],name:"allowRecoverability",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"appId",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getInitializationBlock",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"}],name:"transferToVault",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_sender",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"canPerform",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getEVMScriptRegistry",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ANY_ENTITY",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"EMPTY_PARAM_HASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"kernel",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isPetrified",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"BURN_ENTITY",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"entity",type:"address"},{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!1,name:"allowed",type:"bool"}],name:"SetPermission",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"entity",type:"address"},{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!1,name:"paramsHash",type:"bytes32"}],name:"SetPermissionParams",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"app",type:"address"},{indexed:!0,name:"role",type:"bytes32"},{indexed:!0,name:"manager",type:"address"}],name:"ChangePermissionManager",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"executor",type:"address"},{indexed:!1,name:"script",type:"bytes"},{indexed:!1,name:"input",type:"bytes"},{indexed:!1,name:"returnData",type:"bytes"}],name:"ScriptResult",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"vault",type:"address"},{indexed:!0,name:"token",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"RecoverToVault",type:"event"},{constant:!1,inputs:[{name:"_permissionsCreator",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_manager",type:"address"}],name:"createPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"grantPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_params",type:"uint256[]"}],name:"grantPermissionP",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"revokePermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_newManager",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"setPermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"removePermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"createBurnedPermission",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"burnPermissionManager",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"getPermissionParamsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_entity",type:"address"},{name:"_app",type:"address"},{name:"_role",type:"bytes32"},{name:"_index",type:"uint256"}],name:"getPermissionParam",outputs:[{name:"",type:"uint8"},{name:"",type:"uint8"},{name:"",type:"uint240"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_app",type:"address"},{name:"_role",type:"bytes32"}],name:"getPermissionManager",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"bytes"}],name:"hasPermission",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_paramsHash",type:"bytes32"},{name:"_who",type:"address"},{name:"_where",type:"address"},{name:"_what",type:"bytes32"},{name:"_how",type:"uint256[]"}],name:"evalParams",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(e){e.exports={4:"0xc34edf7d11b7f8433d597f0bb0697acdff55ef14"}},function(e,t,r){e.exports={Contributor:r(239),Contribution:r(245),Proposal:r(246),Token:r(247),Kernel:r(248),Acl:r(249)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e){return function(){var t=this,r=arguments return new Promise(function(n,o){var a=e.apply(t,r) function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)})}}function a(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"filter" @@ -14418,7 +14624,7 @@ return function(e,t,r,n){var i,o,a=r*(t-1) var s=a+r return s>n&&(r-=s-n),Array.from({length:r},o)}(r,function(e,t,r){var n=Math.ceil(r/t) return(e=(e=parseInt(e)||1)>n?n:e)<1?1:e}(n.number,i,e),i,e)}},function(e,t,r){function n(e,t){for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:null,i=l.keccak256(l.toUtf8Bytes(r)) return this.functions.hasPermission(e,t,i,n)}}])&&i(r.prototype,n),t}() e.exports=c},function(e,t,r){function n(e,t){for(var r=0;r=r) return e.bytes=u-i,a} var r=128,n=127},function(e,t){var r=Math.pow(2,7),n=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),u=Math.pow(2,49),l=Math.pow(2,56),c=Math.pow(2,63) e.exports=function(e){return e0&&!r&&(i=i.substring(0,o)),i},decode:function(r){var n=!0,i=!1,o=void 0 try{for(var a,s=r[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value -if(e.indexOf(u)<0)throw new Error("invalid base64 character")}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t.from(r,"base64")}}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(261),i=r(76),o=r(14) +if(e.indexOf(u)<0)throw new Error("invalid base64 character")}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t.from(r,"base64")}}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(264),i=r(77),o=r(14) function a(e){var t=[],r=e.split("/").slice(1) if(1===r.length&&""===r[0])return[] for(var n=0;ne.length)throw g("Invalid address buffer: "+e.toString("hex")) t.push([n,u])}else t.push([n]),r+=a}return t}function d(e){return c(u(a(e=y(e))))}function p(e){var r=m(e) if(r)throw r -return t.from(e)}function m(e){try{h(e)}catch(e){return e}}function y(e){return"/"+e.trim().split("/").filter(function(e){return e}).join("/")}function g(e){return new Error("Error parsing address: "+e)}function v(e){return i(e[0])}e.exports={stringToStringTuples:a,stringTuplesToString:s,tuplesToStringTuples:l,stringTuplesToTuples:u,bufferToTuples:h,tuplesToBuffer:c,bufferToString:function(e){return s(l(h(e)))},stringToBuffer:d,fromString:function(e){return d(e)},fromBuffer:p,validateBuffer:m,isValidBuffer:function(e){return void 0===m(e)},cleanPath:y,ParseError:g,protoFromTuple:v,sizeForAddr:f}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(262),i=r(263),o=r(76),a=r(21),s=r(265),u=r(14) +return t.from(e)}function m(e){try{h(e)}catch(e){return e}}function y(e){return"/"+e.trim().split("/").filter(function(e){return e}).join("/")}function g(e){return new Error("Error parsing address: "+e)}function v(e){return i(e[0])}e.exports={stringToStringTuples:a,stringTuplesToString:s,tuplesToStringTuples:l,stringTuplesToTuples:u,bufferToTuples:h,tuplesToBuffer:c,bufferToString:function(e){return s(l(h(e)))},stringToBuffer:d,fromString:function(e){return d(e)},fromBuffer:p,validateBuffer:m,isValidBuffer:function(e){return void 0===m(e)},cleanPath:y,ParseError:g,protoFromTuple:v,sizeForAddr:f}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(265),i=r(266),o=r(77),a=r(21),s=r(268),u=r(14) function l(e,r){return r instanceof t?l.toString(e,r):l.toBuffer(e,r)}function c(e){if(!i(e))throw new Error("invalid ip address") return n.toBuffer(e)}function f(e){var r=t.alloc(2) return r.writeUInt16BE(e,0),r}function h(e){return e.readUInt16BE(0)}e.exports=l,l.toString=function(e,t){switch((e=o(e)).code){case 4:case 41:return function(e){var t=n.toString(e) @@ -14812,7 +15018,7 @@ if(i<1||i>65536)throw new Error("Port number is not in range(1, 65536)") var o=f(i) return t.concat([n,o])}(r) default:return t.from(r,"hex")}var n,i,l}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" -var n=t,i=r(0).Buffer,o=r(121) +var n=t,i=r(0).Buffer,o=r(123) n.toBuffer=function(e,t,r){var n if(r=~~r,this.isV4Format(e))n=t||new i(r+4),e.split(/\./g).map(function(e){n[r++]=255&parseInt(e,10)}) else if(this.isV6Format(e)){var o,a=e.split(":",8) @@ -14867,14 +15073,14 @@ if(0===a.length)return return a[0].address}return(r=Object.keys(i).map(function(r){var o=i[r].filter(function(r){return r.family=r.family.toLowerCase(),r.family===t&&!n.isLoopback(r.address)&&(!e||("public"===e?n.isPrivate(r.address):n.isPublic(r.address)))}) return o.length?o[0].address:void 0}).filter(Boolean)).length?r[0]:n.loopback(t)},n.toLong=function(e){var t=0 return e.split(".").forEach(function(e){t<<=8,t+=parseInt(e)}),t>>>0},n.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(255&e)}},function(e,t,r){"use strict" -var n=r(264),i=e.exports=function(e){return n({exact:!0}).test(e)} +var n=r(267),i=e.exports=function(e){return n({exact:!0}).test(e)} i.v4=function(e){return n.v4({exact:!0}).test(e)},i.v6=function(e){return n.v6({exact:!0}).test(e)}},function(e,t,r){"use strict" var n="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",i="[0-9a-fA-F]{1,4}",o="\n(\n(?:".concat(i,":){7}(?:").concat(i,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(i,":){6}(?:").concat(n,"|:").concat(i,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(i,":){5}(?::").concat(n,"|(:").concat(i,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(i,":){4}(?:(:").concat(i,"){0,1}:").concat(n,"|(:").concat(i,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(i,":){3}(?:(:").concat(i,"){0,2}:").concat(n,"|(:").concat(i,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(i,":){2}(?:(:").concat(i,"){0,3}:").concat(n,"|(:").concat(i,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(i,":){1}(?:(:").concat(i,"){0,4}:").concat(n,"|(:").concat(i,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::").concat(i,"){0,5}:").concat(n,"|(?::").concat(i,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=e.exports=function(e){return e&&e.exact?new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")):new RegExp("(?:".concat(n,")|(?:").concat(o,")"),"g")} a.v4=function(e){return e&&e.exact?new RegExp("^".concat(n,"$")):new RegExp(n,"g")},a.v6=function(e){return e&&e.exact?new RegExp("^".concat(o,"$")):new RegExp(o,"g")}},function(e,t,r){(function(e,t,n){var i function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict" var a="object"===("undefined"==typeof window?"undefined":o(window))?window:{} !a.HI_BASE32_NO_NODE_JS&&"object"===(void 0===e?"undefined":o(e))&&e.versions&&e.versions.node&&(a=t) -var s=!a.HI_BASE32_NO_COMMON_JS&&"object"===o(n)&&n.exports,u=r(122),l="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},f=[0,0,0,0,0,0,0,0],h=function(e,t){t.length>10&&(t="..."+t.substr(-10)) +var s=!a.HI_BASE32_NO_COMMON_JS&&"object"===o(n)&&n.exports,u=r(124),l="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},f=[0,0,0,0,0,0,0,0],h=function(e,t){t.length>10&&(t="..."+t.substr(-10)) var r=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-") throw r.position=e,r},d=function(e){if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters") for(var t,r,n,i,o,a,s,u,l=[],f=0,h=(e=e.replace(/=/g,"")).length,d=0,p=h>>3<<3;d>>2),l[f++]=255&(r<<6|n<<1|i>>>4),l[f++]=255&(i<<4|o>>>1),l[f++]=255&(o<<7|a<<2|s>>>3),l[f++]=255&(s<<5|u) @@ -14896,17 +15102,17 @@ return 1===f?(t=e.charCodeAt(u),a+=l[t>>>3]+l[t<<2&31]+"======"):2===f?(t=e.char do{for(f[0]=f[5],f[1]=f[6],f[2]=f[7],s=d;h>6,f[s++]=128|63&a):a<55296||a>=57344?(f[s++]=224|a>>12,f[s++]=128|a>>6&63,f[s++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++h)),f[s++]=240|a>>18,f[s++]=128|a>>12&63,f[s++]=128|a>>6&63,f[s++]=128|63&a) d=s-5,h===p&&++h,h>p&&s<6&&(u=!0),t=f[0],s>4?(r=f[1],n=f[2],i=f[3],o=f[4],c+=l[t>>>3]+l[31&(t<<2|r>>>6)]+l[r>>>1&31]+l[31&(r<<4|n>>>4)]+l[31&(n<<1|i>>>7)]+l[i>>>2&31]+l[31&(i<<3|o>>>5)]+l[31&o]):1===s?c+=l[t>>>3]+l[t<<2&31]+"======":2===s?(r=f[1],c+=l[t>>>3]+l[31&(t<<2|r>>>6)]+l[r>>>1&31]+l[r<<4&31]+"===="):3===s?(r=f[1],n=f[2],c+=l[t>>>3]+l[31&(t<<2|r>>>6)]+l[r>>>1&31]+l[31&(r<<4|n>>>4)]+l[n<<1&31]+"==="):(r=f[1],n=f[2],i=f[3],c+=l[t>>>3]+l[31&(t<<2|r>>>6)]+l[r>>>1&31]+l[31&(r<<4|n>>>4)]+l[31&(n<<1|i>>>7)]+l[i>>>2&31]+l[i<<3&31]+"=")}while(!u) return c}(e)},decode:p} -p.asBytes=d,s?n.exports=m:(a.base32=m,u&&(void 0===(i=function(){return m}.call(m,r,m,n))||(n.exports=i)))}()}).call(this,r(3),r(6),r(47)(e))},function(e,t,r){"use strict" -var n=r(17),i=T("dns4"),o=T("dns6"),a=M(T("dnsaddr"),i,o),s=M(T("ip4"),T("ip6")),u=M(A(s,T("tcp")),A(a,T("tcp"))),l=A(s,T("udp")),c=A(l,T("utp")),f=M(A(a,T("tcp")),a),h=M(A(u,T("ws")),A(f,T("ws"))),d=M(A(u,T("wss")),A(f,T("wss"))),p=M(A(u,T("http")),A(s,T("http")),A(f,T("http")),A(f)),m=M(A(u,T("https")),A(s,T("https")),A(f,T("https"))),y=M(A(h,T("p2p-webrtc-star"),T("ipfs")),A(d,T("p2p-webrtc-star"),T("ipfs"))),g=M(A(h,T("p2p-websocket-star"),T("ipfs")),A(d,T("p2p-websocket-star"),T("ipfs")),A(h,T("p2p-websocket-star")),A(d,T("p2p-websocket-star"))),v=M(A(p,T("p2p-webrtc-direct")),A(m,T("p2p-webrtc-direct"))),b=M(h,d,p,m,y,v,u,c),w=M(A(b,T("p2p-stardust"),T("ipfs")),A(b,T("p2p-stardust"))),_=M(A(b,T("ipfs")),y,T("ipfs")),S=M(A(_,T("p2p-circuit"),_),A(_,T("p2p-circuit")),A(T("p2p-circuit"),_),A(b,T("p2p-circuit")),A(T("p2p-circuit"),b),T("p2p-circuit")),E=function e(){return M(A(S,e),S)}(),k=M(A(E,_,E),A(_,E),A(E,_),E,_) +p.asBytes=d,s?n.exports=m:(a.base32=m,u&&(void 0===(i=function(){return m}.call(m,r,m,n))||(n.exports=i)))}()}).call(this,r(3),r(6),r(22)(e))},function(e,t,r){"use strict" +var n=r(17),i=T("dns4"),o=T("dns6"),a=A(T("dnsaddr"),i,o),s=A(T("ip4"),T("ip6")),u=A(M(s,T("tcp")),M(a,T("tcp"))),l=M(s,T("udp")),c=M(l,T("utp")),f=A(M(a,T("tcp")),a),h=A(M(u,T("ws")),M(f,T("ws"))),d=A(M(u,T("wss")),M(f,T("wss"))),p=A(M(u,T("http")),M(s,T("http")),M(f,T("http")),M(f)),m=A(M(u,T("https")),M(s,T("https")),M(f,T("https"))),y=A(M(h,T("p2p-webrtc-star"),T("ipfs")),M(d,T("p2p-webrtc-star"),T("ipfs"))),g=A(M(h,T("p2p-websocket-star"),T("ipfs")),M(d,T("p2p-websocket-star"),T("ipfs")),M(h,T("p2p-websocket-star")),M(d,T("p2p-websocket-star"))),v=A(M(p,T("p2p-webrtc-direct")),M(m,T("p2p-webrtc-direct"))),b=A(h,d,p,m,y,v,u,c),w=A(M(b,T("p2p-stardust"),T("ipfs")),M(b,T("p2p-stardust"))),_=A(M(b,T("ipfs")),y,T("ipfs")),S=A(M(_,T("p2p-circuit"),_),M(_,T("p2p-circuit")),M(T("p2p-circuit"),_),M(b,T("p2p-circuit")),M(T("p2p-circuit"),b),T("p2p-circuit")),E=function e(){return A(M(S,e),S)}(),k=A(M(E,_,E),M(_,E),M(E,_),E,_) function x(e){return function(t){if(!n.isMultiaddr(t))try{t=n(t)}catch(e){return!1}var r=e(t.protoNames()) -return null!==r&&0===r.length}}function A(){var e=Array.from(arguments) -function t(t){return t.length1?t.push(r+" {",n.slice(0,-1),"}"):t.push(r+";"),t}(e,[]))}),t.push("}","")}(e,t)}),t.map(function e(t){return function(r){return Array.isArray(r)?r.map(e(t+" ")).join("\n"):t+r}}("")).join("\n")}},function(e,t,r){"use strict" -var n=r(280),i=r(282),o=r(283),a=r(284),s=r(14) +var n=r(283),i=r(285),o=r(286),a=r(287),s=r(14) e.exports=function(e,t){var r={},u={},l={} !function e(t,n){t.enums&&t.enums.forEach(function(t){t.id=n+(n?".":"")+t.name,u[t.id]=t,e(t,t.id)}),t.messages&&t.messages.forEach(function(i){i.id=n+(n?".":"")+i.name,r[i.id]=i,i.fields.forEach(function(e){if(e.map){var i="Map_"+e.map.from+"_"+e.map.to,o={name:i,enums:[],messages:[],fields:[{name:"key",type:e.map.from,tag:1,repeated:!1,required:!0},{name:"value",type:e.map.to,tag:2,repeated:!1,required:!1}],extensions:null,id:n+(n?".":"")+i} r[o.id]||(r[o.id]=o,t.messages.push(o)),e.type=i,e.repeated=!0}}),e(i,i.id)})}(e,"") @@ -15164,7 +15370,7 @@ return s.encode(t,r,n),e.bytes=s.encode.bytes,r},function e(t,r){var n=s.decode( if(!f.length||-1===f.indexOf(n))throw new Error("Invalid enum value: "+n) return e.bytes=s.decode.bytes,n},s.encodingLength)):l[h.id]||c(h,l[h.id]={})} return(e.enums||[]).concat((e.messages||[]).map(function(e){return f(e.id)}))}},function(e,t,r){"use strict" -var n,i=r(14),o=r(281),a=r(7).Buffer,s=function(e,t,r,n){return t.bytes=r.bytes=0,{type:e,encode:t,decode:r,encodingLength:n}} +var n,i=r(14),o=r(284),a=r(7).Buffer,s=function(e,t,r,n){return t.bytes=r.bytes=0,{type:e,encode:t,decode:r,encodingLength:n}} t.make=s,t.bytes=(n=function(e){return a.isBuffer(e)?e.length:a.byteLength(e)},s(2,function e(t,r,o){var s=o,u=n(t) return i.encode(u,r,o),o+=i.encode.bytes,a.isBuffer(t)?t.copy(r,o):r.write(t,o,u),e.bytes=(o+=u)-s,r},function e(t,r){var n=r,o=i.decode(t,r) r+=i.decode.bytes @@ -15195,7 +15401,7 @@ t.encode=function e(t,r,i){t=t>=0?2*t:-2*t-1 var o=n.encode(t,r,i) return e.bytes=n.encode.bytes,o},t.decode=function e(t,r){var i=n.decode(t,r) return e.bytes=n.decode.bytes,1&i?(i+1)/-2:i/2},t.encodingLength=function(e){return n.encodingLength(e>=0?2*e:-2*e-1)}},function(e,t,r){"use strict" -var n=r(14),i=r(77).defined,o=function(e,t,r){switch(e){case 0:return n.decode(t,r),r+n.decode.bytes +var n=r(14),i=r(78).defined,o=function(e,t,r){switch(e){case 0:return n.decode(t,r),r+n.decode.bytes case 1:return r+8 case 2:var i=n.decode(t,r) return r+n.decode.bytes+i @@ -15223,10 +15429,10 @@ for(_=0;_-1){S=!0 break}S||(v?p.repeated?g[w]=[]:(b=b&&v[b]?v[b].value:v[Object.keys(v)[0]].value,g[w]=parseInt(b||0,10)):g[w]=a(p,b))}return t.bytes=h-y,g}var x=n.decode(f,h) h+=n.decode.bytes -var A=u[x>>3] -if(null!=A){var M=r[A] -if((p=e.fields[A]).packed){var T=n.decode(f,h) -for(T+=h+=n.decode.bytes;h>3] +if(null!=M){var A=r[M] +if((p=e.fields[M]).packed){var T=n.decode(f,h) +for(T+=h+=n.decode.bytes;h-1){if(v)throw new Error("only one of the properties defined in oneof "+b+" can be set") v=!0}}for(g=0;g>=8 for(;f>0;)u.push(255&f),f>>=8}for(var h=0;e[h]===s&&h>24&255,a>>16&255,a>>8&255,255&a) @@ -15318,7 +15524,7 @@ for(var l=a.digest().getBytes(),c=t.charAt(0),f=t.substring(1,a.digestLength+1), for(var b=1,w=a.digestLength,_=a.digestLength;_>> e.h0=e.h0+l|0,e.h1=e.h1+c|0,e.h2=e.h2+f|0,e.h3=e.h3+h|0,e.h4=e.h4+d|0,e.h5=e.h5+p|0,e.h6=e.h6+m|0,e.h7=e.h7+y|0,g-=64}}},function(e,t,r){(function(t){var n=r(8) r(9) var i=null -!n.util.isNodejs||n.options.usePureJavaScript||t.versions["node-webkit"]||(i=r(129)),(e.exports=n.prng=n.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,o=new Array(32),a=0;a<32;++a)o[a]=r.create() +!n.util.isNodejs||n.options.usePureJavaScript||t.versions["node-webkit"]||(i=r(131)),(e.exports=n.prng=n.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,o=new Array(32),a=0;a<32;++a)o[a]=r.create() function s(){if(t.pools[0].messageLength>=32)return u() var e=32-t.pools[0].messageLength<<5 t.collect(t.seedFileSync(e)),u()}function u(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1 @@ -15378,7 +15584,7 @@ t(null,r.toString())})},t.seedFileSync=function(e){return i.randomBytes(e).toStr t.collect(n)},t.registerWorker=function(e){e===self?t.seedFile=function(e,t){self.addEventListener("message",function e(r){var n=r.data n.forge&&n.forge.prng&&(self.removeEventListener("message",e),t(n.forge.prng.err,n.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:e}}})}:e.addEventListener("message",function(r){var n=r.data n.forge&&n.forge.prng&&t.seedFile(n.forge.prng.needed,function(t,r){e.postMessage({forge:{prng:{err:t,bytes:r}}})})})},t}}).call(this,r(3))},function(e,t,r){var n=r(8) -r(30),r(9) +r(31),r(9) var i=e.exports=n.sha1=n.sha1||{} n.md.sha1=n.md.algorithms.sha1=i,i.create=function(){a||(o=String.fromCharCode(128),o+=n.util.fillString(String.fromCharCode(0),64),a=!0) var e=null,t=n.util.createBuffer(),r=new Array(80),i={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[] @@ -15406,7 +15612,7 @@ for(;l<40;++l)n=(n=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|n>>>30,t[l]=n,n=(i<<5|i>>> for(;l<60;++l)n=(n=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|n>>>30,t[l]=n,n=(i<<5|i>>>27)+(o&a|s&(o^a))+u+2400959708+n,u=s,s=a,a=(o<<30|o>>>2)>>>0,o=i,i=n for(;l<80;++l)n=(n=t[l-6]^t[l-16]^t[l-28]^t[l-32])<<2|n>>>30,t[l]=n,n=(i<<5|i>>>27)+(o^a^s)+u+3395469782+n,u=s,s=a,a=(o<<30|o>>>2)>>>0,o=i,i=n e.h0=e.h0+i|0,e.h1=e.h1+o|0,e.h2=e.h2+a|0,e.h3=e.h3+s|0,e.h4=e.h4+u|0,c-=64}}},function(e,t,r){var n=r(8) -r(9),r(125),r(60),function(){if(n.prime)e.exports=n.prime +r(9),r(127),r(60),function(){if(n.prime)e.exports=n.prime else{var t=e.exports=n.prime=n.prime||{},r=n.jsbn.BigInteger,i=[6,4,2,4,2,4,6,2],o=new r(null) o.fromInt(30) var a=function(e,t){return e|t} @@ -15434,7 +15640,7 @@ do{if(t.bitLength()>r&&(t=u(r,o)),t.isProbablePrime(s))return c(null,t) t.dAddOffset(i[a++%8],0)}while(l<0||+new Date-f>>24&63]|u[_>>>16&63]|c[_>>>8&63]|h[63&_]|o[S>>>24&63]|s[S>>>16&63]|l[S>>>8&63]|f[63&S])}d=m,m=y,y=d}y=y>>>1|y<<31,y^=d=1431655765&((m=m>>>1|m<<31)>>>1^y),y^=(d=16711935&(y>>>8^(m^=d<<1)))<<8,y^=(d=858993459&(y>>>2^(m^=d)))<<2,y^=d=65535&((m^=d)>>>16^y),y^=d=252645135&((m^=d<<16)>>>4^y),m^=d<<4,r[0]=m,r[1]=y}function p(e){var t,r="DES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start return t.start=function(e,r){var o=null r instanceof n.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=e,i.call(t,r)},t}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(8) -r(294),r(30),r(9) +r(297),r(31),r(9) var o,a=i.pkcs5=i.pkcs5||{} -i.util.isNodejs&&!i.options.usePureJavaScript&&(o=r(129)),e.exports=i.pbkdf2=a.pbkdf2=function(e,r,a,s,u,l){if("function"==typeof u&&(l=u,u=null),i.util.isNodejs&&!i.options.usePureJavaScript&&o.pbkdf2&&(null===u||"object"!==n(u))&&(o.pbkdf2Sync.length>4||!u||"sha1"===u))return"string"!=typeof u&&(u="sha1"),e=new t(e,"binary"),r=new t(r,"binary"),l?4===o.pbkdf2Sync.length?o.pbkdf2(e,r,a,s,function(e,t){if(e)return l(e) +i.util.isNodejs&&!i.options.usePureJavaScript&&(o=r(131)),e.exports=i.pbkdf2=a.pbkdf2=function(e,r,a,s,u,l){if("function"==typeof u&&(l=u,u=null),i.util.isNodejs&&!i.options.usePureJavaScript&&o.pbkdf2&&(null===u||"object"!==n(u))&&(o.pbkdf2Sync.length>4||!u||"sha1"===u))return"string"!=typeof u&&(u="sha1"),e=new t(e,"binary"),r=new t(r,"binary"),l?4===o.pbkdf2Sync.length?o.pbkdf2(e,r,a,s,function(e,t){if(e)return l(e) l(null,t.toString("binary"))}):o.pbkdf2(e,r,a,s,u,function(e,t){if(e)return l(e) l(null,t.toString("binary"))}):4===o.pbkdf2Sync.length?o.pbkdf2Sync(e,r,a,s).toString("binary"):o.pbkdf2Sync(e,r,a,s,u).toString("binary") if(null==u&&(u="sha1"),"string"==typeof u){if(!(u in i.md.algorithms))throw new Error("Unknown hash algorithm: "+u) @@ -15470,7 +15676,7 @@ for(var w=2;w<=a;++w)p.start(null,null),p.update(g),y=p.digest().getBytes(),m=i. v+=bh)return l(null,v) p.start(null,null),p.update(r),p.update(i.util.int32ToBytes(b)),m=g=p.digest().getBytes(),w=2,S()}function S(){if(w<=a)return p.start(null,null),p.update(g),y=p.digest().getBytes(),m=i.util.xorBytes(m,y,c),g=y,++w,i.util.setImmediate(S) v+=b>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 -for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){B.call(this,e,t,r)}B.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") +for(var S=function(e,t,r){return function(n){return new D(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,i){return new D(e,t,i).update(n)[r]()}},k=function(e,t,r){return function(t,n,i,o){return C["cshake"+e].update(t,n,i,o)[r]()}},x=function(e,t,r){return function(t,n,i,o){return C["kmac"+e].update(t,n,i,o)[r]()}},M=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 +for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){D.call(this,e,t,r)}D.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") var t,r=a(e) if("string"!==r){if("object"!==r)throw new Error(s) if(null===e)throw new Error(s) @@ -15568,9 +15774,9 @@ t=!0}for(var n,i,o=this.blocks,u=this.byteCount,l=e.length,c=this.blockCount,f=0 if(t)for(n=this.start;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[c],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n -return t?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(e){var t,r=a(e) +return t?i.push(n):i.unshift(n),this.update(i),i.length},D.prototype.encodeString=function(e){var t,r=a(e) if("string"!==r){if("object"!==r)throw new Error(s) if(null===e)throw new Error(s) if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) @@ -15578,26 +15784,26 @@ else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) t=!0}var n=0,i=e.length if(t)n=i else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},B.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},D.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15] -a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},B.prototype.arrayBuffer=function(){this.finalize() +a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},D.prototype.arrayBuffer=function(){this.finalize() var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3 e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s) for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 -s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},j.prototype=new B,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)} -var F=function(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,m,y,v,b,w,_,S,E,k,x,A,M,T,C,I,O,P,R,N,L,D,B,j,F,U,z,H,K,q,V,W,G,Y,Z,J,Q,X,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce -for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=o^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(c<<1|f>>>31),r=s^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=l^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~y&b,e[1]=m^~v&w,e[10]=x^~M&C,e[11]=A^~T&I,e[20]=L^~B&F,e[21]=D^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~b&_,e[3]=v^~w&S,e[12]=M^~C&O,e[13]=T^~I&P,e[22]=B^~F&z,e[23]=j^~U&H,e[32]=G^~Z&Q,e[33]=Y^~J&X,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~Q&$,e[35]=J^~X&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&p,e[7]=S^~k&m,e[16]=O^~R&x,e[17]=P^~N&A,e[26]=z^~K&L,e[27]=H^~q&D,e[36]=Q^~$&V,e[37]=X^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~p&y,e[9]=k^~m&v,e[18]=R^~x&M,e[19]=N^~A&T,e[28]=K^~L&B,e[29]=q^~D&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=g[n],e[1]^=g[n+1]} +s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},j.prototype=new D,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)} +var F=function(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,m,y,v,b,w,_,S,E,k,x,M,A,T,C,I,O,P,R,N,L,B,D,j,F,U,z,H,K,q,V,W,G,Y,Z,J,X,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=o^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(c<<1|f>>>31),r=s^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=l^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,M=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~y&b,e[1]=m^~v&w,e[10]=x^~A&C,e[11]=M^~T&I,e[20]=L^~D&F,e[21]=B^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~b&_,e[3]=v^~w&S,e[12]=A^~C&O,e[13]=T^~I&P,e[22]=D^~F&z,e[23]=j^~U&H,e[32]=G^~Z&X,e[33]=Y^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~X&$,e[35]=J^~Q&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&p,e[7]=S^~k&m,e[16]=O^~R&x,e[17]=P^~N&M,e[26]=z^~K&L,e[27]=H^~q&B,e[36]=X^~$&V,e[37]=Q^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~p&y,e[9]=k^~m&v,e[18]=R^~x&A,e[19]=N^~M&T,e[28]=K^~L&D,e[29]=q^~B&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=g[n],e[1]^=g[n+1]} if(f)i.exports=C else{for(O=0;O>>16)*t&65535)<<16)}function a(e,t){return e<>>32-t}function s(e){return e=o(e^=e>>>16,2246822507),(e=o(e^=e>>>13,3266489909))^e>>>16}function u(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 r=[0,0,0,0] @@ -15639,15 +15845,15 @@ case 5:a=h(a,f([0,e.charCodeAt(y+4)],32)) case 4:a=h(a,f([0,e.charCodeAt(y+3)],24)) case 3:a=h(a,f([0,e.charCodeAt(y+2)],16)) case 2:a=h(a,f([0,e.charCodeAt(y+1)],8)) -case 1:a=l(a=h(a,[0,e.charCodeAt(y)]),p),i=h(i,a=l(a=c(a,31),m))}return i=u(i=h(i,[0,e.length]),o=h(o,[0,e.length])),o=u(o,i),i=u(i=d(i),o=d(o)),o=u(o,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=i),t.murmurHash3=i}()},function(e,t,r){"use strict";(function(t){var n=r(303),i=self.crypto?self.crypto.subtle||self.crypto.webkitSubtle:self.msCrypto?self.msCrypto.subtle:void 0 +case 1:a=l(a=h(a,[0,e.charCodeAt(y)]),p),i=h(i,a=l(a=c(a,31),m))}return i=u(i=h(i,[0,e.length]),o=h(o,[0,e.length])),o=u(o,i),i=u(i=d(i),o=d(o)),o=u(o,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=i),t.murmurHash3=i}()},function(e,t,r){"use strict";(function(t){var n=r(306),i=self.crypto?self.crypto.subtle||self.crypto.webkitSubtle:self.msCrypto?self.msCrypto.subtle:void 0 function o(e){if(!i)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context") return function(r,o){var a=i.digest({name:e},r) if("function"!=typeof a.then)return a.onerror=function(){o(new Error("hashing data using ".concat(e)))},void(a.oncomplete=function(e){o(null,e.target.result)}) -n(a.then(function(e){return t.from(new Uint8Array(e))}),o)}}e.exports={sha1:function(e,t){o("SHA-1")(e,t)},sha2256:function(e,t){o("SHA-256")(e,t)},sha2512:function(e,t){o("SHA-512")(e,t)}}}).call(this,r(0).Buffer)},function(e,t,r){(function(t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=r(304),s=r(306) +n(a.then(function(e){return t.from(new Uint8Array(e))}),o)}}e.exports={sha1:function(e,t){o("SHA-1")(e,t)},sha2256:function(e,t){o("SHA-256")(e,t)},sha2512:function(e,t){o("SHA-512")(e,t)}}}).call(this,r(0).Buffer)},function(e,t,r){(function(t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=r(307),s=r(309) function u(e,t){return"function"!=typeof t?e:e.then(function(e){o(function(){t(null,e)})},function(e){o(function(){t(e)})})}function l(e){return u(this,e)}function c(e){if(e&&s(e)){e.nodeify=l var t=e.then return e.then=function(){return c(t.apply(this,arguments))},e}"function"==typeof e?e.prototype.nodeify=l:a.prototype.nodeify=l}function f(e){if(!(this instanceof f))return new f(e) -a.call(this,e),c(this)}o="function"==typeof t?t:"object"===(void 0===n?"undefined":i(n))&&n&&n.nextTick?n.nextTick:function(e){setTimeout(e,0)},e.exports=u,u.extend=c,u.Promise=f,f.prototype=Object.create(a.prototype),f.prototype.constructor=f}).call(this,r(29).setImmediate,r(3))},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=r(305) +a.call(this,e),c(this)}o="function"==typeof t?t:"object"===(void 0===n?"undefined":i(n))&&n&&n.nextTick?n.nextTick:function(e){setTimeout(e,0)},e.exports=u,u.extend=c,u.Promise=f,f.prototype=Object.create(a.prototype),f.prototype.constructor=f}).call(this,r(30).setImmediate,r(3))},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=r(308) i="function"==typeof setImediate?setImediate:"object"===(void 0===t?"undefined":n(t))&&t&&t.nextTick?t.nextTick:function(e){setTimeout(e,0)} var a=[] function s(e){if(!(this instanceof s))return"function"==typeof e?new s(e):(r=new s(function(e){t=e}),{resolver:t,promise:r}) @@ -15655,11 +15861,11 @@ var t,r,n,u=!1,l=!1,c=[],f=!1 function h(e){c.length?(f=!0,c.shift()(e||!1)):f=!1}this.then=function(e,t){return new s(function(r){c.push(function(o){var a=l?e:t if("function"==typeof a){function s(){var e try{e=a(n)}catch(e){return r.reject(e),h()}r.fulfill(e),h(!0)}o?s():i(s)}else l?(r.fulfill(n),h(o)):(r.reject(n),h(o))}),u&&!f&&h()})},function(){function t(e){u||(u=!0,l=!1,n=e,h())}for(var r={fulfill:function e(r){u||(o(r)?r.then(e,t):(u=l=!0,n=r,h()))},reject:t},i=0;i=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){var i=e[t]+r r<0&&(i+=4294967296) @@ -15682,7 +15888,7 @@ for(var t=new Uint8Array(e.outlen),r=0;r>2]>>8*(3&r) return t}function y(e,t,r){r=r||64,e=n.normalizeInput(e) var i=d(r,t) return p(i,e),m(i)}e.exports={blake2b:y,blake2bHex:function(e,t,r){var i=y(e,t,r) -return n.toHex(i)},blake2bInit:d,blake2bUpdate:p,blake2bFinal:m}},function(e,t,r){var n=r(132) +return n.toHex(i)},blake2bInit:d,blake2bUpdate:p,blake2bFinal:m}},function(e,t,r){var n=r(134) function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){l[e]=l[e]+l[t]+i,l[n]=a(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],12),l[e]=l[e]+l[t]+o,l[n]=a(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],7)}function a(e,t){return e>>>t^e<<32-t}var s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,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]),l=new Uint32Array(16),c=new Uint32Array(16) function f(e,t){var r=0 for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=s[r] @@ -15698,24 +15904,24 @@ for(var t=new Uint8Array(e.outlen),r=0;r>2]>>8*(3&r)&25 return t}function m(e,t,r){r=r||32,e=n.normalizeInput(e) var i=h(r,t) return d(i,e),p(i)}e.exports={blake2s:m,blake2sHex:function(e,t,r){var i=m(e,t,r) -return n.toHex(i)},blake2sInit:h,blake2sUpdate:d,blake2sFinal:p}},function(e,t,r){"use strict";(function(e){var n=r(82),i=r(83),o=r(134) -function a(e){return Promise.all([i.subtle.exportKey("jwk",e.privateKey),i.subtle.exportKey("jwk",e.publicKey)])}t.utils=r(313),t.generateKey=function(e,t){n(i.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(a).then(function(e){return{privateKey:e[0],publicKey:e[1]}}),t)},t.unmarshalPrivateKey=function(e,t){var r,o=i.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["sign"]) +return n.toHex(i)},blake2sInit:h,blake2sUpdate:d,blake2sFinal:p}},function(e,t,r){"use strict";(function(e){var n=r(83),i=r(84),o=r(136) +function a(e){return Promise.all([i.subtle.exportKey("jwk",e.privateKey),i.subtle.exportKey("jwk",e.publicKey)])}t.utils=r(316),t.generateKey=function(e,t){n(i.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(a).then(function(e){return{privateKey:e[0],publicKey:e[1]}}),t)},t.unmarshalPrivateKey=function(e,t){var r,o=i.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["sign"]) n(Promise.all([o,(r=e,i.subtle.importKey("jwk",{kty:r.kty,n:r.n,e:r.e},{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["verify"]))]).then(function(e){return a({privateKey:e[0],publicKey:e[1]})}).then(function(e){return{privateKey:e[0],publicKey:e[1]}}),t)},t.getRandomValues=o,t.hashAndSign=function(t,r,o){n(i.subtle.importKey("jwk",t,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!1,["sign"]).then(function(e){return i.subtle.sign({name:"RSASSA-PKCS1-v1_5"},e,Uint8Array.from(r))}).then(function(t){return e.from(t)}),o)},t.hashAndVerify=function(e,t,r,o){n(i.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!1,["verify"]).then(function(e){return i.subtle.verify({name:"RSASSA-PKCS1-v1_5"},e,t,r)}),o)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t,r){var n=t.crypto||t.msCrypto,i=65536 n&&n.getRandomValues?e.exports=function(e){var t=new Uint8Array(e),o=0 if(e>0)if(e>i)for(;ot?n.getRandomValues(t.subarray(o,t-o)):(n.getRandomValues(t.subarray(o,o+i)),o+=i) else n.getRandomValues(t) return r.from(t)}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(6),r(0).Buffer)},function(e,t,r){"use strict" -var n=r(84),i=r(140),o=i.toBase64,a=i.toBn,s=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),u=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid({"1.2.840.113549.1.1.1":"rsa"}),this.key("none").optional().null_(),this.key("curve").optional().objid(),this.key("params").optional().seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()))}),l=n.define("RSAPublicKey",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),c=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}) +var n=r(85),i=r(141),o=i.toBase64,a=i.toBn,s=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),u=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid({"1.2.840.113549.1.1.1":"rsa"}),this.key("none").optional().null_(),this.key("curve").optional().objid(),this.key("params").optional().seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()))}),l=n.define("RSAPublicKey",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),c=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}) t.pkcs1ToJwk=function(e){var t=s.decode(e,"der") return{kty:"RSA",n:o(t.modulus),e:o(t.publicExponent),d:o(t.privateExponent),p:o(t.prime1),q:o(t.prime2),dp:o(t.exponent1),dq:o(t.exponent2),qi:o(t.coefficient),alg:"RS256",kid:"2011-04-29"}},t.jwkToPkcs1=function(e){return s.encode({version:0,modulus:a(e.n),publicExponent:a(e.e),privateExponent:a(e.d),prime1:a(e.p),prime2:a(e.q),exponent1:a(e.dp),exponent2:a(e.dq),coefficient:a(e.qi)},"der")},t.pkixToJwk=function(e){var t=l.decode(e,"der"),r=c.decode(t.subjectPublicKey.data,"der") return{kty:"RSA",n:o(r.modulus),e:o(r.publicExponent),alg:"RS256",kid:"2011-04-29"}},t.jwkToPkix=function(e){return l.encode({algorithm:{algorithm:"rsa",none:null},subjectPublicKey:{data:c.encode({modulus:a(e.n),publicExponent:a(e.e)},"der")}},"der")}},,function(e,t,r){"use strict" -var n=r(136),i=r(138),o=r(2) +var n=r(137),i=r(139),o=r(2) function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t=this.name function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict" -var n=r(2),i=r(137) +var n=r(2),i=r(138) function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o=128;){for(I=0;I<16;++I)t[I][0]=r.getInt32()>>>0,t[I][1]=r.getInt32()>>>0 -for(;I<80;++I)n=(((O=(R=t[I-2])[0])>>>19|(P=R[1])<<13)^(P>>>29|O<<3)^O>>>6)>>>0,i=((O<<13|P>>>19)^(P<<3|O>>>29)^(O<<26|P>>>6))>>>0,o=(((O=(L=t[I-15])[0])>>>1|(P=L[1])<<31)^(O>>>8|P<<24)^O>>>7)>>>0,a=((O<<31|P>>>1)^(O<<24|P>>>8)^(O<<25|P>>>7))>>>0,N=t[I-7],D=t[I-16],P=i+N[1]+a+D[1],t[I][0]=n+N[0]+o+D[0]+(P/4294967296>>>0)>>>0,t[I][1]=P>>>0 -for(p=e[0][0],m=e[0][1],y=e[1][0],g=e[1][1],v=e[2][0],b=e[2][1],w=e[3][0],_=e[3][1],S=e[4][0],E=e[4][1],k=e[5][0],x=e[5][1],A=e[6][0],M=e[6][1],T=e[7][0],C=e[7][1],I=0;I<80;++I)c=((S>>>14|E<<18)^(S>>>18|E<<14)^(E>>>9|S<<23))>>>0,f=(A^S&(k^A))>>>0,s=((p>>>28|m<<4)^(m>>>2|p<<30)^(m>>>7|p<<25))>>>0,l=((p<<4|m>>>28)^(m<<30|p>>>2)^(m<<25|p>>>7))>>>0,h=(p&y|v&(p^y))>>>0,d=(m&g|b&(m^g))>>>0,P=C+(((S<<18|E>>>14)^(S<<14|E>>>18)^(E<<23|S>>>9))>>>0)+((M^E&(x^M))>>>0)+u[I][1]+t[I][1],n=T+c+f+u[I][0]+t[I][0]+(P/4294967296>>>0)>>>0,i=P>>>0,o=s+h+((P=l+d)/4294967296>>>0)>>>0,a=P>>>0,T=A,C=M,A=k,M=x,k=S,x=E,S=w+n+((P=_+i)/4294967296>>>0)>>>0,E=P>>>0,w=v,_=b,v=y,b=g,y=p,g=m,p=n+o+((P=i+a)/4294967296>>>0)>>>0,m=P>>>0 -P=e[0][1]+m,e[0][0]=e[0][0]+p+(P/4294967296>>>0)>>>0,e[0][1]=P>>>0,P=e[1][1]+g,e[1][0]=e[1][0]+y+(P/4294967296>>>0)>>>0,e[1][1]=P>>>0,P=e[2][1]+b,e[2][0]=e[2][0]+v+(P/4294967296>>>0)>>>0,e[2][1]=P>>>0,P=e[3][1]+_,e[3][0]=e[3][0]+w+(P/4294967296>>>0)>>>0,e[3][1]=P>>>0,P=e[4][1]+E,e[4][0]=e[4][0]+S+(P/4294967296>>>0)>>>0,e[4][1]=P>>>0,P=e[5][1]+x,e[5][0]=e[5][0]+k+(P/4294967296>>>0)>>>0,e[5][1]=P>>>0,P=e[6][1]+M,e[6][0]=e[6][0]+A+(P/4294967296>>>0)>>>0,e[6][1]=P>>>0,P=e[7][1]+C,e[7][0]=e[7][0]+T+(P/4294967296>>>0)>>>0,e[7][1]=P>>>0,B-=128}}},function(e,t,r){"use strict";(function(t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r=128;){for(I=0;I<16;++I)t[I][0]=r.getInt32()>>>0,t[I][1]=r.getInt32()>>>0 +for(;I<80;++I)n=(((O=(R=t[I-2])[0])>>>19|(P=R[1])<<13)^(P>>>29|O<<3)^O>>>6)>>>0,i=((O<<13|P>>>19)^(P<<3|O>>>29)^(O<<26|P>>>6))>>>0,o=(((O=(L=t[I-15])[0])>>>1|(P=L[1])<<31)^(O>>>8|P<<24)^O>>>7)>>>0,a=((O<<31|P>>>1)^(O<<24|P>>>8)^(O<<25|P>>>7))>>>0,N=t[I-7],B=t[I-16],P=i+N[1]+a+B[1],t[I][0]=n+N[0]+o+B[0]+(P/4294967296>>>0)>>>0,t[I][1]=P>>>0 +for(p=e[0][0],m=e[0][1],y=e[1][0],g=e[1][1],v=e[2][0],b=e[2][1],w=e[3][0],_=e[3][1],S=e[4][0],E=e[4][1],k=e[5][0],x=e[5][1],M=e[6][0],A=e[6][1],T=e[7][0],C=e[7][1],I=0;I<80;++I)c=((S>>>14|E<<18)^(S>>>18|E<<14)^(E>>>9|S<<23))>>>0,f=(M^S&(k^M))>>>0,s=((p>>>28|m<<4)^(m>>>2|p<<30)^(m>>>7|p<<25))>>>0,l=((p<<4|m>>>28)^(m<<30|p>>>2)^(m<<25|p>>>7))>>>0,h=(p&y|v&(p^y))>>>0,d=(m&g|b&(m^g))>>>0,P=C+(((S<<18|E>>>14)^(S<<14|E>>>18)^(E<<23|S>>>9))>>>0)+((A^E&(x^A))>>>0)+u[I][1]+t[I][1],n=T+c+f+u[I][0]+t[I][0]+(P/4294967296>>>0)>>>0,i=P>>>0,o=s+h+((P=l+d)/4294967296>>>0)>>>0,a=P>>>0,T=M,C=A,M=k,A=x,k=S,x=E,S=w+n+((P=_+i)/4294967296>>>0)>>>0,E=P>>>0,w=v,_=b,v=y,b=g,y=p,g=m,p=n+o+((P=i+a)/4294967296>>>0)>>>0,m=P>>>0 +P=e[0][1]+m,e[0][0]=e[0][0]+p+(P/4294967296>>>0)>>>0,e[0][1]=P>>>0,P=e[1][1]+g,e[1][0]=e[1][0]+y+(P/4294967296>>>0)>>>0,e[1][1]=P>>>0,P=e[2][1]+b,e[2][0]=e[2][0]+v+(P/4294967296>>>0)>>>0,e[2][1]=P>>>0,P=e[3][1]+_,e[3][0]=e[3][0]+w+(P/4294967296>>>0)>>>0,e[3][1]=P>>>0,P=e[4][1]+E,e[4][0]=e[4][0]+S+(P/4294967296>>>0)>>>0,e[4][1]=P>>>0,P=e[5][1]+x,e[5][0]=e[5][0]+k+(P/4294967296>>>0)>>>0,e[5][1]=P>>>0,P=e[6][1]+A,e[6][0]=e[6][0]+M+(P/4294967296>>>0)>>>0,e[6][1]=P>>>0,P=e[7][1]+C,e[7][0]=e[7][0]+T+(P/4294967296>>>0)>>>0,e[7][1]=P>>>0,D-=128}}},function(e,t,r){"use strict";(function(t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function m(e,t,r,n,i){var o,a=0 for(o=0;o>>8)-1}function y(e,t,r,n){return m(e,t,r,n,16)}function g(e,t,r,n){return m(e,t,r,n,32)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,S=a,E=s,k=u,x=l,A=c,M=f,T=h,C=d,I=p,O=m,P=y,R=g,N=v,L=b,D=w,B=0;B<20;B+=2)_^=(i=(R^=(i=(C^=(i=(x^=(i=_+R|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+C|0)<<18|i>>>14,A^=(i=(S^=(i=(N^=(i=(I^=(i=A+S|0)<<7|i>>>25)+A|0)<<9|i>>>23)+I|0)<<13|i>>>19)+N|0)<<18|i>>>14,O^=(i=(M^=(i=(E^=(i=(L^=(i=O+M|0)<<7|i>>>25)+O|0)<<9|i>>>23)+L|0)<<13|i>>>19)+E|0)<<18|i>>>14,D^=(i=(P^=(i=(T^=(i=(k^=(i=D+P|0)<<7|i>>>25)+D|0)<<9|i>>>23)+k|0)<<13|i>>>19)+T|0)<<18|i>>>14,_^=(i=(k^=(i=(E^=(i=(S^=(i=_+k|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,A^=(i=(x^=(i=(T^=(i=(M^=(i=A+x|0)<<7|i>>>25)+A|0)<<9|i>>>23)+M|0)<<13|i>>>19)+T|0)<<18|i>>>14,O^=(i=(I^=(i=(C^=(i=(P^=(i=O+I|0)<<7|i>>>25)+O|0)<<9|i>>>23)+P|0)<<13|i>>>19)+C|0)<<18|i>>>14,D^=(i=(L^=(i=(N^=(i=(R^=(i=D+L|0)<<7|i>>>25)+D|0)<<9|i>>>23)+R|0)<<13|i>>>19)+N|0)<<18|i>>>14 -_=_+o|0,S=S+a|0,E=E+s|0,k=k+u|0,x=x+l|0,A=A+c|0,M=M+f|0,T=T+h|0,C=C+d|0,I=I+p|0,O=O+m|0,P=P+y|0,R=R+g|0,N=N+v|0,L=L+b|0,D=D+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=S>>>0&255,e[5]=S>>>8&255,e[6]=S>>>16&255,e[7]=S>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=C>>>0&255,e[33]=C>>>8&255,e[34]=C>>>16&255,e[35]=C>>>24&255,e[36]=I>>>0&255,e[37]=I>>>8&255,e[38]=I>>>16&255,e[39]=I>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=R>>>0&255,e[49]=R>>>8&255,e[50]=R>>>16&255,e[51]=R>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=L>>>0&255,e[57]=L>>>8&255,e[58]=L>>>16&255,e[59]=L>>>24&255,e[60]=D>>>0&255,e[61]=D>>>8&255,e[62]=D>>>16&255,e[63]=D>>>24&255}(e,t,r,n)}function b(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(d^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,c^=(i=(a^=(i=(v^=(i=(p^=(i=c+a|0)<<7|i>>>25)+c|0)<<9|i>>>23)+p|0)<<13|i>>>19)+v|0)<<18|i>>>14,m^=(i=(f^=(i=(s^=(i=(b^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(y^=(i=(h^=(i=(u^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,c^=(i=(l^=(i=(h^=(i=(f^=(i=c+l|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,m^=(i=(p^=(i=(d^=(i=(y^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(b^=(i=(v^=(i=(g^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+v|0)<<18|i>>>14 +return(1&a-1>>>8)-1}function y(e,t,r,n){return m(e,t,r,n,16)}function g(e,t,r,n){return m(e,t,r,n,32)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,S=a,E=s,k=u,x=l,M=c,A=f,T=h,C=d,I=p,O=m,P=y,R=g,N=v,L=b,B=w,D=0;D<20;D+=2)_^=(i=(R^=(i=(C^=(i=(x^=(i=_+R|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+C|0)<<18|i>>>14,M^=(i=(S^=(i=(N^=(i=(I^=(i=M+S|0)<<7|i>>>25)+M|0)<<9|i>>>23)+I|0)<<13|i>>>19)+N|0)<<18|i>>>14,O^=(i=(A^=(i=(E^=(i=(L^=(i=O+A|0)<<7|i>>>25)+O|0)<<9|i>>>23)+L|0)<<13|i>>>19)+E|0)<<18|i>>>14,B^=(i=(P^=(i=(T^=(i=(k^=(i=B+P|0)<<7|i>>>25)+B|0)<<9|i>>>23)+k|0)<<13|i>>>19)+T|0)<<18|i>>>14,_^=(i=(k^=(i=(E^=(i=(S^=(i=_+k|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,M^=(i=(x^=(i=(T^=(i=(A^=(i=M+x|0)<<7|i>>>25)+M|0)<<9|i>>>23)+A|0)<<13|i>>>19)+T|0)<<18|i>>>14,O^=(i=(I^=(i=(C^=(i=(P^=(i=O+I|0)<<7|i>>>25)+O|0)<<9|i>>>23)+P|0)<<13|i>>>19)+C|0)<<18|i>>>14,B^=(i=(L^=(i=(N^=(i=(R^=(i=B+L|0)<<7|i>>>25)+B|0)<<9|i>>>23)+R|0)<<13|i>>>19)+N|0)<<18|i>>>14 +_=_+o|0,S=S+a|0,E=E+s|0,k=k+u|0,x=x+l|0,M=M+c|0,A=A+f|0,T=T+h|0,C=C+d|0,I=I+p|0,O=O+m|0,P=P+y|0,R=R+g|0,N=N+v|0,L=L+b|0,B=B+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=S>>>0&255,e[5]=S>>>8&255,e[6]=S>>>16&255,e[7]=S>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=M>>>0&255,e[21]=M>>>8&255,e[22]=M>>>16&255,e[23]=M>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=C>>>0&255,e[33]=C>>>8&255,e[34]=C>>>16&255,e[35]=C>>>24&255,e[36]=I>>>0&255,e[37]=I>>>8&255,e[38]=I>>>16&255,e[39]=I>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=R>>>0&255,e[49]=R>>>8&255,e[50]=R>>>16&255,e[51]=R>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=L>>>0&255,e[57]=L>>>8&255,e[58]=L>>>16&255,e[59]=L>>>24&255,e[60]=B>>>0&255,e[61]=B>>>8&255,e[62]=B>>>16&255,e[63]=B>>>24&255}(e,t,r,n)}function b(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,l=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,d=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,b=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(d^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+d|0)<<18|i>>>14,c^=(i=(a^=(i=(v^=(i=(p^=(i=c+a|0)<<7|i>>>25)+c|0)<<9|i>>>23)+p|0)<<13|i>>>19)+v|0)<<18|i>>>14,m^=(i=(f^=(i=(s^=(i=(b^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+b|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(y^=(i=(h^=(i=(u^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,c^=(i=(l^=(i=(h^=(i=(f^=(i=c+l|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,m^=(i=(p^=(i=(d^=(i=(y^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+d|0)<<18|i>>>14,w^=(i=(b^=(i=(v^=(i=(g^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+v|0)<<18|i>>>14 e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=c>>>0&255,e[5]=c>>>8&255,e[6]=c>>>16&255,e[7]=c>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=d>>>0&255,e[25]=d>>>8&255,e[26]=d>>>16&255,e[27]=d>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]) function _(e,t,r,n,i,o,a){var s,u,l=new Uint8Array(16),c=new Uint8Array(64) for(u=0;u<16;u++)l[u]=0 @@ -15812,14 +16018,14 @@ b(s,o,a,w) for(var u=new Uint8Array(8),l=0;l<8;l++)u[l]=o[l+16] return _(e,t,r,n,i,u,s)}var x=function(e){var t,r,n,i,o,a,s,u this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8} -function A(e,t,r,n,i,o){var a=new x(o) -return a.update(r,n,i),a.finish(e,t),0}function M(e,t,r,n,i,o){var a=new Uint8Array(16) -return A(a,0,r,n,i,o),y(e,t,a,0)}function T(e,t,r,n,i){var o +function M(e,t,r,n,i,o){var a=new x(o) +return a.update(r,n,i),a.finish(e,t),0}function A(e,t,r,n,i,o){var a=new Uint8Array(16) +return M(a,0,r,n,i,o),y(e,t,a,0)}function T(e,t,r,n,i){var o if(r<32)return-1 -for(k(e,0,t,0,r,n,i),A(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0 +for(k(e,0,t,0,r,n,i),M(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0 return 0}function C(e,t,r,n,i){var o,a=new Uint8Array(32) if(r<32)return-1 -if(E(a,0,32,n,i),0!==M(t,16,t,32,r-32,a))return-1 +if(E(a,0,32,n,i),0!==A(t,16,t,32,r-32,a))return-1 for(k(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0 return 0}function I(e,t){var r for(r=0;r<16;r++)e[r]=0|t[r]}function O(e){var t,r,n=1 @@ -15829,21 +16035,21 @@ for(n=0;n<16;n++)s[n]=r[n] for(O(s),O(s),O(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535 a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function N(e,t){var r=new Uint8Array(32),n=new Uint8Array(32) return R(r,e),R(n,t),g(r,0,n,0)}function L(e){var t=new Uint8Array(32) -return R(t,e),1&t[0]}function D(e,t){var r +return R(t,e),1&t[0]}function B(e,t){var r for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8) -e[15]&=32767}function B(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function j(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function F(e,t,r){var n,i,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,m=0,y=0,g=0,v=0,b=0,w=0,_=0,S=0,E=0,k=0,x=0,A=0,M=0,T=0,C=0,I=0,O=0,P=0,R=0,N=0,L=0,D=r[0],B=r[1],j=r[2],F=r[3],U=r[4],z=r[5],H=r[6],K=r[7],q=r[8],V=r[9],W=r[10],G=r[11],Y=r[12],Z=r[13],J=r[14],Q=r[15] -o+=(n=t[0])*D,a+=n*B,s+=n*j,u+=n*F,l+=n*U,c+=n*z,f+=n*H,h+=n*K,d+=n*q,p+=n*V,m+=n*W,y+=n*G,g+=n*Y,v+=n*Z,b+=n*J,w+=n*Q,a+=(n=t[1])*D,s+=n*B,u+=n*j,l+=n*F,c+=n*U,f+=n*z,h+=n*H,d+=n*K,p+=n*q,m+=n*V,y+=n*W,g+=n*G,v+=n*Y,b+=n*Z,w+=n*J,_+=n*Q,s+=(n=t[2])*D,u+=n*B,l+=n*j,c+=n*F,f+=n*U,h+=n*z,d+=n*H,p+=n*K,m+=n*q,y+=n*V,g+=n*W,v+=n*G,b+=n*Y,w+=n*Z,_+=n*J,S+=n*Q,u+=(n=t[3])*D,l+=n*B,c+=n*j,f+=n*F,h+=n*U,d+=n*z,p+=n*H,m+=n*K,y+=n*q,g+=n*V,v+=n*W,b+=n*G,w+=n*Y,_+=n*Z,S+=n*J,E+=n*Q,l+=(n=t[4])*D,c+=n*B,f+=n*j,h+=n*F,d+=n*U,p+=n*z,m+=n*H,y+=n*K,g+=n*q,v+=n*V,b+=n*W,w+=n*G,_+=n*Y,S+=n*Z,E+=n*J,k+=n*Q,c+=(n=t[5])*D,f+=n*B,h+=n*j,d+=n*F,p+=n*U,m+=n*z,y+=n*H,g+=n*K,v+=n*q,b+=n*V,w+=n*W,_+=n*G,S+=n*Y,E+=n*Z,k+=n*J,x+=n*Q,f+=(n=t[6])*D,h+=n*B,d+=n*j,p+=n*F,m+=n*U,y+=n*z,g+=n*H,v+=n*K,b+=n*q,w+=n*V,_+=n*W,S+=n*G,E+=n*Y,k+=n*Z,x+=n*J,A+=n*Q,h+=(n=t[7])*D,d+=n*B,p+=n*j,m+=n*F,y+=n*U,g+=n*z,v+=n*H,b+=n*K,w+=n*q,_+=n*V,S+=n*W,E+=n*G,k+=n*Y,x+=n*Z,A+=n*J,M+=n*Q,d+=(n=t[8])*D,p+=n*B,m+=n*j,y+=n*F,g+=n*U,v+=n*z,b+=n*H,w+=n*K,_+=n*q,S+=n*V,E+=n*W,k+=n*G,x+=n*Y,A+=n*Z,M+=n*J,T+=n*Q,p+=(n=t[9])*D,m+=n*B,y+=n*j,g+=n*F,v+=n*U,b+=n*z,w+=n*H,_+=n*K,S+=n*q,E+=n*V,k+=n*W,x+=n*G,A+=n*Y,M+=n*Z,T+=n*J,C+=n*Q,m+=(n=t[10])*D,y+=n*B,g+=n*j,v+=n*F,b+=n*U,w+=n*z,_+=n*H,S+=n*K,E+=n*q,k+=n*V,x+=n*W,A+=n*G,M+=n*Y,T+=n*Z,C+=n*J,I+=n*Q,y+=(n=t[11])*D,g+=n*B,v+=n*j,b+=n*F,w+=n*U,_+=n*z,S+=n*H,E+=n*K,k+=n*q,x+=n*V,A+=n*W,M+=n*G,T+=n*Y,C+=n*Z,I+=n*J,O+=n*Q,g+=(n=t[12])*D,v+=n*B,b+=n*j,w+=n*F,_+=n*U,S+=n*z,E+=n*H,k+=n*K,x+=n*q,A+=n*V,M+=n*W,T+=n*G,C+=n*Y,I+=n*Z,O+=n*J,P+=n*Q,v+=(n=t[13])*D,b+=n*B,w+=n*j,_+=n*F,S+=n*U,E+=n*z,k+=n*H,x+=n*K,A+=n*q,M+=n*V,T+=n*W,C+=n*G,I+=n*Y,O+=n*Z,P+=n*J,R+=n*Q,b+=(n=t[14])*D,w+=n*B,_+=n*j,S+=n*F,E+=n*U,k+=n*z,x+=n*H,A+=n*K,M+=n*q,T+=n*V,C+=n*W,I+=n*G,O+=n*Y,P+=n*Z,R+=n*J,N+=n*Q,w+=(n=t[15])*D,a+=38*(S+=n*j),s+=38*(E+=n*F),u+=38*(k+=n*U),l+=38*(x+=n*z),c+=38*(A+=n*H),f+=38*(M+=n*K),h+=38*(T+=n*q),d+=38*(C+=n*V),p+=38*(I+=n*W),m+=38*(O+=n*G),y+=38*(P+=n*Y),g+=38*(R+=n*Z),v+=38*(N+=n*J),b+=38*(L+=n*Q),o=(n=(o+=38*(_+=n*B))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=l,e[5]=c,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=m,e[11]=y,e[12]=g,e[13]=v,e[14]=b,e[15]=w}function U(e,t){F(e,t,t)}function z(e,r){var n,i=t() +e[15]&=32767}function D(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function j(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function F(e,t,r){var n,i,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,m=0,y=0,g=0,v=0,b=0,w=0,_=0,S=0,E=0,k=0,x=0,M=0,A=0,T=0,C=0,I=0,O=0,P=0,R=0,N=0,L=0,B=r[0],D=r[1],j=r[2],F=r[3],U=r[4],z=r[5],H=r[6],K=r[7],q=r[8],V=r[9],W=r[10],G=r[11],Y=r[12],Z=r[13],J=r[14],X=r[15] +o+=(n=t[0])*B,a+=n*D,s+=n*j,u+=n*F,l+=n*U,c+=n*z,f+=n*H,h+=n*K,d+=n*q,p+=n*V,m+=n*W,y+=n*G,g+=n*Y,v+=n*Z,b+=n*J,w+=n*X,a+=(n=t[1])*B,s+=n*D,u+=n*j,l+=n*F,c+=n*U,f+=n*z,h+=n*H,d+=n*K,p+=n*q,m+=n*V,y+=n*W,g+=n*G,v+=n*Y,b+=n*Z,w+=n*J,_+=n*X,s+=(n=t[2])*B,u+=n*D,l+=n*j,c+=n*F,f+=n*U,h+=n*z,d+=n*H,p+=n*K,m+=n*q,y+=n*V,g+=n*W,v+=n*G,b+=n*Y,w+=n*Z,_+=n*J,S+=n*X,u+=(n=t[3])*B,l+=n*D,c+=n*j,f+=n*F,h+=n*U,d+=n*z,p+=n*H,m+=n*K,y+=n*q,g+=n*V,v+=n*W,b+=n*G,w+=n*Y,_+=n*Z,S+=n*J,E+=n*X,l+=(n=t[4])*B,c+=n*D,f+=n*j,h+=n*F,d+=n*U,p+=n*z,m+=n*H,y+=n*K,g+=n*q,v+=n*V,b+=n*W,w+=n*G,_+=n*Y,S+=n*Z,E+=n*J,k+=n*X,c+=(n=t[5])*B,f+=n*D,h+=n*j,d+=n*F,p+=n*U,m+=n*z,y+=n*H,g+=n*K,v+=n*q,b+=n*V,w+=n*W,_+=n*G,S+=n*Y,E+=n*Z,k+=n*J,x+=n*X,f+=(n=t[6])*B,h+=n*D,d+=n*j,p+=n*F,m+=n*U,y+=n*z,g+=n*H,v+=n*K,b+=n*q,w+=n*V,_+=n*W,S+=n*G,E+=n*Y,k+=n*Z,x+=n*J,M+=n*X,h+=(n=t[7])*B,d+=n*D,p+=n*j,m+=n*F,y+=n*U,g+=n*z,v+=n*H,b+=n*K,w+=n*q,_+=n*V,S+=n*W,E+=n*G,k+=n*Y,x+=n*Z,M+=n*J,A+=n*X,d+=(n=t[8])*B,p+=n*D,m+=n*j,y+=n*F,g+=n*U,v+=n*z,b+=n*H,w+=n*K,_+=n*q,S+=n*V,E+=n*W,k+=n*G,x+=n*Y,M+=n*Z,A+=n*J,T+=n*X,p+=(n=t[9])*B,m+=n*D,y+=n*j,g+=n*F,v+=n*U,b+=n*z,w+=n*H,_+=n*K,S+=n*q,E+=n*V,k+=n*W,x+=n*G,M+=n*Y,A+=n*Z,T+=n*J,C+=n*X,m+=(n=t[10])*B,y+=n*D,g+=n*j,v+=n*F,b+=n*U,w+=n*z,_+=n*H,S+=n*K,E+=n*q,k+=n*V,x+=n*W,M+=n*G,A+=n*Y,T+=n*Z,C+=n*J,I+=n*X,y+=(n=t[11])*B,g+=n*D,v+=n*j,b+=n*F,w+=n*U,_+=n*z,S+=n*H,E+=n*K,k+=n*q,x+=n*V,M+=n*W,A+=n*G,T+=n*Y,C+=n*Z,I+=n*J,O+=n*X,g+=(n=t[12])*B,v+=n*D,b+=n*j,w+=n*F,_+=n*U,S+=n*z,E+=n*H,k+=n*K,x+=n*q,M+=n*V,A+=n*W,T+=n*G,C+=n*Y,I+=n*Z,O+=n*J,P+=n*X,v+=(n=t[13])*B,b+=n*D,w+=n*j,_+=n*F,S+=n*U,E+=n*z,k+=n*H,x+=n*K,M+=n*q,A+=n*V,T+=n*W,C+=n*G,I+=n*Y,O+=n*Z,P+=n*J,R+=n*X,b+=(n=t[14])*B,w+=n*D,_+=n*j,S+=n*F,E+=n*U,k+=n*z,x+=n*H,M+=n*K,A+=n*q,T+=n*V,C+=n*W,I+=n*G,O+=n*Y,P+=n*Z,R+=n*J,N+=n*X,w+=(n=t[15])*B,a+=38*(S+=n*j),s+=38*(E+=n*F),u+=38*(k+=n*U),l+=38*(x+=n*z),c+=38*(M+=n*H),f+=38*(A+=n*K),h+=38*(T+=n*q),d+=38*(C+=n*V),p+=38*(I+=n*W),m+=38*(O+=n*G),y+=38*(P+=n*Y),g+=38*(R+=n*Z),v+=38*(N+=n*J),b+=38*(L+=n*X),o=(n=(o+=38*(_+=n*D))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=l,e[5]=c,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=m,e[11]=y,e[12]=g,e[13]=v,e[14]=b,e[15]=w}function U(e,t){F(e,t,t)}function z(e,r){var n,i=t() for(n=0;n<16;n++)i[n]=r[n] for(n=253;n>=0;n--)U(i,i),2!==n&&4!==n&&F(i,i,r) for(n=0;n<16;n++)e[n]=i[n]}function H(e,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),l=t(),c=t(),f=t(),h=t(),d=t(),p=t() for(o=0;o<31;o++)a[o]=r[o] -for(a[31]=127&r[31]|64,a[0]&=248,D(s,n),o=0;o<16;o++)c[o]=s[o],h[o]=l[o]=f[o]=0 -for(l[0]=h[0]=1,o=254;o>=0;--o)P(l,c,i=a[o>>>3]>>>(7&o)&1),P(f,h,i),B(d,l,f),j(l,l,f),B(f,c,h),j(c,c,h),U(h,d),U(p,l),F(l,f,l),F(f,c,d),B(d,l,f),j(l,l,f),U(c,l),j(f,h,p),F(l,f,u),B(l,l,h),F(f,f,l),F(l,h,p),F(h,c,s),U(c,d),P(l,c,i),P(f,h,i) +for(a[31]=127&r[31]|64,a[0]&=248,B(s,n),o=0;o<16;o++)c[o]=s[o],h[o]=l[o]=f[o]=0 +for(l[0]=h[0]=1,o=254;o>=0;--o)P(l,c,i=a[o>>>3]>>>(7&o)&1),P(f,h,i),D(d,l,f),j(l,l,f),D(f,c,h),j(c,c,h),U(h,d),U(p,l),F(l,f,l),F(f,c,d),D(d,l,f),j(l,l,f),U(c,l),j(f,h,p),F(l,f,u),D(l,l,h),F(f,f,l),F(l,h,p),F(h,c,s),U(c,d),P(l,c,i),P(f,h,i) for(o=0;o<16;o++)s[o+16]=l[o],s[o+32]=f[o],s[o+48]=c[o],s[o+64]=h[o] var m=s.subarray(32),y=s.subarray(16) return z(m,m),F(y,y,m),R(e,y),0}function K(e,t){return H(e,t,o)}function q(e,t){return n(t,32),K(e,t)}function V(e,t,r){var n=new Uint8Array(32) -return H(n,r,t),b(e,i,n,w)}x.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S=this.fin?0:2048,E=this.h[0],k=this.h[1],x=this.h[2],A=this.h[3],M=this.h[4],T=this.h[5],C=this.h[6],I=this.h[7],O=this.h[8],P=this.h[9],R=this.r[0],N=this.r[1],L=this.r[2],D=this.r[3],B=this.r[4],j=this.r[5],F=this.r[6],U=this.r[7],z=this.r[8],H=this.r[9];r>=16;)h=f=0,h+=(E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*R,h+=(k+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),h+=(x+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),h+=(A+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),f=(h+=(M+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,h&=8191,h+=(T+=s>>>1&8191)*(5*j),h+=(C+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*B),h+=(I+=8191&(u>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*D),h+=(O+=8191&(l>>>8|(c=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*L),d=f+=(h+=(P+=c>>>5|S)*(5*N))>>>13,d+=E*N,d+=k*R,d+=x*(5*H),d+=A*(5*z),f=(d+=M*(5*U))>>>13,d&=8191,d+=T*(5*F),d+=C*(5*j),d+=I*(5*B),d+=O*(5*D),f+=(d+=P*(5*L))>>>13,d&=8191,p=f,p+=E*L,p+=k*N,p+=x*R,p+=A*(5*H),f=(p+=M*(5*z))>>>13,p&=8191,p+=T*(5*U),p+=C*(5*F),p+=I*(5*j),p+=O*(5*B),m=f+=(p+=P*(5*D))>>>13,m+=E*D,m+=k*L,m+=x*N,m+=A*R,f=(m+=M*(5*H))>>>13,m&=8191,m+=T*(5*z),m+=C*(5*U),m+=I*(5*F),m+=O*(5*j),y=f+=(m+=P*(5*B))>>>13,y+=E*B,y+=k*D,y+=x*L,y+=A*N,f=(y+=M*R)>>>13,y&=8191,y+=T*(5*H),y+=C*(5*z),y+=I*(5*U),y+=O*(5*F),g=f+=(y+=P*(5*j))>>>13,g+=E*j,g+=k*B,g+=x*D,g+=A*L,f=(g+=M*N)>>>13,g&=8191,g+=T*R,g+=C*(5*H),g+=I*(5*z),g+=O*(5*U),v=f+=(g+=P*(5*F))>>>13,v+=E*F,v+=k*j,v+=x*B,v+=A*D,f=(v+=M*L)>>>13,v&=8191,v+=T*N,v+=C*R,v+=I*(5*H),v+=O*(5*z),b=f+=(v+=P*(5*U))>>>13,b+=E*U,b+=k*F,b+=x*j,b+=A*B,f=(b+=M*D)>>>13,b&=8191,b+=T*L,b+=C*N,b+=I*R,b+=O*(5*H),w=f+=(b+=P*(5*z))>>>13,w+=E*z,w+=k*U,w+=x*F,w+=A*j,f=(w+=M*B)>>>13,w&=8191,w+=T*D,w+=C*L,w+=I*N,w+=O*R,_=f+=(w+=P*(5*H))>>>13,_+=E*H,_+=k*z,_+=x*U,_+=A*F,f=(_+=M*j)>>>13,_&=8191,_+=T*B,_+=C*D,_+=I*L,_+=O*N,E=h=8191&(f=(f=((f+=(_+=P*R)>>>13)<<2)+f|0)+(h&=8191)|0),k=d+=f>>>=13,x=p&=8191,A=m&=8191,M=y&=8191,T=g&=8191,C=v&=8191,I=b&=8191,O=w&=8191,P=_&=8191,t+=16,r-=16 -this.h[0]=E,this.h[1]=k,this.h[2]=x,this.h[3]=A,this.h[4]=M,this.h[5]=T,this.h[6]=C,this.h[7]=I,this.h[8]=O,this.h[9]=P},x.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10) +return H(n,r,t),b(e,i,n,w)}x.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S=this.fin?0:2048,E=this.h[0],k=this.h[1],x=this.h[2],M=this.h[3],A=this.h[4],T=this.h[5],C=this.h[6],I=this.h[7],O=this.h[8],P=this.h[9],R=this.r[0],N=this.r[1],L=this.r[2],B=this.r[3],D=this.r[4],j=this.r[5],F=this.r[6],U=this.r[7],z=this.r[8],H=this.r[9];r>=16;)h=f=0,h+=(E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*R,h+=(k+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),h+=(x+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),h+=(M+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*U),f=(h+=(A+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,h&=8191,h+=(T+=s>>>1&8191)*(5*j),h+=(C+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),h+=(I+=8191&(u>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*B),h+=(O+=8191&(l>>>8|(c=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*L),d=f+=(h+=(P+=c>>>5|S)*(5*N))>>>13,d+=E*N,d+=k*R,d+=x*(5*H),d+=M*(5*z),f=(d+=A*(5*U))>>>13,d&=8191,d+=T*(5*F),d+=C*(5*j),d+=I*(5*D),d+=O*(5*B),f+=(d+=P*(5*L))>>>13,d&=8191,p=f,p+=E*L,p+=k*N,p+=x*R,p+=M*(5*H),f=(p+=A*(5*z))>>>13,p&=8191,p+=T*(5*U),p+=C*(5*F),p+=I*(5*j),p+=O*(5*D),m=f+=(p+=P*(5*B))>>>13,m+=E*B,m+=k*L,m+=x*N,m+=M*R,f=(m+=A*(5*H))>>>13,m&=8191,m+=T*(5*z),m+=C*(5*U),m+=I*(5*F),m+=O*(5*j),y=f+=(m+=P*(5*D))>>>13,y+=E*D,y+=k*B,y+=x*L,y+=M*N,f=(y+=A*R)>>>13,y&=8191,y+=T*(5*H),y+=C*(5*z),y+=I*(5*U),y+=O*(5*F),g=f+=(y+=P*(5*j))>>>13,g+=E*j,g+=k*D,g+=x*B,g+=M*L,f=(g+=A*N)>>>13,g&=8191,g+=T*R,g+=C*(5*H),g+=I*(5*z),g+=O*(5*U),v=f+=(g+=P*(5*F))>>>13,v+=E*F,v+=k*j,v+=x*D,v+=M*B,f=(v+=A*L)>>>13,v&=8191,v+=T*N,v+=C*R,v+=I*(5*H),v+=O*(5*z),b=f+=(v+=P*(5*U))>>>13,b+=E*U,b+=k*F,b+=x*j,b+=M*D,f=(b+=A*B)>>>13,b&=8191,b+=T*L,b+=C*N,b+=I*R,b+=O*(5*H),w=f+=(b+=P*(5*z))>>>13,w+=E*z,w+=k*U,w+=x*F,w+=M*j,f=(w+=A*D)>>>13,w&=8191,w+=T*B,w+=C*L,w+=I*N,w+=O*R,_=f+=(w+=P*(5*H))>>>13,_+=E*H,_+=k*z,_+=x*U,_+=M*F,f=(_+=A*j)>>>13,_&=8191,_+=T*D,_+=C*B,_+=I*L,_+=O*N,E=h=8191&(f=(f=((f+=(_+=P*R)>>>13)<<2)+f|0)+(h&=8191)|0),k=d+=f>>>=13,x=p&=8191,M=m&=8191,A=y&=8191,T=g&=8191,C=v&=8191,I=b&=8191,O=w&=8191,P=_&=8191,t+=16,r-=16 +this.h[0]=E,this.h[1]=k,this.h[2]=x,this.h[3]=M,this.h[4]=A,this.h[5]=T,this.h[6]=C,this.h[7]=I,this.h[8]=O,this.h[9]=P},x.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10) if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0 this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191 for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191 @@ -15856,16 +16062,16 @@ if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n=128;){for(S=0;S<16;S++)E=8*S+Z,I[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],O[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7] -for(S=0;S<80;S++)if(i=P,o=R,a=N,s=L,u=D,l=B,c=j,h=U,d=z,p=H,m=K,y=q,g=V,v=W,A=65535&(x=G),M=x>>>16,T=65535&(k=F),C=k>>>16,A+=65535&(x=(q>>>14|D<<18)^(q>>>18|D<<14)^(D>>>9|q<<23)),M+=x>>>16,T+=65535&(k=(D>>>14|q<<18)^(D>>>18|q<<14)^(q>>>9|D<<23)),C+=k>>>16,A+=65535&(x=q&V^~q&W),M+=x>>>16,T+=65535&(k=D&B^~D&j),C+=k>>>16,k=Y[2*S],A+=65535&(x=Y[2*S+1]),M+=x>>>16,T+=65535&k,C+=k>>>16,k=I[S%16],M+=(x=O[S%16])>>>16,T+=65535&k,C+=k>>>16,T+=(M+=(A+=65535&x)>>>16)>>>16,A=65535&(x=_=65535&A|M<<16),M=x>>>16,T=65535&(k=w=65535&T|(C+=T>>>16)<<16),C=k>>>16,A+=65535&(x=(U>>>28|P<<4)^(P>>>2|U<<30)^(P>>>7|U<<25)),M+=x>>>16,T+=65535&(k=(P>>>28|U<<4)^(U>>>2|P<<30)^(U>>>7|P<<25)),C+=k>>>16,M+=(x=U&z^U&H^z&H)>>>16,T+=65535&(k=P&R^P&N^R&N),C+=k>>>16,f=65535&(T+=(M+=(A+=65535&x)>>>16)>>>16)|(C+=T>>>16)<<16,b=65535&A|M<<16,A=65535&(x=m),M=x>>>16,T=65535&(k=s),C=k>>>16,M+=(x=_)>>>16,T+=65535&(k=w),C+=k>>>16,R=i,N=o,L=a,D=s=65535&(T+=(M+=(A+=65535&x)>>>16)>>>16)|(C+=T>>>16)<<16,B=u,j=l,F=c,P=f,z=h,H=d,K=p,q=m=65535&A|M<<16,V=y,W=g,G=v,U=b,S%16==15)for(E=0;E<16;E++)k=I[E],A=65535&(x=O[E]),M=x>>>16,T=65535&k,C=k>>>16,k=I[(E+9)%16],A+=65535&(x=O[(E+9)%16]),M+=x>>>16,T+=65535&k,C+=k>>>16,w=I[(E+1)%16],A+=65535&(x=((_=O[(E+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),M+=x>>>16,T+=65535&(k=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),C+=k>>>16,w=I[(E+14)%16],M+=(x=((_=O[(E+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,T+=65535&(k=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,I[E]=65535&T|C<<16,O[E]=65535&A|M<<16 -A=65535&(x=U),M=x>>>16,T=65535&(k=P),C=k>>>16,k=e[0],M+=(x=t[0])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[0]=P=65535&T|C<<16,t[0]=U=65535&A|M<<16,A=65535&(x=z),M=x>>>16,T=65535&(k=R),C=k>>>16,k=e[1],M+=(x=t[1])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[1]=R=65535&T|C<<16,t[1]=z=65535&A|M<<16,A=65535&(x=H),M=x>>>16,T=65535&(k=N),C=k>>>16,k=e[2],M+=(x=t[2])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[2]=N=65535&T|C<<16,t[2]=H=65535&A|M<<16,A=65535&(x=K),M=x>>>16,T=65535&(k=L),C=k>>>16,k=e[3],M+=(x=t[3])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[3]=L=65535&T|C<<16,t[3]=K=65535&A|M<<16,A=65535&(x=q),M=x>>>16,T=65535&(k=D),C=k>>>16,k=e[4],M+=(x=t[4])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[4]=D=65535&T|C<<16,t[4]=q=65535&A|M<<16,A=65535&(x=V),M=x>>>16,T=65535&(k=B),C=k>>>16,k=e[5],M+=(x=t[5])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[5]=B=65535&T|C<<16,t[5]=V=65535&A|M<<16,A=65535&(x=W),M=x>>>16,T=65535&(k=j),C=k>>>16,k=e[6],M+=(x=t[6])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[6]=j=65535&T|C<<16,t[6]=W=65535&A|M<<16,A=65535&(x=G),M=x>>>16,T=65535&(k=F),C=k>>>16,k=e[7],M+=(x=t[7])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(M+=(A+=65535&x)>>>16)>>>16)>>>16,e[7]=F=65535&T|C<<16,t[7]=G=65535&A|M<<16,Z+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r +function Z(e,t,r,n){for(var i,o,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,M,A,T,C,I=new Int32Array(16),O=new Int32Array(16),P=e[0],R=e[1],N=e[2],L=e[3],B=e[4],D=e[5],j=e[6],F=e[7],U=t[0],z=t[1],H=t[2],K=t[3],q=t[4],V=t[5],W=t[6],G=t[7],Z=0;n>=128;){for(S=0;S<16;S++)E=8*S+Z,I[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],O[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7] +for(S=0;S<80;S++)if(i=P,o=R,a=N,s=L,u=B,l=D,c=j,h=U,d=z,p=H,m=K,y=q,g=V,v=W,M=65535&(x=G),A=x>>>16,T=65535&(k=F),C=k>>>16,M+=65535&(x=(q>>>14|B<<18)^(q>>>18|B<<14)^(B>>>9|q<<23)),A+=x>>>16,T+=65535&(k=(B>>>14|q<<18)^(B>>>18|q<<14)^(q>>>9|B<<23)),C+=k>>>16,M+=65535&(x=q&V^~q&W),A+=x>>>16,T+=65535&(k=B&D^~B&j),C+=k>>>16,k=Y[2*S],M+=65535&(x=Y[2*S+1]),A+=x>>>16,T+=65535&k,C+=k>>>16,k=I[S%16],A+=(x=O[S%16])>>>16,T+=65535&k,C+=k>>>16,T+=(A+=(M+=65535&x)>>>16)>>>16,M=65535&(x=_=65535&M|A<<16),A=x>>>16,T=65535&(k=w=65535&T|(C+=T>>>16)<<16),C=k>>>16,M+=65535&(x=(U>>>28|P<<4)^(P>>>2|U<<30)^(P>>>7|U<<25)),A+=x>>>16,T+=65535&(k=(P>>>28|U<<4)^(U>>>2|P<<30)^(U>>>7|P<<25)),C+=k>>>16,A+=(x=U&z^U&H^z&H)>>>16,T+=65535&(k=P&R^P&N^R&N),C+=k>>>16,f=65535&(T+=(A+=(M+=65535&x)>>>16)>>>16)|(C+=T>>>16)<<16,b=65535&M|A<<16,M=65535&(x=m),A=x>>>16,T=65535&(k=s),C=k>>>16,A+=(x=_)>>>16,T+=65535&(k=w),C+=k>>>16,R=i,N=o,L=a,B=s=65535&(T+=(A+=(M+=65535&x)>>>16)>>>16)|(C+=T>>>16)<<16,D=u,j=l,F=c,P=f,z=h,H=d,K=p,q=m=65535&M|A<<16,V=y,W=g,G=v,U=b,S%16==15)for(E=0;E<16;E++)k=I[E],M=65535&(x=O[E]),A=x>>>16,T=65535&k,C=k>>>16,k=I[(E+9)%16],M+=65535&(x=O[(E+9)%16]),A+=x>>>16,T+=65535&k,C+=k>>>16,w=I[(E+1)%16],M+=65535&(x=((_=O[(E+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=x>>>16,T+=65535&(k=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),C+=k>>>16,w=I[(E+14)%16],A+=(x=((_=O[(E+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,T+=65535&(k=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,I[E]=65535&T|C<<16,O[E]=65535&M|A<<16 +M=65535&(x=U),A=x>>>16,T=65535&(k=P),C=k>>>16,k=e[0],A+=(x=t[0])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[0]=P=65535&T|C<<16,t[0]=U=65535&M|A<<16,M=65535&(x=z),A=x>>>16,T=65535&(k=R),C=k>>>16,k=e[1],A+=(x=t[1])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[1]=R=65535&T|C<<16,t[1]=z=65535&M|A<<16,M=65535&(x=H),A=x>>>16,T=65535&(k=N),C=k>>>16,k=e[2],A+=(x=t[2])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[2]=N=65535&T|C<<16,t[2]=H=65535&M|A<<16,M=65535&(x=K),A=x>>>16,T=65535&(k=L),C=k>>>16,k=e[3],A+=(x=t[3])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[3]=L=65535&T|C<<16,t[3]=K=65535&M|A<<16,M=65535&(x=q),A=x>>>16,T=65535&(k=B),C=k>>>16,k=e[4],A+=(x=t[4])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[4]=B=65535&T|C<<16,t[4]=q=65535&M|A<<16,M=65535&(x=V),A=x>>>16,T=65535&(k=D),C=k>>>16,k=e[5],A+=(x=t[5])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[5]=D=65535&T|C<<16,t[5]=V=65535&M|A<<16,M=65535&(x=W),A=x>>>16,T=65535&(k=j),C=k>>>16,k=e[6],A+=(x=t[6])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[6]=j=65535&T|C<<16,t[6]=W=65535&M|A<<16,M=65535&(x=G),A=x>>>16,T=65535&(k=F),C=k>>>16,k=e[7],A+=(x=t[7])>>>16,T+=65535&k,C+=k>>>16,C+=(T+=(A+=(M+=65535&x)>>>16)>>>16)>>>16,e[7]=F=65535&T|C<<16,t[7]=G=65535&M|A<<16,Z+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Z(i,o,t,r),r%=128,n=0;n=0;--i)X(e,t,n=r[i/8|0]>>(7&i)&1),Q(t,e),Q(e,e),X(e,t,n)}function te(e,r){var n=[t(),t(),t(),t()] +for(I(e[0],a),I(e[1],s),I(e[2],s),I(e[3],a),i=255;i>=0;--i)Q(e,t,n=r[i/8|0]>>(7&i)&1),X(t,e),X(e,e),Q(e,t,n)}function te(e,r){var n=[t(),t(),t(),t()] I(n[0],f),I(n[1],h),I(n[2],s),F(n[3],f,h),ee(e,n,r)}function re(e,r,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()] for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),$(e,s),o=0;o<32;o++)r[o+32]=e[o] return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]) @@ -15886,7 +16092,7 @@ for(J(u,e,n+64),oe(u),o=0;o<64;o++)c[o]=0 for(o=0;o<32;o++)c[o]=l[o] for(o=0;o<32;o++)for(a=0;a<32;a++)c[o+a]+=u[o]*s[a] return ie(e.subarray(32),c),h}function se(e,r){var n=t(),i=t(),o=t(),u=t(),c=t(),f=t(),h=t() -return I(e[2],s),D(e[1],r),U(o,e[1]),F(u,o,l),j(o,o,e[2]),B(u,e[2],u),U(c,u),U(f,c),F(h,f,c),F(n,h,o),F(n,n,u),function(e,r){var n,i=t() +return I(e[2],s),B(e[1],r),U(o,e[1]),F(u,o,l),j(o,o,e[2]),D(u,e[2],u),U(c,u),U(f,c),F(h,f,c),F(n,h,o),F(n,n,u),function(e,r){var n,i=t() for(n=0;n<16;n++)i[n]=r[n] for(n=250;n>=0;n--)U(i,i),1!==n&&F(i,i,r) for(n=0;n<16;n++)e[n]=i[n]}(n,n),F(n,n,o),F(n,n,u),F(n,n,u),F(e[0],n,u),U(i,e[0]),F(i,i,u),N(i,o)&&F(e[0],e[0],d),U(i,e[0]),F(i,i,u),N(i,o)?-1:(L(e[0])===r[31]>>7&&j(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}function ue(e,r,n,i){var o,a=new Uint8Array(32),s=new Uint8Array(64),u=[t(),t(),t(),t()],l=[t(),t(),t(),t()] @@ -15894,11 +16100,11 @@ if(n<64)return-1 if(se(l,i))return-1 for(o=0;o=r)throw RangeError(n)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(332),o=n.from([48,129,211,2,1,1,4,32,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,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,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,0,0]),a=n.from([48,130,1,19,2,1,1,4,32,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,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,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,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,0,0]) +var n=r(7).Buffer,i=r(335),o=n.from([48,129,211,2,1,1,4,32,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,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,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,0,0]),a=n.from([48,130,1,19,2,1,1,4,32,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,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,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,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,0,0]) t.privateKeyExport=function(e,t,r){var i=n.from(r?o:a) return e.copy(i,r?8:9),t.copy(i,r?181:214),i},t.privateKeyImport=function(e){var t=e.length,r=0 if(!(t1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded") if(i>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded") var o=n.allocUnsafe(6+r+i) return o[0]=48,o[1]=o.length-2,o[2]=2,o[3]=e.length,e.copy(o,4),o[4+r]=2,o[5+r]=t.length,t.copy(o,6+r),o}}},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(334),o=r(347),a=r(141),s=r(63),u=r(153),l=r(353) +var n=r(7).Buffer,i=r(337),o=r(350),a=r(142),s=r(64),u=r(154),l=r(356) t.privateKeyVerify=function(e){var t=s.fromBuffer(e) return!(t.isOverflow()||t.isZero())},t.privateKeyExport=function(e,t){var r=s.fromBuffer(e) if(r.isOverflow()||r.isZero())throw new Error(a.EC_PRIVATE_KEY_EXPORT_DER_FAIL) @@ -16107,9 +16313,9 @@ if(null===n)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL) var i=s.fromBuffer(t) if(i.isOverflow()||i.isZero())throw new Error(a.ECDH_FAIL) return n.mul(i).toPublicKey(r)}},function(e,t,r){"use strict" -var n=r(2),i=r(142),o=r(149),a=r(150),s=r(90) +var n=r(2),i=r(143),o=r(150),a=r(151),s=r(91) function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},,function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(337) +var n=r(7).Buffer,i=r(340) e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null} this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head} 0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data @@ -16121,23 +16327,23 @@ for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length}) return this.constructor.name+" "+e})},,function(e,t,r){"use strict" e.exports=o -var n=r(148),i=r(50) +var n=r(149),i=r(50) function o(e){if(!(this instanceof o))return new o(e) -n.call(this,e)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(89)},function(e,t,r){e.exports=r(25)},function(e,t,r){e.exports=r(88).Transform},function(e,t,r){e.exports=r(88).PassThrough},function(e,t,r){var n=r(2),i=r(33),o=r(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) +n.call(this,e)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(90)},function(e,t,r){e.exports=r(26)},function(e,t,r){e.exports=r(89).Transform},function(e,t,r){e.exports=r(89).PassThrough},function(e,t,r){var n=r(2),i=r(34),o=r(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f) for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16] for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+c(d,i,o,s)+u+r[h]+a[d] u=s,s=o,o=l(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) -return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(2),i=r(33),o=r(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) +return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(2),i=r(34),o=r(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h) for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31 for(var d=0;d<80;++d){var p=~~(d/20),m=l(n)+f(p,i,o,s)+u+r[d]+a[p]|0 u=s,s=o,o=c(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) -return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(2),i=r(151),o=r(33),a=r(7).Buffer,s=new Array(64) +return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(2),i=r(152),o=r(34),a=r(7).Buffer,s=new Array(64) function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28) -return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){var n=r(2),i=r(152),o=r(33),a=r(7).Buffer,s=new Array(160) +return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){var n=r(2),i=r(153),o=r(34),a=r(7).Buffer,s=new Array(160) function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48) -function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(348),i=r(351),o=new t(0),a=new t([0]),s=new t([1]) +function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){"use strict";(function(t){var n=r(351),i=r(354),o=new t(0),a=new t([0]),s=new t([1]) function u(e,t,r,n){var o=i[e] if(void 0===o)throw new Error("hash "+e+" is not supported") this._algo=e,this._securityStrength=o.securityStrength/8,this._outlen=o.outlen/8,this._reseedInterval=281474976710656,this._init(t,r,n)}u.prototype._update=function(e){var t=n(this._algo,this._K).update(this._V).update(a) @@ -16149,66 +16355,66 @@ this._update(t.concat([e,r||o])),this._reseed=1},u.prototype.generate=function(e r&&0===r.length&&(r=void 0),r&&this._update(r) for(var i=new t(0);i.lengthr?t=("rmd160"===e?new u:l(e)).update(t).digest():t.lengths?t=e(t):t.length>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],A=8191&x,M=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,D=N>>>13,B=0|a[9],j=8191&B,F=B>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,Q=Z>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +t.umulTo10x10=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,h=c>>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.length=19,n=Math.imul(f,z),i=Math.imul(f,H) var ye=l+n+((8191&(i+=Math.imul(h,z)))<<13) l=(o=Math.imul(h,H))+(i>>>13)+(ye>>>26),ye&=67108863,n=Math.imul(p,z),i=Math.imul(p,H),i+=Math.imul(m,z),o=Math.imul(m,H),n+=Math.imul(f,q),i+=Math.imul(f,V) var ge=l+n+((8191&(i+=Math.imul(h,q)))<<13) l=(o+=Math.imul(h,V))+(i>>>13)+(ge>>>26),ge&=67108863,n=Math.imul(g,z),i=Math.imul(g,H),i+=Math.imul(v,z),o=Math.imul(v,H),n+=Math.imul(p,q),i+=Math.imul(p,V),i+=Math.imul(m,q),o+=Math.imul(m,V),n+=Math.imul(f,G),i+=Math.imul(f,Y) var ve=l+n+((8191&(i+=Math.imul(h,G)))<<13) -l=(o+=Math.imul(h,Y))+(i>>>13)+(ve>>>26),ve&=67108863,n=Math.imul(w,z),i=Math.imul(w,H),i+=Math.imul(_,z),o=Math.imul(_,H),n+=Math.imul(g,q),i+=Math.imul(g,V),i+=Math.imul(v,q),o+=Math.imul(v,V),n+=Math.imul(p,G),i+=Math.imul(p,Y),i+=Math.imul(m,G),o+=Math.imul(m,Y),n+=Math.imul(f,J),i+=Math.imul(f,Q) +l=(o+=Math.imul(h,Y))+(i>>>13)+(ve>>>26),ve&=67108863,n=Math.imul(w,z),i=Math.imul(w,H),i+=Math.imul(_,z),o=Math.imul(_,H),n+=Math.imul(g,q),i+=Math.imul(g,V),i+=Math.imul(v,q),o+=Math.imul(v,V),n+=Math.imul(p,G),i+=Math.imul(p,Y),i+=Math.imul(m,G),o+=Math.imul(m,Y),n+=Math.imul(f,J),i+=Math.imul(f,X) var be=l+n+((8191&(i+=Math.imul(h,J)))<<13) -l=(o+=Math.imul(h,Q))+(i>>>13)+(be>>>26),be&=67108863,n=Math.imul(E,z),i=Math.imul(E,H),i+=Math.imul(k,z),o=Math.imul(k,H),n+=Math.imul(w,q),i+=Math.imul(w,V),i+=Math.imul(_,q),o+=Math.imul(_,V),n+=Math.imul(g,G),i+=Math.imul(g,Y),i+=Math.imul(v,G),o+=Math.imul(v,Y),n+=Math.imul(p,J),i+=Math.imul(p,Q),i+=Math.imul(m,J),o+=Math.imul(m,Q),n+=Math.imul(f,$),i+=Math.imul(f,ee) +l=(o+=Math.imul(h,X))+(i>>>13)+(be>>>26),be&=67108863,n=Math.imul(E,z),i=Math.imul(E,H),i+=Math.imul(k,z),o=Math.imul(k,H),n+=Math.imul(w,q),i+=Math.imul(w,V),i+=Math.imul(_,q),o+=Math.imul(_,V),n+=Math.imul(g,G),i+=Math.imul(g,Y),i+=Math.imul(v,G),o+=Math.imul(v,Y),n+=Math.imul(p,J),i+=Math.imul(p,X),i+=Math.imul(m,J),o+=Math.imul(m,X),n+=Math.imul(f,$),i+=Math.imul(f,ee) var we=l+n+((8191&(i+=Math.imul(h,$)))<<13) -l=(o+=Math.imul(h,ee))+(i>>>13)+(we>>>26),we&=67108863,n=Math.imul(A,z),i=Math.imul(A,H),i+=Math.imul(M,z),o=Math.imul(M,H),n+=Math.imul(E,q),i+=Math.imul(E,V),i+=Math.imul(k,q),o+=Math.imul(k,V),n+=Math.imul(w,G),i+=Math.imul(w,Y),i+=Math.imul(_,G),o+=Math.imul(_,Y),n+=Math.imul(g,J),i+=Math.imul(g,Q),i+=Math.imul(v,J),o+=Math.imul(v,Q),n+=Math.imul(p,$),i+=Math.imul(p,ee),i+=Math.imul(m,$),o+=Math.imul(m,ee),n+=Math.imul(f,re),i+=Math.imul(f,ne) +l=(o+=Math.imul(h,ee))+(i>>>13)+(we>>>26),we&=67108863,n=Math.imul(M,z),i=Math.imul(M,H),i+=Math.imul(A,z),o=Math.imul(A,H),n+=Math.imul(E,q),i+=Math.imul(E,V),i+=Math.imul(k,q),o+=Math.imul(k,V),n+=Math.imul(w,G),i+=Math.imul(w,Y),i+=Math.imul(_,G),o+=Math.imul(_,Y),n+=Math.imul(g,J),i+=Math.imul(g,X),i+=Math.imul(v,J),o+=Math.imul(v,X),n+=Math.imul(p,$),i+=Math.imul(p,ee),i+=Math.imul(m,$),o+=Math.imul(m,ee),n+=Math.imul(f,re),i+=Math.imul(f,ne) var _e=l+n+((8191&(i+=Math.imul(h,re)))<<13) -l=(o+=Math.imul(h,ne))+(i>>>13)+(_e>>>26),_e&=67108863,n=Math.imul(C,z),i=Math.imul(C,H),i+=Math.imul(I,z),o=Math.imul(I,H),n+=Math.imul(A,q),i+=Math.imul(A,V),i+=Math.imul(M,q),o+=Math.imul(M,V),n+=Math.imul(E,G),i+=Math.imul(E,Y),i+=Math.imul(k,G),o+=Math.imul(k,Y),n+=Math.imul(w,J),i+=Math.imul(w,Q),i+=Math.imul(_,J),o+=Math.imul(_,Q),n+=Math.imul(g,$),i+=Math.imul(g,ee),i+=Math.imul(v,$),o+=Math.imul(v,ee),n+=Math.imul(p,re),i+=Math.imul(p,ne),i+=Math.imul(m,re),o+=Math.imul(m,ne),n+=Math.imul(f,oe),i+=Math.imul(f,ae) +l=(o+=Math.imul(h,ne))+(i>>>13)+(_e>>>26),_e&=67108863,n=Math.imul(C,z),i=Math.imul(C,H),i+=Math.imul(I,z),o=Math.imul(I,H),n+=Math.imul(M,q),i+=Math.imul(M,V),i+=Math.imul(A,q),o+=Math.imul(A,V),n+=Math.imul(E,G),i+=Math.imul(E,Y),i+=Math.imul(k,G),o+=Math.imul(k,Y),n+=Math.imul(w,J),i+=Math.imul(w,X),i+=Math.imul(_,J),o+=Math.imul(_,X),n+=Math.imul(g,$),i+=Math.imul(g,ee),i+=Math.imul(v,$),o+=Math.imul(v,ee),n+=Math.imul(p,re),i+=Math.imul(p,ne),i+=Math.imul(m,re),o+=Math.imul(m,ne),n+=Math.imul(f,oe),i+=Math.imul(f,ae) var Se=l+n+((8191&(i+=Math.imul(h,oe)))<<13) -l=(o+=Math.imul(h,ae))+(i>>>13)+(Se>>>26),Se&=67108863,n=Math.imul(P,z),i=Math.imul(P,H),i+=Math.imul(R,z),o=Math.imul(R,H),n+=Math.imul(C,q),i+=Math.imul(C,V),i+=Math.imul(I,q),o+=Math.imul(I,V),n+=Math.imul(A,G),i+=Math.imul(A,Y),i+=Math.imul(M,G),o+=Math.imul(M,Y),n+=Math.imul(E,J),i+=Math.imul(E,Q),i+=Math.imul(k,J),o+=Math.imul(k,Q),n+=Math.imul(w,$),i+=Math.imul(w,ee),i+=Math.imul(_,$),o+=Math.imul(_,ee),n+=Math.imul(g,re),i+=Math.imul(g,ne),i+=Math.imul(v,re),o+=Math.imul(v,ne),n+=Math.imul(p,oe),i+=Math.imul(p,ae),i+=Math.imul(m,oe),o+=Math.imul(m,ae),n+=Math.imul(f,ue),i+=Math.imul(f,le) +l=(o+=Math.imul(h,ae))+(i>>>13)+(Se>>>26),Se&=67108863,n=Math.imul(P,z),i=Math.imul(P,H),i+=Math.imul(R,z),o=Math.imul(R,H),n+=Math.imul(C,q),i+=Math.imul(C,V),i+=Math.imul(I,q),o+=Math.imul(I,V),n+=Math.imul(M,G),i+=Math.imul(M,Y),i+=Math.imul(A,G),o+=Math.imul(A,Y),n+=Math.imul(E,J),i+=Math.imul(E,X),i+=Math.imul(k,J),o+=Math.imul(k,X),n+=Math.imul(w,$),i+=Math.imul(w,ee),i+=Math.imul(_,$),o+=Math.imul(_,ee),n+=Math.imul(g,re),i+=Math.imul(g,ne),i+=Math.imul(v,re),o+=Math.imul(v,ne),n+=Math.imul(p,oe),i+=Math.imul(p,ae),i+=Math.imul(m,oe),o+=Math.imul(m,ae),n+=Math.imul(f,ue),i+=Math.imul(f,le) var Ee=l+n+((8191&(i+=Math.imul(h,ue)))<<13) -l=(o+=Math.imul(h,le))+(i>>>13)+(Ee>>>26),Ee&=67108863,n=Math.imul(L,z),i=Math.imul(L,H),i+=Math.imul(D,z),o=Math.imul(D,H),n+=Math.imul(P,q),i+=Math.imul(P,V),i+=Math.imul(R,q),o+=Math.imul(R,V),n+=Math.imul(C,G),i+=Math.imul(C,Y),i+=Math.imul(I,G),o+=Math.imul(I,Y),n+=Math.imul(A,J),i+=Math.imul(A,Q),i+=Math.imul(M,J),o+=Math.imul(M,Q),n+=Math.imul(E,$),i+=Math.imul(E,ee),i+=Math.imul(k,$),o+=Math.imul(k,ee),n+=Math.imul(w,re),i+=Math.imul(w,ne),i+=Math.imul(_,re),o+=Math.imul(_,ne),n+=Math.imul(g,oe),i+=Math.imul(g,ae),i+=Math.imul(v,oe),o+=Math.imul(v,ae),n+=Math.imul(p,ue),i+=Math.imul(p,le),i+=Math.imul(m,ue),o+=Math.imul(m,le),n+=Math.imul(f,fe),i+=Math.imul(f,he) +l=(o+=Math.imul(h,le))+(i>>>13)+(Ee>>>26),Ee&=67108863,n=Math.imul(L,z),i=Math.imul(L,H),i+=Math.imul(B,z),o=Math.imul(B,H),n+=Math.imul(P,q),i+=Math.imul(P,V),i+=Math.imul(R,q),o+=Math.imul(R,V),n+=Math.imul(C,G),i+=Math.imul(C,Y),i+=Math.imul(I,G),o+=Math.imul(I,Y),n+=Math.imul(M,J),i+=Math.imul(M,X),i+=Math.imul(A,J),o+=Math.imul(A,X),n+=Math.imul(E,$),i+=Math.imul(E,ee),i+=Math.imul(k,$),o+=Math.imul(k,ee),n+=Math.imul(w,re),i+=Math.imul(w,ne),i+=Math.imul(_,re),o+=Math.imul(_,ne),n+=Math.imul(g,oe),i+=Math.imul(g,ae),i+=Math.imul(v,oe),o+=Math.imul(v,ae),n+=Math.imul(p,ue),i+=Math.imul(p,le),i+=Math.imul(m,ue),o+=Math.imul(m,le),n+=Math.imul(f,fe),i+=Math.imul(f,he) var ke=l+n+((8191&(i+=Math.imul(h,fe)))<<13) -l=(o+=Math.imul(h,he))+(i>>>13)+(ke>>>26),ke&=67108863,n=Math.imul(j,z),i=Math.imul(j,H),i+=Math.imul(F,z),o=Math.imul(F,H),n+=Math.imul(L,q),i+=Math.imul(L,V),i+=Math.imul(D,q),o+=Math.imul(D,V),n+=Math.imul(P,G),i+=Math.imul(P,Y),i+=Math.imul(R,G),o+=Math.imul(R,Y),n+=Math.imul(C,J),i+=Math.imul(C,Q),i+=Math.imul(I,J),o+=Math.imul(I,Q),n+=Math.imul(A,$),i+=Math.imul(A,ee),i+=Math.imul(M,$),o+=Math.imul(M,ee),n+=Math.imul(E,re),i+=Math.imul(E,ne),i+=Math.imul(k,re),o+=Math.imul(k,ne),n+=Math.imul(w,oe),i+=Math.imul(w,ae),i+=Math.imul(_,oe),o+=Math.imul(_,ae),n+=Math.imul(g,ue),i+=Math.imul(g,le),i+=Math.imul(v,ue),o+=Math.imul(v,le),n+=Math.imul(p,fe),i+=Math.imul(p,he),i+=Math.imul(m,fe),o+=Math.imul(m,he),n+=Math.imul(f,pe),i+=Math.imul(f,me) +l=(o+=Math.imul(h,he))+(i>>>13)+(ke>>>26),ke&=67108863,n=Math.imul(j,z),i=Math.imul(j,H),i+=Math.imul(F,z),o=Math.imul(F,H),n+=Math.imul(L,q),i+=Math.imul(L,V),i+=Math.imul(B,q),o+=Math.imul(B,V),n+=Math.imul(P,G),i+=Math.imul(P,Y),i+=Math.imul(R,G),o+=Math.imul(R,Y),n+=Math.imul(C,J),i+=Math.imul(C,X),i+=Math.imul(I,J),o+=Math.imul(I,X),n+=Math.imul(M,$),i+=Math.imul(M,ee),i+=Math.imul(A,$),o+=Math.imul(A,ee),n+=Math.imul(E,re),i+=Math.imul(E,ne),i+=Math.imul(k,re),o+=Math.imul(k,ne),n+=Math.imul(w,oe),i+=Math.imul(w,ae),i+=Math.imul(_,oe),o+=Math.imul(_,ae),n+=Math.imul(g,ue),i+=Math.imul(g,le),i+=Math.imul(v,ue),o+=Math.imul(v,le),n+=Math.imul(p,fe),i+=Math.imul(p,he),i+=Math.imul(m,fe),o+=Math.imul(m,he),n+=Math.imul(f,pe),i+=Math.imul(f,me) var xe=l+n+((8191&(i+=Math.imul(h,pe)))<<13) -l=(o+=Math.imul(h,me))+(i>>>13)+(xe>>>26),xe&=67108863,n=Math.imul(j,q),i=Math.imul(j,V),i+=Math.imul(F,q),o=Math.imul(F,V),n+=Math.imul(L,G),i+=Math.imul(L,Y),i+=Math.imul(D,G),o+=Math.imul(D,Y),n+=Math.imul(P,J),i+=Math.imul(P,Q),i+=Math.imul(R,J),o+=Math.imul(R,Q),n+=Math.imul(C,$),i+=Math.imul(C,ee),i+=Math.imul(I,$),o+=Math.imul(I,ee),n+=Math.imul(A,re),i+=Math.imul(A,ne),i+=Math.imul(M,re),o+=Math.imul(M,ne),n+=Math.imul(E,oe),i+=Math.imul(E,ae),i+=Math.imul(k,oe),o+=Math.imul(k,ae),n+=Math.imul(w,ue),i+=Math.imul(w,le),i+=Math.imul(_,ue),o+=Math.imul(_,le),n+=Math.imul(g,fe),i+=Math.imul(g,he),i+=Math.imul(v,fe),o+=Math.imul(v,he),n+=Math.imul(p,pe),i+=Math.imul(p,me) -var Ae=l+n+((8191&(i+=Math.imul(m,pe)))<<13) -l=(o+=Math.imul(m,me))+(i>>>13)+(Ae>>>26),Ae&=67108863,n=Math.imul(j,G),i=Math.imul(j,Y),i+=Math.imul(F,G),o=Math.imul(F,Y),n+=Math.imul(L,J),i+=Math.imul(L,Q),i+=Math.imul(D,J),o+=Math.imul(D,Q),n+=Math.imul(P,$),i+=Math.imul(P,ee),i+=Math.imul(R,$),o+=Math.imul(R,ee),n+=Math.imul(C,re),i+=Math.imul(C,ne),i+=Math.imul(I,re),o+=Math.imul(I,ne),n+=Math.imul(A,oe),i+=Math.imul(A,ae),i+=Math.imul(M,oe),o+=Math.imul(M,ae),n+=Math.imul(E,ue),i+=Math.imul(E,le),i+=Math.imul(k,ue),o+=Math.imul(k,le),n+=Math.imul(w,fe),i+=Math.imul(w,he),i+=Math.imul(_,fe),o+=Math.imul(_,he),n+=Math.imul(g,pe),i+=Math.imul(g,me) -var Me=l+n+((8191&(i+=Math.imul(v,pe)))<<13) -l=(o+=Math.imul(v,me))+(i>>>13)+(Me>>>26),Me&=67108863,n=Math.imul(j,J),i=Math.imul(j,Q),i+=Math.imul(F,J),o=Math.imul(F,Q),n+=Math.imul(L,$),i+=Math.imul(L,ee),i+=Math.imul(D,$),o+=Math.imul(D,ee),n+=Math.imul(P,re),i+=Math.imul(P,ne),i+=Math.imul(R,re),o+=Math.imul(R,ne),n+=Math.imul(C,oe),i+=Math.imul(C,ae),i+=Math.imul(I,oe),o+=Math.imul(I,ae),n+=Math.imul(A,ue),i+=Math.imul(A,le),i+=Math.imul(M,ue),o+=Math.imul(M,le),n+=Math.imul(E,fe),i+=Math.imul(E,he),i+=Math.imul(k,fe),o+=Math.imul(k,he),n+=Math.imul(w,pe),i+=Math.imul(w,me) +l=(o+=Math.imul(h,me))+(i>>>13)+(xe>>>26),xe&=67108863,n=Math.imul(j,q),i=Math.imul(j,V),i+=Math.imul(F,q),o=Math.imul(F,V),n+=Math.imul(L,G),i+=Math.imul(L,Y),i+=Math.imul(B,G),o+=Math.imul(B,Y),n+=Math.imul(P,J),i+=Math.imul(P,X),i+=Math.imul(R,J),o+=Math.imul(R,X),n+=Math.imul(C,$),i+=Math.imul(C,ee),i+=Math.imul(I,$),o+=Math.imul(I,ee),n+=Math.imul(M,re),i+=Math.imul(M,ne),i+=Math.imul(A,re),o+=Math.imul(A,ne),n+=Math.imul(E,oe),i+=Math.imul(E,ae),i+=Math.imul(k,oe),o+=Math.imul(k,ae),n+=Math.imul(w,ue),i+=Math.imul(w,le),i+=Math.imul(_,ue),o+=Math.imul(_,le),n+=Math.imul(g,fe),i+=Math.imul(g,he),i+=Math.imul(v,fe),o+=Math.imul(v,he),n+=Math.imul(p,pe),i+=Math.imul(p,me) +var Me=l+n+((8191&(i+=Math.imul(m,pe)))<<13) +l=(o+=Math.imul(m,me))+(i>>>13)+(Me>>>26),Me&=67108863,n=Math.imul(j,G),i=Math.imul(j,Y),i+=Math.imul(F,G),o=Math.imul(F,Y),n+=Math.imul(L,J),i+=Math.imul(L,X),i+=Math.imul(B,J),o+=Math.imul(B,X),n+=Math.imul(P,$),i+=Math.imul(P,ee),i+=Math.imul(R,$),o+=Math.imul(R,ee),n+=Math.imul(C,re),i+=Math.imul(C,ne),i+=Math.imul(I,re),o+=Math.imul(I,ne),n+=Math.imul(M,oe),i+=Math.imul(M,ae),i+=Math.imul(A,oe),o+=Math.imul(A,ae),n+=Math.imul(E,ue),i+=Math.imul(E,le),i+=Math.imul(k,ue),o+=Math.imul(k,le),n+=Math.imul(w,fe),i+=Math.imul(w,he),i+=Math.imul(_,fe),o+=Math.imul(_,he),n+=Math.imul(g,pe),i+=Math.imul(g,me) +var Ae=l+n+((8191&(i+=Math.imul(v,pe)))<<13) +l=(o+=Math.imul(v,me))+(i>>>13)+(Ae>>>26),Ae&=67108863,n=Math.imul(j,J),i=Math.imul(j,X),i+=Math.imul(F,J),o=Math.imul(F,X),n+=Math.imul(L,$),i+=Math.imul(L,ee),i+=Math.imul(B,$),o+=Math.imul(B,ee),n+=Math.imul(P,re),i+=Math.imul(P,ne),i+=Math.imul(R,re),o+=Math.imul(R,ne),n+=Math.imul(C,oe),i+=Math.imul(C,ae),i+=Math.imul(I,oe),o+=Math.imul(I,ae),n+=Math.imul(M,ue),i+=Math.imul(M,le),i+=Math.imul(A,ue),o+=Math.imul(A,le),n+=Math.imul(E,fe),i+=Math.imul(E,he),i+=Math.imul(k,fe),o+=Math.imul(k,he),n+=Math.imul(w,pe),i+=Math.imul(w,me) var Te=l+n+((8191&(i+=Math.imul(_,pe)))<<13) -l=(o+=Math.imul(_,me))+(i>>>13)+(Te>>>26),Te&=67108863,n=Math.imul(j,$),i=Math.imul(j,ee),i+=Math.imul(F,$),o=Math.imul(F,ee),n+=Math.imul(L,re),i+=Math.imul(L,ne),i+=Math.imul(D,re),o+=Math.imul(D,ne),n+=Math.imul(P,oe),i+=Math.imul(P,ae),i+=Math.imul(R,oe),o+=Math.imul(R,ae),n+=Math.imul(C,ue),i+=Math.imul(C,le),i+=Math.imul(I,ue),o+=Math.imul(I,le),n+=Math.imul(A,fe),i+=Math.imul(A,he),i+=Math.imul(M,fe),o+=Math.imul(M,he),n+=Math.imul(E,pe),i+=Math.imul(E,me) +l=(o+=Math.imul(_,me))+(i>>>13)+(Te>>>26),Te&=67108863,n=Math.imul(j,$),i=Math.imul(j,ee),i+=Math.imul(F,$),o=Math.imul(F,ee),n+=Math.imul(L,re),i+=Math.imul(L,ne),i+=Math.imul(B,re),o+=Math.imul(B,ne),n+=Math.imul(P,oe),i+=Math.imul(P,ae),i+=Math.imul(R,oe),o+=Math.imul(R,ae),n+=Math.imul(C,ue),i+=Math.imul(C,le),i+=Math.imul(I,ue),o+=Math.imul(I,le),n+=Math.imul(M,fe),i+=Math.imul(M,he),i+=Math.imul(A,fe),o+=Math.imul(A,he),n+=Math.imul(E,pe),i+=Math.imul(E,me) var Ce=l+n+((8191&(i+=Math.imul(k,pe)))<<13) -l=(o+=Math.imul(k,me))+(i>>>13)+(Ce>>>26),Ce&=67108863,n=Math.imul(j,re),i=Math.imul(j,ne),i+=Math.imul(F,re),o=Math.imul(F,ne),n+=Math.imul(L,oe),i+=Math.imul(L,ae),i+=Math.imul(D,oe),o+=Math.imul(D,ae),n+=Math.imul(P,ue),i+=Math.imul(P,le),i+=Math.imul(R,ue),o+=Math.imul(R,le),n+=Math.imul(C,fe),i+=Math.imul(C,he),i+=Math.imul(I,fe),o+=Math.imul(I,he),n+=Math.imul(A,pe),i+=Math.imul(A,me) -var Ie=l+n+((8191&(i+=Math.imul(M,pe)))<<13) -l=(o+=Math.imul(M,me))+(i>>>13)+(Ie>>>26),Ie&=67108863,n=Math.imul(j,oe),i=Math.imul(j,ae),i+=Math.imul(F,oe),o=Math.imul(F,ae),n+=Math.imul(L,ue),i+=Math.imul(L,le),i+=Math.imul(D,ue),o+=Math.imul(D,le),n+=Math.imul(P,fe),i+=Math.imul(P,he),i+=Math.imul(R,fe),o+=Math.imul(R,he),n+=Math.imul(C,pe),i+=Math.imul(C,me) +l=(o+=Math.imul(k,me))+(i>>>13)+(Ce>>>26),Ce&=67108863,n=Math.imul(j,re),i=Math.imul(j,ne),i+=Math.imul(F,re),o=Math.imul(F,ne),n+=Math.imul(L,oe),i+=Math.imul(L,ae),i+=Math.imul(B,oe),o+=Math.imul(B,ae),n+=Math.imul(P,ue),i+=Math.imul(P,le),i+=Math.imul(R,ue),o+=Math.imul(R,le),n+=Math.imul(C,fe),i+=Math.imul(C,he),i+=Math.imul(I,fe),o+=Math.imul(I,he),n+=Math.imul(M,pe),i+=Math.imul(M,me) +var Ie=l+n+((8191&(i+=Math.imul(A,pe)))<<13) +l=(o+=Math.imul(A,me))+(i>>>13)+(Ie>>>26),Ie&=67108863,n=Math.imul(j,oe),i=Math.imul(j,ae),i+=Math.imul(F,oe),o=Math.imul(F,ae),n+=Math.imul(L,ue),i+=Math.imul(L,le),i+=Math.imul(B,ue),o+=Math.imul(B,le),n+=Math.imul(P,fe),i+=Math.imul(P,he),i+=Math.imul(R,fe),o+=Math.imul(R,he),n+=Math.imul(C,pe),i+=Math.imul(C,me) var Oe=l+n+((8191&(i+=Math.imul(I,pe)))<<13) -l=(o+=Math.imul(I,me))+(i>>>13)+(Oe>>>26),Oe&=67108863,n=Math.imul(j,ue),i=Math.imul(j,le),i+=Math.imul(F,ue),o=Math.imul(F,le),n+=Math.imul(L,fe),i+=Math.imul(L,he),i+=Math.imul(D,fe),o+=Math.imul(D,he),n+=Math.imul(P,pe),i+=Math.imul(P,me) +l=(o+=Math.imul(I,me))+(i>>>13)+(Oe>>>26),Oe&=67108863,n=Math.imul(j,ue),i=Math.imul(j,le),i+=Math.imul(F,ue),o=Math.imul(F,le),n+=Math.imul(L,fe),i+=Math.imul(L,he),i+=Math.imul(B,fe),o+=Math.imul(B,he),n+=Math.imul(P,pe),i+=Math.imul(P,me) var Pe=l+n+((8191&(i+=Math.imul(R,pe)))<<13) l=(o+=Math.imul(R,me))+(i>>>13)+(Pe>>>26),Pe&=67108863,n=Math.imul(j,fe),i=Math.imul(j,he),i+=Math.imul(F,fe),o=Math.imul(F,he),n+=Math.imul(L,pe),i+=Math.imul(L,me) -var Re=l+n+((8191&(i+=Math.imul(D,pe)))<<13) -l=(o+=Math.imul(D,me))+(i>>>13)+(Re>>>26),Re&=67108863,n=Math.imul(j,pe),i=Math.imul(j,me) +var Re=l+n+((8191&(i+=Math.imul(B,pe)))<<13) +l=(o+=Math.imul(B,me))+(i>>>13)+(Re>>>26),Re&=67108863,n=Math.imul(j,pe),i=Math.imul(j,me) var Ne=l+n+((8191&(i+=Math.imul(F,pe)))<<13) -return l=(o=Math.imul(F,me))+(i>>>13)+(Ne>>>26),Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Ae,u[11]=Me,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r}},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(63),o=r(153),a=r(154) +return l=(o=Math.imul(F,me))+(i>>>13)+(Ne>>>26),Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r}},function(e,t,r){"use strict" +var n=r(7).Buffer,i=r(64),o=r(154),a=r(155) function s(){this.x=i.fromBuffer(n.from("79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","hex")),this.y=i.fromBuffer(n.from("483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8","hex")),this.inf=!1,this._precompute()}s.prototype._precompute=function(){for(var e=new o(this.x,this.y),t=new Array(1+Math.ceil(64.25)),r=t[0]=e,n=1;n=l;f--)c=(c<<1)+i[f] u.push(c)}for(var h=new a(null,null,null),d=new a(null,null,null),p=s;p>0;p--){for(var m=0;m=0;c--){for(var f=0;c>=0&&(l[0]=0|s[0][c],l[1]=0|s[1][c],0===l[0]&&0===l[1]);++f,--c);if(c>=0&&(f+=1),u=u.dblp(f),c<0)break for(var h=0;h<2;h++){var d,p=l[h] -0!==p&&(p>0?d=o[h][p>>1]:p<0&&(d=o[h][-p>>1].neg()),u=void 0===d.z?u.mixedAdd(d):u.add(d))}}return u},e.exports=new s},function(e,t,r){"use strict";(function(t){var n=r(355),i=r(358),o={"AES-128":{ivSize:16,keySize:16},"AES-256":{ivSize:16,keySize:32},Blowfish:{ivSize:8,cipherKeySize:32}} +0!==p&&(p>0?d=o[h][p>>1]:p<0&&(d=o[h][-p>>1].neg()),u=void 0===d.z?u.mixedAdd(d):u.add(d))}}return u},e.exports=new s},function(e,t,r){"use strict";(function(t){var n=r(358),i=r(361),o={"AES-128":{ivSize:16,keySize:16},"AES-256":{ivSize:16,keySize:32},Blowfish:{ivSize:8,cipherKeySize:32}} e.exports=function(e,r,a,s){var u=o[e] if(!u)return s(new Error("unkown cipherType passed")) if(!r)return s(new Error("unkown hashType passed")) @@ -16229,21 +16435,21 @@ s(function t(n){if(n)return r(n) if(e())return s(t) var o=(0,i.default)(arguments,1) r.apply(null,[null].concat(o))})} -var n=s(r(92)),i=s(r(61)),o=s(r(93)),a=s(r(94)) +var n=s(r(93)),i=s(r(61)),o=s(r(94)),a=s(r(95)) function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(function(t,r){var i try{i=e.apply(this,t)}catch(e){return r(e)}(0,n.default)(i)&&"function"==typeof i.then?i.then(function(e){s(r,null,e)},function(e){s(r,e.message?e:new Error(e))}):r(null,i)})} -var n=a(r(155)),i=a(r(357)),o=a(r(81)) +var n=a(r(156)),i=a(r(360)),o=a(r(82)) function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r){try{e(t,r)}catch(e){(0,o.default)(u,e)}}function u(e){throw e}e.exports=t.default},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=(0,i.default)(arguments),r=t.pop() e.call(this,t,r)}} var n,i=(n=r(61))&&n.__esModule?n:{default:n} -e.exports=t.default},function(e,t,r){"use strict";(function(e){var n=r(82),i=r(83),o=r(359),a={SHA1:"SHA-1",SHA256:"SHA-256",SHA512:"SHA-512"} +e.exports=t.default},function(e,t,r){"use strict";(function(e){var n=r(83),i=r(84),o=r(362),a={SHA1:"SHA-1",SHA256:"SHA-256",SHA512:"SHA-512"} t.create=function(t,r,s){var u=a[t] n(i.subtle.importKey("raw",r,{name:"HMAC",hash:{name:u}},!1,["sign"]).then(function(r){return{digest:function(t,o){!function(t,r,o){n(i.subtle.sign({name:"HMAC"},t,r).then(function(t){return e.from(t)}),o)}(r,t,o)},length:o[t]}}),s)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" e.exports={SHA1:20,SHA256:32,SHA512:64}},function(e,t,r){"use strict" -var n=r(361) -e.exports=function(e,t){n.generateEphmeralKeyPair(e,t)}},function(e,t,r){"use strict";(function(e){var n=r(83),i=r(82),o=r(84).bignum,a=r(140),s=a.toBase64,u=a.toBn,l={"P-256":256,"P-384":384,"P-521":521} +var n=r(364) +e.exports=function(e,t){n.generateEphmeralKeyPair(e,t)}},function(e,t,r){"use strict";(function(e){var n=r(84),i=r(83),o=r(85).bignum,a=r(141),s=a.toBase64,u=a.toBn,l={"P-256":256,"P-384":384,"P-521":521} t.generateEphmeralKeyPair=function(t,r){i(n.subtle.generateKey({name:"ECDH",namedCurve:t},!0,["deriveBits"]).then(function(r){var a=function(a,u,c){var h "function"==typeof u&&(c=u,u=void 0),h=u?n.subtle.importKey("jwk",function(e,t){var r=f(e,t.public) return r.d=s(new o(t.private)),r}(t,u),{name:"ECDH",namedCurve:t},!1,["deriveBits"]):Promise.resolve(r.privateKey) @@ -16257,7 +16463,7 @@ if(!r.slice(0,1).equals(e.from([4])))throw new Error("Invalid key format") var i=new o(r.slice(1,n+1)),a=new o(r.slice(1+n)) return{kty:"EC",crv:t,x:s(i,n),y:s(a,n),ext:!0}}}).call(this,r(0).Buffer)},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return e&&"object"===r(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head} @@ -16289,7 +16495,7 @@ break}++n}return this.length-=n,t},t[a]=function(e,t){return o(this,function(e){ "function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},,function(e,t,r){"use strict";(function(t){var r=new Set e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!r.has(e)){var n=e+" is an experimental feature. This feature could change at any time" r.add(e),t.emitWarning(n,"ExperimentalWarning")}}:function(){}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(95),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(96),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] if(null!==t){var r=e[h].read() null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] @@ -16308,10 +16514,10 @@ return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){va return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a] null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,n)),n}}).call(this,r(3))},function(e,t,r){"use strict" e.exports=i -var n=r(165) +var n=r(166) function i(e){if(!(this instanceof i))return new i(e) n.call(this,e)}r(2)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(34).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +var n,i=r(35).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),f(c))})}) @@ -16330,10 +16536,10 @@ function n(){for(var e=new Array(arguments.length),r=0;r-1&&e%1==0&&e-1&&e%1==0&&e0?(this.internalSourceCallbacks.shift()(null,e),r()):(this.input.push(e),this.writeCallbacks.push(r))}},{key:"_internalSource",value:function(e,t){if(e)return this.writeCallbacks.length>0&&this.writeCallbacks.shift()(e instanceof Error?e:new Error("Aborted")),t(e) this.input.length>0?(t(null,this.input.shift()),this.writeCallbacks.shift()()):this.internalSourceCallbacks.push(t)}},{key:"_final",value:function(e){this.internalSourceCallbacks.length>0&&this.internalSourceCallbacks.shift()(!0),e()}},{key:"_destroy",value:function(e,t){!this._readableState.ended&&this.source&&this.source(!0,function(){}),this.internalSourceCallbacks.length>0&&this.internalSourceCallbacks.shift()(e),t(e)}}])&&i(r.prototype,l),t}() -function c(e,t,r){return e&&"object"===n(e)&&(t=(e=e.source).sink),new l(e,t,Object.assign({readableObjectMode:!0,writableObjectMode:!0},r))}e.exports={duplex:c,readable:function(e,t){return c(e,null,t)},writeable:function(e,t){return c(null,e,t)}}},function(e,t,r){(t=e.exports=r(172)).Stream=t,t.Readable=t,t.Writable=r(176),t.Duplex=r(38),t.Transform=r(177),t.PassThrough=r(413),t.finished=r(99),t.pipeline=r(414)},,function(e,t,r){"use strict" -function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(410).inspect,a=o&&o.custom||"inspect" +function c(e,t,r){return e&&"object"===n(e)&&(t=(e=e.source).sink),new l(e,t,Object.assign({readableObjectMode:!0,writableObjectMode:!0},r))}e.exports={duplex:c,readable:function(e,t){return c(e,null,t)},writeable:function(e,t){return c(null,e,t)}}},function(e,t,r){(t=e.exports=r(173)).Stream=t,t.Readable=t,t.Writable=r(177),t.Duplex=r(39),t.Transform=r(178),t.PassThrough=r(416),t.finished=r(100),t.pipeline=r(417)},,function(e,t,r){"use strict" +function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(413).inspect,a=o&&o.custom||"inspect" e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype return t.push=function(e){var t={data:e,next:null} this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head} @@ -16450,7 +16656,7 @@ break}++n}return this.length-=n,t},t[a]=function(e,t){return o(this,function(e){ "function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},,function(e,t,r){"use strict";(function(t){var r=new Set e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!r.has(e)){var n=e+" is an experimental feature. This feature could change at any time" r.add(e),t.emitWarning(n,"ExperimentalWarning")}}:function(){}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(99),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(100),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] if(null!==t){var r=e[h].read() null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] @@ -16469,10 +16675,10 @@ return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){va return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a] null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,n)),n}}).call(this,r(3))},function(e,t,r){"use strict" e.exports=i -var n=r(177) +var n=r(178) function i(e){if(!(this instanceof i))return new i(e) n.call(this,e)}r(2)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(37).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +var n,i=r(38).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),f(c))})}) return t.reduce(l)}},function(e,t,r){"use strict" -var n=r(53),i=r(36) +var n=r(53),i=r(37) e.exports=function(e){return function(t){return(t=t||{}).converter=i,n(e,"add")(t)}}},function(e,t,r){"use strict" -var n=r(53),i=r(36),o=r(26) +var n=r(53),i=r(37),o=r(27) e.exports=function(e){return function(t){return(t=t||{}).converter=i,o(n(e,"add")({qs:t}))}}},function(e,t){e.exports=function(e){!function t(){var r=!0,n=!1 do{n=!0,r=!1,e.call(this,function(){n?r=!0:t()}),n=!1}while(r)}()}},function(e,t,r){"use strict" -var n=r(54),i=r(1),o=r(101),a=r(36) +var n=r(54),i=r(1),o=r(102),a=r(37) e.exports=function(e){var t=o(e,"add") return i(function(e,r,i){return"function"==typeof r&&void 0===i&&(i=r,r={}),"function"==typeof r&&"function"==typeof i&&(i=r,r={}),n?"string"!=typeof e?i(new Error('"path" must be a string')):void t(e,{qs:r,converter:a},i):i(new Error("fsAdd does not work in the browser"))})}},function(e,t,r){"use strict" -var n=r(1),i=r(102).URL,o=r(179).getRequest,a=r(101),s=r(36) +var n=r(1),i=r(103).URL,o=r(180).getRequest,a=r(102),s=r(37) e.exports=function(e){var t=a(e,"add") return n(function(e,r,n){if("function"==typeof r&&void 0===n&&(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}),!u(e))return n(new Error('"url" param must be an http(s) url')) l(e,r,t,n)})} @@ -16503,17 +16709,17 @@ if(t.statusCode>=300&&t.statusCode<400&&i){if(!u(i))return a(new Error("redirect e(i,r,n,a)}else{var o={qs:r,converter:s},c=decodeURIComponent(l.pathname.split("/").pop()) n({content:t,path:c},o,a)}}) c.once("error",a),c.end()}},function(e,t,r){"use strict" -var n=r(178),i=n.URLWithLegacySupport,o=n.format +var n=r(179),i=n.URLWithLegacySupport,o=n.format e.exports=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=r.protocol?r.protocol.replace(":",""):"http" s=(n[s]||a||s)+":" try{t=new i(e)}catch(e){t={}}var u=Object.assign({},r,{protocol:s||t.protocol,host:r.host||t.host}) -return new i(e,o(u)).toString()}},function(e,t,r){(function(t){var n=r(422),i=r(181),o=r(430),a=self.URL,s=function(e,r){"string"==typeof e?((e=new a(e,self.location.protocol+"//"+self.location.host)).path=e.pathname+e.search,e.auth=e.username&&e.password?e.username+":"+e.password:null):e=Object.assign({},e) +return new i(e,o(u)).toString()}},function(e,t,r){(function(t){var n=r(425),i=r(182),o=r(433),a=self.URL,s=function(e,r){"string"==typeof e?((e=new a(e,self.location.protocol+"//"+self.location.host)).path=e.pathname+e.search,e.auth=e.username&&e.password?e.username+":"+e.password:null):e=Object.assign({},e) var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||i,s=e.hostname||e.host,u=e.port,l=e.path||"/" s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{} var c=new n(e) return r&&c.on("response",r),c},u=function(){} u.defaultMaxSockets=4,e.exports={Agent:u,ClientRequest:n,IncomingMessage:i,METHODS:["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],STATUS_CODES:o,get:function(e,t){var r=s(e,t) -return r.end(),r},globalAgent:new u,request:s,maxHeaderSize:"8KB"}}).call(this,r(6))},function(e,t,r){(function(t){var n=r(180),i=r(2),o=r(181),a=r(182),s=self.fetch,u=e.exports=function(e){var r=this +return r.end(),r},globalAgent:new u,request:s,maxHeaderSize:"8KB"}}).call(this,r(6))},function(e,t,r){(function(t){var n=r(181),i=r(2),o=r(182),a=r(183),s=self.fetch,u=e.exports=function(e){var r=this a.Writable.call(this),this._opts=e,this._body=[],this._headers={},e.auth&&this.setHeader("Authorization","Basic "+t.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])}),this._mode="fetch",this._fetchTimer=null,this.on("finish",function(){return r._onFinish()})} i(u,a.Writable),u.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===l.indexOf(r)&&(this._headers[r]=t)},u.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()] return t?t.value:null},u.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},u.prototype._onFinish=function(){var e=this @@ -16524,7 +16730,7 @@ if(n.abortController){var a=new AbortController o=a.signal,this._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(this._fetchTimer=setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}s(this._opts.url,{method:this._opts.method,headers:this._headers,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:o}).then(function(t){e._fetchResponse=t,e._connect()},function(t){clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}},u.prototype._connect=function(){var e=this this._destroyed||(this._response=new o(this._fetchResponse,this._mode,this._fetchTimer),this._response.on("error",function(t){return e.emit("error",t)}),this.emit("response",this._response))},u.prototype._write=function(e,t,r){this._body.push(e),r()},u.prototype.abort=u.prototype.destroy=function(){this._destroyed=!0,clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},u.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),a.Writable.prototype.end.call(this,e,t,r)},u.prototype.flushHeaders=function(){},u.prototype.setTimeout=function(){},u.prototype.setNoDelay=function(){},u.prototype.setSocketKeepAlive=function(){} var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r(0).Buffer)},,function(e,t,r){"use strict" -function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(425).inspect,a=o&&o.custom||"inspect" +function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(428).inspect,a=o&&o.custom||"inspect" e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype return t.push=function(e){var t={data:e,next:null} this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head} @@ -16544,7 +16750,7 @@ break}++n}return this.length-=n,t},t[a]=function(e,t){return o(this,function(e){ "function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},,function(e,t,r){"use strict";(function(t){var r=new Set e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!r.has(e)){var n=e+" is an experimental feature. This feature could change at any time" r.add(e),t.emitWarning(n,"ExperimentalWarning")}}:function(){}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(103),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(104),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] if(null!==t){var r=e[h].read() null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] @@ -16563,10 +16769,10 @@ return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){va return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a] null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,n)),n}}).call(this,r(3))},function(e,t,r){"use strict" e.exports=i -var n=r(188) +var n=r(189) function i(e){if(!(this instanceof i))return new i(e) n.call(this,e)}r(2)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(39).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +var n,i=r(40).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),f(c))})}) return t.reduce(l)}},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){"use strict" -var n=r(1),i=r(19),o=r(16),a=r(189) +var n=r(1),i=r(19),o=r(16),a=r(190) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}) try{t=i(t)}catch(e){if(!o.ipfsPath(t))return n(e)}var s={offset:r.offset,length:r.length} e({path:"cat",args:t,buffer:r.buffer,qs:s},function(e,t){if(e)return n(e) t.pipe(a(function(e,t){if(e)return n(e) -n(null,t)}))})})}},function(e,t,r){(t=e.exports=r(190)).Stream=t,t.Readable=t,t.Writable=r(194),t.Duplex=r(42),t.Transform=r(195),t.PassThrough=r(438),t.finished=r(104),t.pipeline=r(439)},,function(e,t,r){"use strict" -function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(435).inspect,a=o&&o.custom||"inspect" +n(null,t)}))})})}},function(e,t,r){(t=e.exports=r(191)).Stream=t,t.Readable=t,t.Writable=r(195),t.Duplex=r(43),t.Transform=r(196),t.PassThrough=r(441),t.finished=r(105),t.pipeline=r(442)},,function(e,t,r){"use strict" +function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(438).inspect,a=o&&o.custom||"inspect" e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype return t.push=function(e){var t={data:e,next:null} this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head} @@ -16605,7 +16811,7 @@ break}++n}return this.length-=n,t},t[a]=function(e,t){return o(this,function(e){ "function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},,function(e,t,r){"use strict";(function(t){var r=new Set e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!r.has(e)){var n=e+" is an experimental feature. This feature could change at any time" r.add(e),t.emitWarning(n,"ExperimentalWarning")}}:function(){}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(104),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(105),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] if(null!==t){var r=e[h].read() null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] @@ -16624,10 +16830,10 @@ return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){va return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a] null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,n)),n}}).call(this,r(3))},function(e,t,r){"use strict" e.exports=i -var n=r(195) +var n=r(196) function i(e){if(!(this instanceof i))return new i(e) n.call(this,e)}r(2)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(41).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +var n,i=r(42).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),f(c))})}) @@ -16646,7 +16852,7 @@ var s=new o.PassThrough try{t=n(t)}catch(e){if(!i.ipfsPath(t))return s.destroy(e)}var u={offset:r.offset,length:r.length} return e({path:"cat",args:t,buffer:r.buffer,qs:u},function(e,t){if(e)return s.destroy(e) a(t,s)}),s}}},,function(e,t,r){"use strict" -var n=r(19),i=r(16),o=r(26),a=r(43) +var n=r(19),i=r(16),o=r(27),a=r(44) e.exports=function(e){return function(t,r){r=r||{} var s=a.source() try{t=n(t)}catch(e){if(!i.ipfsPath(t))return s.end(e)}var u={offset:r.offset,length:r.length} @@ -16654,15 +16860,15 @@ return e({path:"cat",args:t,buffer:r.buffer,qs:u},function(e,t){if(e)return s.en s.resolve(o(t))}),s}}},function(e,t){e.exports=function(){var e,t,r,n,i function o(o){return i?i(o):(e=o,function(e,i){t?t(e,i):(n=e,r=i)})}return o.resolve=function(o){if(i)throw new Error("already resolved") if(!(i=o))throw new Error("resolve *must* be passed a transform stream") -e&&(t=i(e),r&&t(n,r))},o}},function(e,t,r){var n=r(196),i=r(197) +e&&(t=i(e),r&&t(n,r))},o}},function(e,t,r){var n=r(197),i=r(198) e.exports=function(){var e=n(),t=i() return{source:e,sink:t,resolve:function(r){e.resolve(r.source),t.resolve(r.sink)}}}},function(e,t,r){"use strict" -var n=r(1),i=r(19),o=r(106),a=r(52),s=r(205),u=r(16) +var n=r(1),i=r(19),o=r(107),a=r(52),s=r(206),u=r(16) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}) try{t=i(t)}catch(e){if(!u.ipfsPath(t))return n(e)}var l={path:"get",args:t,qs:r} e.andTransform(l,o,function(e,t){if(e)return n(e) var r=[] -t.pipe(s.obj(function(e,t,n){e.content?e.content.pipe(a(function(t){r.push({path:e.path,content:t})})):r.push(e),n()},function(){return n(null,r)}))})})}},function(e,t,r){t.extract=r(447),t.pack=r(455)},function(e,t,r){var n=r(65),i=r(189),o=r(198),a=r(67).Writable,s=r(67).PassThrough,u=function(){},l=function(e){return(e&=511)&&512-e},c=function(e,t){this._parent=e,this.offset=t,s.call(this)} +t.pipe(s.obj(function(e,t,n){e.content?e.content.pipe(a(function(t){r.push({path:e.path,content:t})})):r.push(e),n()},function(){return n(null,r)}))})})}},function(e,t,r){t.extract=r(450),t.pack=r(458)},function(e,t,r){var n=r(66),i=r(190),o=r(199),a=r(68).Writable,s=r(68).PassThrough,u=function(){},l=function(e){return(e&=511)&&512-e},c=function(e,t){this._parent=e,this.offset=t,s.call(this)} n.inherits(c,s),c.prototype.destroy=function(e){this._parent.destroy(e)} var f=function e(t){if(!(this instanceof e))return new e(t) a.call(this,t),t=t||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=u,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null @@ -16684,7 +16890,7 @@ this._cb=r,this._missing=0 var a=null e.length>o&&(a=e.slice(o),e=e.slice(0,o)),n?n.end(e):i.append(e),this._overflow=a,this._onparse()}},f.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data")) e()},e.exports=f},,function(e,t,r){"use strict" -function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(450).inspect,a=o&&o.custom||"inspect" +function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(0).Buffer,o=r(453).inspect,a=o&&o.custom||"inspect" e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype return t.push=function(e){var t={data:e,next:null} this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head} @@ -16704,7 +16910,7 @@ break}++n}return this.length-=n,t},t[a]=function(e,t){return o(this,function(e){ "function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}({},t,{depth:0,customInspect:!1}))},e}()},,function(e,t,r){"use strict";(function(t){var r=new Set e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!r.has(e)){var n=e+" is an experimental feature. This feature could change at any time" r.add(e),t.emitWarning(n,"ExperimentalWarning")}}:function(){}}).call(this,r(3))},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(107),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(108),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] if(null!==t){var r=e[h].read() null!==r&&(e[c]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] @@ -16723,10 +16929,10 @@ return n[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){va return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a] null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0}),e.on("readable",function(e){t.nextTick(p,e)}.bind(null,n)),n}}).call(this,r(3))},function(e,t,r){"use strict" e.exports=i -var n=r(204) +var n=r(205) function i(e){if(!(this instanceof i))return new i(e) n.call(this,e)}r(2)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(44).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +var n,i=r(45).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED function s(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,function(e){c||(c=e),e&&h.forEach(u),o||(h.forEach(u),f(c))})}) -return t.reduce(l)}},function(e,t,r){(function(t,n){var i=r(456),o=r(105),a=r(2),s=t.alloc,u=r(67).Readable,l=r(67).Writable,c=r(11).StringDecoder,f=r(198),h=parseInt("755",8),d=parseInt("644",8),p=s(1024),m=function(){},y=function(e,t){(t&=511)&&e.push(p.slice(0,512-t))},g=function(e){l.call(this),this.written=0,this._to=e,this._destroyed=!1} +return t.reduce(l)}},function(e,t,r){(function(t,n){var i=r(459),o=r(106),a=r(2),s=t.alloc,u=r(68).Readable,l=r(68).Writable,c=r(11).StringDecoder,f=r(199),h=parseInt("755",8),d=parseInt("644",8),p=s(1024),m=function(){},y=function(e,t){(t&=511)&&e.push(p.slice(0,512-t))},g=function(e){l.call(this),this.written=0,this._to=e,this._destroyed=!1} a(g,l),g.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r() this._to._drain=r},g.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))} var v=function(){l.call(this),this.linkname="",this._decoder=new c("utf-8"),this._destroyed=!1} @@ -16762,14 +16968,14 @@ var l=new g(this) return this._stream=l,o(l,function(t){return s._stream=null,t?(s.destroy(),a(t)):l.written!==e.size?(s.destroy(),a(new Error("size mismatch"))):(y(s,e.size),s._finalizing&&s.finalize(),void a())}),l}},w.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(p),this.push(null))},w.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},w.prototype._encode=function(e){if(!e.pax){var t=f.encode(e) if(t)return void this.push(t)}this._encodePax(e)},w.prototype._encodePax=function(e){var t=f.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor} this.push(f.encode(r)),this.push(t),y(this,t.length),r.size=e.size,r.type=e.type,this.push(f.encode(r))},w.prototype._read=function(e){var t=this._drain -this._drain=m,t()},e.exports=w}).call(this,r(0).Buffer,r(3))},function(e,t,r){e.exports=r(457)},function(e){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},function(e,t,r){"use strict" -var n=r(19),i=r(106),o=r(16),a=r(10),s=r(15) +this._drain=m,t()},e.exports=w}).call(this,r(0).Buffer,r(3))},function(e,t,r){e.exports=r(460)},function(e){e.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},function(e,t,r){"use strict" +var n=r(19),i=r(107),o=r(16),a=r(10),s=r(15) e.exports=function(e){return function(t,r){r=r||{} var u=new a.PassThrough({objectMode:!0}) try{t=n(t)}catch(e){if(!o.ipfsPath(t))return u.destroy(e)}var l={path:"get",args:t,qs:r} return e.andTransform(l,i,function(e,t){if(e)return u.destroy(e) s(t,u)}),u}}},function(e,t,r){"use strict" -var n=r(19),i=r(106),o=r(16),a=r(100),s=r(206),u=r(26),l=r(43) +var n=r(19),i=r(107),o=r(16),a=r(101),s=r(207),u=r(27),l=r(44) e.exports=function(e){return function(t,r){r=r||{} var c=l.source() try{t=n(t)}catch(e){if(!o.ipfsPath(t))return c.end(e)}var f={path:"get",args:t,qs:r} @@ -16785,9 +16991,9 @@ return n(function(e,r,n){"function"==typeof r&&(n=r,r={}) try{e=a(e)}catch(t){if(!i.ipfsPath(e))return n(t)}t({path:"ls",args:e,qs:r},function(t,r){if(t)return n(t) var i=r.Objects return i?(i=i[0])?(i=i.Links,Array.isArray(i)?(i=i.map(function(t){return{name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:s(t),depth:t.Depth||1}}),void n(null,i)):n(new Error("expected one array in results.Objects[0].Links"))):n(new Error("expected one array in results.Objects")):n(new Error("expected .Objects in results"))})})}},function(e){e.exports={_args:[["ipfs-http-client@30.1.4","/home/basti/src/kosmos/kredits/kredits-web"]],_development:!0,_from:"ipfs-http-client@30.1.4",_id:"ipfs-http-client@30.1.4",_inBundle:!1,_integrity:"sha512-ordvoPT3lAFL5qsvdYBeDGRP03gtbL6Jl+qJ9dztyhE7NJf2yhtnU3ZNqN1JMCcUK0qpGsDzX89t8dKQvI80Pw==",_location:"/ipfs-http-client",_phantomChildren:{"base64-js":"1.3.0",ieee754:"1.1.13",inherits:"2.0.3","json-stringify-safe":"5.0.1","safe-buffer":"5.1.2",split2:"3.1.1","util-deprecate":"1.0.2",yallist:"3.0.3"},_requested:{type:"version",registry:!0,raw:"ipfs-http-client@30.1.4",name:"ipfs-http-client",escapedName:"ipfs-http-client",rawSpec:"30.1.4",saveSpec:null,fetchSpec:"30.1.4"},_requiredBy:["/kredits-contracts"],_resolved:"https://registry.npmjs.org/ipfs-http-client/-/ipfs-http-client-30.1.4.tgz",_spec:"30.1.4",_where:"/home/basti/src/kosmos/kredits/kredits-web",browser:{glob:!1,fs:!1,stream:"readable-stream"},bugs:{url:"https://github.com/ipfs/js-ipfs-http-client/issues"},contributors:[{name:"Alan Shaw",email:"alan.shaw@protocol.ai"},{name:"Alan Shaw",email:"alan@tableflip.io"},{name:"Alex Mingoia",email:"talk@alexmingoia.com"},{name:"Alex Potsides",email:"alex@achingbrain.net"},{name:"Antonio Tenorio-Fornés",email:"antoniotenorio@ucm.es"},{name:"Bruno Barbieri",email:"bbarbieri@delivery.com"},{name:"Clemo",email:"flipflopsimsommer@users.noreply.github.com"},{name:"Connor Keenan",email:"ckeenan89@gmail.com"},{name:"Danny",email:"dannyid@protonmail.com"},{name:"David Braun",email:"David.Braun@Toptal.com"},{name:"David Dias",email:"daviddias.p@gmail.com"},{name:"Dietrich Ayala",email:"autonome@gmail.com"},{name:"Diogo Silva",email:"fsdiogo@gmail.com"},{name:"Dmitriy Ryajov",email:"dryajov@gmail.com"},{name:"Dmitry Nikulin",email:"dmitr-nikulin@mail.ru"},{name:"Donatas Stundys",email:"donatas.stundys@necolt.com"},{name:"Fil",email:"fil@rezo.net"},{name:"Filip Š",email:"filip.stamcar@hotmail.com"},{name:"Francisco Baio Dias",email:"xicombd@gmail.com"},{name:"Friedel Ziegelmayer",email:"dignifiedquire@gmail.com"},{name:"Gar",email:"gar+gh@danger.computer"},{name:"Gavin McDermott",email:"gavinmcdermott@gmail.com"},{name:"Greenkeeper",email:"support@greenkeeper.io"},{name:"Haad",email:"haadcode@users.noreply.github.com"},{name:"Harlan T Wood",email:"harlantwood@users.noreply.github.com"},{name:"Harlan T Wood",email:"code@harlantwood.net"},{name:"Henrique Dias",email:"hacdias@gmail.com"},{name:"Holodisc",email:"holodiscent@gmail.com"},{name:"Hugo Dias",email:"mail@hugodias.me"},{name:"JGAntunes",email:"j.goncalo.antunes@gmail.com"},{name:"Jacob Heun",email:"jacobheun@gmail.com"},{name:"James Halliday",email:"substack@gmail.com"},{name:"Jason Carver",email:"jacarver@linkedin.com"},{name:"Jason Papakostas",email:"vith@users.noreply.github.com"},{name:"Jeff Downie",email:"JeffDownie@users.noreply.github.com"},{name:"Jeromy",email:"why@ipfs.io"},{name:"Jeromy",email:"jeromyj@gmail.com"},{name:"Joe Turgeon",email:"arithmetric@gmail.com"},{name:"Jonathan",email:"jkrone@vt.edu"},{name:"Juan Batiz-Benet",email:"juan@benet.ai"},{name:"Kevin Wang",email:"kevin@fossa.io"},{name:"Kristoffer Ström",email:"kristoffer@rymdkoloni.se"},{name:"Marcin Rataj",email:"lidel@lidel.org"},{name:"Matt Bell",email:"mappum@gmail.com"},{name:"Maxime Lathuilière",email:"k@maxlath.eu"},{name:"Michael Muré",email:"batolettre@gmail.com"},{name:"Mikeal Rogers",email:"mikeal.rogers@gmail.com"},{name:"Mitar",email:"mitar.git@tnode.com"},{name:"Mithgol",email:"getgit@mithgol.ru"},{name:"Mohamed Abdulaziz",email:"mohamed@mohamedabdulaziz.com"},{name:"Nitin Patel",email:"31539366+niinpatel@users.noreply.github.com"},{name:"Nuno Nogueira",email:"nunofmn@gmail.com"},{name:"Níckolas Goline",email:"nickolas.goline@gmail.com"},{name:"Oli Evans",email:"oli@tableflip.io"},{name:"Orie Steele",email:"orie@ohs.io"},{name:"Pedro Teixeira",email:"i@pgte.me"},{name:"Pete Thomas",email:"pete@xminusone.net"},{name:"Richard Littauer",email:"richard.littauer@gmail.com"},{name:"Richard Schneider",email:"makaretu@gmail.com"},{name:"Roman Khafizianov",email:"requilence@gmail.com"},{name:"SeungWon",email:"ksw3894@gmail.com"},{name:"Stephen Whitmore",email:"stephen.whitmore@gmail.com"},{name:"Tara Vancil",email:"tbvanc@gmail.com"},{name:"Travis Person",email:"travis@protocol.ai"},{name:"Travis Person",email:"travis.person@gmail.com"},{name:"Vasco Santos",email:"vasco.santos@ua.pt"},{name:"Vasco Santos",email:"vasco.santos@moxy.studio"},{name:"Victor Bjelkholm",email:"victor@typeform.com"},{name:"Volker Mische",email:"volker.mische@gmail.com"},{name:"Zhiyuan Lin",email:"edsgerlin@gmail.com"},{name:"dmitriy ryajov",email:"dryajov@dmitriys-MacBook-Pro.local"},{name:"elsehow",email:"yes@cosmopol.is"},{name:"ethers",email:"ethereum@outlook.com"},{name:"haad",email:"haad@headbanggames.com"},{name:"kumavis",email:"kumavis@users.noreply.github.com"},{name:"leekt216",email:"leekt216@gmail.com"},{name:"nginnever",email:"ginneversource@gmail.com"},{name:"noah the goodra",email:"peterpan0413@live.com"},{name:"priecint",email:"tp-dev@seznam.cz"},{name:"samuli",email:"samuli@nugg.ad"},{name:"shunkin",email:"hiyoko.san.ipod@gmail.com"},{name:"victorbjelkholm",email:"victorbjelkholm@gmail.com"},{name:"Łukasz Magiera",email:"magik6k@users.noreply.github.com"},{name:"Łukasz Magiera",email:"magik6k@gmail.com"}],dependencies:{async:"^2.6.1","bignumber.js":"^8.0.2",bl:"^3.0.0",bs58:"^4.0.1",buffer:"^5.2.1",cids:"~0.5.5","concat-stream":"github:hugomrdias/concat-stream#feat/smaller",debug:"^4.1.0","detect-node":"^2.0.4","end-of-stream":"^1.4.1","err-code":"^1.1.2",flatmap:"0.0.3",glob:"^7.1.3","ipfs-block":"~0.8.0","ipld-dag-cbor":"~0.13.1","ipld-dag-pb":"~0.15.3","is-ipfs":"~0.6.0","is-pull-stream":"0.0.0","is-stream":"^1.1.0","iso-stream-http":"~0.1.2","iso-url":"~0.4.6","just-kebab-case":"^1.1.0","just-map-keys":"^1.1.0","lru-cache":"^5.1.1",multiaddr:"^6.0.6",multibase:"~0.6.0",multicodec:"~0.5.0",multihashes:"~0.4.14",ndjson:"github:hugomrdias/ndjson#feat/readable-stream3",once:"^1.4.0","peer-id":"~0.12.2","peer-info":"~0.15.1","promisify-es6":"^1.0.3","pull-defer":"~0.2.3","pull-stream":"^3.6.9","pull-to-stream":"~0.1.1",pump:"^3.0.0",qs:"^6.5.2","readable-stream":"^3.1.1","stream-to-pull-stream":"^1.7.2","tar-stream":"^2.0.1",through2:"^3.0.1"},description:"A client library for the IPFS HTTP API",devDependencies:{aegir:"^18.2.2","browser-process-platform":"~0.1.1",chai:"^4.2.0","cross-env":"^5.2.0","dirty-chai":"^2.0.1","eslint-plugin-react":"^7.11.1","go-ipfs-dep":"0.4.19","interface-ipfs-core":"~0.99.0","ipfsd-ctl":"~0.42.0",nock:"^10.0.2","stream-equal":"^1.1.1"},engines:{node:">=10.0.0",npm:">=3.0.0"},homepage:"https://github.com/ipfs/js-ipfs-http-client",keywords:["ipfs"],leadMaintainer:"Alan Shaw ",license:"MIT",main:"src/index.js",name:"ipfs-http-client",repository:{type:"git",url:"git+https://github.com/ipfs/js-ipfs-http-client.git"},scripts:{build:"aegir build",coverage:"npx nyc -r html npm run test:node -- --bail",lint:"aegir lint",release:"aegir release ","release-major":"aegir release --type major ","release-minor":"aegir release --type minor ",test:"aegir test","test:browser":"aegir test -t browser","test:node":"aegir test -t node","test:webworker":"aegir test -t webworker"},version:"30.1.4"}},function(e,t,r){"use strict" -var n=r(464),i=r(465),o=r(209) +var n=r(467),i=r(468),o=r(210) e.exports={formats:o,parse:i,stringify:n}},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(108),o=r(209),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,n,o,a,s,l,f,d,p,m,y,g){var v=t +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(109),o=r(210),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,n,o,a,s,l,f,d,p,m,y,g){var v=t if("function"==typeof l?v=l(r,v):v instanceof Date?v=p(v):"comma"===n&&u(v)&&(v=v.join(",")),null===v){if(o)return s&&!y?s(r,h.encoder,g):r v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||i.isBuffer(v))return s?[m(y?r:s(r,h.encoder,g))+"="+m(s(v,h.encoder,g))]:[m(r)+"="+m(String(v))] var b,w=[] @@ -16813,7 +17019,7 @@ r||(r=Object.keys(i)),l.sort&&r.sort(l.sort) for(var y=0;y0?b+v:""}},function(e,t,r){"use strict" -var n=r(108),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,u=[] +var n=r(109),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,u=[] if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return u.push(s)}for(var l=0;null!==(a=o.exec(n))&&l=0;--i){var o,a=e[i] @@ -16845,7 +17051,7 @@ var c=new i(r) return c[a]="",c[s]=new o("utf8"),c.matcher=e,c.mapper=t,c.maxLength=r.maxLength,c.skipOverflow=r.skipOverflow,c.overflow=!1,c}},function(e,t){function r(e,t){var r=[],n=[] return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var a=r.indexOf(this) ~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o) -return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},function(e,t,r){"use strict";(function(t){var n=r(23) +return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},function(e,t,r){"use strict";(function(t){var n=r(24) e.exports=function(e,r){n(e,function(e,n){if(e)return r(e) if(!n||0===n.length)return r() var i @@ -16855,7 +17061,7 @@ return"object"===("undefined"==typeof console?"undefined":i(console))&&console.l t.splice(1,0,r,"color: inherit") var n=0,i=0 t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e -try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=r(470)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,r(3))},function(e,t,r){function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=r(473)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,r(3))},function(e,t,r){function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t=1.5*r return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{} var u=r(e) @@ -16905,7 +17111,7 @@ try{e=a(e)}catch(t){if(!o.ipfsPath(e))return n(t)}var u=new i.PassThrough({objec return t({path:"ls",args:e,qs:r},function(t,r){if(t)return n(t) var i=r.Objects return i?(i=i[0])?(i=i.Links,Array.isArray(i)?((i=i.map(function(t){return{depth:1,name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:s(t)}})).forEach(function(e){return u.write(e)}),void u.end()):n(new Error("expected one array in results.Objects[0].Links"))):n(new Error("expected one array in results.Objects")):n(new Error("expected .Objects in results"))}),u}}},function(e,t,r){"use strict" -var n=r(4),i=r(474),o=r(43),a=r(16),s=r(19) +var n=r(4),i=r(477),o=r(44),a=r(16),s=r(19) function u(e){switch(e.Type){case 1:case 5:return"dir" case 2:return"file" default:return"unknown"}}e.exports=function(e){var t=n(e) @@ -16914,7 +17120,7 @@ try{e=s(e)}catch(t){if(!a.ipfsPath(e))return n(t)}var l=o.source() return t({path:"ls",args:e,qs:r},function(t,r){if(t)return n(t) var o=r.Objects return o?(o=o[0])?(o=o.Links,Array.isArray(o)?(o=o.map(function(t){return{depth:1,name:t.Name,path:e+"/"+t.Name,size:t.Size,hash:t.Hash,type:u(t)}}),void l.resolve(i(o))):n(new Error("expected one array in results.Objects[0].Links"))):n(new Error("expected one array in results.Objects")):n(new Error("expected .Objects in results"))}),l}}},function(e,t,r){"use strict" -var n=r(475) +var n=r(478) e.exports=function(e,t){if(!e)return function(e,r){return e?n(r,e,t):r(!0)} Array.isArray(e)||(e=Object.keys(e).map(function(t){return e[t]})) var r=0 @@ -16922,15 +17128,15 @@ return function(i,o){if(i)return n(o,i,t) r>=e.length?o(!0):o(null,e[r++])}}},function(e,t){e.exports=function(e,t,r){e(t),r&&r(!0===t?null:t)}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{cp:r(477)(t),mkdir:r(478)(t),flush:r(479)(t),stat:r(480)(t),rm:r(483)(t),ls:r(484)(t),lsReadableStream:r(211)(t),lsPullStream:r(485)(t),read:r(486)(t),readReadableStream:r(487)(t),readPullStream:r(488)(t),write:r(489)(t),mv:r(490)(t)}}},function(e,t,r){"use strict" -var n=r(1),i=r(210) +return{cp:r(480)(t),mkdir:r(481)(t),flush:r(482)(t),stat:r(483)(t),rm:r(486)(t),ls:r(487)(t),lsReadableStream:r(212)(t),lsPullStream:r(488)(t),read:r(489)(t),readReadableStream:r(490)(t),readPullStream:r(491)(t),write:r(492)(t),mv:r(493)(t)}}},function(e,t,r){"use strict" +var n=r(1),i=r(211) e.exports=function(e){return n(function(){var t=i(Array.prototype.slice.call(arguments)),r=t.callback,n=t.sources,o=t.opts e({path:"files/cp",args:n,qs:o},function(e){return r(e)})})}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e({path:"files/mkdir",args:t,qs:r},function(e){return n(e)})})}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r){return"function"==typeof t&&(r=t,t="/"),e({path:"files/flush",args:t},function(e){return r(e)})})}},function(e,t,r){"use strict" -var n=r(1),i=r(481),o=r(482),a=function(e,t){t(null,{type:e.Type,blocks:e.Blocks,size:e.Size,hash:e.Hash,cumulativeSize:e.CumulativeSize,withLocality:e.WithLocality||!1,local:e.Local||void 0,sizeLocal:e.SizeLocal||void 0})} +var n=r(1),i=r(484),o=r(485),a=function(e,t){t(null,{type:e.Type,blocks:e.Blocks,size:e.Size,hash:e.Hash,cumulativeSize:e.CumulativeSize,withLocality:e.WithLocality||!1,local:e.Local||void 0,sizeLocal:e.SizeLocal||void 0})} e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),r=i(r,function(e,t){return o(t)}),e.andTransform({path:"files/stat",args:t,qs:r},a,n)})}},function(e,t){e.exports=function(e,t){for(var r={},n=Object.keys(e),i=n.length,o=0;o?@\[\]^_`{|}~]+/,n=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g},function(e,t,r){"use strict" @@ -16938,28 +17144,28 @@ var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}),e({path:"files/rm",args:t,qs:r},function(e){return n(e)})})}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,(e.Entries||[]).map(function(e){return{name:e.Name,type:e.Type,size:e.Size,hash:e.Hash}}))} e.exports=function(e){return n(function(t,r,n){return"function"==typeof r&&(n=r,r={}),"function"==typeof t&&(n=t,r={},t=null),e.andTransform({path:"files/ls",args:t,qs:r},i,n)})}},function(e,t,r){"use strict" -var n=r(26),i=r(211) +var n=r(27),i=r(212) e.exports=function(e){return function(t,r){return r=r||{},n.source(i(e)(t,r))}}},function(e,t,r){"use strict" -var n=r(1),i=r(23) +var n=r(1),i=r(24) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e.andTransform({path:"files/read",args:t,qs:r},i,n)})}},function(e,t,r){"use strict" var n=r(10),i=r(15) e.exports=function(e){return function(t,r){r=r||{} var o=new n.PassThrough return e({path:"files/read",args:t,qs:r},function(e,t){if(e)return o.destroy(e) i(t,o)}),o}}},function(e,t,r){"use strict" -var n=r(26),i=r(43) +var n=r(27),i=r(44) e.exports=function(e){return function(t,r){r=r||{} var o=i.source() return e({path:"files/read",args:t,qs:r},function(e,t){if(e)return o.abort(e) o.resolve(n(t))}),o}}},function(e,t,r){"use strict" -var n=r(1),i=r(52),o=r(18),a=r(36),s=r(53) +var n=r(1),i=r(52),o=r(18),a=r(37),s=r(53) e.exports=function(e){var t=s(e,"files/write") return n(function(e,r,n,s){"function"!=typeof n||s||(s=n,n={}),"function"==typeof n&&"function"==typeof s&&(s=n,n={}) var u=[].concat(r),l=o(s),c=t({qs:{args:e,qs:n,converter:a}}),f=i(function(e){return l(null,e)}) c.once("error",l),c.pipe(f),u.forEach(function(e){return c.write(e)}),c.end()})}},function(e,t,r){"use strict" -var n=r(1),i=r(210) +var n=r(1),i=r(211) e.exports=function(e){return n(function(){var t=i(Array.prototype.slice.call(arguments)),r=t.callback,n=t.sources,o=t.opts -e({path:"files/mv",args:n,qs:o},function(e){return r(e)})})}},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(213),o=r(5),a=r(23) +e({path:"files/mv",args:n,qs:o},function(e){return r(e)})})}},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(214),o=r(5),a=r(24) e.exports=function(e){return n(function(r,n,s){var u "function"==typeof n&&(s=n,n={}) try{if(o.isCID(r))r=(u=r).toBaseEncodedString() @@ -16968,7 +17174,7 @@ else{if("string"!=typeof r)return s(new Error("invalid argument")) u=new o(r)}}catch(e){return s(e)}var l={path:"block/get",args:r,qs:n} e.andTransform(l,function(e,r){t.isBuffer(e)?r(null,new i(e,u)):Array.isArray(e)&&0===e.length?r(null,new i(t.alloc(0),u)):a(e,function(e,n){if(e)return r(e) n.length||(n=t.alloc(0)),r(null,new i(n,u))})},s)})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){function n(e,t){for(var r=0;rt;i--)o=o.prev for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value) return r},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this} -try{r(520)(n)}catch(e){}},function(e,t,r){"use strict" +try{r(523)(n)}catch(e){}},function(e,t,r){"use strict" e.exports=function(e){e.prototype[Symbol.iterator]=regeneratorRuntime.mark(function e(){var t return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head case 1:if(!t){e.next=7 break}return e.next=4,t.value case 4:t=t.next,e.next=1 break -case 7:case"end":return e.stop()}},e,this)})}},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(1),o=r(5),a=r(55).DAGNode,s=r(46),u=r(18) +case 7:case"end":return e.stop()}},e,this)})}},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(1),o=r(5),a=r(55).DAGNode,s=r(47),u=r(18) e.exports=function(e){var r=s(e,"object/put") return i(function(e,i,s){"function"==typeof i&&(s=i,i={}) var l=u(s) @@ -17561,14 +17767,14 @@ f.Data=e.Data.toString(),f.Links=e.Links}c=t.isBuffer(e)&&i.enc?e:t.from(JSON.st var h=i.enc||"json" r(c,{qs:{inputenc:h}},function(e,t){if(e)return l(e) l(null,new o(t.Hash))})})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" -var n=r(1),i=r(23),o=r(5),a=new(r(111))({max:128}) +var n=r(1),i=r(24),o=r(5),a=new(r(112))({max:128}) e.exports=function(e){return n(function(t,r,n){var s "function"==typeof r&&(n=r,r={}),r||(r={}) try{s=(t=new o(t)).toBaseEncodedString()}catch(e){return n(e)}var u=a.get(s) if(u)return n(null,u.data) e({path:"object/data",args:s},function(e,t){if(e)return n(e) "function"==typeof t.pipe?i(t,n):n(null,t)})})}},function(e,t,r){"use strict" -var n=r(1),i=r(55).DAGLink,o=r(5),a=new(r(111))({max:128}) +var n=r(1),i=r(55).DAGLink,o=r(5),a=new(r(112))({max:128}) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),r||(r={}) try{t=new o(t)}catch(e){return n(e)}var s=a.get(t.toString()) if(s)return n(null,s.links) @@ -17589,14 +17795,14 @@ var n=r(1),i=r(5) e.exports=function(e){return n(function(t,r,n,o){"function"==typeof n&&(o=n,n={}),n||(n={}) try{t=new i(t)}catch(e){return o(e)}e({path:"object/patch/rm-link",args:[t.toString(),r.name]},function(e,t){if(e)return o(e) o(null,new i(t.Hash))})})}},function(e,t,r){"use strict" -var n=r(1),i=r(18),o=r(5),a=r(46) +var n=r(1),i=r(18),o=r(5),a=r(47) e.exports=function(e){var t=a(e,"object/patch/set-data") return n(function(e,r,n,a){"function"==typeof n&&(a=n,n={}) var s=i(a) n||(n={}) try{e=new o(e)}catch(e){return s(e)}t(r,{args:[e.toString()]},function(e,t){if(e)return s(e) s(null,new o(t.Hash))})})}},function(e,t,r){"use strict" -var n=r(1),i=r(18),o=r(5),a=r(46) +var n=r(1),i=r(18),o=r(5),a=r(47) e.exports=function(e){var t=a(e,"object/patch/append-data") return n(function(e,r,n,a){"function"==typeof n&&(a=n,n={}) var s=i(a) @@ -17605,7 +17811,7 @@ try{e=new o(e)}catch(e){return s(e)}t(r,{args:[e.toString()]},function(e,t){if(e s(null,new o(t.Hash))})})}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{add:r(531)(t),rm:r(532)(t),ls:r(533)(t)}}},function(e,t,r){"use strict" +return{add:r(534)(t),rm:r(535)(t),ls:r(536)(t)}}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r=null),e({path:"pin/add",args:t,qs:r},function(e,t){if(e)return n(e) n(null,t.Pins.map(function(e){return{hash:e}}))})})}},function(e,t,r){"use strict" @@ -17617,7 +17823,7 @@ e.exports=function(e){return n(function(t,r,n){"function"==typeof t&&(n=t,r=null n(null,Object.keys(t.Keys).map(function(e){return{hash:e,type:t.Keys[e].Type}}))})})}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{add:r(535)(t),rm:r(536)(t),list:r(537)(t)}}},function(e,t,r){"use strict" +return{add:r(538)(t),rm:r(539)(t),list:r(540)(t)}}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(1) e.exports=function(e){return i(function(t,r,i){"function"!=typeof r||i||(i=r,r={}),"function"==typeof r&&"function"==typeof i&&(i=r,r={}),t&&"object"===n(t)&&(r=t,t=void 0),e({path:"bootstrap/add",args:t,qs:r},i)})}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(1) @@ -17626,19 +17832,19 @@ var n=r(1) e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}),e({path:"bootstrap/list",qs:t},r)})}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{get:r(539)(t),put:r(540)(t),findProvs:r(541)(t),findPeer:r(542)(t),provide:r(543)(t),query:r(544)(t)}}},function(e,t,r){"use strict" +return{get:r(542)(t),put:r(543)(t),findProvs:r(544)(t),findPeer:r(545)(t),provide:r(546)(t),query:r(547)(t)}}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}),e({path:"dht/get",args:t,qs:r},function(e,t,r){return t?e(t):r?0===r.length?e(new Error("no value returned for key")):(Array.isArray(r)&&(r=r[0]),void(5===r.Type?e(null,r.Extra):e(new Error("key was not found (type 6)")))):e(new Error("empty response"))}.bind(null,n))})}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r,n,i){"function"!=typeof n||i||(i=n,n={}),"function"==typeof n&&"function"==typeof i&&(i=n,n={}),e({path:"dht/put",args:[t,r],qs:n},i)})}},function(e,t,r){"use strict" -var n=r(1),i=r(112),o=r(17),a=r(24),s=r(51),u=r(221) +var n=r(1),i=r(113),o=r(17),a=r(25),s=r(51),u=r(222) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}) var l=function(e,t){return e?(Array.isArray(e)&&(e=e[0]),4!==e.Type?t(u(new Error("key was not found (type 4)"),"ERR_KEY_TYPE_4_NOT_FOUND")):void t(null,e.Responses.map(function(e){var t=new s(a.createFromB58String(e.ID)) return e.Addrs.forEach(function(e){var r=o(e) t.multiaddrs.add(r)}),t}))):t(null,[])} e({path:"dht/findprovs",args:t,qs:r},function(e,t){if(e)return n(e) i(t,l,n)})})}},function(e,t,r){"use strict" -var n=r(1),i=r(112),o=r(17),a=r(24),s=r(51),u=r(221) +var n=r(1),i=r(113),o=r(17),a=r(25),s=r(51),u=r(222) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}) var l=function(e,t){if(Array.isArray(e)&&(e=e[0]),2!==e.Type)return t(u(new Error("key was not found (type 2)"),"ERR_KEY_TYPE_2_NOT_FOUND")) var r=e.Responses[0],n=new s(a.createFromB58String(r.ID)) @@ -17649,26 +17855,26 @@ i(t,l,n)})})}},function(e,t,r){"use strict" var n=r(1),i=r(5) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}),Array.isArray(t)||(t=[t]) try{t=t.map(function(e){return new i(e).toBaseEncodedString("base58btc")})}catch(e){return n(e)}e({path:"dht/provide",args:t,qs:r},n)})}},function(e,t,r){"use strict" -var n=r(1),i=r(112),o=r(24),a=r(51) +var n=r(1),i=r(113),o=r(25),a=r(51) e.exports=function(e){return n(function(t,r,n){"function"!=typeof r||n||(n=r,r={}),"function"==typeof r&&"function"==typeof n&&(n=r,r={}) var s=function(e,t){t(null,e.map(function(e){return new a(o.createFromB58String(e.ID))}))} e({path:"dht/query",args:t,qs:r},function(e,t){if(e)return n(e) i(t,s,n)})})}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{publish:r(546)(t),resolve:r(547)(t),pubsub:r(548)(t)}}},function(e,t,r){"use strict" +return{publish:r(549)(t),resolve:r(550)(t),pubsub:r(551)(t)}}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,{name:e.Name,value:e.Value})} e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e.andTransform({path:"name/publish",args:t,qs:r},i,n)})}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,e.Path)} e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e.andTransform({path:"name/resolve",args:t,qs:r},i,n)})}},function(e,t,r){"use strict" -e.exports=function(e){return{cancel:r(549)(e),state:r(550)(e),subs:r(551)(e)}}},function(e,t,r){"use strict" +e.exports=function(e){return{cancel:r(552)(e),state:r(553)(e),subs:r(554)(e)}}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,{canceled:void 0===e.Canceled||!0===e.Canceled})} e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e.andTransform({path:"name/pubsub/cancel",args:t,qs:r},i,n)})}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,{enabled:e.Enabled})} e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}),e.andTransform({path:"name/pubsub/state",qs:t},i,r)})}},function(e,t,r){"use strict" var n=r(1),i=function(e,t){t(null,e.Strings||[])} e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}),e.andTransform({path:"name/pubsub/subs",qs:t},i,r)})}},function(e,t,r){"use strict" -var n=r(1),i=r(15),o=r(10).Writable,a=r(4),s=r(113) +var n=r(1),i=r(15),o=r(10).Writable,a=r(4),s=r(114) e.exports=function(e){var t=a(e) return n(function(e,r,n){if("function"==typeof r&&(n=r,r={}),r.n&&r.count)return n(new Error("Use either n or count, not both")) r.n||r.count||(r.n=1) @@ -17678,14 +17884,14 @@ i(e,r,new o({objectMode:!0,write:function(e,t,r){n.push(e),r()}}),function(e){if t(null,n)})},n)})}},function(e,t,r){"use strict" e.exports=function(e){if(!function(e){return e&&"boolean"==typeof e.Success}(e))throw new Error("Invalid ping message received") return{success:e.Success,time:e.Time,text:e.Text}}},function(e,t,r){"use strict" -var n=r(15),i=r(4),o=r(113) +var n=r(15),i=r(4),o=r(114) e.exports=function(e){var t=i(e) return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} r.n||r.count||(r.n=1) var i={path:"ping",args:e,qs:r},a=new o return t(i,function(e,t){if(e)return a.emit("error",e) n(t,a)}),a}}},function(e,t,r){"use strict" -var n=r(26),i=r(43),o=r(15),a=r(4),s=r(113) +var n=r(27),i=r(44),o=r(15),a=r(4),s=r(114) e.exports=function(e){var t=a(e) return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} r.n||r.count||(r.n=1) @@ -17694,8 +17900,8 @@ return t(a,function(e,t){if(e)return u.abort(e) o(t,l),u.resolve(n.source(l))}),u}}},function(e,t,r){"use strict" var n=r(4) e.exports=function(e){var t=n(e) -return{peers:r(557)(t),connect:r(558)(t),disconnect:r(559)(t),addrs:r(560)(t),localAddrs:r(561)(t)}}},function(e,t,r){"use strict" -var n=r(1),i=r(17),o=r(24) +return{peers:r(560)(t),connect:r(561)(t),disconnect:r(562)(t),addrs:r(563)(t),localAddrs:r(564)(t)}}},function(e,t,r){"use strict" +var n=r(1),i=r(17),o=r(25) e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}) var n=t.v||t.verbose e({path:"swarm/peers",qs:t},function(e,t){if(e)return r(e) @@ -17709,14 +17915,14 @@ var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e({path:"swarm/connect",args:t,qs:r},n)})}},function(e,t,r){"use strict" var n=r(1) e.exports=function(e){return n(function(t,r,n){"function"==typeof r&&(n=r,r={}),e({path:"swarm/disconnect",args:t,qs:r},n)})}},function(e,t,r){"use strict" -var n=r(1),i=r(51),o=r(24),a=r(17) +var n=r(1),i=r(51),o=r(25),a=r(17) e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}),e({path:"swarm/addrs",qs:t},function(e,t){if(e)return r(e) var n=Object.keys(t.Addrs).map(function(e){var r=new i(o.createFromB58String(e)) return t.Addrs[e].forEach(function(e){r.multiaddrs.add(a(e))}),r}) r(null,n)})})}},function(e,t,r){"use strict" var n=r(1),i=r(17) e.exports=function(e){return n(function(t,r){"function"==typeof t&&(r=t,t={}),e({path:"swarm/addrs/local",qs:t},function(e,t){if(e)return r(e) -r(null,t.Strings.map(function(e){return i(e)}))})})}},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(13),o=r(105),a=r(54),s=r(91),u=r(563),l=r(565),c=r(4),f=function(){return new Error("pubsub is currently not supported when run in the browser")} +r(null,t.Strings.map(function(e){return i(e)}))})})}},function(e,t,r){"use strict";(function(t){var n=r(1),i=r(13),o=r(106),a=r(54),s=r(92),u=r(566),l=r(568),c=r(4),f=function(){return new Error("pubsub is currently not supported when run in the browser")} e.exports=function(e){var r=c(e),h=new i,d={} return h.id=Math.random(),{subscribe:function(e,t,r,n){var i={discover:!1} return"function"==typeof r&&(n=r,r=i),r||(r=i),a?n?void p(e,t,r,n):new Promise(function(n,i){p(e,t,r,function(e){if(e)return i(e) @@ -17733,7 +17939,7 @@ d[e]={},d[e].req=r.andTransform(a,u.from,function(r,n){if(r)return d[e]=null,h.r d[e].res=n,n.on("data",function(t){h.emit(e,t)}),n.on("error",function(e){h.emit("error",e)}),o(n,function(r){r&&h.emit("error",r),d[e]=null,h.removeListener(e,t)}),i()})}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r=0&&(a=r.type.substring(s)) +var u=e(t,r.components) +i.isArray(u)&&t?o.push("tuple("+u.join(",")+")"+a):t?o.push("("+u+")"):o.push("("+u.join(",")+")"+a)}else o.push(r.type)}),o},c=function(e){if(!a.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.") +var t="",r=0,n=e.length +for("0x"===e.substring(0,2)&&(r=2);r7?r+=e[n].toUpperCase():r+=e[n] +return r},toHex:a.toHex,toBN:a.toBN,bytesToHex:a.bytesToHex,hexToBytes:a.hexToBytes,hexToNumberString:a.hexToNumberString,hexToNumber:a.hexToNumber,toDecimal:a.hexToNumber,numberToHex:a.numberToHex,fromDecimal:a.numberToHex,hexToUtf8:a.hexToUtf8,hexToString:a.hexToUtf8,toUtf8:a.hexToUtf8,utf8ToHex:a.utf8ToHex,stringToHex:a.utf8ToHex,fromUtf8:a.utf8ToHex,hexToAscii:c,toAscii:c,asciiToHex:f,fromAscii:f,unitMap:o.unitMap,toWei:function(e,t){if(t=h(t),!a.isBN(e)&&!i.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.") +return a.isBN(e)?o.toWei(e,t):o.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=h(t),!a.isBN(e)&&!i.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.") +return a.isBN(e)?o.fromWei(e,t):o.fromWei(e,t).toString(10)},padLeft:a.leftPad,leftPad:a.leftPad,padRight:a.rightPad,rightPad:a.rightPad,toTwosComplement:a.toTwosComplement}},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(610),o=r(224),a=new i(0),s=new i(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"} +function l(e){var t=e?e.toLowerCase():"ether",r=u[t] +if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2)) +return new i(r,10)}function c(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).") +return e}if("number"==typeof e)return String(e) +if("object"===n(e)&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10) +throw new Error("while converting number to string, invalid number value '"+e+"' type "+n(e)+".")}e.exports={unitMap:u,numberToString:c,getValueOfUnit:l,fromWei:function(e,t,r){var n=o(e),i=n.lt(a),c=l(t),f=u[t].length-1||1,h=r||{} +i&&(n=n.mul(s)) +for(var d=n.mod(c).toString(10);d.length2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points") +var h=f[0],d=f[1] +if(h||(h="0"),d||(d="0"),d.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places") +for(;d.length=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) +if("object"===t(e))return this._initArray(e,r,n) +"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) +var o=0 +"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(e,o):this._parseBase(e,r,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this +this.length=Math.ceil(e.length/3),this.words=new Array(this.length) +for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) +for(var r=0;r=t;r-=6)i=u(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++) +r+6!==t&&(i=u(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 +for(var n=0,i=1;i<=67108863;i*=t)n++ +n--,i=i/t|0 +for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length-- +return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} +var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] +function d(e,t,r){r.negative=t.negative^e.negative +var n=e.length+t.length|0 +r.length=n,n=n-1|0 +var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 +r.words[0]=s +for(var l=1;l>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0 +c+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r +if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" +for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],d=h[e] +r="" +var p=this.clone() +for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e) +r=(p=p.idivn(d)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] +return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) +i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() +var a,s,u="le"===t,l=new e(o),c=this.clone() +if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a +for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 +var t=e,r=0 +return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) +return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 +for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t +t=this.length>e.length?e:this +for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r +this.length>e.length?(t=this,r=e):(t=e,r=this) +for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0) +var t=0|Math.ceil(e/26),r=e%26 +this._expand(t),r>0&&t-- +for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0) +var r=e/26|0,n=e%26 +return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this) +for(var i=0,o=0;o>>26 +for(;0!==i&&o>>26 +if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++ +else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0 +var t=this.iadd(e) +return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign() +var r,n,i=this.cmp(e) +if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this +i>0?(r=this,n=e):(r=e,n=this) +for(var o=0,a=0;a>26,this.words[a]=67108863&t +for(;0!==o&&a>26,this.words[a]=67108863&t +if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +r.negative=e.negative^t.negative,r.length=19 +var ye=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 +l=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) +var ge=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,q)|0))<<13)|0 +l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0 +var ve=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,G)|0))<<13)|0 +l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0 +var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,J)|0))<<13)|0 +l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0 +var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0 +l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 +var _e=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 +l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var Se=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var Ee=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0 +l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 +var ke=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 +l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +var xe=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 +l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 +var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Ae=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 +l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(F,J)|0,o=Math.imul(F,X),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 +var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 +l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 +var Ce=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(k,pe)|0))<<13)|0 +l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 +var Ie=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(A,pe)|0))<<13)|0 +l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 +var Oe=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0 +l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0 +var Pe=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0 +l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,fe),i=(i=Math.imul(j,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(B,pe)|0))<<13)|0 +l=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 +var Ne=(l+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0 +return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} +function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length +for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 +return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e) +if(0===t.length)return new a(1) +for(var r=this,n=0;n=0) +var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r +if(0!==r){var a=0 +for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t] +for(t=0;t=0),n=t?(t-t%26)/26:0 +var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=n);l--){var f=0|this.words[l] +this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0) +var t=e%26,r=(e-t)/26,n=1<=0) +var t=e%26,r=(e-t)/26 +if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this +if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++ +return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e) +if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this +if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1 +else for(var t=0;t>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o +if(0===s)return this.strip() +for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o +return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1] +0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]) +var s,u=n.length-i.length +if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length) +for(var l=0;l=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]) +for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1) +s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t) +var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e) +if(t.mod.isZero())return t.div +var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n) +return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863) +for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e +return r},a.prototype.idivn=function(e){i(e<=67108863) +for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t +this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l +for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(f)),n.iushrn(1),o.iushrn(1) +for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1) +t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(l)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1) +for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1) +t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs() +if(e.isZero())return this.abs() +var t=this.clone(),r=e.clone() +t.negative=0,r.negative=0 +for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1) +for(;;){for(;t.isEven();)t.iushrn(1) +for(;r.isEven();)r.iushrn(1) +var i=t.cmp(r) +if(i<0){var o=t +t=r,r=o}else if(0===i||0===r.cmpn(1))break +t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e) +var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0 +if(0!==this.negative&&!r)return-1 +if(0===this.negative&&r)return 1 +if(this.strip(),this.length>1)t=1 +else{r&&(e=-e),i(e<=67108863,"Number is too big") +var n=0|this.words[0] +t=n===e?0:ne.length)return 1 +if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] +if(n!==i){ni&&(t=1) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var g={k256:null,p224:null,p192:null,p25519:null} +function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e +do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) +var n=t0?r.isub(this.p):r.strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},o(b,v),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e] +var t +if("k256"===e)t=new b +else if("p224"===e)t=new w +else if("p192"===e)t=new _ +else{if("p25519"!==e)throw new Error("Unknown prime "+e) +t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t) +var r=e.add(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t) +var r=e.iadd(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t) +var r=e.sub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t) +var r=e.isub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone() +var t=this.m.andln(3) +if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) +return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) +i(!n.isZero()) +var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength() +for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u) +for(var f=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() +i(y=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1 +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new k(e)},o(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e +var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) +var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(22)(e))},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" +function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t +var r=function(){} +r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e +this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s +"object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 +try{s=r(0).Buffer}catch(e){}function u(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) +if("object"===t(e))return this._initArray(e,r,n) +"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) +var o=0 +"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(e,o):this._parseBase(e,r,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this +this.length=Math.ceil(e.length/3),this.words=new Array(this.length) +for(var n=0;n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) +for(var r=0;r=t;r-=6)i=u(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++) +r+6!==t&&(i=u(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 +for(var n=0,i=1;i<=67108863;i*=t)n++ +n--,i=i/t|0 +for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length-- +return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} +var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] +function d(e,t,r){r.negative=t.negative^e.negative +var n=e.length+t.length|0 +r.length=n,n=n-1|0 +var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 +r.words[0]=s +for(var l=1;l>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0 +c+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r +if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" +for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],d=h[e] +r="" +var p=this.clone() +for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e) +r=(p=p.idivn(d)).isZero()?m+r:c[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] +return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) +i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() +var a,s,u="le"===t,l=new e(o),c=this.clone() +if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a +for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 +var t=e,r=0 +return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) +return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 +for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t +t=this.length>e.length?e:this +for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r +this.length>e.length?(t=this,r=e):(t=e,r=this) +for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0) +var t=0|Math.ceil(e/26),r=e%26 +this._expand(t),r>0&&t-- +for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0) +var r=e/26|0,n=e%26 +return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this) +for(var i=0,o=0;o>>26 +for(;0!==i&&o>>26 +if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++ +else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0 +var t=this.iadd(e) +return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign() +var r,n,i=this.cmp(e) +if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this +i>0?(r=this,n=e):(r=e,n=this) +for(var o=0,a=0;a>26,this.words[a]=67108863&t +for(;0!==o&&a>26,this.words[a]=67108863&t +if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,_=b>>>13,S=0|a[4],E=8191&S,k=S>>>13,x=0|a[5],M=8191&x,A=x>>>13,T=0|a[6],C=8191&T,I=T>>>13,O=0|a[7],P=8191&O,R=O>>>13,N=0|a[8],L=8191&N,B=N>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],G=8191&W,Y=W>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +r.negative=e.negative^t.negative,r.length=19 +var ye=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 +l=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) +var ge=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,q)|0))<<13)|0 +l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,V)|0 +var ve=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,G)|0))<<13)|0 +l=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,Y)|0 +var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,J)|0))<<13)|0 +l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0 +var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0 +l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0 +var _e=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 +l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var Se=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var Ee=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0 +l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0 +var ke=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 +l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +var xe=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 +l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,V))+Math.imul(F,q)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,he)|0 +var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Ae=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(v,pe)|0))<<13)|0 +l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(F,J)|0,o=Math.imul(F,X),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,he)|0 +var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 +l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(F,$)|0,o=Math.imul(F,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 +var Ce=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(k,pe)|0))<<13)|0 +l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,le)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0 +var Ie=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(A,pe)|0))<<13)|0 +l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0 +var Oe=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0 +l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(F,ue)|0,o=Math.imul(F,le),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0 +var Pe=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0 +l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,fe),i=(i=Math.imul(j,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +var Re=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(B,pe)|0))<<13)|0 +l=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863 +var Ne=(l+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0 +return l=((o=Math.imul(F,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,u[0]=ye,u[1]=ge,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=xe,u[10]=Me,u[11]=Ae,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Oe,u[16]=Pe,u[17]=Re,u[18]=Ne,0!==l&&(u[19]=l,r.length++),r} +function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length +for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 +return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e) +if(0===t.length)return new a(1) +for(var r=this,n=0;n=0) +var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r +if(0!==r){var a=0 +for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t] +for(t=0;t=0),n=t?(t-t%26)/26:0 +var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=n);l--){var f=0|this.words[l] +this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0) +var t=e%26,r=(e-t)/26,n=1<=0) +var t=e%26,r=(e-t)/26 +if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this +if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++ +return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e) +if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this +if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1 +else for(var t=0;t>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o +if(0===s)return this.strip() +for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o +return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1] +0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]) +var s,u=n.length-i.length +if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length) +for(var l=0;l=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]) +for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1) +s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t) +var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e) +if(t.mod.isZero())return t.div +var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n) +return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863) +for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e +return r},a.prototype.idivn=function(e){i(e<=67108863) +for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t +this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l +for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(f)),n.iushrn(1),o.iushrn(1) +for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1) +t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(l)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1) +for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1) +t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs() +if(e.isZero())return this.abs() +var t=this.clone(),r=e.clone() +t.negative=0,r.negative=0 +for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1) +for(;;){for(;t.isEven();)t.iushrn(1) +for(;r.isEven();)r.iushrn(1) +var i=t.cmp(r) +if(i<0){var o=t +t=r,r=o}else if(0===i||0===r.cmpn(1))break +t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e) +var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0 +if(0!==this.negative&&!r)return-1 +if(0===this.negative&&r)return 1 +if(this.strip(),this.length>1)t=1 +else{r&&(e=-e),i(e<=67108863,"Number is too big") +var n=0|this.words[0] +t=n===e?0:ne.length)return 1 +if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] +if(n!==i){ni&&(t=1) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var g={k256:null,p224:null,p192:null,p25519:null} +function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e +do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) +var n=t0?r.isub(this.p):r.strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},o(b,v),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e] +var t +if("k256"===e)t=new b +else if("p224"===e)t=new w +else if("p192"===e)t=new _ +else{if("p25519"!==e)throw new Error("Unknown prime "+e) +t=new S}return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t) +var r=e.add(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t) +var r=e.iadd(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t) +var r=e.sub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t) +var r=e.isub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone() +var t=this.m.andln(3) +if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) +return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) +i(!n.isZero()) +var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength() +for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u) +for(var f=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() +i(y=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1 +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new k(e)},o(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e +var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) +var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(22)(e))},function(e,t,r){var n=r(613) +e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+r(e)+", while checking isHexPrefixed.") +return"0x"===e.slice(0,2)}},function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode +function o(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return i(e>>t&63|128)}function u(e){if(0==(4294967168&e))return i(e) +var t="" +return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(a(e),t=i(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+i(63&e|128)}function l(){if(n>=r)throw Error("Invalid byte index") +var e=255&t[n] +if(n++,128==(192&e))return 63&e +throw Error("Invalid continuation byte")}function c(){var e,i +if(n>r)throw Error("Invalid byte index") +if(n==r)return!1 +if(e=255&t[n],n++,0==(128&e))return e +if(192==(224&e)){if((i=(31&e)<<6|l())>=128)return i +throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|l()<<6|l())>=2048)return a(i),i +throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i +throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,n=-1,i="";++n65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t) +return o}(s)}}(t)},function(e,t){var r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=function(e){var t,r,n,i,a,s,u,l,c,f,h,d,p,m,y,g,v,b,w,_,S,E,k,x,M,A,T,C,I,O,P,R,N,L,B,D,j,F,U,z,H,K,q,V,W,G,Y,Z,J,X,Q,$,ee,te,re,ne,ie,oe,ae,se,ue,le,ce +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|u>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(u<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=a^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(f<<1|h>>>31),r=u^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|a>>>31),r=h^(a<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],G=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,j=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,M=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=m^~g&b,e[1]=y^~v&w,e[10]=x^~A&C,e[11]=M^~T&I,e[20]=L^~D&F,e[21]=B^~j&U,e[30]=V^~G&Z,e[31]=W^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~b&_,e[3]=v^~w&S,e[12]=A^~C&O,e[13]=T^~I&P,e[22]=D^~F&z,e[23]=j^~U&H,e[32]=G^~Z&X,e[33]=Y^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~_&E,e[5]=w^~S&k,e[14]=C^~O&R,e[15]=I^~P&N,e[24]=F^~z&K,e[25]=U^~H&q,e[34]=Z^~X&$,e[35]=J^~Q&ee,e[44]=oe^~se&le,e[45]=ae^~ue&ce,e[6]=_^~E&m,e[7]=S^~k&y,e[16]=O^~R&x,e[17]=P^~N&M,e[26]=z^~K&L,e[27]=H^~q&B,e[36]=X^~$&V,e[37]=Q^~ee&W,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=E^~m&g,e[9]=k^~y&v,e[18]=R^~x&A,e[19]=N^~M&T,e[28]=K^~L&D,e[29]=q^~B&j,e[38]=$^~V&G,e[39]=ee^~W&Y,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=o[n],e[1]^=o[n+1]},s=function(e){return function(t){var o +if("0x"===t.slice(0,2)){o=[] +for(var s=2,u=t.length;s>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(u[y>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=l){for(e.start=y-l,e.block=u[c],y=0;y>2]|=n[3&y],e.lastByteIndex===l)for(u[0]=u[c],y=1;y>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15] +g%c==0&&(a(h),y=0)}return"0x"+m}(function(e){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))} +var t}(e),o)}} +e.exports={keccak256:s(256),keccak512:s(512),keccak256s:s(256),keccak512s:s(512)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(116),o=r(62),a=r(225),s=function(e){var t=n(e) +if("string"===t)return a.isHexStrict(e)?new o(e.replace(/0x/i,""),16):new o(e,10) +if("number"===t)return new o(e) +if(a.isBigNumber(e))return new o(e.toString(10)) +if(a.isBN(e))return e +throw new Error(e+" is not a number")},u=function(e,t,r){var n,i +if("bytes"===(e=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length) +return t}if("string"===e)return a.utf8ToHex(t) +if("bool"===e)return t?"01":"00" +if(e.startsWith("address")){if(n=r?64:40,!a.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.") +return a.leftPad(t.toLowerCase(),n)}if(n=function(e){var t=/^\D+(\d+).*$/.exec(e) +return t?parseInt(t[1],10):null}(e),e.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity") +if(r&&(n=32),n<1||n>32||n256)throw new Error("Invalid uint"+n+" size") +if((i=s(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+i.bitLength()) +if(i.lt(new o(0)))throw new Error("Supplied uint "+i.toString()+" is negative") +return n?a.leftPad(i.toString("hex"),n/8*2):i}if(e.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size") +if((i=s(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+i.bitLength()) +return i.lt(new o(0))?i.toTwos(n).toString("hex"):n?a.leftPad(i.toString("hex"),n/8*2):i}throw new Error("Unsupported or invalid type: "+e)},l=function(e){if(i.isArray(e))throw new Error("Autodetection of array types is not supported.") +var t,r,n="" +if(i.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,n=e.hasOwnProperty("v")?e.v:e.value):(t=a.toHex(e,!0),n=a.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof n||/^(-)?0x/i.test(n)||(n=new o(n)),i.isArray(n)){if((r=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e) +return t?parseInt(t[1],10):null}(t))&&n.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(n)) +r=n.length}return i.isArray(n)?n.map(function(e){return u(t,e,r).toString("hex").replace("0x","")}).join(""):u(t,n,r).toString("hex").replace("0x","")} +e.exports=function(){var e=Array.prototype.slice.call(arguments),t=i.map(e,l) +return a.sha3("0x"+t.join(""))}},function(e,t,r){e.exports=function(e,t){var n=r(618),i="function"==typeof t +if(e>65536){if(!i)throw new Error("Requested too many random bytes.") +t(new Error("Requested too many random bytes."))}if(void 0!==n&&n.randomBytes){if(!i)return"0x"+n.randomBytes(e).toString("hex") +n.randomBytes(e,function(e,r){e?t(u):t(null,"0x"+r.toString("hex"))})}else{var o +if(void 0!==n?o=n:"undefined"!=typeof msCrypto&&(o=msCrypto),o&&o.getRandomValues){var a=o.getRandomValues(new Uint8Array(e)),s="0x"+Array.from(a).map(function(e){return e.toString(16)}).join("") +if(!i)return s +t(null,s)}else{var u=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.') +if(!i)throw u +t(u)}}}},function(e,t,r){e.exports=r(619)},function(e,t){e.exports=window.crypto}]]) +var __ember_auto_import__=function(e){function t(t){for(var n,a,s=t[0],u=t[1],l=t[2],f=0,h=[];f - + - + @@ -24,8 +24,8 @@ - - + +