-
Notifications
You must be signed in to change notification settings - Fork 3
/
index_iframe.html
23 lines (23 loc) · 804 KB
/
index_iframe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Cubik Crowdsale</title> <style>:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"\2014 \00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;max-width:100%;margin-bottom:1rem;background-color:transparent}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table .table{background-color:#fff}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#212529;border-color:#32383e}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#212529}.table-dark td,.table-dark th,.table-dark thead th{border-color:#32383e}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:not([size]):not([multiple]){height:calc(2.25rem + 2px)}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm,.input-group-lg>.form-control-plaintext.form-control,.input-group-lg>.input-group-append>.form-control-plaintext.btn,.input-group-lg>.input-group-append>.form-control-plaintext.input-group-text,.input-group-lg>.input-group-prepend>.form-control-plaintext.btn,.input-group-lg>.input-group-prepend>.form-control-plaintext.input-group-text,.input-group-sm>.form-control-plaintext.form-control,.input-group-sm>.input-group-append>.form-control-plaintext.btn,.input-group-sm>.input-group-append>.form-control-plaintext.input-group-text,.input-group-sm>.input-group-prepend>.form-control-plaintext.btn,.input-group-sm>.input-group-prepend>.form-control-plaintext.input-group-text{padding-right:0;padding-left:0}.form-control-sm,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-sm>.input-group-append>select.btn:not([size]):not([multiple]),.input-group-sm>.input-group-append>select.input-group-text:not([size]):not([multiple]),.input-group-sm>.input-group-prepend>select.btn:not([size]):not([multiple]),.input-group-sm>.input-group-prepend>select.input-group-text:not([size]):not([multiple]),.input-group-sm>select.form-control:not([size]):not([multiple]),select.form-control-sm:not([size]):not([multiple]){height:calc(1.8125rem + 2px)}.form-control-lg,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-lg>.input-group-append>select.btn:not([size]):not([multiple]),.input-group-lg>.input-group-append>select.input-group-text:not([size]):not([multiple]),.input-group-lg>.input-group-prepend>select.btn:not([size]):not([multiple]),.input-group-lg>.input-group-prepend>select.input-group-text:not([size]):not([multiple]),.input-group-lg>select.form-control:not([size]):not([multiple]),select.form-control-lg:not([size]):not([multiple]){height:calc(2.875rem + 2px)}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.5rem;margin-top:.1rem;font-size:.875rem;line-height:1;color:#fff;background-color:rgba(40,167,69,.8);border-radius:.2rem}.custom-select.is-valid,.form-control.is-valid,.was-validated .custom-select:valid,.was-validated .form-control:valid{border-color:#28a745}.custom-select.is-valid:focus,.form-control.is-valid:focus,.was-validated .custom-select:valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-select.is-valid~.valid-feedback,.custom-select.is-valid~.valid-tooltip,.form-control.is-valid~.valid-feedback,.form-control.is-valid~.valid-tooltip,.was-validated .custom-select:valid~.valid-feedback,.was-validated .custom-select:valid~.valid-tooltip,.was-validated .form-control:valid~.valid-feedback,.was-validated .form-control:valid~.valid-tooltip{display:block}.form-control-file.is-valid~.valid-feedback,.form-control-file.is-valid~.valid-tooltip,.was-validated .form-control-file:valid~.valid-feedback,.was-validated .form-control-file:valid~.valid-tooltip{display:block}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{background-color:#71dd8a}.custom-control-input.is-valid~.valid-feedback,.custom-control-input.is-valid~.valid-tooltip,.was-validated .custom-control-input:valid~.valid-feedback,.was-validated .custom-control-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(40,167,69,.25)}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label::before,.was-validated .custom-file-input:valid~.custom-file-label::before{border-color:inherit}.custom-file-input.is-valid~.valid-feedback,.custom-file-input.is-valid~.valid-tooltip,.was-validated .custom-file-input:valid~.valid-feedback,.was-validated .custom-file-input:valid~.valid-tooltip{display:block}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.5rem;margin-top:.1rem;font-size:.875rem;line-height:1;color:#fff;background-color:rgba(220,53,69,.8);border-radius:.2rem}.custom-select.is-invalid,.form-control.is-invalid,.was-validated .custom-select:invalid,.was-validated .form-control:invalid{border-color:#dc3545}.custom-select.is-invalid:focus,.form-control.is-invalid:focus,.was-validated .custom-select:invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-select.is-invalid~.invalid-feedback,.custom-select.is-invalid~.invalid-tooltip,.form-control.is-invalid~.invalid-feedback,.form-control.is-invalid~.invalid-tooltip,.was-validated .custom-select:invalid~.invalid-feedback,.was-validated .custom-select:invalid~.invalid-tooltip,.was-validated .form-control:invalid~.invalid-feedback,.was-validated .form-control:invalid~.invalid-tooltip{display:block}.form-control-file.is-invalid~.invalid-feedback,.form-control-file.is-invalid~.invalid-tooltip,.was-validated .form-control-file:invalid~.invalid-feedback,.was-validated .form-control-file:invalid~.invalid-tooltip{display:block}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{background-color:#efa2a9}.custom-control-input.is-invalid~.invalid-feedback,.custom-control-input.is-invalid~.invalid-tooltip,.was-validated .custom-control-input:invalid~.invalid-feedback,.was-validated .custom-control-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(220,53,69,.25)}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label::before,.was-validated .custom-file-input:invalid~.custom-file-label::before{border-color:inherit}.custom-file-input.is-invalid~.invalid-feedback,.custom-file-input.is-invalid~.invalid-tooltip,.was-validated .custom-file-input:invalid~.invalid-feedback,.was-validated .custom-file-input:invalid~.invalid-tooltip{display:block}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:focus,.btn:hover{text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}.btn:not(:disabled):not(.disabled).active,.btn:not(:disabled):not(.disabled):active{background-image:none}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-primary{color:#007bff;background-color:transparent;background-image:none;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;background-color:transparent;background-image:none;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;background-color:transparent;background-image:none;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;background-color:transparent;background-image:none;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;background-color:transparent;background-image:none;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;background-color:transparent;background-image:none;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;background-color:transparent;background-image:none;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;background-color:transparent;background-image:none;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;background-color:transparent}.btn-link:hover{color:#0056b3;text-decoration:underline;background-color:transparent;border-color:transparent}.btn-link.focus,.btn-link:focus{text-decoration:underline;border-color:transparent;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media screen and (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media screen and (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-right{right:0;left:auto}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;width:0;height:0;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:0 1 auto;flex:0 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group,.btn-group-vertical .btn+.btn,.btn-group-vertical .btn+.btn-group,.btn-group-vertical .btn-group+.btn,.btn-group-vertical .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.btn-group-vertical .btn,.btn-group-vertical .btn-group{width:100%}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file:focus,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control{margin-left:-1px}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:active~.custom-control-label::before{color:#fff;background-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#dee2e6}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background-repeat:no-repeat;background-position:center center;background-size:50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(2.25rem + 2px);padding:.375rem 1.75rem .375rem .75rem;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;background-size:8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.075),0 0 5px rgba(128,189,255,.5)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{opacity:0}.custom-select-sm{height:calc(1.8125rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:75%}.custom-select-lg{height:calc(2.875rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:125%}.custom-file{position:relative;display:inline-block;width:100%;height:calc(2.25rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(2.25rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:focus~.custom-file-label::after{border-color:#80bdff}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(2.25rem + 2px);padding:.375rem .75rem;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:2.25rem;padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:1px solid #ced4da;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;padding-left:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-appearance:none;appearance:none}.custom-range::-webkit-slider-thumb:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-appearance:none;appearance:none}.custom-range::-moz-range-thumb:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;appearance:none}.custom-range::-ms-thumb:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 1rem}.navbar>.container,.navbar>.container-fluid{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler:not(:disabled):not(.disabled){cursor:pointer}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.25rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:-ms-flexbox;display:flex;-ms-flex:1 0 0%;flex:1 0 0%;-ms-flex-direction:column;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:first-child .card-header,.card-group>.card:first-child .card-img-top{border-top-right-radius:0}.card-group>.card:first-child .card-footer,.card-group>.card:first-child .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:last-child .card-header,.card-group>.card:last-child .card-img-top{border-top-left-radius:0}.card-group>.card:last-child .card-footer,.card-group>.card:last-child .card-img-bottom{border-bottom-left-radius:0}.card-group>.card:only-child{border-radius:.25rem}.card-group>.card:only-child .card-header,.card-group>.card:only-child .card-img-top{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card-group>.card:only-child .card-footer,.card-group>.card:only-child .card-img-bottom{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-group>.card:not(:first-child):not(:last-child):not(:only-child){border-radius:0}.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-footer,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-header,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-top{border-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion .card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion .card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion .card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion .card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.breadcrumb{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-link:not(:disabled):not(.disabled){cursor:pointer}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}.badge-primary[href]:focus,.badge-primary[href]:hover{color:#fff;text-decoration:none;background-color:#0062cc}.badge-secondary{color:#fff;background-color:#6c757d}.badge-secondary[href]:focus,.badge-secondary[href]:hover{color:#fff;text-decoration:none;background-color:#545b62}.badge-success{color:#fff;background-color:#28a745}.badge-success[href]:focus,.badge-success[href]:hover{color:#fff;text-decoration:none;background-color:#1e7e34}.badge-info{color:#fff;background-color:#17a2b8}.badge-info[href]:focus,.badge-info[href]:hover{color:#fff;text-decoration:none;background-color:#117a8b}.badge-warning{color:#212529;background-color:#ffc107}.badge-warning[href]:focus,.badge-warning[href]:hover{color:#212529;text-decoration:none;background-color:#d39e00}.badge-danger{color:#fff;background-color:#dc3545}.badge-danger[href]:focus,.badge-danger[href]:hover{color:#fff;text-decoration:none;background-color:#bd2130}.badge-light{color:#212529;background-color:#f8f9fa}.badge-light[href]:focus,.badge-light[href]:hover{color:#212529;text-decoration:none;background-color:#dae0e5}.badge-dark{color:#fff;background-color:#343a40}.badge-dark[href]:focus,.badge-dark[href]:hover{color:#fff;text-decoration:none;background-color:#1d2124}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media screen and (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}.media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.media-body{-ms-flex:1;flex:1}.list-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item:focus,.list-group-item:hover{z-index:1;text-decoration:none}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:focus,.close:hover{color:#000;text-decoration:none;opacity:.75}.close:not(:disabled):not(.disabled){cursor:pointer}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;outline:0}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-25%);transform:translate(0,-25%)}@media screen and (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:translate(0,0);transform:translate(0,0)}.modal-dialog-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:calc(100% - (.5rem * 2))}.modal-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:justify;justify-content:space-between;padding:1rem;border-bottom:1px solid #e9ecef;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:1rem;border-top:1px solid #e9ecef}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-centered{min-height:calc(100% - (1.75rem * 2))}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg{max-width:800px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top] .arrow,.bs-popover-top .arrow{bottom:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::after,.bs-popover-top .arrow::before{border-width:.5rem .5rem 0}.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::before{bottom:0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-top .arrow::after{bottom:1px;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right] .arrow,.bs-popover-right .arrow{left:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::after,.bs-popover-right .arrow::before{border-width:.5rem .5rem .5rem 0}.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::before{left:0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-right .arrow::after{left:1px;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom] .arrow,.bs-popover-bottom .arrow{top:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::after,.bs-popover-bottom .arrow::before{border-width:0 .5rem .5rem .5rem}.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::before{top:0;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-bottom .arrow::after{top:1px;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left] .arrow,.bs-popover-left .arrow{right:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::after,.bs-popover-left .arrow::before{border-width:.5rem 0 .5rem .5rem}.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::before{right:0;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-left .arrow::after{right:1px;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;color:inherit;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-item{position:relative;display:none;-ms-flex-align:center;align-items:center;width:100%;transition:-webkit-transform .6s ease;transition:transform .6s ease;transition:transform .6s ease,-webkit-transform .6s ease;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}@media screen and (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.carousel-item-next,.carousel-item-prev{position:absolute;top:0}.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.active.carousel-item-right,.carousel-item-next{-webkit-transform:translateX(100%);transform:translateX(100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-right,.carousel-item-next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translateX(-100%);transform:translateX(-100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{opacity:0}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:transparent no-repeat center center;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:10px;left:0;z-index:15;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{position:relative;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:rgba(255,255,255,.5)}.carousel-indicators li::before{position:absolute;top:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators li::after{position:absolute;bottom:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-circle{border-radius:50%!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.text-justify{text-align:justify!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0062cc!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#545b62!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#1e7e34!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#117a8b!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#d39e00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#bd2130!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#dae0e5!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#1d2124!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}</style> </head> <body> <div class="offset-md-2 col-md-8"> <div> <div id="testnet-warning" class="alert alert-danger" role="alert" style="display:none"> </div> </div> <div class="mt-4"> <h1>Cubik Token Crowdsale</h1> </div> <div id="account-detail" class="card mt-2"> <div class="card-body"> <div class="row border-bottom mb-2"> <div class="col-12 mb-2"> <h4 class="card-title mb-1">Address</h4> <span class="card-subtitle text-muted" id="address"></span> </div> </div> <div class="row"> <div class="col-6"> <h4 class="card-title mb-1">ETH</h4> <span class="card-subtitle text-muted" id="eth-amount"></span> </div> <div class="col-6"> <h4 class="card-title mb-1">CUBIK</h4> <span class="card-subtitle text-muted" id="token-amount"></span> </div> </div> </div> </div> <div class="mt-4"> <h2>Purchase</h2> </div> <div class="card"> <form class="form card-body" role="form"> <div class="form-group row"> <label for="buy-amount" class="col-2 col-form-label">Receive</label> <div class="input-group col-8"> <input id="buy-amount" type="number" min="1" value="1000" class="form-control"> <div class="input-group-append"> <span class="input-group-text">Token</span> </div> </div> <div class="col-2"> <button id="buy-button" type="submit" class="btn btn-primary">Buy</button> </div> </div> <div class="form-group row"> <label class="col-2 col-form-label">Pay with</label> <div class="col-form-label col-8"> <span class="col-form-label" id="total-eth">0.2 ETH</span> </div> </div> <div class="form-group row"> <label class="col-2 col-form-label">Rate:</label> <div class="col-form-label col-8"> 1 ETH = 5000 CUBIK <small>(~USD $0.09 per CUBIK)</small> </div> </div> </form> </div> <div> <div id="no-metamask" class="alert alert-warning" role="alert" style="display:none"> Please install and log in to <strong><a href="https://metamask.io/" target="_blank">MetaMask</a></strong> </div> </div> <div> <div id="transaction-status" class="alert alert-primary" role="alert" style="display:none"> </div> </div> <div class="mt-4 text-center"> <div> <small class="text-muted">Token Address: <span id="token-address">0x9a62d3825e07342568a34aa31aad38bb04250806</span></small> </div> <div> <small class="text-muted">Crowdsale Address: <span id="crowdsale-address">0xea9Be48045942fFB578e1E295e5401e86CBA8e8c</span></small> </div> </div> </div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="https://cdn.rawgit.com/ethereum/web3.js/1.0/dist/web3.min.js"></script> <script>!function(){function e(t,f,r){function n(o,a){if(!f[o]){if(!t[o]){var s="function"==typeof require&&require;if(!a&&s)return s(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=f[o]={exports:{}};t[o][0].call(u.exports,function(e){return n(t[o][1][e]||e)},u,u.exports,e,t,f,r)}return f[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)n(r[o]);return n}return e}()({1:[function(e,t,f){t.exports={contractName:"Cubik",abi:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],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:!1,inputs:[{name:"token",type:"address"}],name:"reclaimToken",outputs:[],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:"INITIAL_SUPPLY",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_subtractedValue",type:"uint256"}],name:"decreaseApproval",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],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:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"from_",type:"address"},{name:"value_",type:"uint256"},{name:"data_",type:"bytes"}],name:"tokenFallback",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_addedValue",type:"uint256"}],name:"increaseApproval",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",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:!1,inputs:[{name:"_newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"}],name:"OwnershipRenounced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",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"},{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"}],bytecode:"0x60806040526000600360146101000a81548160ff02191690831515021790555034801561002b57600080fd5b5033600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601260ff16600a0a64012a05f20002600181905550601260ff16600a0a64012a05f200026000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef601260ff16600a0a64012a05f200026040518082815260200191505060405180910390a3611c05806101566000396000f300608060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610117578063095ea7b3146101a757806317ffc3201461020c57806318160ddd1461024f57806323b872dd1461027a5780632ff2e9dc146102ff578063313ce5671461032a5780633f4ba83a1461035b5780635c975abb1461037257806366188463146103a157806370a0823114610406578063715018a61461045d5780638456cb59146104745780638da5cb5b1461048b57806395d89b41146104e2578063a9059cbb14610572578063c0ee0b8a146105d7578063d73dd6231461063c578063dd62ed3e146106a1578063f2fde38b14610718575b600080fd5b34801561012357600080fd5b5061012c61075b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561016c578082015181840152602081019050610151565b50505050905090810190601f1680156101995780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b357600080fd5b506101f2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610794565b604051808215151515815260200191505060405180910390f35b34801561021857600080fd5b5061024d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107c4565b005b34801561025b57600080fd5b5061026461094b565b6040518082815260200191505060405180910390f35b34801561028657600080fd5b506102e5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610955565b604051808215151515815260200191505060405180910390f35b34801561030b57600080fd5b50610314610987565b6040518082815260200191505060405180910390f35b34801561033657600080fd5b5061033f610999565b604051808260ff1660ff16815260200191505060405180910390f35b34801561036757600080fd5b5061037061099e565b005b34801561037e57600080fd5b50610387610a5e565b604051808215151515815260200191505060405180910390f35b3480156103ad57600080fd5b506103ec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a71565b604051808215151515815260200191505060405180910390f35b34801561041257600080fd5b50610447600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aa1565b6040518082815260200191505060405180910390f35b34801561046957600080fd5b50610472610ae9565b005b34801561048057600080fd5b50610489610bee565b005b34801561049757600080fd5b506104a0610caf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ee57600080fd5b506104f7610cd5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561053757808201518184015260208101905061051c565b50505050905090810190601f1680156105645780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561057e57600080fd5b506105bd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d0e565b604051808215151515815260200191505060405180910390f35b3480156105e357600080fd5b5061063a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610d3e565b005b34801561064857600080fd5b50610687600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d43565b604051808215151515815260200191505060405180910390f35b3480156106ad57600080fd5b50610702600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d73565b6040518082815260200191505060405180910390f35b34801561072457600080fd5b50610759600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dfa565b005b6040805190810160405280600581526020017f437562696b00000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff161515156107b257600080fd5b6107bc8383610e62565b905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561082257600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050506040513d60208110156108e757600080fd5b81019080805190602001909291905050509050610947600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610f549092919063ffffffff16565b5050565b6000600154905090565b6000600360149054906101000a900460ff1615151561097357600080fd5b61097e848484611042565b90509392505050565b601260ff16600a0a64012a05f2000281565b601281565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109fa57600080fd5b600360149054906101000a900460ff161515610a1557600080fd5b6000600360146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600360149054906101000a900460ff1681565b6000600360149054906101000a900460ff16151515610a8f57600080fd5b610a9983836113fc565b905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b4557600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c4a57600080fd5b600360149054906101000a900460ff16151515610c6657600080fd5b6001600360146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600581526020017f435542494b00000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff16151515610d2c57600080fd5b610d36838361168d565b905092915050565b600080fd5b6000600360149054906101000a900460ff16151515610d6157600080fd5b610d6b83836118ac565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e5657600080fd5b610e5f81611aa8565b50565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ff757600080fd5b505af115801561100b573d6000803e3d6000fd5b505050506040513d602081101561102157600080fd5b8101908080519060200190929190505050151561103d57600080fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561107f57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156110cc57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561115757600080fd5b6111a8826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061123b826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061130c82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561150d576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115a1565b6115208382611ba490919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156116ca57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561171757600080fd5b611768826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117fb826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600061193d82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611ae457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000828211151515611bb257fe5b818303905092915050565b60008183019050828110151515611bd057fe5b809050929150505600a165627a7a723058204f9f31461a29b14436b66369498ba6ccad202c0c803e821290a529a5c6d0d3f70029",
deployedBytecode:"0x608060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610117578063095ea7b3146101a757806317ffc3201461020c57806318160ddd1461024f57806323b872dd1461027a5780632ff2e9dc146102ff578063313ce5671461032a5780633f4ba83a1461035b5780635c975abb1461037257806366188463146103a157806370a0823114610406578063715018a61461045d5780638456cb59146104745780638da5cb5b1461048b57806395d89b41146104e2578063a9059cbb14610572578063c0ee0b8a146105d7578063d73dd6231461063c578063dd62ed3e146106a1578063f2fde38b14610718575b600080fd5b34801561012357600080fd5b5061012c61075b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561016c578082015181840152602081019050610151565b50505050905090810190601f1680156101995780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b357600080fd5b506101f2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610794565b604051808215151515815260200191505060405180910390f35b34801561021857600080fd5b5061024d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107c4565b005b34801561025b57600080fd5b5061026461094b565b6040518082815260200191505060405180910390f35b34801561028657600080fd5b506102e5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610955565b604051808215151515815260200191505060405180910390f35b34801561030b57600080fd5b50610314610987565b6040518082815260200191505060405180910390f35b34801561033657600080fd5b5061033f610999565b604051808260ff1660ff16815260200191505060405180910390f35b34801561036757600080fd5b5061037061099e565b005b34801561037e57600080fd5b50610387610a5e565b604051808215151515815260200191505060405180910390f35b3480156103ad57600080fd5b506103ec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a71565b604051808215151515815260200191505060405180910390f35b34801561041257600080fd5b50610447600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aa1565b6040518082815260200191505060405180910390f35b34801561046957600080fd5b50610472610ae9565b005b34801561048057600080fd5b50610489610bee565b005b34801561049757600080fd5b506104a0610caf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ee57600080fd5b506104f7610cd5565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561053757808201518184015260208101905061051c565b50505050905090810190601f1680156105645780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561057e57600080fd5b506105bd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d0e565b604051808215151515815260200191505060405180910390f35b3480156105e357600080fd5b5061063a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610d3e565b005b34801561064857600080fd5b50610687600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d43565b604051808215151515815260200191505060405180910390f35b3480156106ad57600080fd5b50610702600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d73565b6040518082815260200191505060405180910390f35b34801561072457600080fd5b50610759600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dfa565b005b6040805190810160405280600581526020017f437562696b00000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff161515156107b257600080fd5b6107bc8383610e62565b905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561082257600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050506040513d60208110156108e757600080fd5b81019080805190602001909291905050509050610947600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610f549092919063ffffffff16565b5050565b6000600154905090565b6000600360149054906101000a900460ff1615151561097357600080fd5b61097e848484611042565b90509392505050565b601260ff16600a0a64012a05f2000281565b601281565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109fa57600080fd5b600360149054906101000a900460ff161515610a1557600080fd5b6000600360146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b600360149054906101000a900460ff1681565b6000600360149054906101000a900460ff16151515610a8f57600080fd5b610a9983836113fc565b905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b4557600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c4a57600080fd5b600360149054906101000a900460ff16151515610c6657600080fd5b6001600360146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600581526020017f435542494b00000000000000000000000000000000000000000000000000000081525081565b6000600360149054906101000a900460ff16151515610d2c57600080fd5b610d36838361168d565b905092915050565b600080fd5b6000600360149054906101000a900460ff16151515610d6157600080fd5b610d6b83836118ac565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e5657600080fd5b610e5f81611aa8565b50565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ff757600080fd5b505af115801561100b573d6000803e3d6000fd5b505050506040513d602081101561102157600080fd5b8101908080519060200190929190505050151561103d57600080fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561107f57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156110cc57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561115757600080fd5b6111a8826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061123b826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061130c82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561150d576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115a1565b6115208382611ba490919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156116ca57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561171757600080fd5b611768826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ba490919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117fb826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600061193d82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bbd90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611ae457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000828211151515611bb257fe5b818303905092915050565b60008183019050828110151515611bd057fe5b809050929150505600a165627a7a723058204f9f31461a29b14436b66369498ba6ccad202c0c803e821290a529a5c6d0d3f70029",sourceMap:"665:867:0:-;;;268:5:5;247:26;;;;;;;;;;;;;;;;;;;;1241:288:0;8:9:-1;5:2;;;30:1;27;20:12;5:2;1241:288:0;575:10:9;567:5;;:18;;;;;;;;;;;;;;;;;;962:2:0;1094:17;;1090:2;:21;1084:3;:27;1268:12;:29;;;;962:2;1094:17;;1090:2;:21;1084:3;:27;1364:8;:20;1373:10;1364:20;;;;;;;;;;;;;;;:37;;;;1497:10;1476:48;;1493:1;1476:48;;;962:2;1094:17;;1090:2;:21;1084:3;:27;1476:48;;;;;;;;;;;;;;;;;;665:867;;;;;;",deployedSourceMap:"665:867:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;715:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;715:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;715:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;592:162:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;592:162:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;598:149:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;598:149:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;371:83:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;371:83:10;;;;;;;;;;;;;;;;;;;;;;;400:188:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;400:188:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1043:68:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1043:68:0;;;;;;;;;;;;;;;;;;;;;;;929:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;929:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;838:92:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:92:5;;;;;;247:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:5;;;;;;;;;;;;;;;;;;;;;;;;;;;957:205:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;957:205:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1131:99:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1131:99:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;827:111:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;827:111:9;;;;;;666:90:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;666:90:5;;;;;;238:20:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:9;;;;;;;;;;;;;;;;;;;;;;;;;;;821:39:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;821:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;821:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;242:154:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;242:154:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;637:129:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;637:129:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;758:195:13;;8:9:-1;5:2;;;30:1;27;20:12;5:2;758:195:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2336:153:15;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2336:153:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1100:103:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1100:103:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;715:37:0;;;;;;;;;;;;;;;;;;;;:::o;592:162:13:-;697:4;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;718:31:13;732:8;742:6;718:13;:31::i;:::-;711:38;;592:162;;;;:::o;598:149:7:-;663:15;719:5:9;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;681:5:7;:15;;;697:4;681:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;681:21:7;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;681:21:7;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;681:21:7;;;;;;;;;;;;;;;;663:39;;708:34;727:5;;;;;;;;;;;734:7;708:5;:18;;;;:34;;;;;:::i;:::-;598:149;;:::o;371:83:10:-;415:7;437:12;;430:19;;371:83;:::o;400:188:13:-;524:4;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;545:38:13;564:5;571:3;576:6;545:18;:38::i;:::-;538:45;;400:188;;;;;:::o;1043:68:0:-;962:2;1094:17;;1090:2;:21;1084:3;:27;1043:68;:::o;929:35::-;962:2;929:35;:::o;838:92:5:-;719:5:9;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;568:6:5;;;;;;;;;;;560:15;;;;;;;;900:5;891:6;;:14;;;;;;;;;;;;;;;;;;916:9;;;;;;;;;;838:92::o;247:26::-;;;;;;;;;;;;;:::o;957:205:13:-;1078:12;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;1107:50:13;1130:8;1140:16;1107:22;:50::i;:::-;1100:57;;957:205;;;;:::o;1131:99:10:-;1187:7;1209:8;:16;1218:6;1209:16;;;;;;;;;;;;;;;;1202:23;;1131:99;;;:::o;827:111:9:-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;903:5;;;;;;;;;;;884:25;;;;;;;;;;;;931:1;915:5;;:18;;;;;;;;;;;;;;;;;;827:111::o;666:90:5:-;719:5:9;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;729:4;720:6;;:13;;;;;;;;;;;;;;;;;;744:7;;;;;;;;;;666:90::o;238:20:9:-;;;;;;;;;;;;;:::o;821:39:0:-;;;;;;;;;;;;;;;;;;;;:::o;242:154:13:-;343:4;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;364:27:13;379:3;384:6;364:14;:27::i;:::-;357:34;;242:154;;;;:::o;637:129:8:-;753:8;;;758:195:13;874:12;416:6:5;;;;;;;;;;;415:7;407:16;;;;;;;;903:45:13;926:8;936:11;903:22;:45::i;:::-;896:52;;758:195;;;;:::o;2336:153:15:-;2435:7;2459;:15;2467:6;2459:15;;;;;;;;;;;;;;;:25;2475:8;2459:25;;;;;;;;;;;;;;;;2452:32;;2336:153;;;;:::o;1100:103:9:-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;1169:29;1188:9;1169:18;:29::i;:::-;1100:103;:::o;1829:188:15:-;1896:4;1940:6;1908:7;:19;1916:10;1908:19;;;;;;;;;;;;;;;:29;1928:8;1908:29;;;;;;;;;;;;;;;:38;;;;1978:8;1957:38;;1966:10;1957:38;;;1988:6;1957:38;;;;;;;;;;;;;;;;;;2008:4;2001:11;;1829:188;;;;:::o;368:121:14:-;458:5;:14;;;473:2;477:5;458:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;458:25:14;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;458:25:14;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;458:25:14;;;;;;;;;;;;;;;;450:34;;;;;;;;368:121;;;:::o;736:470:15:-;842:4;879:1;864:17;;:3;:17;;;;856:26;;;;;;;;906:8;:15;915:5;906:15;;;;;;;;;;;;;;;;896:6;:25;;888:34;;;;;;;;946:7;:14;954:5;946:14;;;;;;;;;;;;;;;:26;961:10;946:26;;;;;;;;;;;;;;;;936:6;:36;;928:45;;;;;;;;998:27;1018:6;998:8;:15;1007:5;998:15;;;;;;;;;;;;;;;;:19;;:27;;;;:::i;:::-;980:8;:15;989:5;980:15;;;;;;;;;;;;;;;:45;;;;1047:25;1065:6;1047:8;:13;1056:3;1047:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;1031:8;:13;1040:3;1031:13;;;;;;;;;;;;;;;:41;;;;1107:38;1138:6;1107:7;:14;1115:5;1107:14;;;;;;;;;;;;;;;:26;1122:10;1107:26;;;;;;;;;;;;;;;;:30;;:38;;;;:::i;:::-;1078:7;:14;1086:5;1078:14;;;;;;;;;;;;;;;:26;1093:10;1078:26;;;;;;;;;;;;;;;:67;;;;1172:3;1156:28;;1165:5;1156:28;;;1177:6;1156:28;;;;;;;;;;;;;;;;;;1197:4;1190:11;;736:470;;;;;:::o;3701:425::-;3804:4;3818:13;3834:7;:19;3842:10;3834:19;;;;;;;;;;;;;;;:29;3854:8;3834:29;;;;;;;;;;;;;;;;3818:45;;3892:8;3873:16;:27;3869:164;;;3942:1;3910:7;:19;3918:10;3910:19;;;;;;;;;;;;;;;:29;3930:8;3910:29;;;;;;;;;;;;;;;:33;;;;3869:164;;;3996:30;4009:16;3996:8;:12;;:30;;;;:::i;:::-;3964:7;:19;3972:10;3964:19;;;;;;;;;;;;;;;:29;3984:8;3964:29;;;;;;;;;;;;;;;:62;;;;3869:164;4064:8;4043:61;;4052:10;4043:61;;;4074:7;:19;4082:10;4074:19;;;;;;;;;;;;;;;:29;4094:8;4074:29;;;;;;;;;;;;;;;;4043:61;;;;;;;;;;;;;;;;;;4117:4;4110:11;;3701:425;;;;;:::o;608:321:10:-;671:4;706:1;691:17;;:3;:17;;;;683:26;;;;;;;;733:8;:20;742:10;733:20;;;;;;;;;;;;;;;;723:6;:30;;715:39;;;;;;;;784:32;809:6;784:8;:20;793:10;784:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;761:8;:20;770:10;761:20;;;;;;;;;;;;;;;:55;;;;838:25;856:6;838:8;:13;847:3;838:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;822:8;:13;831:3;822:13;;;;;;;;;;;;;;;:41;;;;895:3;874:33;;883:10;874:33;;;900:6;874:33;;;;;;;;;;;;;;;;;;920:4;913:11;;608:321;;;;:::o;2946:293:15:-;3044:4;3098:46;3132:11;3098:7;:19;3106:10;3098:19;;;;;;;;;;;;;;;:29;3118:8;3098:29;;;;;;;;;;;;;;;;:33;;:46;;;;:::i;:::-;3058:7;:19;3066:10;3058:19;;;;;;;;;;;;;;;:29;3078:8;3058:29;;;;;;;;;;;;;;;:87;;;;3177:8;3156:61;;3165:10;3156:61;;;3187:7;:19;3195:10;3187:19;;;;;;;;;;;;;;;:29;3207:8;3187:29;;;;;;;;;;;;;;;;3156:61;;;;;;;;;;;;;;;;;;3230:4;3223:11;;2946:293;;;;:::o;1338:171:9:-;1429:1;1408:23;;:9;:23;;;;1400:32;;;;;;;;1471:9;1443:38;;1464:5;;;;;;;;;;;1443:38;;;;;;;;;;;;1495:9;1487:5;;:17;;;;;;;;;;;;;;;;;;1338:171;:::o;1042:110:6:-;1100:7;1127:1;1122;:6;;1115:14;;;;;;1146:1;1142;:5;1135:12;;1042:110;;;;:::o;1214:123::-;1272:9;1297:1;1293;:5;1289:9;;1316:1;1311;:6;;1304:14;;;;;;1331:1;1324:8;;1214:123;;;;:::o",source:"pragma solidity ^0.4.24;\n\nimport \"openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol\";\n\n/**\n* @title Cubik token contract\n* @author Richard Fu ([email protected])\n* @dev Complant with OpenZeppelin's implementation of the ERC20 spec.\n*\n* CUBIK Tokens are divisible by 1e18 (1,000,000,000,000,000,000) base\n* units referred to as 'Wei'.\n*\n* CUBIK are displayed using 18 decimal places of precision.\n*\n* 5 Billion CUBIK Token total supply (5 Octillion Wei):\n* 5,000,000,000 * 1e18 == 5e9 * 1e18 == 5e27\n*\n* All initial CUBIK Grains are assigned to the creator of\n* this contract.\n*/\n\ncontract Cubik is PausableToken, HasNoTokens {\n\n string public constant name = 'Cubik'; // Set the token name for display\n string public constant symbol = 'CUBIK'; // Set the token symbol for display\n uint8 public constant decimals = 18; // Set the number of decimals for display\n uint256 public constant INITIAL_SUPPLY = 5e9 * 10**uint256(decimals); // supply specified in Wei\n\n /**\n * @dev The Cubik constructor sets total supply and inialize balance to the sender.\n */\n constructor() public {\n totalSupply_ = INITIAL_SUPPLY; // Set the total supply\n balances[msg.sender] = INITIAL_SUPPLY; // Creator address is assigned all\n emit Transfer(address(0), msg.sender, INITIAL_SUPPLY);\n }\n\n}",sourcePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/Cubik.sol",ast:{absolutePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/Cubik.sol",exportedSymbols:{Cubik:[50]},id:51,nodeType:"SourceUnit",nodes:[{id:1,literals:["solidity","^","0.4",".24"],nodeType:"PragmaDirective",src:"0:24:0"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol",file:"openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol",id:2,nodeType:"ImportDirective",scope:51,sourceUnit:1022,src:"26:71:0",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",file:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",id:3,nodeType:"ImportDirective",scope:51,sourceUnit:663,src:"98:67:0",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:4,name:"PausableToken",nodeType:"UserDefinedTypeName",referencedDeclaration:1021,src:"683:13:0",typeDescriptions:{typeIdentifier:"t_contract$_PausableToken_$1021",typeString:"contract PausableToken"}},id:5,nodeType:"InheritanceSpecifier",src:"683:13:0"},{arguments:null,baseName:{contractScope:null,id:6,name:"HasNoTokens",nodeType:"UserDefinedTypeName",referencedDeclaration:662,src:"698:11:0",typeDescriptions:{typeIdentifier:"t_contract$_HasNoTokens_$662",typeString:"contract HasNoTokens"}},id:7,nodeType:"InheritanceSpecifier",src:"698:11:0"}],contractDependencies:[510,637,662,748,844,887,919,1021,1330],contractKind:"contract",documentation:"@title Cubik token contract\n@author Richard Fu ([email protected])\n@dev Complant with OpenZeppelin's implementation of the ERC20 spec.\n* CUBIK Tokens are divisible by 1e18 (1,000,000,000,000,000,000) base\nunits referred to as 'Wei'.\n* CUBIK are displayed using 18 decimal places of precision.\n* 5 Billion CUBIK Token total supply (5 Octillion Wei):\n5,000,000,000 * 1e18 == 5e9 * 1e18 == 5e27\n* All initial CUBIK Grains are assigned to the creator of\nthis contract.",fullyImplemented:!0,id:50,linearizedBaseContracts:[50,662,637,1021,510,748,1330,844,887,919],name:"Cubik",nodeType:"ContractDefinition",nodes:[{constant:!0,id:10,name:"name",nodeType:"VariableDeclaration",scope:50,src:"715:37:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory",typeString:"string"},typeName:{id:8,name:"string",nodeType:"ElementaryTypeName",src:"715:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:{argumentTypes:null,hexValue:"437562696b",id:9,isConstant:!1,isLValue:!1,isPure:!0,kind:"string",lValueRequested:!1,nodeType:"Literal",src:"745:7:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_stringliteral_f53c2f2fcb29f1c4a59bd71f827d5590ed3b9a21d7ac612c92264917fac9fe20",typeString:'literal_string "Cubik"'},value:"Cubik"},visibility:"public"},{constant:!0,id:13,name:"symbol",nodeType:"VariableDeclaration",scope:50,src:"821:39:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory",typeString:"string"},typeName:{id:11,name:"string",nodeType:"ElementaryTypeName",src:"821:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:{argumentTypes:null,hexValue:"435542494b",id:12,isConstant:!1,isLValue:!1,isPure:!0,kind:"string",lValueRequested:!1,nodeType:"Literal",src:"853:7:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_stringliteral_f2e612d65c73c566328ad5ec5b5e086d656a5e33ffcd718d0653dd1a226af71d",typeString:'literal_string "CUBIK"'},value:"CUBIK"},visibility:"public"},{constant:!0,id:16,name:"decimals",nodeType:"VariableDeclaration",scope:50,src:"929:35:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"},typeName:{id:14,name:"uint8",nodeType:"ElementaryTypeName",src:"929:5:0",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"}},value:{argumentTypes:null,hexValue:"3138",id:15,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"962:2:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_18_by_1",typeString:"int_const 18"},value:"18"},visibility:"public"},{constant:!0,id:25,name:"INITIAL_SUPPLY",nodeType:"VariableDeclaration",scope:50,src:"1043:68:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:17,name:"uint256",nodeType:"ElementaryTypeName",src:"1043:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:24,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,leftExpression:{argumentTypes:null,hexValue:"356539",id:18,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1084:3:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_5000000000_by_1",typeString:"int_const 5000000000"},value:"5e9"},nodeType:"BinaryOperation",operator:"*",rightExpression:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:23,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,leftExpression:{argumentTypes:null,hexValue:"3130",id:19,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1090:2:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_10_by_1",typeString:"int_const 10"},value:"10"},nodeType:"BinaryOperation",operator:"**",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:21,name:"decimals",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:16,src:"1102:8:0",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint8",typeString:"uint8"}],id:20,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"1094:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_uint256_$",typeString:"type(uint256)"},typeName:"uint256"},id:22,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1094:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1090:21:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1084:27:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},visibility:"public"},{body:{id:48,nodeType:"Block",src:"1262:267:0",statements:[{expression:{argumentTypes:null,id:30,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:28,name:"totalSupply_",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:763,src:"1268:12:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:29,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1283:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1268:29:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:31,nodeType:"ExpressionStatement",src:"1268:29:0"},{expression:{argumentTypes:null,id:37,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:32,name:"balances",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:761,src:"1364:8:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_address_$_t_uint256_$",typeString:"mapping(address => uint256)"}},id:35,indexExpression:{argumentTypes:null,expression:{argumentTypes:null,id:33,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1345,src:"1373:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:34,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"1373:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"1364:20:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:36,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,
src:"1387:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1364:37:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:38,nodeType:"ExpressionStatement",src:"1364:37:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:41,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1493:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:40,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"1485:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:42,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1485:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:43,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1345,src:"1497:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:44,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"1497:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:45,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1509:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:39,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:918,src:"1476:8:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:46,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1476:48:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:47,nodeType:"EmitStatement",src:"1471:53:0"}]},documentation:"@dev The Cubik constructor sets total supply and inialize balance to the sender.",id:49,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:26,nodeType:"ParameterList",parameters:[],src:"1252:2:0"},payable:!1,returnParameters:{id:27,nodeType:"ParameterList",parameters:[],src:"1262:0:0"},scope:50,src:"1241:288:0",stateMutability:"nonpayable",superFunction:null,visibility:"public"}],scope:51,src:"665:867:0"}],src:"0:1532:0"},legacyAST:{absolutePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/Cubik.sol",exportedSymbols:{Cubik:[50]},id:51,nodeType:"SourceUnit",nodes:[{id:1,literals:["solidity","^","0.4",".24"],nodeType:"PragmaDirective",src:"0:24:0"},{absolutePath:"openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol",file:"openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol",id:2,nodeType:"ImportDirective",scope:51,sourceUnit:1022,src:"26:71:0",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",file:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",id:3,nodeType:"ImportDirective",scope:51,sourceUnit:663,src:"98:67:0",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:4,name:"PausableToken",nodeType:"UserDefinedTypeName",referencedDeclaration:1021,src:"683:13:0",typeDescriptions:{typeIdentifier:"t_contract$_PausableToken_$1021",typeString:"contract PausableToken"}},id:5,nodeType:"InheritanceSpecifier",src:"683:13:0"},{arguments:null,baseName:{contractScope:null,id:6,name:"HasNoTokens",nodeType:"UserDefinedTypeName",referencedDeclaration:662,src:"698:11:0",typeDescriptions:{typeIdentifier:"t_contract$_HasNoTokens_$662",typeString:"contract HasNoTokens"}},id:7,nodeType:"InheritanceSpecifier",src:"698:11:0"}],contractDependencies:[510,637,662,748,844,887,919,1021,1330],contractKind:"contract",documentation:"@title Cubik token contract\n@author Richard Fu ([email protected])\n@dev Complant with OpenZeppelin's implementation of the ERC20 spec.\n* CUBIK Tokens are divisible by 1e18 (1,000,000,000,000,000,000) base\nunits referred to as 'Wei'.\n* CUBIK are displayed using 18 decimal places of precision.\n* 5 Billion CUBIK Token total supply (5 Octillion Wei):\n5,000,000,000 * 1e18 == 5e9 * 1e18 == 5e27\n* All initial CUBIK Grains are assigned to the creator of\nthis contract.",fullyImplemented:!0,id:50,linearizedBaseContracts:[50,662,637,1021,510,748,1330,844,887,919],name:"Cubik",nodeType:"ContractDefinition",nodes:[{constant:!0,id:10,name:"name",nodeType:"VariableDeclaration",scope:50,src:"715:37:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory",typeString:"string"},typeName:{id:8,name:"string",nodeType:"ElementaryTypeName",src:"715:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:{argumentTypes:null,hexValue:"437562696b",id:9,isConstant:!1,isLValue:!1,isPure:!0,kind:"string",lValueRequested:!1,nodeType:"Literal",src:"745:7:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_stringliteral_f53c2f2fcb29f1c4a59bd71f827d5590ed3b9a21d7ac612c92264917fac9fe20",typeString:'literal_string "Cubik"'},value:"Cubik"},visibility:"public"},{constant:!0,id:13,name:"symbol",nodeType:"VariableDeclaration",scope:50,src:"821:39:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_string_memory",typeString:"string"},typeName:{id:11,name:"string",nodeType:"ElementaryTypeName",src:"821:6:0",typeDescriptions:{typeIdentifier:"t_string_storage_ptr",typeString:"string"}},value:{argumentTypes:null,hexValue:"435542494b",id:12,isConstant:!1,isLValue:!1,isPure:!0,kind:"string",lValueRequested:!1,nodeType:"Literal",src:"853:7:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_stringliteral_f2e612d65c73c566328ad5ec5b5e086d656a5e33ffcd718d0653dd1a226af71d",typeString:'literal_string "CUBIK"'},value:"CUBIK"},visibility:"public"},{constant:!0,id:16,name:"decimals",nodeType:"VariableDeclaration",scope:50,src:"929:35:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"},typeName:{id:14,name:"uint8",nodeType:"ElementaryTypeName",src:"929:5:0",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"}},value:{argumentTypes:null,hexValue:"3138",id:15,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"962:2:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_18_by_1",typeString:"int_const 18"},value:"18"},visibility:"public"},{constant:!0,id:25,name:"INITIAL_SUPPLY",nodeType:"VariableDeclaration",scope:50,src:"1043:68:0",stateVariable:!0,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:17,name:"uint256",nodeType:"ElementaryTypeName",src:"1043:7:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:24,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,leftExpression:{argumentTypes:null,hexValue:"356539",id:18,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1084:3:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_5000000000_by_1",typeString:"int_const 5000000000"},value:"5e9"},nodeType:"BinaryOperation",operator:"*",rightExpression:{argumentTypes:null,commonType:{typeIdentifier:"t_uint256",typeString:"uint256"},id:23,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,leftExpression:{argumentTypes:null,hexValue:"3130",id:19,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1090:2:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_10_by_1",typeString:"int_const 10"},value:"10"},nodeType:"BinaryOperation",operator:"**",rightExpression:{argumentTypes:null,arguments:[{argumentTypes:null,id:21,name:"decimals",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:16,src:"1102:8:0",typeDescriptions:{typeIdentifier:"t_uint8",typeString:"uint8"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint8",typeString:"uint8"}],id:20,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"1094:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_uint256_$",typeString:"type(uint256)"},typeName:"uint256"},id:22,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1094:17:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1090:21:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1084:27:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},visibility:"public"},{body:{id:48,nodeType:"Block",src:"1262:267:0",statements:[{expression:{argumentTypes:null,id:30,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:28,name:"totalSupply_",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:763,src:"1268:12:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:29,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1283:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1268:29:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:31,nodeType:"ExpressionStatement",src:"1268:29:0"},{expression:{argumentTypes:null,id:37,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,baseExpression:{argumentTypes:null,id:32,name:"balances",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:761,src:"1364:8:0",typeDescriptions:{typeIdentifier:"t_mapping$_t_address_$_t_uint256_$",typeString:"mapping(address => uint256)"}},id:35,indexExpression:{argumentTypes:null,expression:{argumentTypes:null,id:33,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1345,src:"1373:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:34,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"1373:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},isConstant:!1,isLValue:!0,isPure:!1,lValueRequested:!0,nodeType:"IndexAccess",src:"1364:20:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:36,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1387:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1364:37:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:38,nodeType:"ExpressionStatement",src:"1364:37:0"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,arguments:[{argumentTypes:null,hexValue:"30",id:41,isConstant:!1,isLValue:!1,isPure:!0,kind:"number",lValueRequested:!1,nodeType:"Literal",src:"1493:1:0",subdenomination:null,typeDescriptions:{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"},value:"0"}],expression:{argumentTypes:[{typeIdentifier:"t_rational_0_by_1",typeString:"int_const 0"}],id:40,isConstant:!1,isLValue:!1,isPure:!0,lValueRequested:!1,nodeType:"ElementaryTypeNameExpression",src:"1485:7:0",typeDescriptions:{typeIdentifier:"t_type$_t_address_$",typeString:"type(address)"},typeName:"address"},id:42,isConstant:!1,isLValue:!1,isPure:!0,kind:"typeConversion",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1485:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,expression:{argumentTypes:null,id:43,name:"msg",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:1345,src:"1497:3:0",typeDescriptions:{typeIdentifier:"t_magic_message",typeString:"msg"}},id:44,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,memberName:"sender",nodeType:"MemberAccess",referencedDeclaration:null,src:"1497:10:0",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:45,name:"INITIAL_SUPPLY",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:25,src:"1509:14:0",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_address",typeString:"address"},{typeIdentifier:"t_uint256",typeString:"uint256"}],id:39,name:"Transfer",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:918,src:"1476:8:0",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",typeString:"function (address,address,uint256)"}},id:46,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1476:48:0",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:47,nodeType:"EmitStatement",src:"1471:53:0"}]},documentation:"@dev The Cubik constructor sets total supply and inialize balance to the sender.",id:49,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[],name:"",nodeType:"FunctionDefinition",parameters:{id:26,nodeType:"ParameterList",parameters:[],src:"1252:2:0"},payable:!1,returnParameters:{id:27,nodeType:"ParameterList",parameters:[],src:"1262:0:0"},scope:50,src:"1241:288:0",stateMutability:"nonpayable",superFunction:null,visibility:"public"}],scope:51,src:"665:867:0"}],src:"0:1532:0"},compiler:{name:"solc",version:"0.4.24+commit.e67f0147.Emscripten.clang"},networks:{4447:{events:{},links:{},address:"0x345ca3e014aaf5dca488057592ee47305d9b3e10",transactionHash:"0x64ed46c19c7a2cdf010cabee57ed48f8ce396ed5a099618128a5917285aa64c7"},1531356036227:{events:{},links:{},address:"0xe164def09eb7f0c09ddb7cd21d723b328e824e36",transactionHash:"0x529228e0ebc0dd2922267d18fc6f484f2734906ffd4a65467f4883ca662fb80f"}},schemaVersion:"2.0.1",updatedAt:"2018-07-18T08:11:44.591Z"}},{}],2:[function(e,t,f){t.exports={contractName:"CubikCrowdsale",abi:[{constant:!1,inputs:[{name:"token",type:"address"}],name:"reclaimToken",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"rate",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"cap",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"weiRaised",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"capReached",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"wallet",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"remainingTokens",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"tokenWallet",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"from_",type:"address"},{name:"value_",type:"uint256"},{name:"data_",type:"bytes"}],name:"tokenFallback",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_beneficiary",type:"address"}],name:"buyTokens",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"_newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"_rate",type:"uint256"},{name:"_wallet",type:"address"},{name:"_token",type:"address"},{name:"_cap",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"RateChange",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"}],name:"OwnershipRenounced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"purchaser",type:"address"},{indexed:!0,name:"beneficiary",type:"address"},{indexed:!1,name:"value",type:"uint256"},{indexed:!1,name:"amount",type:"uint256"}],name:"TokenPurchase",type:"event"},{constant:!1,inputs:[{name:"_rate",type:"uint256"}],name:"setRate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],bytecode:"0x608060405234801561001057600080fd5b5060405160808061122983398101806040528101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050828185858560008311151561006557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156100a157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156100dd57600080fd5b8260028190555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505060008111151561017757600080fd5b8060048190555050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156101bb57600080fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050610fd8806102516000396000f3006080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806317ffc320146100e65780632c4e722e1461012957806334fcf43714610154578063355274ea146101815780634042b66f146101ac5780634f935945146101d7578063521eb27314610206578063715018a61461025d5780638da5cb5b14610274578063bf583903146102cb578063bff99c6c146102f6578063c0ee0b8a1461034d578063ec8ac4d8146103b2578063f2fde38b146103e8578063fc0c546a1461042b575b6100e433610482565b005b3480156100f257600080fd5b50610127600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610550565b005b34801561013557600080fd5b5061013e6106d7565b6040518082815260200191505060405180910390f35b34801561016057600080fd5b5061017f600480360381019080803590602001909291905050506106dd565b005b34801561018d57600080fd5b5061019661077a565b6040518082815260200191505060405180910390f35b3480156101b857600080fd5b506101c1610780565b6040518082815260200191505060405180910390f35b3480156101e357600080fd5b506101ec610786565b604051808215151515815260200191505060405180910390f35b34801561021257600080fd5b5061021b610795565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026957600080fd5b506102726107bb565b005b34801561028057600080fd5b506102896108c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102d757600080fd5b506102e06108e6565b6040518082815260200191505060405180910390f35b34801561030257600080fd5b5061030b610a3a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035957600080fd5b506103b0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610a60565b005b6103e6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610482565b005b3480156103f457600080fd5b50610429600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a65565b005b34801561043757600080fd5b50610440610acd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000803491506104928383610af2565b61049b82610b25565b90506104b282600354610b4390919063ffffffff16565b6003819055506104c28382610b5f565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36105398383610b6d565b610541610b71565b61054b8383610bdc565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105ae57600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b505050506040513d602081101561067357600080fd5b810190808051906020019092919050505090506106d3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610be09092919063ffffffff16565b5050565b60025481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561073957600080fd5b806002819055507f0b6eb270e68ec2b65cffce354325dcd6cb2449e0e8fec1184cd58da0c7b0344b816040518082815260200191505060405180910390a150565b60045481565b60035481565b60006004546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561081757600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b8101908080519060200190929190505050905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ac157600080fd5b610aca81610cce565b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610afc8282610dca565b600454610b1482600354610b4390919063ffffffff16565b11151515610b2157600080fd5b5050565b6000610b3c60025483610e1a90919063ffffffff16565b9050919050565b60008183019050828110151515610b5657fe5b80905092915050565b610b698282610e52565b5050565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610bd9573d6000803e3d6000fd5b50565b5050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c8357600080fd5b505af1158015610c97573d6000803e3d6000fd5b505050506040513d6020811015610cad57600080fd5b81019080805190602001909291905050501515610cc957600080fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0a57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610e0657600080fd5b60008114151515610e1657600080fd5b5050565b600080831415610e2d5760009050610e4c565b8183029050818382811515610e3e57fe5b04141515610e4857fe5b8090505b92915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610f6c57600080fd5b505af1158015610f80573d6000803e3d6000fd5b505050506040513d6020811015610f9657600080fd5b81019080805190602001909291905050505050505600a165627a7a723058206d378b738c4e84e4e20112dd2c0201fd1327197c46ca5c998a641069a2187d7c0029",
deployedBytecode:"0x6080604052600436106100db576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806317ffc320146100e65780632c4e722e1461012957806334fcf43714610154578063355274ea146101815780634042b66f146101ac5780634f935945146101d7578063521eb27314610206578063715018a61461025d5780638da5cb5b14610274578063bf583903146102cb578063bff99c6c146102f6578063c0ee0b8a1461034d578063ec8ac4d8146103b2578063f2fde38b146103e8578063fc0c546a1461042b575b6100e433610482565b005b3480156100f257600080fd5b50610127600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610550565b005b34801561013557600080fd5b5061013e6106d7565b6040518082815260200191505060405180910390f35b34801561016057600080fd5b5061017f600480360381019080803590602001909291905050506106dd565b005b34801561018d57600080fd5b5061019661077a565b6040518082815260200191505060405180910390f35b3480156101b857600080fd5b506101c1610780565b6040518082815260200191505060405180910390f35b3480156101e357600080fd5b506101ec610786565b604051808215151515815260200191505060405180910390f35b34801561021257600080fd5b5061021b610795565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561026957600080fd5b506102726107bb565b005b34801561028057600080fd5b506102896108c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102d757600080fd5b506102e06108e6565b6040518082815260200191505060405180910390f35b34801561030257600080fd5b5061030b610a3a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035957600080fd5b506103b0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610a60565b005b6103e6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610482565b005b3480156103f457600080fd5b50610429600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a65565b005b34801561043757600080fd5b50610440610acd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000803491506104928383610af2565b61049b82610b25565b90506104b282600354610b4390919063ffffffff16565b6003819055506104c28382610b5f565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36105398383610b6d565b610541610b71565b61054b8383610bdc565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105ae57600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b505050506040513d602081101561067357600080fd5b810190808051906020019092919050505090506106d3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610be09092919063ffffffff16565b5050565b60025481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561073957600080fd5b806002819055507f0b6eb270e68ec2b65cffce354325dcd6cb2449e0e8fec1184cd58da0c7b0344b816040518082815260200191505060405180910390a150565b60045481565b60035481565b60006004546003541015905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561081757600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b8101908080519060200190929190505050905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ac157600080fd5b610aca81610cce565b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610afc8282610dca565b600454610b1482600354610b4390919063ffffffff16565b11151515610b2157600080fd5b5050565b6000610b3c60025483610e1a90919063ffffffff16565b9050919050565b60008183019050828110151515610b5657fe5b80905092915050565b610b698282610e52565b5050565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610bd9573d6000803e3d6000fd5b50565b5050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610c8357600080fd5b505af1158015610c97573d6000803e3d6000fd5b505050506040513d6020811015610cad57600080fd5b81019080805190602001909291905050501515610cc957600080fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0a57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610e0657600080fd5b60008114151515610e1657600080fd5b5050565b600080831415610e2d5760009050610e4c565b8183029050818382811515610e3e57fe5b04141515610e4857fe5b8090505b92915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610f6c57600080fd5b505af1158015610f80573d6000803e3d6000fd5b505050506040513d6020811015610f9657600080fd5b81019080805190602001909291905050505050505600a165627a7a723058206d378b738c4e84e4e20112dd2c0201fd1327197c46ca5c998a641069a2187d7c0029",sourceMap:"422:827:1:-;;;842:169;8:9:-1;5:2;;;30:1;27;20:12;5:2;842:169:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;997:7;972:4;932:5;939:7;948:6;1952:1:2;1944:5;:9;1936:18;;;;;;;;1987:1;1968:21;;:7;:21;;;;1960:30;;;;;;;;2022:1;2004:20;;:6;:20;;;;1996:29;;;;;;;;2039:5;2032:4;:12;;;;2059:7;2050:6;;:16;;;;;;;;;;;;;;;;;;2080:6;2072:5;;:14;;;;;;;;;;;;;;;;;;1865:226;;;472:1:4;465:4;:8;457:17;;;;;;;;486:4;480:3;:10;;;;418:77;624:1:3;600:26;;:12;:26;;;;592:35;;;;;;;;647:12;633:11;;:26;;;;;;;;;;;;;;;;;;545:119;575:10:9;567:5;;:18;;;;;;;;;;;;;;;;;;842:169:1;;;;422:827;;;;;;",deployedSourceMap:"422:827:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2321:21:2;2331:10;2321:9;:21::i;:::-;422:827:1;598:149:7;;8:9:-1;5:2;;;30:1;27;20:12;5:2;598:149:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;1234:19:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1234:19:2;;;;;;;;;;;;;;;;;;;;;;;1143:102:1;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1143:102:1;;;;;;;;;;;;;;;;;;;;;;;;;;252:18:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;252:18:4;;;;;;;;;;;;;;;;;;;;;;;1284:24:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1284:24:2;;;;;;;;;;;;;;;;;;;;;;;603:83:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;603:83:4;;;;;;;;;;;;;;;;;;;;;;;;;;;932:21:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;932:21:2;;;;;;;;;;;;;;;;;;;;;;;;;;;827:111:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;827:111:9;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:9;;;;;;;;;;;;;;;;;;;;;;;;;;;793:109:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;793:109:3;;;;;;;;;;;;;;;;;;;;;;;352:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;352:26:3;;;;;;;;;;;;;;;;;;;;;;;;;;;637:129:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;637:129:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2483:577:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1100:103:9;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1100:103:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;870:18:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;870:18:2;;;;;;;;;;;;;;;;;;;;;;;;;;;2483:577;2546:17;2677:14;2566:9;2546:29;;2581:45;2602:12;2616:9;2581:20;:45::i;:::-;2694:26;2710:9;2694:15;:26::i;:::-;2677:43;;2759:24;2773:9;2759;;:13;;:24;;;;:::i;:::-;2747:9;:36;;;;2790:38;2807:12;2821:6;2790:16;:38::i;:::-;2878:12;2839:88;;2860:10;2839:88;;;2898:9;2915:6;2839:88;;;;;;;;;;;;;;;;;;;;;;;;2934:47;2957:12;2971:9;2934:22;:47::i;:::-;2988:15;:13;:15::i;:::-;3009:46;3031:12;3045:9;3009:21;:46::i;:::-;2483:577;;;:::o;598:149:7:-;663:15;719:5:9;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;681:5:7;:15;;;697:4;681:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;681:21:7;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;681:21:7;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;681:21:7;;;;;;;;;;;;;;;;663:39;;708:34;727:5;;;;;;;;;;;734:7;708:5;:18;;;;:34;;;;;:::i;:::-;598:149;;:::o;1234:19:2:-;;;;:::o;1143:102:1:-;719:5:9;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;1207:5:1;1200:4;:12;;;;1223:17;1234:5;1223:17;;;;;;;;;;;;;;;;;;1143:102;:::o;252:18:4:-;;;;:::o;1284:24:2:-;;;;:::o;603:83:4:-;646:4;678:3;;665:9;;:16;;658:23;;603:83;:::o;932:21:2:-;;;;;;;;;;;;;:::o;827:111:9:-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;903:5;;;;;;;;;;;884:25;;;;;;;;;;;;931:1;915:5;;:18;;;;;;;;;;;;;;;;;;827:111::o;238:20::-;;;;;;;;;;;;;:::o;793:109:3:-;841:7;863:5;;;;;;;;;;;:15;;;879:11;;;;;;;;;;;892:4;863:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;863:34:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;863:34:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;863:34:3;;;;;;;;;;;;;;;;856:41;;793:109;:::o;352:26::-;;;;;;;;;;;;;:::o;637:129:8:-;753:8;;;1100:103:9;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;1169:29;1188:9;1169:18;:29::i;:::-;1100:103;:::o;870:18:2:-;;;;;;;;;;;;;:::o;872:209:4:-;977:52;1004:12;1018:10;977:26;:52::i;:::-;1072:3;;1043:25;1057:10;1043:9;;:13;;:25;;;;:::i;:::-;:32;;1035:41;;;;;;;;872:209;;:::o;5497:121:2:-;5569:7;5593:20;5608:4;;5593:10;:14;;:20;;;;:::i;:::-;5586:27;;5497:121;;;:::o;1214:123:6:-;1272:9;1297:1;1293;:5;1289:9;;1316:1;1311;:6;;1304:14;;;;;;1331:1;1324:8;;1214:123;;;;:::o;4725:150:2:-;4828:42;4843:12;4857;4828:14;:42::i;:::-;4725:150;;:::o;5128:131::-;;;:::o;5697:71::-;5737:6;;;;;;;;;;;:15;;:26;5753:9;5737:26;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5737:26:2;5697:71::o;3937:130::-;;;:::o;368:121:14:-;458:5;:14;;;473:2;477:5;458:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;458:25:14;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;458:25:14;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;458:25:14;;;;;;;;;;;;;;;;450:34;;;;;;;;368:121;;;:::o;1338:171:9:-;1429:1;1408:23;;:9;:23;;;;1400:32;;;;;;;;1471:9;1443:38;;1464:5;;;;;;;;;;;1443:38;;;;;;;;;;;;1495:9;1487:5;;:17;;;;;;;;;;;;;;;;;;1338:171;:::o;3484:175:2:-;3621:1;3597:26;;:12;:26;;;;3589:35;;;;;;;;3652:1;3638:10;:15;;3630:24;;;;;;;;3484:175;;:::o;203:373:6:-;261:9;492:1;487;:6;483:35;;;510:1;503:8;;;;483:35;532:1;528;:5;524:9;;555:1;550;546;:5;;;;;;;;:10;539:18;;;;;;570:1;563:8;;203:373;;;;;:::o;1083:165:3:-;1184:5;;;;;;;;;;;:18;;;1203:11;;;;;;;;;;;1216:12;1230;1184:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1184:59:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1184:59:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1184:59:3;;;;;;;;;;;;;;;;;1083:165;;:::o",source:"pragma solidity ^0.4.24;\n\nimport 'openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol';\nimport 'openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol';\nimport \"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol\";\n\n/**\n* @title Cubik crowdsale contract\n* @author Richard Fu ([email protected])\n* @dev Complant with OpenZeppelin's imlementation of the crowdsale spec.\n*/\ncontract CubikCrowdsale is CappedCrowdsale, AllowanceCrowdsale, HasNoTokens {\n\n event RateChange(uint256 amount);\n\n /** \n * @dev The Cubik crowdsale constructor sets rate, CUBIK owner wallet, CUBIK contract and cap.\n * @param _rate Coverting rate, x CUBIK per ETH\n * @param _wallet CUBIK owner wallet address\n * @param _token CUBIK contract address\n * @param _cap Max amount of wei to be contributed\n */\n constructor (uint256 _rate, address _wallet, ERC20 _token, uint256 _cap) public Crowdsale(_rate, _wallet, _token) CappedCrowdsale(_cap) AllowanceCrowdsale(_wallet) {\n }\n \n /** \n * @dev Set the converting rate of the crowdsale, owner only\n * @param _rate Coverting rate, ? CUBIK per ETH\n */\n function setRate(uint256 _rate) external onlyOwner {\n rate = _rate;\n emit RateChange(_rate);\n }\n\t\n}",sourcePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/CubikCrowdsale.sol",ast:{absolutePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/CubikCrowdsale.sol",exportedSymbols:{CubikCrowdsale:[105]},id:106,nodeType:"SourceUnit",nodes:[{id:52,literals:["solidity","^","0.4",".24"],nodeType:"PragmaDirective",src:"0:24:1"},{absolutePath:"openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol",file:"openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol",id:53,nodeType:"ImportDirective",scope:106,sourceUnit:389,src:"26:83:1",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol",file:"openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol",id:54,nodeType:"ImportDirective",scope:106,sourceUnit:451,src:"110:82:1",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",file:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",id:55,nodeType:"ImportDirective",scope:106,sourceUnit:663,src:"193:67:1",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:56,name:"CappedCrowdsale",nodeType:"UserDefinedTypeName",referencedDeclaration:450,src:"449:15:1",typeDescriptions:{typeIdentifier:"t_contract$_CappedCrowdsale_$450",typeString:"contract CappedCrowdsale"}},id:57,nodeType:"InheritanceSpecifier",src:"449:15:1"},{arguments:null,baseName:{contractScope:null,id:58,name:"AllowanceCrowdsale",nodeType:"UserDefinedTypeName",referencedDeclaration:388,src:"466:18:1",typeDescriptions:{typeIdentifier:"t_contract$_AllowanceCrowdsale_$388",typeString:"contract AllowanceCrowdsale"}},id:59,nodeType:"InheritanceSpecifier",src:"466:18:1"},{arguments:null,baseName:{contractScope:null,id:60,name:"HasNoTokens",nodeType:"UserDefinedTypeName",referencedDeclaration:662,src:"486:11:1",typeDescriptions:{typeIdentifier:"t_contract$_HasNoTokens_$662",typeString:"contract HasNoTokens"}},id:61,nodeType:"InheritanceSpecifier",src:"486:11:1"}],contractDependencies:[329,388,450,637,662,748],contractKind:"contract",documentation:"@title Cubik crowdsale contract\n@author Richard Fu ([email protected])\n@dev Complant with OpenZeppelin's imlementation of the crowdsale spec.",fullyImplemented:!0,id:105,linearizedBaseContracts:[105,662,637,748,388,450,329],name:"CubikCrowdsale",nodeType:"ContractDefinition",nodes:[{anonymous:!1,documentation:null,id:65,name:"RateChange",nodeType:"EventDefinition",parameters:{id:64,nodeType:"ParameterList",parameters:[{constant:!1,id:63,indexed:!1,name:"amount",nodeType:"VariableDeclaration",scope:65,src:"520:14:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:62,name:"uint256",nodeType:"ElementaryTypeName",src:"520:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"519:16:1"},src:"503:33:1"},{body:{id:87,nodeType:"Block",src:"1006:5:1",statements:[]},documentation:"@dev The Cubik crowdsale constructor sets rate, CUBIK owner wallet, CUBIK contract and cap.\n@param _rate Coverting rate, x CUBIK per ETH\n@param _wallet CUBIK owner wallet address\n@param _token CUBIK contract address\n@param _cap Max amount of wei to be contributed",id:88,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:76,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:67,src:"932:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,id:77,name:"_wallet",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"939:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:78,name:"_token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"948:6:1",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"}}],id:79,modifierName:{argumentTypes:null,id:75,name:"Crowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:329,src:"922:9:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Crowdsale_$329_$",typeString:"type(contract Crowdsale)"}},nodeType:"ModifierInvocation",src:"922:33:1"},{arguments:[{argumentTypes:null,id:81,name:"_cap",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"972:4:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:82,modifierName:{argumentTypes:null,id:80,name:"CappedCrowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:450,src:"956:15:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_CappedCrowdsale_$450_$",typeString:"type(contract CappedCrowdsale)"}},nodeType:"ModifierInvocation",src:"956:21:1"},{arguments:[{argumentTypes:null,id:84,name:"_wallet",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"997:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],id:85,modifierName:{argumentTypes:null,id:83,name:"AllowanceCrowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:388,src:"978:18:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_AllowanceCrowdsale_$388_$",typeString:"type(contract AllowanceCrowdsale)"}},nodeType:"ModifierInvocation",src:"978:27:1"}],name:"",nodeType:"FunctionDefinition",parameters:{id:74,nodeType:"ParameterList",parameters:[{constant:!1,id:67,name:"_rate",nodeType:"VariableDeclaration",scope:88,src:"855:13:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:66,name:"uint256",nodeType:"ElementaryTypeName",src:"855:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:69,name:"_wallet",nodeType:"VariableDeclaration",scope:88,src:"870:15:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:68,name:"address",nodeType:"ElementaryTypeName",src:"870:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:71,name:"_token",nodeType:"VariableDeclaration",scope:88,src:"887:12:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"},typeName:{contractScope:null,id:70,name:"ERC20",nodeType:"UserDefinedTypeName",referencedDeclaration:887,src:"887:5:1",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"}},value:null,visibility:"internal"},{constant:!1,id:73,name:"_cap",nodeType:"VariableDeclaration",scope:88,src:"901:12:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:72,name:"uint256",nodeType:"ElementaryTypeName",src:"901:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"854:60:1"},payable:!1,returnParameters:{id:86,nodeType:"ParameterList",parameters:[],src:"1006:0:1"},scope:105,src:"842:169:1",stateMutability:"nonpayable",superFunction:null,visibility:"public"},{body:{id:103,nodeType:"Block",src:"1194:51:1",statements:[{expression:{argumentTypes:null,id:97,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:95,name:"rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:118,src:"1200:4:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:96,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:90,src:"1207:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1200:12:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:98,nodeType:"ExpressionStatement",src:"1200:12:1"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:100,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:90,src:"1234:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:99,name:"RateChange",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:65,src:"1223:10:1",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:101,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1223:17:1",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:102,nodeType:"EmitStatement",src:"1218:22:1"}]},documentation:"@dev Set the converting rate of the crowdsale, owner only\n@param _rate Coverting rate, ? CUBIK per ETH",id:104,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:93,modifierName:{argumentTypes:null,id:92,name:"onlyOwner",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:696,src:"1184:9:1",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"1184:9:1"}],name:"setRate",nodeType:"FunctionDefinition",parameters:{id:91,nodeType:"ParameterList",parameters:[{constant:!1,id:90,name:"_rate",nodeType:"VariableDeclaration",scope:104,src:"1160:13:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:89,name:"uint256",nodeType:"ElementaryTypeName",src:"1160:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"1159:15:1"},payable:!1,returnParameters:{id:94,nodeType:"ParameterList",parameters:[],src:"1194:0:1"},scope:105,src:"1143:102:1",stateMutability:"nonpayable",superFunction:null,visibility:"external"}],scope:106,src:"422:827:1"}],src:"0:1249:1"},legacyAST:{absolutePath:"/Users/fur/Projects/Block42/cubik-contracts/contracts/CubikCrowdsale.sol",exportedSymbols:{CubikCrowdsale:[105]},id:106,nodeType:"SourceUnit",nodes:[{id:52,literals:["solidity","^","0.4",".24"],nodeType:"PragmaDirective",src:"0:24:1"},{absolutePath:"openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol",file:"openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol",id:53,nodeType:"ImportDirective",scope:106,sourceUnit:389,src:"26:83:1",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol",file:"openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol",id:54,nodeType:"ImportDirective",scope:106,sourceUnit:451,src:"110:82:1",symbolAliases:[],unitAlias:""},{absolutePath:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",file:"openzeppelin-solidity/contracts/ownership/HasNoTokens.sol",id:55,nodeType:"ImportDirective",scope:106,sourceUnit:663,src:"193:67:1",symbolAliases:[],unitAlias:""},{baseContracts:[{arguments:null,baseName:{contractScope:null,id:56,name:"CappedCrowdsale",nodeType:"UserDefinedTypeName",referencedDeclaration:450,src:"449:15:1",typeDescriptions:{typeIdentifier:"t_contract$_CappedCrowdsale_$450",typeString:"contract CappedCrowdsale"}},id:57,nodeType:"InheritanceSpecifier",src:"449:15:1"},{arguments:null,baseName:{contractScope:null,id:58,name:"AllowanceCrowdsale",nodeType:"UserDefinedTypeName",referencedDeclaration:388,src:"466:18:1",typeDescriptions:{typeIdentifier:"t_contract$_AllowanceCrowdsale_$388",typeString:"contract AllowanceCrowdsale"}},id:59,nodeType:"InheritanceSpecifier",src:"466:18:1"},{arguments:null,baseName:{contractScope:null,id:60,name:"HasNoTokens",nodeType:"UserDefinedTypeName",referencedDeclaration:662,src:"486:11:1",typeDescriptions:{typeIdentifier:"t_contract$_HasNoTokens_$662",typeString:"contract HasNoTokens"}},id:61,nodeType:"InheritanceSpecifier",src:"486:11:1"}],contractDependencies:[329,388,450,637,662,748],contractKind:"contract",documentation:"@title Cubik crowdsale contract\n@author Richard Fu ([email protected])\n@dev Complant with OpenZeppelin's imlementation of the crowdsale spec.",fullyImplemented:!0,id:105,linearizedBaseContracts:[105,662,637,748,388,450,329],name:"CubikCrowdsale",nodeType:"ContractDefinition",nodes:[{anonymous:!1,documentation:null,id:65,name:"RateChange",nodeType:"EventDefinition",parameters:{id:64,nodeType:"ParameterList",parameters:[{constant:!1,id:63,indexed:!1,name:"amount",nodeType:"VariableDeclaration",scope:65,src:"520:14:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:62,name:"uint256",nodeType:"ElementaryTypeName",src:"520:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"519:16:1"},src:"503:33:1"},{body:{id:87,nodeType:"Block",src:"1006:5:1",statements:[]},documentation:"@dev The Cubik crowdsale constructor sets rate, CUBIK owner wallet, CUBIK contract and cap.\n@param _rate Coverting rate, x CUBIK per ETH\n@param _wallet CUBIK owner wallet address\n@param _token CUBIK contract address\n@param _cap Max amount of wei to be contributed",id:88,implemented:!0,isConstructor:!0,isDeclaredConst:!1,modifiers:[{arguments:[{argumentTypes:null,id:76,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:67,src:"932:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},{argumentTypes:null,id:77,name:"_wallet",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"939:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},{argumentTypes:null,id:78,name:"_token",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:71,src:"948:6:1",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"}}],id:79,modifierName:{argumentTypes:null,id:75,name:"Crowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:329,src:"922:9:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_Crowdsale_$329_$",typeString:"type(contract Crowdsale)"}},nodeType:"ModifierInvocation",src:"922:33:1"},{arguments:[{argumentTypes:null,id:81,name:"_cap",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:73,src:"972:4:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],id:82,modifierName:{argumentTypes:null,id:80,name:"CappedCrowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:450,src:"956:15:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_CappedCrowdsale_$450_$",typeString:"type(contract CappedCrowdsale)"}},nodeType:"ModifierInvocation",src:"956:21:1"},{arguments:[{argumentTypes:null,id:84,name:"_wallet",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:69,src:"997:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}}],id:85,modifierName:{argumentTypes:null,id:83,name:"AllowanceCrowdsale",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:388,src:"978:18:1",typeDescriptions:{typeIdentifier:"t_type$_t_contract$_AllowanceCrowdsale_$388_$",typeString:"type(contract AllowanceCrowdsale)"}},nodeType:"ModifierInvocation",src:"978:27:1"}],name:"",nodeType:"FunctionDefinition",parameters:{id:74,nodeType:"ParameterList",parameters:[{constant:!1,id:67,name:"_rate",nodeType:"VariableDeclaration",scope:88,src:"855:13:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:66,name:"uint256",nodeType:"ElementaryTypeName",src:"855:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"},{constant:!1,id:69,name:"_wallet",nodeType:"VariableDeclaration",scope:88,src:"870:15:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"},typeName:{id:68,name:"address",nodeType:"ElementaryTypeName",src:"870:7:1",typeDescriptions:{typeIdentifier:"t_address",typeString:"address"}},value:null,visibility:"internal"},{constant:!1,id:71,name:"_token",nodeType:"VariableDeclaration",scope:88,src:"887:12:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"},typeName:{contractScope:null,id:70,name:"ERC20",nodeType:"UserDefinedTypeName",referencedDeclaration:887,src:"887:5:1",typeDescriptions:{typeIdentifier:"t_contract$_ERC20_$887",typeString:"contract ERC20"}},value:null,visibility:"internal"},{constant:!1,id:73,name:"_cap",nodeType:"VariableDeclaration",scope:88,src:"901:12:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:72,name:"uint256",nodeType:"ElementaryTypeName",src:"901:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"854:60:1"},payable:!1,returnParameters:{id:86,nodeType:"ParameterList",parameters:[],src:"1006:0:1"},scope:105,src:"842:169:1",stateMutability:"nonpayable",superFunction:null,visibility:"public"},{body:{id:103,nodeType:"Block",
src:"1194:51:1",statements:[{expression:{argumentTypes:null,id:97,isConstant:!1,isLValue:!1,isPure:!1,lValueRequested:!1,leftHandSide:{argumentTypes:null,id:95,name:"rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:118,src:"1200:4:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},nodeType:"Assignment",operator:"=",rightHandSide:{argumentTypes:null,id:96,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:90,src:"1207:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},src:"1200:12:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},id:98,nodeType:"ExpressionStatement",src:"1200:12:1"},{eventCall:{argumentTypes:null,arguments:[{argumentTypes:null,id:100,name:"_rate",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:90,src:"1234:5:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}}],expression:{argumentTypes:[{typeIdentifier:"t_uint256",typeString:"uint256"}],id:99,name:"RateChange",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:65,src:"1223:10:1",typeDescriptions:{typeIdentifier:"t_function_event_nonpayable$_t_uint256_$returns$__$",typeString:"function (uint256)"}},id:101,isConstant:!1,isLValue:!1,isPure:!1,kind:"functionCall",lValueRequested:!1,names:[],nodeType:"FunctionCall",src:"1223:17:1",typeDescriptions:{typeIdentifier:"t_tuple$__$",typeString:"tuple()"}},id:102,nodeType:"EmitStatement",src:"1218:22:1"}]},documentation:"@dev Set the converting rate of the crowdsale, owner only\n@param _rate Coverting rate, ? CUBIK per ETH",id:104,implemented:!0,isConstructor:!1,isDeclaredConst:!1,modifiers:[{arguments:null,id:93,modifierName:{argumentTypes:null,id:92,name:"onlyOwner",nodeType:"Identifier",overloadedDeclarations:[],referencedDeclaration:696,src:"1184:9:1",typeDescriptions:{typeIdentifier:"t_modifier$__$",typeString:"modifier ()"}},nodeType:"ModifierInvocation",src:"1184:9:1"}],name:"setRate",nodeType:"FunctionDefinition",parameters:{id:91,nodeType:"ParameterList",parameters:[{constant:!1,id:90,name:"_rate",nodeType:"VariableDeclaration",scope:104,src:"1160:13:1",stateVariable:!1,storageLocation:"default",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"},typeName:{id:89,name:"uint256",nodeType:"ElementaryTypeName",src:"1160:7:1",typeDescriptions:{typeIdentifier:"t_uint256",typeString:"uint256"}},value:null,visibility:"internal"}],src:"1159:15:1"},payable:!1,returnParameters:{id:94,nodeType:"ParameterList",parameters:[],src:"1194:0:1"},scope:105,src:"1143:102:1",stateMutability:"nonpayable",superFunction:null,visibility:"external"}],scope:106,src:"422:827:1"}],src:"0:1249:1"},compiler:{name:"solc",version:"0.4.24+commit.e67f0147.Emscripten.clang"},networks:{4447:{events:{},links:{},address:"0xf25186b5081ff5ce73482ad761db0eb0d25abfbf",transactionHash:"0x4f958890f9ca6a481f11c7fc79eafabea13db89554aa3f6f2d57c46dabd5d396"},1531356036227:{events:{},links:{},address:"0xbb5bc03c7600d5e886ad4f6914f810eb324b4640",transactionHash:"0xe2e52c42e8566b46fc69463f1c2e334f28761706f26be39c523f4349becc6727"}},schemaVersion:"2.0.1",updatedAt:"2018-07-18T08:11:44.593Z"}},{}],3:[function(e,t,f){function r(){b.eth.net.getId().then(function(e){p=e,3===p?(w=S,_=M,$("#testnet-warning").show().html("This is a Ropsten <b>Testnet</b> Transaction Only. Change to mainnet for valid contribution.")):1!==p&&$("#testnet-warning").show().html("You're not connected! Open MetaMask and make sure you are on the Main Ethereum Network."),$("#token-address").html(c(w)),$("#crowdsale-address").html(u(_)),m=new b.eth.Contract(l,w),y=new b.eth.Contract(v,_),setInterval(n,3e3),$("#test").click(function(){m.methods.approve("0x382b3d898ccfa4ae5cb7375491bb771107e21b61",1).send({from:k}).then(function(e){console.log(e)})})})}function n(){b.eth.getAccounts().then(function(e){k=e[0],i()})}function i(){void 0===k?a(!0):(a(!1),o())}function o(){$("#address").text(k),b.eth.getBalance(k).then(function(e){var t=b.utils.fromWei(e,"ether");$("#eth-amount").text(t)}),m.methods.balanceOf(k).call().then(function(e){$("#token-amount").text(b.utils.fromWei(e,"ether"))})}function a(e){$("#no-metamask").toggle(e),$("#account-detail").toggle(!e),$("#buy-button").prop("disabled",e)}function s(e){return d("tx",e)}function c(e){return d("token",e)}function u(e){return d("address",e)}function d(e,t){return"<a href='https://"+(3===p?"ropsten.etherscan.io":"etherscan.io")+"/"+e+"/"+t+"' target='_blank'>"+t+"</a>"}var h=e("./js/Cubik.json"),l=h.abi;h=e("./js/CubikCrowdsale.json");var p,b,m,y,v=h.abi,g=e("web3"),w="0x9a62d3825e07342568a34aa31aad38bb04250806",_="0xea9Be48045942fFB578e1E295e5401e86CBA8e8c",S="0xb4fddd37602b03fa086c42bfa7b9739be38682c3",M="0x382b3d898ccfa4ae5cb7375491bb771107e21b61",k=!1;window.addEventListener("load",function(){"undefined"!=typeof web3?(b=new g(web3.currentProvider),r()):a(!0)}),$("#buy-amount").change(function(){var e=(2e-4*this.value).toFixed(4);e=parseFloat(e),$("#total-eth").show().text(e+" ETH")}),$("#buy-amount").keyup(function(){var e=(2e-4*this.value).toFixed(4);e=parseFloat(e),$("#total-eth").show().text(e+" ETH")}),$("#buy-button").click(function(e){e.preventDefault(),$("#transaction-status").show().text("Transaction submitted, please confirm in MetaMask.");var t=parseInt($("#buy-amount").val())/5e3;b.eth.sendTransaction({from:k,value:b.utils.toWei(t.toFixed(4),"ether"),to:_}).once("transactionHash",function(e){$("#transaction-status").html("Your contribution is being processed... <br />Transaction Hash: "+s(e))}).once("receipt",function(e){$("#transaction-status").html("Congrates! Your contribution has been processed and you received new CUBIKs!")}).on("error",function(e){$("#transaction-status").html("There was an error processing your contribution.<br />"+String(e))})})},{"./js/Cubik.json":1,"./js/CubikCrowdsale.json":2,web3:216}],4:[function(e,t,f){t.exports=e("./register")().Promise},{"./register":6}],5:[function(e,t,f){"use strict";var r=null;t.exports=function(e,t){return function(f,n){f=f||null,n=n||{};var i=!1!==n.global;if(null===r&&i&&(r=e["@@any-promise/REGISTRATION"]||null),null!==r&&null!==f&&r.implementation!==f)throw new Error('any-promise already defined as "'+r.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===r&&(r=null!==f&&void 0!==n.Promise?{Promise:n.Promise,implementation:f}:t(f),i&&(e["@@any-promise/REGISTRATION"]=r)),r}}},{}],6:[function(e,t,f){"use strict";function r(){if(void 0===window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}t.exports=e("./loader")(window,r)},{"./loader":5}],7:[function(e,t,f){var r=f;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":8,"./asn1/base":10,"./asn1/constants":14,"./asn1/decoders":16,"./asn1/encoders":19,"bn.js":21}],8:[function(e,t,f){function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var n=e("../asn1"),i=e("inherits");f.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(t){var f;try{f=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){f=function(e){this._initNamed(e)}}return i(f,t),f.prototype._initNamed=function(e){t.call(this,e)},new f(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,f){return this._getDecoder(t).decode(e,f)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,f){return this._getEncoder(t).encode(e,f)}},{"../asn1":7,inherits:108,vm:386}],9:[function(e,t,f){function r(e,t){if(o.call(this,t),!a.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function n(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof n||(e=new n(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}var i=e("inherits"),o=e("../base").Reporter,a=e("buffer").Buffer;i(r,o),f.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(e){var t=new r(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},r.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var f=new r(this.base);return f._reporterState=this._reporterState,f.offset=this.offset,f.length=this.offset+e,this.offset+=e,f},r.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},f.EncoderBuffer=n,n.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(f){f.join(e,t),t+=f.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},{"../base":10,buffer:274,inherits:108}],10:[function(e,t,f){var r=f;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":9,"./node":11,"./reporter":12}],11:[function(e,t,f){function r(e,t){var f={};this._baseState=f,f.enc=e,f.parent=t||null,f.children=null,f.tag=null,f.args=null,f.reverseArgs=null,f.choice=null,f.optional=!1,f.any=!1,f.obj=!1,f.use=null,f.useDecoder=null,f.key=null,f.default=null,f.explicit=null,f.implicit=null,f.contains=null,f.parent||(f.children=[],this._wrap())}var n=e("../base").Reporter,i=e("../base").EncoderBuffer,o=e("../base").DecoderBuffer,a=e("minimalistic-assert"),s=["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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=r;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(f){t[f]=e[f]});var f=new this.constructor(t.parent);return f._baseState=t,f},r.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var f=new this.constructor(this);return e.children.push(f),f[t].apply(f,arguments)}},this)},r.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(e){var t=this._baseState,f=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==f.length&&(a(null===t.children),t.children=f,f.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(f){f==(0|f)&&(f|=0);var r=e[f];t[r]=f}),t}))},u.forEach(function(e){r.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){r.prototype[e]=function(){var t=this._baseState,f=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(f),this}}),r.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},r.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},r.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},r.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},r.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},r.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},r.prototype._decode=function(e,t){var f=this._baseState;if(null===f.parent)return e.wrapResult(f.children[0]._decode(e,t));var r=f.default,n=!0,i=null;if(null!==f.key&&(i=e.enterKey(f.key)),f.optional){var a=null;if(null!==f.explicit?a=f.explicit:null!==f.implicit?a=f.implicit:null!==f.tag&&(a=f.tag),null!==a||f.any){if(n=this._peekTag(e,a,f.any),e.isError(n))return n}else{var s=e.save();try{null===f.choice?this._decodeGeneric(f.tag,e,t):this._decodeChoice(e,t),n=!0}catch(e){n=!1}e.restore(s)}}var c;if(f.obj&&n&&(c=e.enterObject()),n){if(null!==f.explicit){var u=this._decodeTag(e,f.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===f.use&&null===f.choice){if(f.any)var s=e.save();var h=this._decodeTag(e,null!==f.implicit?f.implicit:f.tag,f.any);if(e.isError(h))return h;f.any?r=e.raw(s):e=h}if(t&&t.track&&null!==f.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==f.tag&&t.track(e.path(),e.offset,e.length,"content"),r=f.any?r:null===f.choice?this._decodeGeneric(f.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(f.any||null!==f.choice||null===f.children||f.children.forEach(function(f){f._decode(e,t)}),f.contains&&("octstr"===f.tag||"bitstr"===f.tag)){var l=new o(r);r=this._getUse(f.contains,e._reporterState.obj)._decode(l,t)}}return f.obj&&n&&(r=e.leaveObject(c)),null===f.key||null===r&&!0!==n?null!==i&&e.exitKey(i):e.leaveKey(i,f.key,r),r},r.prototype._decodeGeneric=function(e,t,f){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],f):/str$/.test(e)?this._decodeStr(t,e,f):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],f):"objid"===e?this._decodeObjid(t,null,null,f):"gentime"===e||"utctime"===e?this._decodeTime(t,e,f):"null_"===e?this._decodeNull(t,f):"bool"===e?this._decodeBool(t,f):"objDesc"===e?this._decodeStr(t,e,f):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],f):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,f):t.error("unknown tag: "+e)},r.prototype._getUse=function(e,t){var f=this._baseState;return f.useDecoder=this._use(e,t),a(null===f.useDecoder._baseState.parent),f.useDecoder=f.useDecoder._baseState.children[0],f.implicit!==f.useDecoder._baseState.implicit&&(f.useDecoder=f.useDecoder.clone(),f.useDecoder._baseState.implicit=f.implicit),f.useDecoder},r.prototype._decodeChoice=function(e,t){var f=this._baseState,r=null,n=!1;return Object.keys(f.choice).some(function(i){var o=e.save(),a=f.choice[i];try{var s=a._decode(e,t);if(e.isError(s))return!1;r={type:i,value:s},n=!0}catch(t){return e.restore(o),!1}return!0},this),n?r:e.error("Choice not matched")},r.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},r.prototype._encode=function(e,t,f){var r=this._baseState;if(null===r.default||r.default!==e){var n=this._encodeValue(e,t,f);if(void 0!==n&&!this._skipDefault(n,t,f))return n}},r.prototype._encodeValue=function(e,t,f){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var o=null,a=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,f)._encode(e,t),a=!0;else if(r.children)o=r.children.map(function(f){if("null_"===f._baseState.tag)return f._encode(null,t,e);if(null===f._baseState.key)return t.error("Child should have a key");var r=t.enterKey(f._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var n=f._encode(e[f._baseState.key],t,e);return t.leaveKey(r),n},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(f){var r=this._baseState;return this._getUse(r.args[0],e)._encode(f,t)},s))}else null!==r.use?i=this._getUse(r.use,f)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);var i;if(!r.any&&null===r.choice){var c=null!==r.implicit?r.implicit:r.tag,u=null===r.implicit?"universal":"context";null===c?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(c,a,u,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},r.prototype._encodeChoice=function(e,t){var f=this._baseState,r=f.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(f.choice))),r._encode(e.value,t)},r.prototype._encodePrimitive=function(e,t){var f=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&f.args)return this._encodeObjid(t,f.reverseArgs[0],f.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,f.args&&f.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},r.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},r.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":10,"minimalistic-assert":114}],12:[function(e,t,f){function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}var i=e("inherits");f.Reporter=r,r.prototype.isError=function(e){return e instanceof n},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,f){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=f)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,f=t.obj;return t.obj=e,f},r.prototype.error=function(e){var t,f=this._reporterState,r=e instanceof n;if(t=r?e:new n(f.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!f.options.partial)throw t;return r||f.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:108}],13:[function(e,t,f){var r=e("../constants");f.tagClass={0:"universal",1:"application",2:"context",3:"private"},f.tagClassByName=r._reverse(f.tagClass),f.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"},f.tagByName=r._reverse(f.tag)},{"../constants":14}],14:[function(e,t,f){var r=f;r._reverse=function(e){var t={};return Object.keys(e).forEach(function(f){(0|f)==f&&(f|=0);var r=e[f];t[r]=f}),t},r.der=e("./der")},{"./der":13}],15:[function(e,t,f){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new n,this.tree._init(e.body)}function n(e){c.Node.call(this,"der",e)}function i(e,t){var f=e.readUInt8(t);if(e.isError(f))return f;var r=d.tagClass[f>>6],n=0==(32&f);if(31==(31&f)){var i=f;for(f=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;f<<=7,f|=127&i}}else f&=31;return{cls:r,primitive:n,tag:f,tagStr:d.tag[f]}}function o(e,t,f){var r=e.readUInt8(f);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(var i=0;i<n;i++){r<<=8;var o=e.readUInt8(f);if(e.isError(o))return o;r|=o}return r}var a=e("inherits"),s=e("../../asn1"),c=s.base,u=s.bignum,d=s.constants.der;t.exports=r,r.prototype.decode=function(e,t){return e instanceof c.DecoderBuffer||(e=new c.DecoderBuffer(e,t)),this.tree._decode(e,t)},a(n,c.Node),n.prototype._peekTag=function(e,t,f){if(e.isEmpty())return!1;var r=e.save(),n=i(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(r),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||f)},n.prototype._decodeTag=function(e,t,f){var r=i(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var n=o(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!f&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');var a=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(n=e.offset-a.offset,e.restore(a),e.skip(n,'Failed to match body of: "'+t+'"'))},n.prototype._skipUntilEnd=function(e,t){for(;;){var f=i(e,t);if(e.isError(f))return f;var r=o(e,f.primitive,t);if(e.isError(r))return r;var n;if(n=f.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===f.tagStr)break}},n.prototype._decodeList=function(e,t,f,r){for(var n=[];!e.isEmpty();){var i=this._peekTag(e,"end");if(e.isError(i))return i;var o=f.decode(e,"der",r);if(e.isError(o)&&i)break;n.push(o)}return n},n.prototype._decodeStr=function(e,t){if("bitstr"===t){var f=e.readUInt8();return e.isError(f)?f:{unused:f,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",i=0;i<r.length/2;i++)n+=String.fromCharCode(r.readUInt16BE(2*i));return n}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},n.prototype._decodeObjid=function(e,t,f){for(var r,n=[],i=0;!e.isEmpty();){var o=e.readUInt8();i<<=7,i|=127&o,0==(128&o)&&(n.push(i),i=0)}128&o&&n.push(i);var a=n[0]/40|0,s=n[0]%40;if(r=f?n:[a,s].concat(n.slice(1)),t){var c=t[r.join(" ")];void 0===c&&(c=t[r.join(".")]),void 0!==c&&(r=c)}return r},n.prototype._decodeTime=function(e,t){var f=e.raw().toString();if("gentime"===t)var r=0|f.slice(0,4),n=0|f.slice(4,6),i=0|f.slice(6,8),o=0|f.slice(8,10),a=0|f.slice(10,12),s=0|f.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var r=0|f.slice(0,2),n=0|f.slice(2,4),i=0|f.slice(4,6),o=0|f.slice(6,8),a=0|f.slice(8,10),s=0|f.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,i,o,a,s,0)},n.prototype._decodeNull=function(e){return null},n.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},n.prototype._decodeInt=function(e,t){var f=e.raw(),r=new u(f);return t&&(r=t[r.toString(10)]||r),r},n.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":7,inherits:108}],16:[function(e,t,f){var r=f;r.der=e("./der"),r.pem=e("./pem")},{"./der":15,"./pem":17}],17:[function(e,t,f){function r(e){o.call(this,e),this.enc="pem"}var n=e("inherits"),i=e("buffer").Buffer,o=e("./der");n(r,o),t.exports=r,r.prototype.decode=function(e,t){for(var f=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,s=-1,c=0;c<f.length;c++){var u=f[c].match(n);if(null!==u&&u[2]===r){if(-1!==a){if("END"!==u[1])break;s=c;break}if("BEGIN"!==u[1])break;a=c}}if(-1===a||-1===s)throw new Error("PEM section not found for: "+r);var d=f.slice(a+1,s).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(d,"base64");return o.prototype.decode.call(this,h,t)}},{"./der":15,buffer:274,inherits:108}],18:[function(e,t,f){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new n,this.tree._init(e.body)}function n(e){u.Node.call(this,"der",e)}function i(e){return e<10?"0"+e:e}function o(e,t,f,r){var n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),d.tagByName.hasOwnProperty(e))n=d.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);n=e}return n>=31?r.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=d.tagClassByName[f||"universal"]<<6)}var a=e("inherits"),s=e("buffer").Buffer,c=e("../../asn1"),u=c.base,d=c.constants.der;t.exports=r,r.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},a(n,u.Node),n.prototype._encodeComposite=function(e,t,f,r){var n=o(e,t,f,this.reporter);if(r.length<128){var i=new s(2);return i[0]=n,i[1]=r.length,this._createEncoderBuffer([i,r])}for(var a=1,c=r.length;c>=256;c>>=8)a++;var i=new s(2+a);i[0]=n,i[1]=128|a;for(var c=1+a,u=r.length;u>0;c--,u>>=8)i[c]=255&u;return this._createEncoderBuffer([i,r])},n.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var f=new s(2*e.length),r=0;r<e.length;r++)f.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(f)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},n.prototype._encodeObjid=function(e,t,f){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(var r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!f){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var n=0,r=0;r<e.length;r++){var i=e[r];for(n++;i>=128;i>>=7)n++}for(var o=new s(n),a=o.length-1,r=e.length-1;r>=0;r--){var i=e[r];for(o[a--]=127&i;(i>>=7)>0;)o[a--]=128|127&i}return this._createEncoderBuffer(o)},n.prototype._encodeTime=function(e,t){var f,r=new Date(e);return"gentime"===t?f=[i(r.getFullYear()),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?f=[i(r.getFullYear()%100),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(f,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){var f=e.toArray();!e.sign&&128&f[0]&&f.unshift(0),e=new s(f)}if(s.isBuffer(e)){var r=e.length;0===e.length&&r++;var n=new s(r);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var r=1,i=e;i>=256;i>>=8)r++;for(var n=new Array(r),i=n.length-1;i>=0;i--)n[i]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new s(n))},n.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},n.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},n.prototype._skipDefault=function(e,t,f){var r,n=this._baseState;if(null===n.default)return!1;var i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,f).join()),i.length!==n.defaultBuffer.length)return!1;for(r=0;r<i.length;r++)if(i[r]!==n.defaultBuffer[r])return!1;return!0}},{"../../asn1":7,buffer:274,inherits:108}],19:[function(e,t,f){var r=f;r.der=e("./der"),r.pem=e("./pem")},{"./der":18,"./pem":20}],20:[function(e,t,f){function r(e){i.call(this,e),this.enc="pem"}var n=e("inherits"),i=e("./der");n(r,i),t.exports=r,r.prototype.encode=function(e,t){for(var f=i.prototype.encode.call(this,e),r=f.toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":18,inherits:108}],21:[function(e,t,f){!function(t,f){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var f=function(){};f.prototype=t.prototype,e.prototype=new f,e.prototype.constructor=e}function i(e,t,f){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(f=t,t=10),this._init(e||0,t||10,f||"be"))}function o(e,t,f){for(var r=0,n=Math.min(e.length,f),i=t;i<n;i++){var o=e.charCodeAt(i)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function a(e,t,f,r){for(var n=0,i=Math.min(e.length,f),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n*=r,n+=a>=49?a-49+10:a>=17?a-17+10:a}return n}function s(e){for(var t=new Array(e.bitLength()),f=0;f<t.length;f++){var r=f/26|0,n=f%26;t[f]=(e.words[r]&1<<n)>>>n}return t}function c(e,t,f){
f.negative=t.negative^e.negative;var r=e.length+t.length|0;f.length=r,r=r-1|0;var n=0|e.words[0],i=0|t.words[0],o=n*i,a=67108863&o,s=o/67108864|0;f.words[0]=a;for(var c=1;c<r;c++){for(var u=s>>>26,d=67108863&s,h=Math.min(c,t.length-1),l=Math.max(0,c-e.length+1);l<=h;l++){var p=c-l|0;n=0|e.words[p],i=0|t.words[l],o=n*i+d,u+=o/67108864|0,d=67108863&o}f.words[c]=0|d,s=0|u}return 0!==s?f.words[c]=0|s:f.length--,f.strip()}function u(e,t,f){f.negative=t.negative^e.negative,f.length=e.length+t.length;for(var r=0,n=0,i=0;i<f.length-1;i++){var o=n;n=0;for(var a=67108863&r,s=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=s;c++){var u=i-c,d=0|e.words[u],h=0|t.words[c],l=d*h,p=67108863&l;o=o+(l/67108864|0)|0,p=p+a|0,a=67108863&p,o=o+(p>>>26)|0,n+=o>>>26,o&=67108863}f.words[i]=a,r=o,o=n}return 0!==r?f.words[i]=r:f.length--,f.strip()}function d(e,t,f){return(new h).mulp(e,t,f)}function h(e,t){this.x=e,this.y=t}function l(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}"object"==typeof t?t.exports=i:f.BN=i,i.BN=i,i.wordSize=26;var w;try{w=e("buffer").Buffer}catch(e){}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,f){if("number"==typeof e)return this._initNumber(e,t,f);if("object"==typeof e)return this._initArray(e,t,f);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;"-"===e[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===f&&this._initArray(this.toArray(),t,f)},i.prototype._initNumber=function(e,t,f){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===f&&this._initArray(this.toArray(),t,f)},i.prototype._initArray=function(e,t,f){if(r("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<this.length;n++)this.words[n]=0;var i,o,a=0;if("be"===f)for(n=e.length-1,i=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===f)for(n=0,i=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var r,n,i=0;for(f=e.length-6,r=0;f>=t;f-=6)n=o(e,f,f+6),this.words[r]|=n<<i&67108863,this.words[r+1]|=n>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);f+6!==t&&(n=o(e,t,f+6),this.words[r]|=n<<i&67108863,this.words[r+1]|=n>>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,f){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var i=e.length-f,o=i%r,s=Math.min(i,i-o)+f,c=0,u=f;u<s;u+=r)c=a(e,u,u+r,t),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=a(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","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"],S=[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],M=[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];i.prototype.toString=function(e,t){e=e||10,t=0|t||1;var f;if(16===e||"hex"===e){f="";for(var n=0,i=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<n|i)).toString(16);i=a>>>24-n&16777215,f=0!==i||o!==this.length-1?_[6-s.length]+s+f:s+f,n+=2,n>=26&&(n-=26,o--)}for(0!==i&&(f=i.toString(16)+f);f.length%t!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(e===(0|e)&&e>=2&&e<=36){var c=S[e],u=M[e];f="";var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modn(u).toString(e);d=d.idivn(u),f=d.isZero()?h+f:_[c-h.length]+h+f}for(this.isZero()&&(f="0"+f);f.length%t!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}r(!1,"Base should be between 2 and 36")},i.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==w),this.toArrayLike(w,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,f){var n=this.byteLength(),i=f||Math.max(1,n);r(n<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,c=new e(i),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),c[a]=o;for(;a<i;a++)c[a]=0}else{for(a=0;a<i-n;a++)c[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),c[i-a-1]=o}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,f=0;return t>=4096&&(f+=13,t>>>=13),t>=64&&(f+=7,t>>>=7),t>=8&&(f+=4,t>>>=4),t>=2&&(f+=2,t>>>=2),f+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,f=0;return 0==(8191&t)&&(f+=13,t>>>=13),0==(127&t)&&(f+=7,t>>>=7),0==(15&t)&&(f+=4,t>>>=4),0==(3&t)&&(f+=2,t>>>=2),0==(1&t)&&f++,f},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var f=this._zeroBits(this.words[t]);if(e+=f,26!==f)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var f=0;f<t.length;f++)this.words[f]=this.words[f]&e.words[f];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,f;this.length>e.length?(t=this,f=e):(t=e,f=this);for(var r=0;r<f.length;r++)this.words[r]=t.words[r]^f.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),f=e%26;this._expand(t),f>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return f>0&&(this.words[n]=~this.words[n]&67108863>>26-f),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var f=e/26|0,n=e%26;return this._expand(f+1),this.words[f]=t?this.words[f]|1<<n:this.words[f]&~(1<<n),this.strip()},i.prototype.iadd=function(e){var t;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var f,r;this.length>e.length?(f=this,r=e):(f=e,r=this);for(var n=0,i=0;i<r.length;i++)t=(0|f.words[i])+(0|r.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<f.length;i++)t=(0|f.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=f.length,0!==n)this.words[this.length]=n,this.length++;else if(f!==this)for(;i<f.length;i++)this.words[i]=f.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.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 f=this.cmp(e);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;var r,n;f>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])-(0|n.words[o])+i,i=t>>26,this.words[o]=67108863&t;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,i=t>>26,this.words[o]=67108863&t;if(0===i&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var k=function(e,t,f){var r,n,i,o=e.words,a=t.words,s=f.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,l=0|o[1],p=8191&l,b=l>>>13,m=0|o[2],y=8191&m,v=m>>>13,g=0|o[3],w=8191&g,_=g>>>13,S=0|o[4],M=8191&S,k=S>>>13,x=0|o[5],E=8191&x,T=x>>>13,A=0|o[6],I=8191&A,C=A>>>13,j=0|o[7],B=8191&j,P=j>>>13,D=0|o[8],N=8191&D,R=D>>>13,O=0|o[9],L=8191&O,q=O>>>13,F=0|a[0],U=8191&F,z=F>>>13,H=0|a[1],V=8191&H,K=H>>>13,$=0|a[2],W=8191&$,X=$>>>13,G=0|a[3],Z=8191&G,J=G>>>13,Y=0|a[4],Q=8191&Y,ee=Y>>>13,te=0|a[5],fe=8191&te,re=te>>>13,ne=0|a[6],ie=8191&ne,oe=ne>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,le=0|a[9],pe=8191&le,be=le>>>13;f.negative=e.negative^t.negative,f.length=19,r=Math.imul(d,U),n=Math.imul(d,z),n=n+Math.imul(h,U)|0,i=Math.imul(h,z);var me=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,U),n=Math.imul(p,z),n=n+Math.imul(b,U)|0,i=Math.imul(b,z),r=r+Math.imul(d,V)|0,n=n+Math.imul(d,K)|0,n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0;var ye=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,U),n=Math.imul(y,z),n=n+Math.imul(v,U)|0,i=Math.imul(v,z),r=r+Math.imul(p,V)|0,n=n+Math.imul(p,K)|0,n=n+Math.imul(b,V)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(d,W)|0,n=n+Math.imul(d,X)|0,n=n+Math.imul(h,W)|0,i=i+Math.imul(h,X)|0;var ve=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,U),n=Math.imul(w,z),n=n+Math.imul(_,U)|0,i=Math.imul(_,z),r=r+Math.imul(y,V)|0,n=n+Math.imul(y,K)|0,n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,n=n+Math.imul(p,X)|0,n=n+Math.imul(b,W)|0,i=i+Math.imul(b,X)|0,r=r+Math.imul(d,Z)|0,n=n+Math.imul(d,J)|0,n=n+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0;var ge=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,U),n=Math.imul(M,z),n=n+Math.imul(k,U)|0,i=Math.imul(k,z),r=r+Math.imul(w,V)|0,n=n+Math.imul(w,K)|0,n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,r=r+Math.imul(y,W)|0,n=n+Math.imul(y,X)|0,n=n+Math.imul(v,W)|0,i=i+Math.imul(v,X)|0,r=r+Math.imul(p,Z)|0,n=n+Math.imul(p,J)|0,n=n+Math.imul(b,Z)|0,i=i+Math.imul(b,J)|0,r=r+Math.imul(d,Q)|0,n=n+Math.imul(d,ee)|0,n=n+Math.imul(h,Q)|0,i=i+Math.imul(h,ee)|0;var we=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,U),n=Math.imul(E,z),n=n+Math.imul(T,U)|0,i=Math.imul(T,z),r=r+Math.imul(M,V)|0,n=n+Math.imul(M,K)|0,n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(w,W)|0,n=n+Math.imul(w,X)|0,n=n+Math.imul(_,W)|0,i=i+Math.imul(_,X)|0,r=r+Math.imul(y,Z)|0,n=n+Math.imul(y,J)|0,n=n+Math.imul(v,Z)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(p,Q)|0,n=n+Math.imul(p,ee)|0,n=n+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(d,fe)|0,n=n+Math.imul(d,re)|0,n=n+Math.imul(h,fe)|0,i=i+Math.imul(h,re)|0;var _e=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(I,U),n=Math.imul(I,z),n=n+Math.imul(C,U)|0,i=Math.imul(C,z),r=r+Math.imul(E,V)|0,n=n+Math.imul(E,K)|0,n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,r=r+Math.imul(M,W)|0,n=n+Math.imul(M,X)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,X)|0,r=r+Math.imul(w,Z)|0,n=n+Math.imul(w,J)|0,n=n+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,r=r+Math.imul(y,Q)|0,n=n+Math.imul(y,ee)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,fe)|0,n=n+Math.imul(p,re)|0,n=n+Math.imul(b,fe)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(d,ie)|0,n=n+Math.imul(d,oe)|0,n=n+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var Se=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,U),n=Math.imul(B,z),n=n+Math.imul(P,U)|0,i=Math.imul(P,z),r=r+Math.imul(I,V)|0,n=n+Math.imul(I,K)|0,n=n+Math.imul(C,V)|0,i=i+Math.imul(C,K)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul(E,X)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,X)|0,r=r+Math.imul(M,Z)|0,n=n+Math.imul(M,J)|0,n=n+Math.imul(k,Z)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(w,Q)|0,n=n+Math.imul(w,ee)|0,n=n+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(y,fe)|0,n=n+Math.imul(y,re)|0,n=n+Math.imul(v,fe)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,n=n+Math.imul(p,oe)|0,n=n+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0,n=n+Math.imul(h,se)|0,i=i+Math.imul(h,ce)|0;var Me=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,U),n=Math.imul(N,z),n=n+Math.imul(R,U)|0,i=Math.imul(R,z),r=r+Math.imul(B,V)|0,n=n+Math.imul(B,K)|0,n=n+Math.imul(P,V)|0,i=i+Math.imul(P,K)|0,r=r+Math.imul(I,W)|0,n=n+Math.imul(I,X)|0,n=n+Math.imul(C,W)|0,i=i+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul(E,J)|0,n=n+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,r=r+Math.imul(M,Q)|0,n=n+Math.imul(M,ee)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(w,fe)|0,n=n+Math.imul(w,re)|0,n=n+Math.imul(_,fe)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(y,ie)|0,n=n+Math.imul(y,oe)|0,n=n+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,n=n+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(d,de)|0,n=n+Math.imul(d,he)|0,n=n+Math.imul(h,de)|0,i=i+Math.imul(h,he)|0;var ke=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,U),n=Math.imul(L,z),n=n+Math.imul(q,U)|0,i=Math.imul(q,z),r=r+Math.imul(N,V)|0,n=n+Math.imul(N,K)|0,n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,r=r+Math.imul(B,W)|0,n=n+Math.imul(B,X)|0,n=n+Math.imul(P,W)|0,i=i+Math.imul(P,X)|0,r=r+Math.imul(I,Z)|0,n=n+Math.imul(I,J)|0,n=n+Math.imul(C,Z)|0,i=i+Math.imul(C,J)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul(E,ee)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(M,fe)|0,n=n+Math.imul(M,re)|0,n=n+Math.imul(k,fe)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(w,ie)|0,n=n+Math.imul(w,oe)|0,n=n+Math.imul(_,ie)|0,i=i+Math.imul(_,oe)|0,r=r+Math.imul(y,se)|0,n=n+Math.imul(y,ce)|0,n=n+Math.imul(v,se)|0,i=i+Math.imul(v,ce)|0,r=r+Math.imul(p,de)|0,n=n+Math.imul(p,he)|0,n=n+Math.imul(b,de)|0,i=i+Math.imul(b,he)|0,r=r+Math.imul(d,pe)|0,n=n+Math.imul(d,be)|0,n=n+Math.imul(h,pe)|0,i=i+Math.imul(h,be)|0;var xe=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,V),n=Math.imul(L,K),n=n+Math.imul(q,V)|0,i=Math.imul(q,K),r=r+Math.imul(N,W)|0,n=n+Math.imul(N,X)|0,n=n+Math.imul(R,W)|0,i=i+Math.imul(R,X)|0,r=r+Math.imul(B,Z)|0,n=n+Math.imul(B,J)|0,n=n+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,r=r+Math.imul(I,Q)|0,n=n+Math.imul(I,ee)|0,n=n+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(E,fe)|0,n=n+Math.imul(E,re)|0,n=n+Math.imul(T,fe)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(M,ie)|0,n=n+Math.imul(M,oe)|0,n=n+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(w,se)|0,n=n+Math.imul(w,ce)|0,n=n+Math.imul(_,se)|0,i=i+Math.imul(_,ce)|0,r=r+Math.imul(y,de)|0,n=n+Math.imul(y,he)|0,n=n+Math.imul(v,de)|0,i=i+Math.imul(v,he)|0,r=r+Math.imul(p,pe)|0,n=n+Math.imul(p,be)|0,n=n+Math.imul(b,pe)|0,i=i+Math.imul(b,be)|0;var Ee=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),n=Math.imul(L,X),n=n+Math.imul(q,W)|0,i=Math.imul(q,X),r=r+Math.imul(N,Z)|0,n=n+Math.imul(N,J)|0,n=n+Math.imul(R,Z)|0,i=i+Math.imul(R,J)|0,r=r+Math.imul(B,Q)|0,n=n+Math.imul(B,ee)|0,n=n+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,r=r+Math.imul(I,fe)|0,n=n+Math.imul(I,re)|0,n=n+Math.imul(C,fe)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(E,ie)|0,n=n+Math.imul(E,oe)|0,n=n+Math.imul(T,ie)|0,i=i+Math.imul(T,oe)|0,r=r+Math.imul(M,se)|0,n=n+Math.imul(M,ce)|0,n=n+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(w,de)|0,n=n+Math.imul(w,he)|0,n=n+Math.imul(_,de)|0,i=i+Math.imul(_,he)|0,r=r+Math.imul(y,pe)|0,n=n+Math.imul(y,be)|0,n=n+Math.imul(v,pe)|0,i=i+Math.imul(v,be)|0;var Te=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Z),n=Math.imul(L,J),n=n+Math.imul(q,Z)|0,i=Math.imul(q,J),r=r+Math.imul(N,Q)|0,n=n+Math.imul(N,ee)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(B,fe)|0,n=n+Math.imul(B,re)|0,n=n+Math.imul(P,fe)|0,i=i+Math.imul(P,re)|0,r=r+Math.imul(I,ie)|0,n=n+Math.imul(I,oe)|0,n=n+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,n=n+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(M,de)|0,n=n+Math.imul(M,he)|0,n=n+Math.imul(k,de)|0,i=i+Math.imul(k,he)|0,r=r+Math.imul(w,pe)|0,n=n+Math.imul(w,be)|0,n=n+Math.imul(_,pe)|0,i=i+Math.imul(_,be)|0;var Ae=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,Q),n=Math.imul(L,ee),n=n+Math.imul(q,Q)|0,i=Math.imul(q,ee),r=r+Math.imul(N,fe)|0,n=n+Math.imul(N,re)|0,n=n+Math.imul(R,fe)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(B,ie)|0,n=n+Math.imul(B,oe)|0,n=n+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,r=r+Math.imul(I,se)|0,n=n+Math.imul(I,ce)|0,n=n+Math.imul(C,se)|0,i=i+Math.imul(C,ce)|0,r=r+Math.imul(E,de)|0,n=n+Math.imul(E,he)|0,n=n+Math.imul(T,de)|0,i=i+Math.imul(T,he)|0,r=r+Math.imul(M,pe)|0,n=n+Math.imul(M,be)|0,n=n+Math.imul(k,pe)|0,i=i+Math.imul(k,be)|0;var Ie=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,fe),n=Math.imul(L,re),n=n+Math.imul(q,fe)|0,i=Math.imul(q,re),r=r+Math.imul(N,ie)|0,n=n+Math.imul(N,oe)|0,n=n+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,r=r+Math.imul(B,se)|0,n=n+Math.imul(B,ce)|0,n=n+Math.imul(P,se)|0,i=i+Math.imul(P,ce)|0,r=r+Math.imul(I,de)|0,n=n+Math.imul(I,he)|0,n=n+Math.imul(C,de)|0,i=i+Math.imul(C,he)|0,r=r+Math.imul(E,pe)|0,n=n+Math.imul(E,be)|0,n=n+Math.imul(T,pe)|0,i=i+Math.imul(T,be)|0;var Ce=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,ie),n=Math.imul(L,oe),n=n+Math.imul(q,ie)|0,i=Math.imul(q,oe),r=r+Math.imul(N,se)|0,n=n+Math.imul(N,ce)|0,n=n+Math.imul(R,se)|0,i=i+Math.imul(R,ce)|0,r=r+Math.imul(B,de)|0,n=n+Math.imul(B,he)|0,n=n+Math.imul(P,de)|0,i=i+Math.imul(P,he)|0,r=r+Math.imul(I,pe)|0,n=n+Math.imul(I,be)|0,n=n+Math.imul(C,pe)|0,i=i+Math.imul(C,be)|0;var je=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,se),n=Math.imul(L,ce),n=n+Math.imul(q,se)|0,i=Math.imul(q,ce),r=r+Math.imul(N,de)|0,n=n+Math.imul(N,he)|0,n=n+Math.imul(R,de)|0,i=i+Math.imul(R,he)|0,r=r+Math.imul(B,pe)|0,n=n+Math.imul(B,be)|0,n=n+Math.imul(P,pe)|0,i=i+Math.imul(P,be)|0;var Be=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(L,de),n=Math.imul(L,he),n=n+Math.imul(q,de)|0,i=Math.imul(q,he),r=r+Math.imul(N,pe)|0,n=n+Math.imul(N,be)|0,n=n+Math.imul(R,pe)|0,i=i+Math.imul(R,be)|0;var Pe=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,pe),n=Math.imul(L,be),n=n+Math.imul(q,pe)|0,i=Math.imul(q,be);var De=(c+r|0)+((8191&n)<<13)|0;return c=(i+(n>>>13)|0)+(De>>>26)|0,De&=67108863,s[0]=me,s[1]=ye,s[2]=ve,s[3]=ge,s[4]=we,s[5]=_e,s[6]=Se,s[7]=Me,s[8]=ke,s[9]=xe,s[10]=Ee,s[11]=Te,s[12]=Ae,s[13]=Ie,s[14]=Ce,s[15]=je,s[16]=Be,s[17]=Pe,s[18]=De,0!==c&&(s[19]=c,f.length++),f};Math.imul||(k=c),i.prototype.mulTo=function(e,t){var f=this.length+e.length;return 10===this.length&&10===e.length?k(this,e,t):f<63?c(this,e,t):f<1024?u(this,e,t):d(this,e,t)},h.prototype.makeRBT=function(e){for(var t=new Array(e),f=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,f,e);return t},h.prototype.revBin=function(e,t,f){if(0===e||e===f-1)return e;for(var r=0,n=0;n<t;n++)r|=(1&e)<<t-n-1,e>>=1;return r},h.prototype.permute=function(e,t,f,r,n,i){for(var o=0;o<i;o++)r[o]=t[e[o]],n[o]=f[e[o]]},h.prototype.transform=function(e,t,f,r,n,i){this.permute(i,e,t,f,r,n);for(var o=1;o<n;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<n;u+=a)for(var d=s,h=c,l=0;l<o;l++){var p=f[u+l],b=r[u+l],m=f[u+l+o],y=r[u+l+o],v=d*m-h*y;y=d*y+h*m,m=v,f[u+l]=p+m,r[u+l]=b+y,f[u+l+o]=p-m,r[u+l+o]=b-y,l!==a&&(v=s*d-c*h,h=s*h+c*d,d=v)}},h.prototype.guessLen13b=function(e,t){var f=1|Math.max(t,e),r=1&f,n=0;for(f=f/2|0;f;f>>>=1)n++;return 1<<n+1+r},h.prototype.conjugate=function(e,t,f){if(!(f<=1))for(var r=0;r<f/2;r++){var n=e[r];e[r]=e[f-r-1],e[f-r-1]=n,n=t[r],t[r]=-t[f-r-1],t[f-r-1]=-n}},h.prototype.normalize13b=function(e,t){for(var f=0,r=0;r<t/2;r++){var n=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+f;e[r]=67108863&n,f=n<67108864?0:n/67108864|0}return e},h.prototype.convert13b=function(e,t,f,n){for(var i=0,o=0;o<t;o++)i+=0|e[o],f[2*o]=8191&i,i>>>=13,f[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<n;++o)f[o]=0;r(0===i),r(0==(-8192&i))},h.prototype.stub=function(e){for(var t=new Array(e),f=0;f<e;f++)t[f]=0;return t},h.prototype.mulp=function(e,t,f){var r=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(r),i=this.stub(r),o=new Array(r),a=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),h=f.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,i,a,s,r,n),this.transform(c,i,u,d,r,n);for(var l=0;l<r;l++){var p=a[l]*u[l]-s[l]*d[l];s[l]=a[l]*d[l]+s[l]*u[l],a[l]=p}return this.conjugate(a,s,r),this.transform(a,s,h,i,r,n),this.conjugate(h,i,r),this.normalize13b(h,r),f.negative=e.negative^t.negative,f.length=e.length+t.length,f.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),d(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,f=0;f<this.length;f++){var n=(0|this.words[f])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[f]=67108863&i}return 0!==t&&(this.words[f]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=s(e);if(0===t.length)return new i(1);for(var f=this,r=0;r<t.length&&0===t[r];r++,f=f.sqr());if(++r<t.length)for(var n=f.sqr();r<t.length;r++,n=n.sqr())0!==t[r]&&(f=f.mul(n));return f},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,f=e%26,n=(e-f)/26,i=67108863>>>26-f<<26-f;if(0!==f){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,s=(0|this.words[t])-a<<f;this.words[t]=s|o,o=a>>>26-f}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,f){r("number"==typeof e&&e>=0);var n;n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,s=f;if(n-=o,n=Math.max(0,n),s){for(var c=0;c<o;c++)s.words[c]=this.words[c];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,f){return r(0===this.negative),this.iushrn(e,t,f)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,f=(e-t)/26,n=1<<t;return!(this.length<=f)&&!!(this.words[f]&n)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,f=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=f)return this;if(0!==t&&f++,this.length=Math.min(f,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[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},i.prototype.isubn=function(e){if(r("number"==typeof e),r(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<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,f){var n,i=e.length+f;this._expand(i);var o,a=0;for(n=0;n<e.length;n++){o=(0|this.words[n+f])+a;var s=(0|e.words[n])*t;o-=67108863&s,a=(o>>26)-(s/67108864|0),this.words[n+f]=67108863&o}for(;n<this.length-f;n++)o=(0|this.words[n+f])+a,a=o>>26,this.words[n+f]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n<this.length;n++)o=-(0|this.words[n])+a,a=o>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var f=this.length-e.length,r=this.clone(),n=e,o=0|n.words[n.length-1];0!==(f=26-this._countBits(o))&&(n=n.ushln(f),r.iushln(f),o=0|n.words[n.length-1]);var a,s=r.length-n.length;if("mod"!==t){a=new i(null),a.length=s+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var u=r.clone()._ishlnsubmul(n,1,s);0===u.negative&&(r=u,a&&(a.words[s]=1));for(var d=s-1;d>=0;d--){var h=67108864*(0|r.words[n.length+d])+(0|r.words[n.length+d-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(n,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,d),r.isZero()||(r.negative^=1);a&&(a.words[d]=h)}return a&&a.strip(),r.strip(),"div"!==t&&0!==f&&r.iushrn(f),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,f){if(r(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var n,o,a;return 0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(n=a.div.neg()),"div"!==t&&(o=a.mod.neg(),f&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),f&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var f=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),i=f.cmp(r);return i<0||1===n&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,f=0,n=this.length-1;n>=0;n--)f=(t*f+(0|this.words[n]))%e;return f},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,f=this.length-1;f>=0;f--){var n=(0|this.words[f])+67108864*t;this.words[f]=n/e|0,t=n%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,f=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new i(1),o=new i(0),a=new i(0),s=new i(1),c=0;t.isEven()&&f.isEven();)t.iushrn(1),f.iushrn(1),++c;for(var u=f.clone(),d=t.clone();!t.isZero();){for(var h=0,l=1;0==(t.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(d)),n.iushrn(1),o.iushrn(1)
;for(var p=0,b=1;0==(f.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(f.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(d)),a.iushrn(1),s.iushrn(1);t.cmp(f)>=0?(t.isub(f),n.isub(a),o.isub(s)):(f.isub(t),a.isub(n),s.isub(o))}return{a:a,b:s,gcd:f.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,f=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new i(1),o=new i(0),a=f.clone();t.cmpn(1)>0&&f.cmpn(1)>0;){for(var s=0,c=1;0==(t.words[0]&c)&&s<26;++s,c<<=1);if(s>0)for(t.iushrn(s);s-- >0;)n.isOdd()&&n.iadd(a),n.iushrn(1);for(var u=0,d=1;0==(f.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(f.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);t.cmp(f)>=0?(t.isub(f),n.isub(o)):(f.isub(t),o.isub(n))}var h;return h=0===t.cmpn(1)?n:o,h.cmpn(0)<0&&h.iadd(e),h},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),f=e.clone();t.negative=0,f.negative=0;for(var r=0;t.isEven()&&f.isEven();r++)t.iushrn(1),f.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;f.isEven();)f.iushrn(1);var n=t.cmp(f);if(n<0){var i=t;t=f,f=i}else if(0===n||0===f.cmpn(1))break;t.isub(f)}return f.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,f=(e-t)/26,n=1<<t;if(this.length<=f)return this._expand(f+1),this.words[f]|=n,this;for(var i=n,o=f;0!==i&&o<this.length;o++){var a=0|this.words[o];a+=i,i=a>>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var f;if(this.length>1)f=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];f=n===e?0:n<e?-1:1}return 0!==this.negative?0|-f:f},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,f=this.length-1;f>=0;f--){var r=0|this.words[f],n=0|e.words[f];if(r!==n){r<n?t=-1:r>n&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new v(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};l.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},l.prototype.ireduce=function(e){var t,f=e;do{this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),t=f.bitLength()}while(t>this.n);var r=t<this.n?-1:f.ucmp(this.p);return 0===r?(f.words[0]=0,f.length=1):r>0?f.isub(this.p):f.strip(),f},l.prototype.split=function(e,t){e.iushrn(this.n,0,t)},l.prototype.imulK=function(e){return e.imul(this.k)},n(p,l),p.prototype.split=function(e,t){for(var f=Math.min(e.length,9),r=0;r<f;r++)t.words[r]=e.words[r];if(t.length=f,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|n>>>22,n=i}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},p.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,f=0;f<e.length;f++){var r=0|e.words[f];t+=977*r,e.words[f]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(b,l),n(m,l),n(y,l),y.prototype.imulK=function(e){for(var t=0,f=0;f<e.length;f++){var r=19*(0|e.words[f])+t,n=67108863&r;r>>>=26,e.words[f]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new p;else if("p224"===e)t=new b;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new y}return x[e]=t,t},v.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var f=e.add(t);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var f=e.iadd(t);return f.cmp(this.m)>=0&&f.isub(this.m),f},v.prototype.sub=function(e,t){this._verify2(e,t);var f=e.sub(t);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var f=e.isub(t);return f.cmpn(0)<0&&f.iadd(this.m),f},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var f=this.m.add(new i(1)).iushrn(2);return this.pow(e,f)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new i(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(s);)u.redIAdd(s);for(var d=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=o;0!==l.cmp(a);){for(var b=l,m=0;0!==b.cmp(a);m++)b=b.redSqr();r(m<p);var y=this.pow(d,new i(1).iushln(p-m-1));h=h.redMul(y),d=y.redSqr(),l=l.redMul(d),p=m}return h},v.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},v.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var f=new Array(16);f[0]=new i(1).toRed(this),f[1]=e;for(var r=2;r<f.length;r++)f[r]=this.mul(f[r-1],e);var n=f[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=s-1;u>=0;u--){var d=c>>u&1;n!==f[0]&&(n=this.sqr(n)),0!==d||0!==o?(o<<=1,o|=d,(4===++a||0===r&&0===u)&&(n=this.mul(n,f[o]),a=0,o=0)):a=0}s=26}return n},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new g(e)},n(g,v),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var f=e.imul(t),r=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=f.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var f=e.mul(t),r=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=f.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:245}],22:[function(e,t,f){function r(e){this.rand=e}var n;if(t.exports=function(e){return n||(n=new r(null)),n.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),f=0;f<t.length;f++)t[f]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=e("crypto");if("function"!=typeof i.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return i.randomBytes(e)}}catch(e){}},{crypto:245}],23:[function(e,t,f){function r(e){a.isBuffer(e)||(e=a.from(e));for(var t=e.length/4|0,f=new Array(t),r=0;r<t;r++)f[r]=e.readUInt32BE(4*r);return f}function n(e){for(;0<e.length;e++)e[0]=0}function i(e,t,f,r,n){for(var i,o,a,s,c=f[0],u=f[1],d=f[2],h=f[3],l=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],m=e[3]^t[3],y=4,v=1;v<n;v++)i=c[l>>>24]^u[p>>>16&255]^d[b>>>8&255]^h[255&m]^t[y++],o=c[p>>>24]^u[b>>>16&255]^d[m>>>8&255]^h[255&l]^t[y++],a=c[b>>>24]^u[m>>>16&255]^d[l>>>8&255]^h[255&p]^t[y++],s=c[m>>>24]^u[l>>>16&255]^d[p>>>8&255]^h[255&b]^t[y++],l=i,p=o,b=a,m=s;return i=(r[l>>>24]<<24|r[p>>>16&255]<<16|r[b>>>8&255]<<8|r[255&m])^t[y++],o=(r[p>>>24]<<24|r[b>>>16&255]<<16|r[m>>>8&255]<<8|r[255&l])^t[y++],a=(r[b>>>24]<<24|r[m>>>16&255]<<16|r[l>>>8&255]<<8|r[255&p])^t[y++],s=(r[m>>>24]<<24|r[l>>>16&255]<<16|r[p>>>8&255]<<8|r[255&b])^t[y++],i>>>=0,o>>>=0,a>>>=0,s>>>=0,[i,o,a,s]}function o(e){this._key=r(e),this._reset()}var a=e("safe-buffer").Buffer,s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var f=[],r=[],n=[[],[],[],[]],i=[[],[],[],[]],o=0,a=0,s=0;s<256;++s){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,f[o]=c,r[c]=o;var u=e[o],d=e[u],h=e[d],l=257*e[c]^16843008*c;n[0][o]=l<<24|l>>>8,n[1][o]=l<<16|l>>>16,n[2][o]=l<<8|l>>>24,n[3][o]=l,l=16843009*h^65537*d^257*u^16843008*o,i[0][c]=l<<24|l>>>8,i[1][c]=l<<16|l>>>16,i[2][c]=l<<8|l>>>24,i[3][c]=l,0===o?o=a=1:(o=u^e[e[e[h^u]]],a^=e[e[a]])}return{SBOX:f,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:i}}();o.blockSize=16,o.keySize=32,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var e=this._key,t=e.length,f=t+6,r=4*(f+1),n=[],i=0;i<t;i++)n[i]=e[i];for(i=t;i<r;i++){var o=n[i-1];i%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[i/t|0]<<24):t>6&&i%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),n[i]=n[i-t]^o}for(var a=[],u=0;u<r;u++){var d=r-u,h=n[d-(u%4?0:4)];a[u]=u<4||d<=4?h:c.INV_SUB_MIX[0][c.SBOX[h>>>24]]^c.INV_SUB_MIX[1][c.SBOX[h>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[h>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&h]]}this._nRounds=f,this._keySchedule=n,this._invKeySchedule=a},o.prototype.encryptBlockRaw=function(e){return e=r(e),i(e,this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},o.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),f=a.allocUnsafe(16);return f.writeUInt32BE(t[0],0),f.writeUInt32BE(t[1],4),f.writeUInt32BE(t[2],8),f.writeUInt32BE(t[3],12),f},o.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var f=i(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),n=a.allocUnsafe(16);return n.writeUInt32BE(f[0],0),n.writeUInt32BE(f[3],4),n.writeUInt32BE(f[2],8),n.writeUInt32BE(f[1],12),n},o.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=o},{"safe-buffer":144}],24:[function(e,t,f){function r(e,t){var f=0;e.length!==t.length&&f++;for(var r=Math.min(e.length,t.length),n=0;n<r;++n)f+=e[n]^t[n];return f}function n(e,t,f){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var r=new u(f),n=t.length,i=n%16;r.update(t),i&&(i=16-i,r.update(a.alloc(i,0))),r.update(a.alloc(8,0));var o=8*n,s=a.alloc(8);s.writeUIntBE(o,0,8),r.update(s),e._finID=r.state;var c=a.from(e._finID);return h(c),c}function i(e,t,f,r){s.call(this);var i=a.alloc(4,0);this._cipher=new o.AES(t);var c=this._cipher.encryptBlock(i);this._ghash=new u(c),f=n(this,f,c),this._prev=a.from(f),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}var o=e("./aes"),a=e("safe-buffer").Buffer,s=e("cipher-base"),c=e("inherits"),u=e("./ghash"),d=e("buffer-xor"),h=e("./incr32");c(i,s),i.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var f=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(f),this._len+=e.length,f},i.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&r(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},i.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},i.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},i.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=i},{"./aes":23,"./ghash":28,"./incr32":29,"buffer-xor":50,"cipher-base":51,inherits:108,"safe-buffer":144}],25:[function(e,t,f){function r(){return Object.keys(o)}var n=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");f.createCipher=f.Cipher=n.createCipher,f.createCipheriv=f.Cipheriv=n.createCipheriv,f.createDecipher=f.Decipher=i.createDecipher,f.createDecipheriv=f.Decipheriv=i.createDecipheriv,f.listCiphers=f.getCiphers=r},{"./decrypter":26,"./encrypter":27,"./modes/list.json":37}],26:[function(e,t,f){function r(e,t,f){h.call(this),this._cache=new n,this._last=void 0,this._cipher=new l.AES(t),this._prev=c.from(f),this._mode=e,this._autopadding=!0}function n(){this.cache=c.allocUnsafe(0)}function i(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var f=-1;++f<t;)if(e[f+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function o(e,t,f){var n=u[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof f&&(f=c.from(f)),"GCM"!==n.mode&&f.length!==n.iv)throw new TypeError("invalid iv length "+f.length);if("string"==typeof t&&(t=c.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===n.type?new d(n.module,t,f,!0):"auth"===n.type?new s(n.module,t,f,!0):new r(n.module,t,f)}function a(e,t){var f=u[e.toLowerCase()];if(!f)throw new TypeError("invalid suite type");var r=p(t,!1,f.key,f.iv);return o(e,r.key,r.iv)}var s=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./modes"),d=e("./streamCipher"),h=e("cipher-base"),l=e("./aes"),p=e("evp_bytestokey");e("inherits")(r,h),r.prototype._update=function(e){this._cache.add(e);for(var t,f,r=[];t=this._cache.get(this._autopadding);)f=this._mode.decrypt(this,t),r.push(f);return c.concat(r)},r.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return i(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=c.concat([this.cache,e])},n.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache},f.createDecipher=a,f.createDecipheriv=o},{"./aes":23,"./authCipher":24,"./modes":36,"./streamCipher":39,"cipher-base":51,evp_bytestokey:91,inherits:108,"safe-buffer":144}],27:[function(e,t,f){function r(e,t,f){d.call(this),this._cache=new n,this._cipher=new h.AES(t),this._prev=c.from(f),this._mode=e,this._autopadding=!0}function n(){this.cache=c.allocUnsafe(0)}function i(e,t,f){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=c.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof f&&(f=c.from(f)),"GCM"!==n.mode&&f.length!==n.iv)throw new TypeError("invalid iv length "+f.length);return"stream"===n.type?new u(n.module,t,f):"auth"===n.type?new s(n.module,t,f):new r(n.module,t,f)}function o(e,t){var f=a[e.toLowerCase()];if(!f)throw new TypeError("invalid suite type");var r=l(t,!1,f.key,f.iv);return i(e,r.key,r.iv)}var a=e("./modes"),s=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./streamCipher"),d=e("cipher-base"),h=e("./aes"),l=e("evp_bytestokey");e("inherits")(r,d),r.prototype._update=function(e){this._cache.add(e);for(var t,f,r=[];t=this._cache.get();)f=this._mode.encrypt(this,t),r.push(f);return c.concat(r)};var p=c.alloc(16,16);r.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},n.prototype.add=function(e){this.cache=c.concat([this.cache,e])},n.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},n.prototype.flush=function(){for(var e=16-this.cache.length,t=c.allocUnsafe(e),f=-1;++f<e;)t.writeUInt8(e,f);return c.concat([this.cache,t])},f.createCipheriv=i,f.createCipher=o},{"./aes":23,"./authCipher":24,"./modes":36,"./streamCipher":39,"cipher-base":51,evp_bytestokey:91,inherits:108,"safe-buffer":144}],28:[function(e,t,f){function r(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function n(e){var t=o.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function i(e){this.h=e,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}var o=e("safe-buffer").Buffer,a=o.alloc(16,0);i.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},i.prototype._multiply=function(){for(var e,t,f,i=r(this.h),o=[0,0,0,0],a=-1;++a<128;){for(t=0!=(this.state[~~(a/8)]&1<<7-a%8),t&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),f=0!=(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,f&&(i[0]=i[0]^225<<24)}this.state=n(o)},i.prototype.update=function(e){this.cache=o.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(o.concat([this.cache,a],16)),this.ghash(n([0,e,0,t])),this.state},t.exports=i},{"safe-buffer":144}],29:[function(e,t,f){function r(e){for(var t,f=e.length;f--;){if(255!==(t=e.readUInt8(f))){t++,e.writeUInt8(t,f);break}e.writeUInt8(0,f)}}t.exports=r},{}],30:[function(e,t,f){var r=e("buffer-xor");f.encrypt=function(e,t){var f=r(t,e._prev);return e._prev=e._cipher.encryptBlock(f),e._prev},f.decrypt=function(e,t){var f=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return r(n,f)}},{"buffer-xor":50}],31:[function(e,t,f){function r(e,t,f){var r=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(r),e._prev=n.concat([e._prev,f?t:o]),o}var n=e("safe-buffer").Buffer,i=e("buffer-xor");f.encrypt=function(e,t,f){for(var i,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,r(e,t,f)]);break}i=e._cache.length,o=n.concat([o,r(e,t.slice(0,i),f)]),t=t.slice(i)}return o}},{"buffer-xor":50,"safe-buffer":144}],32:[function(e,t,f){function r(e,t,f){for(var r,i,o,a=-1,s=0;++a<8;)r=e._cipher.encryptBlock(e._prev),i=t&1<<7-a?128:0,o=r[0]^i,s+=(128&o)>>a%8,e._prev=n(e._prev,f?i:o);return s}function n(e,t){var f=e.length,r=-1,n=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++r<f;)n[r]=e[r]<<1|e[r+1]>>7;return n}var i=e("safe-buffer").Buffer;f.encrypt=function(e,t,f){for(var n=t.length,o=i.allocUnsafe(n),a=-1;++a<n;)o[a]=r(e,t[a],f);return o}},{"safe-buffer":144}],33:[function(e,t,f){function r(e,t,f){var r=e._cipher.encryptBlock(e._prev),i=r[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([f?t:i])]),i}var n=e("safe-buffer").Buffer;f.encrypt=function(e,t,f){for(var i=t.length,o=n.allocUnsafe(i),a=-1;++a<i;)o[a]=r(e,t[a],f);return o}},{"safe-buffer":144}],34:[function(e,t,f){function r(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var n=e("buffer-xor"),i=e("safe-buffer").Buffer,o=e("../incr32");f.encrypt=function(e,t){var f=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*f)]);for(var a=0;a<f;a++){var s=r(e),c=o+16*a;e._cache.writeUInt32BE(s[0],c+0),e._cache.writeUInt32BE(s[1],c+4),e._cache.writeUInt32BE(s[2],c+8),e._cache.writeUInt32BE(s[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":29,"buffer-xor":50,"safe-buffer":144}],35:[function(e,t,f){f.encrypt=function(e,t){return e._cipher.encryptBlock(t)},f.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],36:[function(e,t,f){var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},n=e("./list.json");for(var i in n)n[i].module=r[n[i].mode];t.exports=n},{"./cbc":30,"./cfb":31,"./cfb1":32,"./cfb8":33,"./ctr":34,"./ecb":35,"./list.json":37,"./ofb":38}],37:[function(e,t,f){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],38:[function(e,t,f){(function(t){function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}var n=e("buffer-xor");f.encrypt=function(e,f){for(;e._cache.length<f.length;)e._cache=t.concat([e._cache,r(e)]);var i=e._cache.slice(0,f.length);return e._cache=e._cache.slice(f.length),n(f,i)}}).call(this,e("buffer").Buffer)},{buffer:274,"buffer-xor":50}],39:[function(e,t,f){function r(e,t,f,r){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(f),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=r,this._mode=e}var n=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base");e("inherits")(r,o),r.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},t.exports=r},{"./aes":23,"cipher-base":51,inherits:108,"safe-buffer":144}],40:[function(e,t,f){function r(e,t){e=e.toLowerCase();var f,r;if(u[e])f=u[e].key,r=u[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");f=8*d[e].key,r=d[e].iv}var n=h(t,!1,f,r);return i(e,n.key,n.iv)}function n(e,t){e=e.toLowerCase();var f,r;if(u[e])f=u[e].key,r=u[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");f=8*d[e].key,r=d[e].iv}var n=h(t,!1,f,r);return o(e,n.key,n.iv)}function i(e,t,f){if(e=e.toLowerCase(),u[e])return c.createCipheriv(e,t,f);if(d[e])return new s({key:t,iv:f,mode:e});throw new TypeError("invalid suite type")}function o(e,t,f){if(e=e.toLowerCase(),u[e])return c.createDecipheriv(e,t,f);if(d[e])return new s({key:t,iv:f,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function a(){return Object.keys(d).concat(c.getCiphers())}var s=e("browserify-des"),c=e("browserify-aes/browser"),u=e("browserify-aes/modes"),d=e("browserify-des/modes"),h=e("evp_bytestokey");f.createCipher=f.Cipher=r,f.createCipheriv=f.Cipheriv=i,f.createDecipher=f.Decipher=n,f.createDecipheriv=f.Decipheriv=o,f.listCiphers=f.getCiphers=a},{"browserify-aes/browser":25,"browserify-aes/modes":36,"browserify-des":41,"browserify-des/modes":42,evp_bytestokey:91}],41:[function(e,t,f){function r(e){n.call(this);var t,f=e.mode.toLowerCase(),r=s[f];t=e.decrypt?"decrypt":"encrypt";var i=e.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==f&&"des-ede-cbc"!==f||(i=a.concat([i,i.slice(0,8)]));var o=e.iv;a.isBuffer(o)||(o=a.from(o)),this._des=r.create({key:i,iv:o,type:t})}var n=e("cipher-base"),i=e("des.js"),o=e("inherits"),a=e("safe-buffer").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=r,o(r,n),r.prototype._update=function(e){return a.from(this._des.update(e))},r.prototype._final=function(){return a.from(this._des.final())}},{"cipher-base":51,"des.js":59,inherits:108,"safe-buffer":144}],42:[function(e,t,f){f["des-ecb"]={key:8,iv:0},f["des-cbc"]=f.des={key:8,iv:8},f["des-ede3-cbc"]=f.des3={key:24,iv:8},f["des-ede3"]={key:24,iv:0},f["des-ede-cbc"]={key:16,iv:8},f["des-ede"]={key:16,iv:0}},{}],43:[function(e,t,f){(function(f){function r(e){var t=i(e);return{blinder:t.toRed(o.mont(e.modulus)).redPow(new o(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function n(e,t){var n=r(t),i=t.modulus.byteLength(),a=(o.mont(t.modulus),new o(e).mul(n.blinder).umod(t.modulus)),s=a.toRed(o.mont(t.prime1)),c=a.toRed(o.mont(t.prime2)),u=t.coefficient,d=t.prime1,h=t.prime2,l=s.redPow(t.exponent1),p=c.redPow(t.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(u).umod(d);return b.imul(h),p.iadd(b),new f(p.imul(n.unblinder).umod(t.modulus).toArray(!1,i))}function i(e){for(var t=e.modulus.byteLength(),f=new o(a(t));f.cmp(e.modulus)>=0||!f.umod(e.prime1)||!f.umod(e.prime2);)f=new o(a(t));return f}var o=e("bn.js"),a=e("randombytes");t.exports=n,n.getr=i}).call(this,e("buffer").Buffer)},{"bn.js":21,buffer:274,randombytes:138}],44:[function(e,t,f){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":45}],45:[function(e,t,f){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",
hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],46:[function(e,t,f){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],47:[function(e,t,f){(function(f){function r(e){s.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function n(e){s.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){return new r(e)}function o(e){return new n(e)}var a=e("create-hash"),s=e("stream"),c=e("inherits"),u=e("./sign"),d=e("./verify"),h=e("./algorithms.json");Object.keys(h).forEach(function(e){h[e].id=new f(h[e].id,"hex"),h[e.toLowerCase()]=h[e]}),c(r,s.Writable),r.prototype._write=function(e,t,f){this._hash.update(e),f()},r.prototype.update=function(e,t){return"string"==typeof e&&(e=new f(e,t)),this._hash.update(e),this},r.prototype.sign=function(e,t){this.end();var f=this._hash.digest(),r=u(f,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},c(n,s.Writable),n.prototype._write=function(e,t,f){this._hash.update(e),f()},n.prototype.update=function(e,t){return"string"==typeof e&&(e=new f(e,t)),this._hash.update(e),this},n.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new f(t,r)),this.end();var n=this._hash.digest();return d(t,n,e,this._signType,this._tag)},t.exports={Sign:i,Verify:o,createSign:i,createVerify:o}}).call(this,e("buffer").Buffer)},{"./algorithms.json":45,"./sign":48,"./verify":49,buffer:274,"create-hash":53,inherits:108,stream:380}],48:[function(e,t,f){(function(f){function r(e,t,r,o,a){var s=m(t);if(s.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return n(e,s)}if("dsa"===s.type){if("dsa"!==o)throw new Error("wrong private key type");return i(e,s,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=f.concat([a,e]);for(var c=s.modulus.byteLength(),u=[0,1];e.length+u.length+1<c;)u.push(255);u.push(0);for(var d=-1;++d<e.length;)u.push(e[d]);return l(u,s)}function n(e,t){var r=y[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new p(r),i=n.keyFromPrivate(t.privateKey),o=i.sign(e);return new f(o.toDER())}function i(e,t,f){for(var r,n=t.params.priv_key,i=t.params.p,c=t.params.q,h=t.params.g,l=new b(0),p=s(e,c).mod(c),m=!1,y=a(n,c,e,f);!1===m;)r=u(c,y,f),l=d(h,r,i,c),m=r.invm(c).imul(p.add(n.mul(l))).mod(c),0===m.cmpn(0)&&(m=!1,l=new b(0));return o(l,m)}function o(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=e.length+t.length+4,n=[48,r,2,e.length];return n=n.concat(e,[2,t.length],t),new f(n)}function a(e,t,r,n){if(e=new f(e.toArray()),e.length<t.byteLength()){var i=new f(t.byteLength()-e.length);i.fill(0),e=f.concat([i,e])}var o=r.length,a=c(r,t),s=new f(o);s.fill(1);var u=new f(o);return u.fill(0),u=h(n,u).update(s).update(new f([0])).update(e).update(a).digest(),s=h(n,u).update(s).digest(),u=h(n,u).update(s).update(new f([1])).update(e).update(a).digest(),s=h(n,u).update(s).digest(),{k:u,v:s}}function s(e,t){var f=new b(e),r=(e.length<<3)-t.bitLength();return r>0&&f.ishrn(r),f}function c(e,t){e=s(e,t),e=e.mod(t);var r=new f(e.toArray());if(r.length<t.byteLength()){var n=new f(t.byteLength()-r.length);n.fill(0),r=f.concat([n,r])}return r}function u(e,t,r){var n,i;do{for(n=new f(0);8*n.length<e.bitLength();)t.v=h(r,t.k).update(t.v).digest(),n=f.concat([n,t.v]);i=s(n,e),t.k=h(r,t.k).update(t.v).update(new f([0])).digest(),t.v=h(r,t.k).update(t.v).digest()}while(-1!==i.cmp(e));return i}function d(e,t,f,r){return e.toRed(b.mont(f)).redPow(t).fromRed().mod(r)}var h=e("create-hmac"),l=e("browserify-rsa"),p=e("elliptic").ec,b=e("bn.js"),m=e("parse-asn1"),y=e("./curves.json");t.exports=r,t.exports.getKey=a,t.exports.makeKey=u}).call(this,e("buffer").Buffer)},{"./curves.json":46,"bn.js":21,"browserify-rsa":43,buffer:274,"create-hmac":55,elliptic:69,"parse-asn1":124}],49:[function(e,t,f){(function(f){function r(e,t,r,o,s){var u=c(r);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return n(e,t,u)}if("dsa"===u.type){if("dsa"!==o)throw new Error("wrong public key type");return i(e,t,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");t=f.concat([s,t]);for(var d=u.modulus.byteLength(),h=[1],l=0;t.length+h.length+2<d;)h.push(255),l++;h.push(0);for(var p=-1;++p<t.length;)h.push(t[p]);h=new f(h);var b=a.mont(u.modulus);e=new a(e).toRed(b),e=e.redPow(new a(u.publicExponent)),e=new f(e.fromRed().toArray());var m=l<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(m=1),p=-1;++p<d;)m|=e[p]^h[p];return 0===m}function n(e,t,f){var r=u[f.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+f.data.algorithm.curve.join("."));var n=new s(r),i=f.data.subjectPrivateKey.data;return n.verify(t,e,i)}function i(e,t,f){var r=f.data.p,n=f.data.q,i=f.data.g,s=f.data.pub_key,u=c.signature.decode(e,"der"),d=u.s,h=u.r;o(d,n),o(h,n);var l=a.mont(r),p=d.invm(n);return 0===i.toRed(l).redPow(new a(t).mul(p).mod(n)).fromRed().mul(s.toRed(l).redPow(h.mul(p).mod(n)).fromRed()).mod(r).mod(n).cmp(h)}function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var a=e("bn.js"),s=e("elliptic").ec,c=e("parse-asn1"),u=e("./curves.json");t.exports=r}).call(this,e("buffer").Buffer)},{"./curves.json":46,"bn.js":21,buffer:274,elliptic:69,"parse-asn1":124}],50:[function(e,t,f){(function(e){t.exports=function(t,f){for(var r=Math.min(t.length,f.length),n=new e(r),i=0;i<r;++i)n[i]=t[i]^f[i];return n}}).call(this,e("buffer").Buffer)},{buffer:274}],51:[function(e,t,f){function r(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}var n=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("string_decoder").StringDecoder;e("inherits")(r,i),r.prototype.update=function(e,t,f){"string"==typeof e&&(e=n.from(e,t));var r=this._update(e);return this.hashMode?this:(f&&(r=this._toString(r,f)),r)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,f){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{f(r)}},r.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},r.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,f){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return f&&(r+=this._decoder.end()),r},t.exports=r},{inherits:108,"safe-buffer":144,stream:380,string_decoder:381}],52:[function(e,t,f){(function(f){function r(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function n(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new f(e);if(r&&n.length<r){var i=new f(r-n.length);i.fill(0),n=f.concat([i,n])}return t?n.toString(t):n}var i=e("elliptic"),o=e("bn.js");t.exports=function(e){return new r(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,r.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},r.prototype.computeSecret=function(e,t,r){return t=t||"utf8",f.isBuffer(e)||(e=new f(e,t)),n(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(e,t){var f=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(f[f.length-1]%2?f[0]=7:f[0]=6),n(f,e)},r.prototype.getPrivateKey=function(e){return n(this.keys.getPrivate(),e)},r.prototype.setPublicKey=function(e,t){return t=t||"utf8",f.isBuffer(e)||(e=new f(e,t)),this.keys._importPublic(e),this},r.prototype.setPrivateKey=function(e,t){t=t||"utf8",f.isBuffer(e)||(e=new f(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":21,buffer:274,elliptic:69}],53:[function(e,t,f){"use strict";function r(e){s.call(this,"digest"),this._hash=e}var n=e("inherits"),i=e("md5.js"),o=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");n(r,s),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),"md5"===e?new i:"rmd160"===e||"ripemd160"===e?new o:new r(a(e))}},{"cipher-base":51,inherits:108,"md5.js":112,ripemd160:143,"sha.js":148}],54:[function(e,t,f){var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":112}],55:[function(e,t,f){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var f="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>f){t=("rmd160"===e?new c:u(e)).update(t).digest()}else t.length<f&&(t=a.concat([t,d],f));for(var r=this._ipad=a.allocUnsafe(f),n=this._opad=a.allocUnsafe(f),i=0;i<f;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash="rmd160"===e?new c:u(e),this._hash.update(r)}var n=e("inherits"),i=e("./legacy"),o=e("cipher-base"),a=e("safe-buffer").Buffer,s=e("create-hash/md5"),c=e("ripemd160"),u=e("sha.js"),d=a.alloc(128);n(r,o),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return e=e.toLowerCase(),"rmd160"===e||"ripemd160"===e?new r("rmd160",t):"md5"===e?new i(s,t):new r(e,t)}},{"./legacy":56,"cipher-base":51,"create-hash/md5":54,inherits:108,ripemd160:143,"safe-buffer":144,"sha.js":148}],56:[function(e,t,f){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var f=this._ipad=i.allocUnsafe(s),r=this._opad=i.allocUnsafe(s),n=0;n<s;n++)f[n]=54^t[n],r[n]=92^t[n];this._hash=[f]}var n=e("inherits"),i=e("safe-buffer").Buffer,o=e("cipher-base"),a=i.alloc(128),s=64;n(r,o),r.prototype._update=function(e){this._hash.push(e)},r.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=r},{"cipher-base":51,inherits:108,"safe-buffer":144}],57:[function(e,t,f){"use strict";f.randomBytes=f.rng=f.pseudoRandomBytes=f.prng=e("randombytes"),f.createHash=f.Hash=e("create-hash"),f.createHmac=f.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),n=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);f.getHashes=function(){return i};var o=e("pbkdf2");f.pbkdf2=o.pbkdf2,f.pbkdf2Sync=o.pbkdf2Sync;var a=e("browserify-cipher");f.Cipher=a.Cipher,f.createCipher=a.createCipher,f.Cipheriv=a.Cipheriv,f.createCipheriv=a.createCipheriv,f.Decipher=a.Decipher,f.createDecipher=a.createDecipher,f.Decipheriv=a.Decipheriv,f.createDecipheriv=a.createDecipheriv,f.getCiphers=a.getCiphers,f.listCiphers=a.listCiphers;var s=e("diffie-hellman");f.DiffieHellmanGroup=s.DiffieHellmanGroup,f.createDiffieHellmanGroup=s.createDiffieHellmanGroup,f.getDiffieHellman=s.getDiffieHellman,f.createDiffieHellman=s.createDiffieHellman,f.DiffieHellman=s.DiffieHellman;var c=e("browserify-sign");f.createSign=c.createSign,f.Sign=c.Sign,f.createVerify=c.createVerify,f.Verify=c.Verify,f.createECDH=e("create-ecdh");var u=e("public-encrypt");f.publicEncrypt=u.publicEncrypt,f.privateEncrypt=u.privateEncrypt,f.publicDecrypt=u.publicDecrypt,f.privateDecrypt=u.privateDecrypt;var d=e("randomfill");f.randomFill=d.randomFill,f.randomFillSync=d.randomFillSync,f.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},f.constants={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,ALPN_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}},{"browserify-cipher":40,"browserify-sign":47,"browserify-sign/algos":44,"create-ecdh":52,"create-hash":53,"create-hmac":55,"diffie-hellman":65,pbkdf2:126,"public-encrypt":131,randombytes:138,randomfill:139}],58:[function(e,t,f){"use strict";function r(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var f=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],r(f),r(n))}function n(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(o),f=1;f<t.length;f++)e=r(t,f).join(""),t=e.match(o);return e}}function i(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},f=a.exec(e);f;){try{t[f[0]]=decodeURIComponent(f[0])}catch(e){var r=n(f[0]);r!==f[0]&&(t[f[0]]=r)}f=a.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}var o=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return i(e)}}},{}],59:[function(e,t,f){"use strict";f.utils=e("./des/utils"),f.Cipher=e("./des/cipher"),f.DES=e("./des/des"),f.CBC=e("./des/cbc"),f.EDE=e("./des/ede")},{"./des/cbc":60,"./des/cipher":61,"./des/des":62,"./des/ede":63,"./des/utils":64}],60:[function(e,t,f){"use strict";function r(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function n(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var f=Object.keys(a),r=0;r<f.length;r++){var n=f[r];t.prototype[n]=a[n]}return t.create=function(e){return new t(e)},t}var i=e("minimalistic-assert"),o=e("inherits"),a={};f.instantiate=n,a._cbcInit=function(){var e=new r(this.options.iv);this._cbcState=e},a._update=function(e,t,f,r){var n=this._cbcState,i=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)o[a]^=e[t+a];i._update.call(this,o,0,f,r);for(var a=0;a<this.blockSize;a++)o[a]=f[r+a]}else{i._update.call(this,e,t,f,r);for(var a=0;a<this.blockSize;a++)f[r+a]^=o[a];for(var a=0;a<this.blockSize;a++)o[a]=e[t+a]}}},{inherits:108,"minimalistic-assert":114}],61:[function(e,t,f){"use strict";function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var n=e("minimalistic-assert");t.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},r.prototype._buffer=function(e,t){for(var f=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<f;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=f,f},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,f=0,r=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(f+=this._flushBuffer(n,f)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,f),f+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},r.prototype._updateDecrypt=function(e){for(var t=0,f=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),f+=this._flushBuffer(n,f);return t+=this._buffer(e,t),n},r.prototype.final=function(e){var t;e&&(t=this.update(e));var f;return f="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(f):f},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":114}],62:[function(e,t,f){"use strict";function r(){this.tmp=new Array(2),this.keys=null}function n(e){c.call(this,e);var t=new r;this._desState=t,this.deriveKeys(t,e.key)}var i=e("minimalistic-assert"),o=e("inherits"),a=e("../des"),s=a.utils,c=a.Cipher;o(n,c),t.exports=n,n.create=function(e){return new n(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var f=s.readUInt32BE(t,0),r=s.readUInt32BE(t,4);s.pc1(f,r,e.tmp,0),f=e.tmp[0],r=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var o=u[n>>>1];f=s.r28shl(f,o),r=s.r28shl(r,o),s.pc2(f,r,e.keys,n)}},n.prototype._update=function(e,t,f,r){var n=this._desState,i=s.readUInt32BE(e,t),o=s.readUInt32BE(e,t+4);s.ip(i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,i,o,n.tmp,0):this._decrypt(n,i,o,n.tmp,0),i=n.tmp[0],o=n.tmp[1],s.writeUInt32BE(f,i,r),s.writeUInt32BE(f,o,r+4)},n.prototype._pad=function(e,t){for(var f=e.length-t,r=t;r<e.length;r++)e[r]=f;return!0},n.prototype._unpad=function(e){for(var t=e[e.length-1],f=e.length-t;f<e.length;f++)i.equal(e[f],t);return e.slice(0,e.length-t)},n.prototype._encrypt=function(e,t,f,r,n){for(var i=t,o=f,a=0;a<e.keys.length;a+=2){var c=e.keys[a],u=e.keys[a+1];s.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=s.substitute(c,u),h=s.permute(d),l=o;o=(i^h)>>>0,i=l}s.rip(o,i,r,n)},n.prototype._decrypt=function(e,t,f,r,n){for(var i=f,o=t,a=e.keys.length-2;a>=0;a-=2){var c=e.keys[a],u=e.keys[a+1];s.expand(i,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=s.substitute(c,u),h=s.permute(d),l=i;i=(o^h)>>>0,o=l}s.rip(i,o,r,n)}},{"../des":59,inherits:108,"minimalistic-assert":114}],63:[function(e,t,f){"use strict";function r(e,t){i.equal(t.length,24,"Invalid key length");var f=t.slice(0,8),r=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[c.create({type:"encrypt",key:f}),c.create({type:"decrypt",key:r}),c.create({type:"encrypt",key:n})]:[c.create({type:"decrypt",key:n}),c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:f})]}function n(e){s.call(this,e);var t=new r(this.type,this.options.key);this._edeState=t}var i=e("minimalistic-assert"),o=e("inherits"),a=e("../des"),s=a.Cipher,c=a.DES;o(n,s),t.exports=n,n.create=function(e){return new n(e)},n.prototype._update=function(e,t,f,r){var n=this._edeState;n.ciphers[0]._update(e,t,f,r),n.ciphers[1]._update(f,r,f,r),n.ciphers[2]._update(f,r,f,r)},n.prototype._pad=c.prototype._pad,n.prototype._unpad=c.prototype._unpad},{"../des":59,inherits:108,"minimalistic-assert":114}],64:[function(e,t,f){"use strict";f.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},f.writeUInt32BE=function(e,t,f){e[0+f]=t>>>24,e[1+f]=t>>>16&255,e[2+f]=t>>>8&255,e[3+f]=255&t},f.ip=function(e,t,f,r){for(var n=0,i=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)n<<=1,n|=t>>>a+o&1;for(var a=0;a<=24;a+=8)n<<=1,n|=e>>>a+o&1}for(var o=6;o>=0;o-=2){for(var a=1;a<=25;a+=8)i<<=1,i|=t>>>a+o&1;for(var a=1;a<=25;a+=8)i<<=1,i|=e>>>a+o&1}f[r+0]=n>>>0,f[r+1]=i>>>0},f.rip=function(e,t,f,r){for(var n=0,i=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)n<<=1,n|=t>>>a+o&1,n<<=1,n|=e>>>a+o&1;for(var o=4;o<8;o++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+o&1,i<<=1,i|=e>>>a+o&1;f[r+0]=n>>>0,f[r+1]=i>>>0},f.pc1=function(e,t,f,r){for(var n=0,i=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)n<<=1,n|=t>>a+o&1;for(var a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1}for(var a=0;a<=24;a+=8)n<<=1,n|=t>>a+o&1;for(var o=1;o<=3;o++){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+o&1;for(var a=0;a<=24;a+=8)i<<=1,i|=e>>a+o&1}for(var a=0;a<=24;a+=8)i<<=1,i|=e>>a+o&1;f[r+0]=n>>>0,f[r+1]=i>>>0},f.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];f.pc2=function(e,t,f,n){for(var i=0,o=0,a=r.length>>>1,s=0;s<a;s++)i<<=1,i|=e>>>r[s]&1;for(var s=a;s<r.length;s++)o<<=1,o|=t>>>r[s]&1;f[n+0]=i>>>0,f[n+1]=o>>>0},f.expand=function(e,t,f){var r=0,n=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(var i=11;i>=3;i-=4)n|=e>>>i&63,n<<=6;n|=(31&e)<<1|e>>>31,t[f+0]=r>>>0,t[f+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];f.substitute=function(e,t){for(var f=0,r=0;r<4;r++){var i=e>>>18-6*r&63,o=n[64*r+i];f<<=4,f|=o}for(var r=0;r<4;r++){var i=t>>>18-6*r&63,o=n[256+64*r+i];f<<=4,f|=o}return f>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];f.permute=function(e){for(var t=0,f=0;f<i.length;f++)t<<=1,t|=e>>>i[f]&1;return t>>>0},f.padSplit=function(e,t,f){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var n=[],i=0;i<t;i+=f)n.push(r.slice(i,i+f));return n.join(" ")}},{}],65:[function(e,t,f){(function(t){function r(e){var f=new t(o[e].prime,"hex"),r=new t(o[e].gen,"hex");return new a(f,r)}function n(e,f,r,o){return t.isBuffer(f)||void 0===s[f]?n(e,"binary",f,r):(f=f||"binary",o=o||"binary",r=r||new t([2]),t.isBuffer(r)||(r=new t(r,o)),"number"==typeof e?new a(i(e,r),r,!0):(t.isBuffer(e)||(e=new t(e,f)),new a(e,r,!0)))}var i=e("./lib/generatePrime"),o=e("./lib/primes.json"),a=e("./lib/dh"),s={binary:!0,hex:!0,base64:!0};f.DiffieHellmanGroup=f.createDiffieHellmanGroup=f.getDiffieHellman=r,f.createDiffieHellman=f.DiffieHellman=n}).call(this,e("buffer").Buffer)},{"./lib/dh":66,"./lib/generatePrime":67,"./lib/primes.json":68,buffer:274}],66:[function(e,t,f){(function(f){function r(e,t){return t=t||"utf8",f.isBuffer(e)||(e=new f(e,t)),this._pub=new s(e),this}function n(e,t){return t=t||"utf8",f.isBuffer(e)||(e=new f(e,t)),this._priv=new s(e),this}function i(e,t){var f=t.toString("hex"),r=[f,e.toString(16)].join("_");if(r in v)return v[r];var n=0;if(e.isEven()||!m.simpleSieve||!m.fermatTest(e)||!u.test(e))return n+=1,n+="02"===f||"05"===f?8:4,v[r]=n,n;u.test(e.shrn(1))||(n+=2);var i;switch(f){case"02":e.mod(d).cmp(h)&&(n+=8);break;case"05":i=e.mod(l),i.cmp(p)&&i.cmp(b)&&(n+=8);break;default:n+=4}return v[r]=n,n}function o(e,t,f){this.setGenerator(t),this.__prime=new s(e),this._prime=s.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,f?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}function a(e,t){var r=new f(e.toArray());return t?r.toString(t):r}var s=e("bn.js"),c=e("miller-rabin"),u=new c,d=new s(24),h=new s(11),l=new s(10),p=new s(3),b=new s(7),m=e("./generatePrime"),y=e("randombytes");t.exports=o;var v={};Object.defineProperty(o.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=i(this.__prime,this.__gen)),this._primeCode}}),o.prototype.generateKeys=function(){return this._priv||(this._priv=new s(y(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},o.prototype.computeSecret=function(e){e=new s(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new f(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new f(n.length-r.length);i.fill(0),r=f.concat([i,r])}return r},o.prototype.getPublicKey=function(e){return a(this._pub,e)},o.prototype.getPrivateKey=function(e){return a(this._priv,e)},o.prototype.getPrime=function(e){return a(this.__prime,e)},o.prototype.getGenerator=function(e){return a(this._gen,e)},o.prototype.setGenerator=function(e,t){return t=t||"utf8",f.isBuffer(e)||(e=new f(e,t)),this.__gen=e,this._gen=new s(e),this}}).call(this,e("buffer").Buffer)},{"./generatePrime":67,"bn.js":21,buffer:274,"miller-rabin":113,randombytes:138}],67:[function(e,t,f){function r(){if(null!==g)return g;var e=[];e[0]=2;for(var t=1,f=3;f<1048576;f+=2){for(var r=Math.ceil(Math.sqrt(f)),n=0;n<t&&e[n]<=r&&f%e[n]!=0;n++);t!==n&&e[n]<=r||(e[t++]=f)}return g=e,e}function n(e){for(var t=r(),f=0;f<t.length;f++)if(0===e.modn(t[f]))return 0===e.cmpn(t[f]);return!0}function i(e){var t=s.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function o(e,t){if(e<16)return new s(2===t||5===t?[140,123]:[140,39]);t=new s(t);for(var f,r;;){for(f=new s(a(Math.ceil(e/8)));f.bitLength()>e;)f.ishrn(1);if(f.isEven()&&f.iadd(h),f.testn(1)||f.iadd(l),t.cmp(l)){if(!t.cmp(p))for(;f.mod(b).cmp(m);)f.iadd(v)}else for(;f.mod(c).cmp(y);)f.iadd(v);if(r=f.shrn(1),n(r)&&n(f)&&i(r)&&i(f)&&d.test(r)&&d.test(f))return f}}var a=e("randombytes");t.exports=o,o.simpleSieve=n,o.fermatTest=i;var s=e("bn.js"),c=new s(24),u=e("miller-rabin"),d=new u,h=new s(1),l=new s(2),p=new s(5),b=(new s(16),new s(8),new s(10)),m=new s(3),y=(new s(7),new s(11)),v=new s(4),g=(new s(12),null)},{"bn.js":21,"miller-rabin":113,randombytes:138}],68:[function(e,t,f){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",
prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],69:[function(e,t,f){"use strict";var r=f;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":84,"./elliptic/curve":72,"./elliptic/curves":75,"./elliptic/ec":76,"./elliptic/eddsa":79,"./elliptic/utils":83,brorand:22}],70:[function(e,t,f){"use strict";function r(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var f=this.n&&this.p.div(this.n);!f||f.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function n(e,t){this.curve=e,this.type=t,this.precomputed=null}var i=e("bn.js"),o=e("../../elliptic"),a=o.utils,s=a.getNAF,c=a.getJSF,u=a.assert;t.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(e,t){u(e.precomputed);var f=e._getDoubles(),r=s(t,1),n=(1<<f.step+1)-(f.step%2==0?2:1);n/=3;for(var i=[],o=0;o<r.length;o+=f.step){for(var a=0,t=o+f.step-1;t>=o;t--)a=(a<<1)+r[t];i.push(a)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=n;h>0;h--){for(var o=0;o<i.length;o++){var a=i[o];a===h?d=d.mixedAdd(f.points[o]):a===-h&&(d=d.mixedAdd(f.points[o].neg()))}c=c.add(d)}return c.toP()},r.prototype._wnafMul=function(e,t){var f=4,r=e._getNAFPoints(f);f=r.wnd;for(var n=r.points,i=s(t,f),o=this.jpoint(null,null,null),a=i.length-1;a>=0;a--){for(var t=0;a>=0&&0===i[a];a--)t++;if(a>=0&&t++,o=o.dblp(t),a<0)break;var c=i[a];u(0!==c),o="affine"===e.type?c>0?o.mixedAdd(n[c-1>>1]):o.mixedAdd(n[-c-1>>1].neg()):c>0?o.add(n[c-1>>1]):o.add(n[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},r.prototype._wnafMulAdd=function(e,t,f,r,n){for(var i=this._wnafT1,o=this._wnafT2,a=this._wnafT3,u=0,d=0;d<r;d++){var h=t[d],l=h._getNAFPoints(e);i[d]=l.wnd,o[d]=l.points}for(var d=r-1;d>=1;d-=2){var p=d-1,b=d;if(1===i[p]&&1===i[b]){var m=[t[p],null,null,t[b]];0===t[p].y.cmp(t[b].y)?(m[1]=t[p].add(t[b]),m[2]=t[p].toJ().mixedAdd(t[b].neg())):0===t[p].y.cmp(t[b].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[b]),m[2]=t[p].add(t[b].neg())):(m[1]=t[p].toJ().mixedAdd(t[b]),m[2]=t[p].toJ().mixedAdd(t[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=c(f[p],f[b]);u=Math.max(v[0].length,u),a[p]=new Array(u),a[b]=new Array(u);for(var g=0;g<u;g++){var w=0|v[0][g],_=0|v[1][g];a[p][g]=y[3*(w+1)+(_+1)],a[b][g]=0,o[p]=m}}else a[p]=s(f[p],i[p]),a[b]=s(f[b],i[b]),u=Math.max(a[p].length,u),u=Math.max(a[b].length,u)}for(var S=this.jpoint(null,null,null),M=this._wnafT4,d=u;d>=0;d--){for(var k=0;d>=0;){for(var x=!0,g=0;g<r;g++)M[g]=0|a[g][d],0!==M[g]&&(x=!1);if(!x)break;k++,d--}if(d>=0&&k++,S=S.dblp(k),d<0)break;for(var g=0;g<r;g++){var h,E=M[g];0!==E&&(E>0?h=o[g][E-1>>1]:E<0&&(h=o[g][-E-1>>1].neg()),S="affine"===h.type?S.mixedAdd(h):S.add(h))}}for(var d=0;d<r;d++)o[d]=null;return n?S:S.toP()},r.BasePoint=n,n.prototype.eq=function(){throw new Error("Not implemented")},n.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(e,t){e=a.toArray(e,t);var f=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*f){6===e[0]?u(e[e.length-1]%2==0):7===e[0]&&u(e[e.length-1]%2==1);return this.point(e.slice(1,1+f),e.slice(1+f,1+2*f))}if((2===e[0]||3===e[0])&&e.length-1===f)return this.pointFromX(e.slice(1,1+f),3===e[0]);throw new Error("Unknown point format")},n.prototype.encodeCompressed=function(e){return this.encode(e,!0)},n.prototype._encode=function(e){var t=this.curve.p.byteLength(),f=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(f):[4].concat(f,this.getY().toArray("be",t))},n.prototype.encode=function(e,t){return a.encode(this._encode(t),e)},n.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},n.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},n.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],r=this,n=0;n<t;n+=e){for(var i=0;i<e;i++)r=r.dbl();f.push(r)}return{step:e,points:f}},n.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],f=(1<<e)-1,r=1===f?null:this.dbl(),n=1;n<f;n++)t[n]=t[n-1].add(r);return{wnd:e,points:t}},n.prototype._getBeta=function(){return null},n.prototype.dblp=function(e){for(var t=this,f=0;f<e;f++)t=t.dbl();return t}},{"../../elliptic":69,"bn.js":21}],71:[function(e,t,f){"use strict";function r(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,c.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function n(e,t,f,r,n){c.BasePoint.call(this,e,"projective"),null===t&&null===f&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(t,16),this.y=new a(f,16),this.z=r?new a(r,16):this.curve.one,this.t=n&&new a(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}var i=e("../curve"),o=e("../../elliptic"),a=e("bn.js"),s=e("inherits"),c=i.base,u=o.utils.assert;s(r,c),t.exports=r,r.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},r.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},r.prototype.jpoint=function(e,t,f,r){return this.point(e,t,f,r)},r.prototype.pointFromX=function(e,t){e=new a(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),r=this.c2.redSub(this.a.redMul(f)),n=this.one.redSub(this.c2.redMul(this.d).redMul(f)),i=r.redMul(n.redInvm()),o=i.redSqrt();if(0!==o.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},r.prototype.pointFromY=function(e,t){e=new a(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),r=f.redSub(this.one),n=f.redMul(this.d).redAdd(this.one),i=r.redMul(n.redInvm());if(0===i.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=i.redSqrt();if(0!==o.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return o.isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},r.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),f=e.y.redSqr(),r=t.redMul(this.a).redAdd(f),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(f)));return 0===r.cmp(n)},s(n,c.BasePoint),r.prototype.pointFromJSON=function(e){return n.fromJSON(this,e)},r.prototype.point=function(e,t,f,r){return new n(this,e,t,f,r)},n.fromJSON=function(e,t){return new n(e,t[0],t[1],t[2])},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},n.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var r=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),o=i.redSub(f),a=r.redSub(t),s=n.redMul(o),c=i.redMul(a),u=n.redMul(a),d=o.redMul(i);return this.curve.point(s,c,d,u)},n.prototype._projDbl=function(){var e,t,f,r=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var o=this.curve._mulA(n),a=o.redAdd(i);if(this.zOne)e=r.redSub(n).redSub(i).redMul(a.redSub(this.curve.two)),t=a.redMul(o.redSub(i)),f=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=r.redSub(n).redISub(i).redMul(c),t=a.redMul(o.redSub(i)),f=a.redMul(c)}}else{var o=n.redAdd(i),s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=o.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(o)).redMul(c),t=this.curve._mulC(o).redMul(n.redISub(i)),f=o.redMul(c)}return this.curve.point(e,t,f)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},n.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),f=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),i=f.redSub(t),o=n.redSub(r),a=n.redAdd(r),s=f.redAdd(t),c=i.redMul(o),u=a.redMul(s),d=i.redMul(s),h=o.redMul(a);return this.curve.point(c,u,h,d)},n.prototype._projAdd=function(e){var t,f,r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(i).redMul(o),s=n.redSub(a),c=n.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),d=r.redMul(s).redMul(u);return this.curve.twisted?(t=r.redMul(c).redMul(o.redSub(this.curve._mulA(i))),f=s.redMul(c)):(t=r.redMul(c).redMul(o.redSub(i)),f=this.curve._mulC(s).redMul(c)),this.curve.point(d,t,f)},n.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},n.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},n.prototype.mulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!1)},n.prototype.jmulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!0)},n.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},n.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},n.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var f=e.clone(),r=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}return!1},n.prototype.toP=n.prototype.normalize,n.prototype.mixedAdd=n.prototype.add},{"../../elliptic":69,"../curve":72,"bn.js":21,inherits:108}],72:[function(e,t,f){"use strict";var r=f;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":70,"./edwards":71,"./mont":73,"./short":74}],73:[function(e,t,f){"use strict";function r(e){s.call(this,"mont",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(e,t,f){s.BasePoint.call(this,e,"projective"),null===t&&null===f?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(t,16),this.z=new o(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var i=e("../curve"),o=e("bn.js"),a=e("inherits"),s=i.base,c=e("../../elliptic"),u=c.utils;a(r,s),t.exports=r,r.prototype.validate=function(e){var t=e.normalize().x,f=t.redSqr(),r=f.redMul(t).redAdd(f.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},a(n,s.BasePoint),r.prototype.decodePoint=function(e,t){return this.point(u.toArray(e,t),1)},r.prototype.point=function(e,t){return new n(this,e,t)},r.prototype.pointFromJSON=function(e){return n.fromJSON(this,e)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(e,t){return new n(e,t[0],t[1]||e.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},n.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),f=this.x.redSub(this.z),r=f.redSqr(),n=t.redSub(r),i=t.redMul(r),o=n.redMul(r.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,o)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(e,t){var f=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=e.x.redAdd(e.z),i=e.x.redSub(e.z),o=i.redMul(f),a=n.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},n.prototype.mul=function(e){for(var t=e.clone(),f=this,r=this.curve.point(null,null),n=this,i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(f=f.diffAdd(r,n),r=r.dbl()):(r=f.diffAdd(r,n),f=f.dbl());return r},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":69,"../curve":72,"bn.js":21,inherits:108}],74:[function(e,t,f){"use strict";function r(e){u.call(this,"short",e),this.a=new s(e.a,16).toRed(this.red),this.b=new s(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function n(e,t,f,r){u.BasePoint.call(this,e,"affine"),null===t&&null===f?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(t,16),this.y=new s(f,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function i(e,t,f,r){u.BasePoint.call(this,e,"jacobian"),null===t&&null===f&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(t,16),this.y=new s(f,16),this.z=new s(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var o=e("../curve"),a=e("../../elliptic"),s=e("bn.js"),c=e("inherits"),u=o.base,d=a.utils.assert;c(r,u),t.exports=r,r.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,f;if(e.beta)t=new s(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=r[0].cmp(r[1])<0?r[0]:r[1],t=t.toRed(this.red)}if(e.lambda)f=new s(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?f=n[0]:(f=n[1],d(0===this.g.mul(f).x.cmp(this.g.x.redMul(t))))}var i;return i=e.basis?e.basis.map(function(e){return{a:new s(e.a,16),b:new s(e.b,16)}}):this._getEndoBasis(f),{beta:t,lambda:f,basis:i}}},r.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:s.mont(e),f=new s(2).toRed(t).redInvm(),r=f.redNeg(),n=new s(3).toRed(t).redNeg().redSqrt().redMul(f);return[r.redAdd(n).fromRed(),r.redSub(n).fromRed()]},r.prototype._getEndoBasis=function(e){for(var t,f,r,n,i,o,a,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,l=this.n.clone(),p=new s(1),b=new s(0),m=new s(0),y=new s(1),v=0;0!==h.cmpn(0);){var g=l.div(h);c=l.sub(g.mul(h)),u=m.sub(g.mul(p));var w=y.sub(g.mul(b));if(!r&&c.cmp(d)<0)t=a.neg(),f=p,r=c.neg(),n=u;else if(r&&2==++v)break;a=c,l=h,h=c,m=p,p=u,y=b,b=w}i=c.neg(),o=u;var _=r.sqr().add(n.sqr());return i.sqr().add(o.sqr()).cmp(_)>=0&&(i=t,o=f),r.negative&&(r=r.neg(),n=n.neg()),i.negative&&(i=i.neg(),o=o.neg()),[{a:r,b:n},{a:i,b:o}]},r.prototype._endoSplit=function(e){var t=this.endo.basis,f=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),i=f.b.neg().mul(e).divRound(this.n),o=n.mul(f.a),a=i.mul(r.a),s=n.mul(f.b),c=i.mul(r.b);return{k1:e.sub(o).sub(a),k2:s.add(c).neg()}},r.prototype.pointFromX=function(e,t){e=new s(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=f.redSqrt();if(0!==r.redSqr().redSub(f).cmp(this.zero))throw new Error("invalid point");var n=r.fromRed().isOdd();return(t&&!n||!t&&n)&&(r=r.redNeg()),this.point(e,r)},r.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,f=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===f.redSqr().redISub(n).cmpn(0)},r.prototype._endoWnafMulAdd=function(e,t,f){for(var r=this._endoWnafT1,n=this._endoWnafT2,i=0;i<e.length;i++){var o=this._endoSplit(t[i]),a=e[i],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),r[2*i]=a,r[2*i+1]=s,n[2*i]=o.k1,n[2*i+1]=o.k2}for(var c=this._wnafMulAdd(1,r,n,2*i,f),u=0;u<2*i;u++)r[u]=null,n[u]=null;return c},c(n,u.BasePoint),r.prototype.point=function(e,t,f){return new n(this,e,t,f)},r.prototype.pointFromJSON=function(e,t){return n.fromJSON(this,e,t)},n.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var f=this.curve,r=function(e){return f.point(e.x.redMul(f.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},n.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},n.fromJSON=function(e,t,f){function r(t){return e.point(t[0],t[1],f)}"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],f);if(!t[2])return n;var i=t[2];return n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(r))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(r))}},n},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return this.inf},n.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var f=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,r)},n.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,f=this.x.redSqr(),r=e.redInvm(),n=f.redAdd(f).redIAdd(f).redIAdd(t).redMul(r),i=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},n.prototype.getX=function(){return this.x.fromRed()},n.prototype.getY=function(){return this.y.fromRed()},n.prototype.mul=function(e){return e=new s(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},n.prototype.mulAdd=function(e,t,f){var r=[this,t],n=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},n.prototype.jmulAdd=function(e,t,f){var r=[this,t],n=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},n.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},n.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var f=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(r)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(r)}}}return t},n.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(i,u.BasePoint),r.prototype.jpoint=function(e,t,f){return new i(this,e,t,f)},i.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),f=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(f,r)},i.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},i.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),f=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(f),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(f.redMul(this.z)),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),d=r.redMul(c),h=s.redSqr().redIAdd(u).redISub(d).redISub(d),l=s.redMul(d.redISub(h)).redISub(i.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,l,p)},i.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),f=this.x,r=e.x.redMul(t),n=this.y,i=e.y.redMul(t).redMul(this.z),o=f.redSub(r),a=n.redSub(i);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),c=s.redMul(o),u=f.redMul(s),d=a.redSqr().redIAdd(c).redISub(u).redISub(u),h=a.redMul(u.redISub(d)).redISub(n.redMul(c)),l=this.z.redMul(o);return this.curve.jpoint(d,h,l)},i.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,f=0;f<e;f++)t=t.dbl();return t}for(var r=this.curve.a,n=this.curve.tinv,i=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),c=o.redAdd(o),f=0;f<e;f++){var u=i.redSqr(),d=c.redSqr(),h=d.redSqr(),l=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(s)),p=i.redMul(d),b=l.redSqr().redISub(p.redAdd(p)),m=p.redISub(b),y=l.redMul(m);y=y.redIAdd(y).redISub(h);var v=c.redMul(a);f+1<e&&(s=s.redMul(h)),i=b,a=v,c=y}return this.curve.jpoint(i,c.redMul(n),a)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},i.prototype._zeroDbl=function(){var e,t,f;if(this.zOne){var r=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(i);o=o.redIAdd(o);var a=r.redAdd(r).redIAdd(r),s=a.redSqr().redISub(o).redISub(o),c=i.redIAdd(i);c=c.redIAdd(c),c=c.redIAdd(c),e=s,t=a.redMul(o.redISub(s)).redISub(c),f=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),l=this.x.redAdd(d).redSqr().redISub(u).redISub(h);l=l.redIAdd(l);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),m=h.redIAdd(h);m=m.redIAdd(m),m=m.redIAdd(m),e=b.redISub(l).redISub(l),t=p.redMul(l.redISub(e)).redISub(m),f=this.y.redMul(this.z),f=f.redIAdd(f)}return this.curve.jpoint(e,t,f)},i.prototype._threeDbl=function(){var e,t,f;if(this.zOne){var r=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(i);o=o.redIAdd(o);var a=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);e=s;var c=i.redIAdd(i);c=c.redIAdd(c),c=c.redIAdd(c),t=a.redMul(o.redISub(s)).redISub(c),f=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),l=this.x.redSub(u).redMul(this.x.redAdd(u));l=l.redAdd(l).redIAdd(l);var p=h.redIAdd(h);p=p.redIAdd(p);var b=p.redAdd(p);e=l.redSqr().redISub(b),f=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m),t=l.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,f)},i.prototype._dbl=function(){var e=this.curve.a,t=this.x,f=this.y,r=this.z,n=r.redSqr().redSqr(),i=t.redSqr(),o=f.redSqr(),a=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(n)),s=t.redAdd(t);s=s.redIAdd(s);var c=s.redMul(o),u=a.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=o.redSqr();h=h.redIAdd(h),h=h.redIAdd(h),h=h.redIAdd(h);var l=a.redMul(d).redISub(h),p=f.redAdd(f).redMul(r);return this.curve.jpoint(u,l,p)},i.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr(),r=t.redSqr(),n=e.redAdd(e).redIAdd(e),i=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r);o=o.redIAdd(o),o=o.redAdd(o).redIAdd(o),o=o.redISub(i);var a=o.redSqr(),s=r.redIAdd(r);s=s.redIAdd(s),s=s.redIAdd(s),s=s.redIAdd(s);var c=n.redIAdd(o).redSqr().redISub(i).redISub(a).redISub(s),u=t.redMul(c);u=u.redIAdd(u),u=u.redIAdd(u);var d=this.x.redMul(a).redISub(u);d=d.redIAdd(d),d=d.redIAdd(d);var h=this.y.redMul(c.redMul(s.redISub(c)).redISub(o.redMul(a)));h=h.redIAdd(h),h=h.redIAdd(h),h=h.redIAdd(h);var l=this.z.redAdd(o).redSqr().redISub(f).redISub(a);return this.curve.jpoint(d,h,l)},i.prototype.mul=function(e,t){return e=new s(e,t),this.curve._wnafMul(this,e)},i.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),f=e.z.redSqr();if(0!==this.x.redMul(f).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),n=f.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(r)).cmpn(0)},i.prototype.eqXToP=function(e){var t=this.z.redSqr(),f=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(f))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(n),0===this.x.cmp(f))return!0}return!1},i.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":69,"../curve":72,"bn.js":21,inherits:108}],75:[function(e,t,f){"use strict";function r(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var f=new r(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:f}),f}})}var i=f,o=e("hash.js"),a=e("../elliptic"),s=a.utils.assert;i.PresetCurve=r,n("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("p256",{type:"short",prime:null,
p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),n("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),n("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=e("./precomputed/secp256k1")}catch(e){c=void 0}n("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},{"../elliptic":69,"./precomputed/secp256k1":82,"hash.js":95}],76:[function(e,t,f){"use strict";function r(e){if(!(this instanceof r))return new r(e);"string"==typeof e&&(s(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var n=e("bn.js"),i=e("hmac-drbg"),o=e("../../elliptic"),a=o.utils,s=a.assert,c=e("./key"),u=e("./signature");t.exports=r,r.prototype.keyPair=function(e){return new c(this,e)},r.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},r.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},r.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),f=this.n.byteLength(),r=this.n.sub(new n(2));;){var a=new n(t.generate(f));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},r.prototype._truncateToN=function(e,t){var f=8*e.byteLength()-this.n.bitLength();return f>0&&(e=e.ushrn(f)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},r.prototype.sign=function(e,t,f,r){"object"==typeof f&&(r=f,f=null),r||(r={}),t=this.keyFromPrivate(t,f),e=this._truncateToN(new n(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new i({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;!0;h++){var l=r.k?r.k(h):new n(c.generate(this.n.byteLength()));if(l=this._truncateToN(l,!0),!(l.cmpn(1)<=0||l.cmp(d)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var y=l.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(y=y.umod(this.n),0!==y.cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return r.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new u({r:m,s:y,recoveryParam:v})}}}}}},r.prototype.verify=function(e,t,f,r){e=this._truncateToN(new n(e,16)),f=this.keyFromPublic(f,r),t=new u(t,"hex");var i=t.r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(e).umod(this.n),c=a.mul(i).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(s,f.getPublic(),c);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(i)}var d=this.g.jmulAdd(s,f.getPublic(),c);return!d.isInfinity()&&d.eqXToP(i)},r.prototype.recoverPubKey=function(e,t,f,r){s((3&f)===f,"The recovery param is more than two bits"),t=new u(t,r);var i=this.n,o=new n(e),a=t.r,c=t.s,d=1&f,h=f>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),d):this.curve.pointFromX(a,d);var l=t.r.invm(i),p=i.sub(o).mul(l).umod(i),b=c.mul(l).umod(i);return this.g.mulAdd(p,a,b)},r.prototype.getKeyRecoveryParam=function(e,t,f,r){if(t=new u(t,r),null!==t.recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var i;try{i=this.recoverPubKey(e,t,n)}catch(e){continue}if(i.eq(f))return n}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":69,"./key":77,"./signature":78,"bn.js":21,"hmac-drbg":107}],77:[function(e,t,f){"use strict";function r(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var n=e("bn.js"),i=e("../../elliptic"),o=i.utils,a=o.assert;t.exports=r,r.fromPublic=function(e,t,f){return t instanceof r?t:new r(e,{pub:t,pubEnc:f})},r.fromPrivate=function(e,t,f){return t instanceof r?t:new r(e,{priv:t,privEnc:f})},r.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},r.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,f){return this.ec.sign(e,this,t,f)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../../elliptic":69,"bn.js":21}],78:[function(e,t,f){"use strict";function r(e,t){if(e instanceof r)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function n(){this.place=0}function i(e,t){var f=e[t.place++];if(!(128&f))return f;for(var r=15&f,n=0,i=0,o=t.place;i<r;i++,o++)n<<=8,n|=e[o];return t.place=o,n}function o(e){for(var t=0,f=e.length-1;!e[t]&&!(128&e[t+1])&&t<f;)t++;return 0===t?e:e.slice(t)}function a(e,t){if(t<128)return void e.push(t);var f=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|f);--f;)e.push(t>>>(f<<3)&255);e.push(t)}var s=e("bn.js"),c=e("../../elliptic"),u=c.utils,d=u.assert;t.exports=r,r.prototype._importDER=function(e,t){e=u.toArray(e,t);var f=new n;if(48!==e[f.place++])return!1;if(i(e,f)+f.place!==e.length)return!1;if(2!==e[f.place++])return!1;var r=i(e,f),o=e.slice(f.place,r+f.place);if(f.place+=r,2!==e[f.place++])return!1;var a=i(e,f);if(e.length!==a+f.place)return!1;var c=e.slice(f.place,a+f.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new s(o),this.s=new s(c),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),f=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&f[0]&&(f=[0].concat(f)),t=o(t),f=o(f);!(f[0]||128&f[1]);)f=f.slice(1);var r=[2];a(r,t.length),r=r.concat(t),r.push(2),a(r,f.length);var n=r.concat(f),i=[48];return a(i,n.length),i=i.concat(n),u.encode(i,e)}},{"../../elliptic":69,"bn.js":21}],79:[function(e,t,f){"use strict";function r(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}var n=e("hash.js"),i=e("../../elliptic"),o=i.utils,a=o.assert,s=o.parseBytes,c=e("./key"),u=e("./signature");t.exports=r,r.prototype.sign=function(e,t){e=s(e);var f=this.keyFromSecret(t),r=this.hashInt(f.messagePrefix(),e),n=this.g.mul(r),i=this.encodePoint(n),o=this.hashInt(i,f.pubBytes(),e).mul(f.priv()),a=r.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:a,Rencoded:i})},r.prototype.verify=function(e,t,f){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(f),n=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(n)).eq(i)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},r.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},r.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},r.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},r.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,f=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),n=o.intFromLE(f);return this.curve.pointFromY(n,r)},r.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(e){return o.intFromLE(e)},r.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":69,"./key":80,"./signature":81,"hash.js":95}],80:[function(e,t,f){"use strict";function r(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}var n=e("../../elliptic"),i=n.utils,o=i.assert,a=i.parseBytes,s=i.cachedProperty;r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},s(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),f=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[f]&=127,r[f]|=64,r}),s(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},r.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},t.exports=r},{"../../elliptic":69}],81:[function(e,t,f){"use strict";function r(e,t){this.eddsa=e,"object"!=typeof t&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var n=e("bn.js"),i=e("../../elliptic"),o=i.utils,a=o.assert,s=o.cachedProperty,c=o.parseBytes;s(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=r},{"../../elliptic":69,"bn.js":21}],82:[function(e,t,f){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,
points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],83:[function(e,t,f){"use strict";function r(e,t){for(var f=[],r=1<<t+1,n=e.clone();n.cmpn(1)>=0;){var i;if(n.isOdd()){var o=n.andln(r-1);i=o>(r>>1)-1?(r>>1)-o:o,n.isubn(i)}else i=0;f.push(i);for(var a=0!==n.cmpn(0)&&0===n.andln(r-1)?t+1:1,s=1;s<a;s++)f.push(0);n.iushrn(a)}return f}function n(e,t){var f=[[],[]];e=e.clone(),t=t.clone();for(var r=0,n=0;e.cmpn(-r)>0||t.cmpn(-n)>0;){var i=e.andln(3)+r&3,o=t.andln(3)+n&3;3===i&&(i=-1),3===o&&(o=-1);var a;if(0==(1&i))a=0;else{var s=e.andln(7)+r&7;a=3!==s&&5!==s||2!==o?i:-i}f[0].push(a);var c;if(0==(1&o))c=0;else{var s=t.andln(7)+n&7;c=3!==s&&5!==s||2!==i?o:-o}f[1].push(c),2*r===a+1&&(r=1-r),2*n===c+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return f}function i(e,t,f){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=f.call(this)}}function o(e){return"string"==typeof e?s.toArray(e,"hex"):e}function a(e){return new c(e,"hex","le")}var s=f,c=e("bn.js"),u=e("minimalistic-assert"),d=e("minimalistic-crypto-utils");s.assert=u,s.toArray=d.toArray,s.zero2=d.zero2,s.toHex=d.toHex,s.encode=d.encode,s.getNAF=r,s.getJSF=n,s.cachedProperty=i,s.parseBytes=o,s.intFromLE=a},{"bn.js":21,"minimalistic-assert":114,"minimalistic-crypto-utils":115}],84:[function(e,t,f){t.exports={_from:"elliptic@^6.4.0",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.4.0",saveSpec:null,fetchSpec:"^6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh","/eth-lib","/web3-eth-accounts/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.4.0",_where:"/Users/fur/Projects/Block42/cubik-crowdsale-webfront/node_modules/eth-lib",author:{name:"Fedor Indutny",email:"[email protected]"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://[email protected]/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],85:[function(e,t,f){var r=function(e,t){for(var f=[],r=0;r<e;++r)f.push(t(r));return f},n=function(e,t){return r(e,function(){return t})},i=function(e,t){return e.concat(t)},o=function(e){for(var t=[],f=0,r=e.length;f<r;++f)for(var n=0,i=e[f].length;n<i;++n)t.push(e[f][n]);return t},a=function(e,t){for(var f=[],r=0,n=t.length;r<n;r+=e)f.push(t.slice(r,r+e));return f};t.exports={generate:r,replicate:n,concat:i,flatten:o,chunksOf:a}},{}],86:[function(e,t,f){var r=(e("./array.js"),function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)}),n=function(t){var f=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)f=window.crypto.getRandomValues(new Uint8Array(t));else{if(void 0===e)throw"Safe random numbers not available.";f=e("crypto").randomBytes(t)}for(var r="0x",n=0;n<t;++n)r+=("00"+f[n].toString(16)).slice(-2);return r},i=function(e){return(e.length-2)/2},o=function(e){return"0x"+e.reduce(function(e,t){return e+t.slice(2)},"")},a=function(e,t,f){return"0x"+f.slice(2*e+2,2*t+2)},s=function(e){for(var t="0x",f=0,r=i(e);f<r;++f)t+=e.slice(2*(r-f),2*(r-f+1));return t},c=function e(t,f){return f.length===2*t+2?f:e(t,"0x0"+f.slice(2))},u=function e(t,f){return f.length===2*t+2?f:e(t,f+"0")},d=function(e){for(var t=[],f=2,r=e.length;f<r;f+=2)t.push(parseInt(e.slice(f,f+2),16));return t},h=function(e){for(var t="0x",f=0,r=e.length;f<r;++f){var n=e[f];t+=(n<16?"0":"")+n.toString(16)}return t},l=function(e){return new Uint8Array(d(e))},p=function(e){return h([].slice.call(e,0))},b=function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},m=function(e){return parseInt(e.slice(2),16)},y=function(e,t){return e.concat(t.slice(2))},v=function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},g=function(e){return"0"===e[2]?"0x"+e.slice(3):e},w=function(e){for(var t="0x",f=0;f<e.length;++f)t+=("00"+e.charCodeAt(f).toString(16)).slice(-2);return t},_=function(e){for(var t="",f=2;f<e.length;f+=2)t+=String.fromCharCode(parseInt(e.slice(f,f+2),16));return t},S=function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},f="0x",r=0;r!=e.length;r++){var n=e.charCodeAt(r);if(n<128)f+=t(n);else{if(n<2048)f+=t(n>>6|192);else{if(n>55295&&n<56320){if(++r==e.length)return null;var i=e.charCodeAt(r);if(i<56320||i>57343)return null;n=65536+((1023&n)<<10)+(1023&i),f+=t(n>>18|240),f+=t(n>>12&63|128)}else f+=t(n>>12|224);f+=t(n>>6&63|128)}f+=t(63&n|128)}}return f},M=function(e){for(var t="",f=0,n=i(e);f<n;){var o=r(e,f++);if(o>127){if(o>191&&o<224){if(f>=n)return null;o=(31&o)<<6|63&r(e,f)}else if(o>223&&o<240){if(f+1>=n)return null;o=(15&o)<<12|(63&r(e,f))<<6|63&r(e,++f)}else{if(!(o>239&&o<248))return null;if(f+2>=n)return null;o=(7&o)<<18|(63&r(e,f))<<12|(63&r(e,++f))<<6|63&r(e,++f)}++f}if(o<=65535)t+=String.fromCharCode(o);else{if(!(o<=1114111))return null;o-=65536,t+=String.fromCharCode(o>>10|55296),t+=String.fromCharCode(1023&o|56320)}}return t};t.exports={random:n,length:i,concat:y,flatten:o,slice:a,reverse:s,pad:c,padRight:u,fromAscii:w,toAscii:_,fromString:S,toString:M,fromNumber:b,toNumber:m,fromNat:v,toNat:g,fromArray:h,toArray:d,fromUint8Array:p,toUint8Array:l}},{"./array.js":85}],87:[function(e,t,f){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){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:function(e){return[].concat(e,e,e,e,e)}([0,0,0,0,0,0,0,0,0,0])}},s=function(e,t){for(var f,o,a=t.length,s=e.blocks,u=e.blockCount<<2,d=e.blockCount,h=e.outputBlocks,l=e.s,p=0;p<a;){if(e.reset)for(e.reset=!1,s[0]=e.block,f=1;f<d+1;++f)s[f]=0;if("string"!=typeof t)for(f=e.start;p<a&&f<u;++p)s[f>>2]|=t[p]<<i[3&f++];else for(f=e.start;p<a&&f<u;++p)o=t.charCodeAt(p),o<128?s[f>>2]|=o<<i[3&f++]:o<2048?(s[f>>2]|=(192|o>>6)<<i[3&f++],s[f>>2]|=(128|63&o)<<i[3&f++]):o<55296||o>=57344?(s[f>>2]|=(224|o>>12)<<i[3&f++],s[f>>2]|=(128|o>>6&63)<<i[3&f++],s[f>>2]|=(128|63&o)<<i[3&f++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++p)),s[f>>2]|=(240|o>>18)<<i[3&f++],s[f>>2]|=(128|o>>12&63)<<i[3&f++],s[f>>2]|=(128|o>>6&63)<<i[3&f++],s[f>>2]|=(128|63&o)<<i[3&f++]);if(e.lastByteIndex=f,f>=u){for(e.start=f-u,e.block=s[d],f=0;f<d;++f)l[f]^=s[f];c(l),e.reset=!0}else e.start=f}if(f=e.lastByteIndex,s[f>>2]|=n[3&f],e.lastByteIndex===u)for(s[0]=s[d],f=1;f<d+1;++f)s[f]=0;for(s[d-1]|=2147483648,f=0;f<d;++f)l[f]^=s[f];c(l);for(var b,m="",f=0,y=0;y<h;){for(f=0;f<d&&y<h;++f,++y)b=l[f],m+=r[b>>4&15]+r[15&b]+r[b>>12&15]+r[b>>8&15]+r[b>>20&15]+r[b>>16&15]+r[b>>28&15]+r[b>>24&15];y%d==0&&(c(l),f=0)}return"0x"+m},c=function(e){var t,f,r,n,i,a,s,c,u,d,h,l,p,b,m,y,v,g,w,_,S,M,k,x,E,T,A,I,C,j,B,P,D,N,R,O,L,q,F,U,z,H,V,K,$,W,X,G,Z,J,Y,Q,ee,te,fe,re,ne,ie,oe,ae,se,ce,ue;for(r=0;r<48;r+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],i=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],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=l^(a<<1|s>>>31),f=p^(s<<1|a>>>31),e[0]^=t,e[1]^=f,e[10]^=t,e[11]^=f,e[20]^=t,e[21]^=f,e[30]^=t,e[31]^=f,e[40]^=t,e[41]^=f,t=n^(c<<1|u>>>31),f=i^(u<<1|c>>>31),e[2]^=t,e[3]^=f,e[12]^=t,e[13]^=f,e[22]^=t,e[23]^=f,e[32]^=t,e[33]^=f,e[42]^=t,e[43]^=f,t=a^(d<<1|h>>>31),f=s^(h<<1|d>>>31),e[4]^=t,e[5]^=f,e[14]^=t,e[15]^=f,e[24]^=t,e[25]^=f,e[34]^=t,e[35]^=f,e[44]^=t,e[45]^=f,t=c^(l<<1|p>>>31),f=u^(p<<1|l>>>31),e[6]^=t,e[7]^=f,e[16]^=t,e[17]^=f,e[26]^=t,e[27]^=f,e[36]^=t,e[37]^=f,e[46]^=t,e[47]^=f,t=d^(n<<1|i>>>31),f=h^(i<<1|n>>>31),e[8]^=t,e[9]^=f,e[18]^=t,e[19]^=f,e[28]^=t,e[29]^=f,e[38]^=t,e[39]^=f,e[48]^=t,e[49]^=f,b=e[0],m=e[1],W=e[11]<<4|e[10]>>>28,X=e[10]<<4|e[11]>>>28,I=e[20]<<3|e[21]>>>29,C=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,G=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,fe=e[4]<<30|e[5]>>>2,O=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,P=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,q=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,$=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~y&g,e[1]=m^~v&w,e[10]=x^~T&I,e[11]=E^~A&C,e[20]=N^~O&q,e[21]=R^~L&F,e[30]=K^~W&G,e[31]=$^~X&Z,e[40]=te^~re&ie,e[41]=fe^~ne&oe,e[2]=y^~g&_,e[3]=v^~w&S,e[12]=T^~I&j,e[13]=A^~C&B,e[22]=O^~q&U,e[23]=L^~F&z,e[32]=W^~G&J,e[33]=X^~Z&Y,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=g^~_&M,e[5]=w^~S&k,e[14]=I^~j&P,e[15]=C^~B&D,e[24]=q^~U&H,e[25]=F^~z&V,e[34]=G^~J&Q,e[35]=Z^~Y&ee,e[44]=ie^~ae&ce,e[45]=oe^~se&ue,e[6]=_^~M&b,e[7]=S^~k&m,e[16]=j^~P&x,e[17]=B^~D&E,e[26]=U^~H&N,e[27]=z^~V&R,e[36]=J^~Q&K,e[37]=Y^~ee&$,e[46]=ae^~ce&te,e[47]=se^~ue&fe,e[8]=M^~b&y,e[9]=k^~m&v,e[18]=P^~x&T,e[19]=D^~E&A,e[28]=H^~N&O,e[29]=V^~R&L,e[38]=Q^~K&W,e[39]=ee^~$&X,e[48]=ce^~te&re,e[49]=ue^~fe&ne,e[0]^=o[r],e[1]^=o[r+1]},u=function(e){return function(t){var f;if("0x"===t.slice(0,2)){f=[];for(var r=2,n=t.length;r<n;r+=2)f.push(parseInt(t.slice(r,r+2),16))}else f=t;return s(a(e),f)}};t.exports={keccak256:u(256),keccak512:u(512),keccak256s:u(256),keccak512s:u(512)}},{}],88:[function(e,t,f){"use strict";function r(e){var t=e?e.toLowerCase():"ether",f=d[t];if("string"!=typeof f)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(d,null,2));return new a(f,10)}function n(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"==typeof 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 "+typeof e+".")}function i(e,t,f){var n=s(e),i=n.lt(c),o=r(t),a=d[t].length-1||1,h=f||{};i&&(n=n.mul(u));for(var l=n.mod(o).toString(10);l.length<a;)l="0"+l;h.pad||(l=l.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=n.div(o).toString(10);h.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var b=p+("0"==l?"":"."+l);return i&&(b="-"+b),b}function o(e,t){var f=n(e),i=r(t),o=d[t].length-1||1,s="-"===f.substring(0,1);if(s&&(f=f.substring(1)),"."===f)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var c=f.split(".");if(c.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var h=c[0],l=c[1];if(h||(h="0"),l||(l="0"),l.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;l.length<o;)l+="0";h=new a(h),l=new a(l);var p=h.mul(i).add(l);return s&&(p=p.mul(u)),new a(p.toString(10),10)}var a=e("bn.js"),s=e("number-to-bn"),c=new a(0),u=new a(-1),d={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"};t.exports={unitMap:d,numberToString:n,getValueOfUnit:r,fromWei:i,toWei:o}},{"bn.js":89,"number-to-bn":117}],89:[function(e,t,f){!function(t,f){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var f=function(){};f.prototype=t.prototype,e.prototype=new f,e.prototype.constructor=e}function i(e,t,f){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(f=t,t=10),this._init(e||0,t||10,f||"be"))}function o(e,t,f){for(var r=0,n=Math.min(e.length,f),i=t;i<n;i++){var o=e.charCodeAt(i)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function a(e,t,f,r){for(var n=0,i=Math.min(e.length,f),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n*=r,n+=a>=49?a-49+10:a>=17?a-17+10:a}return n}function s(e){for(var t=new Array(e.bitLength()),f=0;f<t.length;f++){var r=f/26|0,n=f%26;t[f]=(e.words[r]&1<<n)>>>n}return t}function c(e,t,f){f.negative=t.negative^e.negative;var r=e.length+t.length|0;f.length=r,r=r-1|0;var n=0|e.words[0],i=0|t.words[0],o=n*i,a=67108863&o,s=o/67108864|0;f.words[0]=a;for(var c=1;c<r;c++){for(var u=s>>>26,d=67108863&s,h=Math.min(c,t.length-1),l=Math.max(0,c-e.length+1);l<=h;l++){var p=c-l|0
;n=0|e.words[p],i=0|t.words[l],o=n*i+d,u+=o/67108864|0,d=67108863&o}f.words[c]=0|d,s=0|u}return 0!==s?f.words[c]=0|s:f.length--,f.strip()}function u(e,t,f){f.negative=t.negative^e.negative,f.length=e.length+t.length;for(var r=0,n=0,i=0;i<f.length-1;i++){var o=n;n=0;for(var a=67108863&r,s=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=s;c++){var u=i-c,d=0|e.words[u],h=0|t.words[c],l=d*h,p=67108863&l;o=o+(l/67108864|0)|0,p=p+a|0,a=67108863&p,o=o+(p>>>26)|0,n+=o>>>26,o&=67108863}f.words[i]=a,r=o,o=n}return 0!==r?f.words[i]=r:f.length--,f.strip()}function d(e,t,f){return(new h).mulp(e,t,f)}function h(e,t){this.x=e,this.y=t}function l(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}"object"==typeof t?t.exports=i:f.BN=i,i.BN=i,i.wordSize=26;var w;try{w=e("buffer").Buffer}catch(e){}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,f){if("number"==typeof e)return this._initNumber(e,t,f);if("object"==typeof e)return this._initArray(e,t,f);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;"-"===e[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===f&&this._initArray(this.toArray(),t,f)},i.prototype._initNumber=function(e,t,f){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===f&&this._initArray(this.toArray(),t,f)},i.prototype._initArray=function(e,t,f){if(r("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<this.length;n++)this.words[n]=0;var i,o,a=0;if("be"===f)for(n=e.length-1,i=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===f)for(n=0,i=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var r,n,i=0;for(f=e.length-6,r=0;f>=t;f-=6)n=o(e,f,f+6),this.words[r]|=n<<i&67108863,this.words[r+1]|=n>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);f+6!==t&&(n=o(e,t,f+6),this.words[r]|=n<<i&67108863,this.words[r+1]|=n>>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,f){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var i=e.length-f,o=i%r,s=Math.min(i,i-o)+f,c=0,u=f;u<s;u+=r)c=a(e,u,u+r,t),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var d=1;for(c=a(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","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"],S=[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],M=[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];i.prototype.toString=function(e,t){e=e||10,t=0|t||1;var f;if(16===e||"hex"===e){f="";for(var n=0,i=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<n|i)).toString(16);i=a>>>24-n&16777215,f=0!==i||o!==this.length-1?_[6-s.length]+s+f:s+f,n+=2,n>=26&&(n-=26,o--)}for(0!==i&&(f=i.toString(16)+f);f.length%t!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}if(e===(0|e)&&e>=2&&e<=36){var c=S[e],u=M[e];f="";var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modn(u).toString(e);d=d.idivn(u),f=d.isZero()?h+f:_[c-h.length]+h+f}for(this.isZero()&&(f="0"+f);f.length%t!=0;)f="0"+f;return 0!==this.negative&&(f="-"+f),f}r(!1,"Base should be between 2 and 36")},i.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==w),this.toArrayLike(w,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,f){var n=this.byteLength(),i=f||Math.max(1,n);r(n<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,c=new e(i),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),c[a]=o;for(;a<i;a++)c[a]=0}else{for(a=0;a<i-n;a++)c[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),c[i-a-1]=o}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,f=0;return t>=4096&&(f+=13,t>>>=13),t>=64&&(f+=7,t>>>=7),t>=8&&(f+=4,t>>>=4),t>=2&&(f+=2,t>>>=2),f+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,f=0;return 0==(8191&t)&&(f+=13,t>>>=13),0==(127&t)&&(f+=7,t>>>=7),0==(15&t)&&(f+=4,t>>>=4),0==(3&t)&&(f+=2,t>>>=2),0==(1&t)&&f++,f},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var f=this._zeroBits(this.words[t]);if(e+=f,26!==f)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var f=0;f<t.length;f++)this.words[f]=this.words[f]&e.words[f];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,f;this.length>e.length?(t=this,f=e):(t=e,f=this);for(var r=0;r<f.length;r++)this.words[r]=t.words[r]^f.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),f=e%26;this._expand(t),f>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return f>0&&(this.words[n]=~this.words[n]&67108863>>26-f),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var f=e/26|0,n=e%26;return this._expand(f+1),this.words[f]=t?this.words[f]|1<<n:this.words[f]&~(1<<n),this.strip()},i.prototype.iadd=function(e){var t;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var f,r;this.length>e.length?(f=this,r=e):(f=e,r=this);for(var n=0,i=0;i<r.length;i++)t=(0|f.words[i])+(0|r.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<f.length;i++)t=(0|f.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=f.length,0!==n)this.words[this.length]=n,this.length++;else if(f!==this)for(;i<f.length;i++)this.words[i]=f.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.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 f=this.cmp(e);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;var r,n;f>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])-(0|n.words[o])+i,i=t>>26,this.words[o]=67108863&t;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,i=t>>26,this.words[o]=67108863&t;if(0===i&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var k=function(e,t,f){var r,n,i,o=e.words,a=t.words,s=f.words,c=0,u=0|o[0],d=8191&u,h=u>>>13,l=0|o[1],p=8191&l,b=l>>>13,m=0|o[2],y=8191&m,v=m>>>13,g=0|o[3],w=8191&g,_=g>>>13,S=0|o[4],M=8191&S,k=S>>>13,x=0|o[5],E=8191&x,T=x>>>13,A=0|o[6],I=8191&A,C=A>>>13,j=0|o[7],B=8191&j,P=j>>>13,D=0|o[8],N=8191&D,R=D>>>13,O=0|o[9],L=8191&O,q=O>>>13,F=0|a[0],U=8191&F,z=F>>>13,H=0|a[1],V=8191&H,K=H>>>13,$=0|a[2],W=8191&$,X=$>>>13,G=0|a[3],Z=8191&G,J=G>>>13,Y=0|a[4],Q=8191&Y,ee=Y>>>13,te=0|a[5],fe=8191&te,re=te>>>13,ne=0|a[6],ie=8191&ne,oe=ne>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,le=0|a[9],pe=8191&le,be=le>>>13;f.negative=e.negative^t.negative,f.length=19,r=Math.imul(d,U),n=Math.imul(d,z),n=n+Math.imul(h,U)|0,i=Math.imul(h,z);var me=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,U),n=Math.imul(p,z),n=n+Math.imul(b,U)|0,i=Math.imul(b,z),r=r+Math.imul(d,V)|0,n=n+Math.imul(d,K)|0,n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0;var ye=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,U),n=Math.imul(y,z),n=n+Math.imul(v,U)|0,i=Math.imul(v,z),r=r+Math.imul(p,V)|0,n=n+Math.imul(p,K)|0,n=n+Math.imul(b,V)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(d,W)|0,n=n+Math.imul(d,X)|0,n=n+Math.imul(h,W)|0,i=i+Math.imul(h,X)|0;var ve=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,U),n=Math.imul(w,z),n=n+Math.imul(_,U)|0,i=Math.imul(_,z),r=r+Math.imul(y,V)|0,n=n+Math.imul(y,K)|0,n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,n=n+Math.imul(p,X)|0,n=n+Math.imul(b,W)|0,i=i+Math.imul(b,X)|0,r=r+Math.imul(d,Z)|0,n=n+Math.imul(d,J)|0,n=n+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0;var ge=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,U),n=Math.imul(M,z),n=n+Math.imul(k,U)|0,i=Math.imul(k,z),r=r+Math.imul(w,V)|0,n=n+Math.imul(w,K)|0,n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,r=r+Math.imul(y,W)|0,n=n+Math.imul(y,X)|0,n=n+Math.imul(v,W)|0,i=i+Math.imul(v,X)|0,r=r+Math.imul(p,Z)|0,n=n+Math.imul(p,J)|0,n=n+Math.imul(b,Z)|0,i=i+Math.imul(b,J)|0,r=r+Math.imul(d,Q)|0,n=n+Math.imul(d,ee)|0,n=n+Math.imul(h,Q)|0,i=i+Math.imul(h,ee)|0;var we=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,U),n=Math.imul(E,z),n=n+Math.imul(T,U)|0,i=Math.imul(T,z),r=r+Math.imul(M,V)|0,n=n+Math.imul(M,K)|0,n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(w,W)|0,n=n+Math.imul(w,X)|0,n=n+Math.imul(_,W)|0,i=i+Math.imul(_,X)|0,r=r+Math.imul(y,Z)|0,n=n+Math.imul(y,J)|0,n=n+Math.imul(v,Z)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(p,Q)|0,n=n+Math.imul(p,ee)|0,n=n+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(d,fe)|0,n=n+Math.imul(d,re)|0,n=n+Math.imul(h,fe)|0,i=i+Math.imul(h,re)|0;var _e=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(I,U),n=Math.imul(I,z),n=n+Math.imul(C,U)|0,i=Math.imul(C,z),r=r+Math.imul(E,V)|0,n=n+Math.imul(E,K)|0,n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,r=r+Math.imul(M,W)|0,n=n+Math.imul(M,X)|0,n=n+Math.imul(k,W)|0,i=i+Math.imul(k,X)|0,r=r+Math.imul(w,Z)|0,n=n+Math.imul(w,J)|0,n=n+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,r=r+Math.imul(y,Q)|0,n=n+Math.imul(y,ee)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,fe)|0,n=n+Math.imul(p,re)|0,n=n+Math.imul(b,fe)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(d,ie)|0,n=n+Math.imul(d,oe)|0,n=n+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var Se=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,U),n=Math.imul(B,z),n=n+Math.imul(P,U)|0,i=Math.imul(P,z),r=r+Math.imul(I,V)|0,n=n+Math.imul(I,K)|0,n=n+Math.imul(C,V)|0,i=i+Math.imul(C,K)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul(E,X)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,X)|0,r=r+Math.imul(M,Z)|0,n=n+Math.imul(M,J)|0,n=n+Math.imul(k,Z)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(w,Q)|0,n=n+Math.imul(w,ee)|0,n=n+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(y,fe)|0,n=n+Math.imul(y,re)|0,n=n+Math.imul(v,fe)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,n=n+Math.imul(p,oe)|0,n=n+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0,n=n+Math.imul(h,se)|0,i=i+Math.imul(h,ce)|0;var Me=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,U),n=Math.imul(N,z),n=n+Math.imul(R,U)|0,i=Math.imul(R,z),r=r+Math.imul(B,V)|0,n=n+Math.imul(B,K)|0,n=n+Math.imul(P,V)|0,i=i+Math.imul(P,K)|0,r=r+Math.imul(I,W)|0,n=n+Math.imul(I,X)|0,n=n+Math.imul(C,W)|0,i=i+Math.imul(C,X)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul(E,J)|0,n=n+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,r=r+Math.imul(M,Q)|0,n=n+Math.imul(M,ee)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(w,fe)|0,n=n+Math.imul(w,re)|0,n=n+Math.imul(_,fe)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(y,ie)|0,n=n+Math.imul(y,oe)|0,n=n+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,n=n+Math.imul(b,se)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(d,de)|0,n=n+Math.imul(d,he)|0,n=n+Math.imul(h,de)|0,i=i+Math.imul(h,he)|0;var ke=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,U),n=Math.imul(L,z),n=n+Math.imul(q,U)|0,i=Math.imul(q,z),r=r+Math.imul(N,V)|0,n=n+Math.imul(N,K)|0,n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,r=r+Math.imul(B,W)|0,n=n+Math.imul(B,X)|0,n=n+Math.imul(P,W)|0,i=i+Math.imul(P,X)|0,r=r+Math.imul(I,Z)|0,n=n+Math.imul(I,J)|0,n=n+Math.imul(C,Z)|0,i=i+Math.imul(C,J)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul(E,ee)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,r=r+Math.imul(M,fe)|0,n=n+Math.imul(M,re)|0,n=n+Math.imul(k,fe)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(w,ie)|0,n=n+Math.imul(w,oe)|0,n=n+Math.imul(_,ie)|0,i=i+Math.imul(_,oe)|0,r=r+Math.imul(y,se)|0,n=n+Math.imul(y,ce)|0,n=n+Math.imul(v,se)|0,i=i+Math.imul(v,ce)|0,r=r+Math.imul(p,de)|0,n=n+Math.imul(p,he)|0,n=n+Math.imul(b,de)|0,i=i+Math.imul(b,he)|0,r=r+Math.imul(d,pe)|0,n=n+Math.imul(d,be)|0,n=n+Math.imul(h,pe)|0,i=i+Math.imul(h,be)|0;var xe=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,V),n=Math.imul(L,K),n=n+Math.imul(q,V)|0,i=Math.imul(q,K),r=r+Math.imul(N,W)|0,n=n+Math.imul(N,X)|0,n=n+Math.imul(R,W)|0,i=i+Math.imul(R,X)|0,r=r+Math.imul(B,Z)|0,n=n+Math.imul(B,J)|0,n=n+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,r=r+Math.imul(I,Q)|0,n=n+Math.imul(I,ee)|0,n=n+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(E,fe)|0,n=n+Math.imul(E,re)|0,n=n+Math.imul(T,fe)|0,i=i+Math.imul(T,re)|0,r=r+Math.imul(M,ie)|0,n=n+Math.imul(M,oe)|0,n=n+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(w,se)|0,n=n+Math.imul(w,ce)|0,n=n+Math.imul(_,se)|0,i=i+Math.imul(_,ce)|0,r=r+Math.imul(y,de)|0,n=n+Math.imul(y,he)|0,n=n+Math.imul(v,de)|0,i=i+Math.imul(v,he)|0,r=r+Math.imul(p,pe)|0,n=n+Math.imul(p,be)|0,n=n+Math.imul(b,pe)|0,i=i+Math.imul(b,be)|0;var Ee=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),n=Math.imul(L,X),n=n+Math.imul(q,W)|0,i=Math.imul(q,X),r=r+Math.imul(N,Z)|0,n=n+Math.imul(N,J)|0,n=n+Math.imul(R,Z)|0,i=i+Math.imul(R,J)|0,r=r+Math.imul(B,Q)|0,n=n+Math.imul(B,ee)|0,n=n+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,r=r+Math.imul(I,fe)|0,n=n+Math.imul(I,re)|0,n=n+Math.imul(C,fe)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(E,ie)|0,n=n+Math.imul(E,oe)|0,n=n+Math.imul(T,ie)|0,i=i+Math.imul(T,oe)|0,r=r+Math.imul(M,se)|0,n=n+Math.imul(M,ce)|0,n=n+Math.imul(k,se)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(w,de)|0,n=n+Math.imul(w,he)|0,n=n+Math.imul(_,de)|0,i=i+Math.imul(_,he)|0,r=r+Math.imul(y,pe)|0,n=n+Math.imul(y,be)|0,n=n+Math.imul(v,pe)|0,i=i+Math.imul(v,be)|0;var Te=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Z),n=Math.imul(L,J),n=n+Math.imul(q,Z)|0,i=Math.imul(q,J),r=r+Math.imul(N,Q)|0,n=n+Math.imul(N,ee)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(B,fe)|0,n=n+Math.imul(B,re)|0,n=n+Math.imul(P,fe)|0,i=i+Math.imul(P,re)|0,r=r+Math.imul(I,ie)|0,n=n+Math.imul(I,oe)|0,n=n+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,n=n+Math.imul(T,se)|0,i=i+Math.imul(T,ce)|0,r=r+Math.imul(M,de)|0,n=n+Math.imul(M,he)|0,n=n+Math.imul(k,de)|0,i=i+Math.imul(k,he)|0,r=r+Math.imul(w,pe)|0,n=n+Math.imul(w,be)|0,n=n+Math.imul(_,pe)|0,i=i+Math.imul(_,be)|0;var Ae=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,Q),n=Math.imul(L,ee),n=n+Math.imul(q,Q)|0,i=Math.imul(q,ee),r=r+Math.imul(N,fe)|0,n=n+Math.imul(N,re)|0,n=n+Math.imul(R,fe)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(B,ie)|0,n=n+Math.imul(B,oe)|0,n=n+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,r=r+Math.imul(I,se)|0,n=n+Math.imul(I,ce)|0,n=n+Math.imul(C,se)|0,i=i+Math.imul(C,ce)|0,r=r+Math.imul(E,de)|0,n=n+Math.imul(E,he)|0,n=n+Math.imul(T,de)|0,i=i+Math.imul(T,he)|0,r=r+Math.imul(M,pe)|0,n=n+Math.imul(M,be)|0,n=n+Math.imul(k,pe)|0,i=i+Math.imul(k,be)|0;var Ie=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,fe),n=Math.imul(L,re),n=n+Math.imul(q,fe)|0,i=Math.imul(q,re),r=r+Math.imul(N,ie)|0,n=n+Math.imul(N,oe)|0,n=n+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,r=r+Math.imul(B,se)|0,n=n+Math.imul(B,ce)|0,n=n+Math.imul(P,se)|0,i=i+Math.imul(P,ce)|0,r=r+Math.imul(I,de)|0,n=n+Math.imul(I,he)|0,n=n+Math.imul(C,de)|0,i=i+Math.imul(C,he)|0,r=r+Math.imul(E,pe)|0,n=n+Math.imul(E,be)|0,n=n+Math.imul(T,pe)|0,i=i+Math.imul(T,be)|0;var Ce=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,ie),n=Math.imul(L,oe),n=n+Math.imul(q,ie)|0,i=Math.imul(q,oe),r=r+Math.imul(N,se)|0,n=n+Math.imul(N,ce)|0,n=n+Math.imul(R,se)|0,i=i+Math.imul(R,ce)|0,r=r+Math.imul(B,de)|0,n=n+Math.imul(B,he)|0,n=n+Math.imul(P,de)|0,i=i+Math.imul(P,he)|0,r=r+Math.imul(I,pe)|0,n=n+Math.imul(I,be)|0,n=n+Math.imul(C,pe)|0,i=i+Math.imul(C,be)|0;var je=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,se),n=Math.imul(L,ce),n=n+Math.imul(q,se)|0,i=Math.imul(q,ce),r=r+Math.imul(N,de)|0,n=n+Math.imul(N,he)|0,n=n+Math.imul(R,de)|0,i=i+Math.imul(R,he)|0,r=r+Math.imul(B,pe)|0,n=n+Math.imul(B,be)|0,n=n+Math.imul(P,pe)|0,i=i+Math.imul(P,be)|0;var Be=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(L,de),n=Math.imul(L,he),n=n+Math.imul(q,de)|0,i=Math.imul(q,he),r=r+Math.imul(N,pe)|0,n=n+Math.imul(N,be)|0,n=n+Math.imul(R,pe)|0,i=i+Math.imul(R,be)|0;var Pe=(c+r|0)+((8191&n)<<13)|0;c=(i+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,pe),n=Math.imul(L,be),n=n+Math.imul(q,pe)|0,i=Math.imul(q,be);var De=(c+r|0)+((8191&n)<<13)|0;return c=(i+(n>>>13)|0)+(De>>>26)|0,De&=67108863,s[0]=me,s[1]=ye,s[2]=ve,s[3]=ge,s[4]=we,s[5]=_e,s[6]=Se,s[7]=Me,s[8]=ke,s[9]=xe,s[10]=Ee,s[11]=Te,s[12]=Ae,s[13]=Ie,s[14]=Ce,s[15]=je,s[16]=Be,s[17]=Pe,s[18]=De,0!==c&&(s[19]=c,f.length++),f};Math.imul||(k=c),i.prototype.mulTo=function(e,t){var f=this.length+e.length;return 10===this.length&&10===e.length?k(this,e,t):f<63?c(this,e,t):f<1024?u(this,e,t):d(this,e,t)},h.prototype.makeRBT=function(e){for(var t=new Array(e),f=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,f,e);return t},h.prototype.revBin=function(e,t,f){if(0===e||e===f-1)return e;for(var r=0,n=0;n<t;n++)r|=(1&e)<<t-n-1,e>>=1;return r},h.prototype.permute=function(e,t,f,r,n,i){for(var o=0;o<i;o++)r[o]=t[e[o]],n[o]=f[e[o]]},h.prototype.transform=function(e,t,f,r,n,i){this.permute(i,e,t,f,r,n);for(var o=1;o<n;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<n;u+=a)for(var d=s,h=c,l=0;l<o;l++){var p=f[u+l],b=r[u+l],m=f[u+l+o],y=r[u+l+o],v=d*m-h*y;y=d*y+h*m,m=v,f[u+l]=p+m,r[u+l]=b+y,f[u+l+o]=p-m,r[u+l+o]=b-y,l!==a&&(v=s*d-c*h,h=s*h+c*d,d=v)}},h.prototype.guessLen13b=function(e,t){var f=1|Math.max(t,e),r=1&f,n=0;for(f=f/2|0;f;f>>>=1)n++;return 1<<n+1+r},h.prototype.conjugate=function(e,t,f){if(!(f<=1))for(var r=0;r<f/2;r++){var n=e[r];e[r]=e[f-r-1],e[f-r-1]=n,n=t[r],t[r]=-t[f-r-1],t[f-r-1]=-n}},h.prototype.normalize13b=function(e,t){for(var f=0,r=0;r<t/2;r++){var n=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+f;e[r]=67108863&n,f=n<67108864?0:n/67108864|0}return e},h.prototype.convert13b=function(e,t,f,n){for(var i=0,o=0;o<t;o++)i+=0|e[o],f[2*o]=8191&i,i>>>=13,f[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<n;++o)f[o]=0;r(0===i),r(0==(-8192&i))},h.prototype.stub=function(e){for(var t=new Array(e),f=0;f<e;f++)t[f]=0;return t},h.prototype.mulp=function(e,t,f){var r=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(r),i=this.stub(r),o=new Array(r),a=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),h=f.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,i,a,s,r,n),this.transform(c,i,u,d,r,n);for(var l=0;l<r;l++){var p=a[l]*u[l]-s[l]*d[l];s[l]=a[l]*d[l]+s[l]*u[l],a[l]=p}return this.conjugate(a,s,r),this.transform(a,s,h,i,r,n),this.conjugate(h,i,r),this.normalize13b(h,r),f.negative=e.negative^t.negative,f.length=e.length+t.length,f.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),d(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,f=0;f<this.length;f++){var n=(0|this.words[f])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[f]=67108863&i}return 0!==t&&(this.words[f]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=s(e);if(0===t.length)return new i(1);for(var f=this,r=0;r<t.length&&0===t[r];r++,f=f.sqr());if(++r<t.length)for(var n=f.sqr();r<t.length;r++,n=n.sqr())0!==t[r]&&(f=f.mul(n));return f},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,f=e%26,n=(e-f)/26,i=67108863>>>26-f<<26-f;if(0!==f){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,s=(0|this.words[t])-a<<f;this.words[t]=s|o,o=a>>>26-f}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,f){r("number"==typeof e&&e>=0);var n;n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,s=f;if(n-=o,n=Math.max(0,n),s){for(var c=0;c<o;c++)s.words[c]=this.words[c];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,f){return r(0===this.negative),this.iushrn(e,t,f)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,f=(e-t)/26,n=1<<t;return!(this.length<=f)&&!!(this.words[f]&n)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,f=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=f)return this;if(0!==t&&f++,this.length=Math.min(f,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[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},i.prototype.isubn=function(e){if(r("number"==typeof e),r(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<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,f){var n,i=e.length+f;this._expand(i);var o,a=0;for(n=0;n<e.length;n++){o=(0|this.words[n+f])+a;var s=(0|e.words[n])*t;o-=67108863&s,a=(o>>26)-(s/67108864|0),this.words[n+f]=67108863&o}for(;n<this.length-f;n++)o=(0|this.words[n+f])+a,a=o>>26,this.words[n+f]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,n=0;n<this.length;n++)o=-(0|this.words[n])+a,a=o>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var f=this.length-e.length,r=this.clone(),n=e,o=0|n.words[n.length-1];0!==(f=26-this._countBits(o))&&(n=n.ushln(f),r.iushln(f),o=0|n.words[n.length-1]);var a,s=r.length-n.length;if("mod"!==t){a=new i(null),a.length=s+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var u=r.clone()._ishlnsubmul(n,1,s);0===u.negative&&(r=u,a&&(a.words[s]=1));for(var d=s-1;d>=0;d--){var h=67108864*(0|r.words[n.length+d])+(0|r.words[n.length+d-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(n,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,d),r.isZero()||(r.negative^=1);a&&(a.words[d]=h)}return a&&a.strip(),r.strip(),"div"!==t&&0!==f&&r.iushrn(f),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,f){if(r(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var n,o,a;return 0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(n=a.div.neg()),"div"!==t&&(o=a.mod.neg(),f&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),f&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var f=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),i=f.cmp(r);return i<0||1===n&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,f=0,n=this.length-1;n>=0;n--)f=(t*f+(0|this.words[n]))%e;return f},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,f=this.length-1;f>=0;f--){var n=(0|this.words[f])+67108864*t;this.words[f]=n/e|0,t=n%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,f=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new i(1),o=new i(0),a=new i(0),s=new i(1),c=0;t.isEven()&&f.isEven();)t.iushrn(1),f.iushrn(1),++c;for(var u=f.clone(),d=t.clone();!t.isZero();){for(var h=0,l=1;0==(t.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var p=0,b=1;0==(f.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(f.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(d)),a.iushrn(1),s.iushrn(1);t.cmp(f)>=0?(t.isub(f),n.isub(a),o.isub(s)):(f.isub(t),a.isub(n),s.isub(o))}return{a:a,b:s,gcd:f.iushln(c)}},
i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,f=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new i(1),o=new i(0),a=f.clone();t.cmpn(1)>0&&f.cmpn(1)>0;){for(var s=0,c=1;0==(t.words[0]&c)&&s<26;++s,c<<=1);if(s>0)for(t.iushrn(s);s-- >0;)n.isOdd()&&n.iadd(a),n.iushrn(1);for(var u=0,d=1;0==(f.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(f.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);t.cmp(f)>=0?(t.isub(f),n.isub(o)):(f.isub(t),o.isub(n))}var h;return h=0===t.cmpn(1)?n:o,h.cmpn(0)<0&&h.iadd(e),h},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),f=e.clone();t.negative=0,f.negative=0;for(var r=0;t.isEven()&&f.isEven();r++)t.iushrn(1),f.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;f.isEven();)f.iushrn(1);var n=t.cmp(f);if(n<0){var i=t;t=f,f=i}else if(0===n||0===f.cmpn(1))break;t.isub(f)}return f.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,f=(e-t)/26,n=1<<t;if(this.length<=f)return this._expand(f+1),this.words[f]|=n,this;for(var i=n,o=f;0!==i&&o<this.length;o++){var a=0|this.words[o];a+=i,i=a>>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var f;if(this.length>1)f=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];f=n===e?0:n<e?-1:1}return 0!==this.negative?0|-f:f},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,f=this.length-1;f>=0;f--){var r=0|this.words[f],n=0|e.words[f];if(r!==n){r<n?t=-1:r>n&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new v(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};l.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},l.prototype.ireduce=function(e){var t,f=e;do{this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),t=f.bitLength()}while(t>this.n);var r=t<this.n?-1:f.ucmp(this.p);return 0===r?(f.words[0]=0,f.length=1):r>0?f.isub(this.p):f.strip(),f},l.prototype.split=function(e,t){e.iushrn(this.n,0,t)},l.prototype.imulK=function(e){return e.imul(this.k)},n(p,l),p.prototype.split=function(e,t){for(var f=Math.min(e.length,9),r=0;r<f;r++)t.words[r]=e.words[r];if(t.length=f,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|n>>>22,n=i}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},p.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,f=0;f<e.length;f++){var r=0|e.words[f];t+=977*r,e.words[f]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(b,l),n(m,l),n(y,l),y.prototype.imulK=function(e){for(var t=0,f=0;f<e.length;f++){var r=19*(0|e.words[f])+t,n=67108863&r;r>>>=26,e.words[f]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new p;else if("p224"===e)t=new b;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new y}return x[e]=t,t},v.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var f=e.add(t);return f.cmp(this.m)>=0&&f.isub(this.m),f._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var f=e.iadd(t);return f.cmp(this.m)>=0&&f.isub(this.m),f},v.prototype.sub=function(e,t){this._verify2(e,t);var f=e.sub(t);return f.cmpn(0)<0&&f.iadd(this.m),f._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var f=e.isub(t);return f.cmpn(0)<0&&f.iadd(this.m),f},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var f=this.m.add(new i(1)).iushrn(2);return this.pow(e,f)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var a=new i(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(s);)u.redIAdd(s);for(var d=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),p=o;0!==l.cmp(a);){for(var b=l,m=0;0!==b.cmp(a);m++)b=b.redSqr();r(m<p);var y=this.pow(d,new i(1).iushln(p-m-1));h=h.redMul(y),d=y.redSqr(),l=l.redMul(d),p=m}return h},v.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},v.prototype.pow=function(e,t){if(t.isZero())return new i(1);if(0===t.cmpn(1))return e.clone();var f=new Array(16);f[0]=new i(1).toRed(this),f[1]=e;for(var r=2;r<f.length;r++)f[r]=this.mul(f[r-1],e);var n=f[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=s-1;u>=0;u--){var d=c>>u&1;n!==f[0]&&(n=this.sqr(n)),0!==d||0!==o?(o<<=1,o|=d,(4===++a||0===r&&0===u)&&(n=this.mul(n,f[o]),a=0,o=0)):a=0}s=26}return n},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new g(e)},n(g,v),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var f=e.imul(t),r=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=f.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var f=e.mul(t),r=f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=f.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{}],90:[function(e,t,f){"use strict";function r(e,t,f){this.fn=e,this.context=t,this.once=f||!1}function n(){}var i="function"!=typeof Object.create&&"~";n.prototype._events=void 0,n.prototype.listeners=function(e,t){var f=i?i+e:e,r=this._events&&this._events[f];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},n.prototype.emit=function(e,t,f,r,n,o){var a=i?i+e:e;if(!this._events||!this._events[a])return!1;var s,c,u=this._events[a],d=arguments.length;if("function"==typeof u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,f),!0;case 4:return u.fn.call(u.context,t,f,r),!0;case 5:return u.fn.call(u.context,t,f,r,n),!0;case 6:return u.fn.call(u.context,t,f,r,n,o),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var h,l=u.length;for(c=0;c<l;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,f);break;default:if(!s)for(h=1,s=new Array(d-1);h<d;h++)s[h-1]=arguments[h];u[c].fn.apply(u[c].context,s)}}return!0},n.prototype.on=function(e,t,f){var n=new r(t,f||this),o=i?i+e:e;return this._events||(this._events=i?{}:Object.create(null)),this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],n]:this._events[o].push(n):this._events[o]=n,this},n.prototype.once=function(e,t,f){var n=new r(t,f||this,!0),o=i?i+e:e;return this._events||(this._events=i?{}:Object.create(null)),this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],n]:this._events[o].push(n):this._events[o]=n,this},n.prototype.removeListener=function(e,t,f,r){var n=i?i+e:e;if(!this._events||!this._events[n])return this;var o=this._events[n],a=[];if(t)if(o.fn)(o.fn!==t||r&&!o.once||f&&o.context!==f)&&a.push(o);else for(var s=0,c=o.length;s<c;s++)(o[s].fn!==t||r&&!o[s].once||f&&o[s].context!==f)&&a.push(o[s]);return a.length?this._events[n]=1===a.length?a[0]:a:delete this._events[n],this},n.prototype.removeAllListeners=function(e){return this._events?(e?delete this._events[i?i+e:e]:this._events=i?{}:Object.create(null),this):this},n.prototype.off=n.prototype.removeListener,n.prototype.addListener=n.prototype.on,n.prototype.setMaxListeners=function(){return this},n.prefixed=i,void 0!==t&&(t.exports=n)},{}],91:[function(e,t,f){function r(e,t,f,r){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=f/8,a=n.alloc(o),s=n.alloc(r||0),c=n.alloc(0);o>0||r>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(o>0){var h=a.length-o;d=Math.min(o,c.length),c.copy(a,h,0,d),o-=d}if(d<c.length&&r>0){var l=s.length-r,p=Math.min(r,c.length-d);c.copy(s,l,d,d+p),r-=p}}return c.fill(0),{key:a,iv:s}}var n=e("safe-buffer").Buffer,i=e("md5.js");t.exports=r},{"md5.js":112,"safe-buffer":144}],92:[function(e,t,f){"use strict";var r=e("is-callable"),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=function(e,t,f){for(var r=0,n=e.length;r<n;r++)i.call(e,r)&&(null==f?t(e[r],r,e):t.call(f,e[r],r,e))},a=function(e,t,f){for(var r=0,n=e.length;r<n;r++)null==f?t(e.charAt(r),r,e):t.call(f,e.charAt(r),r,e)},s=function(e,t,f){for(var r in e)i.call(e,r)&&(null==f?t(e[r],r,e):t.call(f,e[r],r,e))},c=function(e,t,f){if(!r(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=f),"[object Array]"===n.call(e)?o(e,t,i):"string"==typeof e?a(e,t,i):s(e,t,i)};t.exports=c},{"is-callable":109}],93:[function(e,t,f){(function(e){var f;f="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],94:[function(e,t,f){"use strict";function r(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function n(e){o.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=e("safe-buffer").Buffer,o=e("stream").Transform;e("inherits")(n,o),n.prototype._transform=function(e,t,f){var r=null;try{this.update(e,t)}catch(e){r=e}f(r)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(r(e,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var f=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)f[o++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)f[this._blockOffset++]=e[n++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var f=0;f<4;++f)this._length[f]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:108,"safe-buffer":144,stream:380}],95:[function(e,t,f){var r=f;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":96,"./hash/hmac":97,"./hash/ripemd":98,"./hash/sha":99,"./hash/utils":106}],96:[function(e,t,f){"use strict";function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=e("./utils"),i=e("minimalistic-assert");f.BlockHash=r,r.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var f=e.length%this._delta8;this.pending=e.slice(e.length-f,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-f,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,f=t-(e+this.padLength)%t,r=new Array(f+this.padLength);r[0]=128;for(var n=1;n<f;n++)r[n]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,i=8;i<this.padLength;i++)r[n++]=0;return r}},{"./utils":106,"minimalistic-assert":114}],97:[function(e,t,f){"use strict";function r(e,t,f){if(!(this instanceof r))return new r(e,t,f);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,f))}var n=e("./utils"),i=e("minimalistic-assert");t.exports=r,r.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},r.prototype.update=function(e,t){return this.inner.update(e,t),this},r.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":106,"minimalistic-assert":114}],98:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function n(e,t,f,r){return e<=15?t^f^r:e<=31?t&f|~t&r:e<=47?(t|~f)^r:e<=63?t&r|f&~r:t^(f|~r)}function i(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function o(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var a=e("./utils"),s=e("./common"),c=a.rotl32,u=a.sum32,d=a.sum32_3,h=a.sum32_4,l=s.BlockHash;a.inherits(r,l),f.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(e,t){for(var f=this.h[0],r=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],v=f,g=r,w=a,_=s,S=l,M=0;M<80;M++){var k=u(c(h(f,n(M,r,a,s),e[p[M]+t],i(M)),m[M]),l);f=l,l=s,s=c(a,10),a=r,r=k,k=u(c(h(v,n(79-M,g,w,_),e[b[M]+t],o(M)),y[M]),S),v=S,S=_,_=c(w,10),w=g,g=k}k=d(this.h[1],a,_),this.h[1]=d(this.h[2],s,S),this.h[2]=d(this.h[3],l,v),this.h[3]=d(this.h[4],f,g),this.h[4]=d(this.h[0],r,w),this.h[0]=k},r.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h,"little"):a.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":96,"./utils":106}],99:[function(e,t,f){"use strict";f.sha1=e("./sha/1"),f.sha224=e("./sha/224"),f.sha256=e("./sha/256"),f.sha384=e("./sha/384"),f.sha512=e("./sha/512")},{"./sha/1":100,"./sha/224":101,"./sha/256":102,"./sha/384":103,"./sha/512":104}],100:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var n=e("../utils"),i=e("../common"),o=e("./common"),a=n.rotl32,s=n.sum32,c=n.sum32_5,u=o.ft_1,d=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];n.inherits(r,d),t.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(e,t){for(var f=this.W,r=0;r<16;r++)f[r]=e[t+r];for(;r<f.length;r++)f[r]=a(f[r-3]^f[r-8]^f[r-14]^f[r-16],1);var n=this.h[0],i=this.h[1],o=this.h[2],d=this.h[3],l=this.h[4];for(r=0;r<f.length;r++){var p=~~(r/20),b=c(a(n,5),u(p,i,o,d),l,f[r],h[p]);l=d,d=o,o=a(i,30),i=n,n=b}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],o),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],l)},r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":96,"../utils":106,"./common":105}],101:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var n=e("../utils"),i=e("./256");n.inherits(r,i),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":106,"./256":102}],102:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}var n=e("../utils"),i=e("../common"),o=e("./common"),a=e("minimalistic-assert"),s=n.sum32,c=n.sum32_4,u=n.sum32_5,d=o.ch32,h=o.maj32,l=o.s0_256,p=o.s1_256,b=o.g0_256,m=o.g1_256,y=i.BlockHash,v=[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];n.inherits(r,y),t.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(e,t){for(var f=this.W,r=0;r<16;r++)f[r]=e[t+r];for(;r<f.length;r++)f[r]=c(m(f[r-2]),f[r-7],b(f[r-15]),f[r-16]);var n=this.h[0],i=this.h[1],o=this.h[2],y=this.h[3],v=this.h[4],g=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===f.length),r=0;r<f.length;r++){var S=u(_,p(v),d(v,g,w),this.k[r],f[r]),M=s(l(n),h(n,i,o));_=w,w=g,g=v,v=s(y,S),y=o,o=i,i=n,n=s(S,M)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],o),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],g),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":96,"../utils":106,"./common":105,"minimalistic-assert":114}],103:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var n=e("../utils"),i=e("./512");n.inherits(r,i),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":106,"./512":104}],104:[function(e,t,f){"use strict";function r(){if(!(this instanceof r))return new r;C.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=j,this.W=new Array(160)}function n(e,t,f,r,n){var i=e&f^~e&n;return i<0&&(i+=4294967296),i}function i(e,t,f,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function o(e,t,f,r,n){var i=e&f^e&n^f&n;return i<0&&(i+=4294967296),i}function a(e,t,f,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function s(e,t){var f=g(e,t,28),r=g(t,e,2),n=g(t,e,7),i=f^r^n;return i<0&&(i+=4294967296),i}function c(e,t){var f=w(e,t,28),r=w(t,e,2),n=w(t,e,7),i=f^r^n;return i<0&&(i+=4294967296),i}function u(e,t){var f=g(e,t,14),r=g(e,t,18),n=g(t,e,9),i=f^r^n;return i<0&&(i+=4294967296),i}function d(e,t){var f=w(e,t,14),r=w(e,t,18),n=w(t,e,9),i=f^r^n;return i<0&&(i+=4294967296),i}function h(e,t){var f=g(e,t,1),r=g(e,t,8),n=_(e,t,7),i=f^r^n;return i<0&&(i+=4294967296),i}function l(e,t){var f=w(e,t,1),r=w(e,t,8),n=S(e,t,7),i=f^r^n;return i<0&&(i+=4294967296),i}function p(e,t){var f=g(e,t,19),r=g(t,e,29),n=_(e,t,6),i=f^r^n;return i<0&&(i+=4294967296),i}function b(e,t){var f=w(e,t,19),r=w(t,e,29),n=S(e,t,6),i=f^r^n;return i<0&&(i+=4294967296),i}var m=e("../utils"),y=e("../common"),v=e("minimalistic-assert"),g=m.rotr64_hi,w=m.rotr64_lo,_=m.shr64_hi,S=m.shr64_lo,M=m.sum64,k=m.sum64_hi,x=m.sum64_lo,E=m.sum64_4_hi,T=m.sum64_4_lo,A=m.sum64_5_hi,I=m.sum64_5_lo,C=y.BlockHash,j=[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];m.inherits(r,C),t.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.prototype._prepareBlock=function(e,t){for(var f=this.W,r=0;r<32;r++)f[r]=e[t+r];for(;r<f.length;r+=2){var n=p(f[r-4],f[r-3]),i=b(f[r-4],f[r-3]),o=f[r-14],a=f[r-13],s=h(f[r-30],f[r-29]),c=l(f[r-30],f[r-29]),u=f[r-32],d=f[r-31];f[r]=E(n,i,o,a,s,c,u,d),f[r+1]=T(n,i,o,a,s,c,u,d)}},r.prototype._update=function(e,t){this._prepareBlock(e,t);var f=this.W,r=this.h[0],h=this.h[1],l=this.h[2],p=this.h[3],b=this.h[4],m=this.h[5],y=this.h[6],g=this.h[7],w=this.h[8],_=this.h[9],S=this.h[10],E=this.h[11],T=this.h[12],C=this.h[13],j=this.h[14],B=this.h[15];v(this.k.length===f.length);for(var P=0;P<f.length;P+=2){var D=j,N=B,R=u(w,_),O=d(w,_),L=n(w,_,S,E,T),q=i(w,_,S,E,T,C),F=this.k[P],U=this.k[P+1],z=f[P],H=f[P+1],V=A(D,N,R,O,L,q,F,U,z,H),K=I(D,N,R,O,L,q,F,U,z,H);D=s(r,h),N=c(r,h),R=o(r,h,l,p,b),O=a(r,h,l,p,b,m);var $=k(D,N,R,O),W=x(D,N,R,O);j=T,B=C,T=S,C=E,S=w,E=_,w=k(y,g,V,K),_=x(g,g,V,K),y=b,g=m,b=l,m=p,l=r,p=h,r=k(V,K,$,W),h=x(V,K,$,W)}M(this.h,0,r,h),M(this.h,2,l,p),M(this.h,4,b,m),M(this.h,6,y,g),M(this.h,8,w,_),M(this.h,10,S,E),M(this.h,12,T,C),M(this.h,14,j,B)},r.prototype._digest=function(e){return"hex"===e?m.toHex32(this.h,"big"):m.split32(this.h,"big")}},{"../common":96,"../utils":106,"minimalistic-assert":114}],105:[function(e,t,f){"use strict";function r(e,t,f,r){return 0===e?n(t,f,r):1===e||3===e?o(t,f,r):2===e?i(t,f,r):void 0}function n(e,t,f){return e&t^~e&f}function i(e,t,f){return e&t^e&f^t&f}function o(e,t,f){return e^t^f}function a(e){return h(e,2)^h(e,13)^h(e,22)}function s(e){return h(e,6)^h(e,11)^h(e,25)}function c(e){return h(e,7)^h(e,18)^e>>>3}function u(e){return h(e,17)^h(e,19)^e>>>10}var d=e("../utils"),h=d.rotr32;f.ft_1=r,f.ch32=n,f.maj32=i,f.p32=o,f.s0_256=a,f.s1_256=s,f.g0_256=c,f.g1_256=u},{"../utils":106}],106:[function(e,t,f){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var f=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)f.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),i=n>>8,o=255&n;i?f.push(i,o):f.push(o)}else for(r=0;r<e.length;r++)f[r]=0|e[r];return f}function n(e){for(var t="",f=0;f<e.length;f++)t+=a(e[f].toString(16));return t}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var f="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=i(n)),f+=s(n.toString(16))}return f}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function c(e,t,f,r){var n=f-t;A(n%4==0);for(var i=new Array(n/4),o=0,a=t;o<i.length;o++,a+=4){var s;s="big"===r?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],i[o]=s>>>0}return i}function u(e,t){for(var f=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var i=e[r];"big"===t?(f[n]=i>>>24,f[n+1]=i>>>16&255,f[n+2]=i>>>8&255,f[n+3]=255&i):(f[n+3]=i>>>24,f[n+2]=i>>>16&255,f[n+1]=i>>>8&255,f[n]=255&i)}return f}function d(e,t){return e>>>t|e<<32-t}function h(e,t){return e<<t|e>>>32-t}function l(e,t){return e+t>>>0}function p(e,t,f){return e+t+f>>>0}function b(e,t,f,r){return e+t+f+r>>>0}function m(e,t,f,r,n){return e+t+f+r+n>>>0}function y(e,t,f,r){var n=e[t],i=e[t+1],o=r+i>>>0,a=(o<r?1:0)+f+n;e[t]=a>>>0,e[t+1]=o}function v(e,t,f,r){return(t+r>>>0<t?1:0)+e+f>>>0}function g(e,t,f,r){return t+r>>>0}function w(e,t,f,r,n,i,o,a){var s=0,c=t;return c=c+r>>>0,s+=c<t?1:0,c=c+i>>>0,s+=c<i?1:0,c=c+a>>>0,s+=c<a?1:0,e+f+n+o+s>>>0}function _(e,t,f,r,n,i,o,a){return t+r+i+a>>>0}function S(e,t,f,r,n,i,o,a,s,c){var u=0,d=t;return d=d+r>>>0,u+=d<t?1:0,d=d+i>>>0,u+=d<i?1:0,d=d+a>>>0,u+=d<a?1:0,d=d+c>>>0,u+=d<c?1:0,e+f+n+o+s+u>>>0}function M(e,t,f,r,n,i,o,a,s,c){return t+r+i+a+c>>>0}function k(e,t,f){return(t<<32-f|e>>>f)>>>0}function x(e,t,f){return(e<<32-f|t>>>f)>>>0}function E(e,t,f){return e>>>f}function T(e,t,f){return(e<<32-f|t>>>f)>>>0}var A=e("minimalistic-assert"),I=e("inherits");f.inherits=I,f.toArray=r,f.toHex=n,f.htonl=i,f.toHex32=o,f.zero2=a,f.zero8=s,f.join32=c,f.split32=u,f.rotr32=d,f.rotl32=h,f.sum32=l,f.sum32_3=p,f.sum32_4=b,f.sum32_5=m,f.sum64=y,f.sum64_hi=v,f.sum64_lo=g,f.sum64_4_hi=w,f.sum64_4_lo=_,f.sum64_5_hi=S,f.sum64_5_lo=M,f.rotr64_hi=k,f.rotr64_lo=x,
f.shr64_hi=E,f.shr64_lo=T},{inherits:108,"minimalistic-assert":114}],107:[function(e,t,f){"use strict";function r(e){if(!(this instanceof r))return new r(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),f=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,f,n)}var n=e("hash.js"),i=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");t.exports=r,r.prototype._init=function(e,t,f){var r=e.concat(t).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},r.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(e,t,f,r){"string"!=typeof t&&(r=f,f=t,t=null),e=i.toArray(e,t),f=i.toArray(f,r),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(f||[])),this._reseed=1},r.prototype.generate=function(e,t,f,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=f,f=t,t=null),f&&(f=i.toArray(f,r||"hex"),this._update(f));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var o=n.slice(0,e);return this._update(f),this._reseed++,i.encode(o,t)}},{"hash.js":95,"minimalistic-assert":114,"minimalistic-crypto-utils":115}],108:[function(e,t,f){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var f=function(){};f.prototype=t.prototype,e.prototype=new f,e.prototype.constructor=e}},{}],109:[function(e,t,f){"use strict";var r=Function.prototype.toString,n=/^\s*class\b/,i=function(e){try{var t=r.call(e);return n.test(t)}catch(e){return!1}},o=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return o(e);if(i(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],110:[function(e,t,f){function r(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}t.exports=r;var n=Object.prototype.toString},{}],111:[function(e,t,f){t.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},{}],112:[function(e,t,f){(function(f){"use strict";function r(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function n(e,t){return e<<t|e>>>32-t}function i(e,t,f,r,i,o,a){return n(e+(t&f|~t&r)+i+o|0,a)+t|0}function o(e,t,f,r,i,o,a){return n(e+(t&r|f&~r)+i+o|0,a)+t|0}function a(e,t,f,r,i,o,a){return n(e+(t^f^r)+i+o|0,a)+t|0}function s(e,t,f,r,i,o,a){return n(e+(f^(t|~r))+i+o|0,a)+t|0}var c=e("inherits"),u=e("hash-base"),d=new Array(16);c(r,u),r.prototype._update=function(){for(var e=d,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var f=this._a,r=this._b,n=this._c,c=this._d;f=i(f,r,n,c,e[0],3614090360,7),c=i(c,f,r,n,e[1],3905402710,12),n=i(n,c,f,r,e[2],606105819,17),r=i(r,n,c,f,e[3],3250441966,22),f=i(f,r,n,c,e[4],4118548399,7),c=i(c,f,r,n,e[5],1200080426,12),n=i(n,c,f,r,e[6],2821735955,17),r=i(r,n,c,f,e[7],4249261313,22),f=i(f,r,n,c,e[8],1770035416,7),c=i(c,f,r,n,e[9],2336552879,12),n=i(n,c,f,r,e[10],4294925233,17),r=i(r,n,c,f,e[11],2304563134,22),f=i(f,r,n,c,e[12],1804603682,7),c=i(c,f,r,n,e[13],4254626195,12),n=i(n,c,f,r,e[14],2792965006,17),r=i(r,n,c,f,e[15],1236535329,22),f=o(f,r,n,c,e[1],4129170786,5),c=o(c,f,r,n,e[6],3225465664,9),n=o(n,c,f,r,e[11],643717713,14),r=o(r,n,c,f,e[0],3921069994,20),f=o(f,r,n,c,e[5],3593408605,5),c=o(c,f,r,n,e[10],38016083,9),n=o(n,c,f,r,e[15],3634488961,14),r=o(r,n,c,f,e[4],3889429448,20),f=o(f,r,n,c,e[9],568446438,5),c=o(c,f,r,n,e[14],3275163606,9),n=o(n,c,f,r,e[3],4107603335,14),r=o(r,n,c,f,e[8],1163531501,20),f=o(f,r,n,c,e[13],2850285829,5),c=o(c,f,r,n,e[2],4243563512,9),n=o(n,c,f,r,e[7],1735328473,14),r=o(r,n,c,f,e[12],2368359562,20),f=a(f,r,n,c,e[5],4294588738,4),c=a(c,f,r,n,e[8],2272392833,11),n=a(n,c,f,r,e[11],1839030562,16),r=a(r,n,c,f,e[14],4259657740,23),f=a(f,r,n,c,e[1],2763975236,4),c=a(c,f,r,n,e[4],1272893353,11),n=a(n,c,f,r,e[7],4139469664,16),r=a(r,n,c,f,e[10],3200236656,23),f=a(f,r,n,c,e[13],681279174,4),c=a(c,f,r,n,e[0],3936430074,11),n=a(n,c,f,r,e[3],3572445317,16),r=a(r,n,c,f,e[6],76029189,23),f=a(f,r,n,c,e[9],3654602809,4),c=a(c,f,r,n,e[12],3873151461,11),n=a(n,c,f,r,e[15],530742520,16),r=a(r,n,c,f,e[2],3299628645,23),f=s(f,r,n,c,e[0],4096336452,6),c=s(c,f,r,n,e[7],1126891415,10),n=s(n,c,f,r,e[14],2878612391,15),r=s(r,n,c,f,e[5],4237533241,21),f=s(f,r,n,c,e[12],1700485571,6),c=s(c,f,r,n,e[3],2399980690,10),n=s(n,c,f,r,e[10],4293915773,15),r=s(r,n,c,f,e[1],2240044497,21),f=s(f,r,n,c,e[8],1873313359,6),c=s(c,f,r,n,e[15],4264355552,10),n=s(n,c,f,r,e[6],2734768916,15),r=s(r,n,c,f,e[13],1309151649,21),f=s(f,r,n,c,e[4],4149444226,6),c=s(c,f,r,n,e[11],3174756917,10),n=s(n,c,f,r,e[2],718787259,15),r=s(r,n,c,f,e[9],3951481745,21),this._a=this._a+f|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+c|0},r.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=new f(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=r}).call(this,e("buffer").Buffer)},{buffer:274,"hash-base":94,inherits:108}],113:[function(e,t,f){function r(e){this.rand=e||new i.Rand}var n=e("bn.js"),i=e("brorand");t.exports=r,r.create=function(e){return new r(e)},r.prototype._randbelow=function(e){var t=e.bitLength(),f=Math.ceil(t/8);do{var r=new n(this.rand.generate(f))}while(r.cmp(e)>=0);return r},r.prototype._randrange=function(e,t){var f=t.sub(e);return e.add(this._randbelow(f))},r.prototype.test=function(e,t,f){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),u=a.toRed(i);t>0;t--){var d=this._randrange(new n(2),a);f&&f(d);var h=d.toRed(i).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var l=1;l<s;l++){if(h=h.redSqr(),0===h.cmp(o))return!1;if(0===h.cmp(u))break}if(l===s)return!1}}return!0},r.prototype.getDivisor=function(e,t){var f=e.bitLength(),r=n.mont(e),i=new n(1).toRed(r);t||(t=Math.max(1,f/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var s=e.shrn(a),c=o.toRed(r);t>0;t--){var u=this._randrange(new n(2),o),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(r).redPow(s);if(0!==h.cmp(i)&&0!==h.cmp(c)){for(var l=1;l<a;l++){if(h=h.redSqr(),0===h.cmp(i))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(l===a)return h=h.redSqr(),h.fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":21,brorand:22}],114:[function(e,t,f){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,f){if(e!=t)throw new Error(f||"Assertion failed: "+e+" != "+t)}},{}],115:[function(e,t,f){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var f=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)f[r]=0|e[r];return f}if("hex"===t){e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e);for(var r=0;r<e.length;r+=2)f.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),i=n>>8,o=255&n;i?f.push(i,o):f.push(o)}return f}function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",f=0;f<e.length;f++)t+=n(e[f].toString(16));return t}var o=f;o.toArray=r,o.zero2=n,o.toHex=i,o.encode=function(e,t){return"hex"===t?i(e):e}},{}],116:[function(e,t,f){arguments[4][89][0].apply(f,arguments)},{dup:89}],117:[function(e,t,f){var r=e("bn.js"),n=e("strip-hex-prefix");t.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new r(1),f=String(e).toLowerCase().trim(),i="0x"===f.substr(0,2)||"-0x"===f.substr(0,3),o=n(f);if("-"===o.substr(0,1)&&(o=n(o.slice(1)),t=new r(-1,10)),o=""===o?"0":o,!o.match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===i&&o.match(/^[0-9A-Fa-f]+$/))return new r(o,16).mul(t);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===i)return new r(o,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(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.")}},{"bn.js":116,"strip-hex-prefix":156}],118:[function(e,t,f){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},f=0;f<10;f++)t["_"+String.fromCharCode(f)]=f;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var f,a,s=r(e),c=1;c<arguments.length;c++){f=Object(arguments[c]);for(var u in f)i.call(f,u)&&(s[u]=f[u]);if(n){a=n(f);for(var d=0;d<a.length;d++)o.call(f,a[d])&&(s[a[d]]=f[a[d]])}}return s}},{}],119:[function(e,t,f){!function(e,r,n,i,o,a){function s(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function c(e){return function(t){return t[e]}}function u(e,t){return t.apply(a,e)}function d(e){var t=e.length-1,f=n.prototype.slice;if(0==t)return function(){return e.call(this,f.call(arguments))};if(1==t)return function(){return e.call(this,arguments[0],f.call(arguments,1))};var r=n(e.length);return function(){for(var n=0;n<t;n++)r[n]=arguments[n];return r[t]=f.call(arguments,t),e.apply(this,r)}}function h(e){return function(t,f){return e(f,t)}}function l(e,t){return function(f){return e(f)&&t(f)}}function p(){}function b(){return!0}function m(e){return function(){return e}}function y(e,t){return t&&t.constructor===e}function v(e){return e!==a}function g(e,t){return t instanceof r&&E(function(e){return e in t},e)}function w(e,t){return[e,t]}function _(e){return A(e.reduce(h(w),J))}function S(e){return k(function(e,t){return e.unshift(t),e},[],e)}function M(e,t){return t?w(e(Y(t)),M(e,Q(t))):J}function k(e,t,f){return f?e(k(e,t,Q(f)),Y(f)):t}function x(e,t,f){function r(e,f){return e?t(Y(e))?(f(Y(e)),Q(e)):w(Y(e),r(Q(e),f)):J}return r(e,f||p)}function E(e,t){return!t||e(Y(t))&&E(e,Q(t))}function T(e,t){e&&(Y(e).apply(null,t),T(Q(e),t))}function A(e){function t(e,f){return e?t(Q(e),w(Y(e),f)):f}return t(e,J)}function I(e,t){return t&&(e(Y(t))?Y(t):I(e,Q(t)))}function C(e){"use strict";function t(){var e=0;F!==a&&F.length>b&&(f("Max buffer length exceeded: textNode"),e=Math.max(e,F.length)),z.length>b&&(f("Max buffer length exceeded: numberNode"),e=Math.max(e,z.length)),q=b-e+Z}function f(e){F!==a&&(h(F),l(),F=a),s=i(e+"\nLn: "+Y+"\nCol: "+J+"\nChr: "+c),p(U(a,a,s))}function r(){if(K==v)return h({}),l(),void(V=!0);K===g&&0===G||f("Unexpected end"),F!==a&&(h(F),l(),F=a),V=!0}function n(e){return"\r"==e||"\n"==e||" "==e||"\t"==e}function o(e){if(!s){if(V)return f("Cannot write after close");var r=0;for(c=e[0];c&&(u=c,c=e[r++]);)switch(Z++,"\n"==c?(Y++,J=0):J++,K){case v:if("{"===c)K=w;else if("["===c)K=S;else if(!n(c))return f("Non-whitespace before {[.");continue;case x:case w:if(n(c))continue;if(K===x)$.push(E);else{if("}"===c){h({}),l(),K=$.pop()||g;continue}$.push(_)}if('"'!==c)return f('Malformed object key should start with " ');K=k;continue;case E:case _:if(n(c))continue;if(":"===c)K===_?($.push(_),F!==a&&(h({}),d(F),F=a),G++):F!==a&&(d(F),F=a),K=g;else if("}"===c)F!==a&&(h(F),l(),F=a),l(),G--,K=$.pop()||g;else{if(","!==c)return f("Bad object");K===_&&$.push(_),F!==a&&(h(F),l(),F=a),K=x}continue;case S:case g:if(n(c))continue;if(K===S){if(h([]),G++,K=g,"]"===c){l(),G--,K=$.pop()||g;continue}$.push(M)}if('"'===c)K=k;else if("{"===c)K=w;else if("["===c)K=S;else if("t"===c)K=T;else if("f"===c)K=C;else if("n"===c)K=D;else if("-"===c)z+=c;else if("0"===c)z+=c,K=L;else{if(-1==="123456789".indexOf(c))return f("Bad value");z+=c,K=L}continue;case M:if(","===c)$.push(M),F!==a&&(h(F),l(),F=a),K=g;else{if("]"!==c){if(n(c))continue;return f("Bad array")}F!==a&&(h(F),l(),F=a),l(),G--,K=$.pop()||g}continue;case k:F===a&&(F="");var i=r-1;e:for(;;){for(;X>0;)if(W+=c,c=e.charAt(r++),4===X?(F+=String.fromCharCode(parseInt(W,16)),X=0,i=r-1):X++,!c)break e;if('"'===c&&!H){K=$.pop()||g,F+=e.substring(i,r-1);break}if(!("\\"!==c||H||(H=!0,F+=e.substring(i,r-1),c=e.charAt(r++))))break;if(H){if(H=!1,"n"===c?F+="\n":"r"===c?F+="\r":"t"===c?F+="\t":"f"===c?F+="\f":"b"===c?F+="\b":"u"===c?(X=1,W=""):F+=c,c=e.charAt(r++),i=r-1,c)continue;break}m.lastIndex=r;var o=m.exec(e);if(!o){r=e.length+1,F+=e.substring(i,r-1);break}if(r=o.index+1,!(c=e.charAt(o.index))){F+=e.substring(i,r-1);break}}continue;case T:if(!c)continue;if("r"!==c)return f("Invalid true started with t"+c);K=A;continue;case A:if(!c)continue;if("u"!==c)return f("Invalid true started with tr"+c);K=I;continue;case I:if(!c)continue;if("e"!==c)return f("Invalid true started with tru"+c);h(!0),l(),K=$.pop()||g;continue;case C:if(!c)continue;if("a"!==c)return f("Invalid false started with f"+c);K=j;continue;case j:if(!c)continue;if("l"!==c)return f("Invalid false started with fa"+c);K=B;continue;case B:if(!c)continue;if("s"!==c)return f("Invalid false started with fal"+c);K=P;continue;case P:if(!c)continue;if("e"!==c)return f("Invalid false started with fals"+c);h(!1),l(),K=$.pop()||g;continue;case D:if(!c)continue;if("u"!==c)return f("Invalid null started with n"+c);K=N;continue;case N:if(!c)continue;if("l"!==c)return f("Invalid null started with nu"+c);K=R;continue;case R:if(!c)continue;if("l"!==c)return f("Invalid null started with nul"+c);h(null),l(),K=$.pop()||g;continue;case O:if("."!==c)return f("Leading zero not followed by .");z+=c,K=L;continue;case L:if(-1!=="0123456789".indexOf(c))z+=c;else if("."===c){if(-1!==z.indexOf("."))return f("Invalid number has two dots");z+=c}else if("e"===c||"E"===c){if(-1!==z.indexOf("e")||-1!==z.indexOf("E"))return f("Invalid number has two exponential");z+=c}else if("+"===c||"-"===c){if("e"!==u&&"E"!==u)return f("Invalid symbol in number");z+=c}else z&&(h(parseFloat(z)),l(),z=""),r--,K=$.pop()||g;continue;default:return f("Unknown state: "+K)}Z>=q&&t()}}var s,c,u,d=e(ve).emit,h=e(ge).emit,l=e(we).emit,p=e(de).emit,b=65536,m=/[\\"\n]/g,y=0,v=y++,g=y++,w=y++,_=y++,S=y++,M=y++,k=y++,x=y++,E=y++,T=y++,A=y++,I=y++,C=y++,j=y++,B=y++,P=y++,D=y++,N=y++,R=y++,O=y++,L=y,q=b,F=a,z="",H=!1,V=!1,K=v,$=[],W=null,X=0,G=0,Z=0,J=0,Y=1;e(be).on(o),e(me).on(r)}function j(e,t){"use strict";var f,r={};for(var n in t)e(n).on(function(e){return function(t){f=e(f,t)}}(t[n]),r);e(ce).on(function(e){var t,r=Y(f),n=fe(r),i=Q(f);i&&(t=re(Y(i)),t[n]=e)}),e(ue).on(function(){var e,t=Y(f),r=fe(t),n=Q(f);n&&(e=re(Y(n)),delete e[r])}),e(ye).on(function(){for(var f in t)e(f).un(r)})}function B(e){var t={};return e&&e.split("\r\n").forEach(function(e){var f=e.indexOf(": ");t[e.substring(0,f)]=e.substring(f+2)}),t}function P(e,t){function f(e){return{"http:":80,"https:":443}[e]}function r(t){return t.port||f(t.protocol||e.protocol)}return!!(t.protocol&&t.protocol!=e.protocol||t.host&&t.host!=e.host||t.host&&r(t)!=r(e))}function D(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/,f=t.exec(e)||[];return{protocol:f[1]||"",host:f[2]||"",port:f[3]||""}}function N(){return new XMLHttpRequest}function R(t,f,r,n,i,o,s){"use strict";function c(){var e=f.responseText,t=e.substr(h);t&&u(t),h=G(e)}var u=t(be).emit,d=t(de).emit,h=0,l=!0;t(ye).on(function(){f.onreadystatechange=null,f.abort()}),"onprogress"in f&&(f.onprogress=c),f.onreadystatechange=function(){function e(){try{l&&t(pe).emit(f.status,B(f.getAllResponseHeaders())),l=!1}catch(e){}}switch(f.readyState){case 2:case 3:return e();case 4:e();2==String(f.status)[0]?(c(),t(me).emit()):d(U(f.status,f.responseText))}};try{f.open(r,n,!0);for(var p in o)f.setRequestHeader(p,o[p]);P(e.location,D(n))||f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.withCredentials=s,f.send(i)}catch(t){e.setTimeout(W(d,U(a,a,t)),0)}}function O(e,t){return{key:e,node:t}}function L(e){function t(e,t){var f=re(Y(e));return y(n,f)?i(e,G(f),t):e}function f(e,f){if(!e)return c(f),i(e,ne,f);var n=t(e,f),o=Q(n),a=fe(Y(n));return r(o,a,f),w(O(a,f),o)}function r(e,t,f){re(Y(e))[t]=f}function i(e,t,f){e&&r(e,t,f);var n=w(O(t,f),e);return a(n),n}function o(e){return s(e),Q(e)||u(re(Y(e)))}var a=e(ae).emit,s=e(se).emit,c=e(le).emit,u=e(he).emit,d={};return d[ge]=f,d[we]=o,d[ve]=i,d}function q(e,t,f){function r(e){return function(t){return t.id==e}}var n,i;return{on:function(f,r){var o={listener:f,id:r||f};return t&&t.emit(e,f,o.id),n=w(o,n),i=w(f,i),this},emit:function(){T(i,arguments)},un:function(t){var o;n=x(n,r(t),function(e){o=e}),o&&(i=x(i,function(e){return e==o.listener}),f&&f.emit(e,o.listener,o.id))},listeners:function(){return i},hasListener:function(e){return v(I(e?r(e):b,n))}}}function F(){function e(e){return f[e]=q(e,r,n)}function t(t){return f[t]||e(t)}var f={},r=e("newListener"),n=e("removeListener");return["emit","on","un"].forEach(function(e){t[e]=d(function(f,r){u(r,t(f)[e])})}),t}function U(e,t,f){try{var r=o.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:r,thrown:f}}function z(e,t){function f(e,t,f){var r=A(f);e(t,S(Q(M(fe,r))),S(M(re,r)))}function r(t,r,n){var i=e(t).emit;r.on(function(e){var t=n(e);!1!==t&&f(i,re(t),e)},t),e("removeListener").on(function(f){f==t&&(e(f).listeners()||r.un(t))})}var n={node:e(se),path:e(ae)};e("newListener").on(function(e){var f=/(node|path):(.*)/.exec(e);if(f){var i=n[f[1]];i.hasListener(e)||r(e,i,t(f[2]))}})}function H(e,t){function f(t,f){return e(t).on(n(f),f),h}function r(e,t,f){f=f||t;var r=n(t);return e.on(function(){var t=!1;h.forget=function(){t=!0},u(arguments,r),delete h.forget,t&&e.un(f)},f),h}function n(e){return function(){try{return e.apply(h,arguments)}catch(e){setTimeout(function(){throw e})}}}function i(t,f){return e(t+":"+f)}function o(e){return function(){var t=e.apply(this,arguments);v(t)&&(t==$.drop?y():g(t))}}function a(e,t,f){var n;n="node"==e?o(f):f,r(i(e,t),n,f)}function s(e,t){for(var f in t)a(e,f,t[f])}function c(e,t,f){return Z(t)?a(e,t,f):s(e,t),h}var h,l=/^(node|path):./,b=e(he),y=e(ue).emit,g=e(ce).emit,w=d(function(t,f){if(h[t])u(f,h[t]);else{var n=e(t),i=f[0];l.test(t)?r(n,i):n.on(i)}return h}),_=function(t,f,r){if("done"==t)b.un(f);else if("node"==t||"path"==t)e.un(t+":"+f,r);else{var n=f;e(t).un(n)}return h};return e(le).on(function(e){h.root=m(e)}),e(pe).on(function(e,t){h.header=function(e){return e?t[e]:t}}),h={on:w,addListener:w,removeListener:_,emit:e.emit,node:W(c,"node"),path:W(c,"path"),done:W(r,b),start:W(f,pe),fail:e(de).on,abort:e(ye).emit,header:p,root:p,source:t}}function V(e,t,f,r,n){var i=F();return t&&R(i,N(),e,t,f,r,n),C(i),j(i,L(i)),z(i,ie),H(i,t)}function K(e,t,f,r,n,i,a){return n=n?o.parse(o.stringify(n)):{},r?Z(r)||(r=o.stringify(r),n["Content-Type"]=n["Content-Type"]||"application/json"):r=null,e(f||"GET",function(e,t){return!1===t&&(-1==e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}(t,a),r,n,i||!1)}function $(e){var t=ee("resume","pause","pipe"),f=W(g,t);return e?f(e)||Z(e)?K(V,e):K(V,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):V()}var W=d(function(e,t){var f=t.length;return d(function(r){for(var n=0;n<r.length;n++)t[f+n]=r[n];return t.length=f+r.length,e.apply(this,t)})}),X=(d(function(e){function t(e,t){return[u(e,t)]}var f=_(e);return d(function(e){return k(t,e,f)[0]})}),d(function(e){return d(function(t){for(var f,r=0;r<G(e);r++)if(f=u(t,e[r]))return f})})),G=c("length"),Z=W(y,String),J=null,Y=c(0),Q=c(1),ee=d(_),te=function(){var e=function(e){return e.exec.bind(e)},t=d(function(t){return t.unshift(/^/),e(RegExp(t.map(c("source")).join("")))}),f=/(\$?)/,r=/([\w-_]+|\*)/,n=/()/,i=/\["([^"]+)"\]/,o=/\[(\d+|\*)\]/,a=/{([\w ]*?)}/,s=/(?:{([\w ]*?)})?/,u=t(f,r,s),h=t(f,i,s),l=t(f,o,s),p=t(f,n,a),b=t(/\.\./),m=t(/\./),y=t(f,/!/),v=t(/$/);return function(e){return e(X(u,h,l,p),b,m,y,v)}}(),fe=c("key"),re=c("node"),ne={},ie=te(function(e,t,f,r,n){function o(e,t){var f=t[x];return l(f&&"*"!=f?function(e){return T(e)==f}:b,e)}function a(e,t){var f=t[E];return f?l(s(W(g,_(f.split(/\W+/))),A),e):e}function c(e,t){return!t[M]?e:l(e,Y)}function u(e){function t(e){return T(e)!=ne}return e==b?b:l(t,s(e,Q))}function d(e){if(e==b)return b;var t=h(),f=e,r=u(function(e){return n(e)}),n=X(t,f,r);return n}function h(){return function(e){return T(e)==ne}}function p(e){return function(t){var f=e(t);return!0===f?Y(t):f}}function m(e,t,f){return k(function(e,t){return t(e,f)},t,e)}function y(e,t,f,r,n){var i=e(f);if(i){var o=m(t,r,i);return n(f.substr(G(i[0])),o)}}function v(e,t){return W(y,e,t)}function w(e,t){return t}function S(e,t){return I(e,t,e?S:w)}var M=1,x=2,E=3,T=s(fe,Y),A=s(re,Y),I=X(v(e,ee(c,a,o,u)),v(t,ee(d)),v(f,ee()),v(r,ee(c,h)),v(n,ee(p)),function(e){throw i('"'+e+'" could not be tokenised')});return function(e){try{return S(e,b)}catch(t){throw i('Could not compile "'+e+'" because '+t.message)}}}),oe=1,ae=oe++,se=oe++,ce=oe++,ue=oe++,de="fail",he=oe++,le=oe++,pe="start",be="data",me="end",ye=oe++,ve=oe++,ge=oe++,we=oe++;$.drop=function(){return $.drop},"function"==typeof define&&define.amd?define("oboe",[],function(){return $}):"object"==typeof f?t.exports=$:e.oboe=$}(function(){try{return window}catch(e){return self}}(),Object,Array,Error,JSON)},{}],120:[function(e,t,f){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],121:[function(e,t,f){"use strict";var r=e("asn1.js");f.certificate=e("./certificate");var n=r.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())});f.RSAPrivateKey=n;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});f.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});f.PublicKey=o;var a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),s=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});f.PrivateKey=s;var c=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});f.EncryptedPrivateKey=c;var u=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});f.DSAPrivateKey=u,f.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});f.ECPrivateKey=d;var h=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});f.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":122,"asn1.js":7}],122:[function(e,t,f){"use strict";var r=e("asn1.js"),n=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),s=r.define("RelativeDistinguishedName",function(){this.setof(i)}),c=r.define("RDNSequence",function(){this.seqof(s)}),u=r.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),h=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),l=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(l),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":7}],123:[function(e,t,f){(function(f){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=e("evp_bytestokey"),a=e("browserify-aes");t.exports=function(e,t){var s,c=e.toString(),u=c.match(r);if(u){var d="aes"+u[1],h=new f(u[2],"hex"),l=new f(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,h.slice(0,8),parseInt(u[1],10)).key,b=[],m=a.createDecipheriv(d,p,h);b.push(m.update(l)),b.push(m.final()),s=f.concat(b)}else{var y=c.match(i);s=new f(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(n)[1],data:s}}}).call(this,e("buffer").Buffer)},{"browserify-aes":25,buffer:274,evp_bytestokey:91}],124:[function(e,t,f){(function(f){function r(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new f(e));var r,o,s=a(e,t),c=s.tag,u=s.data;switch(c){case"CERTIFICATE":o=i.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=i.PublicKey.decode(u,"der")),r=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=i.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+c);case"ENCRYPTED PRIVATE KEY":u=i.EncryptedPrivateKey.decode(u,"der"),u=n(u,t);case"PRIVATE KEY":switch(o=i.PrivateKey.decode(u,"der"),r=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:i.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=i.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+c);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return u=i.ECPrivateKey.decode(u,"der"),{curve:u.parameters.value,privateKey:u.privateKey};default:throw new Error("unknown key type "+c)}}function n(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(i.split("-")[1],10)/8,h=c.pbkdf2Sync(t,r,n,d),l=s.createDecipheriv(i,h,a),p=[];return p.push(l.update(u)),p.push(l.final()),f.concat(p)}var i=e("./asn1"),o=e("./aesid.json"),a=e("./fixProc"),s=e("browserify-aes"),c=e("pbkdf2");t.exports=r,r.signature=i.signature}).call(this,e("buffer").Buffer)},{"./aesid.json":120,"./asn1":121,"./fixProc":123,"browserify-aes":25,buffer:274,pbkdf2:126}],125:[function(e,t,f){var r=e("trim"),n=e("for-each"),i=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};var t={};return n(r(e).split("\n"),function(e){var f=e.indexOf(":"),n=r(e.slice(0,f)).toLowerCase(),o=r(e.slice(f+1));void 0===t[n]?t[n]=o:i(t[n])?t[n].push(o):t[n]=[t[n],o]}),t}},{"for-each":92,trim:161}],126:[function(e,t,f){f.pbkdf2=e("./lib/async"),f.pbkdf2Sync=e("./lib/sync")},{"./lib/async":127,"./lib/sync":130}],127:[function(e,t,f){(function(f,r){function n(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==p[e])return p[e];a=a||d.alloc(8);var t=i(a,a,10,128,e).then(function(){return!0}).catch(function(){return!1});return p[e]=t,t}function i(e,t,f,r,n){return h.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return h.deriveBits({name:"PBKDF2",salt:t,iterations:f,hash:{name:n}},e,r<<3)}).then(function(e){return d.from(e)})}function o(e,t){e.then(function(e){f.nextTick(function(){t(null,e)})},function(e){f.nextTick(function(){t(e)})})}var a,s=e("./precondition"),c=e("./default-encoding"),u=e("./sync"),d=e("safe-buffer").Buffer,h=r.crypto&&r.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[]
;t.exports=function(e,t,a,h,p,b){"function"==typeof p&&(b=p,p=void 0),p=p||"sha1";var m=l[p.toLowerCase()];if(!m||"function"!=typeof r.Promise)return f.nextTick(function(){var f;try{f=u(e,t,a,h,p)}catch(e){return b(e)}b(null,f)});if(s(e,t,a,h),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");d.isBuffer(e)||(e=d.from(e,c)),d.isBuffer(t)||(t=d.from(t,c)),o(n(m).then(function(f){return f?i(e,t,a,h,m):u(e,t,a,h,p)}),b)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":128,"./precondition":129,"./sync":130,_process:344,"safe-buffer":144}],128:[function(e,t,f){(function(e){var f;if(e.browser)f="utf-8";else{f=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}t.exports=f}).call(this,e("_process"))},{_process:344}],129:[function(e,t,f){(function(e){function f(t,f){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(f+" must be a buffer or string")}var r=Math.pow(2,30)-1;t.exports=function(e,t,n,i){if(f(e,"Password"),f(t,"Salt"),"number"!=typeof n)throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>r||i!==i)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../../../../../../../usr/local/lib/node_modules/watchify/node_modules/is-buffer/index.js")})},{"../../../../../../../../usr/local/lib/node_modules/watchify/node_modules/is-buffer/index.js":327}],130:[function(e,t,f){function r(e,t,f){var r=n(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length<i&&(t=d.concat([t,h],i));for(var o=d.allocUnsafe(i+l[e]),a=d.allocUnsafe(i+l[e]),s=0;s<i;s++)o[s]=54^t[s],a[s]=92^t[s];var c=d.allocUnsafe(i+f+4);o.copy(c,0,0,i),this.ipad1=c,this.ipad2=o,this.opad=a,this.alg=e,this.blocksize=i,this.hash=r,this.size=l[e]}function n(e){function t(t){return s(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?a:"md5"===e?o:t}function i(e,t,f,n,i){c(e,t,f,n),d.isBuffer(e)||(e=d.from(e,u)),d.isBuffer(t)||(t=d.from(t,u)),i=i||"sha1";var o=new r(i,e,t.length),a=d.allocUnsafe(n),s=d.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var h=0,p=l[i],b=Math.ceil(n/p),m=1;m<=b;m++){s.writeUInt32BE(m,t.length);for(var y=o.run(s,o.ipad1),v=y,g=1;g<f;g++){v=o.run(v,o.ipad2);for(var w=0;w<p;w++)y[w]^=v[w]}y.copy(a,h),h+=p}return a}var o=e("create-hash/md5"),a=e("ripemd160"),s=e("sha.js"),c=e("./precondition"),u=e("./default-encoding"),d=e("safe-buffer").Buffer,h=d.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=i},{"./default-encoding":128,"./precondition":129,"create-hash/md5":54,ripemd160:143,"safe-buffer":144,"sha.js":148}],131:[function(e,t,f){f.publicEncrypt=e("./publicEncrypt"),f.privateDecrypt=e("./privateDecrypt"),f.privateEncrypt=function(e,t){return f.publicEncrypt(e,t,!0)},f.publicDecrypt=function(e,t){return f.privateDecrypt(e,t,!0)}},{"./privateDecrypt":133,"./publicEncrypt":134}],132:[function(e,t,f){(function(f){function r(e){var t=new f(4);return t.writeUInt32BE(e,0),t}var n=e("create-hash");t.exports=function(e,t){for(var i,o=new f(""),a=0;o.length<t;)i=r(a++),o=f.concat([o,n("sha1").update(e).update(i).digest()]);return o.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:274,"create-hash":53}],133:[function(e,t,f){(function(f){function r(e,t){var r=(e.modulus,e.modulus.byteLength()),n=(t.length,d("sha1").update(new f("")).digest()),o=n.length;if(0!==t[0])throw new Error("decryption error");var c=t.slice(1,o+1),u=t.slice(o+1),h=s(c,a(u,o)),l=s(u,a(h,r-o-1));if(i(n,l.slice(0,o)))throw new Error("decryption error");for(var p=o;0===l[p];)p++;if(1!==l[p++])throw new Error("decryption error");return l.slice(p)}function n(e,t,f){for(var r=t.slice(0,2),n=2,i=0;0!==t[n++];)if(n>=t.length){i++;break}var o=t.slice(2,n-1);t.slice(n-1,n);if(("0002"!==r.toString("hex")&&!f||"0001"!==r.toString("hex")&&f)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(n)}function i(e,t){e=new f(e),t=new f(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}var o=e("parse-asn1"),a=e("./mgf"),s=e("./xor"),c=e("bn.js"),u=e("browserify-rsa"),d=e("create-hash"),h=e("./withPublic");t.exports=function(e,t,i){var a;a=e.padding?e.padding:i?1:4;var s=o(e),d=s.modulus.byteLength();if(t.length>d||new c(t).cmp(s.modulus)>=0)throw new Error("decryption error");var l;l=i?h(new c(t),s):u(t,s);var p=new f(d-l.length);if(p.fill(0),l=f.concat([p,l],d),4===a)return r(s,l);if(1===a)return n(s,l,i);if(3===a)return l;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":132,"./withPublic":135,"./xor":136,"bn.js":21,"browserify-rsa":43,buffer:274,"create-hash":53,"parse-asn1":124}],134:[function(e,t,f){(function(f){function r(e,t){var r=e.modulus.byteLength(),n=t.length,i=s("sha1").update(new f("")).digest(),o=i.length,h=2*o;if(n>r-h-2)throw new Error("message too long");var l=new f(r-n-h-2);l.fill(0);var p=r-o-1,b=a(o),m=u(f.concat([i,l,new f([1]),t],p),c(b,p)),y=u(b,c(m,o));return new d(f.concat([new f([0]),y,m],r))}function n(e,t,r){var n=t.length,o=e.modulus.byteLength();if(n>o-11)throw new Error("message too long");var a;return r?(a=new f(o-n-3),a.fill(255)):a=i(o-n-3),new d(f.concat([new f([0,r?1:2]),a,new f([0]),t],o))}function i(e,t){for(var r,n=new f(e),i=0,o=a(2*e),s=0;i<e;)s===o.length&&(o=a(2*e),s=0),(r=o[s++])&&(n[i++]=r);return n}var o=e("parse-asn1"),a=e("randombytes"),s=e("create-hash"),c=e("./mgf"),u=e("./xor"),d=e("bn.js"),h=e("./withPublic"),l=e("browserify-rsa");t.exports=function(e,t,f){var i;i=e.padding?e.padding:f?1:4;var a,s=o(e);if(4===i)a=r(s,t);else if(1===i)a=n(s,t,f);else{if(3!==i)throw new Error("unknown padding");if(a=new d(t),a.cmp(s.modulus)>=0)throw new Error("data too long for modulus")}return f?l(a,s):h(a,s)}}).call(this,e("buffer").Buffer)},{"./mgf":132,"./withPublic":135,"./xor":136,"bn.js":21,"browserify-rsa":43,buffer:274,"create-hash":53,"parse-asn1":124,randombytes:138}],135:[function(e,t,f){(function(f){function r(e,t){return new f(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}var n=e("bn.js");t.exports=r}).call(this,e("buffer").Buffer)},{"bn.js":21,buffer:274}],136:[function(e,t,f){t.exports=function(e,t){for(var f=e.length,r=-1;++r<f;)e[r]^=t[r];return e}},{}],137:[function(e,t,f){"use strict";function r(e){switch(e.arrayFormat){case"index":return function(t,f,r){return null===f?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(f,e)].join("")};case"bracket":return function(t,f){return null===f?i(t,e):[i(t,e),"[]=",i(f,e)].join("")};default:return function(t,f){return null===f?i(t,e):[i(t,e),"=",i(f,e)].join("")}}}function n(e){var t;switch(e.arrayFormat){case"index":return function(e,f,r){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(r[e]=f);void 0===r[e]&&(r[e]={}),r[e][t[1]]=f};case"bracket":return function(e,f,r){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0===r[e]?void(r[e]=[f]):void(r[e]=[].concat(r[e],f)):void(r[e]=f)};default:return function(e,t,f){if(void 0===f[e])return void(f[e]=t);f[e]=[].concat(f[e],t)}}}function i(e,t){return t.encode?t.strict?c(e):encodeURIComponent(e):e}function o(e){return Array.isArray(e)?e.sort():"object"==typeof e?o(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function a(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function s(e,t){t=u({arrayFormat:"none"},t);var f=n(t),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:d(i),f(d(n),i,r)}),Object.keys(r).sort().reduce(function(e,t){var f=r[t];return Boolean(f)&&"object"==typeof f&&!Array.isArray(f)?e[t]=o(f):e[t]=f,e},Object.create(null))):r}var c=e("strict-uri-encode"),u=e("object-assign"),d=e("decode-uri-component");f.extract=a,f.parse=s,f.stringify=function(e,t){t=u({encode:!0,strict:!0,arrayFormat:"none"},t),!1===t.sort&&(t.sort=function(){});var f=r(t);return e?Object.keys(e).sort(t.sort).map(function(r){var n=e[r];if(void 0===n)return"";if(null===n)return i(r,t);if(Array.isArray(n)){var o=[];return n.slice().forEach(function(e){void 0!==e&&o.push(f(r,e,o.length))}),o.join("&")}return i(r,t)+"="+i(n,t)}).filter(function(e){return e.length>0}).join("&"):""},f.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:s(a(e),t)}}},{"decode-uri-component":58,"object-assign":118,"strict-uri-encode":155}],138:[function(e,t,f){(function(f,r){"use strict";function n(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}function i(e,t){if(e>65536)throw new Error("requested too many random bytes");var n=new r.Uint8Array(e);e>0&&a.getRandomValues(n);var i=o.from(n.buffer);return"function"==typeof t?f.nextTick(function(){t(null,i)}):i}var o=e("safe-buffer").Buffer,a=r.crypto||r.msCrypto;a&&a.getRandomValues?t.exports=i:t.exports=n}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:344,"safe-buffer":144}],139:[function(e,t,f){(function(t,r){"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function i(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>b||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function o(e,t,f){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>b||e<0)throw new TypeError("size must be a uint32");if(e+t>f||e>l)throw new RangeError("buffer too small")}function a(e,t,f,n){if(!(h.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,f=e.length;else if("function"==typeof f)n=f,f=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return i(t,e.length),o(f,t,e.length),s(e,t,f,n)}function s(e,f,r,n){if(t.browser){var i=e.buffer,o=new Uint8Array(i,f,r);return p.getRandomValues(o),n?void t.nextTick(function(){n(null,e)}):e}return n?void d(r,function(t,r){if(t)return n(t);r.copy(e,f),n(null,e)}):(d(r).copy(e,f),e)}function c(e,t,f){if(void 0===t&&(t=0),!(h.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return i(t,e.length),void 0===f&&(f=e.length-t),o(f,t,e.length),s(e,t,f)}var u=e("safe-buffer"),d=e("randombytes"),h=u.Buffer,l=u.kMaxLength,p=r.crypto||r.msCrypto,b=Math.pow(2,32)-1;p&&p.getRandomValues||!t.browser?(f.randomFill=a,f.randomFillSync=c):(f.randomFill=n,f.randomFillSync=n)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:344,randombytes:138,"safe-buffer":144}],140:[function(e,t,f){t.exports=window.crypto},{}],141:[function(e,t,f){t.exports=e("crypto")},{crypto:140}],142:[function(e,t,f){var r=function(t,f){var r=e("./crypto.js"),n="function"==typeof f;if(t>65536){if(!n)throw new Error("Requested too many random bytes.");f(new Error("Requested too many random bytes."))}if(void 0!==r&&r.randomBytes){if(!n)return"0x"+r.randomBytes(t).toString("hex");r.randomBytes(t,function(e,t){e?f(s):f(null,"0x"+t.toString("hex"))})}else{var i;if(void 0!==r?i=r:"undefined"!=typeof msCrypto&&(i=msCrypto),i&&i.getRandomValues){var o=i.getRandomValues(new Uint8Array(t)),a="0x"+Array.from(o).map(function(e){return e.toString(16)}).join("");if(!n)return a;f(null,a)}else{var s=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.');if(!n)throw s;f(s)}}};t.exports=r},{"./crypto.js":141}],143:[function(e,t,f){"use strict";function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function n(e,t){return e<<t|e>>>32-t}function i(e,t,f,r,i,o,a,s){return n(e+(t^f^r)+o+a|0,s)+i|0}function o(e,t,f,r,i,o,a,s){return n(e+(t&f|~t&r)+o+a|0,s)+i|0}function a(e,t,f,r,i,o,a,s){return n(e+((t|~f)^r)+o+a|0,s)+i|0}function s(e,t,f,r,i,o,a,s){return n(e+(t&r|f&~r)+o+a|0,s)+i|0}function c(e,t,f,r,i,o,a,s){return n(e+(t^(f|~r))+o+a|0,s)+i|0}var u=e("buffer").Buffer,d=e("inherits"),h=e("hash-base"),l=new Array(16),p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],v=[0,1518500249,1859775393,2400959708,2840853838],g=[1352829926,1548603684,1836072691,2053994217,0];d(r,h),r.prototype._update=function(){for(var e=l,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var f=0|this._a,r=0|this._b,u=0|this._c,d=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,M=0|this._d,k=0|this._e,x=0;x<80;x+=1){var E,T;x<16?(E=i(f,r,u,d,h,e[p[x]],v[0],m[x]),T=c(w,_,S,M,k,e[b[x]],g[0],y[x])):x<32?(E=o(f,r,u,d,h,e[p[x]],v[1],m[x]),T=s(w,_,S,M,k,e[b[x]],g[1],y[x])):x<48?(E=a(f,r,u,d,h,e[p[x]],v[2],m[x]),T=a(w,_,S,M,k,e[b[x]],g[2],y[x])):x<64?(E=s(f,r,u,d,h,e[p[x]],v[3],m[x]),T=o(w,_,S,M,k,e[b[x]],g[3],y[x])):(E=c(f,r,u,d,h,e[p[x]],v[4],m[x]),T=i(w,_,S,M,k,e[b[x]],g[4],y[x])),f=h,h=d,d=n(u,10),u=r,r=E,w=k,k=M,M=n(S,10),S=_,_=T}var A=this._b+u+M|0;this._b=this._c+d+k|0,this._c=this._d+h+w|0,this._d=this._e+f+_|0,this._e=this._a+r+S|0,this._a=A},r.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=u.alloc?u.alloc(20):new u(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},t.exports=r},{buffer:274,"hash-base":94,inherits:108}],144:[function(e,t,f){function r(e,t){for(var f in e)t[f]=e[f]}function n(e,t,f){return o(e,t,f)}var i=e("buffer"),o=i.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,f),f.Buffer=n),r(o,n),n.from=function(e,t,f){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,f)},n.alloc=function(e,t,f){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof f?r.fill(t,f):r.fill(t):r.fill(0),r},n.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},n.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:274}],145:[function(e,t,f){t.exports=e("scryptsy")},{scryptsy:146}],146:[function(e,t,f){(function(f){function r(e,t,r,a,s,c,u){function d(e,t,f,r){var i;for(n(e,t+64*(2*r-1),w,0,64),i=0;i<2*r;i++)p(e,64*i,w,0,64),l(w),n(w,0,e,f+64*i,64);for(i=0;i<r;i++)n(e,f+2*i*64,e,t+64*i,64);for(i=0;i<r;i++)n(e,f+64*(2*i+1),e,t+64*(i+r),64)}function h(e,t){return e<<t|e>>>32-t}function l(e){var t;for(t=0;t<16;t++)v[t]=(255&e[4*t+0])<<0,v[t]|=(255&e[4*t+1])<<8,v[t]|=(255&e[4*t+2])<<16,v[t]|=(255&e[4*t+3])<<24;for(n(v,0,g,0,16),t=8;t>0;t-=2)g[4]^=h(g[0]+g[12],7),g[8]^=h(g[4]+g[0],9),g[12]^=h(g[8]+g[4],13),g[0]^=h(g[12]+g[8],18),g[9]^=h(g[5]+g[1],7),g[13]^=h(g[9]+g[5],9),g[1]^=h(g[13]+g[9],13),g[5]^=h(g[1]+g[13],18),g[14]^=h(g[10]+g[6],7),g[2]^=h(g[14]+g[10],9),g[6]^=h(g[2]+g[14],13),g[10]^=h(g[6]+g[2],18),g[3]^=h(g[15]+g[11],7),g[7]^=h(g[3]+g[15],9),g[11]^=h(g[7]+g[3],13),g[15]^=h(g[11]+g[7],18),g[1]^=h(g[0]+g[3],7),g[2]^=h(g[1]+g[0],9),g[3]^=h(g[2]+g[1],13),g[0]^=h(g[3]+g[2],18),g[6]^=h(g[5]+g[4],7),g[7]^=h(g[6]+g[5],9),g[4]^=h(g[7]+g[6],13),g[5]^=h(g[4]+g[7],18),g[11]^=h(g[10]+g[9],7),g[8]^=h(g[11]+g[10],9),g[9]^=h(g[8]+g[11],13),g[10]^=h(g[9]+g[8],18),g[12]^=h(g[15]+g[14],7),g[13]^=h(g[12]+g[15],9),g[14]^=h(g[13]+g[12],13),g[15]^=h(g[14]+g[13],18);for(t=0;t<16;++t)v[t]=g[t]+v[t];for(t=0;t<16;t++){var f=4*t;e[f+0]=v[t]>>0&255,e[f+1]=v[t]>>8&255,e[f+2]=v[t]>>16&255,e[f+3]=v[t]>>24&255}}function p(e,t,f,r,n){for(var i=0;i<n;i++)f[r+i]^=e[t+i]}if(0===r||0!=(r&r-1))throw Error("N must be > 0 and a power of 2");if(r>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");var b,m=new f(256*a),y=new f(128*a*r),v=new Int32Array(16),g=new Int32Array(16),w=new f(64),_=i(e,t,1,128*s*a,"sha256");if(u){var S=s*r*2,M=0;b=function(){++M%1e3==0&&u({current:M,total:S,percent:M/S*100})}}for(var k=0;k<s;k++)!function(e,t,f,r,n,i){var o,a=128*f;for(e.copy(i,0,t,t+a),o=0;o<r;o++)i.copy(n,o*a,0,0+a),d(i,0,a,f),b&&b();for(o=0;o<r;o++){var s=0+64*(2*f-1);p(n,(i.readUInt32LE(s)&r-1)*a,i,0,a),d(i,0,a,f),b&&b()}i.copy(e,t,0,0+a)}(_,128*k*a,a,r,y,m);return i(e,_,1,c,"sha256")}function n(e,t,r,n,i){if(f.isBuffer(e)&&f.isBuffer(r))e.copy(r,n,t,t+i);else for(;i--;)r[n++]=e[t++]}var i=e("pbkdf2").pbkdf2Sync,o=2147483647;t.exports=r}).call(this,e("buffer").Buffer)},{buffer:274,pbkdf2:126}],147:[function(e,t,f){function r(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var n=e("safe-buffer").Buffer;r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var f=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var s=o%r,c=Math.min(i-a,r-s),u=0;u<c;u++)f[s+u]=e[a+u];o+=c,a+=c,o%r==0&&this._update(f)}return this._len+=i,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var f=8*this._len;if(f<=4294967295)this._block.writeUInt32BE(f,this._blockSize-4);else{var r=(4294967295&f)>>>0,n=(f-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":144}],148:[function(e,t,f){var f=t.exports=function(e){e=e.toLowerCase();var t=f[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};f.sha=e("./sha"),f.sha1=e("./sha1"),f.sha224=e("./sha224"),f.sha256=e("./sha256"),f.sha384=e("./sha384"),f.sha512=e("./sha512")},{"./sha":149,"./sha1":150,"./sha224":151,"./sha256":152,"./sha384":153,"./sha512":154}],149:[function(e,t,f){function r(){this.init(),this._w=d,s.call(this,64,56)}function n(e){return e<<5|e>>>27}function i(e){return e<<30|e>>>2}function o(e,t,f,r){return 0===e?t&f|~t&r:2===e?t&f|t&r|f&r:t^f^r}var a=e("inherits"),s=e("./hash"),c=e("safe-buffer").Buffer,u=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);a(r,s),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,f=0|this._a,r=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var h=0;h<80;++h){var l=~~(h/20),p=n(f)+o(l,r,a,s)+c+t[h]+u[l]|0;c=s,s=a,a=i(r),r=f,f=p}this._a=f+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},r.prototype._hash=function(){var e=c.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},t.exports=r},{"./hash":147,inherits:108,"safe-buffer":144}],150:[function(e,t,f){function r(){this.init(),this._w=h,c.call(this,64,56)}function n(e){return e<<1|e>>>31}function i(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function a(e,t,f,r){return 0===e?t&f|~t&r:2===e?t&f|t&r|f&r:t^f^r}var s=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,d=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);s(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,f=0|this._a,r=0|this._b,s=0|this._c,c=0|this._d,u=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=n(t[h-3]^t[h-8]^t[h-14]^t[h-16]);for(var l=0;l<80;++l){var p=~~(l/20),b=i(f)+a(p,r,s,c)+u+t[l]+d[p]|0;u=c,c=s,s=o(r),r=f,f=b}this._a=f+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0},r.prototype._hash=function(){var e=u.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},t.exports=r},{"./hash":147,inherits:108,"safe-buffer":144}],151:[function(e,t,f){function r(){this.init(),this._w=s,o.call(this,64,56)}var n=e("inherits"),i=e("./sha256"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);n(r,i),r.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},r.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},t.exports=r},{"./hash":147,"./sha256":152,inherits:108,"safe-buffer":144}],152:[function(e,t,f){function r(){this.init(),this._w=p,d.call(this,64,56)}function n(e,t,f){return f^e&(t^f)}function i(e,t,f){return e&t|f&(e|t)}function o(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function a(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function s(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function c(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var u=e("inherits"),d=e("./hash"),h=e("safe-buffer").Buffer,l=[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],p=new Array(64);u(r,d),r.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},r.prototype._update=function(e){for(var t=this._w,f=0|this._a,r=0|this._b,u=0|this._c,d=0|this._d,h=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=c(t[y-2])+t[y-7]+s(t[y-15])+t[y-16]|0;for(var v=0;v<64;++v){var g=m+a(h)+n(h,p,b)+l[v]+t[v]|0,w=o(f)+i(f,r,u)|0;m=b,b=p,p=h,h=d+g|0,d=u,u=r,r=f,f=g+w|0}this._a=f+this._a|0,this._b=r+this._b|0,this._c=u+this._c|0,this._d=d+this._d|0,this._e=h+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},r.prototype._hash=function(){var e=h.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},t.exports=r},{"./hash":147,inherits:108,"safe-buffer":144}],153:[function(e,t,f){function r(){this.init(),this._w=s,o.call(this,128,112)}var n=e("inherits"),i=e("./sha512"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);n(r,i),r.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},r.prototype._hash=function(){function e(e,f,r){t.writeInt32BE(e,r),t.writeInt32BE(f,r+4)}var t=a.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=r},{"./hash":147,"./sha512":154,inherits:108,"safe-buffer":144}],154:[function(e,t,f){function r(){this.init(),this._w=y,p.call(this,128,112)}function n(e,t,f){return f^e&(t^f)}function i(e,t,f){return e&t|f&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function a(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function s(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function u(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0<t>>>0?1:0}var l=e("inherits"),p=e("./hash"),b=e("safe-buffer").Buffer,m=[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],y=new Array(160);l(r,p),r.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},r.prototype._update=function(e){for(var t=this._w,f=0|this._ah,r=0|this._bh,l=0|this._ch,p=0|this._dh,b=0|this._eh,y=0|this._fh,v=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,M=0|this._dl,k=0|this._el,x=0|this._fl,E=0|this._gl,T=0|this._hl,A=0;A<32;A+=2)t[A]=e.readInt32BE(4*A),t[A+1]=e.readInt32BE(4*A+4);for(;A<160;A+=2){var I=t[A-30],C=t[A-30+1],j=s(I,C),B=c(C,I);I=t[A-4],C=t[A-4+1];var P=u(I,C),D=d(C,I),N=t[A-14],R=t[A-14+1],O=t[A-32],L=t[A-32+1],q=B+R|0,F=j+N+h(q,B)|0;q=q+D|0,F=F+P+h(q,D)|0,q=q+L|0,F=F+O+h(q,L)|0,t[A]=F,t[A+1]=q}for(var U=0;U<160;U+=2){F=t[U],q=t[U+1];var z=i(f,r,l),H=i(w,_,S),V=o(f,w),K=o(w,f),$=a(b,k),W=a(k,b),X=m[U],G=m[U+1],Z=n(b,y,v),J=n(k,x,E),Y=T+W|0,Q=g+$+h(Y,T)|0;Y=Y+J|0,Q=Q+Z+h(Y,J)|0,Y=Y+G|0,Q=Q+X+h(Y,G)|0,Y=Y+q|0,Q=Q+F+h(Y,q)|0;var ee=K+H|0,te=V+z+h(ee,K)|0;g=v,T=E,v=y,E=x,y=b,x=k,k=M+Y|0,b=p+Q+h(k,M)|0,p=l,M=S,l=r,S=_,r=f,_=w,w=Y+ee|0,f=Q+te+h(w,Y)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+M|0,this._el=this._el+k|0,this._fl=this._fl+x|0,this._gl=this._gl+E|0,this._hl=this._hl+T|0,this._ah=this._ah+f+h(this._al,w)|0,this._bh=this._bh+r+h(this._bl,_)|0,this._ch=this._ch+l+h(this._cl,S)|0,this._dh=this._dh+p+h(this._dl,M)|0,this._eh=this._eh+b+h(this._el,k)|0,this._fh=this._fh+y+h(this._fl,x)|0,this._gh=this._gh+v+h(this._gl,E)|0,this._hh=this._hh+g+h(this._hl,T)|0},r.prototype._hash=function(){function e(e,f,r){t.writeInt32BE(e,r),t.writeInt32BE(f,r+4)}var t=b.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=r},{"./hash":147,inherits:108,"safe-buffer":144}],155:[function(e,t,f){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],156:[function(e,t,f){var r=e("is-hex-prefixed");t.exports=function(e){return"string"!=typeof e?e:r(e)?e.slice(2):e}},{"is-hex-prefixed":111}],157:[function(e,t,f){var r=function(){throw"This swarm.js function isn't available on the browser."},n={readFile:r},i={download:r,safeDownloadArchived:r,directoryTree:r},o={platform:r,arch:r},a={join:r,slice:r},s={spawn:r},c={lookup:r},u={},d=e("xhr-request-promise"),h=e("eth-lib/lib/bytes"),l=e("./swarm-hash.js"),p=e("./pick.js"),b=e("./swarm");t.exports=b({fsp:n,files:i,os:o,path:a,child_process:s,defaultArchives:u,mimetype:c,request:d,downloadUrl:null,bytes:h,hash:l,pick:p})},{"./pick.js":158,"./swarm":160,"./swarm-hash.js":159,"eth-lib/lib/bytes":86,"xhr-request-promise":220}],158:[function(e,t,f){var r=function(e){return function(){return new Promise(function(t,f){var r=function(f){var r={},n=f.target.files.length,i=0;[].map.call(f.target.files,function(f){var o=new FileReader;o.onload=function(o){var a=new Uint8Array(o.target.result);if("directory"===e){var s=f.webkitRelativePath;r[s.slice(s.indexOf("/")+1)]={type:"text/plain",data:a},++i===n&&t(r)}else if("file"===e){var c=f.webkitRelativePath;t({type:mimetype.lookup(c),data:a})}else t(a)},o.readAsArrayBuffer(f)})},n=void 0;"directory"===e?(n=document.createElement("input"),n.addEventListener("change",r),n.type="file",n.webkitdirectory=!0,n.mozdirectory=!0,n.msdirectory=!0,n.odirectory=!0,n.directory=!0):(n=document.createElement("input"),n.addEventListener("change",r),n.type="file");var i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),n.dispatchEvent(i)})}};t.exports={data:r("data"),file:r("file"),directory:r("directory")}},{}],159:[function(e,t,f){var r=e("eth-lib/lib/hash").keccak256,n=e("eth-lib/lib/bytes"),i=function(e,t){var f=n.reverse(n.pad(6,n.fromNumber(e))),i=n.flatten([f,"0x0000",t])
;return r(i).slice(2)},o=function e(t){"string"==typeof t&&"0x"!==t.slice(0,2)?t=n.fromString(t):"string"!=typeof t&&void 0!==t.length&&(t=n.fromUint8Array(t));var f=n.length(t);if(f<=4096)return i(f,t);for(var r=4096;128*r<f;)r*=128;for(var o=[],a=0;a<f;a+=r){var s=r<f-a?r:f-a;o.push(e(n.slice(t,a,a+s)))}return i(f,n.flatten(o))};t.exports=o},{"eth-lib/lib/bytes":86,"eth-lib/lib/hash":87}],160:[function(e,t,f){t.exports=function(e){var t=e.fsp,f=e.files,r=e.os,n=e.path,i=e.child_process,o=e.mimetype,a=e.defaultArchives,s=e.request,c=e.downloadUrl,u=e.bytes,d=e.hash,h=e.pick,l=function(e){return function(t){return function(f){return f[e]=t,f}}},p=function(e){return function(t){for(var f={},r=0,n=e.length;r<n;++r)f[e[r]]=t[r];return f}},b=function(e){return function(t){var f={};for(var r in e)f[r]=e[r];for(var n in t)f[n]=t[n];return f}},m=function(e){return function(t){if(e.length!==t.length)return!1;var f=0;for(e.length;f<e;++f)if(e[f]!==t[f])return!1;return!0}},y=function(e){return function(t){return e+"/bzzr:/"+t}},v=function(e){return function(t){return s(y(e)(t),{responseType:"arraybuffer"}).then(function(e){var t=new Uint8Array(e),f=[52,48,52,32,112,97,103,101,32,110,111,116,32,102,111,117,110,100,10];if(m(t)(f))throw"Error 404.";return t})}},g=function(e){return function(t){return function t(f){return function(r){return function(n){var i=function(e){return{type:e.contentType,hash:e.hash}},o=function(e){return void 0===e.path?Promise.resolve():"application/bzz-manifest+json"===e.contentType?t(e.hash)(r+e.path)(n):Promise.resolve(l(r+e.path)(i(e))(n))};return v(e)(f).then(function(e){return JSON.parse(F(e)).entries}).then(function(e){return Promise.all(e.map(o))}).then(function(){return n})}}}(t)("")({})}},w=function(e){return function(t){return g(e)(t).then(function(e){return p(Object.keys(e))(Object.keys(e).map(function(t){return e[t].hash}))})}},_=function(e){return function(t){return g(e)(t).then(function(t){var f=Object.keys(t),r=f.map(function(e){return t[e].hash}),n=f.map(function(e){return t[e].type}),i=r.map(v(e)),o=function(e){return e.map(function(e,t){return{type:n[t],data:e}})};return Promise.all(i).then(function(e){return p(f)(o(e))})})}},S=function(e){return function(t){return function(r){return f.download(y(e)(t))(r)}}},M=function(e){return function(t){return function(f){return w(e)(t).then(function(t){var r=[];for(var i in t)if(i.length>0){var o=n.join(f,i);r.push(S(e)(t[i])(o))}return Promise.all(r).then(function(){return f})})}}},k=function(e){return function(t){return s(e+"/bzzr:/",{body:"string"==typeof t?U(t):t,method:"POST"})}},x=function(e){return function(t){return function(f){return function(r){return function n(i){var o="/"===f[0]?f:"/"+f,a=e+"/bzz:/"+t+o,c={method:"PUT",headers:{"Content-Type":r.type},body:r.data};return s(a,c).then(function(e){if(-1!==e.indexOf("error"))throw e;return e}).catch(function(e){return i>0&&n(i-1)})}(3)}}}},E=function(e){return function(t){return A(e)({"":t})}},T=function(e){return function(f){return t.readFile(f).then(function(t){return E(e)({type:o.lookup(f),data:t})})}},A=function(e){return function(t){return k(e)("{}").then(function(f){var r=function(f){return function(r){return x(e)(r)(f)(t[f])}},n=function(e,t){return e.then(r(t))};return Object.keys(t).reduce(n,Promise.resolve(f))})}},I=function(e){return function(f){return t.readFile(f).then(k(e))}},C=function(e){return function(r){return function(n){return f.directoryTree(n).then(function(e){return Promise.all(e.map(function(e){return t.readFile(e)})).then(function(t){var f=e.map(function(e){return e.slice(n.length)}),r=e.map(function(e){return o.lookup(e)||"text/plain"});return p(f)(t.map(function(e,t){return{type:r[t],data:e}}))})}).then(function(e){return b(r?{"":e[r]}:{})(e)}).then(A(e))}}},j=function(e){return function(t){if("data"===t.pick)return h.data().then(k(e));if("file"===t.pick)return h.file().then(E(e));if("directory"===t.pick)return h.directory().then(A(e));if(t.path)switch(t.kind){case"data":return I(e)(t.path);case"file":return T(e)(t.path);case"directory":return C(e)(t.defaultFile)(t.path)}else{if(t.length||"string"==typeof t)return k(e)(t);if(t instanceof Object)return A(e)(t)}return Promise.reject(new Error("Bad arguments"))}},B=function(e){return function(t){return function(f){return L(e)(t).then(function(r){return r?f?M(e)(t)(f):_(e)(t):f?S(e)(t)(f):v(e)(t)})}}},P=function(e,t){var n=r.platform().replace("win32","windows")+"-"+("x64"===r.arch()?"amd64":"386"),i=(t||a)[n],o=c+i.archive+".tar.gz",s=i.archiveMD5,u=i.binaryMD5;return f.safeDownloadArchived(o)(s)(u)(e)},D=function(e){return new Promise(function(t,f){var r=i.spawn,n=function(e){return function(t){return-1!==(""+t).indexOf(e)}},o=e.account,a=e.password,s=e.dataDir,c=e.ensApi,u=e.privateKey,d=0,h=r(e.binPath,["--bzzaccount",o||u,"--datadir",s,"--ens-api",c]),l=function(e){0===d&&n("Passphrase")(e)?setTimeout(function(){d=1,h.stdin.write(a+"\n")},500):n("Swarm http proxy started")(e)&&(d=2,clearTimeout(b),t(h))};h.stdout.on("data",l),h.stderr.on("data",l);var p=function(){return f(new Error("Couldn't start swarm process."))},b=setTimeout(p,2e4)})},N=function(e){return new Promise(function(t,f){e.stderr.removeAllListeners("data"),e.stdout.removeAllListeners("data"),e.stdin.removeAllListeners("error"),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.kill("SIGINT");var r=setTimeout(function(){return e.kill("SIGKILL")},8e3);e.once("close",function(){clearTimeout(r),t()})})},R=function(e){return function(t){return O("http://localhost:8500").then(function(f){return f?t(z("http://localhost:8500")).then(function(){}):P(e.binPath,e.archives).onData(function(t){return(e.onProgress||function(){})(t.length)}).then(function(){return D(e)}).then(function(e){return t(z("http://localhost:8500")).then(function(){return e})}).then(N)})}},O=function(e){return k(e)("test").then(function(e){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===e}).catch(function(){return!1})},L=function(e){return function(t){return v(e)(t).then(function(e){try{return!!JSON.parse(F(e)).entries}catch(e){return!1}})}},q=function(e){return function(t,f,r,n,i){var o;return void 0!==t&&(o=e(t)),void 0!==f&&(o=e(f)),void 0!==r&&(o=e(r)),void 0!==n&&(o=e(n)),void 0!==i&&(o=e(i)),o}},F=function(e){return u.toString(u.fromUint8Array(e))},U=function(e){return u.toUint8Array(u.fromString(e))},z=function(e){return{download:function(t,f){return B(e)(t)(f)},downloadData:q(v(e)),downloadDataToDisk:q(S(e)),downloadDirectory:q(_(e)),downloadDirectoryToDisk:q(M(e)),downloadEntries:q(g(e)),downloadRoutes:q(w(e)),isAvailable:function(){return O(e)},upload:function(t){return j(e)(t)},uploadData:q(k(e)),uploadFile:q(E(e)),uploadFileFromDisk:q(E(e)),uploadDataFromDisk:q(I(e)),uploadDirectory:q(A(e)),uploadDirectoryFromDisk:q(C(e)),uploadToManifest:q(x(e)),pick:h,hash:d,fromString:U,toString:F}};return{at:z,local:R,download:B,downloadBinary:P,downloadData:v,downloadDataToDisk:S,downloadDirectory:_,downloadDirectoryToDisk:M,downloadEntries:g,downloadRoutes:w,isAvailable:O,startProcess:D,stopProcess:N,upload:j,uploadData:k,uploadDataFromDisk:I,uploadFile:E,uploadFileFromDisk:T,uploadDirectory:A,uploadDirectoryFromDisk:C,uploadToManifest:x,pick:h,hash:d,fromString:U,toString:F}}},{}],161:[function(e,t,f){function r(e){return e.replace(/^\s*|\s*$/g,"")}f=t.exports=r,f.left=function(e){return e.replace(/^\s*/,"")},f.right=function(e){return e.replace(/\s*$/,"")}},{}],162:[function(e,t,f){(function(){function e(e){function t(t,f,r,n,i,o){for(;i>=0&&i<o;i+=e){var a=n?n[i]:i;r=f(r,t[a],a,t)}return r}return function(f,r,n,i){r=_(r,i,4);var o=!A(f)&&w.keys(f),a=(o||f).length,s=e>0?0:a-1;return arguments.length<3&&(n=f[o?o[s]:s],s+=e),t(f,r,n,o,s,a)}}function r(e){return function(t,f,r){f=S(f,r);for(var n=T(t),i=e>0?0:n-1;i>=0&&i<n;i+=e)if(f(t[i],i,t))return i;return-1}}function n(e,t,f){return function(r,n,i){var o=0,a=T(r);if("number"==typeof i)e>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(f&&i&&a)return i=f(r,n),r[i]===n?i:-1;if(n!==n)return i=t(h.call(r,o,a),w.isNaN),i>=0?i+o:-1;for(i=e>0?o:a-1;i>=0&&i<a;i+=e)if(r[i]===n)return i;return-1}}function i(e,t){var f=P.length,r=e.constructor,n=w.isFunction(r)&&r.prototype||c,i="constructor";for(w.has(e,i)&&!w.contains(t,i)&&t.push(i);f--;)(i=P[f])in e&&e[i]!==n[i]&&!w.contains(t,i)&&t.push(i)}var o=this,a=o._,s=Array.prototype,c=Object.prototype,u=Function.prototype,d=s.push,h=s.slice,l=c.toString,p=c.hasOwnProperty,b=Array.isArray,m=Object.keys,y=u.bind,v=Object.create,g=function(){},w=function(e){return e instanceof w?e:this instanceof w?void(this._wrapped=e):new w(e)};void 0!==f?(void 0!==t&&t.exports&&(f=t.exports=w),f._=w):o._=w,w.VERSION="1.8.3";var _=function(e,t,f){if(void 0===t)return e;switch(null==f?3:f){case 1:return function(f){return e.call(t,f)};case 2:return function(f,r){return e.call(t,f,r)};case 3:return function(f,r,n){return e.call(t,f,r,n)};case 4:return function(f,r,n,i){return e.call(t,f,r,n,i)}}return function(){return e.apply(t,arguments)}},S=function(e,t,f){return null==e?w.identity:w.isFunction(e)?_(e,t,f):w.isObject(e)?w.matcher(e):w.property(e)};w.iteratee=function(e,t){return S(e,t,1/0)};var M=function(e,t){return function(f){var r=arguments.length;if(r<2||null==f)return f;for(var n=1;n<r;n++)for(var i=arguments[n],o=e(i),a=o.length,s=0;s<a;s++){var c=o[s];t&&void 0!==f[c]||(f[c]=i[c])}return f}},k=function(e){if(!w.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},E=Math.pow(2,53)-1,T=x("length"),A=function(e){var t=T(e);return"number"==typeof t&&t>=0&&t<=E};w.each=w.forEach=function(e,t,f){t=_(t,f);var r,n;if(A(e))for(r=0,n=e.length;r<n;r++)t(e[r],r,e);else{var i=w.keys(e);for(r=0,n=i.length;r<n;r++)t(e[i[r]],i[r],e)}return e},w.map=w.collect=function(e,t,f){t=S(t,f);for(var r=!A(e)&&w.keys(e),n=(r||e).length,i=Array(n),o=0;o<n;o++){var a=r?r[o]:o;i[o]=t(e[a],a,e)}return i},w.reduce=w.foldl=w.inject=e(1),w.reduceRight=w.foldr=e(-1),w.find=w.detect=function(e,t,f){var r;if(void 0!==(r=A(e)?w.findIndex(e,t,f):w.findKey(e,t,f))&&-1!==r)return e[r]},w.filter=w.select=function(e,t,f){var r=[];return t=S(t,f),w.each(e,function(e,f,n){t(e,f,n)&&r.push(e)}),r},w.reject=function(e,t,f){return w.filter(e,w.negate(S(t)),f)},w.every=w.all=function(e,t,f){t=S(t,f);for(var r=!A(e)&&w.keys(e),n=(r||e).length,i=0;i<n;i++){var o=r?r[i]:i;if(!t(e[o],o,e))return!1}return!0},w.some=w.any=function(e,t,f){t=S(t,f);for(var r=!A(e)&&w.keys(e),n=(r||e).length,i=0;i<n;i++){var o=r?r[i]:i;if(t(e[o],o,e))return!0}return!1},w.contains=w.includes=w.include=function(e,t,f,r){return A(e)||(e=w.values(e)),("number"!=typeof f||r)&&(f=0),w.indexOf(e,t,f)>=0},w.invoke=function(e,t){var f=h.call(arguments,2),r=w.isFunction(t);return w.map(e,function(e){var n=r?t:e[t];return null==n?n:n.apply(e,f)})},w.pluck=function(e,t){return w.map(e,w.property(t))},w.where=function(e,t){return w.filter(e,w.matcher(t))},w.findWhere=function(e,t){return w.find(e,w.matcher(t))},w.max=function(e,t,f){var r,n,i=-1/0,o=-1/0;if(null==t&&null!=e){e=A(e)?e:w.values(e);for(var a=0,s=e.length;a<s;a++)(r=e[a])>i&&(i=r)}else t=S(t,f),w.each(e,function(e,f,r){((n=t(e,f,r))>o||n===-1/0&&i===-1/0)&&(i=e,o=n)});return i},w.min=function(e,t,f){var r,n,i=1/0,o=1/0;if(null==t&&null!=e){e=A(e)?e:w.values(e);for(var a=0,s=e.length;a<s;a++)(r=e[a])<i&&(i=r)}else t=S(t,f),w.each(e,function(e,f,r){((n=t(e,f,r))<o||n===1/0&&i===1/0)&&(i=e,o=n)});return i},w.shuffle=function(e){for(var t,f=A(e)?e:w.values(e),r=f.length,n=Array(r),i=0;i<r;i++)t=w.random(0,i),t!==i&&(n[i]=n[t]),n[t]=f[i];return n},w.sample=function(e,t,f){return null==t||f?(A(e)||(e=w.values(e)),e[w.random(e.length-1)]):w.shuffle(e).slice(0,Math.max(0,t))},w.sortBy=function(e,t,f){return t=S(t,f),w.pluck(w.map(e,function(e,f,r){return{value:e,index:f,criteria:t(e,f,r)}}).sort(function(e,t){var f=e.criteria,r=t.criteria;if(f!==r){if(f>r||void 0===f)return 1;if(f<r||void 0===r)return-1}return e.index-t.index}),"value")};var I=function(e){return function(t,f,r){var n={};return f=S(f,r),w.each(t,function(r,i){var o=f(r,i,t);e(n,r,o)}),n}};w.groupBy=I(function(e,t,f){w.has(e,f)?e[f].push(t):e[f]=[t]}),w.indexBy=I(function(e,t,f){e[f]=t}),w.countBy=I(function(e,t,f){w.has(e,f)?e[f]++:e[f]=1}),w.toArray=function(e){return e?w.isArray(e)?h.call(e):A(e)?w.map(e,w.identity):w.values(e):[]},w.size=function(e){return null==e?0:A(e)?e.length:w.keys(e).length},w.partition=function(e,t,f){t=S(t,f);var r=[],n=[];return w.each(e,function(e,f,i){(t(e,f,i)?r:n).push(e)}),[r,n]},w.first=w.head=w.take=function(e,t,f){if(null!=e)return null==t||f?e[0]:w.initial(e,e.length-t)},w.initial=function(e,t,f){return h.call(e,0,Math.max(0,e.length-(null==t||f?1:t)))},w.last=function(e,t,f){if(null!=e)return null==t||f?e[e.length-1]:w.rest(e,Math.max(0,e.length-t))},w.rest=w.tail=w.drop=function(e,t,f){return h.call(e,null==t||f?1:t)},w.compact=function(e){return w.filter(e,w.identity)};var C=function(e,t,f,r){for(var n=[],i=0,o=r||0,a=T(e);o<a;o++){var s=e[o];if(A(s)&&(w.isArray(s)||w.isArguments(s))){t||(s=C(s,t,f));var c=0,u=s.length;for(n.length+=u;c<u;)n[i++]=s[c++]}else f||(n[i++]=s)}return n};w.flatten=function(e,t){return C(e,t,!1)},w.without=function(e){return w.difference(e,h.call(arguments,1))},w.uniq=w.unique=function(e,t,f,r){w.isBoolean(t)||(r=f,f=t,t=!1),null!=f&&(f=S(f,r));for(var n=[],i=[],o=0,a=T(e);o<a;o++){var s=e[o],c=f?f(s,o,e):s;t?(o&&i===c||n.push(s),i=c):f?w.contains(i,c)||(i.push(c),n.push(s)):w.contains(n,s)||n.push(s)}return n},w.union=function(){return w.uniq(C(arguments,!0,!0))},w.intersection=function(e){for(var t=[],f=arguments.length,r=0,n=T(e);r<n;r++){var i=e[r];if(!w.contains(t,i)){for(var o=1;o<f&&w.contains(arguments[o],i);o++);o===f&&t.push(i)}}return t},w.difference=function(e){var t=C(arguments,!0,!0,1);return w.filter(e,function(e){return!w.contains(t,e)})},w.zip=function(){return w.unzip(arguments)},w.unzip=function(e){for(var t=e&&w.max(e,T).length||0,f=Array(t),r=0;r<t;r++)f[r]=w.pluck(e,r);return f},w.object=function(e,t){for(var f={},r=0,n=T(e);r<n;r++)t?f[e[r]]=t[r]:f[e[r][0]]=e[r][1];return f},w.findIndex=r(1),w.findLastIndex=r(-1),w.sortedIndex=function(e,t,f,r){f=S(f,r,1);for(var n=f(t),i=0,o=T(e);i<o;){var a=Math.floor((i+o)/2);f(e[a])<n?i=a+1:o=a}return i},w.indexOf=n(1,w.findIndex,w.sortedIndex),w.lastIndexOf=n(-1,w.findLastIndex),w.range=function(e,t,f){null==t&&(t=e||0,e=0),f=f||1;for(var r=Math.max(Math.ceil((t-e)/f),0),n=Array(r),i=0;i<r;i++,e+=f)n[i]=e;return n};var j=function(e,t,f,r,n){if(!(r instanceof t))return e.apply(f,n);var i=k(e.prototype),o=e.apply(i,n);return w.isObject(o)?o:i};w.bind=function(e,t){if(y&&e.bind===y)return y.apply(e,h.call(arguments,1));if(!w.isFunction(e))throw new TypeError("Bind must be called on a function");var f=h.call(arguments,2),r=function(){return j(e,r,t,this,f.concat(h.call(arguments)))};return r},w.partial=function(e){var t=h.call(arguments,1),f=function(){for(var r=0,n=t.length,i=Array(n),o=0;o<n;o++)i[o]=t[o]===w?arguments[r++]:t[o];for(;r<arguments.length;)i.push(arguments[r++]);return j(e,f,this,this,i)};return f},w.bindAll=function(e){var t,f,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)f=arguments[t],e[f]=w.bind(e[f],e);return e},w.memoize=function(e,t){var f=function(r){var n=f.cache,i=""+(t?t.apply(this,arguments):r);return w.has(n,i)||(n[i]=e.apply(this,arguments)),n[i]};return f.cache={},f},w.delay=function(e,t){var f=h.call(arguments,2);return setTimeout(function(){return e.apply(null,f)},t)},w.defer=w.partial(w.delay,w,1),w.throttle=function(e,t,f){var r,n,i,o=null,a=0;f||(f={});var s=function(){a=!1===f.leading?0:w.now(),o=null,i=e.apply(r,n),o||(r=n=null)};return function(){var c=w.now();a||!1!==f.leading||(a=c);var u=t-(c-a);return r=this,n=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=c,i=e.apply(r,n),o||(r=n=null)):o||!1===f.trailing||(o=setTimeout(s,u)),i}},w.debounce=function(e,t,f){var r,n,i,o,a,s=function(){var c=w.now()-o;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,f||(a=e.apply(i,n),r||(i=n=null)))};return function(){i=this,n=arguments,o=w.now();var c=f&&!r;return r||(r=setTimeout(s,t)),c&&(a=e.apply(i,n),i=n=null),a}},w.wrap=function(e,t){return w.partial(t,e)},w.negate=function(e){return function(){return!e.apply(this,arguments)}},w.compose=function(){var e=arguments,t=e.length-1;return function(){for(var f=t,r=e[t].apply(this,arguments);f--;)r=e[f].call(this,r);return r}},w.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},w.before=function(e,t){var f;return function(){return--e>0&&(f=t.apply(this,arguments)),e<=1&&(t=null),f}},w.once=w.partial(w.before,2);var B=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];w.keys=function(e){if(!w.isObject(e))return[];if(m)return m(e);var t=[];for(var f in e)w.has(e,f)&&t.push(f);return B&&i(e,t),t},w.allKeys=function(e){if(!w.isObject(e))return[];var t=[];for(var f in e)t.push(f);return B&&i(e,t),t},w.values=function(e){for(var t=w.keys(e),f=t.length,r=Array(f),n=0;n<f;n++)r[n]=e[t[n]];return r},w.mapObject=function(e,t,f){t=S(t,f);for(var r,n=w.keys(e),i=n.length,o={},a=0;a<i;a++)r=n[a],o[r]=t(e[r],r,e);return o},w.pairs=function(e){for(var t=w.keys(e),f=t.length,r=Array(f),n=0;n<f;n++)r[n]=[t[n],e[t[n]]];return r},w.invert=function(e){for(var t={},f=w.keys(e),r=0,n=f.length;r<n;r++)t[e[f[r]]]=f[r];return t},w.functions=w.methods=function(e){var t=[];for(var f in e)w.isFunction(e[f])&&t.push(f);return t.sort()},w.extend=M(w.allKeys),w.extendOwn=w.assign=M(w.keys),w.findKey=function(e,t,f){t=S(t,f);for(var r,n=w.keys(e),i=0,o=n.length;i<o;i++)if(r=n[i],t(e[r],r,e))return r},w.pick=function(e,t,f){var r,n,i={},o=e;if(null==o)return i;w.isFunction(t)?(n=w.allKeys(o),r=_(t,f)):(n=C(arguments,!1,!1,1),r=function(e,t,f){return t in f},o=Object(o));for(var a=0,s=n.length;a<s;a++){var c=n[a],u=o[c];r(u,c,o)&&(i[c]=u)}return i},w.omit=function(e,t,f){if(w.isFunction(t))t=w.negate(t);else{var r=w.map(C(arguments,!1,!1,1),String);t=function(e,t){return!w.contains(r,t)}}return w.pick(e,t,f)},w.defaults=M(w.allKeys,!0),w.create=function(e,t){var f=k(e);return t&&w.extendOwn(f,t),f},w.clone=function(e){return w.isObject(e)?w.isArray(e)?e.slice():w.extend({},e):e},w.tap=function(e,t){return t(e),e},w.isMatch=function(e,t){var f=w.keys(t),r=f.length;if(null==e)return!r;for(var n=Object(e),i=0;i<r;i++){var o=f[i];if(t[o]!==n[o]||!(o in n))return!1}return!0};var D=function(e,t,f,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof w&&(e=e._wrapped),t instanceof w&&(t=t._wrapped);var n=l.call(e);if(n!==l.call(t))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var i="[object Array]"===n;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(w.isFunction(o)&&o instanceof o&&w.isFunction(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}f=f||[],r=r||[];for(var s=f.length;s--;)if(f[s]===e)return r[s]===t;if(f.push(e),r.push(t),i){if((s=e.length)!==t.length)return!1;for(;s--;)if(!D(e[s],t[s],f,r))return!1}else{var c,u=w.keys(e);if(s=u.length,w.keys(t).length!==s)return!1;for(;s--;)if(c=u[s],!w.has(t,c)||!D(e[c],t[c],f,r))return!1}return f.pop(),r.pop(),!0};w.isEqual=function(e,t){return D(e,t)},w.isEmpty=function(e){return null==e||(A(e)&&(w.isArray(e)||w.isString(e)||w.isArguments(e))?0===e.length:0===w.keys(e).length)},w.isElement=function(e){return!(!e||1!==e.nodeType)},w.isArray=b||function(e){return"[object Array]"===l.call(e)},w.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},w.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){w["is"+e]=function(t){return l.call(t)==="[object "+e+"]"}}),w.isArguments(arguments)||(w.isArguments=function(e){return w.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(w.isFunction=function(e){return"function"==typeof e||!1}),w.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},w.isNaN=function(e){return w.isNumber(e)&&e!==+e},w.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)},w.isNull=function(e){return null===e},w.isUndefined=function(e){return void 0===e},w.has=function(e,t){return null!=e&&p.call(e,t)},w.noConflict=function(){return o._=a,this},w.identity=function(e){return e},w.constant=function(e){return function(){return e}},w.noop=function(){},w.property=x,w.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},w.matcher=w.matches=function(e){return e=w.extendOwn({},e),function(t){return w.isMatch(t,e)}},w.times=function(e,t,f){var r=Array(Math.max(0,e));t=_(t,f,1);for(var n=0;n<e;n++)r[n]=t(n);return r},w.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},w.now=Date.now||function(){return(new Date).getTime()};var N={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=w.invert(N),O=function(e){var t=function(t){return e[t]},f="(?:"+w.keys(e).join("|")+")",r=RegExp(f),n=RegExp(f,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(n,t):e}};w.escape=O(N),w.unescape=O(R),w.result=function(e,t,f){var r=null==e?void 0:e[t];return void 0===r&&(r=f),w.isFunction(r)?r.call(e):r};var L=0;w.uniqueId=function(e){var t=++L+"";return e?e+t:t},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\u2028|\u2029/g,z=function(e){return"\\"+F[e]};w.template=function(e,t,f){!t&&f&&(t=f),t=w.defaults({},t,w.templateSettings);var r=RegExp([(t.escape||q).source,(t.interpolate||q).source,(t.evaluate||q).source].join("|")+"|$","g"),n=0,i="__p+='";e.replace(r,function(t,f,r,o,a){return i+=e.slice(n,a).replace(U,z),n=a+t.length,f?i+="'+\n((__t=("+f+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var a=function(e){return o.call(this,e,w)};return a.source="function("+(t.variable||"obj")+"){\n"+i+"}",a},w.chain=function(e){var t=w(e);return t._chain=!0,t};var H=function(e,t){return e._chain?w(t).chain():t};w.mixin=function(e){w.each(w.functions(e),function(t){var f=w[t]=e[t];w.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),H(this,f.apply(w,e))}})},w.mixin(w),w.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=s[e];w.prototype[e]=function(){var f=this._wrapped;return t.apply(f,arguments),"shift"!==e&&"splice"!==e||0!==f.length||delete f[0],H(this,f)}}),w.each(["concat","join","slice"],function(e){var t=s[e];w.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}}),w.prototype.value=function(){return this._wrapped},w.prototype.valueOf=w.prototype.toJSON=w.prototype.value,w.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return w})}).call(this)},{}],163:[function(e,t,f){function r(e,t){if(t){t=t.trim().replace(/^(\?|#|&)/,""),t=t?"?"+t:t;var f=e.split(/[\?\#]/),r=f[0];t&&/\:\/\/[^\/]*$/.test(r)&&(r+="/");var n=e.match(/(\#.*)$/);e=r+t,n&&(e+=n[0])}return e}t.exports=r},{}],164:[function(e,t,f){(function(e){!function(r){function n(e){for(var t,f,r=[],n=0,i=e.length;n<i;)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<i?(f=e.charCodeAt(n++),56320==(64512&f)?r.push(((1023&t)<<10)+(1023&f)+65536):(r.push(t),n--)):r.push(t);return r}function i(e){for(var t,f=e.length,r=-1,n="";++r<f;)t=e[r],t>65535&&(t-=65536,n+=g(t>>>10&1023|55296),t=56320|1023&t),n+=g(t);return n}function o(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return g(e>>t&63|128)}function s(e){if(0==(4294967168&e))return g(e);var t="";return 0==(4294965248&e)?t=g(e>>6&31|192):0==(4294901760&e)?(o(e),t=g(e>>12&15|224),t+=a(e,6)):0==(4292870144&e)&&(t=g(e>>18&7|240),t+=a(e,12),t+=a(e,6)),t+=g(63&e|128)}function c(e){for(var t,f=n(e),r=f.length,i=-1,o="";++i<r;)t=f[i],o+=s(t);return o}function u(){if(v>=y)throw Error("Invalid byte index");var e=255&m[v];if(v++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(){var e,t,f,r,n;if(v>y)throw Error("Invalid byte index");if(v==y)return!1;if(e=255&m[v],v++,0==(128&e))return e;if(192==(224&e)){var t=u();if((n=(31&e)<<6|t)>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=u(),f=u(),(n=(15&e)<<12|t<<6|f)>=2048)return o(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=u(),f=u(),r=u(),(n=(15&e)<<18|t<<12|f<<6|r)>=65536&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}function h(e){m=n(e),y=m.length,v=0;for(var t,f=[];!1!==(t=d());)f.push(t);return i(f)}var l="object"==typeof f&&f,p="object"==typeof t&&t&&t.exports==l&&t,b="object"==typeof e&&e;b.global!==b&&b.window!==b||(r=b);var m,y,v,g=String.fromCharCode,w={version:"2.0.0",encode:c,decode:h};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return w});else if(l&&!l.nodeType)if(p)p.exports=w;else{var _={},S=_.hasOwnProperty;for(var M in w)S.call(w,M)&&(l[M]=w[M])}else r.utf8=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(e,t,f){"use strict";var r=e("underscore"),n=e("swarm-js"),i=function e(t){this.givenProvider=e.givenProvider,t&&t._requestManager&&(t=t.currentProvider),"undefined"!=typeof document&&(this.pick=n.pick),this.setProvider(t)};i.givenProvider=null,"undefined"!=typeof ethereumProvider&ðereumProvider.bzz&&(i.givenProvider=ethereumProvider.bzz),i.prototype.setProvider=function(e){if(r.isObject(e)&&r.isString(e.bzz)&&(e=e.bzz),!r.isString(e)){this.currentProvider=null;var t=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw t},!1}return this.currentProvider=e,this.download=n.at(e).download,this.upload=n.at(e).upload,this.isAvailable=n.at(e).isAvailable,!0},t.exports=i},{"swarm-js":157,underscore:162}],166:[function(e,t,f){"use strict";t.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e);return new Error("Returned error: "+t)},InvalidNumberOfParams:function(e,t,f){return new Error('Invalid number of parameters for "'+f+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")}}},{}],167:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-utils"),i=e("web3-eth-iban"),o=function(e){return n.toBN(e).toString(10)},a=function(e){return"latest"===e||"pending"===e||"earliest"===e},s=function(e){return!this||void 0!==e&&null!==e?"genesis"===e||"earliest"===e?"0x0":c(e):this.defaultBlock},c=function(e){if(void 0!==e)return a(e)?e:n.isHexStrict(e)?r.isString(e)?e.toLowerCase():e:n.numberToHex(e)},u=function(e){if(e.to&&(e.to=_(e.to)),e.data&&e.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!n.isHex(e.data))throw new Error("The data field must be HEX encoded data.");return(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter(function(t){return void 0!==e[t]}).forEach(function(t){e[t]=n.numberToHex(e[t])}),e},d=function(e){e=u(e);var t=e.from||(this?this.defaultAccount:null);return t&&(e.from=_(t)),e},h=function(e){if(e=u(e),!r.isNumber(e.from)&&!r.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!r.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=_(e.from)}return e},l=function(e){return n.isHexStrict(e)?e:n.utf8ToHex(e)},p=function(e){return null!==e.blockNumber&&(e.blockNumber=n.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.hexToNumber(e.transactionIndex)),e.nonce=n.hexToNumber(e.nonce),e.gas=n.hexToNumber(e.gas),e.gasPrice=o(e.gasPrice),e.value=o(e.value),e.to&&n.isAddress(e.to)?e.to=n.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=n.toChecksumAddress(e.from)),e},b=function(e){if("object"!=typeof e)throw new Error("Received receipt is invalid: "+e);return null!==e.blockNumber&&(e.blockNumber=n.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=n.hexToNumber(e.cumulativeGasUsed),e.gasUsed=n.hexToNumber(e.gasUsed),r.isArray(e.logs)&&(e.logs=e.logs.map(v)),e.contractAddress&&(e.contractAddress=n.toChecksumAddress(e.contractAddress)),void 0!==e.status&&(e.status=Boolean(parseInt(e.status))),e},m=function(e){return e.gasLimit=n.hexToNumber(e.gasLimit),e.gasUsed=n.hexToNumber(e.gasUsed),e.size=n.hexToNumber(e.size),e.timestamp=n.hexToNumber(e.timestamp),null!==e.number&&(e.number=n.hexToNumber(e.number)),e.difficulty&&(e.difficulty=o(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=o(e.totalDifficulty)),r.isArray(e.transactions)&&e.transactions.forEach(function(e){if(!r.isString(e))return p(e)}),e.miner&&(e.miner=n.toChecksumAddress(e.miner)),e},y=function(e){var t=function(e){return null===e||void 0===e?null:(e=String(e),0===e.indexOf("0x")?e:n.fromUtf8(e))};return e.topics=e.topics||[],e.topics=e.topics.map(function(e){return r.isArray(e)?e.map(t):t(e)}),t=null,e.address&&(e.address=r.isArray(e.address)?e.address.map(function(e){return _(e)}):_(e.address)),e},v=function(e){if("string"==typeof e.blockHash&&"string"==typeof e.transactionHash&&"string"==typeof e.logIndex){var t=n.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").substr(0,8)}else e.id||(e.id=null);return null!==e.blockNumber&&(e.blockNumber=n.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.hexToNumber(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=n.hexToNumber(e.logIndex)),e.address&&(e.address=n.toChecksumAddress(e.address)),e},g=function(e){return e.ttl&&(e.ttl=n.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=n.numberToHex(e.workToProve)),e.priority&&(e.priority=n.numberToHex(e.priority)),r.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map(function(e){return 0===e.indexOf("0x")?e:n.fromUtf8(e)}),e},w=function(e){return e.expiry=n.hexToNumber(e.expiry),e.sent=n.hexToNumber(e.sent),e.ttl=n.hexToNumber(e.ttl),e.workProved=n.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map(function(e){return n.toUtf8(e)}),e},_=function(e){var t=new i(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(n.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error('Provided address "'+e+"\" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted.")},S=function(e){return e.startingBlock=n.hexToNumber(e.startingBlock),
e.currentBlock=n.hexToNumber(e.currentBlock),e.highestBlock=n.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=n.hexToNumber(e.knownStates),e.pulledStates=n.hexToNumber(e.pulledStates)),e};t.exports={inputDefaultBlockNumberFormatter:s,inputBlockNumberFormatter:c,inputCallFormatter:d,inputTransactionFormatter:h,inputAddressFormatter:_,inputPostFormatter:g,inputLogFormatter:y,inputSignFormatter:l,outputBigNumberFormatter:o,outputTransactionFormatter:p,outputTransactionReceiptFormatter:b,outputBlockFormatter:m,outputLogFormatter:v,outputPostFormatter:w,outputSyncingFormatter:S}},{underscore:162,"web3-eth-iban":202,"web3-utils":212}],168:[function(e,t,f){"use strict";var r=e("./errors"),n=e("./formatters");t.exports={errors:r,formatters:n}},{"./errors":166,"./formatters":167}],169:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-core-helpers").errors,i=e("web3-core-helpers").formatters,o=e("web3-utils"),a=e("web3-core-promievent"),s=e("web3-core-subscriptions").subscriptions,c=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null};c.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},c.prototype.createFunction=function(e,t){var f=this.buildCall();return f.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),f},c.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var f=this.name.split(".");f.length>1?(e[f[0]]=e[f[0]]||{},e[f[0]][f[1]]=t):e[f[0]]=t},c.prototype.getCall=function(e){return r.isFunction(this.call)?this.call(e):this.call},c.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},c.prototype.validateArgs=function(e){if(e.length!==this.params)throw n.InvalidNumberOfParams(e.length,this.params,this.name)},c.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map(function(f,r){return f?f.call(t,e[r]):e[r]}):e},c.prototype.formatOutput=function(e){var t=this;return r.isArray(e)?e.map(function(e){return t.outputFormatter&&e?t.outputFormatter(e):e}):this.outputFormatter&&e?this.outputFormatter(e):e},c.prototype.toPayload=function(e){var t=this.getCall(e),f=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var n={method:t,params:r,callback:f};return this.transformPayload&&(n=this.transformPayload(n)),n},c.prototype._confirmTransaction=function(e,t,f){var n=this,u=!1,d=!0,h=0,l=0,p=null,b=r.isObject(f.params[0])&&f.params[0].gas?f.params[0].gas:null,m=r.isObject(f.params[0])&&f.params[0].data&&f.params[0].from&&!f.params[0].to,y=[new c({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:i.outputTransactionReceiptFormatter}),new c({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[i.inputAddressFormatter,i.inputDefaultBlockNumberFormatter]}),new s({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:i.outputBlockFormatter}}})],v={};r.each(y,function(e){e.attachToObject(v),e.requestManager=n.requestManager});var g=function(f,r,i,s,c){if(!i)return c||(c={unsubscribe:function(){clearInterval(p)}}),(f?a.resolve(f):v.getTransactionReceipt(t)).catch(function(t){c.unsubscribe(),u=!0,o._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)}).then(function(t){if(!t||!t.blockHash)throw new Error("Receipt missing or blockHash null");return n.extraFormatters&&n.extraFormatters.receiptFormatter&&(t=n.extraFormatters.receiptFormatter(t)),e.eventEmitter.listeners("confirmation").length>0&&(void 0!==f&&0===l||e.eventEmitter.emit("confirmation",l,t),d=!1,25===++l&&(c.unsubscribe(),e.eventEmitter.removeAllListeners())),t}).then(function(t){if(m&&!u){if(!t.contractAddress)return d&&(c.unsubscribe(),u=!0),void o._fireError(new Error("The transaction receipt didn't contain a contract address."),e.eventEmitter,e.reject);v.getCode(t.contractAddress,function(f,r){r&&(r.length>2?(e.eventEmitter.emit("receipt",t),n.extraFormatters&&n.extraFormatters.contractDeployFormatter?e.resolve(n.extraFormatters.contractDeployFormatter(t)):e.resolve(t),d&&e.eventEmitter.removeAllListeners()):o._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),e.eventEmitter,e.reject),d&&c.unsubscribe(),u=!0)})}return t}).then(function(t){m||u||(t.outOfGas||b&&b===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&void 0!==t.status?(t&&(t=JSON.stringify(t,null,2)),!1===t.status||"0x0"===t.status?o._fireError(new Error("Transaction has been reverted by the EVM:\n"+t),e.eventEmitter,e.reject):o._fireError(new Error("Transaction ran out of gas. Please provide more gas:\n"+t),e.eventEmitter,e.reject)):(e.eventEmitter.emit("receipt",t),e.resolve(t),d&&e.eventEmitter.removeAllListeners()),d&&c.unsubscribe(),u=!0)}).catch(function(){h++,r?h-1>=750&&(c.unsubscribe(),u=!0,o._fireError(new Error("Transaction was not mined within750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):h-1>=50&&(c.unsubscribe(),u=!0,o._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))});c.unsubscribe(),u=!0,o._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:i},e.eventEmitter,e.reject)},w=function(e){r.isFunction(this.requestManager.provider.on)?v.subscribe("newBlockHeaders",g.bind(null,e,!1)):p=setInterval(g.bind(null,e,!0),1e3)}.bind(this);v.getTransactionReceipt(t).then(function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&w(t),g(t,!1)):u||w()}).catch(function(){u||w()})};var u=function(e,t){return r.isNumber(e)?t.wallet[e]:r.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};c.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,f=function(){var f=a(!t),n=e.toPayload(Array.prototype.slice.call(arguments)),i=function(r,i){try{i=e.formatOutput(i)}catch(e){r=e}if(i instanceof Error&&(r=i),r)return r.error&&(r=r.error),o._fireError(r,f.eventEmitter,f.reject,n.callback);n.callback&&n.callback(null,i),t?(f.eventEmitter.emit("transactionHash",i),e._confirmTransaction(f,i,n)):r||f.resolve(i)},s=function(t){var f=r.extend({},n,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(f,i)},d=function(e,t){if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length){var n;if("eth_sendTransaction"===e.method){var o=e.params[0];if((n=u(r.isObject(o)?o.from:null,t.accounts))&&n.privateKey)return t.accounts.signTransaction(r.omit(o,"from"),n.privateKey).then(s)}else if("eth_sign"===e.method){var a=e.params[1];if((n=u(e.params[0],t.accounts))&&n.privateKey){var c=t.accounts.sign(a,n.privateKey);return e.callback&&e.callback(null,c.signature),void f.resolve(c.signature)}}}return t.requestManager.send(e,i)};if(t&&r.isObject(n.params[0])&&!n.params[0].gasPrice){new c({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager)(function(t,f){f&&(n.params[0].gasPrice=f),d(n,e)})}else d(n,e);return f.eventEmitter};return f.method=e,f.request=this.request.bind(this),f},c.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},t.exports=c},{underscore:162,"web3-core-helpers":168,"web3-core-promievent":170,"web3-core-subscriptions":175,"web3-utils":212}],170:[function(e,t,f){"use strict";var r=e("eventemitter3"),n=e("any-promise"),i=function(e){var t,f,i=new n(function(){t=arguments[0],f=arguments[1]});if(e)return{resolve:t,reject:f,eventEmitter:i};var o=new r;return i._events=o._events,i.emit=o.emit,i.on=o.on,i.once=o.once,i.off=o.off,i.listeners=o.listeners,i.addListener=o.addListener,i.removeListener=o.removeListener,i.removeAllListeners=o.removeAllListeners,{resolve:t,reject:f,eventEmitter:i}};i.resolve=function(e){var t=i(!0);return t.resolve(e),t.eventEmitter},t.exports=i},{"any-promise":4,eventemitter3:90}],171:[function(e,t,f){"use strict";var r=e("./jsonrpc"),n=e("web3-core-helpers").errors,i=function(e){this.requestManager=e,this.requests=[]};i.prototype.add=function(e){this.requests.push(e)},i.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,function(t,f){f=f||[],e.map(function(e,t){return f[t]||{}}).forEach(function(t,f){if(e[f].callback){if(t&&t.error)return e[f].callback(n.ErrorResponse(t));if(!r.isValidResponse(t))return e[f].callback(n.InvalidResponse(t));e[f].callback(null,e[f].format?e[f].format(t.result):t.result)}})})},t.exports=i},{"./jsonrpc":174,"web3-core-helpers":168}],172:[function(e,t,f){"use strict";var r=null,n=Function("return this")();void 0!==n.ethereumProvider?r=n.ethereumProvider:void 0!==n.web3&&n.web3.currentProvider&&(n.web3.currentProvider.sendAsync&&(n.web3.currentProvider.send=n.web3.currentProvider.sendAsync,delete n.web3.currentProvider.sendAsync),!n.web3.currentProvider.on&&n.web3.currentProvider.connection&&"ipcProviderWrapper"===n.web3.currentProvider.connection.constructor.name&&(n.web3.currentProvider.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.connection.on("data",function(e){var f="";e=e.toString();try{f=JSON.parse(e)}catch(f){return t(new Error("Couldn't parse response data"+e))}f.id||-1===f.method.indexOf("_subscription")||t(null,f)});break;default:this.connection.on(e,t)}}),r=n.web3.currentProvider),t.exports=r},{}],173:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-core-helpers").errors,i=e("./jsonrpc.js"),o=e("./batch.js"),a=e("./givenProvider.js"),s=function e(t){this.provider=null,this.providers=e.providers,this.setProvider(t),this.subscriptions={}};s.givenProvider=a,s.providers={WebsocketProvider:e("web3-providers-ws"),HttpProvider:e("web3-providers-http"),IpcProvider:e("web3-providers-ipc")},s.prototype.setProvider=function(e,t){var f=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"==typeof t&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');this.provider&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on&&this.provider.on("data",function(e,t){e=e||t,e.method&&f.subscriptions[e.params.subscription]&&f.subscriptions[e.params.subscription].callback&&f.subscriptions[e.params.subscription].callback(null,e.params.result)})},s.prototype.send=function(e,t){if(t=t||function(){},!this.provider)return t(n.InvalidProvider());var f=i.toPayload(e.method,e.params);this.provider[this.provider.sendAsync?"sendAsync":"send"](f,function(e,r){return r&&r.id&&f.id!==r.id?t(new Error('Wrong response id "'+r.id+'" (expected: "'+f.id+'") in '+JSON.stringify(f))):e?t(e):r&&r.error?t(n.ErrorResponse(r)):i.isValidResponse(r)?void t(null,r.result):t(n.InvalidResponse(r))})},s.prototype.sendBatch=function(e,t){if(!this.provider)return t(n.InvalidProvider());var f=i.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](f,function(e,f){return e?t(e):r.isArray(f)?void t(null,f):t(n.InvalidResponse(f))})},s.prototype.addSubscription=function(e,t,f,r){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions[e]={callback:r,type:f,name:t}},s.prototype.removeSubscription=function(e,t){var f=this;this.subscriptions[e]&&(this.send({method:this.subscriptions[e].type+"_unsubscribe",params:[e]},t),delete f.subscriptions[e])},s.prototype.clearSubscriptions=function(e){var t=this;Object.keys(this.subscriptions).forEach(function(f){e&&"syncing"===t.subscriptions[f].name||t.removeSubscription(f)}),this.provider.reset&&this.provider.reset()},t.exports={Manager:s,BatchManager:o}},{"./batch.js":171,"./givenProvider.js":172,"./jsonrpc.js":174,underscore:162,"web3-core-helpers":168,"web3-providers-http":207,"web3-providers-ipc":208,"web3-providers-ws":209}],174:[function(e,t,f){"use strict";var r={messageId:0};r.toPayload=function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:t||[]}},r.isValidResponse=function(e){function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}return Array.isArray(e)?e.every(t):t(e)},r.toBatchPayload=function(e){return e.map(function(e){return r.toPayload(e.method,e.params)})},t.exports=r},{}],175:[function(e,t,f){"use strict";var r=e("./subscription.js"),n=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};n.prototype.setRequestManager=function(e){this.requestManager=e},n.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var f=this.name.split(".");f.length>1?(e[f[0]]=e[f[0]]||{},e[f[0]][f[1]]=t):e[f[0]]=t},n.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]],requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},t.exports={subscriptions:n,subscription:r}},{"./subscription.js":176}],176:[function(e,t,f){"use strict";function r(e){o.call(this),this.id=null,this.callback=null,this.arguments=null,this._reconnectIntervalId=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager}}var n=e("underscore"),i=e("web3-core-helpers").errors,o=e("eventemitter3");r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.prototype._extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},r.prototype._validateArgs=function(e){var t=this.options.subscription;if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw i.InvalidNumberOfParams(e.length,t.params+1,e[0])},r.prototype._formatInput=function(e){var t=this.options.subscription;return t&&t.inputFormatter?t.inputFormatter.map(function(t,f){return t?t(e[f]):e[f]}):e},r.prototype._formatOutput=function(e){var t=this.options.subscription;return t&&t.outputFormatter&&e?t.outputFormatter(e):e},r.prototype._toPayload=function(e){var t=[];if(this.callback=this._extractCallback(e),this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:t}},r.prototype.unsubscribe=function(e){this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId)},r.prototype.subscribe=function(){var e=this,t=Array.prototype.slice.call(arguments),f=this._toPayload(t);if(!f)return this;if(!this.options.requestManager.provider){var r=new Error("No provider set.");return this.callback(r,null,this),this.emit("error",r),this}if(!this.options.requestManager.provider.on){var i=new Error("The current provider doesn't support subscriptions: "+this.options.requestManager.provider.constructor.name);return this.callback(i,null,this),this.emit("error",i),this}return this.id&&this.unsubscribe(),this.options.params=f.params[1],"logs"===f.params[0]&&n.isObject(f.params[1])&&f.params[1].hasOwnProperty("fromBlock")&&isFinite(f.params[1].fromBlock)&&this.options.requestManager.send({method:"eth_getLogs",params:[f.params[1]]},function(t,f){t?(e.callback(t,null,e),e.emit("error",t)):f.forEach(function(t){var f=e._formatOutput(t);e.callback(null,f,e),e.emit("data",f)})}),"object"==typeof f.params[1]&&delete f.params[1].fromBlock,this.options.requestManager.send(f,function(t,r){!t&&r?(e.id=r,e.options.requestManager.addSubscription(e.id,f.params[0],e.options.type,function(t,f){t?(e.options.requestManager.removeSubscription(e.id),e.options.requestManager.provider.once&&(e._reconnectIntervalId=setInterval(function(){e.options.requestManager.provider.reconnect&&e.options.requestManager.provider.reconnect()},500),e.options.requestManager.provider.once("connect",function(){clearInterval(e._reconnectIntervalId),e.subscribe(e.callback)})),e.emit("error",t),n.isFunction(e.callback)&&e.callback(t,null,e)):(n.isArray(f)||(f=[f]),f.forEach(function(t){var f=e._formatOutput(t);if(n.isFunction(e.options.subscription.subscriptionHandler))return e.options.subscription.subscriptionHandler.call(e,f);e.emit("data",f),n.isFunction(e.callback)&&e.callback(null,f,e)}))})):n.isFunction(e.callback)?(e.callback(t,null,e),e.emit("error",t)):e.emit("error",t)}),this},t.exports=r},{eventemitter3:90,underscore:162,"web3-core-helpers":168}],177:[function(e,t,f){"use strict";var r=e("web3-core-helpers").formatters,n=e("web3-core-method"),i=e("web3-utils"),o=function(e){var t=function(t){var f;return t.property?(e[t.property]||(e[t.property]={}),f=e[t.property]):f=e,t.methods&&t.methods.forEach(function(t){t instanceof n||(t=new n(t)),t.attachToObject(f),t.setRequestManager(e._requestManager)}),e};return t.formatters=r,t.utils=i,t.Method=n,t};t.exports=o},{"web3-core-helpers":168,"web3-core-method":169,"web3-utils":212}],178:[function(e,t,f){"use strict";var r=e("web3-core-requestmanager"),n=e("./extend.js");t.exports={packageInit:function(e,t){if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:function(){return e._provider},set:function(t){return e.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=new r.Manager(t[0].currentProvider):(e._requestManager=new r.Manager,e._requestManager.setProvider(t[0],t[1])),e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=function(t,f){return e._requestManager.setProvider(t,f),e._provider=e._requestManager.provider,!0}),e.BatchRequest=r.BatchManager.bind(null,e._requestManager),e.extend=n(e)},addProviders:function(e){e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers}}},{"./extend.js":177,"web3-core-requestmanager":173}],179:[function(e,t,f){arguments[4][89][0].apply(f,arguments)},{dup:89}],180:[function(e,t,f){var r=e("underscore"),n=e("web3-utils"),i=e("bn.js"),o=e("./param"),a=function(e){return r.isNumber(e)&&(e=Math.trunc(e)),new o(n.toTwosComplement(e).replace("0x",""))},s=function(e){if(!n.isHexStrict(e))throw new Error('Given parameter is not bytes: "'+e+'"');var t=e.replace(/^0x/i,"");if(t.length%2!=0)throw new Error('Given parameter bytes has an invalid length: "'+e+'"');if(t.length>64)throw new Error('Given parameter bytes is too long: "'+e+'"');var f=Math.floor((t.length+63)/64);return t=n.padRight(t,64*f),new o(t)},c=function(e){if(!n.isHexStrict(e))throw new Error('Given parameter is not bytes: "'+e+'"');var t=e.replace(/^0x/i,"");if(t.length%2!=0)throw new Error('Given parameter bytes has an invalid length: "'+e+'"');var f=t.length/2,r=Math.floor((t.length+63)/64);return t=n.padRight(t,64*r),new o(a(f).value+t)},u=function(e){if(!r.isString(e))throw new Error("Given parameter is not a valid string: "+e);var t=n.utf8ToHex(e).replace(/^0x/i,""),f=t.length/2,i=Math.floor((t.length+63)/64);return t=n.padRight(t,64*i),new o(a(f).value+t)},d=function(e){return new o("000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0"))},h=function(e){return"1"===new i(e.substr(0,1),16).toString(2).substr(0,1)},l=function(e){var t=e.staticPart();if(!t&&!e.rawValue)throw new Error("Couldn't decode "+name+" from ABI: 0x"+e.rawValue);return h(t)?new i(t,16).fromTwos(256).toString(10):new i(t,16).toString(10)},p=function(e,t){var f=e.staticPart();if(!f&&!e.rawValue)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue);return new i(f,16).toString(10)},b=function(e,t){var f=e.staticPart();if(!f&&!e.rawValue)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue);return"0000000000000000000000000000000000000000000000000000000000000001"===f},m=function(e,t){var f=t.match(/^bytes([0-9]*)/),r=parseInt(f[1]);if(e.staticPart().slice(0,2*r).length!==2*r)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue+" The size doesn't match.");return"0x"+e.staticPart().slice(0,2*r)},y=function(e,t){var f=e.dynamicPart().slice(0,64);if(!f)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue);var r=2*new i(f,16).toNumber();return"0x"+e.dynamicPart().substr(64,r)},v=function(e){var t=e.dynamicPart().slice(0,64);if(!t)throw new Error("ERROR: The returned value is not a convertible string:"+t);var f=2*new i(t,16).toNumber();return f?n.hexToUtf8("0x"+e.dynamicPart().substr(64,f).replace(/^0x/i,"")):""},g=function(e,t){var f=e.staticPart();if(!f)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue);return n.toChecksumAddress("0x"+f.slice(f.length-40,f.length))};t.exports={formatInputInt:a,formatInputBytes:s,formatInputDynamicBytes:c,formatInputString:u,formatInputBool:d,formatOutputInt:l,formatOutputUInt:p,formatOutputBool:b,formatOutputBytes:m,formatOutputDynamicBytes:y,formatOutputString:v,formatOutputAddress:g,toTwosComplement:n.toTwosComplement}},{"./param":182,"bn.js":179,underscore:162,"web3-utils":212}],181:[function(e,t,f){function r(){}var n=e("underscore"),i=e("web3-utils"),o=e("./formatters"),a=e("./types/address"),s=e("./types/bool"),c=e("./types/int"),u=e("./types/uint"),d=e("./types/dynamicbytes"),h=e("./types/string"),l=e("./types/bytes"),p=function(e,t){return e.isDynamicType(t)||e.isDynamicArray(t)},b=function(e){this._types=e};b.prototype._requireType=function(e){var t=this._types.filter(function(t){return t.isType(e)})[0];if(!t)throw Error("Invalid solidity type: "+e);return t},b.prototype._getOffsets=function(e,t){for(var f=t.map(function(t,f){return t.staticPartLength(e[f])}),r=1;r<f.length;r++)f[r]+=f[r-1];return f.map(function(f,r){return f-t[r].staticPartLength(e[r])})},b.prototype._getSolidityTypes=function(e){var t=this;return e.map(function(e){return t._requireType(e)})},b.prototype._encodeMultiWithOffset=function(e,t,f,r){var n="",i=this;return e.forEach(function(a,s){if(p(t[s],e[s])){n+=o.formatInputInt(r).encode();var c=i._encodeWithOffset(e[s],t[s],f[s],r);r+=c.length/2}else n+=i._encodeWithOffset(e[s],t[s],f[s],r)}),e.forEach(function(o,a){if(p(t[a],e[a])){var s=i._encodeWithOffset(e[a],t[a],f[a],r);r+=s.length/2,n+=s}}),n},b.prototype._encodeWithOffset=function(e,t,f,r){var n=this;return t.isDynamicArray(e)?function(){var i=t.nestedName(e),a=t.staticPartLength(i),s=f[0];return function(){var e=2;if(t.isDynamicArray(i))for(var n=1;n<f.length;n++)e+=+f[n-1][0]||0,s+=o.formatInputInt(r+n*a+32*e).encode()}(),function(){for(var e=0;e<f.length-1;e++){var o=s/2;s+=n._encodeWithOffset(i,t,f[e+1],r+o)}}(),s}():t.isStaticArray(e)?function(){var i=t.nestedName(e),a=t.staticPartLength(i),s="";return t.isDynamicArray(i)&&function(){for(var e=0,t=0;t<f.length;t++)e+=+(f[t-1]||[])[0]||0,s+=o.formatInputInt(r+t*a+32*e).encode()}(),function(){for(var e=0;e<f.length;e++){var o=s/2;s+=n._encodeWithOffset(i,t,f[e],r+o)}}(),s}():f},b.prototype.encodeFunctionSignature=function(e){return n.isObject(e)&&(e=i._jsonInterfaceMethodToString(e)),i.sha3(e).slice(0,10)},b.prototype.encodeEventSignature=function(e){return n.isObject(e)&&(e=i._jsonInterfaceMethodToString(e)),i.sha3(e)},b.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},b.prototype.encodeParameters=function(e,t){n.isObject(e)&&e.inputs&&(e=n.map(e.inputs,function(e){return e.type}));var f=this._getSolidityTypes(e),r=f.map(function(f,r){return f.encode(t[r],e[r])}),i=f.reduce(function(t,r,n){var i=r.staticPartLength(e[n]),o=32*Math.floor((i+31)/32);return t+(p(f[n],e[n])?32:o)},0);return"0x"+this._encodeMultiWithOffset(e,f,r,i)},b.prototype.encodeFunctionCall=function(e,t){return this.encodeFunctionSignature(e)+this.encodeParameters(e,t).replace("0x","")},b.prototype.decodeParameter=function(e,t){if(!n.isString(e))throw new Error("Given parameter type is not a string: "+e);return this.decodeParameters([{type:e}],t)[0]},b.prototype.decodeParameters=function(e,t){var f=n.isArray(e)&&n.isString(e[0]),i=f?e:[];f||e.forEach(function(e){i.push(e.type)});var o=this._getSolidityTypes(i),a=this._getOffsets(i,o),s=new r;s.__length__=0;var c=0;return e.forEach(function(e,f){var r=o[c].decode(t.replace(/^0x/i,""),a[c],i[c],c);r="0x"===r?null:r,s[f]=r,n.isObject(e)&&e.name&&(s[e.name]=r),s.__length__++,c++}),s},b.prototype.decodeLog=function(e,t,f){t=t||"";var i=[],o=[];e.forEach(function(e,t){e.indexed?o[t]=e:i[t]=e});var a=t.slice(2),s=n.isArray(f)?f.map(function(e){return e.slice(2)}).join(""):f,c=this.decodeParameters(i,a),u=this.decodeParameters(o,s),d=new r;return d.__length__=0,e.forEach(function(e,t){d[t]="string"===e.type?"":null,c[t]&&(d[t]=c[t]),u[t]&&(d[t]=u[t]),e.name&&(d[e.name]=d[t]),d.__length__++}),d};var m=new b([new a,new s,new c,new u,new d,new l,new h]);t.exports=m},{"./formatters":180,"./types/address":184,"./types/bool":185,"./types/bytes":186,"./types/dynamicbytes":187,"./types/int":188,"./types/string":189,"./types/uint":190,underscore:162,"web3-utils":212}],182:[function(e,t,f){var r=e("./formatters.js"),n=function(e,t,f){this.value=e||"",this.offset=t,this.rawValue=f};n.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},n.prototype.withOffset=function(e){return new n(this.value,e)},n.prototype.combine=function(e){return new n(this.value+e.value)},n.prototype.isDynamic=function(){return void 0!==this.offset},n.prototype.offsetAsBytes=function(){return this.isDynamic()?r.toTwosComplement(this.offset).replace("0x",""):""},n.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},n.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},n.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},n.encodeList=function(e){var t=32*e.length,f=e.map(function(e){if(!e.isDynamic())return e;var f=t;return t+=e.dynamicPartLength(),e.withOffset(f)});return f.reduce(function(e,t){return e+t.dynamicPart()},f.reduce(function(e,t){return e+t.staticPart()},""))},t.exports=n},{"./formatters.js":180}],183:[function(e,t,f){var r=e("./formatters"),n=e("./param"),i=function(e){this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter};i.prototype.isType=function(e){throw"This method should be overwritten for type "+e},i.prototype.staticPartLength=function(e){return(this.nestedTypes(e)||["[1]"]).map(function(e){return parseInt(e.slice(1,-1),10)||1}).reduce(function(e,t){return e*t},32)},i.prototype.isDynamicArray=function(e){var t=this.nestedTypes(e);return!!t&&!t[t.length-1].match(/[0-9]{1,}/g)},i.prototype.isStaticArray=function(e){var t=this.nestedTypes(e);return!!t&&!!t[t.length-1].match(/[0-9]{1,}/g)},i.prototype.staticArrayLength=function(e){var t=this.nestedTypes(e);return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1},i.prototype.nestedName=function(e){var t=this.nestedTypes(e);return t?e.substr(0,e.length-t[t.length-1].length):e},i.prototype.isDynamicType=function(){return!1},i.prototype.nestedTypes=function(e){return e.match(/(\[[0-9]*\])/g)},i.prototype.encode=function(e,t){var f=this;return this.isDynamicArray(t)?function(){var n=e.length,i=f.nestedName(t),o=[];return o.push(r.formatInputInt(n).encode()),e.forEach(function(e){o.push(f.encode(e,i))}),o}():this.isStaticArray(t)?function(){for(var r=f.staticArrayLength(t),n=f.nestedName(t),i=[],o=0;o<r;o++)i.push(f.encode(e[o],n));return i}():this._inputFormatter(e,t).encode()},i.prototype.decode=function(e,t,f){var r=this;if(this.isDynamicArray(f))return function(){for(var n=parseInt("0x"+e.substr(2*t,64)),i=parseInt("0x"+e.substr(2*n,64)),o=n+32,a=r.nestedName(f),s=r.staticPartLength(a),c=32*Math.floor((s+31)/32),u=[],d=0;d<i*c;d+=c)u.push(r.decode(e,o+d,a));return u}();if(this.isStaticArray(f))return function(){for(var n=r.staticArrayLength(f),i=t,o=r.nestedName(f),a=r.staticPartLength(o),s=32*Math.floor((a+31)/32),c=[],u=0;u<n*s;u+=s)c.push(r.decode(e,i+u,o));return c}();if(this.isDynamicType(f))return function(){var i=parseInt("0x"+e.substr(2*t,64)),o=parseInt("0x"+e.substr(2*i,64)),a=Math.floor((o+31)/32),s=new n(e.substr(2*i,64*(1+a)),0,e);return r._outputFormatter(s,f)}();var i=this.staticPartLength(f),o=new n(e.substr(2*t,2*i),void 0,e);return this._outputFormatter(o,f)},t.exports=i},{"./formatters":180,"./param":182}],184:[function(e,t,f){var r=e("../formatters"),n=e("web3-core-helpers").formatters,i=e("../type"),o=function(){this._inputFormatter=function(){var e=Array.prototype.slice.call(arguments);return e[0]=e[0]&&"0x0"!==e[0]?n.inputAddressFormatter(e[0]):"",r.formatInputInt.apply(this,e)},this._outputFormatter=r.formatOutputAddress};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(e){return!!e.match(/address(\[([0-9]*)\])?/)},t.exports=o},{"../formatters":180,"../type":183,"web3-core-helpers":168}],185:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputBool,this._outputFormatter=r.formatOutputBool};i.prototype=new n({}),i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^bool(\[([0-9]*)\])*$/)},t.exports=i},{"../formatters":180,"../type":183}],186:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputBytes,this._outputFormatter=r.formatOutputBytes};i.prototype=new n({}),i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},t.exports=i},{"../formatters":180,"../type":183}],187:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputDynamicBytes,this._outputFormatter=r.formatOutputDynamicBytes};i.prototype=new n({}),i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^bytes(\[([0-9]*)\])*$/)},i.prototype.isDynamicType=function(){return!0},t.exports=i},{"../formatters":180,"../type":183}],188:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputInt};i.prototype=new n({}),i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=i},{"../formatters":180,"../type":183}],189:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputString,this._outputFormatter=r.formatOutputString};i.prototype=new n({}),i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^string(\[([0-9]*)\])*$/)},i.prototype.isDynamicType=function(){return!0},t.exports=i},{"../formatters":180,"../type":183}],190:[function(e,t,f){var r=e("../formatters"),n=e("../type"),i=function(){this._inputFormatter=r.formatInputInt,this._outputFormatter=r.formatOutputUInt};i.prototype=new n({}),
i.prototype.constructor=i,i.prototype.isType=function(e){return!!e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=i},{"../formatters":180,"../type":183}],191:[function(e,t,f){(function(f){var r=function(){function e(e,t){var f=[],r=!0,n=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(f.push(o.value),!t||f.length!==t);r=!0);}catch(e){n=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return f}return function(t,f){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=e("./bytes"),i=e("./nat"),o=e("elliptic"),a=(e("./rlp"),new o.ec("secp256k1")),s=e("./hash"),c=s.keccak256,u=s.keccak256s,d=function(e){var t=c(n.concat(n.random(32),e||n.random(32))),f=n.concat(n.concat(n.random(32),t),n.random(32)),r=c(f);return l(r)},h=function(e){for(var t=u(e.slice(2)),f="0x",r=0;r<40;r++)f+=parseInt(t[r+2],16)>7?e[r+2].toUpperCase():e[r+2];return f},l=function(e){var t=new f(e.slice(2),"hex"),r=a.keyFromPrivate(t),n="0x"+r.getPublic(!1,"hex").slice(2),i=c(n);return{address:h("0x"+i.slice(-40)),privateKey:e}},p=function(e){var t=r(e,3),f=t[0],i=n.pad(32,t[1]),o=n.pad(32,t[2]);return n.flatten([i,o,f])},b=function(e){return[n.slice(64,n.length(e),e),n.slice(0,32,e),n.slice(32,64,e)]},m=function(e){return function(t,r){var o=a.keyFromPrivate(new f(r.slice(2),"hex")).sign(new f(t.slice(2),"hex"),{canonical:!0});return p([i.fromString(n.fromNumber(e+o.recoveryParam)),n.pad(32,n.fromNat("0x"+o.r.toString(16))),n.pad(32,n.fromNat("0x"+o.s.toString(16)))])}},y=m(27),v=function(e,t){var r=b(t),i={v:n.toNumber(r[0]),r:r[1].slice(2),s:r[2].slice(2)},o=a.recoverPubKey(new f(e.slice(2),"hex"),i,i.v<2?i.v:1-i.v%2),s="0x"+o.encode("hex",!1).slice(2),u=c(s);return h("0x"+u.slice(-40))};t.exports={create:d,toChecksum:h,fromPrivate:l,sign:y,makeSigner:m,recover:v,encodeSignature:p,decodeSignature:b}}).call(this,e("buffer").Buffer)},{"./bytes":193,"./hash":194,"./nat":195,"./rlp":196,buffer:274,elliptic:69}],192:[function(e,t,f){arguments[4][85][0].apply(f,arguments)},{dup:85}],193:[function(e,t,f){arguments[4][86][0].apply(f,arguments)},{"./array.js":192,dup:86}],194:[function(e,t,f){arguments[4][87][0].apply(f,arguments)},{dup:87}],195:[function(e,t,f){var r=e("bn.js"),n=e("./bytes"),i=function(e){return"0x"+e.toString("hex")},o=function(e){return new r(e.slice(2),16)},a=function(e){var t="0x"+("0x"===e.slice(0,2)?new r(e.slice(2),16):new r(e,10)).toString("hex");return"0x0"===t?"0x":t},s=function(e){return h(y(e,a("10000000000")))/1e8},c=function(e){return m(d(Math.floor(1e8*e)),a("10000000000"))},u=function(e){return o(e).toString(10)},d=function(e){return"string"==typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new r(e).toString("hex")},h=function(e){return o(e).toNumber()},l=function(e){return n.pad(32,e)},p=function(e){return function(t,f){return i(o(t)[e](o(f)))}},b=p("add"),m=p("mul"),y=p("div"),v=p("sub");t.exports={toString:u,fromString:a,toNumber:h,fromNumber:d,toEther:s,fromEther:c,toUint256:l,add:b,mul:m,div:y,sub:v}},{"./bytes":193,"bn.js":21}],196:[function(e,t,f){var r=function(e){var t=function(e){return e.length%2==0?e:"0"+e},f=function(e){return t(e.toString(16))},r=function(e,t){return e<56?f(t+e):f(t+f(e).length/2+55)+f(e)};return"0x"+function e(t){if("string"==typeof t){var f=t.slice(2);return(2!=f.length||f>="80"?r(f.length/2,128):"")+f}var n=t.map(e).join("");return r(n.length/2,192)+n}(e)},n=function(e){var t=2,f=function(){if(t>=e.length)throw"";var f=e.slice(t,t+2);return f<"80"?(t+=2,"0x"+f):f<"c0"?n():i()},r=function(){var f=parseInt(e.slice(t,t+=2),16)%64;return f<56?f:parseInt(e.slice(t,t+=2*(f-55)),16)},n=function(){var f=r();return"0x"+e.slice(t,t+=2*f)},i=function(){for(var e=2*r()+t,n=[];t<e;)n.push(f());return n};try{return f()}catch(e){return[]}};t.exports={encode:r,decode:n}},{}],197:[function(e,t,f){(function(e){var f;if(e.crypto&&crypto.getRandomValues){var r=new Uint8Array(16);f=function(){return crypto.getRandomValues(r),r}}if(!f){var n=new Array(16);f=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],198:[function(e,t,f){function r(e,t,f){var r=t&&f||0,n=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){n<16&&(t[r+n++]=c[e])});n<16;)t[r+n++]=0;return t}function n(e,t){var f=t||0,r=s;return r[e[f++]]+r[e[f++]]+r[e[f++]]+r[e[f++]]+"-"+r[e[f++]]+r[e[f++]]+"-"+r[e[f++]]+r[e[f++]]+"-"+r[e[f++]]+r[e[f++]]+"-"+r[e[f++]]+r[e[f++]]+r[e[f++]]+r[e[f++]]+r[e[f++]]+r[e[f++]]}function i(e,t,f){var r=t&&f||0,i=t||[];e=e||{};var o=void 0!==e.clockseq?e.clockseq:l,a=void 0!==e.msecs?e.msecs:(new Date).getTime(),s=void 0!==e.nsecs?e.nsecs:b+1,c=a-p+(s-b)/1e4;if(c<0&&void 0===e.clockseq&&(o=o+1&16383),(c<0||a>p)&&void 0===e.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=a,b=s,l=o,a+=122192928e5;var u=(1e4*(268435455&a)+s)%4294967296;i[r++]=u>>>24&255,i[r++]=u>>>16&255,i[r++]=u>>>8&255,i[r++]=255&u;var d=a/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var m=e.node||h,y=0;y<6;y++)i[r+y]=m[y];return t||n(i)}function o(e,t,f){var r=t&&f||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var i=e.random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;o++)t[r+o]=i[o];return t||n(i)}for(var a=e("./rng"),s=[],c={},u=0;u<256;u++)s[u]=(u+256).toString(16).substr(1),c[s[u]]=u;var d=a(),h=[1|d[0],d[1],d[2],d[3],d[4],d[5]],l=16383&(d[6]<<8|d[7]),p=0,b=0,m=o;m.v1=i,m.v4=o,m.parse=r,m.unparse=n,t.exports=m},{"./rng":197}],199:[function(e,t,f){(function(f,r){"use strict";function n(e){this._accounts=e,this.length=0,this.defaultKeyName="web3js_wallet"}var i=e("underscore"),o=e("web3-core"),a=e("web3-core-method"),s=e("any-promise"),c=e("eth-lib/lib/account"),u=e("eth-lib/lib/hash"),d=e("eth-lib/lib/rlp"),h=e("eth-lib/lib/nat"),l=e("eth-lib/lib/bytes"),p=e(void 0===f?"crypto-browserify":"crypto"),b=e("scrypt.js"),m=e("uuid"),y=e("web3-utils"),v=e("web3-core-helpers"),g=function(e){return i.isUndefined(e)||i.isNull(e)},w=function(e){for(;e&&e.startsWith("0x0");)e="0x"+e.slice(3);return e},_=function(e){return e.length%2==1&&(e=e.replace("0x","0x0")),e},S=function(){var e=this;o.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var t=[new a({name:"getId",call:"net_version",params:0,outputFormatter:y.hexToNumber}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(e){if(y.isAddress(e))return e;throw new Error("Address "+e+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]})];this._ethereumCall={},i.each(t,function(t){t.attachToObject(e._ethereumCall),t.setRequestManager(e._requestManager)}),this.wallet=new n(this)};S.prototype._addAccountFunctions=function(e){var t=this;return e.signTransaction=function(f,r){return t.signTransaction(f,e.privateKey,r)},e.sign=function(f){return t.sign(f,e.privateKey)},e.encrypt=function(f,r){return t.encrypt(e.privateKey,f,r)},e},S.prototype.create=function(e){return this._addAccountFunctions(c.create(e||y.randomHex(32)))},S.prototype.privateKeyToAccount=function(e){return this._addAccountFunctions(c.fromPrivate(e))},S.prototype.signTransaction=function(e,t,f){function r(e){if(e.gas||e.gasLimit||(a=new Error('"gas" is missing')),(e.nonce<0||e.gas<0||e.gasPrice<0||e.chainId<0)&&(a=new Error("Gas, gasPrice, nonce or chainId is lower than 0")),a)return f(a),s.reject(new Error('"gas" is missing'));try{e=v.formatters.inputCallFormatter(e);var r=e;r.to=e.to||"0x",r.data=e.data||"0x",r.value=e.value||"0x",r.chainId=y.numberToHex(e.chainId);var i=d.encode([l.fromNat(r.nonce),l.fromNat(r.gasPrice),l.fromNat(r.gas),r.to.toLowerCase(),l.fromNat(r.value),r.data,l.fromNat(r.chainId||"0x1"),"0x","0x"]),o=u.keccak256(i),p=c.makeSigner(2*h.toNumber(r.chainId||"0x1")+35)(u.keccak256(i),t),b=d.decode(i).slice(0,6).concat(c.decodeSignature(p));b[6]=_(w(b[6])),b[7]=_(w(b[7])),b[8]=_(w(b[8]));var m=d.encode(b),g=d.decode(m);n={messageHash:o,v:w(g[6]),r:w(g[7]),s:w(g[8]),rawTransaction:m}}catch(e){return f(e),s.reject(e)}return f(null,n),n}var n,o=this,a=!1;return f=f||function(){},e?void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice?s.resolve(r(e)):s.all([g(e.chainId)?o._ethereumCall.getId():e.chainId,g(e.gasPrice)?o._ethereumCall.getGasPrice():e.gasPrice,g(e.nonce)?o._ethereumCall.getTransactionCount(o.privateKeyToAccount(t).address):e.nonce]).then(function(t){if(g(t[0])||g(t[1])||g(t[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return r(i.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2]}))}):(a=new Error("No transaction object given!"),f(a),s.reject(a))},S.prototype.recoverTransaction=function(e){var t=d.decode(e),f=c.encodeSignature(t.slice(6,9)),r=l.toNumber(t[6]),n=r<35?[]:[l.fromNumber(r-35>>1),"0x","0x"],i=t.slice(0,6).concat(n),o=d.encode(i);return c.recover(u.keccak256(o),f)},S.prototype.hashMessage=function(e){var t=y.isHexStrict(e)?y.hexToBytes(e):e,f=r.from(t),n="Ethereum Signed Message:\n"+t.length,i=r.from(n),o=r.concat([i,f]);return u.keccak256s(o)},S.prototype.sign=function(e,t){var f=this.hashMessage(e),r=c.sign(f,t),n=c.decodeSignature(r);return{message:e,messageHash:f,v:n[0],r:n[1],s:n[2],signature:r}},S.prototype.recover=function(e,t,f){var r=[].slice.apply(arguments);return i.isObject(e)?this.recover(e.messageHash,c.encodeSignature([e.v,e.r,e.s]),!0):(f||(e=this.hashMessage(e)),r.length>=4?(f=r.slice(-1)[0],f=!!i.isBoolean(f)&&!!f,this.recover(e,c.encodeSignature(r.slice(1,4)),f)):c.recover(e,t))},S.prototype.decrypt=function(e,t,f){if(!i.isString(t))throw new Error("No password given.");var n=i.isObject(e)?e:JSON.parse(f?e.toLowerCase():e);if(3!==n.version)throw new Error("Not a valid V3 wallet");var o,a;if("scrypt"===n.crypto.kdf)a=n.crypto.kdfparams,o=b(new r(t),new r(a.salt,"hex"),a.n,a.r,a.p,a.dklen);else{if("pbkdf2"!==n.crypto.kdf)throw new Error("Unsupported key derivation scheme");if(a=n.crypto.kdfparams,"hmac-sha256"!==a.prf)throw new Error("Unsupported parameters to PBKDF2");o=p.pbkdf2Sync(new r(t),new r(a.salt,"hex"),a.c,a.dklen,"sha256")}var s=new r(n.crypto.ciphertext,"hex");if(y.sha3(r.concat([o.slice(16,32),s])).replace("0x","")!==n.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var c=p.createDecipheriv(n.crypto.cipher,o.slice(0,16),new r(n.crypto.cipherparams.iv,"hex")),u="0x"+r.concat([c.update(s),c.final()]).toString("hex");return this.privateKeyToAccount(u)},S.prototype.encrypt=function(e,t,f){var n=this.privateKeyToAccount(e);f=f||{};var i,o=f.salt||p.randomBytes(32),a=f.iv||p.randomBytes(16),s=f.kdf||"scrypt",c={dklen:f.dklen||32,salt:o.toString("hex")};if("pbkdf2"===s)c.c=f.c||262144,c.prf="hmac-sha256",i=p.pbkdf2Sync(new r(t),o,c.c,c.dklen,"sha256");else{if("scrypt"!==s)throw new Error("Unsupported kdf");c.n=f.n||8192,c.r=f.r||8,c.p=f.p||1,i=b(new r(t),o,c.n,c.r,c.p,c.dklen)}var u=p.createCipheriv(f.cipher||"aes-128-ctr",i.slice(0,16),a);if(!u)throw new Error("Unsupported cipher");var d=r.concat([u.update(new r(n.privateKey.replace("0x",""),"hex")),u.final()]),h=y.sha3(r.concat([i.slice(16,32),new r(d,"hex")])).replace("0x","");return{version:3,id:m.v4({random:f.uuid||p.randomBytes(16)}),address:n.address.toLowerCase().replace("0x",""),crypto:{ciphertext:d.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:f.cipher||"aes-128-ctr",kdf:s,kdfparams:c,mac:h.toString("hex")}}},n.prototype._findSafeIndex=function(e){return e=e||0,i.has(this,e)?this._findSafeIndex(e+1):e},n.prototype._currentIndexes=function(){return Object.keys(this).map(function(e){return parseInt(e)}).filter(function(e){return e<9e20})},n.prototype.create=function(e,t){for(var f=0;f<e;++f)this.add(this._accounts.create(t).privateKey);return this},n.prototype.add=function(e){return i.isString(e)&&(e=this._accounts.privateKeyToAccount(e)),this[e.address]?this[e.address]:(e=this._accounts.privateKeyToAccount(e.privateKey),e.index=this._findSafeIndex(),this[e.index]=e,this[e.address]=e,this[e.address.toLowerCase()]=e,this.length++,e)},n.prototype.remove=function(e){var t=this[e];return!(!t||!t.address)&&(this[t.address].privateKey=null,delete this[t.address],this[t.address.toLowerCase()].privateKey=null,delete this[t.address.toLowerCase()],this[t.index].privateKey=null,delete this[t.index],this.length--,!0)},n.prototype.clear=function(){var e=this;return this._currentIndexes().forEach(function(t){e.remove(t)}),this},n.prototype.encrypt=function(e,t){var f=this;return this._currentIndexes().map(function(r){return f[r].encrypt(e,t)})},n.prototype.decrypt=function(e,t){var f=this;return e.forEach(function(e){var r=f._accounts.decrypt(e,t);if(!r)throw new Error("Couldn't decrypt accounts. Password wrong?");f.add(r)}),this},n.prototype.save=function(e,t){return localStorage.setItem(t||this.defaultKeyName,JSON.stringify(this.encrypt(e))),!0},n.prototype.load=function(e,t){var f=localStorage.getItem(t||this.defaultKeyName);if(f)try{f=JSON.parse(f)}catch(e){}return this.decrypt(f||[],e)},"undefined"==typeof localStorage&&(delete n.prototype.save,delete n.prototype.load),t.exports=S}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"any-promise":4,buffer:274,crypto:282,"crypto-browserify":57,"eth-lib/lib/account":191,"eth-lib/lib/bytes":193,"eth-lib/lib/hash":194,"eth-lib/lib/nat":195,"eth-lib/lib/rlp":196,"scrypt.js":145,underscore:162,uuid:198,"web3-core":178,"web3-core-helpers":168,"web3-core-method":169,"web3-utils":212}],200:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-core"),i=e("web3-core-method"),o=e("web3-utils"),a=e("web3-core-subscriptions").subscription,s=e("web3-core-helpers").formatters,c=e("web3-core-helpers").errors,u=e("web3-core-promievent"),d=e("web3-eth-abi"),h=function e(t,f,i){var a=this,c=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.contract() object!');if(n.packageInit(this,[this.constructor.currentProvider]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw new Error("You must provide the json interface of the contract when instantiating a contract object.");this.options={};var u=c[c.length-1];r.isObject(u)&&!r.isArray(u)&&(i=u,this.options=r.extend(this.options,this._getOrSetDefaultOptions(i)),r.isObject(f)&&(f=null)),Object.defineProperty(this.options,"address",{set:function(e){e&&(a._address=o.toChecksumAddress(s.inputAddressFormatter(e)))},get:function(){return a._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){return a.methods={},a.events={},a._jsonInterface=e.map(function(e){var t,f;if(e.name&&(f=o._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=d.encodeFunctionSignature(f),t=a._createTxObject.bind({method:e,parent:a}),a.methods[e.name]){var r=a._createTxObject.bind({method:e,parent:a,nextMethod:a.methods[e.name]});a.methods[e.name]=r}else a.methods[e.name]=t;a.methods[e.signature]=t,a.methods[f]=t}else if("event"===e.type){e.signature=d.encodeEventSignature(f);var n=a._on.bind(a,e.signature);a.events[e.name]&&"bound "!==a.events[e.name].name||(a.events[e.name]=n),a.events[e.signature]=n,a.events[f]=n}return e}),a.events.allEvents=a._on.bind(a,"allevents"),a._jsonInterface},get:function(){return a._jsonInterface},enumerable:!0});var h=this.constructor.defaultAccount,l=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"defaultAccount",{get:function(){return h},set:function(e){return e&&(h=o.toChecksumAddress(s.inputAddressFormatter(e))),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return l},set:function(e){return l=e,e},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=f,this.options.jsonInterface=t};h.setProvider=function(e,t){n.packageInit(this,[e]),this._ethAccounts=t},h.prototype._getCallback=function(e){if(e&&r.isFunction(e[e.length-1]))return e.pop()},h.prototype._checkListener=function(e,t){if(t===e)throw new Error('The event "'+e+"\" is a reserved event name, you can't use it.")},h.prototype._getOrSetDefaultOptions=function(e){var t=e.gasPrice?String(e.gasPrice):null,f=e.from?o.toChecksumAddress(s.inputAddressFormatter(e.from)):null;return e.data=e.data||this.options.data,e.from=f||this.options.from,e.gasPrice=t||this.options.gasPrice,e.gas=e.gas||e.gasLimit||this.options.gas,delete e.gasLimit,e},h.prototype._encodeEventABI=function(e,t){t=t||{};var f=t.filter||{},n={};if(["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(e){n[e]=s.inputBlockNumberFormatter(t[e])}),r.isArray(t.topics))n.topics=t.topics;else{if(n.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&n.topics.push(e.signature),"ALLEVENTS"!==e.name){var i=e.inputs.filter(function(e){return!0===e.indexed}).map(function(e){var t=f[e.name];return t?r.isArray(t)?t.map(function(t){return d.encodeParameter(e.type,t)}):d.encodeParameter(e.type,t):null});n.topics=n.topics.concat(i)}n.topics.length||delete n.topics}return this.options.address&&(n.address=this.options.address.toLowerCase()),n},h.prototype._decodeEventABI=function(e){var t=this;e.data=e.data||"",e.topics=e.topics||[];var f=s.outputLogFormatter(e);"ALLEVENTS"===t.name&&(t=t.jsonInterface.find(function(t){return t.signature===e.topics[0]})||{anonymous:!0}),t.inputs=t.inputs||[];var r=t.anonymous?e.topics:e.topics.slice(1);return f.returnValues=d.decodeLog(t.inputs,e.data,r),delete f.returnValues.__length__,f.event=t.name,f.signature=t.anonymous||!e.topics[0]?null:e.topics[0],f.raw={data:f.data,topics:f.topics},delete f.data,delete f.topics,f},h.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],f=!1,n=this._parent.options.jsonInterface.filter(function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type}).map(function(e){var n=r.isArray(e.inputs)?e.inputs.length:0;if(n!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+n+" arguments.");return"function"===e.type&&(f=e.signature),r.isArray(e.inputs)?e.inputs.map(function(e){return e.type}):[]}).map(function(e){return d.encodeParameters(e,t).replace("0x","")})[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData+n}var i=f?f+n:n;if(i)return i;throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".')},h.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var f=d.decodeParameters(e,t);return 1===f.__length__?f[0]:(delete f.__length__,f)},h.prototype.deploy=function(e,t){if(e=e||{},e.arguments=e.arguments||[],e=this._getOrSetDefaultOptions(e),!e.data)return o._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,t);var f=r.find(this.options.jsonInterface,function(e){return"constructor"===e.type})||{};return f.signature="constructor",this._createTxObject.apply({method:f,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},h.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),f=r.isObject(e[e.length-1])?e.pop():{},n=r.isString(e[0])?e[0]:"allevents";if(!(n="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(e){return"event"===e.type&&(e.name===n||e.signature==="0x"+n.replace("0x",""))})))throw new Error('Event "'+n.name+"\" doesn't exist in this contract.");if(!o.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return{params:this._encodeEventABI(n,f),event:n,callback:t}},h.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},h.prototype.once=function(e,t,f){var n=Array.prototype.slice.call(arguments);if(!(f=this._getCallback(n)))throw new Error("Once requires a callback as the second parameter.");t&&delete t.fromBlock,this._on(e,t,function(e,t,n){n.unsubscribe(),r.isFunction(f)&&f(e,t,n)})},h.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",e.event.name,e.callback),this._checkListener("removeListener",e.event.name,e.callback);var t=new a({subscription:{params:1,inputFormatter:[s.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},h.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new i({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[s.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var f=t.buildCall();return t=null,f(e.params,e.callback)},h.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw c.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},h.prototype._processExecuteArguments=function(e,t){var f={};if(f.type=e.shift(),f.callback=this._parent._getCallback(e),"call"===f.type&&!0!==e[e.length-1]&&(r.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(f.defaultBlock=e.pop()),f.options=r.isObject(e[e.length-1])?e.pop():{},f.generateRequest=!0===e[e.length-1]&&e.pop(),f.options=this._parent._getOrSetDefaultOptions(f.options),f.options.data=this.encodeABI(),!this._deployData&&!o.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return this._deployData||(f.options.to=this._parent.options.address),f.options.data?f:o._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,f.callback)},h.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),f),f=u("send"!==t.type),n=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var a={params:[s.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(a.params.push(s.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),a.method="eth_call",a.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):a.method="eth_sendTransaction",a}switch(t.type){case"estimate":return new i({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[s.inputCallFormatter],outputFormatter:o.hexToNumber,requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.callback);case"call":return new i({name:"call",call:"eth_call",params:2,inputFormatter:[s.inputCallFormatter,s.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.defaultBlock,t.callback);case"send":if(!o.isAddress(t.options.from))return o._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),f.eventEmitter,f.reject,t.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&t.options.value>0)return o._fireError(new Error("Can not send value to non-payable contract method or constructor"),f.eventEmitter,f.reject,t.callback);var c={receiptFormatter:function(t){if(r.isArray(t.logs)){var f=r.map(t.logs,function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)});t.events={};var n=0;f.forEach(function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[n]=e,n++)}),delete t.logs}return t},contractDeployFormatter:function(t){var f=e._parent.clone();return f.options.address=t.contractAddress,f}};return new i({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[s.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,extraFormatters:c}).createFunction()(t.options,t.callback)}},t.exports=h},{underscore:162,"web3-core":178,"web3-core-helpers":168,"web3-core-method":169,"web3-core-promievent":170,"web3-core-subscriptions":175,"web3-eth-abi":181,"web3-utils":212}],201:[function(e,t,f){arguments[4][89][0].apply(f,arguments)},{dup:89}],202:[function(e,t,f){"use strict";var r=e("web3-utils"),n=e("bn.js"),i=function(e,t){for(var f=e;f.length<2*t;)f="0"+f;return f},o=function(e){var t="A".charCodeAt(0),f="Z".charCodeAt(0);return e=e.toUpperCase(),e=e.substr(4)+e.substr(0,4),e.split("").map(function(e){var r=e.charCodeAt(0);return r>=t&&r<=f?r-t+10:e}).join("")},a=function(e){for(var t,f=e;f.length>2;)t=f.slice(0,9),f=parseInt(t,10)%97+f.slice(t.length);return parseInt(f,10)%97},s=function(e){this._iban=e};s.toAddress=function(e){if(e=new s(e),!e.isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()},s.toIban=function(e){return s.fromAddress(e).toString()},s.fromAddress=function(e){if(!r.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");var t=new n(e,16),f=t.toString(36),o=i(f,15);return s.fromBban(o.toUpperCase())},s.fromBban=function(e){var t=a(o("XE00"+e)),f=("0"+(98-t)).slice(-2);return new s("XE"+f+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.toAddress=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new n(e,36);return r.toChecksumAddress(t.toString(16,20))}return""},s.prototype.toString=function(){return this._iban},t.exports=s},{"bn.js":201,"web3-utils":212}],203:[function(e,t,f){"use strict";var r=e("web3-core"),n=e("web3-core-method"),i=e("web3-utils"),o=e("web3-net"),a=e("web3-core-helpers").formatters,s=function(){var e=this;r.packageInit(this,arguments),this.net=new o(this.currentProvider);var t=null,f="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return t},set:function(e){return e&&(t=i.toChecksumAddress(a.inputAddressFormatter(e))),s.forEach(function(e){e.defaultAccount=t}),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return f},set:function(e){return f=e,s.forEach(function(e){e.defaultBlock=f}),e},enumerable:!0});var s=[new n({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:i.toChecksumAddress}),new n({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:i.toChecksumAddress}),new n({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),new n({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]}),new n({name:"importRawKey",call:"personal_importRawKey",params:2}),new n({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new n({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new n({name:"sign",call:"personal_sign",params:3,inputFormatter:[a.inputSignFormatter,a.inputAddressFormatter,null]}),new n({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[a.inputSignFormatter,null]})];s.forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount})};r.addProviders(s),t.exports=s},{"web3-core":178,"web3-core-helpers":168,"web3-core-method":169,"web3-net":206,"web3-utils":212}],204:[function(e,t,f){"use strict";var r=e("underscore"),n=function(e){var t,f=this;return this.net.getId().then(function(e){return t=e,f.getBlock(0)}).then(function(f){var n="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===f.hash&&1===t&&(n="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===f.hash&&2===t&&(n="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===f.hash&&3===t&&(n="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===f.hash&&4===t&&(n="rinkeby"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===f.hash&&42===t&&(n="kovan"),r.isFunction(e)&&e(null,n),n}).catch(function(t){if(!r.isFunction(e))throw t;e(t)})};t.exports=n},{underscore:162}],205:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-core"),i=e("web3-core-helpers"),o=e("web3-core-subscriptions").subscriptions,a=e("web3-core-method"),s=e("web3-utils"),c=e("web3-net"),u=e("web3-eth-personal"),d=e("web3-eth-contract"),h=e("web3-eth-iban"),l=e("web3-eth-accounts"),p=e("web3-eth-abi"),b=e("./getNetworkType.js"),m=i.formatters,y=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},v=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},w=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},_=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},S=function(){var e=this;n.packageInit(this,arguments);var t=this.setProvider;this.setProvider=function(){t.apply(e,arguments),e.net.setProvider.apply(e,arguments),
e.personal.setProvider.apply(e,arguments),e.accounts.setProvider.apply(e,arguments),e.Contract.setProvider(e.currentProvider,e.accounts)};var f=null,i="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return f},set:function(t){return t&&(f=s.toChecksumAddress(m.inputAddressFormatter(t))),e.Contract.defaultAccount=f,e.personal.defaultAccount=f,M.forEach(function(e){e.defaultAccount=f}),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return i},set:function(t){return i=t,e.Contract.defaultBlock=i,e.personal.defaultBlock=i,M.forEach(function(e){e.defaultBlock=i}),t},enumerable:!0}),this.clearSubscriptions=e._requestManager.clearSubscriptions,this.net=new c(this.currentProvider),this.net.getNetworkType=b.bind(this),this.accounts=new l(this.currentProvider),this.personal=new u(this.currentProvider),this.personal.defaultAccount=this.defaultAccount;var S=function(){d.apply(this,arguments)};S.setProvider=function(){d.setProvider.apply(this,arguments)},S.prototype=Object.create(d.prototype),S.prototype.constructor=S,this.Contract=S,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.setProvider(this.currentProvider,this.accounts),this.Iban=h,this.abi=p;var M=[new a({name:"getNodeInfo",call:"web3_clientVersion"}),new a({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new a({name:"getCoinbase",call:"eth_coinbase",params:0}),new a({name:"isMining",call:"eth_mining",params:0}),new a({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:s.hexToNumber}),new a({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:m.outputSyncingFormatter}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:m.outputBigNumberFormatter}),new a({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:s.toChecksumAddress}),new a({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:s.hexToNumber}),new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[m.inputAddressFormatter,m.inputDefaultBlockNumberFormatter],outputFormatter:m.outputBigNumberFormatter}),new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[m.inputAddressFormatter,s.numberToHex,m.inputDefaultBlockNumberFormatter]}),new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[m.inputAddressFormatter,m.inputDefaultBlockNumberFormatter]}),new a({name:"getBlock",call:y,params:2,inputFormatter:[m.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:m.outputBlockFormatter}),new a({name:"getUncle",call:g,params:2,inputFormatter:[m.inputBlockNumberFormatter,s.numberToHex],outputFormatter:m.outputBlockFormatter}),new a({name:"getBlockTransactionCount",call:w,params:1,inputFormatter:[m.inputBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"getBlockUncleCount",call:_,params:1,inputFormatter:[m.inputBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:m.outputTransactionFormatter}),new a({name:"getTransactionFromBlock",call:v,params:2,inputFormatter:[m.inputBlockNumberFormatter,s.numberToHex],outputFormatter:m.outputTransactionFormatter}),new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:m.outputTransactionReceiptFormatter}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[m.inputAddressFormatter,m.inputDefaultBlockNumberFormatter],outputFormatter:s.hexToNumber}),new a({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[m.inputTransactionFormatter]}),new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[m.inputTransactionFormatter]}),new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[m.inputSignFormatter,m.inputAddressFormatter],transformPayload:function(e){return e.params.reverse(),e}}),new a({name:"call",call:"eth_call",params:2,inputFormatter:[m.inputCallFormatter,m.inputDefaultBlockNumberFormatter]}),new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[m.inputCallFormatter],outputFormatter:s.hexToNumber}),new a({name:"getCompilers",call:"eth_getCompilers",params:0}),new a({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new a({name:"compile.lll",call:"eth_compileLLL",params:1}),new a({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new a({name:"submitWork",call:"eth_submitWork",params:3}),new a({name:"getWork",call:"eth_getWork",params:0}),new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[m.inputLogFormatter],outputFormatter:m.outputLogFormatter}),new o({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:m.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[m.inputLogFormatter],outputFormatter:m.outputLogFormatter,subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},syncing:{params:0,outputFormatter:m.outputSyncingFormatter,subscriptionHandler:function(e){var t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),r.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout(function(){t.emit("data",e),r.isFunction(t.callback)&&t.callback(null,e,t)},0)):(this.emit("data",e),r.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),r.isFunction(t.callback)&&t.callback(null,t._isSyncing,t))},500))}}}})];M.forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager,e.accounts),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount})};n.addProviders(S),t.exports=S},{"./getNetworkType.js":204,underscore:162,"web3-core":178,"web3-core-helpers":168,"web3-core-method":169,"web3-core-subscriptions":175,"web3-eth-abi":181,"web3-eth-accounts":199,"web3-eth-contract":200,"web3-eth-iban":202,"web3-eth-personal":203,"web3-net":206,"web3-utils":212}],206:[function(e,t,f){"use strict";var r=e("web3-core"),n=e("web3-core-method"),i=e("web3-utils"),o=function(){var e=this;r.packageInit(this,arguments),[new n({name:"getId",call:"net_version",params:0,outputFormatter:i.hexToNumber}),new n({name:"isListening",call:"net_listening",params:0}),new n({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:i.hexToNumber})].forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})};r.addProviders(o),t.exports=o},{"web3-core":178,"web3-core-method":169,"web3-utils":212}],207:[function(e,t,f){var r=e("web3-core-helpers").errors,n=e("xhr2"),i=function(e,t,f){this.host=e||"http://localhost:8545",this.timeout=t||0,this.connected=!1,this.headers=f};i.prototype._prepareRequest=function(){var e=new n;return e.open("POST",this.host,!0),e.setRequestHeader("Content-Type","application/json"),this.headers&&this.headers.forEach(function(t){e.setRequestHeader(t.name,t.value)}),e},i.prototype.send=function(e,t){var f=this,n=this._prepareRequest();n.onreadystatechange=function(){if(4===n.readyState&&1!==n.timeout){var e=n.responseText,i=null;try{e=JSON.parse(e)}catch(e){i=r.InvalidResponse(n.responseText)}f.connected=!0,t(i,e)}},n.ontimeout=function(){f.connected=!1,t(r.ConnectionTimeout(this.timeout))};try{n.send(JSON.stringify(e))}catch(e){this.connected=!1,t(r.InvalidConnection(this.host))}},t.exports=i},{"web3-core-helpers":168,xhr2:226}],208:[function(e,t,f){"use strict";var r=e("underscore"),n=e("web3-core-helpers").errors,i=e("oboe"),o=function(e,t){var f=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var n=function(e){var t=null;r.isArray(e)?e.forEach(function(e){f.responseCallbacks[e.id]&&(t=e.id)}):t=e.id,t||-1===e.method.indexOf("_subscription")?f.responseCallbacks[t]&&(f.responseCallbacks[t](null,e),delete f.responseCallbacks[t]):f.notificationCallbacks.forEach(function(t){r.isFunction(t)&&t(e)})};"Socket"===t.constructor.name?i(this.connection).done(n):this.connection.on("data",function(e){f._parseResponse(e.toString()).forEach(n)})};o.prototype.addDefaultEvents=function(){var e=this;this.connection.on("connect",function(){}),this.connection.on("error",function(){e._timeout()}),this.connection.on("end",function(){e._timeout()}),this.connection.on("timeout",function(){e._timeout()})},o.prototype._parseResponse=function(e){var t=this,f=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(f){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout(function(){throw t._timeout(),n.InvalidResponse(e)},15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&f.push(r)}),f},o.prototype._addResponseCallback=function(e,t){var f=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[f]=t,this.responseCallbacks[f].method=r},o.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](n.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},o.prototype.reconnect=function(){this.connection.connect({path:this.path})},o.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},o.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;default:this.connection.on(e,t)}},o.prototype.once=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},o.prototype.removeListener=function(e,t){var f=this;switch(e){case"data":this.notificationCallbacks.forEach(function(e,r){e===t&&f.notificationCallbacks.splice(r,1)});break;default:this.connection.removeListener(e,t)}},o.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(e)}},o.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},t.exports=o},{oboe:119,underscore:162,"web3-core-helpers":168}],209:[function(e,t,f){(function(f){"use strict";var r=e("underscore"),n=e("web3-core-helpers").errors,i=null,o=null,a=null;"undefined"!=typeof window?(i=window.WebSocket,o=btoa,a=function(e){return new URL(e)}):(i=e("websocket").w3cwebsocket,o=function(e){return f(e).toString("base64")},a=e("url").parse);var s=function(e,t){var f=this;this.responseCallbacks={},this.notificationCallbacks=[],t=t||{},this._customTimeout=t.timeout;var n=a(e),s=t.headers||{};n.username&&n.password&&(s.authorization="Basic "+o(n.username+":"+n.password)),this.connection=new i(e,void 0,void 0,s),this.addDefaultEvents(),this.connection.onmessage=function(e){var t="string"==typeof e.data?e.data:"";f._parseResponse(t).forEach(function(e){var t=null;r.isArray(e)?e.forEach(function(e){f.responseCallbacks[e.id]&&(t=e.id)}):t=e.id,t||-1===e.method.indexOf("_subscription")?f.responseCallbacks[t]&&(f.responseCallbacks[t](null,e),delete f.responseCallbacks[t]):f.notificationCallbacks.forEach(function(t){r.isFunction(t)&&t(e)})})}};s.prototype.addDefaultEvents=function(){var e=this;this.connection.onerror=function(){e._timeout()},this.connection.onclose=function(){e._timeout(),e.reset()}},s.prototype._parseResponse=function(e){var t=this,f=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(f){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout(function(){throw t._timeout(),n.InvalidResponse(e)},15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&f.push(r)}),f},s.prototype._addResponseCallback=function(e,t){var f=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[f]=t,this.responseCallbacks[f].method=r;var i=this;this._customTimeout&&setTimeout(function(){i.responseCallbacks[f]&&(i.responseCallbacks[f](n.ConnectionTimeout(i._customTimeout)),delete i.responseCallbacks[f])},this._customTimeout)},s.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](n.InvalidConnection("on WS")),delete this.responseCallbacks[e])},s.prototype.send=function(e,t){var f=this;return this.connection.readyState===this.connection.CONNECTING?void setTimeout(function(){f.send(e,t)},10):this.connection.readyState!==this.connection.OPEN?(console.error("connection not open on send()"),"function"==typeof this.connection.onerror?this.connection.onerror(new Error("connection not open")):console.error("no error callback"),void t(new Error("connection not open"))):(this.connection.send(JSON.stringify(e)),void this._addResponseCallback(e,t))},s.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;case"connect":this.connection.onopen=t;break;case"end":this.connection.onclose=t;break;case"error":this.connection.onerror=t}},s.prototype.removeListener=function(e,t){var f=this;switch(e){case"data":this.notificationCallbacks.forEach(function(e,r){e===t&&f.notificationCallbacks.splice(r,1)})}},s.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;case"connect":this.connection.onopen=null;break;case"end":this.connection.onclose=null;break;case"error":this.connection.onerror=null}},s.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents()},t.exports=s}).call(this,e("buffer").Buffer)},{buffer:274,underscore:162,url:383,"web3-core-helpers":168,websocket:217}],210:[function(e,t,f){"use strict";var r=e("web3-core"),n=e("web3-core-subscriptions").subscriptions,i=e("web3-core-method"),o=e("web3-net"),a=function(){var e=this;r.packageInit(this,arguments);var t=this.setProvider;this.setProvider=function(){t.apply(e,arguments),e.net.setProvider.apply(e,arguments)},this.clearSubscriptions=e._requestManager.clearSubscriptions,this.net=new o(this.currentProvider),[new n({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new i({name:"getVersion",call:"shh_version",params:0}),new i({name:"getInfo",call:"shh_info",params:0}),new i({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new i({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new i({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new i({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new i({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new i({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new i({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new i({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new i({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new i({name:"newSymKey",call:"shh_newSymKey",params:0}),new i({name:"addSymKey",call:"shh_addSymKey",params:1}),new i({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new i({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new i({name:"getSymKey",call:"shh_getSymKey",params:1}),new i({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new i({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new i({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new i({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new i({name:"post",call:"shh_post",params:1,inputFormatter:[null]})].forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})};r.addProviders(a),t.exports=a},{"web3-core":178,"web3-core-method":169,"web3-core-subscriptions":175,"web3-net":206}],211:[function(e,t,f){arguments[4][89][0].apply(f,arguments)},{dup:89}],212:[function(e,t,f){var r=e("underscore"),n=e("ethjs-unit"),i=e("./utils.js"),o=e("./soliditySha3.js"),a=e("randomhex"),s=function(e,t,f,n){return!r.isObject(e)||e instanceof Error||!e.data||((r.isObject(e.data)||r.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),r.isString(e)&&(e=new Error(e)),r.isFunction(n)&&n(e),r.isFunction(f)&&((t&&r.isFunction(t.listeners)&&t.listeners("error").length||r.isFunction(n))&&t.catch(function(){}),setTimeout(function(){f(e)},1)),t&&r.isFunction(t.emit)&&setTimeout(function(){t.emit("error",e),t.removeAllListeners()},1),t},c=function(e){if(r.isObject(e)&&e.name&&-1!==e.name.indexOf("("))return e.name;var t=e.inputs.map(function(e){return e.type}).join(",");return e.name+"("+t+")"},u=function(e){if(!i.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",f=0,r=e.length;for("0x"===e.substring(0,2)&&(f=2);f<r;f+=2){var n=parseInt(e.substr(f,2),16);t+=String.fromCharCode(n)}return t},d=function(e){if(!e)return"0x00";for(var t="",f=0;f<e.length;f++){var r=e.charCodeAt(f),n=r.toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},h=function(e){if(e=e?e.toLowerCase():"ether",!n.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(n.unitMap,null,2));return e},l=function(e,t){if(t=h(t),!i.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return i.isBN(e)?n.fromWei(e,t):n.fromWei(e,t).toString(10)},p=function(e,t){if(t=h(t),!i.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return i.isBN(e)?n.toWei(e,t):n.toWei(e,t).toString(10)},b=function(e){if(void 0===e)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.');e=e.toLowerCase().replace(/^0x/i,"");for(var t=i.sha3(e).replace(/^0x/i,""),f="0x",r=0;r<e.length;r++)parseInt(t[r],16)>7?f+=e[r].toUpperCase():f+=e[r];return f};t.exports={_fireError:s,_jsonInterfaceMethodToString:c,randomHex:a,_:r,BN:i.BN,isBN:i.isBN,isBigNumber:i.isBigNumber,isHex:i.isHex,isHexStrict:i.isHexStrict,sha3:i.sha3,keccak256:i.sha3,soliditySha3:o,isAddress:i.isAddress,checkAddressChecksum:i.checkAddressChecksum,toChecksumAddress:b,toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:d,fromAscii:d,unitMap:n.unitMap,toWei:p,fromWei:l,padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement}},{"./soliditySha3.js":213,"./utils.js":214,"ethjs-unit":88,randomhex:142,underscore:162}],213:[function(e,t,f){var r=e("underscore"),n=e("bn.js"),i=e("./utils.js"),o=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},a=function(e){var t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null},s=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null},c=function(e){var t=typeof e;if("string"===t)return i.isHexStrict(e)?new n(e.replace(/0x/i,""),16):new n(e,10);if("number"===t)return new n(e);if(i.isBigNumber(e))return new n(e.toString(10));if(i.isBN(e))return e;throw new Error(e+" is not a number")},u=function(e,t,f){var r,s;if("bytes"===(e=o(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return i.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(r=f?64:40,!i.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return i.leftPad(t.toLowerCase(),r)}if(r=a(e),e.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(f&&(r=32),r<1||r>32||r<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+r+" for "+t);return i.rightPad(t,2*r)}if(e.startsWith("uint")){if(r%8||r<8||r>256)throw new Error("Invalid uint"+r+" size");if(s=c(t),s.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());if(s.lt(new n(0)))throw new Error("Supplied uint "+s.toString()+" is negative");return r?i.leftPad(s.toString("hex"),r/8*2):s}if(e.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if(s=c(t),s.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());return s.lt(new n(0))?s.toTwos(r).toString("hex"):r?i.leftPad(s.toString("hex"),r/8*2):s}throw new Error("Unsupported or invalid type: "+e)},d=function(e){if(r.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,f,o,a="";if(r.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=i.toHex(e,!0),a=i.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new n(a)),r.isArray(a)){if((o=s(t))&&a.length!==o)throw new Error(t+" is not matching the given array "+JSON.stringify(a));o=a.length}return r.isArray(a)?(f=a.map(function(e){return u(t,e,o).toString("hex").replace("0x","")}),f.join("")):(f=u(t,a,o),f.toString("hex").replace("0x",""))},h=function(){var e=Array.prototype.slice.call(arguments),t=r.map(e,d);return i.sha3("0x"+t.join(""))};t.exports=h},{"./utils.js":214,"bn.js":211,underscore:162}],214:[function(e,t,f){var r=e("underscore"),n=e("bn.js"),i=e("number-to-bn"),o=e("utf8"),a=e("eth-lib/lib/hash"),s=function(e){return e instanceof n||e&&e.constructor&&"BN"===e.constructor.name},c=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},u=function(e){try{return i.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},d=function(e){return"0x"+u(e).toTwos(256).toString(16,64)},h=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))||l(e))},l=function(e){e=e.replace(/^0x/i,"");for(var t=A(e.toLowerCase()).replace(/^0x/i,""),f=0;f<40;f++)if(parseInt(t[f],16)>7&&e[f].toUpperCase()!==e[f]||parseInt(t[f],16)<=7&&e[f].toLowerCase()!==e[f])return!1;return!0},p=function(e,t,f){var r=/^0x/i.test(e)||"number"==typeof e;e=e.toString(16).replace(/^0x/i,"");var n=t-e.length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(n).join(f||"0")+e},b=function(e,t,f){var r=/^0x/i.test(e)||"number"==typeof e;e=e.toString(16).replace(/^0x/i,"");var n=t-e.length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(n).join(f||"0")},m=function(e){e=o.encode(e);var t="";e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join(""),e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join("");for(var f=0;f<e.length;f++){var r=e.charCodeAt(f),n=r.toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},y=function(e){if(!k(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.');var t="",f=0;e=e.replace(/^0x/i,""),e=e.replace(/^(?:00)*/,""),e=e.split("").reverse().join(""),e=e.replace(/^(?:00)*/,""),e=e.split("").reverse().join("");for(var r=e.length,n=0;n<r;n+=2)f=parseInt(e.substr(n,2),16),t+=String.fromCharCode(f);return o.decode(t)},v=function(e){return e?u(e).toNumber():e},g=function(e){return e?u(e).toString(10):e},w=function(e){if(r.isNull(e)||r.isUndefined(e))return e;if(!isFinite(e)&&!k(e))throw new Error('Given input "'+e+'" is not a number.');var t=u(e),f=t.toString(16);return t.lt(new n(0))?"-0x"+f.substr(1):"0x"+f},_=function(e){for(var t=[],f=0;f<e.length;f++)t.push((e[f]>>>4).toString(16)),t.push((15&e[f]).toString(16));return"0x"+t.join("")},S=function(e){if(e=e.toString(16),!k(e))throw new Error('Given value "'+e+'" is not a valid hex string.');e=e.replace(/^0x/i,"");for(var t=[],f=0;f<e.length;f+=2)t.push(parseInt(e.substr(f,2),16));return t},M=function(e,t){if(h(e))return t?"address":"0x"+e.toLowerCase().replace(/^0x/i,"");if(r.isBoolean(e))return t?"bool":e?"0x01":"0x00";if(r.isObject(e)&&!c(e)&&!s(e))return t?"string":m(JSON.stringify(e));if(r.isString(e)){if(0===e.indexOf("-0x")||0===e.indexOf("-0X"))return t?"int256":w(e);if(0===e.indexOf("0x")||0===e.indexOf("0X"))return t?"bytes":e;if(!isFinite(e))return t?"string":m(e)}return t?e<0?"int256":"uint256":w(e)},k=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-)?0x[0-9a-f]*$/i.test(e)},x=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},E=function(e){return!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},T=function(e){return!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))},A=function(e){k(e)&&/^0x/i.test(e.toString())&&(e=S(e));var t=a.keccak256(e);return"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"===t?null:t};A._Hash=a,t.exports={BN:n,isBN:s,isBigNumber:c,toBN:u,isAddress:h,isBloom:E,isTopic:T,checkAddressChecksum:l,utf8ToHex:m,hexToUtf8:y,hexToNumber:v,hexToNumberString:g,numberToHex:w,toHex:M,hexToBytes:S,bytesToHex:_,isHex:x,isHexStrict:k,leftPad:p,rightPad:b,toTwosComplement:d,sha3:A}},{"bn.js":211,"eth-lib/lib/hash":87,"number-to-bn":117,underscore:162,utf8:164}],215:[function(e,t,f){t.exports={_from:"web3",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-NH5WG3hAmMtVYzFfSQR5odkfKrE=",_location:"/web3",_phantomChildren:{},_requested:{type:"tag",registry:!0,raw:"web3",name:"web3",escapedName:"web3",rawSpec:"",saveSpec:null,fetchSpec:"latest"},_requiredBy:["#USER","/"],_resolved:"https://registry.npmjs.org/web3/-/web3-1.0.0-beta.34.tgz",_shasum:"347e561b784098cb5563315f490479a1d91f2ab1",_spec:"web3",_where:"/Users/fur/Projects/Block42/cubik-crowdsale-webfront",author:{name:"ethereum.org"},authors:[{name:"Fabian Vogelsteller",email:"[email protected]",homepage:"http://frozeman.de"},{name:"Marek Kotewicz",email:"[email protected]",url:"https://github.com/debris"},{name:"Marian Oancea",url:"https://github.com/cubedro"},{name:"Gav Wood",email:"[email protected]",homepage:"http://gavwood.com"},{name:"Jeffery Wilcke",email:"[email protected]",url:"https://github.com/obscuren"}],bugs:{url:"https://github.com/ethereum/web3.js/issues"},bundleDependencies:!1,dependencies:{"web3-bzz":"1.0.0-beta.34","web3-core":"1.0.0-beta.34","web3-eth":"1.0.0-beta.34","web3-eth-personal":"1.0.0-beta.34","web3-net":"1.0.0-beta.34","web3-shh":"1.0.0-beta.34","web3-utils":"1.0.0-beta.34"},deprecated:!1,description:"Ethereum JavaScript API",keywords:["Ethereum","JavaScript","API"],license:"LGPL-3.0",main:"src/index.js",name:"web3",namespace:"ethereum",repository:{type:"git",url:"https://github.com/ethereum/web3.js/tree/master/packages/web3"},types:"index.d.ts",version:"1.0.0-beta.34"}},{}],216:[function(e,t,f){"use strict";var r=e("../package.json").version,n=e("web3-core"),i=e("web3-eth"),o=e("web3-net"),a=e("web3-eth-personal"),s=e("web3-shh"),c=e("web3-bzz"),u=e("web3-utils"),d=function(){var e=this;n.packageInit(this,arguments),this.version=r,this.utils=u,this.eth=new i(this),this.shh=new s(this),this.bzz=new c(this);var t=this.setProvider;this.setProvider=function(f,r){return t.apply(e,arguments),this.eth.setProvider(f,r),this.shh.setProvider(f,r),this.bzz.setProvider(f),!0}};d.version=r,d.utils=u,d.modules={Eth:i,Net:o,Personal:a,Shh:s,Bzz:c},n.addProviders(d),t.exports=d},{"../package.json":215,"web3-bzz":165,"web3-core":178,"web3-eth":205,"web3-eth-personal":203,"web3-net":206,"web3-shh":210,"web3-utils":212}],217:[function(e,t,f){function r(e,t){return t?new i(e,t):new i(e)}var n=function(){return this||{}}(),i=n.WebSocket||n.MozWebSocket,o=e("./version");i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(r,e,{get:function(){return i[e]}})}),t.exports={w3cwebsocket:i?r:null,version:o}},{"./version":218}],218:[function(e,t,f){t.exports=e("../package.json").version},{"../package.json":219}],219:[function(e,t,f){t.exports={_from:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",_id:"[email protected]",_inBundle:!1,_integrity:"",_location:"/websocket",_phantomChildren:{},_requested:{type:"git",raw:"websocket@git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",name:"websocket",escapedName:"websocket",rawSpec:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",saveSpec:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",fetchSpec:"git://github.com/frozeman/WebSocket-Node.git",gitCommittish:"browserifyCompatible"},_requiredBy:["/web3-providers-ws"],_resolved:"git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",_spec:"websocket@git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",_where:"/Users/fur/Projects/Block42/cubik-crowdsale-webfront/node_modules/web3-providers-ws",author:{name:"Brian McKelvey",email:"[email protected]",url:"https://www.worlize.com/"},browser:"lib/browser.js",bugs:{url:"https://github.com/theturtle32/WebSocket-Node/issues"},bundleDependencies:!1,config:{verbose:!1},contributors:[{name:"Iñaki Baz Castillo",email:"[email protected]",url:"http://dev.sipdoc.net"}],dependencies:{debug:"^2.2.0",nan:"^2.3.3","typedarray-to-buffer":"^3.1.2",yaeti:"^0.0.6"},deprecated:!1,description:"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",devDependencies:{"buffer-equal":"^1.0.0",faucet:"^0.0.1",gulp:"git+https://github.com/gulpjs/gulp.git#4.0","gulp-jshint":"^2.0.4",jshint:"^2.0.0","jshint-stylish":"^2.2.1",tape:"^4.0.1"},directories:{lib:"./lib"},engines:{node:">=0.10.0"},homepage:"https://github.com/theturtle32/WebSocket-Node",keywords:["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],license:"Apache-2.0",main:"index",name:"websocket",repository:{type:"git",url:"git+https://github.com/theturtle32/WebSocket-Node.git"},scripts:{gulp:"gulp",install:"(node-gyp rebuild 2> builderror.log) || (exit 0)",test:"faucet test/unit"},version:"1.0.26"}},{}],220:[function(e,t,f){var r=e("xhr-request");t.exports=function(e,t){return new Promise(function(f,n){r(e,t,function(e,t){e?n(e):f(t)})})}},{"xhr-request":221}],221:[function(e,t,f){function r(e,t,f){if(!e||"string"!=typeof e)throw new TypeError("must specify a URL");if("function"==typeof t&&(f=t,t={}),f&&"function"!=typeof f)throw new TypeError("expected cb to be undefined or a function");f=f||u,t=t||{};var r=t.json?"json":"text";t=o({responseType:r},t);var d=t.headers||{},h=(t.method||"GET").toUpperCase(),l=t.query;return l&&("string"!=typeof l&&(l=n.stringify(l)),e=i(e,l)),"json"===t.responseType&&a(d,"Accept",c),t.json&&"GET"!==h&&"HEAD"!==h&&(a(d,"Content-Type",c),t.body=JSON.stringify(t.body)),t.method=h,t.url=e,t.headers=d,delete t.query,
delete t.json,s(t,f)}var n=e("query-string"),i=e("url-set-query"),o=e("object-assign"),a=e("./lib/ensure-header.js"),s=e("./lib/request.js"),c="application/json",u=function(){};t.exports=r},{"./lib/ensure-header.js":222,"./lib/request.js":224,"object-assign":118,"query-string":137,"url-set-query":163}],222:[function(e,t,f){function r(e,t,f){var r=t.toLowerCase();e[t]||e[r]||(e[t]=f)}t.exports=r},{}],223:[function(e,t,f){function r(e,t){return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null}t.exports=r},{}],224:[function(e,t,f){function r(e,t){delete e.uri;var f=!1;"json"===e.responseType&&(e.responseType="text",f=!0);var r=n(e,function(r,n,a){if(f&&!r)try{var s=n.rawRequest.responseText;a=JSON.parse(s)}catch(e){r=e}n=i(e,n),r?t(r,null,n):t(r,a,n),t=o}),a=r.onabort;return r.onabort=function(){var e=a.apply(r,Array.prototype.slice.call(arguments));return t(new Error("XHR Aborted")),t=o,e},r}var n=e("xhr"),i=e("./normalize-response"),o=function(){};t.exports=r},{"./normalize-response":223,xhr:225}],225:[function(e,t,f){"use strict";function r(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function n(e,t,f){var r=e;return u(t)?(f=t,"string"==typeof e&&(r={uri:e})):r=h(t,{uri:e}),r.callback=f,r}function i(e,t,f){return t=n(e,t,f),o(t)}function o(e){function t(){4===u.readyState&&setTimeout(o,0)}function f(){var e=void 0;if(e=u.response?u.response:u.responseText||a(u),w)try{e=JSON.parse(e)}catch(e){}return e}function n(e){return clearTimeout(p),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,c(e,_)}function o(){if(!l){var t;clearTimeout(p),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var r=_,n=null;return 0!==t?(r={body:f(),statusCode:t,method:m,headers:{},url:b,rawRequest:u},u.getAllResponseHeaders&&(r.headers=d(u.getAllResponseHeaders()))):n=new Error("Internal XMLHttpRequest Error"),c(n,r,r.body)}}if(void 0===e.callback)throw new Error("callback argument missing");var s=!1,c=function(t,f,r){s||(s=!0,e.callback(t,f,r))},u=e.xhr||null;u||(u=e.cors||e.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var h,l,p,b=u.url=e.uri||e.url,m=u.method=e.method||"GET",y=e.body||e.data,v=u.headers=e.headers||{},g=!!e.sync,w=!1,_={body:void 0,headers:{},statusCode:0,method:m,url:b,rawRequest:u};if("json"in e&&!1!==e.json&&(w=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==m&&"HEAD"!==m&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),u.onreadystatechange=t,u.onload=o,u.onerror=n,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=n,u.open(m,b,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(p=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",n(e)}},e.timeout)),u.setRequestHeader)for(h in v)v.hasOwnProperty(h)&&u.setRequestHeader(h,v[h]);else if(e.headers&&!r(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(y||null),u}function a(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}function s(){}var c=e("global/window"),u=e("is-function"),d=e("parse-headers"),h=e("xtend");t.exports=i,t.exports.default=i,i.XMLHttpRequest=c.XMLHttpRequest||s,i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:c.XDomainRequest,function(e,t){for(var f=0;f<e.length;f++)t(e[f])}(["get","put","post","patch","head","delete"],function(e){i["delete"===e?"del":e]=function(t,f,r){return f=n(t,f,r),f.method=e.toUpperCase(),o(f)}})},{"global/window":93,"is-function":110,"parse-headers":125,xtend:227}],226:[function(e,t,f){t.exports=XMLHttpRequest},{}],227:[function(e,t,f){function r(){for(var e={},t=0;t<arguments.length;t++){var f=arguments[t];for(var r in f)n.call(f,r)&&(e[r]=f[r])}return e}t.exports=r;var n=Object.prototype.hasOwnProperty},{}],228:[function(e,t,f){arguments[4][7][0].apply(f,arguments)},{"./asn1/api":229,"./asn1/base":231,"./asn1/constants":235,"./asn1/decoders":237,"./asn1/encoders":240,"bn.js":243,dup:7}],229:[function(e,t,f){arguments[4][8][0].apply(f,arguments)},{"../asn1":228,dup:8,inherits:326,vm:386}],230:[function(e,t,f){arguments[4][9][0].apply(f,arguments)},{"../base":231,buffer:274,dup:9,inherits:326}],231:[function(e,t,f){arguments[4][10][0].apply(f,arguments)},{"./buffer":230,"./node":232,"./reporter":233,dup:10}],232:[function(e,t,f){arguments[4][11][0].apply(f,arguments)},{"../base":231,dup:11,"minimalistic-assert":331}],233:[function(e,t,f){arguments[4][12][0].apply(f,arguments)},{dup:12,inherits:326}],234:[function(e,t,f){arguments[4][13][0].apply(f,arguments)},{"../constants":235,dup:13}],235:[function(e,t,f){arguments[4][14][0].apply(f,arguments)},{"./der":234,dup:14}],236:[function(e,t,f){arguments[4][15][0].apply(f,arguments)},{"../../asn1":228,dup:15,inherits:326}],237:[function(e,t,f){arguments[4][16][0].apply(f,arguments)},{"./der":236,"./pem":238,dup:16}],238:[function(e,t,f){arguments[4][17][0].apply(f,arguments)},{"./der":236,buffer:274,dup:17,inherits:326}],239:[function(e,t,f){arguments[4][18][0].apply(f,arguments)},{"../../asn1":228,buffer:274,dup:18,inherits:326}],240:[function(e,t,f){arguments[4][19][0].apply(f,arguments)},{"./der":239,"./pem":241,dup:19}],241:[function(e,t,f){arguments[4][20][0].apply(f,arguments)},{"./der":239,dup:20,inherits:326}],242:[function(e,t,f){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=e.indexOf("=");return-1===f&&(f=t),[f,f===t?0:4-f%4]}function n(e){var t=r(e),f=t[0],n=t[1];return 3*(f+n)/4-n}function i(e,t,f){return 3*(t+f)/4-f}function o(e){for(var t,f=r(e),n=f[0],o=f[1],a=new h(i(e,n,o)),s=0,c=o>0?n-4:n,u=0;u<c;u+=4)t=d[e.charCodeAt(u)]<<18|d[e.charCodeAt(u+1)]<<12|d[e.charCodeAt(u+2)]<<6|d[e.charCodeAt(u+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=d[e.charCodeAt(u)]<<2|d[e.charCodeAt(u+1)]>>4,a[s++]=255&t),1===o&&(t=d[e.charCodeAt(u)]<<10|d[e.charCodeAt(u+1)]<<4|d[e.charCodeAt(u+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,f){for(var r,n=[],i=t;i<f;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),n.push(a(r));return n.join("")}function c(e){for(var t,f=e.length,r=f%3,n=[],i=0,o=f-r;i<o;i+=16383)n.push(s(e,i,i+16383>o?o:i+16383));return 1===r?(t=e[f-1],n.push(u[t>>2]+u[t<<4&63]+"==")):2===r&&(t=(e[f-2]<<8)+e[f-1],n.push(u[t>>10]+u[t>>4&63]+u[t<<2&63]+"=")),n.join("")}f.byteLength=n,f.toByteArray=o,f.fromByteArray=c;for(var u=[],d=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,b=l.length;p<b;++p)u[p]=l[p],d[l.charCodeAt(p)]=p;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63},{}],243:[function(e,t,f){arguments[4][21][0].apply(f,arguments)},{buffer:245,dup:21}],244:[function(e,t,f){arguments[4][22][0].apply(f,arguments)},{crypto:245,dup:22}],245:[function(e,t,f){},{}],246:[function(e,t,f){arguments[4][23][0].apply(f,arguments)},{dup:23,"safe-buffer":371}],247:[function(e,t,f){arguments[4][24][0].apply(f,arguments)},{"./aes":246,"./ghash":251,"./incr32":252,"buffer-xor":273,"cipher-base":275,dup:24,inherits:326,"safe-buffer":371}],248:[function(e,t,f){arguments[4][25][0].apply(f,arguments)},{"./decrypter":249,"./encrypter":250,"./modes/list.json":260,dup:25}],249:[function(e,t,f){arguments[4][26][0].apply(f,arguments)},{"./aes":246,"./authCipher":247,"./modes":259,"./streamCipher":262,"cipher-base":275,dup:26,evp_bytestokey:310,inherits:326,"safe-buffer":371}],250:[function(e,t,f){arguments[4][27][0].apply(f,arguments)},{"./aes":246,"./authCipher":247,"./modes":259,"./streamCipher":262,"cipher-base":275,dup:27,evp_bytestokey:310,inherits:326,"safe-buffer":371}],251:[function(e,t,f){arguments[4][28][0].apply(f,arguments)},{dup:28,"safe-buffer":371}],252:[function(e,t,f){arguments[4][29][0].apply(f,arguments)},{dup:29}],253:[function(e,t,f){arguments[4][30][0].apply(f,arguments)},{"buffer-xor":273,dup:30}],254:[function(e,t,f){arguments[4][31][0].apply(f,arguments)},{"buffer-xor":273,dup:31,"safe-buffer":371}],255:[function(e,t,f){arguments[4][32][0].apply(f,arguments)},{dup:32,"safe-buffer":371}],256:[function(e,t,f){arguments[4][33][0].apply(f,arguments)},{dup:33,"safe-buffer":371}],257:[function(e,t,f){arguments[4][34][0].apply(f,arguments)},{"../incr32":252,"buffer-xor":273,dup:34,"safe-buffer":371}],258:[function(e,t,f){arguments[4][35][0].apply(f,arguments)},{dup:35}],259:[function(e,t,f){arguments[4][36][0].apply(f,arguments)},{"./cbc":253,"./cfb":254,"./cfb1":255,"./cfb8":256,"./ctr":257,"./ecb":258,"./list.json":260,"./ofb":261,dup:36}],260:[function(e,t,f){arguments[4][37][0].apply(f,arguments)},{dup:37}],261:[function(e,t,f){arguments[4][38][0].apply(f,arguments)},{buffer:274,"buffer-xor":273,dup:38}],262:[function(e,t,f){arguments[4][39][0].apply(f,arguments)},{"./aes":246,"cipher-base":275,dup:39,inherits:326,"safe-buffer":371}],263:[function(e,t,f){arguments[4][40][0].apply(f,arguments)},{"browserify-aes/browser":248,"browserify-aes/modes":259,"browserify-des":264,"browserify-des/modes":265,dup:40,evp_bytestokey:310}],264:[function(e,t,f){arguments[4][41][0].apply(f,arguments)},{"cipher-base":275,"des.js":283,dup:41,inherits:326,"safe-buffer":371}],265:[function(e,t,f){arguments[4][42][0].apply(f,arguments)},{dup:42}],266:[function(e,t,f){arguments[4][43][0].apply(f,arguments)},{"bn.js":243,buffer:274,dup:43,randombytes:355}],267:[function(e,t,f){arguments[4][44][0].apply(f,arguments)},{"./browser/algorithms.json":268,dup:44}],268:[function(e,t,f){arguments[4][45][0].apply(f,arguments)},{dup:45}],269:[function(e,t,f){arguments[4][46][0].apply(f,arguments)},{dup:46}],270:[function(e,t,f){arguments[4][47][0].apply(f,arguments)},{"./algorithms.json":268,"./sign":271,"./verify":272,buffer:274,"create-hash":278,dup:47,inherits:326,stream:380}],271:[function(e,t,f){arguments[4][48][0].apply(f,arguments)},{"./curves.json":269,"bn.js":243,"browserify-rsa":266,buffer:274,"create-hmac":280,dup:48,elliptic:293,"parse-asn1":337}],272:[function(e,t,f){arguments[4][49][0].apply(f,arguments)},{"./curves.json":269,"bn.js":243,buffer:274,dup:49,elliptic:293,"parse-asn1":337}],273:[function(e,t,f){arguments[4][50][0].apply(f,arguments)},{buffer:274,dup:50}],274:[function(e,t,f){"use strict";function r(e){if(e>G)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=n.prototype,t}function n(e,t,f){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return s(e)}return i(e,t,f)}function i(e,t,f){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return K(e)||e&&K(e.buffer)?d(e,t,f):"string"==typeof e?c(e,t):h(e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function a(e,t,f){return o(e),e<=0?r(e):void 0!==t?"string"==typeof f?r(e).fill(t,f):r(e).fill(t):r(e)}function s(e){return o(e),r(e<0?0:0|l(e))}function c(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var f=0|b(e,t),i=r(f),o=i.write(e,t);return o!==f&&(i=i.slice(0,o)),i}function u(e){for(var t=e.length<0?0:0|l(e.length),f=r(t),n=0;n<t;n+=1)f[n]=255&e[n];return f}function d(e,t,f){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(f||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===f?new Uint8Array(e):void 0===f?new Uint8Array(e,t):new Uint8Array(e,t,f),r.__proto__=n.prototype,r}function h(e){if(n.isBuffer(e)){var t=0|l(e.length),f=r(t);return 0===f.length?f:(e.copy(f,0,0,t),f)}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||$(e.length)?r(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}function l(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|e}function p(e){return+e!=e&&(e=0),n.alloc(+e)}function b(e,t){if(n.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var f=e.length;if(0===f)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return H(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,f){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===f||f>this.length)&&(f=this.length),f<=0)return"";if(f>>>=0,t>>>=0,f<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,f);case"utf8":case"utf-8":return T(this,t,f);case"ascii":return I(this,t,f);case"latin1":case"binary":return C(this,t,f);case"base64":return E(this,t,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,f);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,f){var r=e[t];e[t]=e[f],e[f]=r}function v(e,t,f,r,i){if(0===e.length)return-1;if("string"==typeof f?(r=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,$(f)&&(f=i?0:e.length-1),f<0&&(f=e.length+f),f>=e.length){if(i)return-1;f=e.length-1}else if(f<0){if(!i)return-1;f=0}if("string"==typeof t&&(t=n.from(t,r)),n.isBuffer(t))return 0===t.length?-1:g(e,t,f,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,f):Uint8Array.prototype.lastIndexOf.call(e,t,f):g(e,[t],f,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,f,r,n){function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,f/=2}var c;if(n){var u=-1;for(c=f;c<a;c++)if(i(e,c)===i(t,-1===u?0:c-u)){if(-1===u&&(u=c),c-u+1===s)return u*o}else-1!==u&&(c-=c-u),u=-1}else for(f+s>a&&(f=a-s),c=f;c>=0;c--){for(var d=!0,h=0;h<s;h++)if(i(e,c+h)!==i(t,h)){d=!1;break}if(d)return c}return-1}function w(e,t,f,r){f=Number(f)||0;var n=e.length-f;r?(r=Number(r))>n&&(r=n):r=n;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o<r;++o){var a=parseInt(t.substr(2*o,2),16);if($(a))return o;e[f+o]=a}return o}function _(e,t,f,r){return V(F(t,e.length-f),e,f,r)}function S(e,t,f,r){return V(U(t),e,f,r)}function M(e,t,f,r){return S(e,t,f,r)}function k(e,t,f,r){return V(H(t),e,f,r)}function x(e,t,f,r){return V(z(t,e.length-f),e,f,r)}function E(e,t,f){return 0===t&&f===e.length?W.fromByteArray(e):W.fromByteArray(e.slice(t,f))}function T(e,t,f){f=Math.min(e.length,f);for(var r=[],n=t;n<f;){var i=e[n],o=null,a=i>239?4:i>223?3:i>191?2:1;if(n+a<=f){var s,c,u,d;switch(a){case 1:i<128&&(o=i);break;case 2:s=e[n+1],128==(192&s)&&(d=(31&i)<<6|63&s)>127&&(o=d);break;case 3:s=e[n+1],c=e[n+2],128==(192&s)&&128==(192&c)&&(d=(15&i)<<12|(63&s)<<6|63&c)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:s=e[n+1],c=e[n+2],u=e[n+3],128==(192&s)&&128==(192&c)&&128==(192&u)&&(d=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&u)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),n+=a}return A(r)}function A(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var f="",r=0;r<t;)f+=String.fromCharCode.apply(String,e.slice(r,r+=Z));return f}function I(e,t,f){var r="";f=Math.min(e.length,f);for(var n=t;n<f;++n)r+=String.fromCharCode(127&e[n]);return r}function C(e,t,f){var r="";f=Math.min(e.length,f);for(var n=t;n<f;++n)r+=String.fromCharCode(e[n]);return r}function j(e,t,f){var r=e.length;(!t||t<0)&&(t=0),(!f||f<0||f>r)&&(f=r);for(var n="",i=t;i<f;++i)n+=q(e[i]);return n}function B(e,t,f){for(var r=e.slice(t,f),n="",i=0;i<r.length;i+=2)n+=String.fromCharCode(r[i]+256*r[i+1]);return n}function P(e,t,f){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>f)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,f,r,i,o){if(!n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(f+r>e.length)throw new RangeError("Index out of range")}function N(e,t,f,r,n,i){if(f+r>e.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function R(e,t,f,r,n){return t=+t,f>>>=0,n||N(e,t,f,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,f,r,23,4),f+4}function O(e,t,f,r,n){return t=+t,f>>>=0,n||N(e,t,f,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,f,r,52,8),f+8}function L(e){if(e=e.split("=")[0],e=e.trim().replace(J,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){t=t||1/0;for(var f,r=e.length,n=null,i=[],o=0;o<r;++o){if((f=e.charCodeAt(o))>55295&&f<57344){if(!n){if(f>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}n=f;continue}if(f<56320){(t-=3)>-1&&i.push(239,191,189),n=f;continue}f=65536+(n-55296<<10|f-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,f<128){if((t-=1)<0)break;i.push(f)}else if(f<2048){if((t-=2)<0)break;i.push(f>>6|192,63&f|128)}else if(f<65536){if((t-=3)<0)break;i.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return i}function U(e){for(var t=[],f=0;f<e.length;++f)t.push(255&e.charCodeAt(f));return t}function z(e,t){for(var f,r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)f=e.charCodeAt(o),r=f>>8,n=f%256,i.push(n),i.push(r);return i}function H(e){return W.toByteArray(L(e))}function V(e,t,f,r){for(var n=0;n<r&&!(n+f>=t.length||n>=e.length);++n)t[n+f]=e[n];return n}function K(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function $(e){return e!==e}var W=e("base64-js"),X=e("ieee754");f.Buffer=n,f.SlowBuffer=p,f.INSPECT_MAX_BYTES=50;var G=2147483647;f.kMaxLength=G,n.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),n.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(n.prototype,"parent",{get:function(){if(this instanceof n)return this.buffer}}),Object.defineProperty(n.prototype,"offset",{get:function(){if(this instanceof n)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192,n.from=function(e,t,f){return i(e,t,f)},n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,n.alloc=function(e,t,f){return a(e,t,f)},n.allocUnsafe=function(e){return s(e)},n.allocUnsafeSlow=function(e){return s(e)},n.isBuffer=function(e){return null!=e&&!0===e._isBuffer},n.compare=function(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var f=e.length,r=t.length,i=0,o=Math.min(f,r);i<o;++i)if(e[i]!==t[i]){f=e[i],r=t[i];break}return f<r?-1:r<f?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return n.alloc(0);var f;if(void 0===t)for(t=0,f=0;f<e.length;++f)t+=e[f].length;var r=n.allocUnsafe(t),i=0;for(f=0;f<e.length;++f){var o=e[f];if(ArrayBuffer.isView(o)&&(o=n.from(o)),!n.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},n.byteLength=b,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},n.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},n.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},n.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===n.compare(this,e)},n.prototype.inspect=function(){var e="",t=f.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},n.prototype.compare=function(e,t,f,r,i){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===f&&(f=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||f>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=f)return 0;if(r>=i)return-1;if(t>=f)return 1;if(t>>>=0,f>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=f-t,s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,f),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},n.prototype.includes=function(e,t,f){return-1!==this.indexOf(e,t,f)},n.prototype.indexOf=function(e,t,f){return v(this,e,t,f,!0)},n.prototype.lastIndexOf=function(e,t,f){return v(this,e,t,f,!1)},n.prototype.write=function(e,t,f,r){if(void 0===t)r="utf8",f=this.length,t=0;else if(void 0===f&&"string"==typeof t)r=t,f=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(f)?(f>>>=0,void 0===r&&(r="utf8")):(r=f,f=void 0)}var n=this.length-t;if((void 0===f||f>n)&&(f=n),e.length>0&&(f<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,f);case"utf8":case"utf-8":return _(this,e,t,f);case"ascii":return S(this,e,t,f);case"latin1":case"binary":return M(this,e,t,f);case"base64":return k(this,e,t,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,f);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;n.prototype.slice=function(e,t){var f=this.length;e=~~e,t=void 0===t?f:~~t,e<0?(e+=f)<0&&(e=0):e>f&&(e=f),t<0?(t+=f)<0&&(t=0):t>f&&(t=f),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=n.prototype,r},n.prototype.readUIntLE=function(e,t,f){e>>>=0,t>>>=0,f||P(e,t,this.length);for(var r=this[e],n=1,i=0;++i<t&&(n*=256);)r+=this[e+i]*n;return r},n.prototype.readUIntBE=function(e,t,f){e>>>=0,t>>>=0,f||P(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},n.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},n.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},n.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readIntLE=function(e,t,f){e>>>=0,t>>>=0,f||P(e,t,this.length);for(var r=this[e],n=1,i=0;++i<t&&(n*=256);)r+=this[e+i]*n;return n*=128,r>=n&&(r-=Math.pow(2,8*t)),r},n.prototype.readIntBE=function(e,t,f){e>>>=0,t>>>=0,f||P(e,t,this.length);for(var r=t,n=1,i=this[e+--r];r>0&&(n*=256);)i+=this[e+--r]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},n.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},n.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var f=this[e]|this[e+1]<<8;return 32768&f?4294901760|f:f},n.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var f=this[e+1]|this[e]<<8;return 32768&f?4294901760|f:f},n.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),X.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),X.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),X.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),X.read(this,e,!1,52,8)},n.prototype.writeUIntLE=function(e,t,f,r){if(e=+e,t>>>=0,f>>>=0,!r){D(this,e,t,f,Math.pow(2,8*f)-1,0)}var n=1,i=0;for(this[t]=255&e;++i<f&&(n*=256);)this[t+i]=e/n&255;return t+f},n.prototype.writeUIntBE=function(e,t,f,r){if(e=+e,t>>>=0,f>>>=0,!r){D(this,e,t,f,Math.pow(2,8*f)-1,0)}var n=f-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&255;return t+f},n.prototype.writeUInt8=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,1,255,0),this[t]=255&e,t+1},n.prototype.writeUInt16LE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},n.prototype.writeUInt16BE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},n.prototype.writeUInt32LE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},n.prototype.writeUInt32BE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},n.prototype.writeIntLE=function(e,t,f,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*f-1);D(this,e,t,f,n-1,-n)}var i=0,o=1,a=0;for(this[t]=255&e;++i<f&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+f},n.prototype.writeIntBE=function(e,t,f,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*f-1);D(this,e,t,f,n-1,-n)}var i=f-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+f},n.prototype.writeInt8=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},n.prototype.writeInt16LE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},n.prototype.writeInt16BE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},n.prototype.writeInt32LE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},n.prototype.writeInt32BE=function(e,t,f){return e=+e,t>>>=0,f||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},n.prototype.writeFloatLE=function(e,t,f){return R(this,e,t,!0,f)},n.prototype.writeFloatBE=function(e,t,f){return R(this,e,t,!1,f)},n.prototype.writeDoubleLE=function(e,t,f){return O(this,e,t,!0,f)},n.prototype.writeDoubleBE=function(e,t,f){return O(this,e,t,!1,f)},n.prototype.copy=function(e,t,f,r){if(!n.isBuffer(e))throw new TypeError("argument should be a Buffer");if(f||(f=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<f&&(r=f),r===f)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(f<0||f>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-f&&(r=e.length-t+f);var i=r-f;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,f,r);else if(this===e&&f<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+f];else Uint8Array.prototype.set.call(e,this.subarray(f,r),t);return i},n.prototype.fill=function(e,t,f,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,f=this.length):"string"==typeof f&&(r=f,f=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<f)throw new RangeError("Out of range index");if(f<=t)return this;t>>>=0,f=void 0===f?this.length:f>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<f;++o)this[o]=e;else{var a=n.isBuffer(e)?e:new n(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<f-t;++o)this[o+t]=a[o%s]}return this};var J=/[^+\/0-9A-Za-z-_]/g},{"base64-js":242,ieee754:325}],275:[function(e,t,f){arguments[4][51][0].apply(f,arguments)},{dup:51,inherits:326,"safe-buffer":371,stream:380,string_decoder:381}],276:[function(e,t,f){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function r(e){return"boolean"==typeof e}function n(e){return null===e}function i(e){return null==e}function o(e){return"number"==typeof e}function a(e){return"string"==typeof e}function s(e){return"symbol"==typeof e}function c(e){return void 0===e}function u(e){return"[object RegExp]"===m(e)}function d(e){return"object"==typeof e&&null!==e}function h(e){return"[object Date]"===m(e)}function l(e){return"[object Error]"===m(e)||e instanceof Error}function p(e){return"function"==typeof e}function b(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function m(e){return Object.prototype.toString.call(e)}f.isArray=t,f.isBoolean=r,f.isNull=n,f.isNullOrUndefined=i,f.isNumber=o,f.isString=a,f.isSymbol=s,f.isUndefined=c,f.isRegExp=u,f.isObject=d,f.isDate=h,f.isError=l,f.isFunction=p,f.isPrimitive=b,f.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":327}],277:[function(e,t,f){arguments[4][52][0].apply(f,arguments)},{"bn.js":243,buffer:274,dup:52,elliptic:293}],278:[function(e,t,f){arguments[4][53][0].apply(f,arguments)},{"cipher-base":275,dup:53,inherits:326,"md5.js":329,ripemd160:370,"sha.js":373}],279:[function(e,t,f){arguments[4][54][0].apply(f,arguments)},{dup:54,"md5.js":329}],280:[function(e,t,f){arguments[4][55][0].apply(f,arguments)},{"./legacy":281,"cipher-base":275,"create-hash/md5":279,dup:55,inherits:326,ripemd160:370,"safe-buffer":371,"sha.js":373}],281:[function(e,t,f){arguments[4][56][0].apply(f,arguments)},{"cipher-base":275,dup:56,inherits:326,"safe-buffer":371}],282:[function(e,t,f){
arguments[4][57][0].apply(f,arguments)},{"browserify-cipher":263,"browserify-sign":270,"browserify-sign/algos":267,"create-ecdh":277,"create-hash":278,"create-hmac":280,"diffie-hellman":289,dup:57,pbkdf2:338,"public-encrypt":345,randombytes:355,randomfill:356}],283:[function(e,t,f){arguments[4][59][0].apply(f,arguments)},{"./des/cbc":284,"./des/cipher":285,"./des/des":286,"./des/ede":287,"./des/utils":288,dup:59}],284:[function(e,t,f){arguments[4][60][0].apply(f,arguments)},{dup:60,inherits:326,"minimalistic-assert":331}],285:[function(e,t,f){arguments[4][61][0].apply(f,arguments)},{dup:61,"minimalistic-assert":331}],286:[function(e,t,f){arguments[4][62][0].apply(f,arguments)},{"../des":283,dup:62,inherits:326,"minimalistic-assert":331}],287:[function(e,t,f){arguments[4][63][0].apply(f,arguments)},{"../des":283,dup:63,inherits:326,"minimalistic-assert":331}],288:[function(e,t,f){arguments[4][64][0].apply(f,arguments)},{dup:64}],289:[function(e,t,f){arguments[4][65][0].apply(f,arguments)},{"./lib/dh":290,"./lib/generatePrime":291,"./lib/primes.json":292,buffer:274,dup:65}],290:[function(e,t,f){arguments[4][66][0].apply(f,arguments)},{"./generatePrime":291,"bn.js":243,buffer:274,dup:66,"miller-rabin":330,randombytes:355}],291:[function(e,t,f){arguments[4][67][0].apply(f,arguments)},{"bn.js":243,dup:67,"miller-rabin":330,randombytes:355}],292:[function(e,t,f){arguments[4][68][0].apply(f,arguments)},{dup:68}],293:[function(e,t,f){arguments[4][69][0].apply(f,arguments)},{"../package.json":308,"./elliptic/curve":296,"./elliptic/curves":299,"./elliptic/ec":300,"./elliptic/eddsa":303,"./elliptic/utils":307,brorand:244,dup:69}],294:[function(e,t,f){arguments[4][70][0].apply(f,arguments)},{"../../elliptic":293,"bn.js":243,dup:70}],295:[function(e,t,f){arguments[4][71][0].apply(f,arguments)},{"../../elliptic":293,"../curve":296,"bn.js":243,dup:71,inherits:326}],296:[function(e,t,f){arguments[4][72][0].apply(f,arguments)},{"./base":294,"./edwards":295,"./mont":297,"./short":298,dup:72}],297:[function(e,t,f){arguments[4][73][0].apply(f,arguments)},{"../../elliptic":293,"../curve":296,"bn.js":243,dup:73,inherits:326}],298:[function(e,t,f){arguments[4][74][0].apply(f,arguments)},{"../../elliptic":293,"../curve":296,"bn.js":243,dup:74,inherits:326}],299:[function(e,t,f){arguments[4][75][0].apply(f,arguments)},{"../elliptic":293,"./precomputed/secp256k1":306,dup:75,"hash.js":312}],300:[function(e,t,f){arguments[4][76][0].apply(f,arguments)},{"../../elliptic":293,"./key":301,"./signature":302,"bn.js":243,dup:76,"hmac-drbg":324}],301:[function(e,t,f){arguments[4][77][0].apply(f,arguments)},{"../../elliptic":293,"bn.js":243,dup:77}],302:[function(e,t,f){arguments[4][78][0].apply(f,arguments)},{"../../elliptic":293,"bn.js":243,dup:78}],303:[function(e,t,f){arguments[4][79][0].apply(f,arguments)},{"../../elliptic":293,"./key":304,"./signature":305,dup:79,"hash.js":312}],304:[function(e,t,f){arguments[4][80][0].apply(f,arguments)},{"../../elliptic":293,dup:80}],305:[function(e,t,f){arguments[4][81][0].apply(f,arguments)},{"../../elliptic":293,"bn.js":243,dup:81}],306:[function(e,t,f){arguments[4][82][0].apply(f,arguments)},{dup:82}],307:[function(e,t,f){arguments[4][83][0].apply(f,arguments)},{"bn.js":243,dup:83,"minimalistic-assert":331,"minimalistic-crypto-utils":332}],308:[function(e,t,f){t.exports={_from:"elliptic@^6.0.0",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/watchify/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/watchify/browserify-sign","/watchify/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"/usr/local/lib/node_modules/watchify/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"[email protected]"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://[email protected]/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],309:[function(e,t,f){function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=_(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}function n(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function i(e,t,f){if(t)e.call(f);else for(var r=e.length,n=m(e,r),i=0;i<r;++i)n[i].call(f)}function o(e,t,f,r){if(t)e.call(f,r);else for(var n=e.length,i=m(e,n),o=0;o<n;++o)i[o].call(f,r)}function a(e,t,f,r,n){if(t)e.call(f,r,n);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].call(f,r,n)}function s(e,t,f,r,n,i){if(t)e.call(f,r,n,i);else for(var o=e.length,a=m(e,o),s=0;s<o;++s)a[s].call(f,r,n,i)}function c(e,t,f,r){if(t)e.apply(f,r);else for(var n=e.length,i=m(e,n),o=0;o<n;++o)i[o].apply(f,r)}function u(e,t,f,r){var i,o,a;if("function"!=typeof f)throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",t,f.listener?f.listener:f),o=e._events),a=o[t]):(o=e._events=_(null),e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[f,a]:[a,f]:r?a.unshift(f):a.push(f),!a.warned&&(i=n(e))&&i>0&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[t]=f,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,f){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:f},n=M.call(d,r);return n.listener=f,r.wrapFn=n,n}function l(e,t,f){var r=e._events;if(!r)return[];var n=r[t];return n?"function"==typeof n?f?[n.listener||n]:[n]:f?y(n):m(n,n.length):[]}function p(e){var t=this._events;if(t){var f=t[e];if("function"==typeof f)return 1;if(f)return f.length}return 0}function b(e,t){for(var f=t,r=f+1,n=e.length;r<n;f+=1,r+=1)e[f]=e[r];e.pop()}function m(e,t){for(var f=new Array(t),r=0;r<t;++r)f[r]=e[r];return f}function y(e){for(var t=new Array(e.length),f=0;f<t.length;++f)t[f]=e[f].listener||e[f];return t}function v(e){var t=function(){};return t.prototype=e,new t}function g(e){var t=[];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&t.push(f);return f}function w(e){var t=this;return function(){return t.apply(e,arguments)}}var _=Object.create||v,S=Object.keys||g,M=Function.prototype.bind||w;t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0;var k,x=10;try{var E={};Object.defineProperty&&Object.defineProperty(E,"x",{value:0}),k=0===E.x}catch(e){k=!1}k?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');x=e}}):r.defaultMaxListeners=x,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return n(this)},r.prototype.emit=function(e){var t,f,r,n,u,d,h="error"===e;if(d=this._events)h=h&&null==d.error;else if(!h)return!1;if(h){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(f=d[e]))return!1;var p="function"==typeof f;switch(r=arguments.length){case 1:i(f,p,this);break;case 2:o(f,p,this,arguments[1]);break;case 3:a(f,p,this,arguments[1],arguments[2]);break;case 4:s(f,p,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),u=1;u<r;u++)n[u-1]=arguments[u];c(f,p,this,n)}return!0},r.prototype.addListener=function(e,t){return u(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return u(this,e,t,!0)},r.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},r.prototype.removeListener=function(e,t){var f,r,n,i,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(f=r[e]))return this;if(f===t||f.listener===t)0==--this._eventsCount?this._events=_(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,f.listener||t));else if("function"!=typeof f){for(n=-1,i=f.length-1;i>=0;i--)if(f[i]===t||f[i].listener===t){o=f[i].listener,n=i;break}if(n<0)return this;0===n?f.shift():b(f,n),1===f.length&&(r[e]=f[0]),r.removeListener&&this.emit("removeListener",e,o||t)}return this},r.prototype.removeAllListeners=function(e){var t,f,r;if(!(f=this._events))return this;if(!f.removeListener)return 0===arguments.length?(this._events=_(null),this._eventsCount=0):f[e]&&(0==--this._eventsCount?this._events=_(null):delete f[e]),this;if(0===arguments.length){var n,i=S(f);for(r=0;r<i.length;++r)"removeListener"!==(n=i[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=_(null),this._eventsCount=0,this}if("function"==typeof(t=f[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},r.prototype.listeners=function(e){return l(this,e,!0)},r.prototype.rawListeners=function(e){return l(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},r.prototype.listenerCount=p,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],310:[function(e,t,f){arguments[4][91][0].apply(f,arguments)},{dup:91,"md5.js":329,"safe-buffer":371}],311:[function(e,t,f){arguments[4][94][0].apply(f,arguments)},{dup:94,inherits:326,"safe-buffer":371,stream:380}],312:[function(e,t,f){arguments[4][95][0].apply(f,arguments)},{"./hash/common":313,"./hash/hmac":314,"./hash/ripemd":315,"./hash/sha":316,"./hash/utils":323,dup:95}],313:[function(e,t,f){arguments[4][96][0].apply(f,arguments)},{"./utils":323,dup:96,"minimalistic-assert":331}],314:[function(e,t,f){arguments[4][97][0].apply(f,arguments)},{"./utils":323,dup:97,"minimalistic-assert":331}],315:[function(e,t,f){arguments[4][98][0].apply(f,arguments)},{"./common":313,"./utils":323,dup:98}],316:[function(e,t,f){arguments[4][99][0].apply(f,arguments)},{"./sha/1":317,"./sha/224":318,"./sha/256":319,"./sha/384":320,"./sha/512":321,dup:99}],317:[function(e,t,f){arguments[4][100][0].apply(f,arguments)},{"../common":313,"../utils":323,"./common":322,dup:100}],318:[function(e,t,f){arguments[4][101][0].apply(f,arguments)},{"../utils":323,"./256":319,dup:101}],319:[function(e,t,f){arguments[4][102][0].apply(f,arguments)},{"../common":313,"../utils":323,"./common":322,dup:102,"minimalistic-assert":331}],320:[function(e,t,f){arguments[4][103][0].apply(f,arguments)},{"../utils":323,"./512":321,dup:103}],321:[function(e,t,f){arguments[4][104][0].apply(f,arguments)},{"../common":313,"../utils":323,dup:104,"minimalistic-assert":331}],322:[function(e,t,f){arguments[4][105][0].apply(f,arguments)},{"../utils":323,dup:105}],323:[function(e,t,f){arguments[4][106][0].apply(f,arguments)},{dup:106,inherits:326,"minimalistic-assert":331}],324:[function(e,t,f){arguments[4][107][0].apply(f,arguments)},{dup:107,"hash.js":312,"minimalistic-assert":331,"minimalistic-crypto-utils":332}],325:[function(e,t,f){f.read=function(e,t,f,r,n){var i,o,a=8*n-r-1,s=(1<<a)-1,c=s>>1,u=-7,d=f?n-1:0,h=f?-1:1,l=e[t+d];for(d+=h,i=l&(1<<-u)-1,l>>=-u,u+=a;u>0;i=256*i+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,r),i-=c}return(l?-1:1)*o*Math.pow(2,i-r)},f.write=function(e,t,f,r,n,i){var o,a,s,c=8*i-n-1,u=(1<<c)-1,d=u>>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:i-1,p=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),t+=o+d>=1?h/s:h*Math.pow(2,1-d),t*s>=2&&(o++,s/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*s-1)*Math.pow(2,n),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[f+l]=255&a,l+=p,a/=256,n-=8);for(o=o<<n|a,c+=n;c>0;e[f+l]=255&o,l+=p,o/=256,c-=8);e[f+l-p]|=128*b}},{}],326:[function(e,t,f){arguments[4][108][0].apply(f,arguments)},{dup:108}],327:[function(e,t,f){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function n(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||n(e)||!!e._isBuffer)}},{}],328:[function(e,t,f){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],329:[function(e,t,f){arguments[4][112][0].apply(f,arguments)},{buffer:274,dup:112,"hash-base":311,inherits:326}],330:[function(e,t,f){arguments[4][113][0].apply(f,arguments)},{"bn.js":243,brorand:244,dup:113}],331:[function(e,t,f){arguments[4][114][0].apply(f,arguments)},{dup:114}],332:[function(e,t,f){arguments[4][115][0].apply(f,arguments)},{dup:115}],333:[function(e,t,f){arguments[4][120][0].apply(f,arguments)},{dup:120}],334:[function(e,t,f){arguments[4][121][0].apply(f,arguments)},{"./certificate":335,"asn1.js":228,dup:121}],335:[function(e,t,f){arguments[4][122][0].apply(f,arguments)},{"asn1.js":228,dup:122}],336:[function(e,t,f){arguments[4][123][0].apply(f,arguments)},{"browserify-aes":248,buffer:274,dup:123,evp_bytestokey:310}],337:[function(e,t,f){arguments[4][124][0].apply(f,arguments)},{"./aesid.json":333,"./asn1":334,"./fixProc":336,"browserify-aes":248,buffer:274,dup:124,pbkdf2:338}],338:[function(e,t,f){arguments[4][126][0].apply(f,arguments)},{"./lib/async":339,"./lib/sync":342,dup:126}],339:[function(e,t,f){arguments[4][127][0].apply(f,arguments)},{"./default-encoding":340,"./precondition":341,"./sync":342,_process:344,dup:127,"safe-buffer":371}],340:[function(e,t,f){arguments[4][128][0].apply(f,arguments)},{_process:344,dup:128}],341:[function(e,t,f){(function(e){function f(t,f){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(f+" must be a buffer or string")}var r=Math.pow(2,30)-1;t.exports=function(e,t,n,i){if(f(e,"Password"),f(t,"Salt"),"number"!=typeof n)throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>r||i!==i)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":327}],342:[function(e,t,f){arguments[4][130][0].apply(f,arguments)},{"./default-encoding":340,"./precondition":341,"create-hash/md5":279,dup:130,ripemd160:370,"safe-buffer":371,"sha.js":373}],343:[function(e,t,f){(function(e){"use strict";function f(t,f,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,f)});case 3:return e.nextTick(function(){t.call(null,f,r)});case 4:return e.nextTick(function(){t.call(null,f,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return e.nextTick(function(){t.apply(null,i)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:f}:t.exports=e}).call(this,e("_process"))},{_process:344}],344:[function(e,t,f){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(d===setTimeout)return setTimeout(e,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function o(e){if(h===clearTimeout)return clearTimeout(e);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function a(){m&&p&&(m=!1,p.length?b=p.concat(b):y=-1,b.length&&s())}function s(){if(!m){var e=i(a);m=!0;for(var t=b.length;t;){for(p=b,b=[];++y<t;)p&&p[y].run();y=-1,t=b.length}p=null,m=!1,o(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var d,h,l=t.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:r}catch(e){d=r}try{h="function"==typeof clearTimeout?clearTimeout:n}catch(e){h=n}}();var p,b=[],m=!1,y=-1;l.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)t[f-1]=arguments[f];b.push(new c(e,t)),1!==b.length||m||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=u,l.addListener=u,l.once=u,l.off=u,l.removeListener=u,l.removeAllListeners=u,l.emit=u,l.prependListener=u,l.prependOnceListener=u,l.listeners=function(e){return[]},l.binding=function(e){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],345:[function(e,t,f){arguments[4][131][0].apply(f,arguments)},{"./privateDecrypt":347,"./publicEncrypt":348,dup:131}],346:[function(e,t,f){arguments[4][132][0].apply(f,arguments)},{buffer:274,"create-hash":278,dup:132}],347:[function(e,t,f){arguments[4][133][0].apply(f,arguments)},{"./mgf":346,"./withPublic":349,"./xor":350,"bn.js":243,"browserify-rsa":266,buffer:274,"create-hash":278,dup:133,"parse-asn1":337}],348:[function(e,t,f){arguments[4][134][0].apply(f,arguments)},{"./mgf":346,"./withPublic":349,"./xor":350,"bn.js":243,"browserify-rsa":266,buffer:274,"create-hash":278,dup:134,"parse-asn1":337,randombytes:355}],349:[function(e,t,f){arguments[4][135][0].apply(f,arguments)},{"bn.js":243,buffer:274,dup:135}],350:[function(e,t,f){arguments[4][136][0].apply(f,arguments)},{dup:136}],351:[function(e,t,f){(function(e){!function(r){function n(e){throw new RangeError(P[e])}function i(e,t){for(var f=e.length,r=[];f--;)r[f]=t(e[f]);return r}function o(e,t){var f=e.split("@"),r="";return f.length>1&&(r=f[0]+"@",e=f[1]),e=e.replace(B,"."),r+i(e.split("."),t).join(".")}function a(e){for(var t,f,r=[],n=0,i=e.length;n<i;)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<i?(f=e.charCodeAt(n++),56320==(64512&f)?r.push(((1023&t)<<10)+(1023&f)+65536):(r.push(t),n--)):r.push(t);return r}function s(e){return i(e,function(e){var t="";return e>65535&&(e-=65536,t+=R(e>>>10&1023|55296),e=56320|1023&e),t+=R(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:S}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,f){var r=0;for(e=f?N(e/E):e>>1,e+=N(e/t);e>D*k>>1;r+=S)e=N(e/D);return N(r+(D+1)*e/(e+x))}function h(e){var t,f,r,i,o,a,u,h,l,p,b=[],m=e.length,y=0,v=A,g=T;for(f=e.lastIndexOf(I),f<0&&(f=0),r=0;r<f;++r)e.charCodeAt(r)>=128&&n("not-basic"),b.push(e.charCodeAt(r));for(i=f>0?f+1:0;i<m;){for(o=y,a=1,u=S;i>=m&&n("invalid-input"),h=c(e.charCodeAt(i++)),(h>=S||h>N((_-y)/a))&&n("overflow"),y+=h*a,l=u<=g?M:u>=g+k?k:u-g,!(h<l);u+=S)p=S-l,a>N(_/p)&&n("overflow"),a*=p;t=b.length+1,g=d(y-o,t,0==o),N(y/t)>_-v&&n("overflow"),v+=N(y/t),y%=t,b.splice(y++,0,v)}return s(b)}function l(e){var t,f,r,i,o,s,c,h,l,p,b,m,y,v,g,w=[];for(e=a(e),m=e.length,t=A,f=0,o=T,s=0;s<m;++s)(b=e[s])<128&&w.push(R(b));for(r=i=w.length,i&&w.push(I);r<m;){for(c=_,s=0;s<m;++s)(b=e[s])>=t&&b<c&&(c=b);for(y=r+1,c-t>N((_-f)/y)&&n("overflow"),f+=(c-t)*y,t=c,s=0;s<m;++s)if(b=e[s],b<t&&++f>_&&n("overflow"),b==t){for(h=f,l=S;p=l<=o?M:l>=o+k?k:l-o,!(h<p);l+=S)g=h-p,v=S-p,w.push(R(u(p+g%v,0))),h=N(g/v);w.push(R(u(h,0))),o=d(f,y,r==i),f=0,++r}++f,++t}return w.join("")}function p(e){return o(e,function(e){return C.test(e)?h(e.slice(4).toLowerCase()):e})}function b(e){return o(e,function(e){return j.test(e)?"xn--"+l(e):e})}var m="object"==typeof f&&f&&!f.nodeType&&f,y="object"==typeof t&&t&&!t.nodeType&&t,v="object"==typeof e&&e;v.global!==v&&v.window!==v&&v.self!==v||(r=v);var g,w,_=2147483647,S=36,M=1,k=26,x=38,E=700,T=72,A=128,I="-",C=/^xn--/,j=/[^\x20-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=S-M,N=Math.floor,R=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:a,encode:s},decode:h,encode:l,toASCII:b,toUnicode:p},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return g});else if(m&&y)if(t.exports==m)y.exports=g;else for(w in g)g.hasOwnProperty(w)&&(m[w]=g[w]);else r.punycode=g}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],352:[function(e,t,f){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,f,i){t=t||"&",f=f||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var d,h,l,p,b=e[u].replace(a,"%20"),m=b.indexOf(f);m>=0?(d=b.substr(0,m),h=b.substr(m+1)):(d=b,h=""),l=decodeURIComponent(d),p=decodeURIComponent(h),r(o,l)?n(o[l])?o[l].push(p):o[l]=[o[l],p]:o[l]=p}return o};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],353:[function(e,t,f){"use strict";function r(e,t){if(e.map)return e.map(t);for(var f=[],r=0;r<e.length;r++)f.push(t(e[r],r));return f}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,f,a){return t=t||"&",f=f||"=",null===e&&(e=void 0),"object"==typeof e?r(o(e),function(o){var a=encodeURIComponent(n(o))+f;return i(e[o])?r(e[o],function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[o]))}).join(t):a?encodeURIComponent(n(a))+f+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&t.push(f);return t}},{}],354:[function(e,t,f){"use strict";f.decode=f.parse=e("./decode"),f.encode=f.stringify=e("./encode")},{"./decode":352,"./encode":353}],355:[function(e,t,f){arguments[4][138][0].apply(f,arguments)},{_process:344,dup:138,"safe-buffer":371}],356:[function(e,t,f){arguments[4][139][0].apply(f,arguments)},{_process:344,dup:139,randombytes:355,"safe-buffer":371}],357:[function(e,t,f){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":358}],358:[function(e,t,f){"use strict";function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),u.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||o.nextTick(i,this)}function i(e){e.end()}var o=e("process-nextick-args"),a=Object.keys||function(e){var t=[];for(var f in e)t.push(f);return t};t.exports=r;var s=e("core-util-is");s.inherits=e("inherits");var c=e("./_stream_readable"),u=e("./_stream_writable");s.inherits(r,c);for(var d=a(u.prototype),h=0;h<d.length;h++){var l=d[h];r.prototype[l]||(r.prototype[l]=u.prototype[l])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),o.nextTick(t,e)}},{"./_stream_readable":360,"./_stream_writable":362,"core-util-is":276,inherits:326,"process-nextick-args":343}],359:[function(e,t,f){"use strict";function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}t.exports=r;var n=e("./_stream_transform"),i=e("core-util-is");i.inherits=e("inherits"),i.inherits(r,n),r.prototype._transform=function(e,t,f){f(null,e)}},{"./_stream_transform":361,"core-util-is":276,inherits:326}],360:[function(e,t,f){(function(f,r){"use strict";function n(e){return O.from(e)}function i(e){return O.isBuffer(e)||e instanceof L}function o(e,t,f){if("function"==typeof e.prependListener)return e.prependListener(t,f);e._events&&e._events[t]?D(e._events[t])?e._events[t].unshift(f):e._events[t]=[f,e._events[t]]:e.on(t,f)}function a(t,f){P=P||e("./_stream_duplex"),t=t||{};var r=f instanceof P;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(z||(z=e("string_decoder/").StringDecoder),this.decoder=new z(t.encoding),this.encoding=t.encoding)}function s(t){if(P=P||e("./_stream_duplex"),!(this instanceof s))return new s(t);this._readableState=new a(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),R.call(this)}function c(e,t,f,r,i){var o=e._readableState;if(null===t)o.reading=!1,b(e,o);else{var a;i||(a=d(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===O.prototype||(t=n(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):u(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!f?(t=o.decoder.write(t),o.objectMode||0!==t.length?u(e,o,t,!1):v(e,o)):u(e,o,t,!1))):r||(o.reading=!1)}return h(o)}function u(e,t,f,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",f),e.read(0)):(t.length+=t.objectMode?1:f.length,r?t.buffer.unshift(f):t.buffer.push(f),t.needReadable&&m(e)),v(e,t)}function d(e,t){var f;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f}function h(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function l(e){return e>=$?e=$:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(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=l(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function b(e,t){if(!t.ended){if(t.decoder){var f=t.decoder.end();f&&f.length&&(t.buffer.push(f),t.length+=t.objectMode?1:f.length)}t.ended=!0,m(e)}}function m(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?B.nextTick(y,e):y(e))}function y(e){U("emit readable"),e.emit("readable"),k(e)}function v(e,t){t.readingMore||(t.readingMore=!0,B.nextTick(g,e,t))}function g(e,t){for(var f=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(U("maybeReadMore read 0"),e.read(0),f!==t.length);)f=t.length;t.readingMore=!1}function w(e){return function(){var t=e._readableState;U("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&N(e,"data")&&(t.flowing=!0,k(e))}}function _(e){U("readable nexttick read 0"),e.read(0)}function S(e,t){t.resumeScheduled||(t.resumeScheduled=!0,B.nextTick(M,e,t))}function M(e,t){t.reading||(U("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(U("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){if(0===t.length)return null;var f;return t.objectMode?f=t.buffer.shift():!e||e>=t.length?(f=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):f=E(e,t.buffer,t.decoder),f}function E(e,t,f){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():f?T(e,t):A(e,t),r}function T(e,t){var f=t.head,r=1,n=f.data;for(e-=n.length;f=f.next;){var i=f.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,f.next?t.head=f.next:t.head=t.tail=null):(t.head=f,f.data=i.slice(o));break}++r}return t.length-=r,n}function A(e,t){var f=O.allocUnsafe(e),r=t.head,n=1;for(r.data.copy(f),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(f,f.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++n}return t.length-=n,f}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,B.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var f=0,r=e.length;f<r;f++)if(e[f]===t)return f;return-1}var B=e("process-nextick-args");t.exports=s;var P,D=e("isarray");s.ReadableState=a;var N=(e("events").EventEmitter,function(e,t){return e.listeners(t).length}),R=e("./internal/streams/stream"),O=e("safe-buffer").Buffer,L=r.Uint8Array||function(){},q=e("core-util-is");q.inherits=e("inherits");var F=e("util"),U=void 0;U=F&&F.debuglog?F.debuglog("stream"):function(){};var z,H=e("./internal/streams/BufferList"),V=e("./internal/streams/destroy");q.inherits(s,R);var K=["error","close","destroy","pause","resume"];Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){
this._readableState&&(this._readableState.destroyed=e)}}),s.prototype.destroy=V.destroy,s.prototype._undestroy=V.undestroy,s.prototype._destroy=function(e,t){this.push(null),t(e)},s.prototype.push=function(e,t){var f,r=this._readableState;return r.objectMode?f=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=O.from(e,t),t=""),f=!0),c(this,e,t,!1,f)},s.prototype.unshift=function(e){return c(this,e,null,!0,!1)},s.prototype.isPaused=function(){return!1===this._readableState.flowing},s.prototype.setEncoding=function(t){return z||(z=e("string_decoder/").StringDecoder),this._readableState.decoder=new z(t),this._readableState.encoding=t,this};var $=8388608;s.prototype.read=function(e){U("read",e),e=parseInt(e,10);var t=this._readableState,f=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return U("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):m(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&I(this),null;var r=t.needReadable;U("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,U("length less than watermark",r)),t.ended||t.reading?(r=!1,U("reading or ended",r)):r&&(U("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=p(f,t)));var n;return n=e>0?x(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),f!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},s.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(e,t){function r(e,t){U("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,i())}function n(){U("onend"),e.end()}function i(){U("cleanup"),e.removeListener("close",c),e.removeListener("finish",u),e.removeListener("drain",m),e.removeListener("error",s),e.removeListener("unpipe",r),h.removeListener("end",n),h.removeListener("end",d),h.removeListener("data",a),y=!0,!l.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function a(t){U("ondata"),v=!1,!1!==e.write(t)||v||((1===l.pipesCount&&l.pipes===e||l.pipesCount>1&&-1!==j(l.pipes,e))&&!y&&(U("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function s(t){U("onerror",t),d(),e.removeListener("error",s),0===N(e,"error")&&e.emit("error",t)}function c(){e.removeListener("finish",u),d()}function u(){U("onfinish"),e.removeListener("close",c),d()}function d(){U("unpipe"),h.unpipe(e)}var h=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];break;default:l.pipes.push(e)}l.pipesCount+=1,U("pipe count=%d opts=%j",l.pipesCount,t);var p=(!t||!1!==t.end)&&e!==f.stdout&&e!==f.stderr,b=p?n:d;l.endEmitted?B.nextTick(b):h.once("end",b),e.on("unpipe",r);var m=w(h);e.on("drain",m);var y=!1,v=!1;return h.on("data",a),o(e,"error",s),e.once("close",c),e.once("finish",u),e.emit("pipe",h),l.flowing||(U("pipe resume"),h.resume()),e},s.prototype.unpipe=function(e){var t=this._readableState,f={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,f),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this,f);return this}var o=j(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,f),this)},s.prototype.on=function(e,t){var f=R.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&m(this):B.nextTick(_,this))}return f},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var e=this._readableState;return e.flowing||(U("resume"),e.flowing=!0,S(this,e)),this},s.prototype.pause=function(){return U("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(U("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(e){var t=this,f=this._readableState,r=!1;e.on("end",function(){if(U("wrapped end"),f.decoder&&!f.ended){var e=f.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){if(U("wrapped data"),f.decoder&&(n=f.decoder.write(n)),(!f.objectMode||null!==n&&void 0!==n)&&(f.objectMode||n&&n.length)){t.push(n)||(r=!0,e.pause())}});for(var n in e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var i=0;i<K.length;i++)e.on(K[i],this.emit.bind(this,K[i]));return this._read=function(t){U("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=x}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":358,"./internal/streams/BufferList":363,"./internal/streams/destroy":364,"./internal/streams/stream":365,_process:344,"core-util-is":276,events:309,inherits:326,isarray:328,"process-nextick-args":343,"safe-buffer":371,"string_decoder/":381,util:245}],361:[function(e,t,f){"use strict";function r(e,t){var f=this._transformState;f.transforming=!1;var r=f.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);a.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,f){o(e,t,f)}):o(this,null,null)}function o(e,t,f){if(t)return e.emit("error",t);if(null!=f&&e.push(f),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=n;var a=e("./_stream_duplex"),s=e("core-util-is");s.inherits=e("inherits"),s.inherits(n,a),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},n.prototype._transform=function(e,t,f){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,f){var r=this._transformState;if(r.writecb=f,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var f=this;a.prototype._destroy.call(this,e,function(e){t(e),f.emit("close")})}},{"./_stream_duplex":358,"core-util-is":276,inherits:326}],362:[function(e,t,f){(function(f,r,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){T(t,e)}}function o(e){return D.from(e)}function a(e){return D.isBuffer(e)||e instanceof N}function s(){}function c(t,f){I=I||e("./_stream_duplex"),t=t||{};var r=f instanceof I;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,o=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(o||0===o)?o:a,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 s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){v(f,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 i(this)}function u(t){if(I=I||e("./_stream_duplex"),!(O.call(u,this)||this instanceof I))return new u(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),P.call(this)}function d(e,t){var f=new Error("write after end");e.emit("error",f),A.nextTick(t,f)}function h(e,t,f,r){var n=!0,i=!1;return null===f?i=new TypeError("May not write null values to stream"):"string"==typeof f||void 0===f||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),A.nextTick(r,i),n=!1),n}function l(e,t,f){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=D.from(t,f)),t}function p(e,t,f,r,n,i){if(!f){var o=l(t,r,n);r!==o&&(f=!0,n="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var s=t.length<t.highWaterMark;if(s||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:n,isBuf:f,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,a,r,n,i);return s}function b(e,t,f,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,f?e._writev(n,t.onwrite):e._write(n,i,t.onwrite),t.sync=!1}function m(e,t,f,r,n){--t.pendingcb,f?(A.nextTick(n,r),A.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(n(r),e._writableState.errorEmitted=!0,e.emit("error",r),x(e,t))}function y(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function v(e,t){var f=e._writableState,r=f.sync,n=f.writecb;if(y(f),t)m(e,f,r,t,n);else{var i=S(f);i||f.corked||f.bufferProcessing||!f.bufferedRequest||_(e,f),r?C(g,e,f,i,n):g(e,f,i,n)}}function g(e,t,f,r){f||w(e,t),t.pendingcb--,r(),x(e,t)}function w(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function _(e,t){t.bufferProcessing=!0;var f=t.bufferedRequest;if(e._writev&&f&&f.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=f;for(var a=0,s=!0;f;)n[a]=f,f.isBuf||(s=!1),f=f.next,a+=1;n.allBuffers=s,b(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;f;){var c=f.chunk,u=f.encoding,d=f.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),f=f.next,t.bufferedRequestCount--,t.writing)break}null===f&&(t.lastBufferedRequest=null)}t.bufferedRequest=f,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final(function(f){t.pendingcb--,f&&e.emit("error",f),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function k(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,A.nextTick(M,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function x(e,t){var f=S(t);return f&&(k(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),f}function E(e,t,f){t.ending=!0,x(e,t),f&&(t.finished?A.nextTick(f):e.once("finish",f)),t.ended=!0,e.writable=!1}function T(e,t,f){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(f),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var A=e("process-nextick-args");t.exports=u;var I,C=!f.browser&&["v0.10","v0.9."].indexOf(f.version.slice(0,5))>-1?n:A.nextTick;u.WritableState=c;var j=e("core-util-is");j.inherits=e("inherits");var B={deprecate:e("util-deprecate")},P=e("./internal/streams/stream"),D=e("safe-buffer").Buffer,N=r.Uint8Array||function(){},R=e("./internal/streams/destroy");j.inherits(u,P),c.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(c.prototype,"buffer",{get:B.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var O;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!O.call(this,e)||this===u&&(e&&e._writableState instanceof c)}})):O=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,f){var r=this._writableState,n=!1,i=!r.objectMode&&a(e);return i&&!D.isBuffer(e)&&(e=o(e)),"function"==typeof t&&(f=t,t=null),i?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof f&&(f=s),r.ended?d(this,f):(i||h(this,r,e,f))&&(r.pendingcb++,n=p(this,r,i,e,t,f)),n},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},u.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(e,t,f){f(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,f){var r=this._writableState;"function"==typeof e?(f=e,e=null,t=null):"function"==typeof t&&(f=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||E(this,r,f)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=R.destroy,u.prototype._undestroy=R.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":358,"./internal/streams/destroy":364,"./internal/streams/stream":365,_process:344,"core-util-is":276,inherits:326,"process-nextick-args":343,"safe-buffer":371,timers:382,"util-deprecate":385}],363:[function(e,t,f){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t,f){e.copy(t,f)}var i=e("safe-buffer").Buffer,o=e("util");t.exports=function(){function e(){r(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;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,f=""+t.data;t=t.next;)f+=e+t.data;return f},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),f=this.head,r=0;f;)n(f.data,t,r),r+=f.data.length,f=f.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":371,util:245}],364:[function(e,t,f){"use strict";function r(e,t){var f=this,r=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return r||n?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(i,f,e),f._writableState&&(f._writableState.errorEmitted=!0)):t&&t(e)}),this)}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(e,t){e.emit("error",t)}var o=e("process-nextick-args");t.exports={destroy:r,undestroy:n}},{"process-nextick-args":343}],365:[function(e,t,f){t.exports=e("events").EventEmitter},{events:309}],366:[function(e,t,f){t.exports=e("./readable").PassThrough},{"./readable":367}],367:[function(e,t,f){f=t.exports=e("./lib/_stream_readable.js"),f.Stream=f,f.Readable=f,f.Writable=e("./lib/_stream_writable.js"),f.Duplex=e("./lib/_stream_duplex.js"),f.Transform=e("./lib/_stream_transform.js"),f.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":358,"./lib/_stream_passthrough.js":359,"./lib/_stream_readable.js":360,"./lib/_stream_transform.js":361,"./lib/_stream_writable.js":362}],368:[function(e,t,f){t.exports=e("./readable").Transform},{"./readable":367}],369:[function(e,t,f){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":362}],370:[function(e,t,f){arguments[4][143][0].apply(f,arguments)},{buffer:274,dup:143,"hash-base":311,inherits:326}],371:[function(e,t,f){arguments[4][144][0].apply(f,arguments)},{buffer:274,dup:144}],372:[function(e,t,f){arguments[4][147][0].apply(f,arguments)},{dup:147,"safe-buffer":371}],373:[function(e,t,f){arguments[4][148][0].apply(f,arguments)},{"./sha":374,"./sha1":375,"./sha224":376,"./sha256":377,"./sha384":378,"./sha512":379,dup:148}],374:[function(e,t,f){arguments[4][149][0].apply(f,arguments)},{"./hash":372,dup:149,inherits:326,"safe-buffer":371}],375:[function(e,t,f){arguments[4][150][0].apply(f,arguments)},{"./hash":372,dup:150,inherits:326,"safe-buffer":371}],376:[function(e,t,f){arguments[4][151][0].apply(f,arguments)},{"./hash":372,"./sha256":377,dup:151,inherits:326,"safe-buffer":371}],377:[function(e,t,f){arguments[4][152][0].apply(f,arguments)},{"./hash":372,dup:152,inherits:326,"safe-buffer":371}],378:[function(e,t,f){arguments[4][153][0].apply(f,arguments)},{"./hash":372,"./sha512":379,dup:153,inherits:326,"safe-buffer":371}],379:[function(e,t,f){arguments[4][154][0].apply(f,arguments)},{"./hash":372,dup:154,inherits:326,"safe-buffer":371}],380:[function(e,t,f){function r(){n.call(this)}t.exports=r;var n=e("events").EventEmitter;e("inherits")(r,n),r.Readable=e("readable-stream/readable.js"),r.Writable=e("readable-stream/writable.js"),r.Duplex=e("readable-stream/duplex.js"),r.Transform=e("readable-stream/transform.js"),r.PassThrough=e("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(e,t){function f(t){e.writable&&!1===e.write(t)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function i(){u||(u=!0,e.end())}function o(){u||(u=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(s(),0===n.listenerCount(this,"error"))throw e}function s(){c.removeListener("data",f),e.removeListener("drain",r),c.removeListener("end",i),c.removeListener("close",o),c.removeListener("error",a),e.removeListener("error",a),c.removeListener("end",s),c.removeListener("close",s),e.removeListener("close",s)}var c=this;c.on("data",f),e.on("drain",r),e._isStdio||t&&!1===t.end||(c.on("end",i),c.on("close",o));var u=!1;return c.on("error",a),e.on("error",a),c.on("end",s),c.on("close",s),e.on("close",s),e.emit("pipe",c),e}},{events:309,inherits:326,"readable-stream/duplex.js":357,"readable-stream/passthrough.js":366,"readable-stream/readable.js":367,"readable-stream/transform.js":368,"readable-stream/writable.js":369}],381:[function(e,t,f){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function n(e){var t=r(e);if("string"!=typeof t&&(v.isEncoding===g||!g(e)))throw new Error("Unknown encoding: "+e);return t||e}function i(e){this.encoding=n(e);var t;switch(this.encoding){case"utf16le":this.text=h,this.end=l,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=p,this.end=b,t=3;break;default:return this.write=m,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=v.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e,t,f){var r=t.length-1;if(r<f)return 0;var n=o(t[r]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--r<f||-2===n?0:(n=o(t[r]))>=0?(n>0&&(e.lastNeed=n-2),n):--r<f||-2===n?0:(n=o(t[r]),n>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0)}function s(e,t,f){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function c(e){var t=this.lastTotal-this.lastNeed,f=s(this,e,t);return void 0!==f?f:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){var f=a(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=f;var r=e.length-(f-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var f=e.toString("utf16le",t);if(f){var r=f.charCodeAt(f.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,f)}return t}function p(e,t){var f=(e.length-t)%3;return 0===f?e.toString("base64",t):(this.lastNeed=3-f,this.lastTotal=3,1===f?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-f))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}var v=e("safe-buffer").Buffer,g=v.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};f.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,f;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f<e.length?t?t+this.text(e,f):this.text(e,f):t||""},i.prototype.end=d,i.prototype.text=u,i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":371}],382:[function(e,t,f){(function(t,r){function n(e,t){this._id=e,this._clearFn=t}var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;f.setTimeout=function(){return new n(o.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new n(o.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(e){e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},f.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},f._unrefActive=f.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},f.setImmediate="function"==typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i(function(){s[t]&&(r?e.apply(null,r):e.call(null),f.clearImmediate(t))}),t},f.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":344,timers:382}],383:[function(e,t,f){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function n(e,t,f){if(e&&c.isObject(e)&&e instanceof r)return e;var n=new r;return n.parse(e,t,f),n}function i(e){return c.isString(e)&&(e=n(e)),e instanceof r?e.format():r.prototype.format.call(e)}function o(e,t){return n(e,!1,!0).resolve(t)}function a(e,t){return e?n(e,!1,!0).resolveObject(t):t}var s=e("punycode"),c=e("./util");f.parse=n,f.resolve=o,f.resolveObject=a,f.format=i,f.Url=r;var u=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(l),b=["'"].concat(p),m=["%","/","?",";","#"].concat(b),y=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},M=e("querystring");r.prototype.parse=function(e,t,f){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),n=-1!==r&&r<e.indexOf("#")?"?":"#",i=e.split(n),o=/\\/g;i[0]=i[0].replace(o,"/"),e=i.join(n);var a=e;if(a=a.trim(),!f&&1===e.split("#").length){var d=h.exec(a);if(d)return this.path=a,this.href=a,this.pathname=d[1],d[2]?(this.search=d[2],this.query=t?M.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=u.exec(a);if(l){l=l[0];var p=l.toLowerCase();this.protocol=p,a=a.substr(l.length)}if(f||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===a.substr(0,2);!k||l&&_[l]||(a=a.substr(2),this.slashes=!0)}if(!_[l]&&(k||l&&!S[l])){for(var x=-1,E=0;E<y.length;E++){var T=a.indexOf(y[E]);-1!==T&&(-1===x||T<x)&&(x=T)}var A,I;I=-1===x?a.lastIndexOf("@"):a.lastIndexOf("@",x),-1!==I&&(A=a.slice(0,I),a=a.slice(I+1),this.auth=decodeURIComponent(A)),x=-1;for(var E=0;E<m.length;E++){var T=a.indexOf(m[E]);-1!==T&&(-1===x||T<x)&&(x=T)}-1===x&&(x=a.length),this.host=a.slice(0,x),a=a.slice(x),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var j=this.hostname.split(/\./),E=0,B=j.length;E<B;E++){var P=j[E];if(P&&!P.match(v)){for(var D="",N=0,R=P.length;N<R;N++)P.charCodeAt(N)>127?D+="x":D+=P[N];if(!D.match(v)){var O=j.slice(0,E),L=j.slice(E+1),q=P.match(g);q&&(O.push(q[1]),L.unshift(q[2])),L.length&&(a="/"+L.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=s.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!w[p])for(var E=0,B=b.length;E<B;E++){var z=b[E];if(-1!==a.indexOf(z)){var H=encodeURIComponent(z);H===z&&(H=escape(z)),a=a.split(z).join(H)}}var V=a.indexOf("#");-1!==V&&(this.hash=a.substr(V),a=a.slice(0,V));var K=a.indexOf("?");if(-1!==K?(this.search=a.substr(K),this.query=a.substr(K+1),t&&(this.query=M.parse(this.query)),a=a.slice(0,K)):t&&(this.search="",this.query={}),a&&(this.pathname=a),S[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var F=this.pathname||"",$=this.search||"";this.path=F+$}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",f=this.pathname||"",r=this.hash||"",n=!1,i="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(i=M.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&!1!==n?(n="//"+(n||""),f&&"/"!==f.charAt(0)&&(f="/"+f)):n||(n=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),f=f.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+n+f+o+r},r.prototype.resolve=function(e){return this.resolveObject(n(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(c.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var f=new r,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];f[o]=this[o]}if(f.hash=e.hash,""===e.href)return f.href=f.format(),f;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(f[u]=e[u])}return S[f.protocol]&&f.hostname&&!f.pathname&&(f.path=f.pathname="/"),f.href=f.format(),f}if(e.protocol&&e.protocol!==f.protocol){if(!S[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var l=d[h];f[l]=e[l]}return f.href=f.format(),f}if(f.protocol=e.protocol,e.host||_[e.protocol])f.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),f.pathname=p.join("/")}if(f.search=e.search,f.query=e.query,f.host=e.host||"",f.auth=e.auth,f.hostname=e.hostname||e.host,f.port=e.port,f.pathname||f.search){var b=f.pathname||"",m=f.search||"";f.path=b+m}return f.slashes=f.slashes||e.slashes,f.href=f.format(),f}var y=f.pathname&&"/"===f.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=v||y||f.host&&e.pathname,w=g,M=f.pathname&&f.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],k=f.protocol&&!S[f.protocol];if(k&&(f.hostname="",f.port=null,f.host&&(""===M[0]?M[0]=f.host:M.unshift(f.host)),f.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),g=g&&(""===p[0]||""===M[0])),v)f.host=e.host||""===e.host?e.host:f.host,f.hostname=e.hostname||""===e.hostname?e.hostname:f.hostname,f.search=e.search,f.query=e.query,M=p;else if(p.length)M||(M=[]),M.pop(),M=M.concat(p),f.search=e.search,f.query=e.query;else if(!c.isNullOrUndefined(e.search)){if(k){f.hostname=f.host=M.shift();var x=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@");x&&(f.auth=x.shift(),f.host=f.hostname=x.shift())}return f.search=e.search,f.query=e.query,c.isNull(f.pathname)&&c.isNull(f.search)||(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.href=f.format(),f}if(!M.length)return f.pathname=null,f.search?f.path="/"+f.search:f.path=null,f.href=f.format(),f
;for(var E=M.slice(-1)[0],T=(f.host||e.host||M.length>1)&&("."===E||".."===E)||""===E,A=0,I=M.length;I>=0;I--)E=M[I],"."===E?M.splice(I,1):".."===E?(M.splice(I,1),A++):A&&(M.splice(I,1),A--);if(!g&&!w)for(;A--;A)M.unshift("..");!g||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),T&&"/"!==M.join("/").substr(-1)&&M.push("");var C=""===M[0]||M[0]&&"/"===M[0].charAt(0);if(k){f.hostname=f.host=C?"":M.length?M.shift():"";var x=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@");x&&(f.auth=x.shift(),f.host=f.hostname=x.shift())}return g=g||f.host&&M.length,g&&!C&&M.unshift(""),M.length?f.pathname=M.join("/"):(f.pathname=null,f.path=null),c.isNull(f.pathname)&&c.isNull(f.search)||(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.auth=e.auth||f.auth,f.slashes=f.slashes||e.slashes,f.href=f.format(),f},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":384,punycode:351,querystring:354}],384:[function(e,t,f){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],385:[function(e,t,f){(function(e){function f(e,t){function f(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var n=!1;return f}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var f=e.localStorage[t];return null!=f&&"true"===String(f).toLowerCase()}t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],386:[function(require,module,exports){function Context(){}var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var f=0;f<e.length;f++)if(e[f]===t)return f;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var f in e)t.push(f);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var f=0;f<e.length;f++)t(e[f],f,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,f){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:f})}}catch(e){return function(e,t,f){e[t]=f}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var f=t.contentWindow,r=f.eval,n=f.execScript;!r&&n&&(n.call(f,"null"),r=f.eval),forEach(Object_keys(e),function(t){f[t]=e[t]}),forEach(globals,function(t){e[t]&&(f[t]=e[t])});var i=Object_keys(f),o=r.call(f,this.code);return forEach(Object_keys(f),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=f[t])}),forEach(globals,function(t){t in e||defineProp(e,t,f[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),f=this.runInContext(t);return e&&forEach(Object_keys(t),function(f){e[f]=t[f]}),f},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var f=Script(t);return f[e].apply(f,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(f){t[f]=e[f]}),t}},{}]},{},[3]);</script> </body> </html>