-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.html
999 lines (874 loc) · 817 KB
/
config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
<!DOCTYPE html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset='UTF-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Oak Config App</title>
<style>
#cover{
position:fixed;
top:0;
left:0;
background:#ffffff;
z-index:5;
width:100%;
height:100%;
}
#loader {
position: fixed;
z-index: 999;
height: 100px;
width: 256px;
overflow: show;
margin: auto;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
#app {
width: 320px;
text-align: left;
}
tbody tr:hover{
background-color: #1f8dd6;
color: white;
}
.selected{
background-color: #1f8dd6;
color: white;
}
img.lock {
content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAASRJREFUOI2tk71KQ0EQhb8TgkgMiEVKDaIxgp3iD9im1NewtBMLOwvFR/AhguADWAZRwQewFASJoqiIjY5FRgjLJntvvAeW/Zmz3+4ys1CwlIjXgB1J6wBmdgmcAs+jHLYp6UmSBa0LbOSF1Rz2I+kYaAJNSSe+9ghM5QEe+G2OwoBDDdjLTJN07psakfCiH9aO7S0NYFa8f4nEXr2fyAMcWeVg3gJWgDqApF0z++w3SKr6cBbYB66Bixh8yTMYlkmqfQMLf5D+J0+TLvSYSsBMDDhI92a2bGarwEMWekpt4Ba4Ac6KAG4Dk/R+xlbKHGY5pjlgzL31IoAfQJdewr6A8f8Cq5LuHDgUFgLfh/jmE5y3GLADHAJrZK9HM7MOcJXRn1+/5tZKd7oLtVkAAAAASUVORK5CYII=');
height: 20px;
width: 20px;
}
img.loader_image {
content: url('data:image/gif;base64,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');
height: 29px;
width: 256px;
}
</style>
<script>
/*!
* jQuery JavaScript Library v1.5.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
* Date: Thu Mar 31 15:28:23 2011 -0400
*/
(function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bR(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bQ(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bs.test(a)?e(a,f):bQ(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bQ(a+"["+f+"]",b[f],c,e)}function bP(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bJ,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bP(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bP(a,c,d,e,"*",g));return l}function bO(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bD),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bq(a,b,c){var e=b==="width"?bk:bl,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function bc(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function bb(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function ba(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function _(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function $(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Q(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});if(L.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(r,"")===a.type?q.push(g.selector):t.splice(i--,1);f=d(a.target).closest(q,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){f=p[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[c]=d.extend(l,h,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.$=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:D?function(a){return a==null?"":D.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?B.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){F["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),E&&(d.inArray=function(a,b){return E.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?y=function(){c.removeEventListener("DOMContentLoaded",y,!1),d.ready()}:c.attachEvent&&(y=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",y),d.ready())});return d}(),e="then done fail isResolved isRejected promise".split(" "),f=[].slice;d.extend({_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=d.type(i),j==="array"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(d,f)}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),f;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(f)return f;f=a={}}var c=e.length;while(c--)a[e[c]]=b[e[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;c<e;c++)b[c]&&d.isFunction(b[c].promise)?b[c].promise().then(i(c),h.reject):--g;g||h.resolveWith(h,b)}else h!==a&&h.resolveWith(h,e?[a]:[]);return h.promise()}}),function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i<j;i++)g=f[i].name,g.indexOf("data-")===0&&(g=g.substr(5),h(this[0],g,e[g]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d.data(this[0],a),e=h(this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var j=/[\n\t\r]/g,k=/\s+/,l=/\r/g,m=/^(?:href|src|style)$/,n=/^(?:button|input)$/i,o=/^(?:button|input|object|select|textarea)$/i,p=/^a(?:rea)?$/i,q=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(k);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g=" "+f.className+" ",h=f.className;for(var i=0,j=b.length;i<j;i++)g.indexOf(" "+b[i]+" ")<0&&(h+=" "+b[i]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(k);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var h=(" "+g.className+" ").replace(j," ");for(var i=0,l=c.length;i<l;i++)h=h.replace(" "+c[i]+" "," ");g.className=d.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),i=b,j=a.split(k);while(f=j[g++])i=e?i:!h.hasClass(f),h[i?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(j," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j<k;j++){var m=h[j];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(q.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(l,"")}return b}var n=d.isFunction(a);return this.each(function(b){var c=d(this),e=a;if(this.nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&q.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,H(a.origType,a.selector),d.extend({},a,{handler:G,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,H(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},d.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?y:x):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=y;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y,this.stopPropagation()},isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x};var z=function(a){var b=a.relatedTarget;try{if(b&&b!==c&&!b.parentNode)return;while(b&&b!==this)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},A=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?A:z,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?A:z)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&E("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&E("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var B,C=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.length;e<f;e++)d.event.remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var F={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.context);if(typeof a==="object"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=r.exec(h),k="",j&&(k=j[0],h=h.replace(r,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(F[h]+k),h=h+k):h=(F[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)d.event.add(n[p],"live."+H(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+H(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.text=k.getText,d.isXMLDoc=k.isXML,d.contains=k.contains}();var I=/Until$/,J=/^(?:parents|prevUntil|prevAll)/,K=/,/,L=/^.[^:#\[\.,]*$/,M=Array.prototype.slice,N=d.expr.match.POS,O={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(Q(this,a,!1),"not",a)},filter:function(a){return this.pushStack(Q(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var R=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/<tbody/i,W=/<|&#?\w+;/,X=/<(?:script|object|embed|option|style)/i,Y=/checked\s*(?:[^=]|=\s*.checked.)/i,Z={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove(),b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&Y.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?$(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,bc)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!X.test(a[0])&&(d.support.checkClone||!Y.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1></$2>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bC=/^(?:select|textarea)/i,bD=/\s+/,bE=/([?&])_=[^&]*/,bF=/(^|\-)([a-z])/g,bG=function(a,b,c){return b+c.toUpperCase()},bH=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bI=d.fn.load,bJ={},bK={},bL,bM;try{bL=c.location.href}catch(bN){bL=c.createElement("a"),bL.href="",bL=bL.href}bM=bH.exec(bL.toLowerCase())||[],d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bI)return bI.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bB,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bC.test(this.nodeName)||bw.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(bt,"\r\n")}}):{name:b.name,value:c.replace(bt,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bL,isLocal:bx.test(bM[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bO(bJ),ajaxTransport:bO(bK),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bR(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bS(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bF,bG)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bv.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bu,"").replace(bz,bM[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bD),e.crossDomain==null&&(q=bH.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bM[1]||q[2]!=bM[2]||(q[3]||(q[1]==="http:"?80:443))!=(bM[3]||(bM[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bP(bJ,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!by.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(bA.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bE,"$1_="+w);e.url=x+(x===e.url?(bA.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bP(bK,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bQ(g,a[g],c,f);return e.join("&").replace(br,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bT=d.now(),bU=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bT++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bU.test(b.url)||f&&bU.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bU,l),b.url===j&&(f&&(k=k.replace(bU,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bV=d.now(),bW,bX;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bZ()||b$()}:bZ,bX=d.ajaxSettings.xhr(),d.support.ajax=!!bX,d.support.cors=bX&&"withCredentials"in bX,bX=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bW[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bW||(bW={},bY()),h=bV++,g.onreadystatechange=bW[h]=c):c()},abort:function(){c&&c(0,1)}}}});var b_={},ca=/^(?:toggle|show|hide)$/,cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cc,cd=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(ce("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=this[g],f=e.style.display,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cf(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ce("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(ce("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);if(d.isEmptyObject(a))return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cf(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(ca.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=cb.exec(e),j=f.cur();if(i){var k=parseFloat(i[2]),l=i[3]||(d.cssNumber[c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:ce("show",1),slideUp:ce("hide",1),slideToggle:ce("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!cc&&(cc=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(cc),cc=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var cg=/^t(?:able|d|h)$/i,ch=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=ci(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!cg.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=(e==="absolute"||e==="fixed")&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=ch.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!ch.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=ci(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=ci(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
</script>
<script>
// Wait for window load
$(window).load(function() {
// Animate loader off screen
$(".load").fadeOut(1000,function(){$("#wrapper").fadeIn(500);});
});
</script>
</head>
<body>
<div id="cover" class="load"> </div>
<div id="loader" class="load"><img class="loader_image" alt="Loader" /></div>
<script>
$(function() {
//this next line with get replaced with "var updateServerMode = 3;" on the local server
var slowFail = 0;
var updateServerMode = 1;
var server_host = "oakota.digistump.com";
var server_fingerprint = "98 66 d5 5c 3d 4a 49 24 e3 1b 72 8b 8f 2e 65 2e 32 2a 7b 95";
var oak_count = 0;
var check_update_status = 0;
var access_token = "";
var claim_code = "";
var claimed_devices = "";
var new_device;
var sap = new SoftAPSetup({ protocol: 'http' });
if(updateServerMode == 3){
server_host = window.location.hostname;
$.ajax('/thumb.txt', {
'success':function (txt) {server_fingerprint = txt},
'type':'GET',
'contentType':'text/plain'
});
}
var login_callback = function(err, body) {
$('#login_button').attr('disabled',false);
$('#login_register').attr('disabled',false);
if(body === null){
$('#login_password').val("");
$('#login_error').show();
}
else{
$('#login_error').hide();
$('#register_error').hide();
$('#login_email').val("");
$('#login_password').val("");
$('#connect_failed').hide();
$('#save_failed').hide();
access_token = body.access_token;
$.post( "https://api.particle.io/v1/device_claims", {"access_token":access_token}, function( data ) {
claim_code = data.claim_code;
claimed_devices = data.device_ids;
$('#particle').fadeOut(150,function(){$('#connect').fadeIn(150);});
});
}
};
var connect_start = 0;
var softap_device;
var ssid;
var sec = 0;
var passcode = "";
function comm_error(save){
if(!save)
$('#connect_failed').show();
else
$('#save_failed').show();
//console.log('comm error');
$('#saving').fadeOut(150,function(){$('#connect').fadeIn(150);});
}
function comm_error_retry(){
$('#save_failed').show();
//console.log('comm error');
$('#connecting_retry').fadeOut(150,function(){$('#connect').fadeIn(150);});
}
var wifi_connect_callback_retry = function(err, dat){
if(err) {
//console.log('1');
comm_error_retry();
return;
}
if(dat.r !== 0){
//console.log('2');
comm_error_retry();
return;
}
$('#connecting_retry').fadeOut(150,function(){
if(cloud_connect_time == 90000){
$('#wait_long').show();
if(updateServerMode>1){
$('#oak_counter').text(180);
oak_count = 180;
}
else{
$('#oak_counter').text(60);
oak_count = 60;
}
$('#wait_short').hide();
}else{
$('#wait_long').hide();
$('#wait_short').show();
}
$('#saved').fadeIn(150,function(){if(cloud_connect_time == 90000){counter_tick();}});
});
};
function counter_tick(){
if(oak_count>0){
oak_count--;
if(oak_count == 0){
check_update_status = 1;
$('#saved').fadeOut(150,function(){$('#connect').fadeIn(150);});
}
else{
$('#oak_counter').text(oak_count);
setTimeout(function(){counter_tick();},1000);
}
}
}
var wifi_connect_callback = function(err, dat){
if(err) {
//console.log('1');
comm_error(1);
return;
}
if(dat.r !== 0){
//console.log('2');
comm_error(1);
return;
}
$('#saving').fadeOut(150,function(){
if(cloud_connect_time == 90000){
$('#wait_long').show();
if(updateServerMode>1){
$('#oak_counter').text(180);
oak_count = 180;
}
else{
$('#oak_counter').text(60);
oak_count = 60;
}
$('#wait_short').hide();
}else{
$('#wait_long').hide();
$('#wait_short').show();
}
$('#saved').fadeIn(150,function(){if(cloud_connect_time == 90000){counter_tick();}});
});
};
function config_callback_retry(err, dat) {
if(err) {
//console.log('3');
comm_error(1);
return;
}
if(dat.r !== 0){
//console.log('4');
comm_error(1);
return;
}
sap.connect(wifi_connect_callback_retry);
}
function config_callback(err, dat) {
if(err) {
//console.log('3');
comm_error(1);
return;
}
if(dat.r !== 0){
//console.log('4');
comm_error(1);
return;
}
sap.connect(wifi_connect_callback);
}
var cloud_connect_time = 30000;
function claim_callback(err, dat) {
if(err) {//console.log('5');
comm_error(1);
return;
}
if(dat.r !== 0){
//console.log(dat);
comm_error(1);
return;
}
sap.publicKey(pubkey_callback);
}
var claim_during_cloud = false;
function setClaimCode(){
$.ajax('http://192.168.0.1/set',{
'data': JSON.stringify({"cc":claim_code.replace(/\+/g,'%2B')+'~'}), //{action:'x',params:['a','b','c']}
'type': 'POST',
'processData': false,
'contentType': 'text/plain'
}).done(function (data) { claim_callback(false, {"r":0}); }).fail(function (jqXHR, textStatus, errorThrown) { claim_callback(true, {"r":-1}); });
//claim_during_cloud = true;
//claim_callback(false, {"r":0});
}
function setID(id){
if(id.trim().length != 24){
$('#id_error').show();
return;
}
$('#id_error').hide();
$('#set_id').fadeOut(150,function(){$('#save_id').fadeIn(150,function(){});});
$.ajax('http://192.168.0.1/set',{
'data': JSON.stringify({
"device-id":id.trim(),
}),
'type': 'POST',
'processData': false,
'contentType': 'text/plain'
}).done(function (data) {
$('#save_id').fadeOut(150,function(){$('#id_ok').fadeIn(150,function(){});});
}).fail(function (jqXHR, textStatus, errorThrown) {
comm_error(1);
});
}
function pubkey_callback(err, dat) {
if(err) {
//console.log('7');
comm_error(1);
return;
}
if(updateServerMode == 2){
server_host = "oakotafallback.digistump.com";
}
$.ajax('http://192.168.0.1/set',{
'data': JSON.stringify({
"first-update-domain":server_host,
"first-update-fingerprint":server_fingerprint
}),
'type': 'POST',
'processData': false,
'contentType': 'text/plain'
}).done(function (data) {
if(sec)
sap.configure({ssid: ssid,security: sec,password: passcode}, config_callback);
else
sap.configure({ssid: ssid,security: sec}, config_callback);
}).fail(function (jqXHR, textStatus, errorThrown) {
comm_error(1);
});
}
function pubkey_callback_retry(err, dat) {
if(err) {
//console.log('7');
comm_error(1);
return;
}
if(sec)
sap.configure({ssid: ssid,security: sec,password: passcode}, config_callback_retry);
else
sap.configure({ssid: ssid,security: sec}, config_callback_retry);
}
$('#wifi_next').click(function(){
if($('#network_passcode').val()==="")
return;
$('#wifi').fadeOut(150,function(){$('#saving').fadeIn(150,function(){
passcode = $('#network_passcode').val();
if(claim_code === "")
claim_callback(false, {"r":0});
else
setClaimCode(claim_code);
});});
});
$('#wifi_manual_next').click(function(){
if($('#network_ssid_manual').val()==="")
return;
$('#wifi').fadeOut(150,function(){$('#saving').fadeIn(150,function(){
if($('#network_passcode_manual').val()!==""){
passcode = $('#network_passcode_manual').val();
sec = 1;
}
ssid = $('#network_ssid_manual').val();
if(claim_code === "")
claim_callback(false, {"r":0});
else
setClaimCode(claim_code);
});});
});
function scan_callback(err, dat) {
$('#manual').show();
$('#password').hide();
if(err) {
comm_error(0);
return;
}
$('.select_network').unbind();
$("#network > tbody").html("");
if(dat.scans.length < 1){
$('#network').hide();
$('#no_networks').show();
}
else{
$('#network').show();
$('#no_networks').hide();
$.each(dat.scans,function(key,nets){
//console.log(nets);
if(nets.sec>0)
$("#network > tbody").append('<tr class="select_network" data-security="1" data-ssid="'+nets.ssid+'"><td style="height:24px;" >'+nets.ssid+'<img class="lock" alt="Encrypted Network" align="right"></td></tr>');
else
$("#network > tbody").append('<tr class="select_network" data-security="0" data-ssid="'+nets.ssid+'"><td style="height:24px;" >'+nets.ssid+'</td></tr>');
});
$('.select_network').click(function(){
$('#manual').hide();
$(this).addClass('selected');
if($(this).data('security') > 0){
$('#password').fadeIn(150);
$('#network_passcode').focus();
ssid = $(this).data('ssid');
sec = 1;
}
else{
//console.log($(this).data('ssid'));
ssid = $(this).data('ssid');
$('#wifi').fadeOut(150,function(){$('#saving').fadeIn(150);});
sec = 0;
passcode = "";
if(claim_code === "")
claim_callback(false, {"r":0});
else
setClaimCode(claim_code);
}
});
}
if(softap_device.claimed){
$('#connecting').fadeOut(150,function(){$('#wifi_claimed').show();$('#wifi').fadeIn(150);});
}
else{
$('#connecting').fadeOut(150,function(){$('#wifi_claimed').hide();$('#wifi').fadeIn(150);});
}
}
function connect_callback_retry(err, dat) {
if (err) {
if(Date.now() - connect_start < 30000){
setTimeout(function(){try_to_connect_retry();},3000);
return;
}
else{
$('#connect_failed').show();
$('#connecting_retry').fadeOut(150,function(){$('#connect').fadeIn(150);});
return;
}
}
else{
//found Oak
sap.publicKey(pubkey_callback_retry);
}
};
function connect_callback(err, dat) {
if (err) {
if(Date.now() - connect_start < 30000){
setTimeout(function(){try_to_connect();},3000);
return;
}
else{
$('#connect_failed').show();
$('#connecting').fadeOut(150,function(){$('#connect').fadeIn(150);});
return;
}
}
else{
//found Oak
if(check_update_status){
check_update_status = 0;
$.get( "http://192.168.0.1/system-version", function(){
$('#connecting').fadeOut(150,function(){$('#update_ok').fadeIn(150);});
} ).fail(function(){
$('#connecting').fadeOut(150,function(){
if (updateServerMode==1){
$('#failed_message_1').show();
$('#failed_message_2').hide();
$('#failed_message_3').hide();
$('#failed_message_4').hide();
$('#failed_message_5').hide();
updateServerMode = 2;
slowFail = 0;
}
else if(updateServerMode == 2 && slowFail < 2){
$('#failed_message_1').hide();
$('#failed_message_2').show();
$('#failed_message_3').hide();
$('#failed_message_4').hide();
$('#failed_message_5').hide();
slowFail++;
}
else if(updateServerMode == 2 && slowFail >= 2){
$('#failed_message_1').hide();
$('#failed_message_2').hide();
$('#failed_message_3').show();
$('#failed_message_4').hide();
$('#failed_message_5').hide();
slowFail = 0;
}
else if(updateServerMode == 3 && slowFail < 2){
$('#failed_message_1').hide();
$('#failed_message_2').hide();
$('#failed_message_3').hide();
$('#failed_message_4').show();
$('#failed_message_5').hide();
slowFail++;
}
else if(updateServerMode == 3 && slowFail >= 2){
$('#failed_message_1').hide();
$('#failed_message_2').hide();
$('#failed_message_3').hide();
$('#failed_message_4').hide();
$('#failed_message_5').show();
slowFail = 0;
}
$('#update_failed').fadeIn(150);
});
});
}
else{
if(dat.id === undefined){
//no id
$('#connecting').fadeOut(150,function(){$('#set_id').fadeIn(150);});
return;
}
if(dat.id === ""){
//no id
$('#connecting').fadeOut(150,function(){$('#set_id').fadeIn(150);});
return;
}
//console.log("Device ID: %s, claimed: %s", dat.id, dat.claimed ? "yes" : "no");
softap_device = dat;
if($.inArray(softap_device.id,claimed_devices)>=0 || softap_device.claimed){
claim_code = "";
//console.log("CLEAR CLAIM");
}
//console.log(softap_device);
$.get( "http://192.168.0.1/system-version" ).done(function(vdata){$('#systemv').text(vdata);sap.scan(scan_callback);}).fail(function(){cloud_connect_time = 90000;$('#systemv').text("0 - No Updates");sap.scan(scan_callback);});
}
}
};
var try_to_connect = function() {
sap.deviceInfo(connect_callback);
};
var try_to_connect_retry = function() {
sap.deviceInfo(connect_callback_retry);
};
$('#cloud_name_button').click(function(){
if($('#cloud_name').val()===""){
return;
}
new_device.rename($('#cloud_name').val(), function(err, data) {
if (err) {
$('#cloud_name_failed').show();
} else {
$('#cloud_name_failed').hide();
$('#cloud_new_name_name').text($('#cloud_name').val());
$('#cloud_name').val("");
$('#cloud_rename').fadeOut(150,function(){$('#cloud_new_name').fadeIn(150);});
}
});
});
$('#apply_id').click(function(){
setID($('#set_device_id').val());
});
$('#end_back').click(function(){
$('#check_cloud').fadeOut(150,function(){claim_code = "";$('#particle').fadeIn(150,function(){});});
});
$('.back_to_wifi').click(function(){
if(updateServerMode == 2){
updateServerMode = 1;
}
slowFail = 0;
$('#'+$(this).data('out')).fadeOut(150,function(){ claim_code = "";$('#connect').fadeIn(150,function(){});});
});
$('#connect_back').click(function(){
$('#connect').fadeOut(150,function(){$('#particle').fadeIn(150,function(){});});
});
$('#id_connect').click(function(){
$('#id_ok').fadeOut(150,function(){$('#connect').fadeIn(150,function(){});});
});
$('#connect_next').click(function(){
$('#connect').fadeOut(150,function(){$('#connecting').fadeIn(150,function(){connect_start = Date.now(); try_to_connect();});});
});
$('#update_retry').click(function(){
$('#update_failed').fadeOut(150,function(){$('#connecting_retry').fadeIn(150,function(){connect_start = Date.now(); try_to_connect_retry();});});
});
$('.wifi_back').click(function(){
$('#connect_failed').hide();
$('#save_failed').hide();
$('#wifi').fadeOut(150,function(){$('#connect').fadeIn(150);});
});
$('#login_button').click(function(){
$('#login_button').attr('disabled','disabled');
$('#login_register').attr('disabled','disabled');
spark.login({username: $('#login_email').val(), password: $('#login_password').val()},
login_callback);
});
var register_callback = function(err, data) {
if (!err) {
$('#login_button').click();
}
else{
//TODO SHOW ERROR HERE
$('#register_error').show();
$('#login_button').attr('disabled',false);
$('#login_register').attr('disabled',false);
}
};
$('#login_register').click(function(){
$('#login_button').attr('disabled','disabled');
$('#login_register').attr('disabled','disabled');
spark.createUser($('#login_email').val(), $('#login_password').val(),
register_callback);
});
$('.check_cloud').click(function(){
$('#cloud_loader').show();
$('#cloud_wait').show();
$('#cloud_fail').hide();
$('#cloud_rename').hide();
$('#net_fail').hide();
$('#cloud_ok').hide();
$('#cloud_retry').hide();
$('#cloud_back').hide();
$('#cloud_name_failed').hide();
$('#cloud_new_name').hide();
$('#end_back').hide();
$('#'+$(this).data('out')).fadeOut(150,function(){ $('#check_cloud').fadeIn(150,function(){$('#cloud_retry').click();});});
});
var cloud_timeout = 0;
var try_to_cloud = function(){
if(claim_during_cloud) {
spark.claimCore(softap_device.id, function(err, body) {
if(body !== null){
if(body.ok){
$('#cloud_ok').show();
$('#cloud_name_failed').hide();
$('#cloud_new_name').hide();
//if(device.name == ""){
// $('#cloud_rename').show();
//}
$('#cloud_wait').hide();
$('#cloud_retry').hide();
$('#cloud_back').hide();
$('#end_back').show();
$('#cloud_loader').hide();
//new_device = device;
spark.getDevice(softap_device.id, function(err, device) {
if(device !== null){
console.log(device);
if(device.name === null){
//TODO why is rename broken on sparkjs? $('#cloud_rename').show();
}
new_device = device;
return;
}
});
return;
}
}
else if(err == "Error: Permission Denied"){
if(Date.now() - cloud_timeout > cloud_connect_time){
$('#cloud_fail').show();
$('#cloud_wait').hide();
$('#cloud_retry').show();
$('#cloud_back').show();
$('#end_back').show();
$('#cloud_loader').hide();
return;
}
}
else{
if(Date.now() - cloud_timeout > 30000){
$('#net_fail').show();
$('#cloud_wait').hide();
$('#cloud_loader').hide();
$('#cloud_retry').show();
$('#cloud_back').hide();
$('#end_back').show();
return;
}
}
setTimeout(function(){try_to_cloud();},3000);
});
}
else{
spark.getDevice(softap_device.id, function(err, device) {
if(device !== null){
$('#cloud_ok').show();
$('#cloud_name_failed').hide();
$('#cloud_new_name').hide();
console.log(device);
if(device.name === null){
//TODO why is rename broken on sparkjs? $('#cloud_rename').show();
}
$('#cloud_wait').hide();
$('#cloud_retry').hide();
$('#cloud_back').hide();
$('#end_back').show();
$('#cloud_loader').hide();
new_device = device;
return;
}
else if(err == "Error: Permission Denied"){
if(Date.now() - cloud_timeout > cloud_connect_time){
$('#cloud_fail').show();
$('#cloud_wait').hide();
$('#cloud_loader').hide();
$('#cloud_retry').show();
$('#cloud_back').show();
$('#end_back').show();
return;
}
}
else{
if(Date.now() - cloud_timeout > 30000){
$('#net_fail').show();
$('#cloud_wait').hide();
$('#cloud_loader').hide();
$('#cloud_retry').show();
$('#cloud_back').hide();
$('#end_back').show();
return;
}
}
setTimeout(function(){try_to_cloud();},3000);
});
}
};
$('#cloud_retry').click(function(){
$('#cloud_wait').show();
$('#cloud_loader').show();
$('#cloud_rename').hide();
$('#cloud_fail').hide();
$('#net_fail').hide();
$('#cloud_ok').hide();
$('#cloud_retry').hide();
$('#cloud_back').hide();
$('#end_back').hide();
cloud_timeout = Date.now();
try_to_cloud();
});
});
</script>
<div id="wrapper" style="text-align: center" style="display:none;">
<div id="app" style="display: inline-block;">
<h2 style="padding-top:10px;text-align:center;">Oak WiFi Config</h2>
<div id="particle" class="pure-form">
You must have a Particle.io account to setup an Oak. Please login or register below.<br>
<br><br>
<div id="register_error" style="color:red;font-weight:bold;display:none;">Cannot register account. Check for invalid characters or bad email address.</div>
<div id="login_error" style="color:red;font-weight:bold;display:none;">Invalid email or password.</div>
<input class="pure-input-1" id="login_email" type="email" placeholder="Particle Login Email"><br>
<input class="pure-input-1" id="login_password" type="password" placeholder="Particle Password">
<div style="padding-top:10px;text-align:center;">
<!--<button class="pure-button pure-button-primary" id="login_back">Back</button> -->
<button class="pure-button pure-button-primary" id="login_register">Register</button>
<button class="pure-button pure-button-primary" id="login_button">Login</button>
</div>
</div>
<div id="connect" style="display:none;">
<div id="save_failed" style="color:red;font-weight:bold;display:none;">Unable to save settings to your Oak, please ensure you are connected to the Oak's network and retry.<br><br></div>
<div id="connect_failed" style="color:red;font-weight:bold;display:none;">Unable to connect to your Oak, please ensure you are connected to the Oak's network and retry.<br><br></div>
<b>Please connect to the ACORN-XXXXXX WiFi network.</b><br><br>Where XXXXXX is unique to your device.<br><br>If you do not see this network ensure your Oak is powered on and see the troubleshooting page here: <a href="http://digistump.com/wiki/oak">http://digistump.com/wiki/oak</a><br><br><b>Once connected click next.</b>
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary" id="connect_back">Back</button>
<button class="pure-button pure-button-primary" id="connect_next">Next</button>
</div>
</div>
<div id="connecting_retry" style="display:none;text-align:center;">
<b>Attempting to connect to your Oak and retry the update...</b><br><br><br><img class="loader_image">
</div>
<div id="connecting" style="display:none;text-align:center;">
<b>Attempting to connect to your Oak...</b><br><br><br><img class="loader_image">
</div>
<div id="set_id" style="display:none;">
Your Oak/Acorn devices does not have a Device ID set. Please enter the ID below and click Apply. <br>
<br>
If you have not been provided with an ID please email [email protected] to report this issue with your device.<br><br>
<div id="id_error" style="display:none; color:red;">Invalid ID length.</div>
<div id="manual" class="pure-form">
<input class="pure-input-1" type="text" id="set_device_id" placeholder="Device ID">
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary" id="apply_id">Apply</button>
</div>
</div>
</div>
<div id="save_id" style="display:none;text-align:center;">
<b>Setting your device's ID...</b><br><br><br><img class="loader_image">
</div>
<div id="id_ok" style="display:none;">
<b>The Device ID has been set. Please disconnect the device from its power supply and then reconnect it. The LEDs will then stay solidly lit for up to several minutes, once one LED begins blinking click next.</b>
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary" id="id_connect">Next</button>
</div>
</div>
<div id="wifi" style="display:none;">
<div id="wifi_claimed" style="color:red;font-weight:bold;display:none;">This Oak may already be claimed by another Particle account, this wizard will only allow you to change the WiFi connection settings.<br><br></div>
<div id="no_networks" style="color:red;font-weight:bold;display:none;">No WiFi networks found. Please click "Back," move your Oak closer to your network, and then power cycle the Oak so that it will rescan.</div>
<table id="network" class="pure-table pure-table-horizontal" style="width:320px;">
<thead>
<tr>
<th>Select a network:</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div id="password" class="pure-form">
<input class="pure-input-1" type="password" id="network_passcode" placeholder="Network Passcode">
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary wifi_back">Back</button>
<button class="pure-button pure-button-primary" id="wifi_next">Next</button>
</div>
</div>
<div id="manual" class="pure-form">
<br><br><b>Or manually enter a network:</b><br>
<input class="pure-input-1" type="text" id="network_ssid_manual" placeholder="Network SSID">
<input class="pure-input-1" type="password" id="network_passcode_manual" placeholder="Network Passcode">
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary wifi_back">Back</button>
<button class="pure-button pure-button-primary" id="wifi_manual_next">Next</button>
</div>
</div><br><br>
<b>Notes:</b> Only the first 10 networks will be listed above, if your network does not appear try manually entering it. You must power cycle your Oak to make it rescan for networks.<br><br>System Version: <span id="systemv"></span>
</div>
<div id="saving" style="display:none;text-align:center;">
<b>Saving settings to your device...</b><br><br><br><img class="loader_image">
</div>
<div id="saved" style="display:none;text-align:center;">
<b>Your Oak will now reboot and attempt to connect using the settings you've just entered.</b><br><br>
<div id="wait_long">Once connected your Oak will download a firmware update, this may take several minutes. You should see the LED on the Oak blink rapidly while it downloads the update, please do not unplug it during this time.<br><br><div style="text-align:center;">Allowing time for the Oak to update, the next step will be shown in <span id="oak_counter">--</span> seconds.<br><br><img class="loader_image"></div></div>
<div id="wait_short">
Please connect back to the WiFi network that provides your internet connection and click the "Next" button to check if the Oak has connected to the Particle Cloud.
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary check_cloud" data-out="saved">Next</button>
</div>
</div>
</div>
<!--if needs an update then jump to #connect and then to these next two-->
<div id="update_failed" style="display:none;">
<b><span id="failed_message_1">Your Oak failed to download the update. Please power cycle your Oak, reconnect to its AP, and then click "Retry" to try getting the update at a slower speed (which can improve reliability) with your current settings or "Change Settings" to try again at full speed with a different WiFi network.</span><span id="failed_message_2">Your Oak still failed to download the update. Please power cycle your Oak, reconnect to its AP, and then click "Retry" to try getting the update again with your current settings or "Change Settings" to try a different WiFi network. If it fails 3 times with your current settings you will be presented with additional troubleshooting options.</span><span id="failed_message_3">Your Oak still failed to download the update. Please click "Change Settings" to try a different WiFi network or reconnect to your WiFi network and then, for additional troubleshooting information, follow this link: <a href="http://digistump.com/wiki/oak/tutorials/local_update">http://digistump.com/wiki/oak/tutorials/local_update</a>.</span><span id="failed_message_4">Your Oak failed to download the update from the local server. Please power cycle your Oak, reconnect to its AP, and then click "Retry" to try getting the update from the local server again. Please retry this process at least 3 times.</span><span id="failed_message_5">Your Oak still failed to download the update from the local server. Please reconnect to your WiFi network and then see additional troubleshooting information at this link: <a href="http://digistump.com/wiki/oak/tutorials/local_update">http://digistump.com/wiki/oak/tutorials/local_update</a>.</span></b>
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary" id="update_retry">Retry</button> <!--do the connect routine-->
<button class="pure-button pure-button-primary back_to_wifi" data-out="update_failed">Change Settings</button> <!--do the scan routine-->
</div>
</div>
<div id="update_ok" style="display:none;">
<b>Your Oak updated successfully. Please connect back to the WiFi network that provides your internet connection and click the "Next" button to check if the Oak has connected to the Particle Cloud.</b>
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary check_cloud" data-out="update_ok">Next</button>
</div>
</div>
<div id="check_cloud" style="display:none;">
<div id="cloud_wait"><b>Waiting for your Oak to connect to the cloud...</b><br><br></div>
<div id="cloud_fail"><b>Your Oak did not connect to the cloud, please retry or change your WiFi settings.</b><br><br></div>
<div id="net_fail"><b>No internet connection found, please connect to your internet WiFi network and retry.</b><br><br></div>
<div id="cloud_ok"><b>Your Oak is connected to the cloud and ready to use!</b><br><br></div>
<div id="cloud_name_failed" style="color:red;font-weight:bold;display:none;">Naming your Oak failed, please try again.<br><br></div>
<div id="cloud_new_name" style="display:none;"><b>Your Oak is now named: <span id="cloud_new_name_name"></span></b><br><br></div>
<div id="cloud_rename"class="pure-form" style="display:none;"><b>Would you like to name your Oak on the Particle Cloud?</b><br><br><div style="text-align:center;"> <input class="pure-input-1" id="cloud_name" type="text" placeholder="Name of your Oak"><br><button class="pure-button pure-button-primary" id="cloud_name_button">Save</button></div><br></div>
<div id="cloud_loader" style="text-align:center;"><br><img class="loader_image"></div>
<div style="padding-top:10px;text-align:center;">
<button class="pure-button pure-button-primary" id="cloud_retry">Retry</button>
<button class="pure-button pure-button-primary back_to_wifi" id="cloud_back" data-out="check_cloud">Change Settings</button>
<button class="pure-button pure-button-primary" id="end_back">Start Over</button>
</div>
</div>
</div>
</div>
<script>
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.SoftAPSetup=e()}}(function(){var define,module,exports;return function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var f="function"==typeof require&&require;if(!a&&f)return f(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){var r=t[s][1][e];return i(r?r:e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){},{}],2:[function(e,t,r){function n(e,t){return p.isUndefined(t)?""+t:p.isNumber(t)&&!isFinite(t)?t.toString():p.isFunction(t)||p.isRegExp(t)?t.toString():t}function i(e,t){return p.isString(e)?e.length<t?e:e.slice(0,t):e}function o(e){return i(JSON.stringify(e.actual,n),128)+" "+e.operator+" "+i(JSON.stringify(e.expected,n),128)}function s(e,t,r,n,i){throw new g.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function a(e,t){e||s(e,!0,t,"==",g.ok)}function f(e,t){if(e===t)return!0;if(p.isBuffer(e)&&p.isBuffer(t)){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return p.isDate(e)&&p.isDate(t)?e.getTime()===t.getTime():p.isRegExp(e)&&p.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:p.isObject(e)||p.isObject(t)?c(e,t):e==t}function u(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function c(e,t){if(p.isNullOrUndefined(e)||p.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(p.isPrimitive(e)||p.isPrimitive(t))return e===t;var r=u(e),n=u(t);if(r&&!n||!r&&n)return!1;if(r)return e=l.call(e),t=l.call(t),f(e,t);var i,o,s=y(e),a=y(t);if(s.length!=a.length)return!1;for(s.sort(),a.sort(),o=s.length-1;o>=0;o--)if(s[o]!=a[o])return!1;for(o=s.length-1;o>=0;o--)if(i=s[o],!f(e[i],t[i]))return!1;return!0}function h(e,t){return e&&t?"[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t?!0:t.call({},e)===!0?!0:!1:!1}function d(e,t,r,n){var i;p.isString(r)&&(n=r,r=null);try{t()}catch(o){i=o}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&s(i,r,"Missing expected exception"+n),!e&&h(i,r)&&s(i,r,"Got unwanted exception"+n),e&&i&&r&&!h(i,r)||!e&&i)throw i}var p=e("util/"),l=Array.prototype.slice,b=Object.prototype.hasOwnProperty,g=t.exports=a;g.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var t=e.stackStartFunction||s;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=t.name,a=n.indexOf("\n"+i);if(a>=0){var f=n.indexOf("\n",a+1);n=n.substring(f+1)}this.stack=n}}},p.inherits(g.AssertionError,Error),g.fail=s,g.ok=a,g.equal=function(e,t,r){e!=t&&s(e,t,r,"==",g.equal)},g.notEqual=function(e,t,r){e==t&&s(e,t,r,"!=",g.notEqual)},g.deepEqual=function(e,t,r){f(e,t)||s(e,t,r,"deepEqual",g.deepEqual)},g.notDeepEqual=function(e,t,r){f(e,t)&&s(e,t,r,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(e,t,r){e!==t&&s(e,t,r,"===",g.strictEqual)},g.notStrictEqual=function(e,t,r){e===t&&s(e,t,r,"!==",g.notStrictEqual)},g["throws"]=function(e,t,r){d.apply(this,[!0].concat(l.call(arguments)))},g.doesNotThrow=function(e,t){d.apply(this,[!1].concat(l.call(arguments)))},g.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var r in e)b.call(e,r)&&t.push(r);return t}},{"util/":234}],3:[function(e,t,r){arguments[4][1][0].apply(r,arguments)},{dup:1}],4:[function(e,t,r){(function(t){"use strict";function n(){try{var e=new Uint8Array(1);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(o.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?s(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):f(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function s(e,t){if(e=b(e,0>t?0:0|g(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function a(e,t,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|m(t,r);return e=b(e,n),e.write(t,r),e}function f(e,t){if(o.isBuffer(t))return u(e,t);if(X(t))return c(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return h(e,t);if(t instanceof ArrayBuffer)return d(e,t)}return t.length?p(e,t):l(e,t)}function u(e,t){var r=0|g(t.length);return e=b(e,r),t.copy(e,0,0,r),e}function c(e,t){var r=0|g(t.length);e=b(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function h(e,t){var r=0|g(t.length);e=b(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function d(e,t){return t.byteLength,o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e=h(e,new Uint8Array(t)),e}function p(e,t){var r=0|g(t.length);e=b(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function l(e,t){var r,n=0;"Buffer"===t.type&&X(t.data)&&(r=t.data,n=0|g(r.length)),e=b(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function b(e,t){o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):e.length=t;var r=0!==t&&t<=o.poolSize>>>1;return r&&(e.parent=Z),e}function g(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function y(e,t){if(!(this instanceof y))return new y(e,t);var r=new o(e,t);return delete r.parent,r}function m(e,t){"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=!1;if(t=0|t,r=void 0===r||r===1/0?this.length:0|r,e||(e="utf8"),0>t&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return B(this,t,r);case"binary":return R(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");e[r+s]=a}return s}function w(e,t,r,n){return V(F(t,e.length-r),e,r,n)}function S(e,t,r,n){return V(H(t),e,r,n)}function E(e,t,r,n){return S(e,t,r,n)}function M(e,t,r,n){return V(Y(t),e,r,n)}function A(e,t,r,n){return V(G(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?$.fromByteArray(e):$.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;r>i;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(r>=i+a){var f,u,c,h;switch(a){case 1:128>o&&(s=o);break;case 2:f=e[i+1],128===(192&f)&&(h=(31&o)<<6|63&f,h>127&&(s=h));break;case 3:f=e[i+1],u=e[i+2],128===(192&f)&&128===(192&u)&&(h=(15&o)<<12|(63&f)<<6|63&u,h>2047&&(55296>h||h>57343)&&(s=h));break;case 4:f=e[i+1],u=e[i+2],c=e[i+3],128===(192&f)&&128===(192&u)&&128===(192&c)&&(h=(15&o)<<18|(63&f)<<12|(63&u)<<6|63&c,h>65535&&1114112>h&&(s=h))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return I(n)}function I(e){var t=e.length;if(J>=t)return String.fromCharCode.apply(String,e);for(var r="",n=0;t>n;)r+=String.fromCharCode.apply(String,e.slice(n,n+=J));return r}function B(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=K(e[o]);return i}function T(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(e,t,r){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,s){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>i||s>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}function C(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function L(e,t,r,n,i){return i||N(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,i){return i||N(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(e,t,r,n,52,8),r+8}function U(e){if(e=z(e).replace(Q,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return 16>e?"0"+e.toString(16):e.toString(16)}function F(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;n>s;s++){if(r=e.charCodeAt(s),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}function G(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);s++)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Y(e){return $.toByteArray(U(e))}function V(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}var $=e("base64-js"),W=e("ieee754"),X=e("isarray");r.Buffer=o,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50,o.poolSize=8192;var Z={};o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),o.TYPED_ARRAY_SUPPORT?(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array):(o.prototype.length=void 0,o.prototype.parent=void 0),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);s>i&&e[i]===t[i];)++i;return i!==s&&(r=e[i],n=t[i]),n>r?-1:r>n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!X(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;r++)t+=e[r].length;var n=new o(t),i=0;for(r=0;r<e.length;r++){var s=e[r];s.copy(n,i),i+=s.length}return n},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):v.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i<e.length;i++)if(e[r+i]===t[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===t.length)return r+n}else n=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(o.isBuffer(e))return r(this,e,t);if("number"==typeof e)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=t,t=0|r,r=i}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(0>r||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return S(this,e,t,r);case"binary":return E(this,e,t,r);case"base64":return M(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var s=0;i>s;s++)n[s]=this[s+e]}return n.length&&(n.parent=this.parent||this),n},o.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e=0|e,t=0|t,r||P(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),W.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),W.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),W.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),W.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||j(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||j(this,e,t,r,Math.pow(2,8*r),0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=0,s=1,a=0>e?1:0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||j(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&r>n&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,s=n-r;if(this===e&&t>r&&n>t)for(i=s-1;i>=0;i--)e[i+t]=this[i+r];else if(1e3>s||!o.TYPED_ARRAY_SUPPORT)for(i=0;s>i;i++)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),t);return s},o.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=F(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}};var Q=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":5,ieee754:6,isarray:7}],5:[function(e,t,r){!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===s||t===h?62:t===a||t===d?63:f>t?-1:f+10>t?t-f+26+26:c+26>t?t-c:u+26>t?t-u+26:void 0}function r(e){function r(e){u[h++]=e}var n,i,s,a,f,u;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;f="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,u=new o(3*e.length/4-f),s=f>0?e.length-4:e.length;var h=0;for(n=0,i=0;s>n;n+=4,i+=3)a=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===f?(a=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&a)):1===f&&(a=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(a>>8&255),r(255&a)),u}function n(e){function t(e){return i.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var n,o,s,a=e.length%3,f="";for(n=0,s=e.length-a;s>n;n+=3)o=(e[n]<<16)+(e[n+1]<<8)+e[n+2],f+=r(o);switch(a){case 1:o=e[e.length-1],f+=t(o>>2),f+=t(o<<4&63),f+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],f+=t(o>>10),f+=t(o>>4&63),f+=t(o<<2&63),f+="="}return f}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),f="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0),h="-".charCodeAt(0),d="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=n}("undefined"==typeof r?this.base64js={}:r)},{}],6:[function(e,t,r){r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,f=(1<<a)-1,u=f>>1,c=-7,h=r?i-1:0,d=r?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===f)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,f,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,l=n?1:-1,b=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-s))<1&&(s--,f*=2),t+=s+h>=1?d/f:d*Math.pow(2,1-h),t*f>=2&&(s++,f/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*f-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=l,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+p]=255&s,p+=l,s/=256,u-=8);e[r+p-l]|=128*b}},{}],7:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],8:[function(e,t,r){t.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],9:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(e("browserify-sign/algos")));r.getHashes=function(){return n};var i=e("pbkdf2");r.pbkdf2=i.pbkdf2,r.pbkdf2Sync=i.pbkdf2Sync;var o=e("browserify-cipher");["Cipher","createCipher","Cipheriv","createCipheriv","Decipher","createDecipher","Decipheriv","createDecipheriv","getCiphers","listCiphers"].forEach(function(e){r[e]=o[e]});var s=e("diffie-hellman");["DiffieHellmanGroup","createDiffieHellmanGroup","getDiffieHellman","createDiffieHellman","DiffieHellman"].forEach(function(e){r[e]=s[e]});var a=e("browserify-sign");["createSign","Sign","createVerify","Verify"].forEach(function(e){r[e]=a[e]}),r.createECDH=e("create-ecdh");var f=e("public-encrypt");["publicEncrypt","privateEncrypt","publicDecrypt","privateDecrypt"].forEach(function(e){r[e]=f[e]}),["createCredentials"].forEach(function(e){r[e]=function(){throw new Error(["sorry, "+e+" is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))}})},{"browserify-cipher":10,"browserify-sign":40,"browserify-sign/algos":39,"create-ecdh":107,"create-hash":133,"create-hmac":146,"diffie-hellman":147,pbkdf2:154,"public-encrypt":155,randombytes:200}],10:[function(e,t,r){function n(e,t){var r,n;if(e=e.toLowerCase(),d[e])r=d[e].key,n=d[e].iv;else{if(!h[e])throw new TypeError("invalid suite type");r=8*h[e].key,n=h[e].iv}var i=f(t,!1,r,n);return o(e,i.key,i.iv)}function i(e,t){var r,n;if(e=e.toLowerCase(),d[e])r=d[e].key,n=d[e].iv;else{if(!h[e])throw new TypeError("invalid suite type");r=8*h[e].key,n=h[e].iv}var i=f(t,!1,r,n);return s(e,i.key,i.iv)}function o(e,t,r){if(e=e.toLowerCase(),d[e])return u.createCipheriv(e,t,r);if(h[e])return new c({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function s(e,t,r){if(e=e.toLowerCase(),d[e])return u.createDecipheriv(e,t,r);if(h[e])return new c({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function a(){return Object.keys(h).concat(u.getCiphers())}var f=e("evp_bytestokey"),u=e("browserify-aes/browser"),c=e("browserify-des"),h=e("browserify-des/modes"),d=e("browserify-aes/modes");r.createCipher=r.Cipher=n,r.createCipheriv=r.Cipheriv=o,r.createDecipher=r.Decipher=i,r.createDecipheriv=r.Decipheriv=s,r.listCiphers=r.getCiphers=a},{"browserify-aes/browser":13,"browserify-aes/modes":17,"browserify-des":28,"browserify-des/modes":29,evp_bytestokey:38}],11:[function(e,t,r){(function(e){function t(e){var t,r;return t=e>a||0>e?(r=Math.abs(e)%a,0>e?a-r:r):e}function n(e){for(var t=0;t<e.length;e++)e[t]=0;return!1}function i(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=[[],[],[],[]],this.INV_SUB_MIX=[[],[],[],[]],this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}function o(e){for(var t=e.length/4,r=new Array(t),n=-1;++n<t;)r[n]=e.readUInt32BE(4*n);return r}function s(e){this._key=o(e),this._doReset()}var a=Math.pow(2,32);i.prototype.init=function(){var e,t,r,n,i,o,s,a,f,u;for(e=function(){var e,r;for(r=[],t=e=0;256>e;t=++e)128>t?r.push(t<<1):r.push(t<<1^283);return r}(),i=0,f=0,t=u=0;256>u;t=++u)r=f^f<<1^f<<2^f<<3^f<<4,r=r>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,o=e[i],s=e[o],a=e[s],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*a^65537*s^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=f=1:(i=o^e[e[e[a^o]]],f^=e[e[f]]);return!0};var f=new i;s.blockSize=16,s.prototype.blockSize=s.blockSize,s.keySize=32,s.prototype.keySize=s.keySize,s.prototype._doReset=function(){var e,t,r,n,i,o;for(r=this._key,t=r.length,this._nRounds=t+6,i=4*(this._nRounds+1),this._keySchedule=[],n=0;i>n;n++)this._keySchedule[n]=t>n?r[n]:(o=this._keySchedule[n-1],n%t===0?(o=o<<8|o>>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=f.RCON[n/t|0]<<24):t>6&&n%t===4?o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]:void 0,this._keySchedule[n-t]^o);for(this._invKeySchedule=[],e=0;i>e;e++)n=i-e,o=this._keySchedule[n-(e%4?0:4)],this._invKeySchedule[e]=4>e||4>=n?o:f.INV_SUB_MIX[0][f.SBOX[o>>>24]]^f.INV_SUB_MIX[1][f.SBOX[o>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[o>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&o]];return!0},s.prototype.encryptBlock=function(t){t=o(new e(t));var r=this._doCryptBlock(t,this._keySchedule,f.SUB_MIX,f.SBOX),n=new e(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},s.prototype.decryptBlock=function(t){t=o(new e(t));var r=[t[3],t[1]];t[1]=r[0],t[3]=r[1];var n=this._doCryptBlock(t,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX),i=new e(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},s.prototype._doCryptBlock=function(e,r,n,i){var o,s,a,f,u,c,h,d,p;s=e[0]^r[0],a=e[1]^r[1],f=e[2]^r[2],u=e[3]^r[3],o=4;for(var l=1;l<this._nRounds;l++)c=n[0][s>>>24]^n[1][a>>>16&255]^n[2][f>>>8&255]^n[3][255&u]^r[o++],h=n[0][a>>>24]^n[1][f>>>16&255]^n[2][u>>>8&255]^n[3][255&s]^r[o++],
d=n[0][f>>>24]^n[1][u>>>16&255]^n[2][s>>>8&255]^n[3][255&a]^r[o++],p=n[0][u>>>24]^n[1][s>>>16&255]^n[2][a>>>8&255]^n[3][255&f]^r[o++],s=c,a=h,f=d,u=p;return c=(i[s>>>24]<<24|i[a>>>16&255]<<16|i[f>>>8&255]<<8|i[255&u])^r[o++],h=(i[a>>>24]<<24|i[f>>>16&255]<<16|i[u>>>8&255]<<8|i[255&s])^r[o++],d=(i[f>>>24]<<24|i[u>>>16&255]<<16|i[s>>>8&255]<<8|i[255&a])^r[o++],p=(i[u>>>24]<<24|i[s>>>16&255]<<16|i[a>>>8&255]<<8|i[255&f])^r[o++],[t(c),t(h),t(d),t(p)]},r.AES=s}).call(this,e("buffer").Buffer)},{buffer:4}],12:[function(e,t,r){(function(r){function n(e,t,i,a){if(!(this instanceof n))return new n(e,t,i);s.call(this),this._finID=r.concat([i,new r([0,0,0,1])]),i=r.concat([i,new r([0,0,0,2])]),this._cipher=new o.AES(t),this._prev=new r(i.length),this._cache=new r(""),this._secCache=new r(""),this._decrypt=a,this._alen=0,this._len=0,i.copy(this._prev),this._mode=e;var u=new r(4);u.fill(0),this._ghash=new f(this._cipher.encryptBlock(u)),this._authTag=null,this._called=!1}function i(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=-1;++i<n;)r+=e[i]^t[i];return r}var o=e("./aes"),s=e("cipher-base"),a=e("inherits"),f=e("./ghash"),u=e("buffer-xor");a(n,s),t.exports=n,n.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;16>t&&(t=new r(t),t.fill(0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},n.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash["final"](8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt){if(i(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data")}else this._authTag=e;this._cipher.scrub()},n.prototype.getAuthTag=function(){if(!this._decrypt&&r.isBuffer(this._authTag))return this._authTag;throw new Error("Attempting to get auth tag in unsupported state")},n.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},n.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}}).call(this,e("buffer").Buffer)},{"./aes":11,"./ghash":16,buffer:4,"buffer-xor":25,"cipher-base":26,inherits:202}],13:[function(e,t,r){function n(){return Object.keys(s)}var i=e("./encrypter");r.createCipher=r.Cipher=i.createCipher,r.createCipheriv=r.Cipheriv=i.createCipheriv;var o=e("./decrypter");r.createDecipher=r.Decipher=o.createDecipher,r.createDecipheriv=r.Decipheriv=o.createDecipheriv;var s=e("./modes");r.listCiphers=r.getCiphers=n},{"./decrypter":14,"./encrypter":15,"./modes":17}],14:[function(e,t,r){(function(t){function n(e,r,o){return this instanceof n?(u.call(this),this._cache=new i,this._last=void 0,this._cipher=new f.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,void(this._autopadding=!0)):new n(e,r,o)}function i(){return this instanceof i?void(this.cache=new t("")):new i}function o(e){for(var t=e[15],r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");return 16!==t?e.slice(0,16-t):void 0}function s(e,r,i){var o=h[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=new t(i)),"string"==typeof r&&(r=new t(r)),r.length!==o.key/8)throw new TypeError("invalid key length "+r.length);if(i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new d(b[o.mode],r,i,!0):"auth"===o.type?new p(b[o.mode],r,i,!0):new n(b[o.mode],r,i)}function a(e,t){var r=h[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=l(t,!1,r.key,r.iv);return s(e,n.key,n.iv)}var f=e("./aes"),u=e("cipher-base"),c=e("inherits"),h=e("./modes"),d=e("./streamCipher"),p=e("./authCipher"),l=e("evp_bytestokey");c(n,u),n.prototype._update=function(e){this._cache.add(e);for(var r,n,i=[];r=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,r),i.push(n);return t.concat(i)},n.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return o(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(e){this._autopadding=!!e},i.prototype.add=function(e){this.cache=t.concat([this.cache,e])},i.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},i.prototype.flush=function(){return this.cache.length?this.cache:void 0};var b={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};r.createDecipher=a,r.createDecipheriv=s}).call(this,e("buffer").Buffer)},{"./aes":11,"./authCipher":12,"./modes":17,"./modes/cbc":18,"./modes/cfb":19,"./modes/cfb1":20,"./modes/cfb8":21,"./modes/ctr":22,"./modes/ecb":23,"./modes/ofb":24,"./streamCipher":27,buffer:4,"cipher-base":26,evp_bytestokey:38,inherits:202}],15:[function(e,t,r){(function(t){function n(e,r,o){return this instanceof n?(f.call(this),this._cache=new i,this._cipher=new a.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,void(this._autopadding=!0)):new n(e,r,o)}function i(){return this instanceof i?void(this.cache=new t("")):new i}function o(e,r,i){var o=c[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=new t(i)),"string"==typeof r&&(r=new t(r)),r.length!==o.key/8)throw new TypeError("invalid key length "+r.length);if(i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new d(l[o.mode],r,i):"auth"===o.type?new p(l[o.mode],r,i):new n(l[o.mode],r,i)}function s(e,t){var r=c[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(t,!1,r.key,r.iv);return o(e,n.key,n.iv)}var a=e("./aes"),f=e("cipher-base"),u=e("inherits"),c=e("./modes"),h=e("evp_bytestokey"),d=e("./streamCipher"),p=e("./authCipher");u(n,f),n.prototype._update=function(e){this._cache.add(e);for(var r,n,i=[];r=this._cache.get();)n=this._mode.encrypt(this,r),i.push(n);return t.concat(i)},n.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if("10101010101010101010101010101010"!==e.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(e){this._autopadding=!!e},i.prototype.add=function(e){this.cache=t.concat([this.cache,e])},i.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},i.prototype.flush=function(){for(var e=16-this.cache.length,r=new t(e),n=-1;++n<e;)r.writeUInt8(e,n);var i=t.concat([this.cache,r]);return i};var l={ECB:e("./modes/ecb"),CBC:e("./modes/cbc"),CFB:e("./modes/cfb"),CFB8:e("./modes/cfb8"),CFB1:e("./modes/cfb1"),OFB:e("./modes/ofb"),CTR:e("./modes/ctr"),GCM:e("./modes/ctr")};r.createCipheriv=o,r.createCipher=s}).call(this,e("buffer").Buffer)},{"./aes":11,"./authCipher":12,"./modes":17,"./modes/cbc":18,"./modes/cfb":19,"./modes/cfb1":20,"./modes/cfb8":21,"./modes/ctr":22,"./modes/ecb":23,"./modes/ofb":24,"./streamCipher":27,buffer:4,"cipher-base":26,evp_bytestokey:38,inherits:202}],16:[function(e,t,r){(function(e){function r(t){this.h=t,this.state=new e(16),this.state.fill(0),this.cache=new e("")}function n(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function i(t){t=t.map(o);var r=new e(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r}function o(e){var t,r;return t=e>f||0>e?(r=Math.abs(e)%f,0>e?f-r:r):e}function s(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}var a=new e(16);a.fill(0),t.exports=r,r.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},r.prototype._multiply=function(){for(var e,t,r,o=n(this.h),a=[0,0,0,0],f=-1;++f<128;){for(t=0!==(this.state[~~(f/8)]&1<<7-f%8),t&&(a=s(a,o)),r=0!==(1&o[3]),e=3;e>0;e--)o[e]=o[e]>>>1|(1&o[e-1])<<31;o[0]=o[0]>>>1,r&&(o[0]=o[0]^225<<24)}this.state=i(a)},r.prototype.update=function(t){this.cache=e.concat([this.cache,t]);for(var r;this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},r.prototype["final"]=function(t,r){return this.cache.length&&this.ghash(e.concat([this.cache,a],16)),this.ghash(i([0,t,0,r])),this.state};var f=Math.pow(2,32)}).call(this,e("buffer").Buffer)},{buffer:4}],17:[function(e,t,r){r["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},r["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},r["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},r["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},r["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},r["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},r.aes128=r["aes-128-cbc"],r.aes192=r["aes-192-cbc"],r.aes256=r["aes-256-cbc"],r["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},r["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},r["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},r["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},r["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},r["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},r["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},r["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},r["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},r["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},r["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},r["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},r["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},r["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},r["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},r["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},r["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},r["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},{}],18:[function(e,t,r){var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},{"buffer-xor":25}],19:[function(e,t,r){(function(t){function n(e,r,n){var o=r.length,s=i(r,e._cache);return e._cache=e._cache.slice(o),e._prev=t.concat([e._prev,n?r:s]),s}var i=e("buffer-xor");r.encrypt=function(e,r,i){for(var o,s=new t("");r.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=new t("")),!(e._cache.length<=r.length)){s=t.concat([s,n(e,r,i)]);break}o=e._cache.length,s=t.concat([s,n(e,r.slice(0,o),i)]),r=r.slice(o)}return s}}).call(this,e("buffer").Buffer)},{buffer:4,"buffer-xor":25}],20:[function(e,t,r){(function(e){function t(e,t,r){for(var i,o,s,a=-1,f=8,u=0;++a<f;)i=e._cipher.encryptBlock(e._prev),o=t&1<<7-a?128:0,s=i[0]^o,u+=(128&s)>>a%8,e._prev=n(e._prev,r?o:s);return u}function n(t,r){var n=t.length,i=-1,o=new e(t.length);for(t=e.concat([t,new e([r])]);++i<n;)o[i]=t[i]<<1|t[i+1]>>7;return o}r.encrypt=function(r,n,i){for(var o=n.length,s=new e(o),a=-1;++a<o;)s[a]=t(r,n[a],i);return s}}).call(this,e("buffer").Buffer)},{buffer:4}],21:[function(e,t,r){(function(e){function t(t,r,n){var i=t._cipher.encryptBlock(t._prev),o=i[0]^r;return t._prev=e.concat([t._prev.slice(1),new e([n?r:o])]),o}r.encrypt=function(r,n,i){for(var o=n.length,s=new e(o),a=-1;++a<o;)s[a]=t(r,n[a],i);return s}}).call(this,e("buffer").Buffer)},{buffer:4}],22:[function(e,t,r){(function(t){function n(e){for(var t,r=e.length;r--;){if(t=e.readUInt8(r),255!==t){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}function i(e){var t=e._cipher.encryptBlock(e._prev);return n(e._prev),t}var o=e("buffer-xor");r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var n=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),o(r,n)}}).call(this,e("buffer").Buffer)},{buffer:4,"buffer-xor":25}],23:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],24:[function(e,t,r){(function(t){function n(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}var i=e("buffer-xor");r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,n(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),i(r,o)}}).call(this,e("buffer").Buffer)},{buffer:4,"buffer-xor":25}],25:[function(e,t,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;n>o;++o)i[o]=t[o]^r[o];return i}}).call(this,e("buffer").Buffer)},{buffer:4}],26:[function(e,t,r){(function(r){function n(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this["final"]=this._finalOrDigest,this._decoder=null,this._encoding=null}var i=e("stream").Transform,o=e("inherits"),s=e("string_decoder").StringDecoder;t.exports=n,o(n,i),n.prototype.update=function(e,t,n){"string"==typeof e&&(e=new r(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},n.prototype._flush=function(e){var t;try{this.push(this._final())}catch(r){t=r}finally{e(t)}},n.prototype._finalOrDigest=function(e){var t=this._final()||new r("");return e&&(t=this._toString(t,e,!0)),t},n.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new s(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n}}).call(this,e("buffer").Buffer)},{buffer:4,inherits:202,stream:223,string_decoder:230}],27:[function(e,t,r){(function(r){function n(e,t,s,a){return this instanceof n?(o.call(this),this._cipher=new i.AES(t),this._prev=new r(s.length),this._cache=new r(""),this._secCache=new r(""),this._decrypt=a,s.copy(this._prev),void(this._mode=e)):new n(e,t,s)}var i=e("./aes"),o=e("cipher-base"),s=e("inherits");s(n,o),t.exports=n,n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()}}).call(this,e("buffer").Buffer)},{"./aes":11,buffer:4,"cipher-base":26,inherits:202}],28:[function(e,t,r){(function(r){function n(e){i.call(this);var t,n=e.mode.toLowerCase(),o=a[n];t=e.decrypt?"decrypt":"encrypt";var s=e.key;("des-ede"===n||"des-ede-cbc"===n)&&(s=r.concat([s,s.slice(0,8)]));var f=e.iv;this._des=o.create({key:s,iv:f,type:t})}var i=e("cipher-base"),o=e("des.js"),s=e("inherits"),a={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=n,s(n,i),n.prototype._update=function(e){return new r(this._des.update(e))},n.prototype._final=function(){return new r(this._des["final"]())}}).call(this,e("buffer").Buffer)},{buffer:4,"cipher-base":30,"des.js":31,inherits:202}],29:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],30:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{buffer:4,dup:26,inherits:202,stream:223,string_decoder:230}],31:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":32,"./des/cipher":33,"./des/des":34,"./des/ede":35,"./des/utils":36}],32:[function(e,t,r){"use strict";function n(e){o.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 i(e){function t(t){e.call(this,t),this._cbcInit()}s(t,e);for(var r=Object.keys(a),n=0;n<r.length;n++){var i=r[n];t.prototype[i]=a[i]}return t.create=function(e){return new t(e)},t}var o=e("minimalistic-assert"),s=e("inherits"),a={};r.instantiate=i,a._cbcInit=function(){var e=new n(this.options.iv);this._cbcState=e},a._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];o._update.call(this,s,0,r,n);for(var a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{o._update.call(this,e,t,r,n);for(var a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(var a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},{inherits:202,"minimalistic-assert":37}],33:[function(e,t,r){"use strict";function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var i=e("minimalistic-assert");t.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;r>n;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;o>t;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},n.prototype["final"]=function(e){var t;e&&(t=this.update(e));var r;return r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.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},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.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":37}],34:[function(e,t,r){"use strict";function n(){this.tmp=new Array(2),this.keys=null}function i(e){u.call(this,e);var t=new n;this._desState=t,this.deriveKeys(t,e.key)}var o=e("minimalistic-assert"),s=e("inherits"),a=e("../des"),f=a.utils,u=a.Cipher;s(i,u),t.exports=i,i.create=function(e){return new i(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(e,t){e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length");var r=f.readUInt32BE(t,0),n=f.readUInt32BE(t,4);f.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var s=c[i>>>1];r=f.r28shl(r,s),n=f.r28shl(n,s),f.pc2(r,n,e.keys,i)}},i.prototype._update=function(e,t,r,n){var i=this._desState,o=f.readUInt32BE(e,t),s=f.readUInt32BE(e,t+4);f.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],f.writeUInt32BE(r,o,n),f.writeUInt32BE(r,s,n+4)},i.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},i.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)o.equal(e[r],t);return e.slice(0,e.length-t)},i.prototype._encrypt=function(e,t,r,n,i){for(var o=t,s=r,a=0;a<e.keys.length;a+=2){var u=e.keys[a],c=e.keys[a+1];f.expand(s,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=f.substitute(u,c),d=f.permute(h),p=s;s=(o^d)>>>0,o=p}f.rip(s,o,n,i)},i.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,a=e.keys.length-2;a>=0;a-=2){var u=e.keys[a],c=e.keys[a+1];f.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var h=f.substitute(u,c),d=f.permute(h),p=o;o=(s^d)>>>0,s=p}f.rip(o,s,n,i)}},{"../des":31,inherits:202,"minimalistic-assert":37}],35:[function(e,t,r){"use strict";function n(e,t){o.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);"encrypt"===e?this.ciphers=[u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n}),u.create({type:"encrypt",key:i})]:this.ciphers=[u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r})]}function i(e){f.call(this,e);var t=new n(this.type,this.options.key);this._edeState=t}var o=e("minimalistic-assert"),s=e("inherits"),a=e("../des"),f=a.Cipher,u=a.DES;s(i,f),t.exports=i,i.create=function(e){return new i(e)},i.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},i.prototype._pad=u.prototype._pad,i.prototype._unpad=u.prototype._unpad},{"../des":31,inherits:202,"minimalistic-assert":37}],36:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){var r=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return r>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;24>=a;a+=8)i<<=1,i|=t>>>a+s&1;for(var a=0;24>=a;a+=8)i<<=1,i|=e>>>a+s&1}for(var s=6;s>=0;s-=2){for(var a=1;25>=a;a+=8)o<<=1,o|=t>>>a+s&1;for(var a=1;25>=a;a+=8)o<<=1,o|=e>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,s=0;4>s;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(var s=4;8>s;s++)for(var a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;24>=a;a+=8)i<<=1,i|=t>>a+s&1;for(var a=0;24>=a;a+=8)i<<=1,i|=e>>a+s&1}for(var a=0;24>=a;a+=8)i<<=1,i|=t>>a+s&1;for(var s=1;3>=s;s++){for(var a=0;24>=a;a+=8)o<<=1,o|=t>>a+s&1;for(var a=0;24>=a;a+=8)o<<=1,o|=e>>a+s&1}for(var a=0;24>=a;a+=8)o<<=1,o|=e>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[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];r.pc2=function(e,t,r,i){for(var o=0,s=0,a=n.length>>>1,f=0;a>f;f++)o<<=1,o|=e>>>n[f]&1;for(var f=a;f<n.length;f++)s<<=1,s|=t>>>n[f]&1;r[i+0]=o>>>0,r[i+1]=s>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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];r.substitute=function(e,t){for(var r=0,n=0;4>n;n++){var o=e>>>18-6*n&63,s=i[64*n+o];r<<=4,r|=s}for(var n=0;4>n;n++){var o=t>>>18-6*n&63,s=i[256+64*n+o];r<<=4,r|=s}return r>>>0};var o=[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];r.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;t>o;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],37:[function(e,t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],38:[function(e,t,r){(function(r){function n(e,t,n,o){r.isBuffer(e)||(e=new r(e,"binary")),t&&!r.isBuffer(t)&&(t=new r(t,"binary")),n/=8,o=o||0;for(var s,a,f=0,u=0,c=new r(n),h=new r(o),d=0,p=[];;){if(d++>0&&p.push(s),p.push(e),t&&p.push(t),s=i(r.concat(p)),p=[],a=0,n>0)for(;;){if(0===n)break;if(a===s.length)break;c[f++]=s[a],n--,a++}if(o>0&&a!==s.length)for(;;){if(0===o)break;if(a===s.length)break;h[u++]=s[a],o--,a++}if(0===n&&0===o)break}for(a=0;a<s.length;a++)s[a]=0;return{key:c,iv:h}}var i=e("create-hash/md5");t.exports=n}).call(this,e("buffer").Buffer)},{buffer:4,"create-hash/md5":135}],39:[function(e,t,r){(function(e){"use strict";r["RSA-SHA224"]=r.sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:new e("302d300d06096086480165030402040500041c","hex")},r["RSA-SHA256"]=r.sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:new e("3031300d060960864801650304020105000420","hex")},r["RSA-SHA384"]=r.sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:new e("3041300d060960864801650304020205000430","hex")},r["RSA-SHA512"]=r.sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:new e("3051300d060960864801650304020305000440","hex")},r["RSA-SHA1"]={sign:"rsa",hash:"sha1",id:new e("3021300906052b0e03021a05000414","hex")},r["ecdsa-with-SHA1"]={sign:"ecdsa",hash:"sha1",id:new e("","hex")},r.DSA=r["DSA-SHA1"]=r["DSA-SHA"]={sign:"dsa",hash:"sha1",id:new e("","hex")},r["DSA-SHA224"]=r["DSA-WITH-SHA224"]={sign:"dsa",hash:"sha224",id:new e("","hex")},r["DSA-SHA256"]=r["DSA-WITH-SHA256"]={sign:"dsa",hash:"sha256",id:new e("","hex")},r["DSA-SHA384"]=r["DSA-WITH-SHA384"]={sign:"dsa",hash:"sha384",id:new e("","hex")},r["DSA-SHA512"]=r["DSA-WITH-SHA512"]={sign:"dsa",hash:"sha512",id:new e("","hex")},r["DSA-RIPEMD160"]={sign:"dsa",hash:"rmd160",id:new e("","hex")},r["RSA-RIPEMD160"]=r.ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:new e("3021300906052b2403020105000414","hex")},r["RSA-MD5"]=r.md5WithRSAEncryption={sign:"rsa",hash:"md5",id:new e("3020300c06082a864886f70d020505000410","hex")}}).call(this,e("buffer").Buffer)},{buffer:4}],40:[function(e,t,r){(function(r){function n(e){h.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=f(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){h.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hash=f(t.hash),this._tag=t.id,this._signType=t.sign}function o(e){return new n(e)}function s(e){return new i(e)}var a=e("./algos"),f=e("create-hash"),u=e("inherits"),c=e("./sign"),h=e("stream"),d=e("./verify"),p={};Object.keys(a).forEach(function(e){p[e]=p[e.toLowerCase()]=a[e]}),u(n,h.Writable),n.prototype._write=function(e,t,r){this._hash.update(e),r()},n.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},n.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),i=c(r.concat([this._tag,n]),e,this._hashType,this._signType);return t?i.toString(t):i},u(i,h.Writable),i.prototype._write=function(e,t,r){this._hash.update(e),r()},i.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},i.prototype.verify=function(e,t,n){"string"==typeof t&&(t=new r(t,n)),this.end();var i=this._hash.digest();return d(t,r.concat([this._tag,i]),e,this._signType)},t.exports={Sign:o,Verify:s,createSign:o,createVerify:s}}).call(this,e("buffer").Buffer)},{"./algos":39,"./sign":105,"./verify":106,buffer:4,"create-hash":133,inherits:202,stream:223}],41:[function(e,t,r){"use strict";r["1.3.132.0.10"]="secp256k1",r["1.3.132.0.33"]="p224",r["1.2.840.10045.3.1.1"]="p192",r["1.2.840.10045.3.1.7"]="p256",r["1.3.132.0.34"]="p384",r["1.3.132.0.35"]="p521"},{}],42:[function(e,t,r){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){return null!==e&&"object"==typeof e&&Array.isArray(e.words)?e:(this.negative=0,this.words=null,this.length=0,this.red=null,void(null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))))}function o(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;i>o;o++){var s=e.charCodeAt(o)-48;n<<=4,n|=s>=49&&54>=s?s-49+10:s>=17&&22>=s?s-17+10:15&s}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;o>s;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}function a(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,f=s/67108864|0;r.words[0]=a;for(var u=1;n>u;u++){for(var c=f>>>26,h=67108863&f,d=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);d>=p;p++){var l=u-p|0;i=0|e.words[l],o=0|t.words[p],s=i*o+h,c+=s/67108864|0,h=67108863&s}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}function u(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,f=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);f>=u;u++){var c=o-u,h=0|e.words[c],d=0|t.words[u],p=h*d,l=67108863&p;s=s+(p/67108864|0)|0,l=l+a|0,a=67108863&l,s=s+(l>>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function c(e,t,r){var n=new h;return n.mulp(e,t,r)}function h(e,t){this.x=e,this.y=t}function d(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(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else this.m=e,this.prime=null}function m(e){y.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 e?e.exports=i:t.BN=i,
i.BN=i,i.wordSize=26,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,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&36>=t),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){0>e&&(this.negative=1,e=-e),67108864>e?(this.words=[67108863&e],this.length=1):4503599627370496>e?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(9007199254740992>e),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){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 i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);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 r=0;r<this.length;r++)this.words[r]=0;var n,i,s=0;for(r=e.length-6,n=0;r>=t;r-=6)i=o(e,r,r+6),this.words[n]|=i<<s&67108863,this.words[n+1]|=i>>>26-s&4194303,s+=24,s>=26&&(s-=26,n++);r+6!==t&&(i=o(e,t,r+6),this.words[n]|=i<<s&67108863,this.words[n+1]|=i>>>26-s&4194303),this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;67108863>=i;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,f=Math.min(o,o-a)+r,u=0,c=r;f>c;c+=n)u=s(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var h=1;for(u=s(e,c,e.length,t),c=0;a>c;c++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},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.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 v=["","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"],_=[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],w=[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 n;if(16===e||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],f=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,n=0!==o||s!==this.length-1?v[6-f.length]+f+n:f+n,i+=2,i>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&36>=e){var u=_[e],c=w[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var d=h.modn(c).toString(e);h=h.idivn(c),n=h.isZero()?d+n:v[u-d.length]+d+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){return r(this.bitLength()<=53,"Number can only safely store up to 53 bits"),parseInt(this.toString(),10)},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toArray=function(e,t){var n=this.byteLength(),i=t||Math.max(1,n);r(i>=n,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,a="le"===e,f=new Array(i),u=this.clone();if(a){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),f[s]=o;for(;i>s;s++)f[s]=0}else{for(s=0;i-n>s;s++)f[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),f[i-s-1]=o}return f},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},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 r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){if(this.isZero())return this.clone();var e=this.clone();return e.negative=1^this.negative,e},i.prototype.ineg=function(){return 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 r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];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,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];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);for(var t=0|Math.ceil(e/26),n=e%26;this.length<t;)this.words[this.length++]=0;n>0&&t--;for(var i=0;t>i;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);for(var n=e/26|0,i=e%26;this.length<=n;)this.words[this.length++]=0;return t?this.words[n]=this.words[n]|1<<i:this.words[n]=this.words[n]&~(1<<i),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 r,n;this.length>e.length?(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,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];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 r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=e):(n=e,i=this);for(var o=0,s=0;s<i.length;s++)t=(0|n.words[s])-(0|i.words[s])+o,o=t>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)t=(0|n.words[s])+o,o=t>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var S=function(e,t,r){var n,i,o,s=e.words,a=t.words,f=r.words,u=0,c=0|s[0],h=8191&c,d=c>>>13,p=0|s[1],l=8191&p,b=p>>>13,g=0|s[2],y=8191&g,m=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,S=0|s[4],E=8191&S,M=S>>>13,A=0|s[5],k=8191&A,x=A>>>13,I=0|s[6],B=8191&I,R=I>>>13,O=0|s[7],T=8191&O,P=O>>>13,j=0|s[8],C=8191&j,D=j>>>13,N=0|s[9],L=8191&N,q=N>>>13,U=0|a[0],z=8191&U,K=U>>>13,F=0|a[1],H=8191&F,G=F>>>13,Y=0|a[2],V=8191&Y,$=Y>>>13,W=0|a[3],X=8191&W,Z=W>>>13,J=0|a[4],Q=8191&J,ee=J>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],fe=8191&ae,ue=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,pe=0|a[9],le=8191&pe,be=pe>>>13;r.length=19,n=Math.imul(h,z),i=Math.imul(h,K),i+=Math.imul(d,z),o=Math.imul(d,K);var ge=u+n+((8191&i)<<13);u=o+(i>>>13)+(ge>>>26),ge&=67108863,n=Math.imul(l,z),i=Math.imul(l,K),i+=Math.imul(b,z),o=Math.imul(b,K),n+=Math.imul(h,H),i+=Math.imul(h,G),i+=Math.imul(d,H),o+=Math.imul(d,G);var ye=u+n+((8191&i)<<13);u=o+(i>>>13)+(ye>>>26),ye&=67108863,n=Math.imul(y,z),i=Math.imul(y,K),i+=Math.imul(m,z),o=Math.imul(m,K),n+=Math.imul(l,H),i+=Math.imul(l,G),i+=Math.imul(b,H),o+=Math.imul(b,G),n+=Math.imul(h,V),i+=Math.imul(h,$),i+=Math.imul(d,V),o+=Math.imul(d,$);var me=u+n+((8191&i)<<13);u=o+(i>>>13)+(me>>>26),me&=67108863,n=Math.imul(_,z),i=Math.imul(_,K),i+=Math.imul(w,z),o=Math.imul(w,K),n+=Math.imul(y,H),i+=Math.imul(y,G),i+=Math.imul(m,H),o+=Math.imul(m,G),n+=Math.imul(l,V),i+=Math.imul(l,$),i+=Math.imul(b,V),o+=Math.imul(b,$),n+=Math.imul(h,X),i+=Math.imul(h,Z),i+=Math.imul(d,X),o+=Math.imul(d,Z);var ve=u+n+((8191&i)<<13);u=o+(i>>>13)+(ve>>>26),ve&=67108863,n=Math.imul(E,z),i=Math.imul(E,K),i+=Math.imul(M,z),o=Math.imul(M,K),n+=Math.imul(_,H),i+=Math.imul(_,G),i+=Math.imul(w,H),o+=Math.imul(w,G),n+=Math.imul(y,V),i+=Math.imul(y,$),i+=Math.imul(m,V),o+=Math.imul(m,$),n+=Math.imul(l,X),i+=Math.imul(l,Z),i+=Math.imul(b,X),o+=Math.imul(b,Z),n+=Math.imul(h,Q),i+=Math.imul(h,ee),i+=Math.imul(d,Q),o+=Math.imul(d,ee);var _e=u+n+((8191&i)<<13);u=o+(i>>>13)+(_e>>>26),_e&=67108863,n=Math.imul(k,z),i=Math.imul(k,K),i+=Math.imul(x,z),o=Math.imul(x,K),n+=Math.imul(E,H),i+=Math.imul(E,G),i+=Math.imul(M,H),o+=Math.imul(M,G),n+=Math.imul(_,V),i+=Math.imul(_,$),i+=Math.imul(w,V),o+=Math.imul(w,$),n+=Math.imul(y,X),i+=Math.imul(y,Z),i+=Math.imul(m,X),o+=Math.imul(m,Z),n+=Math.imul(l,Q),i+=Math.imul(l,ee),i+=Math.imul(b,Q),o+=Math.imul(b,ee),n+=Math.imul(h,re),i+=Math.imul(h,ne),i+=Math.imul(d,re),o+=Math.imul(d,ne);var we=u+n+((8191&i)<<13);u=o+(i>>>13)+(we>>>26),we&=67108863,n=Math.imul(B,z),i=Math.imul(B,K),i+=Math.imul(R,z),o=Math.imul(R,K),n+=Math.imul(k,H),i+=Math.imul(k,G),i+=Math.imul(x,H),o+=Math.imul(x,G),n+=Math.imul(E,V),i+=Math.imul(E,$),i+=Math.imul(M,V),o+=Math.imul(M,$),n+=Math.imul(_,X),i+=Math.imul(_,Z),i+=Math.imul(w,X),o+=Math.imul(w,Z),n+=Math.imul(y,Q),i+=Math.imul(y,ee),i+=Math.imul(m,Q),o+=Math.imul(m,ee),n+=Math.imul(l,re),i+=Math.imul(l,ne),i+=Math.imul(b,re),o+=Math.imul(b,ne),n+=Math.imul(h,oe),i+=Math.imul(h,se),i+=Math.imul(d,oe),o+=Math.imul(d,se);var Se=u+n+((8191&i)<<13);u=o+(i>>>13)+(Se>>>26),Se&=67108863,n=Math.imul(T,z),i=Math.imul(T,K),i+=Math.imul(P,z),o=Math.imul(P,K),n+=Math.imul(B,H),i+=Math.imul(B,G),i+=Math.imul(R,H),o+=Math.imul(R,G),n+=Math.imul(k,V),i+=Math.imul(k,$),i+=Math.imul(x,V),o+=Math.imul(x,$),n+=Math.imul(E,X),i+=Math.imul(E,Z),i+=Math.imul(M,X),o+=Math.imul(M,Z),n+=Math.imul(_,Q),i+=Math.imul(_,ee),i+=Math.imul(w,Q),o+=Math.imul(w,ee),n+=Math.imul(y,re),i+=Math.imul(y,ne),i+=Math.imul(m,re),o+=Math.imul(m,ne),n+=Math.imul(l,oe),i+=Math.imul(l,se),i+=Math.imul(b,oe),o+=Math.imul(b,se),n+=Math.imul(h,fe),i+=Math.imul(h,ue),i+=Math.imul(d,fe),o+=Math.imul(d,ue);var Ee=u+n+((8191&i)<<13);u=o+(i>>>13)+(Ee>>>26),Ee&=67108863,n=Math.imul(C,z),i=Math.imul(C,K),i+=Math.imul(D,z),o=Math.imul(D,K),n+=Math.imul(T,H),i+=Math.imul(T,G),i+=Math.imul(P,H),o+=Math.imul(P,G),n+=Math.imul(B,V),i+=Math.imul(B,$),i+=Math.imul(R,V),o+=Math.imul(R,$),n+=Math.imul(k,X),i+=Math.imul(k,Z),i+=Math.imul(x,X),o+=Math.imul(x,Z),n+=Math.imul(E,Q),i+=Math.imul(E,ee),i+=Math.imul(M,Q),o+=Math.imul(M,ee),n+=Math.imul(_,re),i+=Math.imul(_,ne),i+=Math.imul(w,re),o+=Math.imul(w,ne),n+=Math.imul(y,oe),i+=Math.imul(y,se),i+=Math.imul(m,oe),o+=Math.imul(m,se),n+=Math.imul(l,fe),i+=Math.imul(l,ue),i+=Math.imul(b,fe),o+=Math.imul(b,ue),n+=Math.imul(h,he),i+=Math.imul(h,de),i+=Math.imul(d,he),o+=Math.imul(d,de);var Me=u+n+((8191&i)<<13);u=o+(i>>>13)+(Me>>>26),Me&=67108863,n=Math.imul(L,z),i=Math.imul(L,K),i+=Math.imul(q,z),o=Math.imul(q,K),n+=Math.imul(C,H),i+=Math.imul(C,G),i+=Math.imul(D,H),o+=Math.imul(D,G),n+=Math.imul(T,V),i+=Math.imul(T,$),i+=Math.imul(P,V),o+=Math.imul(P,$),n+=Math.imul(B,X),i+=Math.imul(B,Z),i+=Math.imul(R,X),o+=Math.imul(R,Z),n+=Math.imul(k,Q),i+=Math.imul(k,ee),i+=Math.imul(x,Q),o+=Math.imul(x,ee),n+=Math.imul(E,re),i+=Math.imul(E,ne),i+=Math.imul(M,re),o+=Math.imul(M,ne),n+=Math.imul(_,oe),i+=Math.imul(_,se),i+=Math.imul(w,oe),o+=Math.imul(w,se),n+=Math.imul(y,fe),i+=Math.imul(y,ue),i+=Math.imul(m,fe),o+=Math.imul(m,ue),n+=Math.imul(l,he),i+=Math.imul(l,de),i+=Math.imul(b,he),o+=Math.imul(b,de),n+=Math.imul(h,le),i+=Math.imul(h,be),i+=Math.imul(d,le),o+=Math.imul(d,be);var Ae=u+n+((8191&i)<<13);u=o+(i>>>13)+(Ae>>>26),Ae&=67108863,n=Math.imul(L,H),i=Math.imul(L,G),i+=Math.imul(q,H),o=Math.imul(q,G),n+=Math.imul(C,V),i+=Math.imul(C,$),i+=Math.imul(D,V),o+=Math.imul(D,$),n+=Math.imul(T,X),i+=Math.imul(T,Z),i+=Math.imul(P,X),o+=Math.imul(P,Z),n+=Math.imul(B,Q),i+=Math.imul(B,ee),i+=Math.imul(R,Q),o+=Math.imul(R,ee),n+=Math.imul(k,re),i+=Math.imul(k,ne),i+=Math.imul(x,re),o+=Math.imul(x,ne),n+=Math.imul(E,oe),i+=Math.imul(E,se),i+=Math.imul(M,oe),o+=Math.imul(M,se),n+=Math.imul(_,fe),i+=Math.imul(_,ue),i+=Math.imul(w,fe),o+=Math.imul(w,ue),n+=Math.imul(y,he),i+=Math.imul(y,de),i+=Math.imul(m,he),o+=Math.imul(m,de),n+=Math.imul(l,le),i+=Math.imul(l,be),i+=Math.imul(b,le),o+=Math.imul(b,be);var ke=u+n+((8191&i)<<13);u=o+(i>>>13)+(ke>>>26),ke&=67108863,n=Math.imul(L,V),i=Math.imul(L,$),i+=Math.imul(q,V),o=Math.imul(q,$),n+=Math.imul(C,X),i+=Math.imul(C,Z),i+=Math.imul(D,X),o+=Math.imul(D,Z),n+=Math.imul(T,Q),i+=Math.imul(T,ee),i+=Math.imul(P,Q),o+=Math.imul(P,ee),n+=Math.imul(B,re),i+=Math.imul(B,ne),i+=Math.imul(R,re),o+=Math.imul(R,ne),n+=Math.imul(k,oe),i+=Math.imul(k,se),i+=Math.imul(x,oe),o+=Math.imul(x,se),n+=Math.imul(E,fe),i+=Math.imul(E,ue),i+=Math.imul(M,fe),o+=Math.imul(M,ue),n+=Math.imul(_,he),i+=Math.imul(_,de),i+=Math.imul(w,he),o+=Math.imul(w,de),n+=Math.imul(y,le),i+=Math.imul(y,be),i+=Math.imul(m,le),o+=Math.imul(m,be);var xe=u+n+((8191&i)<<13);u=o+(i>>>13)+(xe>>>26),xe&=67108863,n=Math.imul(L,X),i=Math.imul(L,Z),i+=Math.imul(q,X),o=Math.imul(q,Z),n+=Math.imul(C,Q),i+=Math.imul(C,ee),i+=Math.imul(D,Q),o+=Math.imul(D,ee),n+=Math.imul(T,re),i+=Math.imul(T,ne),i+=Math.imul(P,re),o+=Math.imul(P,ne),n+=Math.imul(B,oe),i+=Math.imul(B,se),i+=Math.imul(R,oe),o+=Math.imul(R,se),n+=Math.imul(k,fe),i+=Math.imul(k,ue),i+=Math.imul(x,fe),o+=Math.imul(x,ue),n+=Math.imul(E,he),i+=Math.imul(E,de),i+=Math.imul(M,he),o+=Math.imul(M,de),n+=Math.imul(_,le),i+=Math.imul(_,be),i+=Math.imul(w,le),o+=Math.imul(w,be);var Ie=u+n+((8191&i)<<13);u=o+(i>>>13)+(Ie>>>26),Ie&=67108863,n=Math.imul(L,Q),i=Math.imul(L,ee),i+=Math.imul(q,Q),o=Math.imul(q,ee),n+=Math.imul(C,re),i+=Math.imul(C,ne),i+=Math.imul(D,re),o+=Math.imul(D,ne),n+=Math.imul(T,oe),i+=Math.imul(T,se),i+=Math.imul(P,oe),o+=Math.imul(P,se),n+=Math.imul(B,fe),i+=Math.imul(B,ue),i+=Math.imul(R,fe),o+=Math.imul(R,ue),n+=Math.imul(k,he),i+=Math.imul(k,de),i+=Math.imul(x,he),o+=Math.imul(x,de),n+=Math.imul(E,le),i+=Math.imul(E,be),i+=Math.imul(M,le),o+=Math.imul(M,be);var Be=u+n+((8191&i)<<13);u=o+(i>>>13)+(Be>>>26),Be&=67108863,n=Math.imul(L,re),i=Math.imul(L,ne),i+=Math.imul(q,re),o=Math.imul(q,ne),n+=Math.imul(C,oe),i+=Math.imul(C,se),i+=Math.imul(D,oe),o+=Math.imul(D,se),n+=Math.imul(T,fe),i+=Math.imul(T,ue),i+=Math.imul(P,fe),o+=Math.imul(P,ue),n+=Math.imul(B,he),i+=Math.imul(B,de),i+=Math.imul(R,he),o+=Math.imul(R,de),n+=Math.imul(k,le),i+=Math.imul(k,be),i+=Math.imul(x,le),o+=Math.imul(x,be);var Re=u+n+((8191&i)<<13);u=o+(i>>>13)+(Re>>>26),Re&=67108863,n=Math.imul(L,oe),i=Math.imul(L,se),i+=Math.imul(q,oe),o=Math.imul(q,se),n+=Math.imul(C,fe),i+=Math.imul(C,ue),i+=Math.imul(D,fe),o+=Math.imul(D,ue),n+=Math.imul(T,he),i+=Math.imul(T,de),i+=Math.imul(P,he),o+=Math.imul(P,de),n+=Math.imul(B,le),i+=Math.imul(B,be),i+=Math.imul(R,le),o+=Math.imul(R,be);var Oe=u+n+((8191&i)<<13);u=o+(i>>>13)+(Oe>>>26),Oe&=67108863,n=Math.imul(L,fe),i=Math.imul(L,ue),i+=Math.imul(q,fe),o=Math.imul(q,ue),n+=Math.imul(C,he),i+=Math.imul(C,de),i+=Math.imul(D,he),o+=Math.imul(D,de),n+=Math.imul(T,le),i+=Math.imul(T,be),i+=Math.imul(P,le),o+=Math.imul(P,be);var Te=u+n+((8191&i)<<13);u=o+(i>>>13)+(Te>>>26),Te&=67108863,n=Math.imul(L,he),i=Math.imul(L,de),i+=Math.imul(q,he),o=Math.imul(q,de),n+=Math.imul(C,le),i+=Math.imul(C,be),i+=Math.imul(D,le),o+=Math.imul(D,be);var Pe=u+n+((8191&i)<<13);u=o+(i>>>13)+(Pe>>>26),Pe&=67108863,n=Math.imul(L,le),i=Math.imul(L,be),i+=Math.imul(q,le),o=Math.imul(q,be);var je=u+n+((8191&i)<<13);return u=o+(i>>>13)+(je>>>26),je&=67108863,f[0]=ge,f[1]=ye,f[2]=me,f[3]=ve,f[4]=_e,f[5]=we,f[6]=Se,f[7]=Ee,f[8]=Me,f[9]=Ae,f[10]=ke,f[11]=xe,f[12]=Ie,f[13]=Be,f[14]=Re,f[15]=Oe,f[16]=Te,f[17]=Pe,f[18]=je,0!==u&&(f[19]=u,r.length++),r};Math.imul||(S=f),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?S(this,e,t):63>n?f(this,e,t):1024>n?u(this,e,t):c(this,e,t)},h.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;e>n;n++)t[n]=this.revBin(n,r,e);return t},h.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;t>i;i++)n|=(1&e)<<t-i-1,e>>=1;return n},h.prototype.permute=function(e,t,r,n,i,o){for(var s=0;o>s;s++)n[s]=t[e[s]],i[s]=r[e[s]]},h.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;i>s;s<<=1)for(var a=s<<1,f=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),c=0;i>c;c+=a)for(var h=f,d=u,p=0;s>p;p++){var l=r[c+p],b=n[c+p],g=r[c+p+s],y=n[c+p+s],m=h*g-d*y;y=h*y+d*g,g=m,r[c+p]=l+g,n[c+p]=b+y,r[c+p+s]=l-g,n[c+p+s]=b-y,p!==a&&(m=f*h-u*d,d=f*d+u*h,h=m)}},h.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},h.prototype.conjugate=function(e,t,r){if(!(1>=r))for(var n=0;r/2>n;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},h.prototype.normalize13b=function(e,t){for(var r=0,n=0;t/2>n;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=67108864>i?0:i/67108864|0}return e},h.prototype.convert13b=function(e,t,n,i){for(var o=0,s=0;t>s;s++)o+=0|e[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;i>s;++s)n[s]=0;r(0===o),r(0===(-8192&o))},h.prototype.stub=function(e){for(var t=new Array(e),r=0;e>r;r++)t[r]=0;return t},h.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),f=new Array(n),u=new Array(n),c=new Array(n),h=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,u,n),this.transform(s,o,a,f,n,i),this.transform(u,o,c,h,n,i);for(var p=0;n>p;p++){var l=a[p]*c[p]-f[p]*h[p];f[p]=a[p]*h[p]+f[p]*c[p],a[p]=l}return this.conjugate(a,f,n),this.transform(a,f,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.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),c(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=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=a(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,f=(0|this.words[t])-a<<n;this.words[t]=f|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;i>t;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){r("number"==typeof e&&e>=0);var i;i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,f=n;if(i-=s,i=Math.max(0,i),f){for(var u=0;s>u;u++)f.words[u]=this.words[u];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var h=0|this.words[u];this.words[u]=c<<26-o|h>>>o,c=h&a}return f&&0!==c&&(f.words[f.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},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,n=(e-t)/26,i=1<<t;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),0>e?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),0>e)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,n){var i,o=e.length+n;if(this.words.length<o){var s=new Array(o);for(i=0;i<this.length;i++)s[i]=this.words[i];this.words=s}else i=this.length;for(this.length=Math.max(this.length,o);i<this.length;i++)this.words[i]=0;var a,f=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+f;var u=(0|e.words[i])*t;a-=67108863&u,f=(a>>26)-(u/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)a=(0|this.words[i+n])+f,f=a>>26,this.words[i+n]=67108863&a;if(0===f)return this.strip();for(r(-1===f),f=0,i=0;i<this.length;i++)a=-(0|this.words[i])+f,f=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1],a=this._countBits(s);r=26-a,0!==r&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var f,u=n.length-o.length;if("mod"!==t){f=new i(null),f.length=u+1,f.words=new Array(f.length);for(var c=0;c<f.length;c++)f.words[c]=0}var h=n.clone()._ishlnsubmul(o,1,u);0===h.negative&&(n=h,f&&(f.words[u]=1));for(var d=u-1;d>=0;d--){var p=67108864*(0|n.words[o.length+d])+(0|n.words[o.length+d-1]);for(p=Math.min(p/s|0,67108863),n._ishlnsubmul(o,p,d);0!==n.negative;)p--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);f&&(f.words[d]=p)}return f&&f.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:f||null,mod:n}},i.prototype.divmod=function(e,t,n){r(!e.isZero());var o,s,a;return 0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&s.neg&&(s=s.add(e))),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&s.neg&&(s=s.isub(e))),{div:a.div,mod:s}):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 r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return 0>o||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(67108863>=e);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(67108863>=e);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%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,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),f=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),h=t.clone();!t.isZero();){for(var d=0,p=1;0===(t.words[0]&p)&&26>d;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(c),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var l=0,b=1;0===(n.words[0]&b)&&26>l;++l,b<<=1);if(l>0)for(n.iushrn(l);l-- >0;)(a.isOdd()||f.isOdd())&&(a.iadd(c),f.isub(h)),a.iushrn(1),f.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a),s.isub(f)):(n.isub(t),a.isub(o),f.isub(s))}return{a:a,b:f,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,u=1;0===(t.words[0]&u)&&26>f;++f,u<<=1);if(f>0)for(t.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);for(var c=0,h=1;0===(n.words[0]&h)&&26>c;++c,h<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}var d;return d=0===t.cmpn(1)?o:s,d.cmpn(0)<0&&d.iadd(e),d},i.prototype.gcd=function(e){if(this.isZero())return e.clone();if(e.isZero())return this.clone();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(0>i){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},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,n=(e-t)/26,i=1<<t;if(this.length<=n){for(var o=this.length;n+1>o;o++)this.words[o]=0;return this.words[n]|=i,this.length=n+1,this}var s=i;for(o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t=0>e;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(67108863>=e,"Number is too big");var i=0|this.words[0];n=i===e?0:e>i?-1:1}return 0!==this.negative&&(n=-n),n},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?-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,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){i>n?t=-1:n>i&&(t=1);break}}return t},i.red=function(e){return new y(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.ushl(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 E={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},d.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},d.prototype.split=function(e,t){e.iushrn(this.n,0,t)},d.prototype.imulK=function(e){return e.imul(this.k)},n(p,d),p.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;n>i;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&r)<<4|o>>>22,o=s}e.words[i-10]=o>>>22,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,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(l,d),n(b,d),n(g,d),g.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function M(e){if(E[e])return E[e];var M;if("k256"===e)M=new p;else if("p224"===e)M=new l;else if("p192"===e)M=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);M=new g}return E[e]=M,M},y.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},y.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")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){var t=e.clone();return t.negative^=1,t.iadd(this.m)._forceRed(this)},y.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e)},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),f=a.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(f);)c.redIAdd(f);for(var h=this.pow(c,o),d=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),l=s;0!==p.cmp(a);){for(var b=p,g=0;0!==b.cmp(a);g++)b=b.redSqr();r(l>g);var y=this.pow(h,new i(1).iushln(l-g-1));d=d.redMul(y),h=y.redSqr(),p=p.redMul(h),l=g}return d},y.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},y.prototype.pow=function(e,t){if(t.isZero())return new i(1);if(0===t.cmpn(1))return e.clone();var r=4,n=new Array(1<<r);n[0]=new i(1).toRed(this),n[1]=e;for(var o=2;o<n.length;o++)n[o]=this.mul(n[o-1],e);var s=n[0],a=0,f=0,u=t.bitLength()%26;for(0===u&&(u=26),o=t.length-1;o>=0;o--){for(var c=t.words[o],h=u-1;h>=0;h--){var d=c>>h&1;s!==n[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,f++,(f===r||0===o&&0===h)&&(s=this.mul(s,n[a]),f=0,a=0)):f=0}u=26}return s},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new m(e)},n(m,y),m.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},m.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},m.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},m.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},m.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}("undefined"==typeof t||t,this)},{}],43:[function(e,t,r){(function(r){function n(e){var t=o(e),r=t.toRed(s.mont(e.modulus)).redPow(new s(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function i(e,t){var i=n(t),o=t.modulus.byteLength(),a=(s.mont(t.modulus),new s(e).mul(i.blinder).umod(t.modulus)),f=a.toRed(s.mont(t.prime1)),u=a.toRed(s.mont(t.prime2)),c=t.coefficient,h=t.prime1,d=t.prime2,p=f.redPow(t.exponent1),l=u.redPow(t.exponent2);p=p.fromRed(),l=l.fromRed();var b=p.isub(l).imul(c).umod(h);return b.imul(d),l.iadd(b),new r(l.imul(i.unblinder).umod(t.modulus).toArray(!1,o))}function o(e){for(var t=e.modulus.byteLength(),r=new s(a(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new s(a(t));return r}var s=e("bn.js"),a=e("randombytes");t.exports=i,i.getr=o}).call(this,e("buffer").Buffer)},{"bn.js":42,buffer:4,randombytes:200}],44:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.hmacDRBG=e("./elliptic/hmac-drbg"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":67,"./elliptic/curve":47,"./elliptic/curves":50,"./elliptic/ec":51,"./elliptic/eddsa":54,"./elliptic/hmac-drbg":57,"./elliptic/utils":59,brorand:60}],45:[function(e,t,r){"use strict";function n(e,t){this.type=e,this.p=new o(t.p,16),this.red=t.prime?o.red(t.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=t.n&&new o(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)}function i(e,t){this.curve=e,this.type=t,this.precomputed=null}var o=e("bn.js"),s=e("../../elliptic"),a=s.utils,f=a.getNAF,u=a.getJSF,c=a.assert;t.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(e,t){c(e.precomputed);var r=e._getDoubles(),n=f(t,1),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;for(var o=[],s=0;s<n.length;s+=r.step){for(var a=0,t=s+r.step-1;t>=s;t--)a=(a<<1)+n[t];o.push(a)}for(var u=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(var s=0;s<o.length;s++){var a=o[s];a===d?h=h.mixedAdd(r.points[s]):a===-d&&(h=h.mixedAdd(r.points[s].neg()))}u=u.add(h)}return u.toP()},n.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=f(t,r),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var t=0;a>=0&&0===o[a];a--)t++;if(a>=0&&t++,s=s.dblp(t),0>a)break;var u=o[a];c(0!==u),s="affine"===e.type?u>0?s.mixedAdd(i[u-1>>1]):s.mixedAdd(i[-u-1>>1].neg()):u>0?s.add(i[u-1>>1]):s.add(i[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},n.prototype._wnafMulAdd=function(e,t,r,n){for(var i=this._wnafT1,o=this._wnafT2,s=this._wnafT3,a=0,c=0;n>c;c++){var h=t[c],d=h._getNAFPoints(e);i[c]=d.wnd,o[c]=d.points}for(var c=n-1;c>=1;c-=2){var p=c-1,l=c;if(1===i[p]&&1===i[l]){var b=[t[p],null,null,t[l]];0===t[p].y.cmp(t[l].y)?(b[1]=t[p].add(t[l]),b[2]=t[p].toJ().mixedAdd(t[l].neg())):0===t[p].y.cmp(t[l].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[l]),b[2]=t[p].add(t[l].neg())):(b[1]=t[p].toJ().mixedAdd(t[l]),b[2]=t[p].toJ().mixedAdd(t[l].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=u(r[p],r[l]);a=Math.max(y[0].length,a),s[p]=new Array(a),s[l]=new Array(a);for(var m=0;a>m;m++){var v=0|y[0][m],_=0|y[1][m];s[p][m]=g[3*(v+1)+(_+1)],s[l][m]=0,o[p]=b}}else s[p]=f(r[p],i[p]),s[l]=f(r[l],i[l]),a=Math.max(s[p].length,a),a=Math.max(s[l].length,a)}for(var w=this.jpoint(null,null,null),S=this._wnafT4,c=a;c>=0;c--){for(var E=0;c>=0;){for(var M=!0,m=0;n>m;m++)S[m]=0|s[m][c],0!==S[m]&&(M=!1);if(!M)break;E++,c--}if(c>=0&&E++,w=w.dblp(E),0>c)break;for(var m=0;n>m;m++){var h,A=S[m];0!==A&&(A>0?h=o[m][A-1>>1]:0>A&&(h=o[m][-A-1>>1].neg()),w="affine"===h.type?w.mixedAdd(h):w.add(h))}}for(var c=0;n>c;c++)o[c]=null;return w.toP()},n.BasePoint=i,i.prototype.eq=function(){throw new Error("Not implemented")},i.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(e,t){e=a.toArray(e,t);var r=this.p.byteLength();if(4===e[0]&&e.length-1===2*r)return this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},i.prototype.encodeCompressed=function(e){return this.encode(e,!0)},i.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},i.prototype.encode=function(e,t){return a.encode(this._encode(t),e)},i.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},i.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):!1},i.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;t>i;i+=e){for(var o=0;e>o;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},i.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;r>i;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},i.prototype._getBeta=function(){return null},i.prototype.dblp=function(e){for(var t=this,r=0;e>r;r++)t=t.dbl();return t}},{"../../elliptic":44,"bn.js":42}],46:[function(e,t,r){"use strict";function n(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,u.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),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function i(e,t,r,n,i){u.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,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 o=e("../curve"),s=e("../../elliptic"),a=e("bn.js"),f=e("inherits"),u=o.base,c=s.utils.assert;f(n,u),t.exports=n,n.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},n.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},n.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},n.prototype.pointFromX=function(e,t){e=new a(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()).redSqrt(),s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},n.prototype.pointFromY=function(e,t){e=new a(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},n.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},f(i,u.BasePoint),n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},n.prototype.point=function(e,t,r,n){return new i(this,e,t,r,n)},i.fromJSON=function(e,t){return new i(e,t[0],t[1],t[2])},i.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)+">"},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),f=i.redMul(s),u=o.redMul(a),c=i.redMul(a),h=s.redMul(o);return this.curve.point(f,u,h,c)},i.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=this.curve._mulA(i),a=s.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(s.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var f=this.z.redSqr(),u=a.redSub(f).redISub(f);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(s.redSub(o)),r=a.redMul(u)}}else{var s=i.redAdd(o),f=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=s.redSub(f).redSub(f);e=this.curve._mulC(n.redISub(s)).redMul(u),t=this.curve._mulC(s).redMul(i.redISub(o)),r=s.redMul(u)}return this.curve.point(e,t,r)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),f=r.redAdd(t),u=o.redMul(s),c=a.redMul(f),h=o.redMul(f),d=s.redMul(a);return this.curve.point(u,c,d,h)},i.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),f=i.redSub(a),u=i.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),h=n.redMul(f).redMul(c);return this.curve.twisted?(t=n.redMul(u).redMul(s.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=n.redMul(u).redMul(s.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},i.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},i.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2)},i.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},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},{"../../elliptic":44,"../curve":47,"bn.js":42,inherits:202}],47:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n["short"]=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":45,"./edwards":46,"./mont":48,"./short":49}],48:[function(e,t,r){"use strict";function n(e){f.call(this,"mont",e),this.a=new s(e.a,16).toRed(this.red),this.b=new s(e.b,16).toRed(this.red),this.i4=new s(4).toRed(this.red).redInvm(),this.two=new s(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(e,t,r){f.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new s(t,16),this.z=new s(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=e("../curve"),s=e("bn.js"),a=e("inherits"),f=o.base,u=e("../../elliptic"),c=u.utils;a(n,f),t.exports=n,n.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t),i=n.redSqrt();return 0===i.redSqr().cmp(n)},a(i,f.BasePoint),n.prototype.decodePoint=function(e,t){return this.point(c.toArray(e,t),1)},n.prototype.point=function(e,t){return new i(this,e,t)},n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(e,t){return new i(e,t[0],t[1]||e.one)},i.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)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=t.redSub(n),o=t.redMul(n),s=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,s)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z),s=o.redMul(r),a=i.redMul(n),f=t.z.redMul(s.redAdd(a).redSqr()),u=t.x.redMul(s.redISub(a).redSqr());return this.curve.point(f,u)},i.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":44,"../curve":47,"bn.js":42,inherits:202}],49:[function(e,t,r){"use strict";function n(e){c.call(this,"short",e),this.a=new f(e.a,16).toRed(this.red),this.b=new f(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 i(e,t,r,n){c.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(t,16),this.y=new f(r,16),n&&(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 o(e,t,r,n){c.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(t,16),this.y=new f(r,16),this.z=new f(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.zOne=this.z===this.curve.one}var s=e("../curve"),a=e("../../elliptic"),f=e("bn.js"),u=e("inherits"),c=s.base,h=a.utils.assert;u(n,c),t.exports=n,n.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new f(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=n[0].cmp(n[1])<0?n[0]:n[1],t=t.toRed(this.red)}if(e.lambda)r=new f(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],h(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}var o;return o=e.basis?e.basis.map(function(e){return{a:new f(e.a,16),b:new f(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:o}}},n.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:f.mont(e),r=new f(2).toRed(t).redInvm(),n=r.redNeg(),i=new f(3).toRed(t).redNeg().redSqrt().redMul(r),o=n.redAdd(i).fromRed(),s=n.redSub(i).fromRed();return[o,s]},n.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,a,u,c,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),l=new f(1),b=new f(0),g=new f(0),y=new f(1),m=0;0!==d.cmpn(0);){var v=p.div(d);u=p.sub(v.mul(d)),c=g.sub(v.mul(l));var _=y.sub(v.mul(b));if(!n&&u.cmp(h)<0)t=a.neg(),r=l,n=u.neg(),i=c;else if(n&&2===++m)break;a=u,p=d,d=u,g=l,l=c,y=b,b=_}o=u.neg(),s=c;var w=n.sqr().add(i.sqr()),S=o.sqr().add(s.sqr());return S.cmp(w)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},n.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),f=i.mul(r.b),u=o.mul(n.b),c=e.sub(s).sub(a),h=f.add(u).neg();return{k1:c,k2:h}},n.prototype.pointFromX=function(e,t){e=new f(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt(),i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},n.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},n.prototype._endoWnafMulAdd=function(e,t){for(var r=this._endoWnafT1,n=this._endoWnafT2,i=0;i<e.length;i++){var o=this._endoSplit(t[i]),s=e[i],a=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),a=a.neg(!0)),r[2*i]=s,r[2*i+1]=a,n[2*i]=o.k1,n[2*i+1]=o.k2}for(var f=this._wnafMulAdd(1,r,n,2*i),u=0;2*i>u;u++)r[u]=null,n[u]=null;return f},u(i,c.BasePoint),n.prototype.point=function(e,t,r){return new i(this,e,t,r)},n.prototype.pointFromJSON=function(e,t){return i.fromJSON(this,e,t)},i.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 r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},i.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]},i.fromJSON=function(e,t,r){function n(t){return e.point(t[0],t[1],r)}"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;var o=t[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},i.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)+">"},i.prototype.isInfinity=function(){return this.inf},i.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 r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},i.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,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(e){return e=new f(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},i.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))},i.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},i.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},u(o,c.BasePoint),n.prototype.jpoint=function(e,t,r){return new o(this,e,t,r)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),f=o.redSub(s);if(0===a.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),h=n.redMul(u),d=f.redSqr().redIAdd(c).redISub(h).redISub(h),p=f.redMul(h.redISub(d)).redISub(o.redMul(c)),l=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,p,l)},o.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),u=f.redMul(s),c=r.redMul(f),h=a.redSqr().redIAdd(u).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(i.redMul(u)),p=this.z.redMul(s);return this.curve.jpoint(h,d,p)},o.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,r=0;e>r;r++)t=t.dbl();return t}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,f=a.redSqr().redSqr(),u=s.redAdd(s),r=0;e>r;r++){var c=o.redSqr(),h=u.redSqr(),d=h.redSqr(),p=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(f)),l=o.redMul(h),b=p.redSqr().redISub(l.redAdd(l)),g=l.redISub(b),y=p.redMul(g);y=y.redIAdd(y).redISub(d);var m=u.redMul(a);e>r+1&&(f=f.redMul(d)),o=b,a=m,u=y}return this.curve.jpoint(o,u.redMul(i),a)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),f=a.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=u.redIAdd(u),u=u.redIAdd(u),e=f,t=a.redMul(s.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),p=this.x.redAdd(h).redSqr().redISub(c).redISub(d);p=p.redIAdd(p);var l=c.redAdd(c).redIAdd(c),b=l.redSqr(),g=d.redIAdd(d);g=g.redIAdd(g),g=g.redIAdd(g),e=b.redISub(p).redISub(p),t=l.redMul(p.redISub(e)).redISub(g),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(e,t,r)},o.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=a.redSqr().redISub(s).redISub(s);e=f;var u=o.redIAdd(o);u=u.redIAdd(u),u=u.redIAdd(u),t=a.redMul(s.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),p=this.x.redSub(c).redMul(this.x.redAdd(c));p=p.redAdd(p).redIAdd(p);var l=d.redIAdd(d);l=l.redIAdd(l);var b=l.redAdd(l);e=p.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var g=h.redSqr();g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g),t=p.redMul(l.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},o.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),f=t.redAdd(t);f=f.redIAdd(f);var u=f.redMul(s),c=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(c),d=s.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var p=a.redMul(h).redISub(d),l=r.redAdd(r).redMul(n);return this.curve.jpoint(c,p,l)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n);s=s.redIAdd(s),s=s.redAdd(s).redIAdd(s),s=s.redISub(o);var a=s.redSqr(),f=n.redIAdd(n);f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var u=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(f),c=t.redMul(u);c=c.redIAdd(c),c=c.redIAdd(c);var h=this.x.redMul(a).redISub(c);h=h.redIAdd(h),h=h.redIAdd(h);var d=this.y.redMul(u.redMul(f.redISub(u)).redISub(s.redMul(a)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var p=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,d,p)},o.prototype.mul=function(e,t){return e=new f(e,t),this.curve._wnafMul(this,e)},o.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;
var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},o.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)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":44,"../curve":47,"bn.js":42,inherits:202}],50:[function(e,t,r){"use strict";function n(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,f(this.g.validate(),"Invalid curve"),f(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var r=new n(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:r}),r}})}var o=r,s=e("hash.js"),a=e("../elliptic"),f=a.utils.assert;o.PresetCurve=n,i("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:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("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:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("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:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("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:s.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"]}),i("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:s.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"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"0",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),i("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:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=e("./precomputed/secp256k1")}catch(c){u=void 0}i("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:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},{"../elliptic":44,"./precomputed/secp256k1":58,"hash.js":61}],51:[function(e,t,r){"use strict";function n(e){return this instanceof n?("string"==typeof e&&(a(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),void(this.hash=e.hash||e.curve.hash)):new n(e)}var i=e("bn.js"),o=e("../../elliptic"),s=o.utils,a=s.assert,f=e("./key"),u=e("./signature");t.exports=n,n.prototype.keyPair=function(e){return new f(this,e)},n.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},n.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},n.prototype.genKeyPair=function(e){e||(e={});for(var t=new o.hmacDRBG({hash:this.hash,pers:e.pers,entropy:e.entropy||o.rand(this.hash.hmacStrength),nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(n)>0))return s.iaddn(1),this.keyFromPrivate(s)}},n.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},n.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray(),f=a.length;s>f;f++)a.unshift(0);for(var c=e.toArray(),f=c.length;s>f;f++)c.unshift(0);for(var h=new o.hmacDRBG({hash:this.hash,entropy:a,nonce:c}),d=this.n.sub(new i(1));;){var p=new i(h.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(d)>=0)){var l=this.g.mul(p);if(!l.isInfinity()){var b=l.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var y=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(y=y.umod(this.n),0!==y.cmpn(0)){var m=(l.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return n.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new u({r:g,s:y,recoveryParam:m})}}}}}},n.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n),t=new u(t,"hex");var o=t.r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a=s.invm(this.n),f=a.mul(e).umod(this.n),c=a.mul(o).umod(this.n),h=this.g.mulAdd(f,r.getPublic(),c);return h.isInfinity()?!1:0===h.getX().umod(this.n).cmp(o)},n.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,n);var o=this.n,s=new i(e),f=t.r,c=t.s,h=1&r,d=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var p=o.sub(s),l=t.r.invm(o);return f.mul(c).add(this.g.mul(p)).mul(l)},n.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new u(t,n),null!==t.recoveryParam)return t.recoveryParam;for(var i=0;4>i;i++){var o=this.recoverPubKey(e,t,i);if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":44,"./key":52,"./signature":53,"bn.js":42}],52:[function(e,t,r){"use strict";function n(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 i=e("bn.js");t.exports=n,n.fromPublic=function(e,t,r){return t instanceof n?t:new n(e,{pub:t,pubEnc:r})},n.fromPrivate=function(e,t,r){return t instanceof n?t:new n(e,{priv:t,privEnc:r})},n.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"}},n.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},n.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(e,t){return e.x||e.y?void(this.pub=this.ec.curve.point(e.x,e.y)):void(this.pub=this.ec.curve.decodePoint(e,t))},n.prototype.derive=function(e){return e.mul(this.priv).getX()},n.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},n.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"bn.js":42}],53:[function(e,t,r){"use strict";function n(e,t){return e instanceof n?e:void(this._importDER(e,t)||(h(e.r&&e.s,"Signature without r or s"),this.r=new f(e.r,16),this.s=new f(e.s,16),null!==e.recoveryParam?this.recoveryParam=e.recoveryParam:this.recoveryParam=null))}function i(){this.place=0}function o(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,s=t.place;n>o;o++,s++)i<<=8,i|=e[s];return t.place=s,i}function s(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&r>t;)t++;return 0===t?e:e.slice(t)}function a(e,t){if(128>t)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}var f=e("bn.js"),u=e("../../elliptic"),c=u.utils,h=c.assert;t.exports=n,n.prototype._importDER=function(e,t){e=c.toArray(e,t);var r=new i;if(48!==e[r.place++])return!1;var n=o(e,r);if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var s=o(e,r),a=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=o(e,r);if(e.length!==u+r.place)return!1;var h=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===h[0]&&128&h[1]&&(h=h.slice(1)),this.r=new f(a),this.s=new f(h),this.recoveryParam=null,!0},n.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=s(t),r=s(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];a(n,t.length),n=n.concat(t),n.push(2),a(n,r.length);var i=n.concat(r),o=[48];return a(o,i.length),o=o.concat(i),c.encode(o,e)}},{"../../elliptic":44,"bn.js":42}],54:[function(e,t,r){"use strict";function n(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof n))return new n(e);var e=o.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=i.sha512}var i=e("hash.js"),o=e("../../elliptic"),s=o.utils,a=s.assert,f=s.parseBytes,u=e("./key"),c=e("./signature");t.exports=n,n.prototype.sign=function(e,t){e=f(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),a=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},n.prototype.verify=function(e,t,r){e=f(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S()),s=t.R().add(n.pub().mul(i));return s.eq(o)},n.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return s.intFromLE(e.digest()).umod(this.curve.n)},n.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},n.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},n.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},n.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},n.prototype.decodePoint=function(e){e=s.parseBytes(e);var t=e.length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!==(128&e[t]),i=s.intFromLE(r);return this.curve.pointFromY(i,n)},n.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},n.prototype.decodeInt=function(e){return s.intFromLE(e)},n.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":44,"./key":55,"./signature":56,"hash.js":61}],55:[function(e,t,r){"use strict";function n(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}var i=e("../../elliptic"),o=i.utils,s=o.assert,a=o.parseBytes,f=o.cachedProperty;n.fromPublic=function(e,t){return t instanceof n?t:new n(e,{pub:t})},n.fromSecret=function(e,t){return t instanceof n?t:new n(e,{secret:t})},n.prototype.secret=function(){return this._secret},f(n,function(){return this.eddsa.encodePoint(this.pub())}),f(n,function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),f(n,function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),f(n,function(){return this.eddsa.decodeInt(this.privBytes())}),f(n,function(){return this.eddsa.hash().update(this.secret()).digest()}),f(n,function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(e){return s(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},n.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},n.prototype.getSecret=function(e){return s(this._secret,"KeyPair is public only"),o.encode(this.secret(),e)},n.prototype.getPublic=function(e){return o.encode(this.pubBytes(),e)},t.exports=n},{"../../elliptic":44}],56:[function(e,t,r){"use strict";function n(e,t){this.eddsa=e,"object"!=typeof t&&(t=u(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 i&&(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 i=e("bn.js"),o=e("../../elliptic"),s=o.utils,a=s.assert,f=s.cachedProperty,u=s.parseBytes;f(n,function(){return this.eddsa.decodeInt(this.Sencoded())}),f(n,function(){return this.eddsa.decodePoint(this.Rencoded())}),f(n,function(){return this.eddsa.encodePoint(this.R())}),f(n,function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return s.encode(this.toBytes(),"hex").toUpperCase()},t.exports=n},{"../../elliptic":44,"bn.js":42}],57:[function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(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=s.toArray(e.entropy,e.entropyEnc),r=s.toArray(e.nonce,e.nonceEnc),i=s.toArray(e.pers,e.persEnc);a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var i=e("hash.js"),o=e("../elliptic"),s=o.utils,a=s.assert;t.exports=n,n.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this.reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},n.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())},n.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=s.toBuffer(e,t),r=s.toBuffer(r,n),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this.reseed=1},n.prototype.generate=function(e,t,r,n){if(this.reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=s.toArray(r,n),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this.reseed++,s.encode(o,t)}},{"../elliptic":44,"hash.js":61}],58:[function(e,t,r){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"]]
}}},{}],59:[function(e,t,r){"use strict";function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if(t){if("hex"===t){e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}function s(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var s=i.andln(n-1);o=s>(n>>1)-1?(n>>1)-s:s,i.isubn(o)}else o=0;r.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,f=1;a>f;f++)r.push(0);i.iushrn(a)}return r}function a(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o=e.andln(3)+n&3,s=t.andln(3)+i&3;3===o&&(o=-1),3===s&&(s=-1);var a;if(0===(1&o))a=0;else{var f=e.andln(7)+n&7;a=3!==f&&5!==f||2!==s?o:-o}r[0].push(a);var u;if(0===(1&s))u=0;else{var f=t.andln(7)+i&7;u=3!==f&&5!==f||2!==o?s:-s}r[1].push(u),2*n===a+1&&(n=1-n),2*i===u+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function f(e,t){var r=t.name,n="_"+r;e.prototype[r]=function(){return void 0!==this[n]?this[n]:this[n]=t.call(this)}}function u(e){return"string"==typeof e?h.toArray(e,"hex"):e}function c(e){return new d(e,"hex","le")}var h=r,d=e("bn.js");h.assert=function(e,t){if(!e)throw new Error(t||"Assertion failed")},h.toArray=n,h.zero2=i,h.toHex=o,h.encode=function(e,t){return"hex"===t?o(e):e},h.getNAF=s,h.getJSF=a,h.cachedProperty=f,h.parseBytes=u,h.intFromLE=c},{"bn.js":42}],60:[function(e,t,r){function n(e){this.rand=e}var i;if(t.exports=function(e){return i||(i=new n(null)),i.generate(e)},t.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},"object"==typeof window)window.crypto&&window.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return window.crypto.getRandomValues(t),t}:window.msCrypto&&window.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return window.msCrypto.getRandomValues(t),t}:n.prototype._rand=function(){throw new Error("Not implemented yet")};else try{var o=e("crypto");n.prototype._rand=function(e){return o.randomBytes(e)}}catch(s){n.prototype._rand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t}}},{}],61:[function(e,t,r){var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":62,"./hash/hmac":63,"./hash/ripemd":64,"./hash/sha":65,"./hash/utils":66}],62:[function(e,t,r){function n(){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 i=e("../hash"),o=i.utils,s=o.assert;r.BlockHash=n,n.prototype.update=function(e,t){if(e=o.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 r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},n.prototype.digest=function(e){return this.update(this._pad()),s(null===this.pending),this._digest(e)},n.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;r>i;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else{n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;for(var o=8;o<this.padLength;o++)n[i++]=0}return n}},{"../hash":61}],63:[function(e,t,r){function n(e,t,r){return this instanceof n?(this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,void this._init(o.toArray(t,r))):new n(e,t,r)}var i=e("../hash"),o=i.utils,s=o.assert;t.exports=n,n.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),s(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(var t=0;t<e.length;t++)e[t]^=54;this.inner=(new this.Hash).update(e);for(var t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},n.prototype.update=function(e,t){return this.inner.update(e,t),this},n.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"../hash":61}],64:[function(e,t,r){function n(){return this instanceof n?(p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],void(this.endian="little")):new n}function i(e,t,r,n){return 15>=e?t^r^n:31>=e?t&r|~t&n:47>=e?(t|~r)^n:63>=e?t&n|r&~n:t^(r|~n)}function o(e){return 15>=e?0:31>=e?1518500249:47>=e?1859775393:63>=e?2400959708:2840853838}function s(e){return 15>=e?1352829926:31>=e?1548603684:47>=e?1836072691:63>=e?2053994217:0}var a=e("../hash"),f=a.utils,u=f.rotl32,c=f.sum32,h=f.sum32_3,d=f.sum32_4,p=a.common.BlockHash;f.inherits(n,p),r.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],a=this.h[2],f=this.h[3],p=this.h[4],m=r,v=n,_=a,w=f,S=p,E=0;80>E;E++){var M=c(u(d(r,i(E,n,a,f),e[l[E]+t],o(E)),g[E]),p);r=p,p=f,f=u(a,10),a=n,n=M,M=c(u(d(m,i(79-E,v,_,w),e[b[E]+t],s(E)),y[E]),S),m=S,S=w,w=u(_,10),_=v,v=M}M=h(this.h[1],a,w),this.h[1]=h(this.h[2],f,S),this.h[2]=h(this.h[3],p,m),this.h[3]=h(this.h[4],r,v),this.h[4]=h(this.h[0],n,_),this.h[0]=M},n.prototype._digest=function(e){return"hex"===e?f.toHex32(this.h,"little"):f.split32(this.h,"little")};var l=[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],g=[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]},{"../hash":61}],65:[function(e,t,r){function n(){return this instanceof n?(V.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=$,void(this.W=new Array(64))):new n}function i(){return this instanceof i?(n.call(this),void(this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])):new i}function o(){return this instanceof o?(V.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,void(this.W=new Array(160))):new o}function s(){return this instanceof s?(o.call(this),void(this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428])):new s}function a(){return this instanceof a?(V.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],void(this.W=new Array(80))):new a}function f(e,t,r){return e&t^~e&r}function u(e,t,r){return e&t^e&r^t&r}function c(e,t,r){return e^t^r}function h(e){return O(e,2)^O(e,13)^O(e,22)}function d(e){return O(e,6)^O(e,11)^O(e,25)}function p(e){return O(e,7)^O(e,18)^e>>>3}function l(e){return O(e,17)^O(e,19)^e>>>10}function b(e,t,r,n){return 0===e?f(t,r,n):1===e||3===e?c(t,r,n):2===e?u(t,r,n):void 0}function g(e,t,r,n,i,o){var s=e&r^~e&i;return 0>s&&(s+=4294967296),s}function y(e,t,r,n,i,o){var s=t&n^~t&o;return 0>s&&(s+=4294967296),s}function m(e,t,r,n,i,o){var s=e&r^e&i^r&i;return 0>s&&(s+=4294967296),s}function v(e,t,r,n,i,o){var s=t&n^t&o^n&o;return 0>s&&(s+=4294967296),s}function _(e,t){var r=D(e,t,28),n=D(t,e,2),i=D(t,e,7),o=r^n^i;return 0>o&&(o+=4294967296),o}function w(e,t){var r=N(e,t,28),n=N(t,e,2),i=N(t,e,7),o=r^n^i;return 0>o&&(o+=4294967296),o}function S(e,t){var r=D(e,t,14),n=D(e,t,18),i=D(t,e,9),o=r^n^i;return 0>o&&(o+=4294967296),o}function E(e,t){var r=N(e,t,14),n=N(e,t,18),i=N(t,e,9),o=r^n^i;return 0>o&&(o+=4294967296),o}function M(e,t){var r=D(e,t,1),n=D(e,t,8),i=L(e,t,7),o=r^n^i;return 0>o&&(o+=4294967296),o}function A(e,t){var r=N(e,t,1),n=N(e,t,8),i=q(e,t,7),o=r^n^i;return 0>o&&(o+=4294967296),o}function k(e,t){var r=D(e,t,19),n=D(t,e,29),i=L(e,t,6),o=r^n^i;return 0>o&&(o+=4294967296),o}function x(e,t){var r=N(e,t,19),n=N(t,e,29),i=q(e,t,6),o=r^n^i;return 0>o&&(o+=4294967296),o}var I=e("../hash"),B=I.utils,R=B.assert,O=B.rotr32,T=B.rotl32,P=B.sum32,j=B.sum32_4,C=B.sum32_5,D=B.rotr64_hi,N=B.rotr64_lo,L=B.shr64_hi,q=B.shr64_lo,U=B.sum64,z=B.sum64_hi,K=B.sum64_lo,F=B.sum64_4_hi,H=B.sum64_4_lo,G=B.sum64_5_hi,Y=B.sum64_5_lo,V=I.common.BlockHash,$=[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],W=[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],X=[1518500249,1859775393,2400959708,3395469782];B.inherits(n,V),r.sha256=n,n.blockSize=512,n.outSize=256,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.W,n=0;16>n;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=j(l(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],b=this.h[5],g=this.h[6],y=this.h[7];R(this.k.length===r.length);for(var n=0;n<r.length;n++){var m=C(y,d(c),f(c,b,g),this.k[n],r[n]),v=P(h(i),u(i,o,s));y=g,g=b,b=c,c=P(a,m),a=s,s=o,o=i,i=P(m,v)}this.h[0]=P(this.h[0],i),this.h[1]=P(this.h[1],o),this.h[2]=P(this.h[2],s),this.h[3]=P(this.h[3],a),this.h[4]=P(this.h[4],c),this.h[5]=P(this.h[5],b),this.h[6]=P(this.h[6],g),this.h[7]=P(this.h[7],y)},n.prototype._digest=function(e){return"hex"===e?B.toHex32(this.h,"big"):B.split32(this.h,"big")},B.inherits(i,n),r.sha224=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")},B.inherits(o,V),r.sha512=o,o.blockSize=1024,o.outSize=512,o.hmacStrength=192,o.padLength=128,o.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;32>n;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=k(r[n-4],r[n-3]),o=x(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],f=M(r[n-30],r[n-29]),u=A(r[n-30],r[n-29]),c=r[n-32],h=r[n-31];r[n]=F(i,o,s,a,f,u,c,h),r[n+1]=H(i,o,s,a,f,u,c,h)}},o.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],f=this.h[5],u=this.h[6],c=this.h[7],h=this.h[8],d=this.h[9],p=this.h[10],l=this.h[11],b=this.h[12],M=this.h[13],A=this.h[14],k=this.h[15];R(this.k.length===r.length);for(var x=0;x<r.length;x+=2){var I=A,B=k,O=S(h,d),T=E(h,d),P=g(h,d,p,l,b,M),j=y(h,d,p,l,b,M),C=this.k[x],D=this.k[x+1],N=r[x],L=r[x+1],q=G(I,B,O,T,P,j,C,D,N,L),F=Y(I,B,O,T,P,j,C,D,N,L),I=_(n,i),B=w(n,i),O=m(n,i,o,s,a,f),T=v(n,i,o,s,a,f),H=z(I,B,O,T),V=K(I,B,O,T);A=b,k=M,b=p,M=l,p=h,l=d,h=z(u,c,q,F),d=K(c,c,q,F),u=a,c=f,a=o,f=s,o=n,s=i,n=z(q,F,H,V),i=K(q,F,H,V)}U(this.h,0,n,i),U(this.h,2,o,s),U(this.h,4,a,f),U(this.h,6,u,c),U(this.h,8,h,d),U(this.h,10,p,l),U(this.h,12,b,M),U(this.h,14,A,k)},o.prototype._digest=function(e){return"hex"===e?B.toHex32(this.h,"big"):B.split32(this.h,"big")},B.inherits(s,o),r.sha384=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(e){return"hex"===e?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")},B.inherits(a,V),r.sha1=a,a.blockSize=512,a.outSize=160,a.hmacStrength=80,a.padLength=64,a.prototype._update=function(e,t){for(var r=this.W,n=0;16>n;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=T(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);for(var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],f=this.h[4],n=0;n<r.length;n++){var u=~~(n/20),c=C(T(i,5),b(u,o,s,a),f,r[n],X[u]);f=a,a=s,s=T(o,30),o=i,i=c}this.h[0]=P(this.h[0],i),this.h[1]=P(this.h[1],o),this.h[2]=P(this.h[2],s),this.h[3]=P(this.h[3],a),this.h[4]=P(this.h[4],f)},a.prototype._digest=function(e){return"hex"===e?B.toHex32(this.h,"big"):B.split32(this.h,"big")}},{"../hash":61}],66:[function(e,t,r){function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t){e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}else for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}function i(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t}function o(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function s(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=f(i.toString(16))}return r}function a(e){return 1===e.length?"0"+e:e}function f(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 u(e,t,r,n){var i=r-t;y(i%4===0);for(var o=new Array(i/4),s=0,a=t;s<o.length;s++,a+=4){var f;f="big"===n?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],o[s]=f>>>0}return o}function c(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function h(e,t){return e>>>t|e<<32-t}function d(e,t){return e<<t|e>>>32-t}function p(e,t){return e+t>>>0}function l(e,t,r){return e+t+r>>>0}function b(e,t,r,n){return e+t+r+n>>>0}function g(e,t,r,n,i){return e+t+r+n+i>>>0}function y(e,t){if(!e)throw new Error(t||"Assertion failed")}function m(e,t,r,n){var i=e[t],o=e[t+1],s=n+o>>>0,a=(n>s?1:0)+r+i;e[t]=a>>>0,e[t+1]=s}function v(e,t,r,n){var i=t+n>>>0,o=(t>i?1:0)+e+r;return o>>>0}function _(e,t,r,n){var i=t+n;return i>>>0}function w(e,t,r,n,i,o,s,a){var f=0,u=t;u=u+n>>>0,f+=t>u?1:0,u=u+o>>>0,f+=o>u?1:0,u=u+a>>>0,f+=a>u?1:0;var c=e+r+i+s+f;return c>>>0}function S(e,t,r,n,i,o,s,a){var f=t+n+o+a;return f>>>0}function E(e,t,r,n,i,o,s,a,f,u){var c=0,h=t;h=h+n>>>0,c+=t>h?1:0,h=h+o>>>0,c+=o>h?1:0,h=h+a>>>0,c+=a>h?1:0,h=h+u>>>0,c+=u>h?1:0;var d=e+r+i+s+f+c;return d>>>0}function M(e,t,r,n,i,o,s,a,f,u){var c=t+n+o+a+u;return c>>>0}function A(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}function k(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}function x(e,t,r){return e>>>r}function I(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}var B=r,R=e("inherits");B.toArray=n,B.toHex=i,B.htonl=o,B.toHex32=s,B.zero2=a,B.zero8=f,B.join32=u,B.split32=c,B.rotr32=h,B.rotl32=d,B.sum32=p,B.sum32_3=l,B.sum32_4=b,B.sum32_5=g,B.assert=y,B.inherits=R,r.sum64=m,r.sum64_hi=v,r.sum64_lo=_,r.sum64_4_hi=w,r.sum64_4_lo=S,r.sum64_5_hi=E,r.sum64_5_lo=M,r.rotr64_hi=A,r.rotr64_lo=k,r.shr64_hi=x,r.shr64_lo=I},{inherits:202}],67:[function(e,t,r){t.exports={name:"elliptic",version:"6.0.2",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{test:"make lint && istanbul test _mocha --reporter=spec test/*-test.js",coveralls:"cat ./coverage/lcov.info | coveralls"},repository:{type:"git",url:"git+ssh://[email protected]/indutny/elliptic.git"},keywords:["EC","Elliptic","curve","Cryptography"],author:{name:"Fedor Indutny",email:"[email protected]"},license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{browserify:"^3.44.2",coveralls:"^2.11.3",istanbul:"^0.3.17",jscs:"^1.11.3",jshint:"^2.6.0",mocha:"^2.1.0","uglify-js":"^2.4.13"},dependencies:{"bn.js":"^4.0.0",brorand:"^1.0.1","hash.js":"^1.0.0",inherits:"^2.0.1"},gitHead:"330106da186712d228d79bc71ae8e7e68565fa9d",_id:"[email protected]",_shasum:"219b96cd92aa9885d91d31c1fd42eaa5eb4483a9",_from:"elliptic@>=6.0.0 <7.0.0",_npmVersion:"3.3.6",_nodeVersion:"5.0.0",_npmUser:{name:"indutny",email:"[email protected]"},dist:{shasum:"219b96cd92aa9885d91d31c1fd42eaa5eb4483a9",tarball:"http://registry.npmjs.org/elliptic/-/elliptic-6.0.2.tgz"},maintainers:[{name:"indutny",email:"[email protected]"}],directories:{},_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.0.2.tgz"}},{}],68:[function(e,t,r){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"}},{}],69:[function(e,t,r){var n=e("asn1.js"),i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("modulus")["int"](),this.key("publicExponent")["int"](),this.key("privateExponent")["int"](),this.key("prime1")["int"](),this.key("prime2")["int"](),this.key("exponent1")["int"](),this.key("exponent2")["int"](),this.key("coefficient")["int"]())});r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus")["int"](),this.key("publicExponent")["int"]())});r.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});r.PublicKey=s;var a=n.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())}),f=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version")["int"](),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});r.PrivateKey=f;var u=n.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())});r.EncryptedPrivateKey=u;var c=n.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"]())});r.DSAPrivateKey=c,r.DSAparam=n.define("DSAparam",function(){this["int"]()});var h=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=h;var d=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r")["int"](),this.key("s")["int"]())})},{"asn1.js":72}],70:[function(e,t,r){(function(r){var n=/Proc-Type: 4,ENCRYPTED\r?\nDEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\r?\n\r?\n([0-9A-z\n\r\+\/\=]+)\r?\n/m,i=/^-----BEGIN (.*) KEY-----\r?\n/m,o=/^-----BEGIN (.*) KEY-----\r?\n([0-9A-z\n\r\+\/\=]+)\r?\n-----END \1 KEY-----$/m,s=e("evp_bytestokey"),a=e("browserify-aes");t.exports=function(e,t){var f,u=e.toString(),c=u.match(n);if(c){var h="aes"+c[1],d=new r(c[2],"hex"),p=new r(c[3].replace(/\r?\n/g,""),"base64"),l=s(t,d.slice(0,8),parseInt(c[1],10)).key,b=[],g=a.createDecipheriv(h,l,d);b.push(g.update(p)),b.push(g["final"]()),f=r.concat(b)}else{var y=u.match(o);f=new r(y[2].replace(/\r?\n/g,""),"base64")}var m=u.match(i)[1]+" KEY";return{tag:m,data:f}}}).call(this,e("buffer").Buffer)},{"browserify-aes":89,buffer:4,evp_bytestokey:104}],71:[function(e,t,r){(function(r){function n(e){var t;"object"!=typeof e||r.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new r(e));var n,s,f=a(e,t),u=f.tag,c=f.data;switch(u){case"PUBLIC KEY":switch(s=o.PublicKey.decode(c,"der"),n=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=o.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":c=o.EncryptedPrivateKey.decode(c,"der"),c=i(c,t);case"PRIVATE KEY":switch(s=o.PrivateKey.decode(c,"der"),n=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:o.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=o.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return c=o.ECPrivateKey.decode(c,"der"),{curve:c.parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+u)}}function i(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=s[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=u.pbkdf2Sync(t,n,i,h),p=f.createDecipheriv(o,d,a),l=[];return l.push(p.update(c)),l.push(p["final"]()),r.concat(l)}var o=e("./asn1"),s=e("./aesid.json"),a=e("./fixProc"),f=e("browserify-aes"),u=e("pbkdf2");t.exports=n,n.signature=o.signature}).call(this,e("buffer").Buffer)},{"./aesid.json":68,"./asn1":69,"./fixProc":70,"browserify-aes":89,buffer:4,pbkdf2:154}],72:[function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":73,"./asn1/base":75,"./asn1/constants":79,"./asn1/decoders":81,"./asn1/encoders":84,"bn.js":42}],73:[function(e,t,r){function n(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var i=e("../asn1"),o=e("inherits"),s=r;s.define=function(e,t){return new n(e,t)},n.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){r=function(e){this._initNamed(e)}}return o(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},n.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},n.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},n.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},n.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":72,inherits:202,vm:235}],74:[function(e,t,r){function n(e,t){return s.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,void(this.length=e.length)):void this.error("Input not Buffer")}function i(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof i||(e=new i(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(e>=0&&255>=e))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 o=e("inherits"),s=e("../base").Reporter,a=e("buffer").Buffer;o(n,s),r.DecoderBuffer=n,n.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},n.prototype.restore=function(e){var t=new n(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,s.prototype.restore.call(this,e.reporter),t},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},n.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new n(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},n.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=i,i.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(r){r.join(e,t),t+=r.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":75,buffer:4,inherits:202}],75:[function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":74,"./node":76,"./reporter":77}],76:[function(e,t,r){function n(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r["default"]=null,r.explicit=null,r.implicit=null,r.parent||(r.children=[],this._wrap())}var i=e("../base").Reporter,o=e("../base").EncoderBuffer,s=e("minimalistic-assert"),a=["seq","seqof","set","setof","octstr","bitstr","objid","bool","gentime","utctime","null_","enum","int","ia5str","utf8str","bmpstr","numstr","printstr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any"].concat(a),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=n;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit"];n.prototype.clone=function(){var e=this._baseState,t={};c.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},n.prototype._wrap=function(){var e=this._baseState;f.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},n.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},n.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},u.forEach(function(e){n.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),a.forEach(function(e){n.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),n.prototype.use=function(e){var t=this._baseState;return s(null===t.use),t.use=e,this},n.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},n.prototype.def=function(e){var t=this._baseState;return s(null===t["default"]),t["default"]=e,t.optional=!0,this},n.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},n.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},n.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},n.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},n.prototype.any=function(){var e=this._baseState;return e.any=!0,this},n.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},n.prototype._decode=function(e){
var t=this._baseState;if(null===t.parent)return e.wrapResult(t.children[0]._decode(e));var r,n=t["default"],i=!0;if(null!==t.key&&(r=e.enterKey(t.key)),t.optional){var o=null;if(null!==t.explicit?o=t.explicit:null!==t.implicit?o=t.implicit:null!==t.tag&&(o=t.tag),null!==o||t.any){if(i=this._peekTag(e,o,t.any),e.isError(i))return i}else{var s=e.save();try{null===t.choice?this._decodeGeneric(t.tag,e):this._decodeChoice(e),i=!0}catch(a){i=!1}e.restore(s)}}var f;if(t.obj&&i&&(f=e.enterObject()),i){if(null!==t.explicit){var u=this._decodeTag(e,t.explicit);if(e.isError(u))return u;e=u}if(null===t.use&&null===t.choice){if(t.any)var s=e.save();var c=this._decodeTag(e,null!==t.implicit?t.implicit:t.tag,t.any);if(e.isError(c))return c;t.any?n=e.raw(s):e=c}if(n=t.any?n:null===t.choice?this._decodeGeneric(t.tag,e):this._decodeChoice(e),e.isError(n))return n;if(!t.any&&null===t.choice&&null!==t.children){var h=t.children.some(function(t){t._decode(e)});if(h)return err}}return t.obj&&i&&(n=e.leaveObject(f)),null===t.key||null===n&&i!==!0||e.leaveKey(r,t.key,n),n},n.prototype._decodeGeneric=function(e,t){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0]):"octstr"===e||"bitstr"===e?this._decodeStr(t,e):"ia5str"===e||"utf8str"===e||"bmpstr"===e?this._decodeStr(t,e):"numstr"===e||"printstr"===e?this._decodeStr(t,e):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1]):"objid"===e?this._decodeObjid(t,null,null):"gentime"===e||"utctime"===e?this._decodeTime(t,e):"null_"===e?this._decodeNull(t):"bool"===e?this._decodeBool(t):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0]):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t):t.error("unknown tag: "+e)},n.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},n.prototype._decodeChoice=function(e){var t=this._baseState,r=null,n=!1;return Object.keys(t.choice).some(function(i){var o=e.save(),s=t.choice[i];try{var a=s._decode(e);if(e.isError(a))return!1;r={type:i,value:a},n=!0}catch(f){return e.restore(o),!1}return!0},this),n?r:e.error("Choice not matched")},n.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},n.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n["default"]||n["default"]!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},n.prototype._encodeValue=function(e,t,r){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new i);var o=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n["default"])return;e=n["default"]}var s=null,a=!1;if(n.any)o=this._createEncoderBuffer(e);else if(n.choice)o=this._encodeChoice(e,t);else if(n.children)s=n.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},f))}else null!==n.use?o=this._getUse(n.use,r)._encode(e,t):(s=this._encodePrimitive(n.tag,e),a=!0);var o;if(!n.any&&null===n.choice){var u=null!==n.implicit?n.implicit:n.tag,c=null===n.implicit?"universal":"context";null===u?null===n.use&&t.error("Tag could be ommited only for .use()"):null===n.use&&(o=this._encodeComposite(u,a,c,s))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},n.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},n.prototype._encodePrimitive=function(e,t){var r=this._baseState;if("octstr"===e||"bitstr"===e||"ia5str"===e)return this._encodeStr(t,e);if("utf8str"===e||"bmpstr"===e)return this._encodeStr(t,e);if("numstr"===e||"printstr"===e)return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);throw new Error("Unsupported tag: "+e)},n.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},n.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":75,"minimalistic-assert":86}],77:[function(e,t,r){function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}var o=e("inherits");r.Reporter=n,n.prototype.isError=function(e){return e instanceof i},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.leaveKey=function(e,t,r){var n=this._reporterState;n.path=n.path.slice(0,e-1),null!==n.obj&&(n.obj[t]=r)},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},o(i,Error),i.prototype.rethrow=function(e){return this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace(this,i),this}},{inherits:202}],78:[function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.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"},r.tagByName=n._reverse(r.tag)},{"../constants":79}],79:[function(e,t,r){var n=r;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r=0|r);var n=e[r];t[n]=r}),t},n.der=e("./der")},{"./der":78}],80:[function(e,t,r){function n(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){u.Node.call(this,"der",e)}function o(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=h.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){var o=r;for(r=0;128===(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var s=h.tag[r];return{cls:n,primitive:i,tag:r,tagStr:s}}function s(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>=4)return e.error("length octect is too long");n=0;for(var o=0;i>o;o++){n<<=8;var s=e.readUInt8(r);if(e.isError(s))return s;n|=s}return n}var a=e("inherits"),f=e("../../asn1"),u=f.base,c=f.bignum,h=f.constants.der;t.exports=n,n.prototype.decode=function(e,t){return e instanceof u.DecoderBuffer||(e=new u.DecoderBuffer(e,t)),this.tree._decode(e,t)},a(i,u.Node),i.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=o(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||r)},i.prototype._decodeTag=function(e,t,r){var n=o(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=s(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),f=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(f)?f:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},i.prototype._skipUntilEnd=function(e,t){for(;;){var r=o(e,t);if(e.isError(r))return r;var n=s(e,r.primitive,t);if(e.isError(n))return n;var i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},i.prototype._decodeList=function(e,t,r){for(var n=[];!e.isEmpty();){var i=this._peekTag(e,"end");if(e.isError(i))return i;var o=r.decode(e,"der");if(e.isError(o)&&i)break;n.push(o)}return n},i.prototype._decodeStr=function(e,t){if("octstr"===t)return e.raw();if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("ia5str"===t||"utf8str"===t)return e.raw().toString();if("numstr"===t){var n=e.raw().toString("ascii");return this._isNumstr(n)?n:e.error("Decoding of string type: numstr unsupported characters")}if("printstr"===t){var i=e.raw().toString("ascii");return this._isPrintstr(i)?i:e.error("Decoding of string type: printstr unsupported characters")}if("bmpstr"===t){var o=e.raw();if(o.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var s="",a=0;a<o.length/2;a++)s+=String.fromCharCode(o.readUInt16BE(2*a));return s}return e.error("Decoding of string type: "+t+" unsupported")},i.prototype._decodeObjid=function(e,t,r){for(var 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 s=n[0]/40|0,a=n[0]%40;if(r?result=n:result=[s,a].concat(n.slice(1)),t){var f=t[result.join(" ")];void 0===f&&(f=t[result.join(".")]),void 0!==f&&(result=f)}return result},i.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),f=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),f=0|r.slice(10,12);n=70>n?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,f,0)},i.prototype._decodeNull=function(e){return null},i.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},i.prototype._decodeInt=function(e,t){var r=e.raw(),n=new c(r);return t&&(n=t[n.toString(10)]||n),n},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":72,inherits:202}],81:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":80,"./pem":82}],82:[function(e,t,r){function n(e){s.call(this,e),this.enc="pem"}var i=e("inherits"),o=e("buffer").Buffer,s=(e("../../asn1"),e("./der"));i(n,s),t.exports=n,n.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,f=-1,u=0;u<r.length;u++){var c=r[u].match(i);if(null!==c&&c[2]===n){if(-1!==a){if("END"!==c[1])break;f=u;break}if("BEGIN"!==c[1])break;a=u}}if(-1===a||-1===f)throw new Error("PEM section not found for: "+n);var h=r.slice(a+1,f).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new o(h,"base64");return s.prototype.decode.call(this,d,t)}},{"../../asn1":72,"./der":80,buffer:4,inherits:202}],83:[function(e,t,r){function n(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){c.Node.call(this,"der",e)}function o(e){return 10>e?"0"+e:e}function s(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),h.tagByName.hasOwnProperty(e))i=h.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=h.tagClassByName[r||"universal"]<<6)}var a=e("inherits"),f=e("buffer").Buffer,u=e("../../asn1"),c=u.base,h=(u.bignum,u.constants.der);t.exports=n,n.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},a(i,c.Node),i.prototype._encodeComposite=function(e,t,r,n){var i=s(e,t,r,this.reporter);if(n.length<128){var o=new f(2);return o[0]=i,o[1]=n.length,this._createEncoderBuffer([o,n])}for(var a=1,u=n.length;u>=256;u>>=8)a++;var o=new f(2+a);o[0]=i,o[1]=128|a;for(var u=1+a,c=n.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,n])},i.prototype._encodeStr=function(e,t){if("octstr"===t)return this._createEncoderBuffer(e);if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("ia5str"===t||"utf8str"===t)return this._createEncoderBuffer(e);if("bmpstr"===t){for(var r=new f(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}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"):this.reporter.error("Encoding of string type: "+t+" unsupported")},i.prototype._encodeObjid=function(e,t,r){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 n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,n=0;n<e.length;n++){var o=e[n];for(i++;o>=128;o>>=7)i++}for(var s=new f(i),a=s.length-1,n=e.length-1;n>=0;n--){var o=e[n];for(s[a--]=127&o;(o>>=7)>0;)s[a--]=128|127&o}return this._createEncoderBuffer(s)},i.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[o(n.getFullYear()),o(n.getUTCMonth()+1),o(n.getUTCDate()),o(n.getUTCHours()),o(n.getUTCMinutes()),o(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[o(n.getFullYear()%100),o(n.getUTCMonth()+1),o(n.getUTCDate()),o(n.getUTCHours()),o(n.getUTCMinutes()),o(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.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&&!f.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new f(r)}if(f.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new f(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(128>e)return this._createEncoderBuffer(e);if(256>e)return this._createEncoderBuffer([0,e]);for(var n=1,o=e;o>=256;o>>=8)n++;for(var i=new Array(n),o=i.length-1;o>=0;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new f(i))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i["default"])return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i["default"],t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},{"../../asn1":72,buffer:4,inherits:202}],84:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":83,"./pem":85}],85:[function(e,t,r){function n(e){o.call(this,e),this.enc="pem"}var i=e("inherits"),o=(e("buffer").Buffer,e("../../asn1"),e("./der"));i(n,o),t.exports=n,n.prototype.encode=function(e,t){for(var r=o.prototype.encode.call(this,e),n=r.toString("base64"),i=["-----BEGIN "+t.label+"-----"],s=0;s<n.length;s+=64)i.push(n.slice(s,s+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},{"../../asn1":72,"./der":83,buffer:4,inherits:202}],86:[function(e,t,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],87:[function(e,t,r){arguments[4][11][0].apply(r,arguments)},{buffer:4,dup:11}],88:[function(e,t,r){arguments[4][12][0].apply(r,arguments)},{"./aes":87,"./ghash":92,buffer:4,"buffer-xor":101,"cipher-base":102,dup:12,inherits:202}],89:[function(e,t,r){arguments[4][13][0].apply(r,arguments)},{"./decrypter":90,"./encrypter":91,"./modes":93,dup:13}],90:[function(e,t,r){arguments[4][14][0].apply(r,arguments)},{"./aes":87,"./authCipher":88,"./modes":93,"./modes/cbc":94,"./modes/cfb":95,"./modes/cfb1":96,"./modes/cfb8":97,"./modes/ctr":98,"./modes/ecb":99,"./modes/ofb":100,"./streamCipher":103,buffer:4,"cipher-base":102,dup:14,evp_bytestokey:104,inherits:202}],91:[function(e,t,r){arguments[4][15][0].apply(r,arguments)},{"./aes":87,"./authCipher":88,"./modes":93,"./modes/cbc":94,"./modes/cfb":95,"./modes/cfb1":96,"./modes/cfb8":97,"./modes/ctr":98,"./modes/ecb":99,"./modes/ofb":100,"./streamCipher":103,buffer:4,"cipher-base":102,dup:15,evp_bytestokey:104,inherits:202}],92:[function(e,t,r){arguments[4][16][0].apply(r,arguments)},{buffer:4,dup:16}],93:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{dup:17}],94:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{"buffer-xor":101,dup:18}],95:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{buffer:4,"buffer-xor":101,dup:19}],96:[function(e,t,r){arguments[4][20][0].apply(r,arguments)},{buffer:4,dup:20}],97:[function(e,t,r){arguments[4][21][0].apply(r,arguments)},{buffer:4,dup:21}],98:[function(e,t,r){arguments[4][22][0].apply(r,arguments)},{buffer:4,"buffer-xor":101,dup:22}],99:[function(e,t,r){arguments[4][23][0].apply(r,arguments)},{dup:23}],100:[function(e,t,r){arguments[4][24][0].apply(r,arguments)},{buffer:4,"buffer-xor":101,dup:24}],101:[function(e,t,r){arguments[4][25][0].apply(r,arguments)},{buffer:4,dup:25}],102:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{buffer:4,dup:26,inherits:202,stream:223,string_decoder:230}],103:[function(e,t,r){arguments[4][27][0].apply(r,arguments)},{"./aes":87,buffer:4,"cipher-base":102,dup:27,inherits:202}],104:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{buffer:4,"create-hash/md5":135,dup:38}],105:[function(e,t,r){(function(r){function n(e,t,r,n){var s=g(t);if(s.curve){if("ecdsa"!==n)throw new Error("wrong private key type");return i(e,s)}if("dsa"===s.type){if("dsa"!==n)throw new Error("wrong private key type");return o(e,s,r)}if("rsa"!==n)throw new Error("wrong private key type");for(var a=s.modulus.byteLength(),f=[0,1];e.length+f.length+1<a;)f.push(255);f.push(0);for(var u=-1;++u<e.length;)f.push(e[u]);var c=p(f,s);return c}function i(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new m(n),o=i.genKeyPair();o._importPrivate(t.privateKey);var s=o.sign(e);return new r(s.toDER())}function o(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,u=t.params.q,d=t.params.g,p=new y(0),l=f(e,u).mod(u),b=!1,g=a(i,u,e,r);b===!1;)n=c(u,g,r),p=h(d,n,o,u),b=n.invm(u).imul(l.add(i.mul(p))).mod(u),b.cmpn(0)||(b=!1,p=new y(0));return s(p,b)}function s(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=e.length+t.length+4,i=[48,n,2,e.length];return i=i.concat(e,[2,t.length],t),new r(i)}function a(e,t,n,i){if(e=new r(e.toArray()),e.length<t.byteLength()){var o=new r(t.byteLength()-e.length);o.fill(0),e=r.concat([o,e])}var s=n.length,a=u(n,t),f=new r(s);f.fill(1);var c=new r(s);return c.fill(0),c=d(i,c).update(f).update(new r([0])).update(e).update(a).digest(),f=d(i,c).update(f).digest(),c=d(i,c).update(f).update(new r([1])).update(e).update(a).digest(),f=d(i,c).update(f).digest(),{k:c,v:f}}function f(e,t){var r=new y(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function u(e,t){e=f(e,t),e=e.mod(t);var n=new r(e.toArray());if(n.length<t.byteLength()){var i=new r(t.byteLength()-n.length);i.fill(0),n=r.concat([i,n])}return n}function c(e,t,n){var i,o;do{for(i=new r("");8*i.length<e.bitLength();)t.v=d(n,t.k).update(t.v).digest(),i=r.concat([i,t.v]);o=f(i,e),t.k=d(n,t.k).update(t.v).update(new r([0])).digest(),t.v=d(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,r,n){return e.toRed(y.mont(r)).redPow(t).fromRed().mod(n)}var d=e("create-hmac"),p=e("browserify-rsa"),l=e("./curves"),b=e("elliptic"),g=e("parse-asn1"),y=e("bn.js"),m=b.ec;t.exports=n,t.exports.getKey=a,t.exports.makeKey=c}).call(this,e("buffer").Buffer)},{"./curves":41,"bn.js":42,"browserify-rsa":43,buffer:4,"create-hmac":146,elliptic:44,"parse-asn1":71}],106:[function(e,t,r){(function(r){function n(e,t,n,s){var a=u(n);if("ec"===a.type){if("ecdsa"!==s)throw new Error("wrong public key type");return i(e,t,a)}if("dsa"===a.type){if("dsa"!==s)throw new Error("wrong public key type");return o(e,t,a)}if("rsa"!==s)throw new Error("wrong public key type");for(var f=a.modulus.byteLength(),h=[1],d=0;t.length+h.length+2<f;)h.push(255),d++;h.push(0);for(var p=-1;++p<t.length;)h.push(t[p]);h=new r(h);var l=c.mont(a.modulus);e=new c(e).toRed(l),e=e.redPow(new c(a.publicExponent)),e=new r(e.fromRed().toArray());var b=0;for(8>d&&(b=1),f=Math.min(e.length,h.length),e.length!==h.length&&(b=1),p=-1;++p<f;)b|=e[p]^h[p];return 0===b}function i(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new h(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}function o(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,f=u.signature.decode(e,"der"),h=f.s,d=f.r;s(h,i),s(d,i);var p=c.mont(n),l=h.invm(i),b=o.toRed(p).redPow(new c(t).mul(l).mod(i)).fromRed().mul(a.toRed(p).redPow(d.mul(l).mod(i)).fromRed()).mod(n).mod(i);return!b.cmp(d)}function s(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("./curves"),f=e("elliptic"),u=e("parse-asn1"),c=e("bn.js"),h=f.ec;t.exports=n}).call(this,e("buffer").Buffer)},{"./curves":41,"bn.js":42,buffer:4,elliptic:44,"parse-asn1":71}],107:[function(e,t,r){(function(r){function n(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function i(e,t,n){Array.isArray(e)||(e=e.toArray());var i=new r(e);if(n&&i.length<n){var o=new r(n-i.length);o.fill(0),i=r.concat([o,i])}return t?i.toString(t):i}var o=e("elliptic"),s=e("bn.js");t.exports=function(e){return new n(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,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,n){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var o=this.curve.keyFromPublic(e).getPublic(),s=o.mul(this.keys.getPrivate()).getX();return i(s,n,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),i(r,e)},n.prototype.getPrivateKey=function(e){return i(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new s(e);return n=n.toString(16),this.keys._importPrivate(n),this}}).call(this,e("buffer").Buffer)},{"bn.js":108,buffer:4,elliptic:109}],108:[function(e,t,r){arguments[4][42][0].apply(r,arguments)},{dup:42}],109:[function(e,t,r){arguments[4][44][0].apply(r,arguments)},{"../package.json":132,"./elliptic/curve":112,"./elliptic/curves":115,"./elliptic/ec":116,"./elliptic/eddsa":119,"./elliptic/hmac-drbg":122,"./elliptic/utils":124,brorand:125,dup:44}],110:[function(e,t,r){arguments[4][45][0].apply(r,arguments)},{"../../elliptic":109,"bn.js":108,dup:45}],111:[function(e,t,r){arguments[4][46][0].apply(r,arguments)},{"../../elliptic":109,"../curve":112,"bn.js":108,dup:46,inherits:202}],112:[function(e,t,r){arguments[4][47][0].apply(r,arguments)},{"./base":110,"./edwards":111,"./mont":113,"./short":114,dup:47}],113:[function(e,t,r){arguments[4][48][0].apply(r,arguments)},{"../../elliptic":109,"../curve":112,"bn.js":108,dup:48,inherits:202}],114:[function(e,t,r){arguments[4][49][0].apply(r,arguments)},{"../../elliptic":109,"../curve":112,"bn.js":108,dup:49,inherits:202}],115:[function(e,t,r){arguments[4][50][0].apply(r,arguments)},{"../elliptic":109,"./precomputed/secp256k1":123,dup:50,"hash.js":126}],116:[function(e,t,r){arguments[4][51][0].apply(r,arguments)},{"../../elliptic":109,"./key":117,"./signature":118,"bn.js":108,dup:51}],117:[function(e,t,r){arguments[4][52][0].apply(r,arguments)},{"bn.js":108,dup:52}],118:[function(e,t,r){arguments[4][53][0].apply(r,arguments)},{"../../elliptic":109,"bn.js":108,dup:53}],119:[function(e,t,r){arguments[4][54][0].apply(r,arguments)},{"../../elliptic":109,"./key":120,"./signature":121,dup:54,"hash.js":126}],120:[function(e,t,r){arguments[4][55][0].apply(r,arguments)},{"../../elliptic":109,dup:55}],121:[function(e,t,r){arguments[4][56][0].apply(r,arguments)},{"../../elliptic":109,"bn.js":108,dup:56}],122:[function(e,t,r){arguments[4][57][0].apply(r,arguments)},{"../elliptic":109,dup:57,"hash.js":126}],123:[function(e,t,r){arguments[4][58][0].apply(r,arguments)},{dup:58}],124:[function(e,t,r){arguments[4][59][0].apply(r,arguments)},{"bn.js":108,dup:59}],125:[function(e,t,r){arguments[4][60][0].apply(r,arguments)},{dup:60}],126:[function(e,t,r){arguments[4][61][0].apply(r,arguments)},{"./hash/common":127,"./hash/hmac":128,"./hash/ripemd":129,"./hash/sha":130,"./hash/utils":131,dup:61}],127:[function(e,t,r){arguments[4][62][0].apply(r,arguments)},{"../hash":126,dup:62}],128:[function(e,t,r){arguments[4][63][0].apply(r,arguments)},{"../hash":126,dup:63}],129:[function(e,t,r){arguments[4][64][0].apply(r,arguments)},{"../hash":126,dup:64}],130:[function(e,t,r){arguments[4][65][0].apply(r,arguments)},{"../hash":126,dup:65}],131:[function(e,t,r){arguments[4][66][0].apply(r,arguments)},{dup:66,inherits:202}],132:[function(e,t,r){arguments[4][67][0].apply(r,arguments)},{dup:67}],133:[function(e,t,r){(function(r){"use strict";function n(e){u.call(this,"digest"),this._hash=e,this.buffers=[]}function i(e){u.call(this,"digest"),this._hash=e}var o=e("inherits"),s=e("./md5"),a=e("ripemd160"),f=e("sha.js"),u=e("cipher-base");o(n,u),n.prototype._update=function(e){this.buffers.push(e)},n.prototype._final=function(){var e=r.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},o(i,u),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),"md5"===e?new n(s):"rmd160"===e||"ripemd160"===e?new n(a):new i(f(e))}}).call(this,e("buffer").Buffer)},{"./md5":135,buffer:4,"cipher-base":136,inherits:202,ripemd160:137,"sha.js":139}],134:[function(e,t,r){(function(e){"use strict";function t(t,r){if(t.length%o!==0){var n=t.length+(o-t.length%o);t=e.concat([t,s],n)}for(var i=[],a=r?t.readInt32BE:t.readInt32LE,f=0;f<t.length;f+=o)i.push(a.call(t,f));return i}function n(t,r,n){for(var i=new e(r),o=n?i.writeInt32BE:i.writeInt32LE,s=0;s<t.length;s++)o.call(i,t[s],4*s,!0);return i}function i(r,i,o,s){e.isBuffer(r)||(r=new e(r));var f=i(t(r,s),r.length*a);return n(f,o,s)}var o=4,s=new e(o);s.fill(0);var a=8;r.hash=i}).call(this,e("buffer").Buffer)},{buffer:4}],135:[function(e,t,r){"use strict";function n(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;for(var r=1732584193,n=-271733879,i=-1732584194,c=271733878,h=0;h<e.length;h+=16){var d=r,p=n,l=i,b=c;r=o(r,n,i,c,e[h+0],7,-680876936),c=o(c,r,n,i,e[h+1],12,-389564586),i=o(i,c,r,n,e[h+2],17,606105819),n=o(n,i,c,r,e[h+3],22,-1044525330),r=o(r,n,i,c,e[h+4],7,-176418897),c=o(c,r,n,i,e[h+5],12,1200080426),i=o(i,c,r,n,e[h+6],17,-1473231341),n=o(n,i,c,r,e[h+7],22,-45705983),r=o(r,n,i,c,e[h+8],7,1770035416),c=o(c,r,n,i,e[h+9],12,-1958414417),i=o(i,c,r,n,e[h+10],17,-42063),n=o(n,i,c,r,e[h+11],22,-1990404162),r=o(r,n,i,c,e[h+12],7,1804603682),c=o(c,r,n,i,e[h+13],12,-40341101),i=o(i,c,r,n,e[h+14],17,-1502002290),n=o(n,i,c,r,e[h+15],22,1236535329),r=s(r,n,i,c,e[h+1],5,-165796510),c=s(c,r,n,i,e[h+6],9,-1069501632),i=s(i,c,r,n,e[h+11],14,643717713),n=s(n,i,c,r,e[h+0],20,-373897302),r=s(r,n,i,c,e[h+5],5,-701558691),c=s(c,r,n,i,e[h+10],9,38016083),i=s(i,c,r,n,e[h+15],14,-660478335),n=s(n,i,c,r,e[h+4],20,-405537848),r=s(r,n,i,c,e[h+9],5,568446438),c=s(c,r,n,i,e[h+14],9,-1019803690),i=s(i,c,r,n,e[h+3],14,-187363961),n=s(n,i,c,r,e[h+8],20,1163531501),r=s(r,n,i,c,e[h+13],5,-1444681467),c=s(c,r,n,i,e[h+2],9,-51403784),i=s(i,c,r,n,e[h+7],14,1735328473),n=s(n,i,c,r,e[h+12],20,-1926607734),r=a(r,n,i,c,e[h+5],4,-378558),c=a(c,r,n,i,e[h+8],11,-2022574463),i=a(i,c,r,n,e[h+11],16,1839030562),n=a(n,i,c,r,e[h+14],23,-35309556),r=a(r,n,i,c,e[h+1],4,-1530992060),c=a(c,r,n,i,e[h+4],11,1272893353),i=a(i,c,r,n,e[h+7],16,-155497632),n=a(n,i,c,r,e[h+10],23,-1094730640),r=a(r,n,i,c,e[h+13],4,681279174),c=a(c,r,n,i,e[h+0],11,-358537222),i=a(i,c,r,n,e[h+3],16,-722521979),n=a(n,i,c,r,e[h+6],23,76029189),r=a(r,n,i,c,e[h+9],4,-640364487),c=a(c,r,n,i,e[h+12],11,-421815835),i=a(i,c,r,n,e[h+15],16,530742520),n=a(n,i,c,r,e[h+2],23,-995338651),r=f(r,n,i,c,e[h+0],6,-198630844),c=f(c,r,n,i,e[h+7],10,1126891415),i=f(i,c,r,n,e[h+14],15,-1416354905),n=f(n,i,c,r,e[h+5],21,-57434055),r=f(r,n,i,c,e[h+12],6,1700485571),c=f(c,r,n,i,e[h+3],10,-1894986606),i=f(i,c,r,n,e[h+10],15,-1051523),n=f(n,i,c,r,e[h+1],21,-2054922799),r=f(r,n,i,c,e[h+8],6,1873313359),c=f(c,r,n,i,e[h+15],10,-30611744),i=f(i,c,r,n,e[h+6],15,-1560198380),n=f(n,i,c,r,e[h+13],21,1309151649),r=f(r,n,i,c,e[h+4],6,-145523070),c=f(c,r,n,i,e[h+11],10,-1120210379),i=f(i,c,r,n,e[h+2],15,718787259),n=f(n,i,c,r,e[h+9],21,-343485551),r=u(r,d),n=u(n,p),i=u(i,l),c=u(c,b)}return Array(r,n,i,c)}function i(e,t,r,n,i,o){return u(c(u(u(t,e),u(n,o)),i),r)}function o(e,t,r,n,o,s,a){return i(t&r|~t&n,e,t,o,s,a)}function s(e,t,r,n,o,s,a){return i(t&n|r&~n,e,t,o,s,a)}function a(e,t,r,n,o,s,a){return i(t^r^n,e,t,o,s,a)}function f(e,t,r,n,o,s,a){return i(r^(t|~n),e,t,o,s,a)}function u(e,t){var r=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(r>>16);return n<<16|65535&r}function c(e,t){return e<<t|e>>>32-t}var h=e("./helpers");t.exports=function(e){return h.hash(e,n,16)}},{"./helpers":134}],136:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{buffer:4,dup:26,inherits:202,stream:223,string_decoder:230}],137:[function(e,t,r){(function(e){function r(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t}function n(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t}
function i(e,t,r){for(var n=0;16>n;n++){var i=r+n,h=t[i];t[i]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var m,v,_,w,S,E,M,A,k,x;E=m=e[0],M=v=e[1],A=_=e[2],k=w=e[3],x=S=e[4];var I;for(n=0;80>n;n+=1)I=m+t[r+d[n]]|0,I+=16>n?o(v,_,w)+g[0]:32>n?s(v,_,w)+g[1]:48>n?a(v,_,w)+g[2]:64>n?f(v,_,w)+g[3]:u(v,_,w)+g[4],I=0|I,I=c(I,l[n]),I=I+S|0,m=S,S=w,w=c(_,10),_=v,v=I,I=E+t[r+p[n]]|0,I+=16>n?u(M,A,k)+y[0]:32>n?f(M,A,k)+y[1]:48>n?a(M,A,k)+y[2]:64>n?s(M,A,k)+y[3]:o(M,A,k)+y[4],I=0|I,I=c(I,b[n]),I=I+x|0,E=x,x=k,k=c(A,10),A=M,M=I;I=e[1]+_+k|0,e[1]=e[2]+w+x|0,e[2]=e[3]+S+E|0,e[3]=e[4]+m+M|0,e[4]=e[0]+v+A|0,e[0]=I}function o(e,t,r){return e^t^r}function s(e,t,r){return e&t|~e&r}function a(e,t,r){return(e|~t)^r}function f(e,t,r){return e&r|t&~r}function u(e,t,r){return e^(t|~r)}function c(e,t){return e<<t|e>>>32-t}function h(t){var o=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var s=r(t),a=8*t.length,f=8*t.length;s[a>>>5]|=128<<24-a%32,s[(a+64>>>9<<4)+14]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8);for(var u=0;u<s.length;u+=16)i(o,s,u);for(u=0;5>u;u++){var c=o[u];o[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var h=n(o);return new e(h)}var d=[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],p=[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],l=[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],b=[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],g=[0,1518500249,1859775393,2400959708,2840853838],y=[1352829926,1548603684,1836072691,2053994217,0];t.exports=h}).call(this,e("buffer").Buffer)},{buffer:4}],138:[function(e,t,r){(function(e){function r(t,r){this._block=new e(t),this._finalSize=r,this._blockSize=t,this._len=0,this._s=0}r.prototype.update=function(t,r){"string"==typeof t&&(r=r||"utf8",t=new e(t,r));for(var n=this._len+=t.length,i=this._s||0,o=0,s=this._block;n>i;){for(var a=Math.min(t.length,o+this._blockSize-i%this._blockSize),f=a-o,u=0;f>u;u++)s[i%this._blockSize+u]=t[u+o];i+=f,o+=f,i%this._blockSize===0&&this._update(s)}return this._s=i,this},r.prototype.digest=function(e){var t=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var r=this._update(this._block)||this._hash();return e?r.toString(e):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r}).call(this,e("buffer").Buffer)},{buffer:4}],139:[function(e,t,r){var r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":140,"./sha1":141,"./sha224":142,"./sha256":143,"./sha384":144,"./sha512":145}],140:[function(e,t,r){(function(r){function n(){this.init(),this._w=a,s.call(this,64,56)}function i(e,t){return e<<t|e>>>32-t}var o=e("inherits"),s=e("./hash"),a=new Array(80);o(n,s),n.prototype.init=function(){return this._a=1732584193,this._b=-271733879,this._c=-1732584194,this._d=271733878,this._e=-1009589776,this},n.prototype._update=function(e){function t(){return o[h-3]^o[h-8]^o[h-14]^o[h-16]}function r(e,t){o[h]=e;var r=i(s,5)+t+c+e+n;c=u,u=f,f=i(a,30),a=s,s=r,h++}var n,o=this._w,s=this._a,a=this._b,f=this._c,u=this._d,c=this._e,h=0;for(n=1518500249;16>h;)r(e.readInt32BE(4*h),a&f|~a&u);for(;20>h;)r(t(),a&f|~a&u);for(n=1859775393;40>h;)r(t(),a^f^u);for(n=-1894007588;60>h;)r(t(),a&f|a&u|f&u);for(n=-899497514;80>h;)r(t(),a^f^u);this._a=s+this._a|0,this._b=a+this._b|0,this._c=f+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},n.prototype._hash=function(){var e=new r(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=n}).call(this,e("buffer").Buffer)},{"./hash":138,buffer:4,inherits:202}],141:[function(e,t,r){(function(r){function n(){this.init(),this._w=a,s.call(this,64,56)}function i(e,t){return e<<t|e>>>32-t}var o=e("inherits"),s=e("./hash"),a=new Array(80);o(n,s),n.prototype.init=function(){return this._a=1732584193,this._b=-271733879,this._c=-1732584194,this._d=271733878,this._e=-1009589776,this},n.prototype._update=function(e){function t(){return i(o[h-3]^o[h-8]^o[h-14]^o[h-16],1)}function r(e,t){o[h]=e;var r=i(s,5)+t+c+e+n;c=u,u=f,f=i(a,30),a=s,s=r,h++}var n,o=this._w,s=this._a,a=this._b,f=this._c,u=this._d,c=this._e,h=0;for(n=1518500249;16>h;)r(e.readInt32BE(4*h),a&f|~a&u);for(;20>h;)r(t(),a&f|~a&u);for(n=1859775393;40>h;)r(t(),a^f^u);for(n=-1894007588;60>h;)r(t(),a&f|a&u|f&u);for(n=-899497514;80>h;)r(t(),a^f^u);this._a=s+this._a|0,this._b=a+this._b|0,this._c=f+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},n.prototype._hash=function(){var e=new r(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=n}).call(this,e("buffer").Buffer)},{"./hash":138,buffer:4,inherits:202}],142:[function(e,t,r){(function(r){function n(){this.init(),this._w=a,s.call(this,64,56)}var i=e("inherits"),o=e("./sha256"),s=e("./hash"),a=new Array(64);i(n,o),n.prototype.init=function(){return this._a=-1056596264,this._b=914150663,this._c=812702999,this._d=-150054599,this._e=-4191439,this._f=1750603025,this._g=1694076839,this._h=-1090891868,this},n.prototype._hash=function(){var e=new r(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=n}).call(this,e("buffer").Buffer)},{"./hash":138,"./sha256":143,buffer:4,inherits:202}],143:[function(e,t,r){(function(r){function n(){this.init(),this._w=p,h.call(this,64,56)}function i(e,t,r){return r^e&(t^r)}function o(e,t,r){return e&t|r&(e|t)}function s(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 f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function u(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var c=e("inherits"),h=e("./hash"),d=[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);c(n,h),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this},n.prototype._update=function(e){function t(){return u(n[v-2])+n[v-7]+f(n[v-15])+n[v-16]}function r(e){n[v]=e;var t=m+a(b)+i(b,g,y)+d[v]+e,r=s(c)+o(c,h,p);m=y,y=g,g=b,b=l+t,l=p,p=h,h=c,c=t+r,v++}for(var n=this._w,c=0|this._a,h=0|this._b,p=0|this._c,l=0|this._d,b=0|this._e,g=0|this._f,y=0|this._g,m=0|this._h,v=0;16>v;)r(e.readInt32BE(4*v));for(;64>v;)r(t());this._a=c+this._a|0,this._b=h+this._b|0,this._c=p+this._c|0,this._d=l+this._d|0,this._e=b+this._e|0,this._f=g+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var e=new r(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=n}).call(this,e("buffer").Buffer)},{"./hash":138,buffer:4,inherits:202}],144:[function(e,t,r){(function(r){function n(){this.init(),this._w=a,s.call(this,128,112)}var i=e("inherits"),o=e("./sha512"),s=e("./hash"),a=new Array(160);i(n,o),n.prototype.init=function(){return this._a=-876896931,this._b=1654270250,this._c=-1856437926,this._d=355462360,this._e=1731405415,this._f=-1900787065,this._g=-619958771,this._h=1203062813,this._al=-1056596264,this._bl=914150663,this._cl=812702999,this._dl=-150054599,this._el=-4191439,this._fl=1750603025,this._gl=1694076839,this._hl=-1090891868,this},n.prototype._hash=function(){function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}var t=new r(48);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),t},t.exports=n}).call(this,e("buffer").Buffer)},{"./hash":138,"./sha512":145,buffer:4,inherits:202}],145:[function(e,t,r){(function(r){function n(){this.init(),this._w=b,p.call(this,128,112)}function i(e,t,r){return r^e&(t^r)}function o(e,t,r){return e&t|r&(e|t)}function s(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 f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function c(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}var d=e("inherits"),p=e("./hash"),l=[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],b=new Array(160);d(n,p),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this},n.prototype._update=function(e){function t(){var e=p[T-30],t=p[T-30+1],r=f(e,t),i=u(t,e);e=p[T-4],t=p[T-4+1];var o=c(e,t),s=h(t,e),a=p[T-14],l=p[T-14+1],b=p[T-32],g=p[T-32+1];d=i+l,n=r+a+(i>>>0>d>>>0?1:0),d+=s,n=n+o+(s>>>0>d>>>0?1:0),d+=g,n=n+b+(g>>>0>d>>>0?1:0)}function r(){p[T]=n,p[T+1]=d;var e=o(b,g,y),t=o(E,M,A),r=s(b,E),f=s(E,b),u=a(v,x),c=a(x,v),h=l[T],P=l[T+1],j=i(v,_,w),C=i(x,I,B),D=R+c,N=S+u+(R>>>0>D>>>0?1:0);D+=C,N=N+j+(C>>>0>D>>>0?1:0),D+=P,N=N+h+(P>>>0>D>>>0?1:0),D+=d,N=N+n+(d>>>0>D>>>0?1:0);var L=f+t,q=r+e+(f>>>0>L>>>0?1:0);S=w,R=B,w=_,B=I,_=v,I=x,x=k+D|0,v=m+N+(k>>>0>x>>>0?1:0)|0,m=y,k=A,y=g,A=M,g=b,M=E,E=D+L|0,b=N+q+(D>>>0>E>>>0?1:0)|0,O++,T+=2}for(var n,d,p=this._w,b=0|this._a,g=0|this._b,y=0|this._c,m=0|this._d,v=0|this._e,_=0|this._f,w=0|this._g,S=0|this._h,E=0|this._al,M=0|this._bl,A=0|this._cl,k=0|this._dl,x=0|this._el,I=0|this._fl,B=0|this._gl,R=0|this._hl,O=0,T=0;16>O;)n=e.readInt32BE(4*T),d=e.readInt32BE(4*T+4),r();for(;80>O;)t(),r();this._al=this._al+E|0,this._bl=this._bl+M|0,this._cl=this._cl+A|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+I|0,this._gl=this._gl+B|0,this._hl=this._hl+R|0,this._a=this._a+b+(this._al>>>0<E>>>0?1:0)|0,this._b=this._b+g+(this._bl>>>0<M>>>0?1:0)|0,this._c=this._c+y+(this._cl>>>0<A>>>0?1:0)|0,this._d=this._d+m+(this._dl>>>0<k>>>0?1:0)|0,this._e=this._e+v+(this._el>>>0<x>>>0?1:0)|0,this._f=this._f+_+(this._fl>>>0<I>>>0?1:0)|0,this._g=this._g+w+(this._gl>>>0<B>>>0?1:0)|0,this._h=this._h+S+(this._hl>>>0<R>>>0?1:0)|0},n.prototype._hash=function(){function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}var t=new r(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),t},t.exports=n}).call(this,e("buffer").Buffer)},{"./hash":138,buffer:4,inherits:202}],146:[function(e,t,r){(function(r){"use strict";function n(e,t){s.call(this),e=e.toLowerCase(),"string"==typeof t&&(t=new r(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=i(e).update(t).digest():t.length<n&&(t=r.concat([t,a],n));for(var o=this._ipad=new r(n),f=this._opad=new r(n),u=0;n>u;u++)o[u]=54^t[u],f[u]=92^t[u];this._hash=i(e).update(o)}var i=e("create-hash/browser"),o=e("inherits"),s=e("stream").Transform,a=new r(128);a.fill(0),o(n,s),n.prototype.update=function(e,t){return this._hash.update(e,t),this},n.prototype._transform=function(e,t,r){this._hash.update(e),r()},n.prototype._flush=function(e){this.push(this.digest()),e()},n.prototype.digest=function(e){var t=this._hash.digest();return i(this._alg).update(this._opad).update(t).digest(e)},t.exports=function(e,t){return new n(e,t)}}).call(this,e("buffer").Buffer)},{buffer:4,"create-hash/browser":133,inherits:202,stream:223}],147:[function(e,t,r){(function(t){function n(e){var r=new t(s[e].prime,"hex"),n=new t(s[e].gen,"hex");return new a(r,n)}function i(e,r,n,s){return t.isBuffer(r)||void 0===f[r]?i(e,"binary",r,n):(r=r||"binary",s=s||"binary",n=n||new t([2]),t.isBuffer(n)||(n=new t(n,s)),"number"==typeof e?new a(o(e,n),n,!0):(t.isBuffer(e)||(e=new t(e,r)),new a(e,n,!0)))}var o=e("./lib/generatePrime"),s=e("./lib/primes"),a=e("./lib/dh"),f={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=n,r.createDiffieHellman=r.DiffieHellman=i}).call(this,e("buffer").Buffer)},{"./lib/dh":148,"./lib/generatePrime":149,"./lib/primes":150,buffer:4}],148:[function(e,t,r){(function(r){function n(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new f(e),this}function i(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new f(e),this}function o(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in m)return m[n];var i=0;if(e.isEven()||!g.simpleSieve||!g.fermatTest(e)||!c.test(e))return i+=1,i+="02"===r||"05"===r?8:4,m[n]=i,i;c.test(e.shrn(1))||(i+=2);var o;switch(r){case"02":e.mod(h).cmp(d)&&(i+=8);break;case"05":o=e.mod(p),o.cmp(l)&&o.cmp(b)&&(i+=8);break;default:i+=4}return m[n]=i,i}function s(e,t,r){this.setGenerator(t),this.__prime=new f(e),this._prime=f.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function a(e,t){var n=new r(e.toArray());return t?n.toString(t):n}var f=e("bn.js"),u=e("miller-rabin"),c=new u,h=new f(24),d=new f(11),p=new f(10),l=new f(3),b=new f(7),g=e("./generatePrime"),y=e("randombytes");t.exports=s;var m={};Object.defineProperty(s.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode}}),s.prototype.generateKeys=function(){return this._priv||(this._priv=new f(y(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},s.prototype.computeSecret=function(e){e=new f(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),n=new r(t.toArray()),i=this.getPrime();if(n.length<i.length){var o=new r(i.length-n.length);o.fill(0),n=r.concat([o,n])}return n},s.prototype.getPublicKey=function(e){return a(this._pub,e)},s.prototype.getPrivateKey=function(e){return a(this._priv,e)},s.prototype.getPrime=function(e){return a(this.__prime,e)},s.prototype.getGenerator=function(e){return a(this._gen,e)},s.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new f(e),this}}).call(this,e("buffer").Buffer)},{"./generatePrime":149,"bn.js":151,buffer:4,"miller-rabin":152,randombytes:200}],149:[function(e,t,r){function n(){if(null!==v)return v;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;e>n;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;r>o&&t[o]<=i&&n%t[o]!==0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return v=t,t}function i(e){for(var t=n(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r])?!0:!1;return!0}function o(e){var t=f.mont(e);return 0===p.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function s(e,t){if(16>e)return new f(2===t||5===t?[140,123]:[140,39]);t=new f(t);for(var r,n;;){for(r=new f(a(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(d),r.testn(1)||r.iadd(p),t.cmp(p)){if(!t.cmp(l))for(;r.mod(b).cmp(g);)r.iadd(m)}else for(;r.mod(u).cmp(y);)r.iadd(m);if(n=r.shrn(1),i(n)&&i(r)&&o(n)&&o(r)&&h.test(n)&&h.test(r))return r}}var a=e("randombytes");t.exports=s,s.simpleSieve=i,s.fermatTest=o;var f=e("bn.js"),u=new f(24),c=e("miller-rabin"),h=new c,d=new f(1),p=new f(2),l=new f(5),b=(new f(16),new f(8),new f(10)),g=new f(3),y=(new f(7),new f(11)),m=new f(4),v=(new f(12),null)},{"bn.js":151,"miller-rabin":152,randombytes:200}],150:[function(e,t,r){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"}}},{}],151:[function(e,t,r){arguments[4][42][0].apply(r,arguments)},{dup:42}],152:[function(e,t,r){function n(e){this.rand=e||new o.Rand}var i=e("bn.js"),o=e("brorand");t.exports=n,n.create=function(e){return new n(e)},n.prototype._rand=function(e){var t=e.bitLength(),r=this.rand.generate(Math.ceil(t/8));r[0]|=3;var n=7&t;return 0!==n&&(r[r.length-1]>>=7-n),new i(r)},n.prototype.test=function(e,t,r){var n=e.bitLength(),o=i.mont(e),s=new i(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),f=a.subn(1),u=0;!a.testn(u);u++);for(var c=e.shrn(u),h=a.toRed(o),d=!0;t>0;t--){var p=this._rand(f);r&&r(p);var l=p.toRed(o).redPow(c);if(0!==l.cmp(s)&&0!==l.cmp(h)){for(var b=1;u>b;b++){if(l=l.redSqr(),0===l.cmp(s))return!1;if(0===l.cmp(h))break}if(b===u)return!1}}return d},n.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=i.mont(e),o=new i(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),a=s.subn(1),f=0;!s.testn(f);f++);for(var u=e.shrn(f),c=s.toRed(n);t>0;t--){var h=this._rand(a),d=e.gcd(h);if(0!==d.cmpn(1))return d;var p=h.toRed(n).redPow(u);if(0!==p.cmp(o)&&0!==p.cmp(c)){for(var l=1;f>l;l++){if(p=p.redSqr(),0===p.cmp(o))return p.fromRed().subn(1).gcd(e);if(0===p.cmp(c))break}if(l===f)return p=p.redSqr(),p.fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":151,brorand:153}],153:[function(e,t,r){arguments[4][60][0].apply(r,arguments)},{dup:60}],154:[function(e,t,r){(function(t){function n(e,t,r,n,o,s){if("function"==typeof o&&(s=o,o=void 0),"function"!=typeof s)throw new Error("No callback provided to pbkdf2");var a=i(e,t,r,n,o);setTimeout(function(){s(void 0,a)})}function i(e,r,n,i,a){if("number"!=typeof n)throw new TypeError("Iterations not a number");if(0>n)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(0>i||i>s)throw new TypeError("Bad key length");a=a||"sha1",t.isBuffer(e)||(e=new t(e,"binary")),t.isBuffer(r)||(r=new t(r,"binary"));var f,u=1,c=new t(i),h=new t(r.length+4);r.copy(h,0,0,r.length);for(var d,p,l=1;u>=l;l++){h.writeUInt32BE(l,r.length);var b=o(a,e).update(h).digest();f||(f=b.length,p=new t(f),u=Math.ceil(i/f),d=i-(u-1)*f),b.copy(p,0,0,f);for(var g=1;n>g;g++){b=o(a,e).update(b).digest();for(var y=0;f>y;y++)p[y]^=b[y]}var m=(l-1)*f,v=l===u?d:f;p.copy(c,m,0,v)}return c}var o=e("create-hmac"),s=Math.pow(2,30)-1;r.pbkdf2=n,r.pbkdf2Sync=i}).call(this,e("buffer").Buffer)},{buffer:4,"create-hmac":146}],155:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":196,"./publicEncrypt":197}],156:[function(e,t,r){(function(r){function n(e){var t=new r(4);return t.writeUInt32BE(e,0),t}var i=e("create-hash");t.exports=function(e,t){for(var o,s=new r(""),a=0;s.length<t;)o=n(a++),s=r.concat([s,i("sha1").update(e).update(o).digest()]);return s.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:4,"create-hash":133}],157:[function(e,t,r){arguments[4][42][0].apply(r,arguments)},{dup:42}],158:[function(e,t,r){arguments[4][43][0].apply(r,arguments)},{"bn.js":157,buffer:4,dup:43,randombytes:200}],159:[function(e,t,r){arguments[4][68][0].apply(r,arguments)},{dup:68}],160:[function(e,t,r){arguments[4][69][0].apply(r,arguments)},{"asn1.js":163,dup:69}],161:[function(e,t,r){arguments[4][70][0].apply(r,arguments)},{"browserify-aes":180,buffer:4,dup:70,evp_bytestokey:195}],162:[function(e,t,r){arguments[4][71][0].apply(r,arguments)},{"./aesid.json":159,"./asn1":160,"./fixProc":161,"browserify-aes":180,buffer:4,dup:71,pbkdf2:154}],163:[function(e,t,r){arguments[4][72][0].apply(r,arguments)},{"./asn1/api":164,"./asn1/base":166,"./asn1/constants":170,"./asn1/decoders":172,"./asn1/encoders":175,"bn.js":157,dup:72}],164:[function(e,t,r){arguments[4][73][0].apply(r,arguments)},{"../asn1":163,dup:73,inherits:202,vm:235}],165:[function(e,t,r){arguments[4][74][0].apply(r,arguments)},{"../base":166,buffer:4,dup:74,inherits:202}],166:[function(e,t,r){arguments[4][75][0].apply(r,arguments)},{"./buffer":165,"./node":167,"./reporter":168,dup:75}],167:[function(e,t,r){arguments[4][76][0].apply(r,arguments)},{"../base":166,dup:76,"minimalistic-assert":177}],168:[function(e,t,r){arguments[4][77][0].apply(r,arguments)},{dup:77,inherits:202}],169:[function(e,t,r){arguments[4][78][0].apply(r,arguments)},{"../constants":170,dup:78}],170:[function(e,t,r){arguments[4][79][0].apply(r,arguments)},{"./der":169,dup:79}],171:[function(e,t,r){arguments[4][80][0].apply(r,arguments)},{"../../asn1":163,dup:80,inherits:202}],172:[function(e,t,r){arguments[4][81][0].apply(r,arguments)},{"./der":171,"./pem":173,dup:81}],173:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{"../../asn1":163,"./der":171,buffer:4,dup:82,inherits:202}],174:[function(e,t,r){arguments[4][83][0].apply(r,arguments)},{"../../asn1":163,buffer:4,dup:83,inherits:202}],175:[function(e,t,r){arguments[4][84][0].apply(r,arguments)},{"./der":174,"./pem":176,dup:84}],176:[function(e,t,r){arguments[4][85][0].apply(r,arguments)},{"../../asn1":163,"./der":174,buffer:4,dup:85,inherits:202}],177:[function(e,t,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],178:[function(e,t,r){arguments[4][11][0].apply(r,arguments)},{buffer:4,dup:11}],179:[function(e,t,r){arguments[4][12][0].apply(r,arguments)},{"./aes":178,"./ghash":183,buffer:4,"buffer-xor":192,"cipher-base":193,dup:12,inherits:202}],180:[function(e,t,r){arguments[4][13][0].apply(r,arguments)},{"./decrypter":181,"./encrypter":182,"./modes":184,dup:13}],181:[function(e,t,r){arguments[4][14][0].apply(r,arguments)},{"./aes":178,"./authCipher":179,"./modes":184,"./modes/cbc":185,"./modes/cfb":186,"./modes/cfb1":187,"./modes/cfb8":188,"./modes/ctr":189,"./modes/ecb":190,"./modes/ofb":191,"./streamCipher":194,buffer:4,"cipher-base":193,dup:14,evp_bytestokey:195,inherits:202}],182:[function(e,t,r){arguments[4][15][0].apply(r,arguments)},{"./aes":178,"./authCipher":179,"./modes":184,"./modes/cbc":185,"./modes/cfb":186,"./modes/cfb1":187,"./modes/cfb8":188,"./modes/ctr":189,"./modes/ecb":190,"./modes/ofb":191,"./streamCipher":194,
buffer:4,"cipher-base":193,dup:15,evp_bytestokey:195,inherits:202}],183:[function(e,t,r){arguments[4][16][0].apply(r,arguments)},{buffer:4,dup:16}],184:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{dup:17}],185:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{"buffer-xor":192,dup:18}],186:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{buffer:4,"buffer-xor":192,dup:19}],187:[function(e,t,r){arguments[4][20][0].apply(r,arguments)},{buffer:4,dup:20}],188:[function(e,t,r){arguments[4][21][0].apply(r,arguments)},{buffer:4,dup:21}],189:[function(e,t,r){arguments[4][22][0].apply(r,arguments)},{buffer:4,"buffer-xor":192,dup:22}],190:[function(e,t,r){arguments[4][23][0].apply(r,arguments)},{dup:23}],191:[function(e,t,r){arguments[4][24][0].apply(r,arguments)},{buffer:4,"buffer-xor":192,dup:24}],192:[function(e,t,r){arguments[4][25][0].apply(r,arguments)},{buffer:4,dup:25}],193:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{buffer:4,dup:26,inherits:202,stream:223,string_decoder:230}],194:[function(e,t,r){arguments[4][27][0].apply(r,arguments)},{"./aes":178,buffer:4,"cipher-base":193,dup:27,inherits:202}],195:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{buffer:4,"create-hash/md5":135,dup:38}],196:[function(e,t,r){(function(r){function n(e,t){var n=(e.modulus,e.modulus.byteLength()),i=(t.length,h("sha1").update(new r("")).digest()),s=i.length;if(0!==t[0])throw new Error("decryption error");var u=t.slice(1,s+1),c=t.slice(s+1),d=f(u,a(c,s)),p=f(c,a(d,n-s-1));if(o(i,p.slice(0,s)))throw new Error("decryption error");for(var l=s;0===p[l];)l++;if(1!==p[l++])throw new Error("decryption error");return p.slice(l)}function i(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var s=t.slice(2,i-1);t.slice(i-1,i);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}function o(e,t){e=new r(e),t=new r(t);var n=0,i=e.length;e.length!==t.length&&(n++,i=Math.min(e.length,t.length));for(var o=-1;++o<i;)n+=e[o]^t[o];return n}var s=e("parse-asn1"),a=e("./mgf"),f=e("./xor"),u=e("bn.js"),c=e("browserify-rsa"),h=e("create-hash"),d=e("./withPublic");t.exports=function(e,t,o){var a;a=e.padding?e.padding:o?1:4;var f=s(e),h=f.modulus.byteLength();if(t.length>h||new u(t).cmp(f.modulus)>=0)throw new Error("decryption error");var p;p=o?d(new u(t),f):c(t,f);var l=new r(h-p.length);if(l.fill(0),p=r.concat([l,p],h),4===a)return n(f,p);if(1===a)return i(f,p,o);if(3===a)return p;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":156,"./withPublic":198,"./xor":199,"bn.js":157,"browserify-rsa":158,buffer:4,"create-hash":133,"parse-asn1":162}],197:[function(e,t,r){(function(r){function n(e,t){var n=e.modulus.byteLength(),i=t.length,o=f("sha1").update(new r("")).digest(),s=o.length,d=2*s;if(i>n-d-2)throw new Error("message too long");var p=new r(n-i-d-2);p.fill(0);var l=n-s-1,b=a(s),g=c(r.concat([o,p,new r([1]),t],l),u(b,l)),y=c(b,u(g,s));return new h(r.concat([new r([0]),y,g],n))}function i(e,t,n){var i=t.length,s=e.modulus.byteLength();if(i>s-11)throw new Error("message too long");var a;return n?(a=new r(s-i-3),a.fill(255)):a=o(s-i-3),new h(r.concat([new r([0,n?1:2]),a,new r([0]),t],s))}function o(e,t){for(var n,i=new r(e),o=0,s=a(2*e),f=0;e>o;)f===s.length&&(s=a(2*e),f=0),n=s[f++],n&&(i[o++]=n);return i}var s=e("parse-asn1"),a=e("randombytes"),f=e("create-hash"),u=e("./mgf"),c=e("./xor"),h=e("bn.js"),d=e("./withPublic"),p=e("browserify-rsa");t.exports=function(e,t,r){var o;o=e.padding?e.padding:r?1:4;var a,f=s(e);if(4===o)a=n(f,t);else if(1===o)a=i(f,t,r);else{if(3!==o)throw new Error("unknown padding");if(a=new h(t),a.cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return r?p(a,f):d(a,f)}}).call(this,e("buffer").Buffer)},{"./mgf":156,"./withPublic":198,"./xor":199,"bn.js":157,"browserify-rsa":158,buffer:4,"create-hash":133,"parse-asn1":162,randombytes:200}],198:[function(e,t,r){(function(r){function n(e,t){return new r(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}var i=e("bn.js");t.exports=n}).call(this,e("buffer").Buffer)},{"bn.js":157,buffer:4}],199:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],200:[function(e,t,r){(function(e,r,n){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,i){if(t>65536)throw new Error("requested too many random bytes");var o=new r.Uint8Array(t);s.getRandomValues(o);var a=new n(o.buffer);return"function"==typeof i?e.nextTick(function(){i(null,a)}):a}var s=r.crypto||r.msCrypto;s&&s.getRandomValues?t.exports=o:t.exports=i}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{_process:205,buffer:4}],201:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,f,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(s(r))for(o=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,f=0;n>f;f++)u[f].apply(this,o);return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(r=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(r)){for(a=o;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],202:[function(e,t,r){"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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],203:[function(e,t,r){t.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},{}],204:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],205:[function(e,t,r){function n(){c=!1,a.length?u=a.concat(u):h=-1,u.length&&i()}function i(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(a=u,u=[];++h<t;)a&&a[h].run();h=-1,t=u.length}a=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function s(){}var a,f=t.exports={},u=[],c=!1,h=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new o(e,t)),1!==u.length||c||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],206:[function(e,t,r){(function(e){!function(n){function i(e){throw new RangeError(P[e])}function o(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function s(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(T,".");var i=e.split("."),s=o(i,t).join(".");return n+s}function a(e){for(var t,r,n=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function f(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=D(e>>>10&1023|55296),e=56320|1023&e),t+=D(e)}).join("")}function u(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:S}function c(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function h(e,t,r){var n=0;for(e=r?C(e/k):e>>1,e+=C(e/t);e>j*M>>1;n+=S)e=C(e/j);return C(n+(j+1)*e/(e+A))}function d(e){var t,r,n,o,s,a,c,d,p,l,b=[],g=e.length,y=0,m=I,v=x;for(r=e.lastIndexOf(B),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&i("not-basic"),b.push(e.charCodeAt(n));for(o=r>0?r+1:0;g>o;){for(s=y,a=1,c=S;o>=g&&i("invalid-input"),d=u(e.charCodeAt(o++)),(d>=S||d>C((w-y)/a))&&i("overflow"),y+=d*a,p=v>=c?E:c>=v+M?M:c-v,!(p>d);c+=S)l=S-p,a>C(w/l)&&i("overflow"),a*=l;t=b.length+1,v=h(y-s,t,0==s),C(y/t)>w-m&&i("overflow"),m+=C(y/t),y%=t,b.splice(y++,0,m)}return f(b)}function p(e){var t,r,n,o,s,f,u,d,p,l,b,g,y,m,v,_=[];for(e=a(e),g=e.length,t=I,r=0,s=x,f=0;g>f;++f)b=e[f],128>b&&_.push(D(b));for(n=o=_.length,o&&_.push(B);g>n;){for(u=w,f=0;g>f;++f)b=e[f],b>=t&&u>b&&(u=b);for(y=n+1,u-t>C((w-r)/y)&&i("overflow"),r+=(u-t)*y,t=u,f=0;g>f;++f)if(b=e[f],t>b&&++r>w&&i("overflow"),b==t){for(d=r,p=S;l=s>=p?E:p>=s+M?M:p-s,!(l>d);p+=S)v=d-l,m=S-l,_.push(D(c(l+v%m,0))),d=C(v/m);_.push(D(c(d,0))),s=h(r,y,n==o),r=0,++n}++r,++t}return _.join("")}function l(e){return s(e,function(e){return R.test(e)?d(e.slice(4).toLowerCase()):e})}function b(e){return s(e,function(e){return O.test(e)?"xn--"+p(e):e})}var g="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof t&&t&&!t.nodeType&&t,m="object"==typeof e&&e;(m.global===m||m.window===m||m.self===m)&&(n=m);var v,_,w=2147483647,S=36,E=1,M=26,A=38,k=700,x=72,I=128,B="-",R=/^xn--/,O=/[^\x20-\x7E]/,T=/[\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"},j=S-E,C=Math.floor,D=String.fromCharCode;if(v={version:"1.3.2",ucs2:{decode:a,encode:f},decode:d,encode:p,toASCII:b,toUnicode:l},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return v});else if(g&&y)if(t.exports==g)y.exports=v;else for(_ in v)v.hasOwnProperty(_)&&(g[_]=v[_]);else n.punycode=v}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],207:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var f=1e3;o&&"number"==typeof o.maxKeys&&(f=o.maxKeys);var u=e.length;f>0&&u>f&&(u=f);for(var c=0;u>c;++c){var h,d,p,l,b=e[c].replace(a,"%20"),g=b.indexOf(r);g>=0?(h=b.substr(0,g),d=b.substr(g+1)):(h=b,d=""),p=decodeURIComponent(h),l=decodeURIComponent(d),n(s,p)?i(s[p])?s[p].push(l):s[p]=[s[p],l]:s[p]=l}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],208:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=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,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?n(s(e),function(s){var a=encodeURIComponent(i(s))+r;return o(e[s])?n(e[s],function(e){return a+encodeURIComponent(i(e))}).join(t):a+encodeURIComponent(i(e[s]))}).join(t):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],209:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":207,"./encode":208}],210:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":211}],211:[function(e,t,r){"use strict";function n(e){return this instanceof n?(u.call(this,e),c.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",i)):new n(e)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(e){e.end()}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=n;var a=e("process-nextick-args"),f=e("core-util-is");f.inherits=e("inherits");var u=e("./_stream_readable"),c=e("./_stream_writable");f.inherits(n,u);for(var h=s(c.prototype),d=0;d<h.length;d++){var p=h[d];n.prototype[p]||(n.prototype[p]=c.prototype[p])}},{"./_stream_readable":213,"./_stream_writable":215,"core-util-is":216,inherits:202,"process-nextick-args":217}],212:[function(e,t,r){"use strict";function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":214,"core-util-is":216,inherits:202}],213:[function(e,t,r){(function(r){"use strict";function n(t,r){j=j||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,r instanceof j&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(P||(P=e("string_decoder/").StringDecoder),this.decoder=new P(t.encoding),this.encoding=t.encoding)}function i(t){return j=j||e("./_stream_duplex"),this instanceof i?(this._readableState=new n(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),void I.call(this)):new i(t)}function o(e,t,r,n,i){var o=u(t,r);if(o)e.emit("error",o);else if(null===r)t.reading=!1,c(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&h(e)),p(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function f(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function u(e,t){var r=null;return x.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function c(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,h(e)}}function h(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(O("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?A(d,e):d(e))}function d(e){O("emit readable"),e.emit("readable"),v(e)}function p(e,t){t.readingMore||(t.readingMore=!0,A(l,e,t))}function l(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(O("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function b(e){return function(){var t=e._readableState;O("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&B(e,"data")&&(t.flowing=!0,v(e))}}function g(e){O("readable nexttick read 0"),e.read(0)}function y(e,t){t.resumeScheduled||(t.resumeScheduled=!0,A(m,e,t))}function m(e,t){t.reading||(O("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),v(e),t.flowing&&!t.reading&&e.read(0)}function v(e){var t=e._readableState;if(O("flow",t.flowing),t.flowing)do var r=e.read();while(null!==r&&t.flowing)}function _(e,t){var r,n=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=o?n.join(""):1===n.length?n[0]:x.concat(n,i),n.length=0;else if(e<n[0].length){var a=n[0];r=a.slice(0,e),n[0]=a.slice(e)}else if(e===n[0].length)r=n.shift();else{r=o?"":new x(e);for(var f=0,u=0,c=n.length;c>u&&e>f;u++){var a=n[0],h=Math.min(e-f,a.length);o?r+=a.slice(0,h):a.copy(r,f,0,h),h<a.length?n[0]=a.slice(h):n.shift(),f+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,A(S,t,e))}function S(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function E(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function M(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var A=e("process-nextick-args"),k=e("isarray"),x=e("buffer").Buffer;i.ReadableState=n;var I,B=(e("events"),function(e,t){return e.listeners(t).length});!function(){try{I=e("stream")}catch(t){}finally{I||(I=e("events").EventEmitter)}}();var x=e("buffer").Buffer,R=e("core-util-is");R.inherits=e("inherits");var O,T=e("util");O=T&&T.debuglog?T.debuglog("stream"):function(){};var P;R.inherits(i,I);var j,j;i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding,t!==r.encoding&&(e=new x(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(t){return P||(P=e("string_decoder/").StringDecoder),this._readableState.decoder=new P(t),this._readableState.encoding=t,this};var C=8388608;i.prototype.read=function(e){O("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return O("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):h(this),null;if(e=f(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;O("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&(n=!0,O("length less than watermark",n)),(t.ended||t.reading)&&(n=!1,O("reading or ended",n)),n&&(O("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),n&&!t.reading&&(e=f(r,t));var i;return i=e>0?_(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&w(this),null!==i&&this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){O("onunpipe"),e===h&&o()}function i(){O("onend"),e.end()}function o(){O("cleanup"),e.removeListener("close",f),e.removeListener("finish",u),e.removeListener("drain",g),e.removeListener("error",a),e.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){O("ondata");var r=e.write(t);!1===r&&(1!==d.pipesCount||d.pipes[0]!==e||1!==h.listenerCount("data")||y||(O("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++),h.pause())}function a(t){O("onerror",t),c(),e.removeListener("error",a),0===B(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",u),c()}function u(){O("onfinish"),e.removeListener("close",f),c()}function c(){O("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,O("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,l=p?i:o;d.endEmitted?A(l):h.once("end",l),e.on("unpipe",n);var g=b(h);e.on("drain",g);var y=!1;return h.on("data",s),e._events&&e._events.error?k(e._events.error)?e._events.error.unshift(a):e._events.error=[a,e._events.error]:e.on("error",a),e.once("close",f),e.once("finish",u),e.emit("pipe",h),d.flowing||(O("pipe resume"),h.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;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),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=M(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var r=I.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&h(this,n):A(g,this))}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=!0,y(this,e)),this},i.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(O("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(O("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return E(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){O("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=_}).call(this,e("_process"))},{"./_stream_duplex":211,_process:205,buffer:4,"core-util-is":216,events:201,inherits:202,isarray:204,"process-nextick-args":217,"string_decoder/":230,util:3}],214:[function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);a.call(this,e),this._transformState=new n(this);var t=this;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.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}t.exports=o;var a=e("./_stream_duplex"),f=e("core-util-is");f.inherits=e("inherits"),f.inherits(o,a),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.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}},{"./_stream_duplex":211,"core-util-is":216,inherits:202}],215:[function(e,t,r){"use strict";function n(){}function i(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function o(t,r){x=x||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,r instanceof x&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){l(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function s(t){return x=x||e("./_stream_duplex"),this instanceof s||this instanceof x?(this._writableState=new o(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),void A.call(this)):new s(t)}function a(e,t){var r=new Error("write after end");e.emit("error",r),S(t,r)}function f(e,t,r,n){var i=!0;if(!E.isBuffer(r)&&"string"!=typeof r&&null!==r&&void 0!==r&&!t.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),S(n,o),i=!1}return i}function u(e,t,r){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new E(t,r)),t}function c(e,t,r,n,o){r=u(t,r,n),E.isBuffer(r)&&(n="buffer");var s=t.objectMode?1:r.length;t.length+=s;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest=new i(r,n,o),f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest}else h(e,t,!1,s,r,n,o);return a}function h(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function d(e,t,r,n,i){--t.pendingcb,r?S(i,n):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}function p(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function l(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(p(r),t)d(e,r,n,t,i);else{var o=m(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||y(e,r),n?S(b,e,r,o,i):b(e,r,o,i)}}function b(e,t,r,n){r||g(e,t),t.pendingcb--,n(),_(e,t)}function g(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function y(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){for(var n=[],i=[];r;)i.push(r.callback),n.push(r),r=r.next;t.pendingcb++,t.lastBufferedRequest=null,h(e,t,!0,t.length,n,"",function(e){for(var r=0;r<i.length;r++)t.pendingcb--,i[r](e)})}else{for(;r;){var o=r.chunk,s=r.encoding,a=r.callback,f=t.objectMode?1:o.length;if(h(e,t,!1,f,o,s,a),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function _(e,t){var r=m(t);return r&&(0===t.pendingcb?(v(e,t),t.finished=!0,e.emit("finish")):v(e,t)),r}function w(e,t,r){t.ending=!0,_(e,t),r&&(t.finished?S(r):e.once("finish",r)),t.ended=!0}t.exports=s;var S=e("process-nextick-args"),E=e("buffer").Buffer;s.WritableState=o;var M=e("core-util-is");M.inherits=e("inherits");var A,k={deprecate:e("util-deprecate")};!function(){try{A=e("stream")}catch(t){}finally{A||(A=e("events").EventEmitter)}}();var E=e("buffer").Buffer;M.inherits(s,A);var x;o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(o.prototype,"buffer",{get:k.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var x;s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),E.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=n),i.ended?a(this,r):f(this,i,e,r)&&(i.pendingcb++,o=c(this,i,e,t,r)),o},s.prototype.cork=function(){var e=this._writableState;e.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||y(this,e))},s.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);this._writableState.defaultEncoding=e},s.prototype._write=function(e,t,r){
r(new Error("not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||w(this,n,r)}},{"./_stream_duplex":211,buffer:4,"core-util-is":216,events:201,inherits:202,"process-nextick-args":217,"util-deprecate":218}],216:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function f(e){return"symbol"==typeof e}function u(e){return void 0===e}function c(e){return"[object RegExp]"===g(e)}function h(e){return"object"==typeof e&&null!==e}function d(e){return"[object Date]"===g(e)}function p(e){return"[object Error]"===g(e)||e instanceof Error}function l(e){return"function"==typeof e}function b(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function g(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=o,r.isNumber=s,r.isString=a,r.isSymbol=f,r.isUndefined=u,r.isRegExp=c,r.isObject=h,r.isDate=d,r.isError=p,r.isFunction=l,r.isPrimitive=b,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../../../insert-module-globals/node_modules/is-buffer/index.js")})},{"../../../../insert-module-globals/node_modules/is-buffer/index.js":203}],217:[function(e,t,r){(function(e){"use strict";function r(t){for(var r=new Array(arguments.length-1),n=0;n<r.length;)r[n++]=arguments[n];e.nextTick(function(){t.apply(null,r)})}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=r:t.exports=e.nextTick}).call(this,e("_process"))},{_process:205}],218:[function(e,t,r){(function(e){function r(e,t){function r(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return r}function n(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null==n?!1:"true"===String(n).toLowerCase()}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],219:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":212}],220:[function(e,t,r){var n=function(){try{return e("stream")}catch(t){}}();r=t.exports=e("./lib/_stream_readable.js"),r.Stream=n||r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":211,"./lib/_stream_passthrough.js":212,"./lib/_stream_readable.js":213,"./lib/_stream_transform.js":214,"./lib/_stream_writable.js":215}],221:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":214}],222:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":215}],223:[function(e,t,r){function n(){i.call(this)}t.exports=n;var i=e("events").EventEmitter,o=e("inherits");o(n,i),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,e.end())}function s(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(f(),0===i.listenerCount(this,"error"))throw e}function f(){u.removeListener("data",r),e.removeListener("drain",n),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",a),e.removeListener("error",a),u.removeListener("end",f),u.removeListener("close",f),e.removeListener("close",f)}var u=this;u.on("data",r),e.on("drain",n),e._isStdio||t&&t.end===!1||(u.on("end",o),u.on("close",s));var c=!1;return u.on("error",a),e.on("error",a),u.on("end",f),u.on("close",f),e.on("close",f),e.emit("pipe",u),e}},{events:201,inherits:202,"readable-stream/duplex.js":210,"readable-stream/passthrough.js":219,"readable-stream/readable.js":220,"readable-stream/transform.js":221,"readable-stream/writable.js":222}],224:[function(e,t,r){(function(t){var n=e("./lib/request"),i=e("xtend"),o=e("builtin-status-codes"),s=e("url"),a=r;a.request=function(e,r){e="string"==typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,f=e.hostname||e.host,u=e.port,c=e.path||"/";f&&-1!==f.indexOf(":")&&(f="["+f+"]"),e.url=(f?a+"//"+f:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var h=new n(e);return r&&h.on("response",r),h},a.get=function(e,t){var r=a.request(e,t);return r.end(),r},a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":226,"builtin-status-codes":228,url:231,xtend:237}],225:[function(e,t,r){(function(e){function t(e){try{return o.responseType=e,o.responseType===e}catch(t){}return!1}function n(e){return"function"==typeof e}r.fetch=n(e.fetch)&&n(e.ReadableByteStream),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(i){}var o=new e.XMLHttpRequest;o.open("GET",e.location.host?"/":"https://example.com");var s="undefined"!=typeof e.ArrayBuffer,a=s&&n(e.ArrayBuffer.prototype.slice);r.arraybuffer=s&&t("arraybuffer"),r.msstream=!r.fetch&&a&&t("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&s&&t("moz-chunked-arraybuffer"),r.overrideMimeType=n(o.overrideMimeType),r.vbArray=n(e.VBArray),o=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],226:[function(e,t,r){(function(r,n,i){function o(e){return a.fetch?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":a.vbArray&&e?"text:vbarray":"text"}function s(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}var a=e("./capability"),f=e("inherits"),u=e("./response"),c=e("stream"),h=e("to-arraybuffer"),d=u.IncomingMessage,p=u.readyStates,l=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(r){t.setHeader(r,e.headers[r])});var r;if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}t._mode=o(r),t.on("finish",function(){t._onFinish()})};f(l,c.Writable),l.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===b.indexOf(n)&&(r._headers[n]={name:e,value:t})},l.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},l.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},l.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,o=e._opts,s=e._headers;if(("POST"===o.method||"PUT"===o.method||"PATCH"===o.method)&&(t=a.blobConstructor?new n.Blob(e._body.map(function(e){return h(e)}),{type:(s["content-type"]||{}).value||""}):i.concat(e._body).toString()),"fetch"===e._mode){var f=Object.keys(s).map(function(e){return[s[e].name,s[e].value]});n.fetch(e._opts.url,{method:e._opts.method,headers:f,body:t,mode:"cors",credentials:o.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var u=e._xhr=new n.XMLHttpRequest;try{u.open(e._opts.method,e._opts.url,!0)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}"responseType"in u&&(u.responseType=e._mode.split(":")[0]),"withCredentials"in u&&(u.withCredentials=!!o.withCredentials),"text"===e._mode&&"overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(s).forEach(function(e){u.setRequestHeader(s[e].name,s[e].value)}),e._response=null,u.onreadystatechange=function(){switch(u.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(u.onprogress=function(){e._onXHRProgress()}),u.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{u.send(t)}catch(c){return void r.nextTick(function(){e.emit("error",c)})}}}},l.prototype._onXHRProgress=function(){var e=this;s(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},l.prototype._connect=function(){var e=this;e._destroyed||(e._response=new d(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},l.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},l.prototype.abort=l.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},l.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},l.prototype.flushHeaders=function(){},l.prototype.setTimeout=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var b=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":225,"./response":227,_process:205,buffer:4,inherits:202,stream:223,"to-arraybuffer":229}],227:[function(e,t,r){(function(t,n,i){var o=e("./capability"),s=e("inherits"),a=e("stream"),f=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=r.IncomingMessage=function(e,r,n){function s(){d.read().then(function(e){if(!f._destroyed){if(e.done)return void f.push(null);f.push(new i(e.value)),s()}})}var f=this;if(a.Readable.call(f),f._mode=n,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){t.nextTick(function(){f.emit("close")})}),"fetch"===n){f._fetchResponse=r,f.statusCode=r.status,f.statusMessage=r.statusText;for(var u,c,h=r.headers[Symbol.iterator]();u=(c=h.next()).value,!c.done;)f.headers[u[0].toLowerCase()]=u[1],f.rawHeaders.push(u[0],u[1]);var d=r.body.getReader();s()}else{f._xhr=e,f._pos=0,f.statusCode=e.status,f.statusMessage=e.statusText;var p=e.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();void 0!==f.headers[r]?f.headers[r]+=", "+t[2]:f.headers[r]=t[2],f.rawHeaders.push(t[1],t[2])}}),f._charset="x-user-defined",!o.overrideMimeType){var l=f.rawHeaders["mime-type"];if(l){var b=l.match(/;\s*charset=([^;])(;|$)/);b&&(f._charset=b[1].toLowerCase())}f._charset||(f._charset="utf-8")}}};s(u,a.Readable),u.prototype._read=function(){},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==f.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(o){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(o){e._mode="text:vbarray";break}if(r.length>e._pos){var s=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new i(s.length),u=0;u<s.length;u++)a[u]=255&s.charCodeAt(u);e.push(a)}else e.push(s,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==f.DONE)break;r=t.response,e.push(new i(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==f.LOADING||!r)break;e.push(new i(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==f.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":225,_process:205,buffer:4,inherits:202,stream:223}],228:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],229:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;r>i;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:4}],230:[function(e,t,r){function n(e){if(e&&!f(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var a=e("buffer").Buffer,f=a.isEncoding||function(e){switch(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}},u=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),n(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};u.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";e=e.slice(r,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=t.charCodeAt(t.length-1);if(!(n>=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:4}],231:[function(e,t,r){"use strict";function n(){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 i(e,t,r){if(e&&u.isObject(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u.isString(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function s(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}var f=e("punycode"),u=e("./util");r.parse=i,r.resolve=s,r.resolveObject=a,r.format=o,r.Url=n;var c=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n"," "],l=["{","}","|","\\","^","`"].concat(p),b=["'"].concat(l),g=["%","/","?",";","#"].concat(b),y=["/","?","#"],m=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},E={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},M=e("querystring");n.prototype.parse=function(e,t,r){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&1===e.split("#").length){var h=d.exec(a);if(h)return this.path=a,this.href=a,this.pathname=h[1],h[2]?(this.search=h[2],t?this.query=M.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var p=c.exec(a);if(p){p=p[0];var l=p.toLowerCase();this.protocol=l,a=a.substr(p.length)}if(r||p||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===a.substr(0,2);!A||p&&S[p]||(a=a.substr(2),this.slashes=!0)}if(!S[p]&&(A||p&&!E[p])){for(var k=-1,x=0;x<y.length;x++){var I=a.indexOf(y[x]);-1!==I&&(-1===k||k>I)&&(k=I)}var B,R;R=-1===k?a.lastIndexOf("@"):a.lastIndexOf("@",k),-1!==R&&(B=a.slice(0,R),a=a.slice(R+1),this.auth=decodeURIComponent(B)),k=-1;for(var x=0;x<g.length;x++){var I=a.indexOf(g[x]);-1!==I&&(-1===k||k>I)&&(k=I)}-1===k&&(k=a.length),this.host=a.slice(0,k),a=a.slice(k),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var T=this.hostname.split(/\./),x=0,P=T.length;P>x;x++){var j=T[x];if(j&&!j.match(v)){for(var C="",D=0,N=j.length;N>D;D++)C+=j.charCodeAt(D)>127?"x":j[D];if(!C.match(v)){var L=T.slice(0,x),q=T.slice(x+1),U=j.match(_);U&&(L.push(U[1]),q.unshift(U[2])),q.length&&(a="/"+q.join(".")+a),this.hostname=L.join(".");break}}}this.hostname.length>m?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=f.toASCII(this.hostname));var z=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+z,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!w[l])for(var x=0,P=b.length;P>x;x++){var F=b[x];if(-1!==a.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),a=a.split(F).join(H)}}var G=a.indexOf("#");-1!==G&&(this.hash=a.substr(G),a=a.slice(0,G));var Y=a.indexOf("?");if(-1!==Y?(this.search=a.substr(Y),this.query=a.substr(Y+1),t&&(this.query=M.parse(this.query)),a=a.slice(0,Y)):t&&(this.search="",this.query={}),a&&(this.pathname=a),E[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",V=this.search||"";this.path=z+V}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(o=M.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||E[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+i+r+s+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u.isString(e)){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),f=0;f<a.length;f++){var c=a[f];"protocol"!==c&&(r[c]=e[c])}return E[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!E[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var p=h[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||S[e.protocol])r.pathname=e.pathname;else{for(var l=(e.pathname||"").split("/");l.length&&!(e.host=l.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),r.pathname=l.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var b=r.pathname||"",g=r.search||"";r.path=b+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=m||y||r.host&&e.pathname,_=v,w=r.pathname&&r.pathname.split("/")||[],l=e.pathname&&e.pathname.split("/")||[],M=r.protocol&&!E[r.protocol];if(M&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===l[0]?l[0]=e.host:l.unshift(e.host)),e.host=null),v=v&&(""===l[0]||""===w[0])),m)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=l;else if(l.length)w||(w=[]),w.pop(),w=w.concat(l),r.search=e.search,r.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(M){r.hostname=r.host=w.shift();var A=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=e.search,r.query=e.query,u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],x=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,I=0,B=w.length;B>=0;B--)k=w[B],"."===k?w.splice(B,1):".."===k?(w.splice(B,1),I++):I&&(w.splice(B,1),I--);if(!v&&!_)for(;I--;I)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),x&&"/"!==w.join("/").substr(-1)&&w.push("");var R=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(M){r.hostname=r.host=R?"":w.length?w.shift():"";var A=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return v=v||r.host&&w.length,v&&!R&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=h.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":232,punycode:206,querystring:209}],232:[function(e,t,r){"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}}},{}],233:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],234:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(t)?n.showHidden=t:t&&r._extend(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),f(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function s(e,t){return e}function a(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return v(i)||(i=f(e,i,n)),i}var o=u(e,t);if(o)return o;var s=Object.keys(t),b=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),A(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(t);if(0===s.length){if(k(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return c(t)}var y="",m=!1,_=["{","}"];if(l(t)&&(m=!0,_=["[","]"]),k(t)){var w=t.name?": "+t.name:"";y=" [Function"+w+"]"}if(S(t)&&(y=" "+RegExp.prototype.toString.call(t)),M(t)&&(y=" "+Date.prototype.toUTCString.call(t)),A(t)&&(y=" "+c(t)),0===s.length&&(!m||0==t.length))return _[0]+y+_[1];if(0>n)return S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var E;return E=m?h(e,t,n,b,s):s.map(function(r){return d(e,t,n,b,r,m)}),e.seen.pop(),p(E,y,_)}function u(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i){for(var o=[],s=0,a=t.length;a>s;++s)O(t,String(s))?o.push(d(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))}),o}function d(e,t,r,n,i,o){var s,a,u;if(u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},u.get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),O(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=g(r)?f(e,u.value,null):f(e,u.value,r-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function l(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return null==e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function w(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===I(e)}function E(e){return"object"==typeof e&&null!==e}function M(e){return E(e)&&"[object Date]"===I(e)}function A(e){return E(e)&&("[object Error]"===I(e)||e instanceof Error)}function k(e){return"function"==typeof e}function x(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function I(e){return Object.prototype.toString.call(e)}function B(e){return 10>e?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[B(e.getHours()),B(e.getMinutes()),B(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=/%[sdj%]/g;r.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(i(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,s=String(e).replace(T,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];o>r;a=n[++r])s+=g(a)||!E(a)?" "+a:" "+i(a);return s},r.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(w(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var P,j={};r.debuglog=function(e){if(w(P)&&(P=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!j[e])if(new RegExp("\\b"+e+"\\b","i").test(P)){var n=t.pid;j[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else j[e]=function(){};return j[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=l,r.isBoolean=b,r.isNull=g,r.isNullOrUndefined=y,r.isNumber=m,r.isString=v,r.isSymbol=_,r.isUndefined=w,r.isRegExp=S,r.isObject=E,r.isDate=M,r.isError=A,r.isFunction=k,r.isPrimitive=x,r.isBuffer=e("./support/isBuffer");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":233,_process:205,inherits:202}],235:[function(require,module,exports){function Context(){}var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),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){return this instanceof Script?void(this.code=e):new Script(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 r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),s=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),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(r){t[r]=e[r]}),t}},{indexof:236}],236:[function(e,t,r){var n=[].indexOf;t.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},{}],237:[function(e,t,r){function n(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)i.call(r,n)&&(e[n]=r[n])}return e}t.exports=n;var i=Object.prototype.hasOwnProperty},{}],238:[function(e,t,r){t.exports={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}}},{}],239:[function(e,t,r){var n=e("./errors"),i=e("./types"),o=e("./reader"),s=e("./writer");t.exports={Reader:o,Writer:s};for(var a in i)i.hasOwnProperty(a)&&(t.exports[a]=i[a]);for(var f in n)n.hasOwnProperty(f)&&(t.exports[f]=n[f])},{"./errors":238,"./reader":240,"./types":241,"./writer":242}],240:[function(e,t,r){(function(r){function n(e){if(!e||!r.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e,this._size=e.length,this._len=0,this._offset=0}var i=e("assert"),o=e("./types"),s=e("./errors"),a=s.newInvalidAsn1Error;Object.defineProperty(n.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(n.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),n.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=255&this._buf[this._offset];return e||(this._offset+=1),t},n.prototype.peek=function(){return this.readByte(!0)},n.prototype.readLength=function(e){if(void 0===e&&(e=this._offset),e>=this._size)return null;var t=255&this._buf[e++];if(null===t)return null;if(128==(128&t)){if(t&=127,0==t)throw a("Indefinite length not supported");if(t>4)throw a("encoding too long");if(this._size-e<t)return null;this._len=0;for(var r=0;t>r;r++)this._len=(this._len<<8)+(255&this._buf[e++])}else this._len=t;return e},n.prototype.readSequence=function(e){var t=this.peek();if(null===t)return null;if(void 0!==e&&e!==t)throw a("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var r=this.readLength(this._offset+1);return null===r?null:(this._offset=r,t)},n.prototype.readInt=function(){return this._readTag(o.Integer)},n.prototype.readBoolean=function(){return 0===this._readTag(o.Boolean)?!1:!0},n.prototype.readEnumeration=function(){return this._readTag(o.Enumeration)},n.prototype.readString=function(e,t){e||(e=o.OctetString);var n=this.peek();if(null===n)return null;if(n!==e)throw a("Expected 0x"+e.toString(16)+": got 0x"+n.toString(16));var i=this.readLength(this._offset+1);if(null===i)return null;if(this.length>this._size-i)return null;if(this._offset=i,0===this.length)return t?new r(0):"";var s=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?s:s.toString("utf8")},n.prototype.readOID=function(e){e||(e=o.OID);var t=this.readString(e,!0);if(null===t)return null;for(var r=[],n=0,i=0;i<t.length;i++){var s=255&t[i];n<<=7,n+=127&s,0==(128&s)&&(r.push(n),n=0)}return n=r.shift(),r.unshift(n%40),r.unshift(n/40>>0),r.join(".")},n.prototype._readTag=function(e){i.ok(void 0!==e);var t=this.peek();if(null===t)return null;if(t!==e)throw a("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var r=this.readLength(this._offset+1);if(null===r)return null;if(this.length>4)throw a("Integer too long: "+this.length);if(this.length>this._size-r)return null;this._offset=r;for(var n=this._buf[this._offset],o=0,s=0;s<this.length;s++)o<<=8,o|=255&this._buf[this._offset++];return 128==(128&n)&&4!==s&&(o-=1<<8*s),o>>0},t.exports=n}).call(this,e("buffer").Buffer)},{"./errors":238,"./types":241,assert:2,buffer:4}],241:[function(e,t,r){t.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},{}],242:[function(e,t,r){(function(r){function n(e,t){o.ok(e),o.equal(typeof e,"object"),o.ok(t),o.equal(typeof t,"object");var r=Object.getOwnPropertyNames(e);return r.forEach(function(r){if(!t[r]){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n)}}),t}function i(e){e=n(f,e||{}),this._buf=new r(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}var o=e("assert"),s=e("./types"),a=e("./errors"),f=(a.newInvalidAsn1Error,{size:1024,growthFactor:8});Object.defineProperty(i.prototype,"buffer",{get:function(){if(this._seq.length)throw new InvalidAsn1Error(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),i.prototype.writeByte=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=e},i.prototype.writeInt=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");"number"!=typeof t&&(t=s.Integer);for(var r=4;(0===(4286578688&e)||-8388608===(4286578688&e))&&r>1;)r--,e<<=8;if(r>4)throw new InvalidAsn1Error("BER ints cannot be > 0xffffffff");for(this._ensure(2+r),this._buf[this._offset++]=t,this._buf[this._offset++]=r;r-- >0;)this._buf[this._offset++]=(4278190080&e)>>>24,e<<=8},i.prototype.writeNull=function(){this.writeByte(s.Null),this.writeByte(0)},i.prototype.writeEnumeration=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");return"number"!=typeof t&&(t=s.Enumeration),this.writeInt(e,t)},i.prototype.writeBoolean=function(e,t){if("boolean"!=typeof e)throw new TypeError("argument must be a Boolean");"number"!=typeof t&&(t=s.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},i.prototype.writeString=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string (was: "+typeof e+")");"number"!=typeof t&&(t=s.OctetString);var n=r.byteLength(e);this.writeByte(t),this.writeLength(n),n&&(this._ensure(n),this._buf.write(e,this._offset),this._offset+=n)},i.prototype.writeBuffer=function(e,t){if("number"!=typeof t)throw new TypeError("tag must be a number");if(!r.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t),this.writeLength(e.length),this._ensure(e.length),e.copy(this._buf,this._offset,0,e.length),this._offset+=e.length},i.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach(function(e){t.writeString(e)})},i.prototype.writeOID=function(e,t){function r(e,t){128>t?e.push(t):16384>t?(e.push(t>>>7|128),e.push(127&t)):2097152>t?(e.push(t>>>14|128),e.push(255&(t>>>7|128)),e.push(127&t)):268435456>t?(e.push(t>>>21|128),e.push(255&(t>>>14|128)),e.push(255&(t>>>7|128)),e.push(127&t)):(e.push(255&(t>>>28|128)),e.push(255&(t>>>21|128)),e.push(255&(t>>>14|128)),e.push(255&(t>>>7|128)),e.push(127&t))}if("string"!=typeof e)throw new TypeError("argument must be a string");if("number"!=typeof t&&(t=s.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");var n=e.split("."),i=[];i.push(40*parseInt(n[0],10)+parseInt(n[1],10)),n.slice(2).forEach(function(e){r(i,parseInt(e,10))});var o=this;this._ensure(2+i.length),this.writeByte(t),this.writeLength(i.length),i.forEach(function(e){o.writeByte(e)})},i.prototype.writeLength=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");if(this._ensure(4),127>=e)this._buf[this._offset++]=e;else if(255>=e)this._buf[this._offset++]=129,this._buf[this._offset++]=e;else if(65535>=e)this._buf[this._offset++]=130,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e;else{if(!(16777215>=e))throw new InvalidAsn1ERror("Length too long (> 4 bytes)");this._buf[this._offset++]=131,this._buf[this._offset++]=e>>16,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e}},i.prototype.startSequence=function(e){"number"!=typeof e&&(e=s.Sequence|s.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},i.prototype.endSequence=function(){var e=this._seq.pop(),t=e+3,r=this._offset-t;if(127>=r)this._shift(t,r,-2),this._buf[e]=r;else if(255>=r)this._shift(t,r,-1),this._buf[e]=129,this._buf[e+1]=r;else if(65535>=r)this._buf[e]=130,this._buf[e+1]=r>>8,this._buf[e+2]=r;else{if(!(16777215>=r))throw new InvalidAsn1Error("Sequence too long");this._shift(t,r,1),this._buf[e]=131,this._buf[e+1]=r>>16,this._buf[e+2]=r>>8,this._buf[e+3]=r}},i.prototype._shift=function(e,t,r){o.ok(void 0!==e),o.ok(void 0!==t),o.ok(r),this._buf.copy(this._buf,e+r,e,e+t),this._offset+=r},i.prototype._ensure=function(e){if(o.ok(e),this._size-this._offset<e){var t=this._size*this._options.growthFactor;t-this._offset<e&&(t+=e);var n=new r(t);this._buf.copy(n,0,0,this._offset),this._buf=n,this._size=t}},t.exports=i}).call(this,e("buffer").Buffer)},{"./errors":238,"./types":241,assert:2,buffer:4}],243:[function(e,t,r){var n=e("./ber/index");t.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}},{"./ber/index":239}],244:[function(e,t,r){(function(e){(function(){function n(e,t){if(e!==t){var r=e===e,n=t===t;if(e>t||!r||"undefined"==typeof e&&n)return 1;if(t>e||!n||"undefined"==typeof t&&r)return-1}return 0}function i(e,t,r){if(t!==t)return g(e,r);for(var n=(r||0)-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function o(e){return"function"==typeof e||!1}function s(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function a(e){return"string"==typeof e?e:null==e?"":e+""}function f(e){return e.charCodeAt(0)}function u(e,t){for(var r=-1,n=e.length;++r<n&&t.indexOf(e.charAt(r))>-1;);return r}function c(e,t){for(var r=e.length;r--&&t.indexOf(e.charAt(r))>-1;);return r}function h(e,t){return n(e.criteria,t.criteria)||e.index-t.index}function d(e,t){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length;++r<s;){var a=n(i[r],o[r]);if(a)return a}return e.index-t.index}function p(e){return Ke[e]}function l(e){return Fe[e]}function b(e){return"\\"+Ye[e]}function g(e,t,r){for(var n=e.length,i=r?t||n:(t||0)-1;r?i--:++i<n;){var o=e[i];if(o!==o)return i}return-1}function y(e){return e&&"object"==typeof e||!1}function m(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function v(e,t){for(var r=-1,n=e.length,i=-1,o=[];++r<n;)e[r]===t&&(e[r]=H,o[++i]=r);return o}function _(e,t){for(var r,n=-1,i=e.length,o=-1,s=[];++n<i;){var a=e[n],f=t?t(a,n,e):a;n&&r===f||(r=f,s[++o]=a)}return s}function w(e){for(var t=-1,r=e.length;++t<r&&m(e.charCodeAt(t)););return t}function S(e){for(var t=e.length;t--&&m(e.charCodeAt(t)););return t}function E(e){return He[e]}function M(e){function t(e){if(y(e)&&!Js(e)&&!(e instanceof Z)){if(e instanceof m)return e;if(rs.call(e,"__chain__")&&rs.call(e,"__wrapped__"))return Dr(e)}return new m(e)}function r(){}function m(e,t,r){this.__wrapped__=e,this.__actions__=r||[],this.__chain__=!!t}function Z(e){this.__wrapped__=e,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=Ts,this.__views__=null}function te(){var e=this.__actions__,t=this.__iteratees__,r=this.__views__,n=new Z(this.__wrapped__);return n.__actions__=e?Qe(e):null,n.__dir__=this.__dir__,n.__dropCount__=this.__dropCount__,n.__filtered__=this.__filtered__,n.__iteratees__=t?Qe(t):null,n.__takeCount__=this.__takeCount__,n.__views__=r?Qe(r):null,n}function ne(){if(this.__filtered__){var e=new Z(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ke(){var e=this.__wrapped__.value();if(!Js(e))return Xt(e,this.__actions__);var t=this.__dir__,r=0>t,n=vr(0,e.length,this.__views__),i=n.start,o=n.end,s=o-i,a=this.__dropCount__,f=ks(s,this.__takeCount__),u=r?o:i-1,c=this.__iteratees__,h=c?c.length:0,d=0,p=[];e:for(;s--&&f>d;){u+=t;for(var l=-1,b=e[u];++l<h;){var g=c[l],y=g.iteratee,m=y(b,u,e),v=g.type;if(v==z)b=m;else if(!m){if(v==U)continue e;break e}}a?a--:p[d++]=b}return p}function Fe(){this.__data__={}}function He(e){return this.has(e)&&delete this.__data__[e]}function Ge(e){return"__proto__"==e?A:this.__data__[e]}function Ye(e){return"__proto__"!=e&&rs.call(this.__data__,e)}function $e(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function We(e){var t=e?e.length:0;for(this.data={hash:Ss(null),set:new bs};t--;)this.push(e[t])}function Xe(e,t){var r=e.data,n="string"==typeof t||Ii(t)?r.set.has(t):r.hash[t];return n?0:-1}function Ze(e){var t=this.data;"string"==typeof e||Ii(e)?t.set.add(e):t.hash[e]=!0}function Qe(e,t){var r=-1,n=e.length;for(t||(t=zo(n));++r<n;)t[r]=e[r];return t}function et(e,t){for(var r=-1,n=e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function tt(e,t){for(var r=e.length;r--&&t(e[r],r,e)!==!1;);return e}function rt(e,t){for(var r=-1,n=e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function nt(e,t){for(var r=-1,n=e.length,i=-1,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[++i]=s)}return o}function it(e,t){for(var r=-1,n=e.length,i=zo(n);++r<n;)i[r]=t(e[r],r,e);return i}function ot(e){for(var t=-1,r=e.length,n=Os;++t<r;){var i=e[t];i>n&&(n=i)}return n}function st(e){for(var t=-1,r=e.length,n=Ts;++t<r;){var i=e[t];n>i&&(n=i)}return n}function at(e,t,r,n){var i=-1,o=e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function ft(e,t,r,n){var i=e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function ut(e,t){for(var r=-1,n=e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function ct(e,t){return"undefined"==typeof e?t:e}function ht(e,t,r,n){return"undefined"!=typeof e&&rs.call(n,r)?e:t}function dt(e,t,r){var n=na(t);if(!r)return lt(t,e,n);for(var i=-1,o=n.length;++i<o;){var s=n[i],a=e[s],f=r(a,t[s],s,e,t);(f===f?f===a:a!==a)&&("undefined"!=typeof a||s in e)||(e[s]=f)}return e}function pt(e,t){for(var r=-1,n=e.length,i=kr(n),o=t.length,s=zo(o);++r<o;){var a=t[r];i?(a=parseFloat(a),s[r]=Mr(a,n)?e[a]:A):s[r]=e[a]}return s}function lt(e,t,r){r||(r=t,t={});for(var n=-1,i=r.length;++n<i;){var o=r[n];t[o]=e[o]}return t}function bt(e,t){for(var r=-1,n=t.length;++r<n;){var i=t[r];e[i]=dr(e[i],x,e)}return e}function gt(e,t,r){var n=typeof e;return"function"==n?"undefined"!=typeof t&&Er(e)?Qt(e,t,r):e:null==e?Ro:"object"==n?Lt(e):"undefined"==typeof t?Kt(e+""):qt(e+"",t)}function yt(e,t,r,n,i,o,s){var a;if(r&&(a=i?r(e,n,i):r(e)),"undefined"!=typeof a)return a;if(!Ii(e))return e;var f=Js(e);if(f){if(a=_r(e),!t)return Qe(e,a)}else{var u=is.call(e),c=u==X;if(u!=Q&&u!=G&&(!c||i))return Ue[u]?Sr(e,u,t):i?e:{};if(a=wr(c?{}:e),!t)return lt(e,a,na(e))}o||(o=[]),s||(s=[]);for(var h=o.length;h--;)if(o[h]==e)return s[h];return o.push(e),s.push(a),(f?et:Rt)(e,function(n,i){a[i]=yt(n,t,r,i,e,o,s)}),a}function mt(e,t,r,n){if("function"!=typeof e)throw new Xo(F);return gs(function(){e.apply(A,Yt(r,n))},t)}function vt(e,t){var r=e?e.length:0,n=[];if(!r)return n;var o=-1,s=mr(),a=s==i,f=a&&t.length>=200&&Ks(t),u=t.length;f&&(s=Xe,a=!1,t=f);e:for(;++o<r;){var c=e[o];if(a&&c===c){for(var h=u;h--;)if(t[h]===c)continue e;n.push(c)}else s(t,c)<0&&n.push(c)}return n}function _t(e,t){var r=e?e.length:0;if(!kr(r))return Rt(e,t);for(var n=-1,i=Cr(e);++n<r&&t(i[n],n,i)!==!1;);return e}function wt(e,t){var r=e?e.length:0;if(!kr(r))return Ot(e,t);for(var n=Cr(e);r--&&t(n[r],r,n)!==!1;);return e}function St(e,t){var r=!0;return _t(e,function(e,n,i){return r=!!t(e,n,i)}),r}function Et(e,t,r,n){var i=e.length;for(r=null==r?0:+r||0,0>r&&(r=-r>i?0:i+r),n="undefined"==typeof n||n>i?i:+n||0,0>n&&(n+=i),i=r>n?0:n>>>0,r>>>=0;i>r;)e[r++]=t;return e}function Mt(e,t){var r=[];return _t(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function At(e,t,r,n){var i;return r(e,function(e,r,o){return t(e,r,o)?(i=n?r:e,!1):void 0}),i}function kt(e,t,r,n){for(var i=(n||0)-1,o=e.length,s=-1,a=[];++i<o;){var f=e[i];if(y(f)&&kr(f.length)&&(Js(f)||wi(f))){t&&(f=kt(f,t,r));var u=-1,c=f.length;for(a.length+=c;++u<c;)a[++s]=f[u]}else r||(a[++s]=f)}return a}function xt(e,t,r){for(var n=-1,i=Cr(e),o=r(e),s=o.length;++n<s;){var a=o[n];if(t(i[a],a,i)===!1)break}return e}function It(e,t,r){for(var n=Cr(e),i=r(e),o=i.length;o--;){var s=i[o];if(t(n[s],s,n)===!1)break}return e}function Bt(e,t){return xt(e,t,Zi)}function Rt(e,t){return xt(e,t,na)}function Ot(e,t){return It(e,t,na)}function Tt(e,t){for(var r=-1,n=t.length,i=-1,o=[];++r<n;){var s=t[r];ea(e[s])&&(o[++i]=s)}return o}function Pt(e,t,r){var n=-1,i="function"==typeof t,o=e?e.length:0,s=kr(o)?zo(o):[];return _t(e,function(e){var o=i?t:null!=e&&e[t];s[++n]=o?o.apply(e,r):A}),s}function jt(e,t,r,n,i,o){if(e===t)return 0!==e||1/e==1/t;var s=typeof e,a=typeof t;return"function"!=s&&"object"!=s&&"function"!=a&&"object"!=a||null==e||null==t?e!==e&&t!==t:Ct(e,t,jt,r,n,i,o)}function Ct(e,t,r,n,i,o,s){var a=Js(e),f=Js(t),u=Y,c=Y;a||(u=is.call(e),u==G?u=Q:u!=Q&&(a=Di(e))),f||(c=is.call(t),c==G?c=Q:c!=Q&&(f=Di(t)));var h=u==Q,d=c==Q,p=u==c;if(p&&!a&&!h)return lr(e,t,u);var l=h&&rs.call(e,"__wrapped__"),b=d&&rs.call(t,"__wrapped__");if(l||b)return r(l?e.value():e,b?t.value():t,n,i,o,s);if(!p)return!1;o||(o=[]),s||(s=[]);for(var g=o.length;g--;)if(o[g]==e)return s[g]==t;o.push(e),s.push(t);var y=(a?pr:br)(e,t,r,n,i,o,s);return o.pop(),s.pop(),y}function Dt(e,t,r,n,i){var o=t.length;if(null==e)return!o;for(var s=-1,a=!i;++s<o;)if(a&&n[s]?r[s]!==e[t[s]]:!rs.call(e,t[s]))return!1;for(s=-1;++s<o;){var f=t[s];if(a&&n[s])var u=rs.call(e,f);else{var c=e[f],h=r[s];u=i?i(c,h,f):A,"undefined"==typeof u&&(u=jt(h,c,i,!0))}if(!u)return!1}return!0}function Nt(e,t){var r=[];return _t(e,function(e,n,i){r.push(t(e,n,i))}),r}function Lt(e){var t=na(e),r=t.length;if(1==r){var n=t[0],i=e[n];if(xr(i))return function(e){return null!=e&&e[n]===i&&rs.call(e,n)}}for(var o=zo(r),s=zo(r);r--;)i=e[t[r]],o[r]=i,s[r]=xr(i);return function(e){return Dt(e,t,o,s)}}function qt(e,t){return xr(t)?function(r){return null!=r&&r[e]===t}:function(r){return null!=r&&jt(t,r[e],null,!0)}}function Ut(e,t,r,n,i){if(!Ii(e))return e;var o=kr(t.length)&&(Js(t)||Di(t));return(o?et:Rt)(t,function(t,s,a){if(y(t))return n||(n=[]),i||(i=[]),zt(e,a,s,Ut,r,n,i);var f=e[s],u=r?r(f,t,s,e,a):A,c="undefined"==typeof u;c&&(u=t),!o&&"undefined"==typeof u||!c&&(u===u?u===f:f!==f)||(e[s]=u)}),e}function zt(e,t,r,n,i,o,s){for(var a=o.length,f=t[r];a--;)if(o[a]==f)return void(e[r]=s[a]);var u=e[r],c=i?i(u,f,r,e,t):A,h="undefined"==typeof c;h&&(c=f,kr(f.length)&&(Js(f)||Di(f))?c=Js(u)?u:u?Qe(u):[]:ta(f)||wi(f)?c=wi(u)?qi(u):ta(u)?u:{}:h=!1),o.push(f),s.push(c),h?e[r]=n(c,f,i,o,s):(c===c?c!==u:u===u)&&(e[r]=c)}function Kt(e){return function(t){return null==t?A:t[e]}}function Ft(e,t){var r=t.length,i=pt(e,t);for(t.sort(n);r--;){var o=parseFloat(t[r]);if(o!=s&&Mr(o)){var s=o;ys.call(e,o,1)}}return i}function Ht(e,t){return e+hs(Rs()*(t-e+1))}function Gt(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function Yt(e,t,r){var n=-1,i=e.length;t=null==t?0:+t||0,0>t&&(t=-t>i?0:i+t),r="undefined"==typeof r||r>i?i:+r||0,0>r&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=zo(i);++n<i;)o[n]=e[n+t];return o}function Vt(e,t){var r;return _t(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}function $t(e,t){var r=-1,n=mr(),o=e.length,s=n==i,a=s&&o>=200,f=a&&Ks(),u=[];f?(n=Xe,s=!1):(a=!1,f=t?[]:u);e:for(;++r<o;){var c=e[r],h=t?t(c,r,e):c;if(s&&c===c){for(var d=f.length;d--;)if(f[d]===h)continue e;t&&f.push(h),u.push(c)}else n(f,h)<0&&((t||a)&&f.push(h),u.push(c))}return u}function Wt(e,t){for(var r=-1,n=t.length,i=zo(n);++r<n;)i[r]=e[t[r]];return i}function Xt(e,t){var r=e;r instanceof Z&&(r=r.value());for(var n=-1,i=t.length;++n<i;){var o=[r],s=t[n];ps.apply(o,s.args),r=s.func.apply(s.thisArg,o)}return r}function Zt(e,t,r){var n=0,i=e?e.length:n;if("number"==typeof t&&t===t&&Cs>=i){for(;i>n;){var o=n+i>>>1,s=e[o];(r?t>=s:t>s)?n=o+1:i=o}return i}return Jt(e,t,Ro,r)}function Jt(e,t,r,n){t=r(t);for(var i=0,o=e?e.length:0,s=t!==t,a="undefined"==typeof t;o>i;){var f=hs((i+o)/2),u=r(e[f]),c=u===u;if(s)var h=c||n;else h=a?c&&(n||"undefined"!=typeof u):n?t>=u:t>u;h?i=f+1:o=f}return ks(o,js)}function Qt(e,t,r){if("function"!=typeof e)return Ro;if("undefined"==typeof t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,o){return e.call(t,r,n,i,o)};case 5:return function(r,n,i,o,s){return e.call(t,r,n,i,o,s)}}return function(){return e.apply(t,arguments)}}function er(e){return fs.call(e,0)}function tr(e,t,r){for(var n=r.length,i=-1,o=As(e.length-n,0),s=-1,a=t.length,f=zo(o+a);++s<a;)f[s]=t[s];for(;++i<n;)f[r[i]]=e[i];for(;o--;)f[s++]=e[i++];return f}function rr(e,t,r){for(var n=-1,i=r.length,o=-1,s=As(e.length-i,0),a=-1,f=t.length,u=zo(s+f);++o<s;)u[o]=e[o];for(var c=o;++a<f;)u[c+a]=t[a];for(;++n<i;)u[c+r[n]]=e[o++];return u}function nr(e,t){return function(r,n,i){var o=t?t():{};if(n=yr(n,i,3),Js(r))for(var s=-1,a=r.length;++s<a;){var f=r[s];e(o,f,n(f,s,r),r)}else _t(r,function(t,r,i){e(o,t,n(t,r,i),i)});return o}}function ir(e){return function(){var t=arguments.length,r=arguments[0];if(2>t||null==r)return r;if(t>3&&Ar(arguments[1],arguments[2],arguments[3])&&(t=2),t>3&&"function"==typeof arguments[t-2])var n=Qt(arguments[--t-1],arguments[t--],5);else t>2&&"function"==typeof arguments[t-1]&&(n=arguments[--t]);for(var i=0;++i<t;){var o=arguments[i];o&&e(r,o,n)}return r}}function or(e,t){function r(){return(this instanceof r?n:e).apply(t,arguments)}var n=ar(e);return r}function sr(e){return function(t){for(var r=-1,n=ko(uo(t)),i=n.length,o="";++r<i;)o=e(o,n[r],r);return o}}function ar(e){return function(){var t=Us(e.prototype),r=e.apply(t,arguments);return Ii(r)?r:t}}function fr(e,t){return function(r,n,i){i&&Ar(r,n,i)&&(n=null);var o=yr(),s=null==n;if(o===gt&&s||(s=!1,n=o(n,i,3)),s){var a=Js(r);if(a||!Ci(r))return e(a?r:jr(r));n=f}return gr(r,n,t)}}function ur(e,t,r,n,i,o,s,a,f,u){function c(){for(var _=arguments.length,w=_,S=zo(_);w--;)S[w]=arguments[w];if(n&&(S=tr(S,n,i)),o&&(S=rr(S,o,s)),l||g){var E=c.placeholder,M=v(S,E);if(_-=M.length,u>_){var A=a?Qe(a):null,k=As(u-_,0),B=l?M:null,R=l?null:M,O=l?S:null,j=l?null:S;t|=l?T:P,t&=~(l?P:T),b||(t&=~(x|I));var C=ur(e,t,r,O,B,j,R,A,f,k);return C.placeholder=E,C}}var D=d?r:this;return p&&(e=D[m]),a&&(S=Or(S,a)),h&&f<S.length&&(S.length=f),(this instanceof c?y||ar(e):e).apply(D,S)}var h=t&C,d=t&x,p=t&I,l=t&R,b=t&B,g=t&O,y=!p&&ar(e),m=e;return c}function cr(e,t,r){var n=e.length;if(t=+t,n>=t||!Es(t))return"";var i=t-n;return r=null==r?" ":r+"",mo(r,us(i/r.length)).slice(0,i)}function hr(e,t,r,n){function i(){for(var t=-1,a=arguments.length,f=-1,u=n.length,c=zo(a+u);++f<u;)c[f]=n[f];for(;a--;)c[f++]=arguments[++t];return(this instanceof i?s:e).apply(o?r:this,c)}var o=t&x,s=ar(e);return i}function dr(e,t,r,n,i,o,s,a){var f=t&I;if(!f&&"function"!=typeof e)throw new Xo(F);var u=n?n.length:0;if(u||(t&=~(T|P),n=i=null),u-=i?i.length:0,t&P){var c=n,h=i;n=i=null}var d=!f&&Fs(e),p=[e,t,r,n,i,c,h,o,s,a];if(d&&d!==!0&&(Ir(p,d),t=p[1],a=p[9]),p[9]=null==a?f?0:e.length:As(a-u,0)||0,t==x)var l=or(p[0],p[2]);else l=t!=T&&t!=(x|T)||p[4].length?ur.apply(A,p):hr.apply(A,p);var b=d?zs:Hs;return b(l,p)}function pr(e,t,r,n,i,o,s){var a=-1,f=e.length,u=t.length,c=!0;if(f!=u&&!(i&&u>f))return!1;for(;c&&++a<f;){var h=e[a],d=t[a];if(c=A,n&&(c=i?n(d,h,a):n(h,d,a)),"undefined"==typeof c)if(i)for(var p=u;p--&&(d=t[p],!(c=h&&h===d||r(h,d,n,i,o,s))););else c=h&&h===d||r(h,d,n,i,o,s)}return!!c}function lr(e,t,r){switch(r){case V:case $:return+e==+t;case W:return e.name==t.name&&e.message==t.message;case J:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case ee:case re:return e==t+""}return!1}function br(e,t,r,n,i,o,s){var a=na(e),f=a.length,u=na(t),c=u.length;if(f!=c&&!i)return!1;for(var h,d=-1;++d<f;){var p=a[d],l=rs.call(t,p);if(l){var b=e[p],g=t[p];l=A,n&&(l=i?n(g,b,p):n(b,g,p)),"undefined"==typeof l&&(l=b&&b===g||r(b,g,n,i,o,s))}if(!l)return!1;h||(h="constructor"==p)}if(!h){var y=e.constructor,m=t.constructor;if(y!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m))return!1}return!0}function gr(e,t,r){var n=r?Ts:Os,i=n,o=i;return _t(e,function(e,s,a){var f=t(e,s,a);((r?i>f:f>i)||f===n&&f===o)&&(i=f,o=e)}),o}function yr(e,r,n){var i=t.callback||Io;return i=i===Io?gt:i,n?i(e,r,n):i}function mr(e,r,n){var o=t.indexOf||Xr;return o=o===Xr?i:o,e?o(e,r,n):o}function vr(e,t,r){for(var n=-1,i=r?r.length:0;++n<i;){var o=r[n],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=ks(t,e+s);break;case"takeRight":e=As(e,t-s)}}return{start:e,end:t}}function _r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&rs.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function wr(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Vo),new t}function Sr(e,t,r){var n=e.constructor;switch(t){case ie:return er(e);case V:case $:return new n(+e);case oe:case se:case ae:case fe:case ue:case ce:case he:case de:case pe:var i=e.buffer;return new n(r?er(i):i,e.byteOffset,e.length);case J:case re:return new n(e);case ee:var o=new n(e.source,Ae.exec(e));o.lastIndex=e.lastIndex}return o}function Er(e){var r=t.support,n=!(r.funcNames?e.name:r.funcDecomp);if(!n){var i=es.call(e);r.funcNames||(n=!ke.test(i)),n||(n=Pe.test(i)||Oi(e),zs(e,n))}return n}function Mr(e,t){return e=+e,t=null==t?Ns:t,e>-1&&e%1==0&&t>e}function Ar(e,t,r){if(!Ii(r))return!1;var n=typeof t;if("number"==n)var i=r.length,o=kr(i)&&Mr(t,i);else o="string"==n&&t in r;var s=r[t];return o&&(e===e?e===s:s!==s)}function kr(e){return"number"==typeof e&&e>-1&&e%1==0&&Ns>=e}function xr(e){return e===e&&(0===e?1/e>0:!Ii(e))}function Ir(e,t){var r=e[1],n=t[1],i=r|n,o=C|j,s=x|I,a=o|s|B|O,f=r&C&&!(n&C),u=r&j&&!(n&j),c=(u?e:t)[7],h=(f?e:t)[8],d=!(r>=j&&n>s||r>s&&n>=j),p=i>=o&&a>=i&&(j>r||(u||f)&&c.length<=h);if(!d&&!p)return e;n&x&&(e[2]=t[2],i|=r&x?0:B);var l=t[3];if(l){var b=e[3];e[3]=b?tr(b,l,t[4]):Qe(l),e[4]=b?v(e[3],H):Qe(t[4])}return l=t[5],l&&(b=e[5],e[5]=b?rr(b,l,t[6]):Qe(l),e[6]=b?v(e[5],H):Qe(t[6])),l=t[7],l&&(e[7]=Qe(l)),n&C&&(e[8]=null==e[8]?t[8]:ks(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function Br(e,t){e=Cr(e);for(var r=-1,n=t.length,i={};++r<n;){var o=t[r];o in e&&(i[o]=e[o])}return i}function Rr(e,t){var r={};return Bt(e,function(e,n,i){t(e,n,i)&&(r[n]=e)}),r}function Or(e,t){for(var r=e.length,n=ks(t.length,r),i=Qe(e);n--;){var o=t[n];e[n]=Mr(o,r)?i[o]:A}return e}function Tr(e){var r;t.support;if(!y(e)||is.call(e)!=Q||!rs.call(e,"constructor")&&(r=e.constructor,"function"==typeof r&&!(r instanceof r)))return!1;var n;return Bt(e,function(e,t){n=t}),"undefined"==typeof n||rs.call(e,n)}function Pr(e){for(var r=Zi(e),n=r.length,i=n&&e.length,o=t.support,s=i&&kr(i)&&(Js(e)||o.nonEnumArgs&&wi(e)),a=-1,f=[];++a<n;){var u=r[a];(s&&Mr(u,i)||rs.call(e,u))&&f.push(u)}return f}function jr(e){return null==e?[]:kr(e.length)?Ii(e)?e:Vo(e):io(e)}function Cr(e){return Ii(e)?e:Vo(e)}function Dr(e){return e instanceof Z?e.clone():new m(e.__wrapped__,e.__chain__,Qe(e.__actions__))}function Nr(e,t,r){t=(r?Ar(e,t,r):null==t)?1:As(+t||1,1);for(var n=0,i=e?e.length:0,o=-1,s=zo(us(i/t));i>n;)s[++o]=Yt(e,n,n+=t);return s}function Lr(e){for(var t=-1,r=e?e.length:0,n=-1,i=[];++t<r;){var o=e[t];o&&(i[++n]=o)}return i}function qr(){for(var e=-1,t=arguments.length;++e<t;){var r=arguments[e];if(Js(r)||wi(r))break}return vt(r,kt(arguments,!1,!0,++e))}function Ur(e,t,r){var n=e?e.length:0;return n?((r?Ar(e,t,r):null==t)&&(t=1),Yt(e,0>t?0:t)):[]}function zr(e,t,r){var n=e?e.length:0;return n?((r?Ar(e,t,r):null==t)&&(t=1),t=n-(+t||0),Yt(e,0,0>t?0:t)):[]}function Kr(e,t,r){var n=e?e.length:0;if(!n)return[];for(t=yr(t,r,3);n--&&t(e[n],n,e););return Yt(e,0,n+1)}function Fr(e,t,r){var n=e?e.length:0;if(!n)return[];var i=-1;for(t=yr(t,r,3);++i<n&&t(e[i],i,e););return Yt(e,i)}function Hr(e,t,r,n){var i=e?e.length:0;return i?(r&&"number"!=typeof r&&Ar(e,t,r)&&(r=0,n=i),Et(e,t,r,n)):[]}function Gr(e,t,r){var n=-1,i=e?e.length:0;for(t=yr(t,r,3);++n<i;)if(t(e[n],n,e))return n;return-1}function Yr(e,t,r){var n=e?e.length:0;for(t=yr(t,r,3);n--;)if(t(e[n],n,e))return n;return-1}function Vr(e){return e?e[0]:A}function $r(e,t,r){var n=e?e.length:0;return r&&Ar(e,t,r)&&(t=!1),n?kt(e,t):[]}function Wr(e){var t=e?e.length:0;return t?kt(e,!0):[]}function Xr(e,t,r){var n=e?e.length:0;if(!n)return-1;if("number"==typeof r)r=0>r?As(n+r,0):r||0;else if(r){var o=Zt(e,t),s=e[o];return(t===t?t===s:s!==s)?o:-1}return i(e,t,r)}function Zr(e){return zr(e,1)}function Jr(){for(var e=[],t=-1,r=arguments.length,n=[],o=mr(),s=o==i;++t<r;){var a=arguments[t];(Js(a)||wi(a))&&(e.push(a),n.push(s&&a.length>=120&&Ks(t&&a)))}r=e.length;var f=e[0],u=-1,c=f?f.length:0,h=[],d=n[0];e:for(;++u<c;)if(a=f[u],(d?Xe(d,a):o(h,a))<0){for(t=r;--t;){var p=n[t];if((p?Xe(p,a):o(e[t],a))<0)continue e}d&&d.push(a),h.push(a)}return h}function Qr(e){var t=e?e.length:0;return t?e[t-1]:A}function en(e,t,r){var n=e?e.length:0;if(!n)return-1;var i=n;if("number"==typeof r)i=(0>r?As(n+r,0):ks(r||0,n-1))+1;else if(r){i=Zt(e,t,!0)-1;var o=e[i];return(t===t?t===o:o!==o)?i:-1}if(t!==t)return g(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1}function tn(){var e=arguments[0];if(!e||!e.length)return e;for(var t=0,r=mr(),n=arguments.length;++t<n;)for(var i=0,o=arguments[t];(i=r(e,o,i))>-1;)ys.call(e,i,1);return e}function rn(e){return Ft(e||[],kt(arguments,!1,!1,1))}function nn(e,t,r){var n=-1,i=e?e.length:0,o=[];for(t=yr(t,r,3);++n<i;){var s=e[n];t(s,n,e)&&(o.push(s),ys.call(e,n--,1),i--)}return o}function on(e){return Ur(e,1)}function sn(e,t,r){var n=e?e.length:0;return n?(r&&"number"!=typeof r&&Ar(e,t,r)&&(t=0,r=n),Yt(e,t,r)):[]}function an(e,t,r,n){var i=yr(r);return i===gt&&null==r?Zt(e,t):Jt(e,t,i(r,n,1))}function fn(e,t,r,n){var i=yr(r);return i===gt&&null==r?Zt(e,t,!0):Jt(e,t,i(r,n,1),!0)}function un(e,t,r){var n=e?e.length:0;return n?((r?Ar(e,t,r):null==t)&&(t=1),Yt(e,0,0>t?0:t)):[]}function cn(e,t,r){var n=e?e.length:0;return n?((r?Ar(e,t,r):null==t)&&(t=1),t=n-(+t||0),Yt(e,0>t?0:t)):[]}function hn(e,t,r){var n=e?e.length:0;if(!n)return[];for(t=yr(t,r,3);n--&&t(e[n],n,e););return Yt(e,n+1)}function dn(e,t,r){var n=e?e.length:0;if(!n)return[];var i=-1;for(t=yr(t,r,3);++i<n&&t(e[i],i,e););return Yt(e,0,i)}function pn(){return $t(kt(arguments,!1,!0))}function ln(e,t,r,n){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(n=r,r=Ar(e,t,n)?null:t,t=!1);var s=yr();return(s!==gt||null!=r)&&(r=s(r,n,3)),t&&mr()==i?_(e,r):$t(e,r);
}function bn(e){for(var t=-1,r=(e&&e.length&&ot(it(e,ts)))>>>0,n=zo(r);++t<r;)n[t]=it(e,Kt(t));return n}function gn(e){return vt(e,Yt(arguments,1))}function yn(){for(var e=-1,t=arguments.length;++e<t;){var r=arguments[e];if(Js(r)||wi(r))var n=n?vt(n,r).concat(vt(r,n)):r}return n?$t(n):[]}function mn(){for(var e=arguments.length,t=zo(e);e--;)t[e]=arguments[e];return bn(t)}function vn(e,t){var r=-1,n=e?e.length:0,i={};for(!n||t||Js(e[0])||(t=[]);++r<n;){var o=e[r];t?i[o]=t[r]:o&&(i[o[0]]=o[1])}return i}function _n(e){var r=t(e);return r.__chain__=!0,r}function wn(e,t,r){return t.call(r,e),e}function Sn(e,t,r){return t.call(r,e)}function En(){return _n(this)}function Mn(){return new m(this.value(),this.__chain__)}function An(e){for(var t,n=this;n instanceof r;){var i=Dr(n);t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t}function kn(){var e=this.__wrapped__;return e instanceof Z?(this.__actions__.length&&(e=new Z(this)),new m(e.reverse(),this.__chain__)):this.thru(function(e){return e.reverse()})}function xn(){return this.value()+""}function In(){return Xt(this.__wrapped__,this.__actions__)}function Bn(e){var t=e?e.length:0;return kr(t)&&(e=jr(e)),pt(e,kt(arguments,!1,!1,1))}function Rn(e,t,r){var n=Js(e)?rt:St;return("function"!=typeof t||"undefined"!=typeof r)&&(t=yr(t,r,3)),n(e,t)}function On(e,t,r){var n=Js(e)?nt:Mt;return t=yr(t,r,3),n(e,t)}function Tn(e,t,r){if(Js(e)){var n=Gr(e,t,r);return n>-1?e[n]:A}return t=yr(t,r,3),At(e,t,_t)}function Pn(e,t,r){return t=yr(t,r,3),At(e,t,wt)}function jn(e,t){return Tn(e,Lt(t))}function Cn(e,t,r){return"function"==typeof t&&"undefined"==typeof r&&Js(e)?et(e,t):_t(e,Qt(t,r,3))}function Dn(e,t,r){return"function"==typeof t&&"undefined"==typeof r&&Js(e)?tt(e,t):wt(e,Qt(t,r,3))}function Nn(e,t,r){var n=e?e.length:0;return kr(n)||(e=io(e),n=e.length),n?(r="number"==typeof r?0>r?As(n+r,0):r||0:0,"string"==typeof e||!Js(e)&&Ci(e)?n>r&&e.indexOf(t,r)>-1:mr(e,t,r)>-1):!1}function Ln(e,t){return Pt(e,t,Yt(arguments,2))}function qn(e,t,r){var n=Js(e)?it:Nt;return t=yr(t,r,3),n(e,t)}function Un(e,t){return qn(e,Kt(t))}function zn(e,t,r,n){var i=Js(e)?at:Gt;return i(e,yr(t,n,4),r,arguments.length<3,_t)}function Kn(e,t,r,n){var i=Js(e)?ft:Gt;return i(e,yr(t,n,4),r,arguments.length<3,wt)}function Fn(e,t,r){var n=Js(e)?nt:Mt;return t=yr(t,r,3),n(e,function(e,r,n){return!t(e,r,n)})}function Hn(e,t,r){if(r?Ar(e,t,r):null==t){e=jr(e);var n=e.length;return n>0?e[Ht(0,n-1)]:A}var i=Gn(e);return i.length=ks(0>t?0:+t||0,i.length),i}function Gn(e){e=jr(e);for(var t=-1,r=e.length,n=zo(r);++t<r;){var i=Ht(0,t);t!=i&&(n[t]=n[i]),n[i]=e[t]}return n}function Yn(e){var t=e?e.length:0;return kr(t)?t:na(e).length}function Vn(e,t,r){var n=Js(e)?ut:Vt;return("function"!=typeof t||"undefined"!=typeof r)&&(t=yr(t,r,3)),n(e,t)}function $n(e,t,r){var n=-1,i=e?e.length:0,o=kr(i)?zo(i):[];return r&&Ar(e,t,r)&&(t=null),t=yr(t,r,3),_t(e,function(e,r,i){o[++n]={criteria:t(e,r,i),index:n,value:e}}),s(o,h)}function Wn(e){var t=arguments;t.length>3&&Ar(t[1],t[2],t[3])&&(t=[e,t[1]]);var r=-1,n=e?e.length:0,i=kt(t,!1,!1,1),o=kr(n)?zo(n):[];return _t(e,function(e){for(var t=i.length,n=zo(t);t--;)n[t]=null==e?A:e[i[t]];o[++r]={criteria:n,index:r,value:e}}),s(o,d)}function Xn(e,t){return On(e,Lt(t))}function Zn(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Xo(F);var r=e;e=t,t=r}return e=Es(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function Jn(e,t,r){return r&&Ar(e,t,r)&&(t=null),t=e&&null==t?e.length:As(+t||0,0),dr(e,C,null,null,null,null,t)}function Qn(e,t){var r;if("function"!=typeof t){if("function"!=typeof e)throw new Xo(F);var n=e;e=t,t=n}return function(){return--e>0?r=t.apply(this,arguments):t=null,r}}function ei(e,t){var r=x;if(arguments.length>2){var n=Yt(arguments,2),i=v(n,ei.placeholder);r|=T}return dr(e,r,t,n,i)}function ti(e){return bt(e,arguments.length>1?kt(arguments,!1,!1,1):$i(e))}function ri(e,t){var r=x|I;if(arguments.length>2){var n=Yt(arguments,2),i=v(n,ri.placeholder);r|=T}return dr(t,r,e,n,i)}function ni(e,t,r){r&&Ar(e,t,r)&&(t=null);var n=dr(e,R,null,null,null,null,null,t);return n.placeholder=ni.placeholder,n}function ii(e,t,r){r&&Ar(e,t,r)&&(t=null);var n=dr(e,O,null,null,null,null,null,t);return n.placeholder=ii.placeholder,n}function oi(e,t,r){function n(){d&&cs(d),f&&cs(f),f=d=p=A}function i(){var r=t-(Zs()-c);if(0>=r||r>t){f&&cs(f);var n=p;f=d=p=A,n&&(l=Zs(),u=e.apply(h,a),d||f||(a=h=null))}else d=gs(i,r)}function o(){d&&cs(d),f=d=p=A,(g||b!==t)&&(l=Zs(),u=e.apply(h,a),d||f||(a=h=null))}function s(){if(a=arguments,c=Zs(),h=this,p=g&&(d||!y),b===!1)var r=y&&!d;else{f||y||(l=c);var n=b-(c-l),s=0>=n||n>b;s?(f&&(f=cs(f)),l=c,u=e.apply(h,a)):f||(f=gs(o,n))}return s&&d?d=cs(d):d||t===b||(d=gs(i,t)),r&&(s=!0,u=e.apply(h,a)),!s||d||f||(a=h=null),u}var a,f,u,c,h,d,p,l=0,b=!1,g=!0;if("function"!=typeof e)throw new Xo(F);if(t=0>t?0:t,r===!0){var y=!0;g=!1}else Ii(r)&&(y=r.leading,b="maxWait"in r&&As(+r.maxWait||0,t),g="trailing"in r?r.trailing:g);return s.cancel=n,s}function si(e){return mt(e,1,arguments,1)}function ai(e,t){return mt(e,t,arguments,2)}function fi(){var e=arguments,t=e.length;if(!t)return function(){return arguments[0]};if(!rt(e,o))throw new Xo(F);return function(){for(var r=0,n=e[r].apply(this,arguments);++r<t;)n=e[r].call(this,n);return n}}function ui(){var e=arguments,t=e.length-1;if(0>t)return function(){return arguments[0]};if(!rt(e,o))throw new Xo(F);return function(){for(var r=t,n=e[r].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function ci(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Xo(F);var r=function(){var n=r.cache,i=t?t.apply(this,arguments):arguments[0];if(n.has(i))return n.get(i);var o=e.apply(this,arguments);return n.set(i,o),o};return r.cache=new ci.Cache,r}function hi(e){if("function"!=typeof e)throw new Xo(F);return function(){return!e.apply(this,arguments)}}function di(e){return Qn(e,2)}function pi(e){var t=Yt(arguments,1),r=v(t,pi.placeholder);return dr(e,T,null,t,r)}function li(e){var t=Yt(arguments,1),r=v(t,li.placeholder);return dr(e,P,null,t,r)}function bi(e){var t=kt(arguments,!1,!1,1);return dr(e,j,null,null,null,t)}function gi(e){if("function"!=typeof e)throw new Xo(F);return function(t){return e.apply(this,t)}}function yi(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Xo(F);return r===!1?n=!1:Ii(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ze.leading=n,ze.maxWait=+t,ze.trailing=i,oi(e,t,ze)}function mi(e,t){return t=null==t?Ro:t,dr(t,T,null,[e],[])}function vi(e,t,r,n){return t&&"boolean"!=typeof t&&Ar(e,t,r)?t=!1:"function"==typeof t&&(n=r,r=t,t=!1),r="function"==typeof r&&Qt(r,n,1),yt(e,t,r)}function _i(e,t,r){return t="function"==typeof t&&Qt(t,r,1),yt(e,!0,t)}function wi(e){var t=y(e)?e.length:A;return kr(t)&&is.call(e)==G||!1}function Si(e){return e===!0||e===!1||y(e)&&is.call(e)==V||!1}function Ei(e){return y(e)&&is.call(e)==$||!1}function Mi(e){return e&&1===e.nodeType&&y(e)&&is.call(e).indexOf("Element")>-1||!1}function Ai(e){if(null==e)return!0;var t=e.length;return kr(t)&&(Js(e)||Ci(e)||wi(e)||y(e)&&ea(e.splice))?!t:!na(e).length}function ki(e,t,r,n){if(r="function"==typeof r&&Qt(r,n,3),!r&&xr(e)&&xr(t))return e===t;var i=r?r(e,t):A;return"undefined"==typeof i?jt(e,t,r):!!i}function xi(e){return y(e)&&"string"==typeof e.message&&is.call(e)==W||!1}function Ii(e){var t=typeof e;return"function"==t||e&&"object"==t||!1}function Bi(e,t,r,n){var i=na(t),o=i.length;if(r="function"==typeof r&&Qt(r,n,3),!r&&1==o){var s=i[0],a=t[s];if(xr(a))return null!=e&&a===e[s]&&rs.call(e,s)}for(var f=zo(o),u=zo(o);o--;)a=f[o]=t[i[o]],u[o]=xr(a);return Dt(e,i,f,u,r)}function Ri(e){return Pi(e)&&e!=+e}function Oi(e){return null==e?!1:is.call(e)==X?ss.test(es.call(e)):y(e)&&Ie.test(e)||!1}function Ti(e){return null===e}function Pi(e){return"number"==typeof e||y(e)&&is.call(e)==J||!1}function ji(e){return y(e)&&is.call(e)==ee||!1}function Ci(e){return"string"==typeof e||y(e)&&is.call(e)==re||!1}function Di(e){return y(e)&&kr(e.length)&&qe[is.call(e)]||!1}function Ni(e){return"undefined"==typeof e}function Li(e){var t=e?e.length:0;return kr(t)?t?Qe(e):[]:io(e)}function qi(e){return lt(e,Zi(e))}function Ui(e,t,r){var n=Us(e);return r&&Ar(e,t,r)&&(t=null),t?lt(t,n,na(t)):n}function zi(e){if(null==e)return e;var t=Qe(arguments);return t.push(ct),ra.apply(A,t)}function Ki(e,t,r){return t=yr(t,r,3),At(e,t,Rt,!0)}function Fi(e,t,r){return t=yr(t,r,3),At(e,t,Ot,!0)}function Hi(e,t,r){return("function"!=typeof t||"undefined"!=typeof r)&&(t=Qt(t,r,3)),xt(e,t,Zi)}function Gi(e,t,r){return t=Qt(t,r,3),It(e,t,Zi)}function Yi(e,t,r){return("function"!=typeof t||"undefined"!=typeof r)&&(t=Qt(t,r,3)),Rt(e,t)}function Vi(e,t,r){return t=Qt(t,r,3),It(e,t,na)}function $i(e){return Tt(e,Zi(e))}function Wi(e,t){return e?rs.call(e,t):!1}function Xi(e,t,r){r&&Ar(e,t,r)&&(t=null);for(var n=-1,i=na(e),o=i.length,s={};++n<o;){var a=i[n],f=e[a];t?rs.call(s,f)?s[f].push(a):s[f]=[a]:s[f]=a}return s}function Zi(e){if(null==e)return[];Ii(e)||(e=Vo(e));var t=e.length;t=t&&kr(t)&&(Js(e)||qs.nonEnumArgs&&wi(e))&&t||0;for(var r=e.constructor,n=-1,i="function"==typeof r&&r.prototype===e,o=zo(t),s=t>0;++n<t;)o[n]=n+"";for(var a in e)s&&Mr(a,t)||"constructor"==a&&(i||!rs.call(e,a))||o.push(a);return o}function Ji(e,t,r){var n={};return t=yr(t,r,3),Rt(e,function(e,r,i){n[r]=t(e,r,i)}),n}function Qi(e,t,r){if(null==e)return{};if("function"!=typeof t){var n=it(kt(arguments,!1,!1,1),Wo);return Br(e,vt(Zi(e),n))}return t=Qt(t,r,3),Rr(e,function(e,r,n){return!t(e,r,n)})}function eo(e){for(var t=-1,r=na(e),n=r.length,i=zo(n);++t<n;){var o=r[t];i[t]=[o,e[o]]}return i}function to(e,t,r){return null==e?{}:"function"==typeof t?Rr(e,Qt(t,r,3)):Br(e,kt(arguments,!1,!1,1))}function ro(e,t,r){var n=null==e?A:e[t];return"undefined"==typeof n&&(n=r),ea(n)?n.call(e):n}function no(e,t,r,n){var i=Js(e)||Di(e);if(t=yr(t,n,4),null==r)if(i||Ii(e)){var o=e.constructor;r=i?Js(e)?new o:[]:Us(ea(o)&&o.prototype)}else r={};return(i?et:Rt)(e,function(e,n,i){return t(r,e,n,i)}),r}function io(e){return Wt(e,na(e))}function oo(e){return Wt(e,Zi(e))}function so(e,t,r){return t=+t||0,"undefined"==typeof r?(r=t,t=0):r=+r||0,e>=t&&r>e}function ao(e,t,r){r&&Ar(e,t,r)&&(t=r=null);var n=null==e,i=null==t;if(null==r&&(i&&"boolean"==typeof e?(r=e,e=1):"boolean"==typeof t&&(r=t,i=!0)),n&&i&&(t=1,i=!1),e=+e||0,i?(t=e,e=0):t=+t||0,r||e%1||t%1){var o=Rs();return ks(e+o*(t-e+parseFloat("1e-"+((o+"").length-1))),t)}return Ht(e,t)}function fo(e){return e=a(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function uo(e){return e=a(e),e&&e.replace(Be,p)}function co(e,t,r){e=a(e),t+="";var n=e.length;return r=("undefined"==typeof r?n:ks(0>r?0:+r||0,n))-t.length,r>=0&&e.indexOf(t,r)==r}function ho(e){return e=a(e),e&&_e.test(e)?e.replace(me,l):e}function po(e){return e=a(e),e&&Te.test(e)?e.replace(Oe,"\\$&"):e}function lo(e,t,r){e=a(e),t=+t;var n=e.length;if(n>=t||!Es(t))return e;var i=(t-n)/2,o=hs(i),s=us(i);return r=cr("",s,r),r.slice(0,o)+e+r}function bo(e,t,r){return e=a(e),e&&cr(e,t,r)+e}function go(e,t,r){return e=a(e),e&&e+cr(e,t,r)}function yo(e,t,r){return r&&Ar(e,t,r)&&(t=0),Bs(e,t)}function mo(e,t){var r="";if(e=a(e),t=+t,1>t||!e||!Es(t))return r;do t%2&&(r+=e),t=hs(t/2),e+=e;while(t);return r}function vo(e,t,r){return e=a(e),r=null==r?0:ks(0>r?0:+r||0,e.length),e.lastIndexOf(t,r)==r}function _o(e,r,n){var i=t.templateSettings;n&&Ar(e,r,n)&&(r=n=null),e=a(e),r=dt(dt({},n||r),i,ht);var o,s,f=dt(dt({},r.imports),i.imports,ht),u=na(f),c=Wt(f,u),h=0,d=r.interpolate||Re,p="__p += '",l=$o((r.escape||Re).source+"|"+d.source+"|"+(d===Ee?Me:Re).source+"|"+(r.evaluate||Re).source+"|$","g"),g="//# sourceURL="+("sourceURL"in r?r.sourceURL:"lodash.templateSources["+ ++Le+"]")+"\n";e.replace(l,function(t,r,n,i,a,f){return n||(n=i),p+=e.slice(h,f).replace(je,b),r&&(o=!0,p+="' +\n__e("+r+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),h=f+t.length,t}),p+="';\n";var y=r.variable;y||(p="with (obj) {\n"+p+"\n}\n"),p=(s?p.replace(le,""):p).replace(be,"$1").replace(ge,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=xo(function(){return Ho(u,g+"return "+p).apply(A,c)});if(m.source=p,xi(m))throw m;return m}function wo(e,t,r){var n=e;return(e=a(e))?(r?Ar(n,t,r):null==t)?e.slice(w(e),S(e)+1):(t+="",e.slice(u(e,t),c(e,t)+1)):e}function So(e,t,r){var n=e;return e=a(e),e?(r?Ar(n,t,r):null==t)?e.slice(w(e)):e.slice(u(e,t+"")):e}function Eo(e,t,r){var n=e;return e=a(e),e?(r?Ar(n,t,r):null==t)?e.slice(0,S(e)+1):e.slice(0,c(e,t+"")+1):e}function Mo(e,t,r){r&&Ar(e,t,r)&&(t=null);var n=D,i=N;if(null!=t)if(Ii(t)){var o="separator"in t?t.separator:o;n="length"in t?+t.length||0:n,i="omission"in t?a(t.omission):i}else n=+t||0;if(e=a(e),n>=e.length)return e;var s=n-i.length;if(1>s)return i;var f=e.slice(0,s);if(null==o)return f+i;if(ji(o)){if(e.slice(s).search(o)){var u,c,h=e.slice(0,s);for(o.global||(o=$o(o.source,(Ae.exec(o)||"")+"g")),o.lastIndex=0;u=o.exec(h);)c=u.index;f=f.slice(0,null==c?s:c)}}else if(e.indexOf(o,s)!=s){var d=f.lastIndexOf(o);d>-1&&(f=f.slice(0,d))}return f+i}function Ao(e){return e=a(e),e&&ve.test(e)?e.replace(ye,E):e}function ko(e,t,r){return r&&Ar(e,t,r)&&(t=null),e=a(e),e.match(t||Ce)||[]}function xo(){var e=arguments.length,t=arguments[0];try{for(var r=zo(e?e-1:0);--e>0;)r[e-1]=arguments[e];return t.apply(A,r)}catch(n){return xi(n)?n:new Fo(n)}}function Io(e,t,r){return r&&Ar(e,t,r)&&(t=null),y(e)?Oo(e):gt(e,t)}function Bo(e){return function(){return e}}function Ro(e){return e}function Oo(e){return Lt(yt(e,!0))}function To(e,t){return qt(e+"",yt(t,!0))}function Po(e,t,r){if(null==r){var n=Ii(t),i=n&&na(t),o=i&&i.length&&Tt(t,i);(o?o.length:n)||(o=!1,r=t,t=e,e=this)}o||(o=Tt(t,na(t)));var s=!0,a=-1,f=ea(e),u=o.length;r===!1?s=!1:Ii(r)&&"chain"in r&&(s=r.chain);for(;++a<u;){var c=o[a],h=t[c];e[c]=h,f&&(e.prototype[c]=function(t){return function(){var r=this.__chain__;if(s||r){var n=e(this.__wrapped__);return(n.__actions__=Qe(this.__actions__)).push({func:t,args:arguments,thisArg:e}),n.__chain__=r,n}var i=[this.value()];return ps.apply(i,arguments),t.apply(e,i)}}(h))}return e}function jo(){return e._=os,this}function Co(){}function Do(e){return Kt(e+"")}function No(e){return function(t){return null==e?A:e[t]}}function Lo(e,t,r){r&&Ar(e,t,r)&&(t=r=null),e=+e||0,r=null==r?1:+r||0,null==t?(t=e,e=0):t=+t||0;for(var n=-1,i=As(us((t-e)/(r||1)),0),o=zo(i);++n<i;)o[n]=e,e+=r;return o}function qo(e,t,r){if(e=+e,1>e||!Es(e))return[];var n=-1,i=zo(ks(e,Ps));for(t=Qt(t,r,1);++n<e;)Ps>n?i[n]=t(n):t(n);return i}function Uo(e){var t=++ns;return a(e)+t}e=e?Je.defaults(Ve.Object(),e,Je.pick(Ve,Ne)):Ve;var zo=e.Array,Ko=e.Date,Fo=e.Error,Ho=e.Function,Go=e.Math,Yo=e.Number,Vo=e.Object,$o=e.RegExp,Wo=e.String,Xo=e.TypeError,Zo=zo.prototype,Jo=Vo.prototype,Qo=(Qo=e.window)&&Qo.document,es=Ho.prototype.toString,ts=Kt("length"),rs=Jo.hasOwnProperty,ns=0,is=Jo.toString,os=e._,ss=$o("^"+po(is).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),as=Oi(as=e.ArrayBuffer)&&as,fs=Oi(fs=as&&new as(0).slice)&&fs,us=Go.ceil,cs=e.clearTimeout,hs=Go.floor,ds=Oi(ds=Vo.getPrototypeOf)&&ds,ps=Zo.push,ls=Jo.propertyIsEnumerable,bs=Oi(bs=e.Set)&&bs,gs=e.setTimeout,ys=Zo.splice,ms=Oi(ms=e.Uint8Array)&&ms,vs=Oi(vs=e.WeakMap)&&vs,_s=function(){try{var t=Oi(t=e.Float64Array)&&t,r=new t(new as(10),0,1)&&t}catch(n){}return r}(),ws=Oi(ws=zo.isArray)&&ws,Ss=Oi(Ss=Vo.create)&&Ss,Es=e.isFinite,Ms=Oi(Ms=Vo.keys)&&Ms,As=Go.max,ks=Go.min,xs=Oi(xs=Ko.now)&&xs,Is=Oi(Is=Yo.isFinite)&&Is,Bs=e.parseInt,Rs=Go.random,Os=Yo.NEGATIVE_INFINITY,Ts=Yo.POSITIVE_INFINITY,Ps=Go.pow(2,32)-1,js=Ps-1,Cs=Ps>>>1,Ds=_s?_s.BYTES_PER_ELEMENT:0,Ns=Go.pow(2,53)-1,Ls=vs&&new vs,qs=t.support={};!function(t){qs.funcDecomp=!Oi(e.WinRTError)&&Pe.test(M),qs.funcNames="string"==typeof Ho.name;try{qs.dom=11===Qo.createDocumentFragment().nodeType}catch(r){qs.dom=!1}try{qs.nonEnumArgs=!ls.call(arguments,1)}catch(r){qs.nonEnumArgs=!0}}(0,0),t.templateSettings={escape:we,evaluate:Se,interpolate:Ee,variable:"",imports:{_:t}};var Us=function(){function t(){}return function(r){if(Ii(r)){t.prototype=r;var n=new t;t.prototype=null}return n||e.Object()}}(),zs=Ls?function(e,t){return Ls.set(e,t),e}:Ro;fs||(er=as&&ms?function(e){var t=e.byteLength,r=_s?hs(t/Ds):0,n=r*Ds,i=new as(t);if(r){var o=new _s(i,0,r);o.set(new _s(e,0,r))}return t!=n&&(o=new ms(i,n),o.set(new ms(e,n))),i}:Bo(null));var Ks=Ss&&bs?function(e){return new We(e)}:Bo(null),Fs=Ls?function(e){return Ls.get(e)}:Co,Hs=function(){var e=0,t=0;return function(r,n){var i=Zs(),o=q-(i-t);if(t=i,o>0){if(++e>=L)return r}else e=0;return zs(r,n)}}(),Gs=nr(function(e,t,r){rs.call(e,r)?++e[r]:e[r]=1}),Ys=nr(function(e,t,r){rs.call(e,r)?e[r].push(t):e[r]=[t]}),Vs=nr(function(e,t,r){e[r]=t}),$s=fr(ot),Ws=fr(st,!0),Xs=nr(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),Zs=xs||function(){return(new Ko).getTime()},Js=ws||function(e){return y(e)&&kr(e.length)&&is.call(e)==Y||!1};qs.dom||(Mi=function(e){return e&&1===e.nodeType&&y(e)&&!ta(e)||!1});var Qs=Is||function(e){return"number"==typeof e&&Es(e)},ea=o(/x/)||ms&&!o(ms)?function(e){return is.call(e)==X}:o,ta=ds?function(e){if(!e||is.call(e)!=Q)return!1;var t=e.valueOf,r=Oi(t)&&(r=ds(t))&&ds(r);return r?e==r||ds(e)==r:Tr(e)}:Tr,ra=ir(dt),na=Ms?function(e){if(e)var t=e.constructor,r=e.length;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&r&&kr(r)?Pr(e):Ii(e)?Ms(e):[]}:Pr,ia=ir(Ut),oa=sr(function(e,t,r){return t=t.toLowerCase(),e+(r?t.charAt(0).toUpperCase()+t.slice(1):t)}),sa=sr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});8!=Bs(De+"08")&&(yo=function(e,t,r){return(r?Ar(e,t,r):null==t)?t=0:t&&(t=+t),e=wo(e),Bs(e,t||(xe.test(e)?16:10))});var aa=sr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),fa=sr(function(e,t,r){return e+(r?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))});return t.prototype=r.prototype,m.prototype=Us(r.prototype),m.prototype.constructor=m,Z.prototype=Us(r.prototype),Z.prototype.constructor=Z,Fe.prototype["delete"]=He,Fe.prototype.get=Ge,Fe.prototype.has=Ye,Fe.prototype.set=$e,We.prototype.push=Ze,ci.Cache=Fe,t.after=Zn,t.ary=Jn,t.assign=ra,t.at=Bn,t.before=Qn,t.bind=ei,t.bindAll=ti,t.bindKey=ri,t.callback=Io,t.chain=_n,t.chunk=Nr,t.compact=Lr,t.constant=Bo,t.countBy=Gs,t.create=Ui,t.curry=ni,t.curryRight=ii,t.debounce=oi,t.defaults=zi,t.defer=si,t.delay=ai,t.difference=qr,t.drop=Ur,t.dropRight=zr,t.dropRightWhile=Kr,t.dropWhile=Fr,t.fill=Hr,t.filter=On,t.flatten=$r,t.flattenDeep=Wr,t.flow=fi,t.flowRight=ui,t.forEach=Cn,t.forEachRight=Dn,t.forIn=Hi,t.forInRight=Gi,t.forOwn=Yi,t.forOwnRight=Vi,t.functions=$i,t.groupBy=Ys,t.indexBy=Vs,t.initial=Zr,t.intersection=Jr,t.invert=Xi,t.invoke=Ln,t.keys=na,t.keysIn=Zi,t.map=qn,t.mapValues=Ji,t.matches=Oo,t.matchesProperty=To,t.memoize=ci,t.merge=ia,t.mixin=Po,t.negate=hi,t.omit=Qi,t.once=di,t.pairs=eo,t.partial=pi,t.partialRight=li,t.partition=Xs,t.pick=to,t.pluck=Un,t.property=Do,t.propertyOf=No,t.pull=tn,t.pullAt=rn,t.range=Lo,t.rearg=bi,t.reject=Fn,t.remove=nn,t.rest=on,t.shuffle=Gn,t.slice=sn,t.sortBy=$n,t.sortByAll=Wn,t.spread=gi,t.take=un,t.takeRight=cn,t.takeRightWhile=hn,t.takeWhile=dn,t.tap=wn,t.throttle=yi,t.thru=Sn,t.times=qo,t.toArray=Li,t.toPlainObject=qi,t.transform=no,t.union=pn,t.uniq=ln,t.unzip=bn,t.values=io,t.valuesIn=oo,t.where=Xn,t.without=gn,t.wrap=mi,t.xor=yn,t.zip=mn,t.zipObject=vn,t.backflow=ui,t.collect=qn,t.compose=ui,t.each=Cn,t.eachRight=Dn,t.extend=ra,t.iteratee=Io,t.methods=$i,t.object=vn,t.select=On,t.tail=on,t.unique=ln,Po(t,t),t.attempt=xo,t.camelCase=oa,t.capitalize=fo,t.clone=vi,t.cloneDeep=_i,t.deburr=uo,t.endsWith=co,t.escape=ho,t.escapeRegExp=po,t.every=Rn,t.find=Tn,t.findIndex=Gr,t.findKey=Ki,t.findLast=Pn,t.findLastIndex=Yr,t.findLastKey=Fi,t.findWhere=jn,t.first=Vr,t.has=Wi,t.identity=Ro,t.includes=Nn,t.indexOf=Xr,t.inRange=so,t.isArguments=wi,t.isArray=Js,t.isBoolean=Si,t.isDate=Ei,t.isElement=Mi,t.isEmpty=Ai,t.isEqual=ki,t.isError=xi,t.isFinite=Qs,t.isFunction=ea,t.isMatch=Bi,t.isNaN=Ri,t.isNative=Oi,t.isNull=Ti,t.isNumber=Pi,t.isObject=Ii,t.isPlainObject=ta,t.isRegExp=ji,t.isString=Ci,t.isTypedArray=Di,t.isUndefined=Ni,t.kebabCase=sa,t.last=Qr,t.lastIndexOf=en,t.max=$s,t.min=Ws,t.noConflict=jo,t.noop=Co,t.now=Zs,t.pad=lo,t.padLeft=bo,t.padRight=go,t.parseInt=yo,t.random=ao,t.reduce=zn,t.reduceRight=Kn,t.repeat=mo,t.result=ro,t.runInContext=M,t.size=Yn,t.snakeCase=aa,t.some=Vn,t.sortedIndex=an,t.sortedLastIndex=fn,t.startCase=fa,t.startsWith=vo,t.template=_o,t.trim=wo,t.trimLeft=So,t.trimRight=Eo,t.trunc=Mo,t.unescape=Ao,t.uniqueId=Uo,t.words=ko,t.all=Rn,t.any=Vn,t.contains=Nn,t.detect=Tn,t.foldl=zn,t.foldr=Kn,t.head=Vr,t.include=Nn,t.inject=zn,Po(t,function(){var e={};return Rt(t,function(r,n){t.prototype[n]||(e[n]=r)}),e}(),!1),t.sample=Hn,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return Hn(t,e)}):Hn(this.value())},t.VERSION=k,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),et(["filter","map","takeWhile"],function(e,t){var r=t==U,n=t==K;Z.prototype[e]=function(e,i){var o=this.clone(),s=o.__filtered__,a=o.__iteratees__||(o.__iteratees__=[]);return o.__filtered__=s||r||n&&o.__dir__<0,a.push({iteratee:yr(e,i,3),type:t}),o}}),et(["drop","take"],function(e,t){var r="__"+e+"Count__",n=e+"While";Z.prototype[e]=function(n){n=null==n?1:As(hs(n)||0,0);var i=this.clone();if(i.__filtered__){var o=i[r];i[r]=t?ks(o,n):o+n}else{var s=i.__views__||(i.__views__=[]);s.push({size:n,type:e+(i.__dir__<0?"Right":"")})}return i},Z.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()},Z.prototype[e+"RightWhile"]=function(e,t){return this.reverse()[n](e,t).reverse()}}),et(["first","last"],function(e,t){var r="take"+(t?"Right":"");Z.prototype[e]=function(){return this[r](1).value()[0]}}),et(["initial","rest"],function(e,t){var r="drop"+(t?"":"Right");Z.prototype[e]=function(){return this[r](1)}}),et(["pluck","where"],function(e,t){var r=t?"filter":"map",n=t?Lt:Kt;Z.prototype[e]=function(e){return this[r](n(e))}}),Z.prototype.compact=function(){return this.filter(Ro)},Z.prototype.dropWhile=function(e,t){var r;return e=yr(e,t,3),this.filter(function(t,n,i){return r||(r=!e(t,n,i))})},Z.prototype.reject=function(e,t){return e=yr(e,t,3),this.filter(function(t,r,n){return!e(t,r,n)})},Z.prototype.slice=function(e,t){e=null==e?0:+e||0;var r=0>e?this.takeRight(-e):this.drop(e);return"undefined"!=typeof t&&(t=+t||0,r=0>t?r.dropRight(-t):r.take(t-e)),r},Z.prototype.toArray=function(){return this.drop(0)},Rt(Z.prototype,function(e,r){var n=t[r],i=/^(?:first|last)$/.test(r);t.prototype[r]=function(){var r=this.__wrapped__,o=arguments,s=this.__chain__,a=!!this.__actions__.length,f=r instanceof Z,u=f&&!a;if(i&&!s)return u?e.call(r):n.call(t,this.value());var c=function(e){var r=[e];return ps.apply(r,o),n.apply(t,r)};if(f||Js(r)){var h=u?r:new Z(this),d=e.apply(h,o);if(!i&&(a||d.__actions__)){var p=d.__actions__||(d.__actions__=[]);p.push({func:Sn,args:[c],thisArg:t})}return new m(d,s)}return this.thru(c)}}),et(["concat","join","pop","push","shift","sort","splice","unshift"],function(e){var r=Zo[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:join|pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return i&&!this.__chain__?r.apply(this.value(),e):this[n](function(t){return r.apply(t,e)})}}),Z.prototype.clone=te,Z.prototype.reverse=ne,Z.prototype.value=Ke,t.prototype.chain=En,t.prototype.commit=Mn,t.prototype.plant=An,t.prototype.reverse=kn,t.prototype.toString=xn,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=In,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var A,k="3.3.0",x=1,I=2,B=4,R=8,O=16,T=32,P=64,j=128,C=256,D=30,N="...",L=150,q=16,U=0,z=1,K=2,F="Expected a function",H="__lodash_placeholder__",G="[object Arguments]",Y="[object Array]",V="[object Boolean]",$="[object Date]",W="[object Error]",X="[object Function]",Z="[object Map]",J="[object Number]",Q="[object Object]",ee="[object RegExp]",te="[object Set]",re="[object String]",ne="[object WeakMap]",ie="[object ArrayBuffer]",oe="[object Float32Array]",se="[object Float64Array]",ae="[object Int8Array]",fe="[object Int16Array]",ue="[object Int32Array]",ce="[object Uint8Array]",he="[object Uint8ClampedArray]",de="[object Uint16Array]",pe="[object Uint32Array]",le=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ye=/&(?:amp|lt|gt|quot|#39|#96);/g,me=/[&<>"'`]/g,ve=RegExp(ye.source),_e=RegExp(me.source),we=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ae=/\w*$/,ke=/^\s*function[ \n\r\t]+\w/,xe=/^0[xX]/,Ie=/^\[object .+?Constructor\]$/,Be=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Re=/($^)/,Oe=/[.*+?^${}()|[\]\/\\]/g,Te=RegExp(Oe.source),Pe=/\bthis\b/,je=/['\n\r\u2028\u2029\\]/g,Ce=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"{2,}(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),De=" \x0B\f \ufeff\n\r\u2028\u2029 ",Ne=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","document","isFinite","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","window","WinRTError"],Le=-1,qe={};qe[oe]=qe[se]=qe[ae]=qe[fe]=qe[ue]=qe[ce]=qe[he]=qe[de]=qe[pe]=!0,qe[G]=qe[Y]=qe[ie]=qe[V]=qe[$]=qe[W]=qe[X]=qe[Z]=qe[J]=qe[Q]=qe[ee]=qe[te]=qe[re]=qe[ne]=!1;var Ue={};Ue[G]=Ue[Y]=Ue[ie]=Ue[V]=Ue[$]=Ue[oe]=Ue[se]=Ue[ae]=Ue[fe]=Ue[ue]=Ue[J]=Ue[Q]=Ue[ee]=Ue[re]=Ue[ce]=Ue[he]=Ue[de]=Ue[pe]=!0,Ue[W]=Ue[X]=Ue[Z]=Ue[te]=Ue[ne]=!1;var ze={leading:!1,maxWait:0,trailing:!1},Ke={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Fe={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},He={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Ge={"function":!0,object:!0},Ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=Ge[typeof window]&&window!==(this&&this.window)?window:this,$e=Ge[typeof r]&&r&&!r.nodeType&&r,We=Ge[typeof t]&&t&&!t.nodeType&&t,Xe=$e&&We&&"object"==typeof e&&e;!Xe||Xe.global!==Xe&&Xe.window!==Xe&&Xe.self!==Xe||(Ve=Xe);var Ze=We&&We.exports===$e&&$e,Je=M();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ve._=Je,define(function(){return Je})):$e&&We?Ze?(We.exports=Je)._=Je:$e._=Je:Ve._=Je}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],245:[function(e,t,r){(function(r){var n=e("./libs/rsa.js"),i=(e("crypto"),e("asn1").Ber,e("lodash")),o=e("./utils"),s=e("./schemes/schemes.js"),a=e("./formats/formats.js");t.exports=function(){function e(t,s,a){return this instanceof e?(i.isObject(s)&&(a=s,s=void 0),this.$options={signingScheme:u,signingSchemeOptions:{hash:"sha256",saltLength:null},encryptionScheme:f,encryptionSchemeOptions:{hash:"sha1",label:null},environment:o.detectEnvironment(),rsaUtils:this},this.keyPair=new n.Key,this.$cache={},r.isBuffer(t)||i.isString(t)?this.importKey(t,s):i.isObject(t)&&this.generateKeyPair(t.b,t.e),void this.setOptions(a)):new e(t,s,a)}var t={node10:["md4","md5","ripemd160","sha","sha1","sha224","sha256","sha384","sha512"],node:["md4","md5","ripemd160","sha","sha1","sha224","sha256","sha384","sha512"],iojs:["md4","md5","ripemd160","sha","sha1","sha224","sha256","sha384","sha512"],browser:["md5","ripemd160","sha1","sha256","sha512"]},f="pkcs1_oaep",u="pkcs1",c="private",h={"private":"pkcs1-private-pem","private-der":"pkcs1-private-der","public":"pkcs8-public-pem","public-der":"pkcs8-public-der"};return e.prototype.setOptions=function(e){if(e=e||{},e.environment&&(this.$options.environment=e.environment),e.signingScheme){if(i.isString(e.signingScheme)){var r=e.signingScheme.toLowerCase().split("-");1==r.length?i.indexOf(t.node,r[0])>-1?(this.$options.signingSchemeOptions={hash:r[0]},this.$options.signingScheme=u):(this.$options.signingScheme=r[0],this.$options.signingSchemeOptions={hash:null}):(this.$options.signingSchemeOptions={hash:r[1]},this.$options.signingScheme=r[0])}else i.isObject(e.signingScheme)&&(this.$options.signingScheme=e.signingScheme.scheme||u,this.$options.signingSchemeOptions=i.omit(e.signingScheme,"scheme"));if(!s.isSignature(this.$options.signingScheme))throw Error("Unsupported signing scheme");if(this.$options.signingSchemeOptions.hash&&-1==i.indexOf(t[this.$options.environment],this.$options.signingSchemeOptions.hash))throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}if(e.encryptionScheme){if(i.isString(e.encryptionScheme)?(this.$options.encryptionScheme=e.encryptionScheme.toLowerCase(),this.$options.encryptionSchemeOptions={}):i.isObject(e.encryptionScheme)&&(this.$options.encryptionScheme=e.encryptionScheme.scheme||f,this.$options.encryptionSchemeOptions=i.omit(e.encryptionScheme,"scheme")),!s.isEncryption(this.$options.encryptionScheme))throw Error("Unsupported encryption scheme");if(this.$options.encryptionSchemeOptions.hash&&-1==i.indexOf(t[this.$options.environment],this.$options.encryptionSchemeOptions.hash))throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}this.keyPair.setOptions(this.$options)},e.prototype.generateKeyPair=function(e,t){if(e=e||2048,t=t||65537,e%8!==0)throw Error("Key size must be a multiple of 8.");return this.keyPair.generate(e,t.toString(16)),this.$cache={},this},e.prototype.importKey=function(e,t){if(!e)throw Error("Empty key given");if(t&&(t=h[t]||t),!a.detectAndImport(this.keyPair,e,t)&&void 0===t)throw Error("Key format must be specified");this.$cache={}},e.prototype.exportKey=function(e){return e=e||c,e=h[e]||e,this.$cache[e]||(this.$cache[e]=a.detectAndExport(this.keyPair,e)),this.$cache[e]},e.prototype.isPrivate=function(){return this.keyPair.isPrivate()},e.prototype.isPublic=function(e){return this.keyPair.isPublic(e)},e.prototype.isEmpty=function(e){return!(this.keyPair.n||this.keyPair.e||this.keyPair.d)},e.prototype.encrypt=function(e,t,r){return this.$$encryptKey(!1,e,t,r)},e.prototype.decrypt=function(e,t){return this.$$decryptKey(!1,e,t)},e.prototype.encryptPrivate=function(e,t,r){return this.$$encryptKey(!0,e,t,r)},e.prototype.decryptPublic=function(e,t){return this.$$decryptKey(!0,e,t)},e.prototype.$$encryptKey=function(e,t,r,n){try{var i=this.keyPair.encrypt(this.$getDataForEncrypt(t,n),e);return"buffer"!=r&&r?i.toString(r):i}catch(o){throw Error("Error during encryption. Original error: "+o)}},e.prototype.$$decryptKey=function(e,t,n){try{t=i.isString(t)?new r(t,"base64"):t;var o=this.keyPair.decrypt(t,e);if(null===o)throw Error("Key decrypt method returns null.");return this.$getDecryptedData(o,n)}catch(s){throw Error("Error during decryption (probably incorrect key). Original error: "+s)}},e.prototype.sign=function(e,t,r){if(!this.isPrivate())throw Error("It is not private key");var n=this.keyPair.sign(this.$getDataForEncrypt(e,r));return t&&"buffer"!=t&&(n=n.toString(t)),n},e.prototype.verify=function(e,t,r,n){if(!this.isPublic())throw Error("It is not public key");
return n=n&&"buffer"!=n?n:null,this.keyPair.verify(this.$getDataForEncrypt(e,r),t,n)},e.prototype.getKeySize=function(){return this.keyPair.keySize},e.prototype.getMaxMessageSize=function(){return this.keyPair.maxMessageLength},e.prototype.$getDataForEncrypt=function(e,t){if(i.isString(e)||i.isNumber(e))return new r(""+e,t||"utf8");if(r.isBuffer(e))return e;if(i.isObject(e))return new r(JSON.stringify(e));throw Error("Unexpected data type")},e.prototype.$getDecryptedData=function(e,t){return t=t||"buffer","buffer"==t?e:"json"==t?JSON.parse(e.toString()):e.toString(t)},e}()}).call(this,e("buffer").Buffer)},{"./formats/formats.js":250,"./libs/rsa.js":254,"./schemes/schemes.js":258,"./utils":259,asn1:243,buffer:4,crypto:9,lodash:244}],246:[function(e,t,r){var n=e("crypto");t.exports={getEngine:function(t,r){var i=e("./js.js");return"node"===r.environment&&"function"==typeof n.publicEncrypt&&"function"==typeof n.privateDecrypt&&(i=e("function"==typeof n.privateEncrypt&&"function"==typeof n.publicDecrypt?"./io.js":"./node12.js")),i(t,r)}}},{"./io.js":247,"./js.js":248,"./node12.js":249,crypto:9}],247:[function(e,t,r){var n=e("crypto"),i=e("constants");t.exports=function(t,r){e("./js.js")(t,r);return{encrypt:function(e,t){if(t)return n.privateEncrypt({key:r.rsaUtils.exportKey("private"),padding:i.RSA_PKCS1_PADDING},e);var o=i.RSA_PKCS1_OAEP_PADDING;return"pkcs1"===r.encryptionScheme&&(o=i.RSA_PKCS1_PADDING),n.publicEncrypt({key:r.rsaUtils.exportKey("public"),padding:o},e)},decrypt:function(e,t){if(t)return n.publicDecrypt({key:r.rsaUtils.exportKey("public"),padding:i.RSA_PKCS1_PADDING},e);var o=i.RSA_PKCS1_OAEP_PADDING;return"pkcs1"===r.encryptionScheme&&(o=i.RSA_PKCS1_PADDING),n.privateDecrypt({key:r.rsaUtils.exportKey("private"),padding:o},e)}}}},{"./js.js":248,constants:8,crypto:9}],248:[function(e,t,r){var n=e("../libs/jsbn.js"),i=e("../schemes/schemes.js");t.exports=function(e,t){var r=i.pkcs1.makeScheme(e,t);return{encrypt:function(t,i){var o,s;return i?(o=new n(r.encPad(t,{type:1})),s=e.$doPrivate(o)):(o=new n(e.encryptionScheme.encPad(t)),s=e.$doPublic(o)),s.toBuffer(e.encryptedDataLength)},decrypt:function(t,i){var o,s=new n(t);return i?(o=e.$doPublic(s),r.encUnPad(o.toBuffer(e.encryptedDataLength),{type:1})):(o=e.$doPrivate(s),e.encryptionScheme.encUnPad(o.toBuffer(e.encryptedDataLength)))}}}},{"../libs/jsbn.js":253,"../schemes/schemes.js":258}],249:[function(e,t,r){var n=e("crypto"),i=e("constants");t.exports=function(t,r){var o=e("./js.js")(t,r);return{encrypt:function(e,t){if(t)return o.encrypt(e,t);var s=i.RSA_PKCS1_OAEP_PADDING;return"pkcs1"===r.encryptionScheme&&(s=i.RSA_PKCS1_PADDING),n.publicEncrypt({key:r.rsaUtils.exportKey("public"),padding:s},e)},decrypt:function(e,t){if(t)return o.decrypt(e,t);var s=i.RSA_PKCS1_OAEP_PADDING;return"pkcs1"===r.encryptionScheme&&(s=i.RSA_PKCS1_PADDING),n.privateDecrypt({key:r.rsaUtils.exportKey("private"),padding:s},e)}}}},{"./js.js":248,constants:8,crypto:9}],250:[function(e,t,r){function n(e){e=e.split("-");for(var t="private",r={type:"default"},n=1;n<e.length;n++)if(e[n])switch(e[n]){case"public":t=e[n];break;case"private":t=e[n];break;case"pem":r.type=e[n];break;case"der":r.type=e[n]}return{scheme:e[0],keyType:t,keyOpt:r}}e("lodash");t.exports={pkcs1:e("./pkcs1"),pkcs8:e("./pkcs8"),isPrivateExport:function(e){return t.exports[e]&&"function"==typeof t.exports[e].privateExport},isPrivateImport:function(e){return t.exports[e]&&"function"==typeof t.exports[e].privateImport},isPublicExport:function(e){return t.exports[e]&&"function"==typeof t.exports[e].publicExport},isPublicImport:function(e){return t.exports[e]&&"function"==typeof t.exports[e].publicImport},detectAndImport:function(e,r,i){if(void 0===i){for(var o in t.exports)if("function"==typeof t.exports[o].autoImport&&t.exports[o].autoImport(e,r))return!0}else if(i){var s=n(i);if(!t.exports[s.scheme])throw Error("Unsupported key format");"private"===s.keyType?t.exports[s.scheme].privateImport(e,r,s.keyOpt):t.exports[s.scheme].publicImport(e,r,s.keyOpt)}return!1},detectAndExport:function(e,r){if(r){var i=n(r);if(t.exports[i.scheme]){if("private"===i.keyType){if(!e.isPrivate())throw Error("It is not private key");return t.exports[i.scheme].privateExport(e,i.keyOpt)}if(!e.isPublic())throw Error("It is not public key");return t.exports[i.scheme].publicExport(e,i.keyOpt)}throw Error("Unsupported key format")}}}},{"./pkcs1":251,"./pkcs8":252,lodash:244}],251:[function(e,t,r){(function(r){var n=e("asn1").Ber,i=e("lodash"),o=e("../utils");t.exports={privateExport:function(e,t){t=t||{};var r=e.n.toBuffer(),i=e.d.toBuffer(),s=e.p.toBuffer(),a=e.q.toBuffer(),f=e.dmp1.toBuffer(),u=e.dmq1.toBuffer(),c=e.coeff.toBuffer(),h=r.length+i.length+s.length+a.length+f.length+u.length+c.length+512,d=new n.Writer({size:h});return d.startSequence(),d.writeInt(0),d.writeBuffer(r,2),d.writeInt(e.e),d.writeBuffer(i,2),d.writeBuffer(s,2),d.writeBuffer(a,2),d.writeBuffer(f,2),d.writeBuffer(u,2),d.writeBuffer(c,2),d.endSequence(),"der"===t.type?d.buffer:"-----BEGIN RSA PRIVATE KEY-----\n"+o.linebrk(d.buffer.toString("base64"),64)+"\n-----END RSA PRIVATE KEY-----"},privateImport:function(e,t,o){o=o||{};var s;if("der"!==o.type){if(r.isBuffer(t)&&(t=t.toString("utf8")),!i.isString(t))throw Error("Unsupported key format");var a=t.replace("-----BEGIN RSA PRIVATE KEY-----","").replace("-----END RSA PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");s=new r(a,"base64")}else{if(!r.isBuffer(t))throw Error("Unsupported key format");s=t}var f=new n.Reader(s);f.readSequence(),f.readString(2,!0),e.setPrivate(f.readString(2,!0),f.readString(2,!0),f.readString(2,!0),f.readString(2,!0),f.readString(2,!0),f.readString(2,!0),f.readString(2,!0),f.readString(2,!0))},publicExport:function(e,t){t=t||{};var r=e.n.toBuffer(),i=r.length+512,s=new n.Writer({size:i});return s.startSequence(),s.writeBuffer(r,2),s.writeInt(e.e),s.endSequence(),"der"===t.type?s.buffer:"-----BEGIN RSA PUBLIC KEY-----\n"+o.linebrk(s.buffer.toString("base64"),64)+"\n-----END RSA PUBLIC KEY-----"},publicImport:function(e,t,o){o=o||{};var s;if("der"!==o.type){if(r.isBuffer(t)&&(t=t.toString("utf8")),i.isString(t)){var a=t.replace("-----BEGIN RSA PUBLIC KEY-----","").replace("-----END RSA PUBLIC KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");s=new r(a,"base64")}}else{if(!r.isBuffer(t))throw Error("Unsupported key format");s=t}var f=new n.Reader(s);f.readSequence(),e.setPublic(f.readString(2,!0),f.readString(2,!0))},autoImport:function(e,r){return/^\s*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----\s*$/g.test(r)?(t.exports.privateImport(e,r),!0):/^\s*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----\s*$/g.test(r)?(t.exports.publicImport(e,r),!0):!1}}}).call(this,e("buffer").Buffer)},{"../utils":259,asn1:243,buffer:4,lodash:244}],252:[function(e,t,r){(function(r){var n=e("asn1").Ber,i=e("lodash"),o="1.2.840.113549.1.1.1",s=e("../utils");t.exports={privateExport:function(e,t){t=t||{};var r=e.n.toBuffer(),i=e.d.toBuffer(),a=e.p.toBuffer(),f=e.q.toBuffer(),u=e.dmp1.toBuffer(),c=e.dmq1.toBuffer(),h=e.coeff.toBuffer(),d=r.length+i.length+a.length+f.length+u.length+c.length+h.length+512,p=new n.Writer({size:d});p.startSequence(),p.writeInt(0),p.writeBuffer(r,2),p.writeInt(e.e),p.writeBuffer(i,2),p.writeBuffer(a,2),p.writeBuffer(f,2),p.writeBuffer(u,2),p.writeBuffer(c,2),p.writeBuffer(h,2),p.endSequence();var l=new n.Writer({size:d});return l.startSequence(),l.writeInt(0),l.startSequence(),l.writeOID(o),l.writeNull(),l.endSequence(),l.writeBuffer(p.buffer,4),l.endSequence(),"der"===t.type?l.buffer:"-----BEGIN PRIVATE KEY-----\n"+s.linebrk(l.buffer.toString("base64"),64)+"\n-----END PRIVATE KEY-----"},privateImport:function(e,t,s){s=s||{};var a;if("der"!==s.type){if(r.isBuffer(t)&&(t=t.toString("utf8")),!i.isString(t))throw Error("Unsupported key format");var f=t.replace("-----BEGIN PRIVATE KEY-----","").replace("-----END PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");a=new r(f,"base64")}else{if(!r.isBuffer(t))throw Error("Unsupported key format");a=t}var u=new n.Reader(a);u.readSequence(),u.readInt(0);var c=new n.Reader(u.readString(48,!0));if(c.readOID(6,!0)!==o)throw Error("Invalid Public key format");var h=new n.Reader(u.readString(4,!0));h.readSequence(),h.readString(2,!0),e.setPrivate(h.readString(2,!0),h.readString(2,!0),h.readString(2,!0),h.readString(2,!0),h.readString(2,!0),h.readString(2,!0),h.readString(2,!0),h.readString(2,!0))},publicExport:function(e,t){t=t||{};var r=e.n.toBuffer(),i=r.length+512,a=new n.Writer({size:i});a.writeByte(0),a.startSequence(),a.writeBuffer(r,2),a.writeInt(e.e),a.endSequence();var f=new n.Writer({size:i});return f.startSequence(),f.startSequence(),f.writeOID(o),f.writeNull(),f.endSequence(),f.writeBuffer(a.buffer,3),f.endSequence(),"der"===t.type?f.buffer:"-----BEGIN PUBLIC KEY-----\n"+s.linebrk(f.buffer.toString("base64"),64)+"\n-----END PUBLIC KEY-----"},publicImport:function(e,t,s){s=s||{};var a;if("der"!==s.type){if(r.isBuffer(t)&&(t=t.toString("utf8")),i.isString(t)){var f=t.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");a=new r(f,"base64")}}else{if(!r.isBuffer(t))throw Error("Unsupported key format");a=t}var u=new n.Reader(a);u.readSequence();var c=new n.Reader(u.readString(48,!0));if(c.readOID(6,!0)!==o)throw Error("Invalid Public key format");var h=new n.Reader(u.readString(3,!0));h.readByte(),h.readSequence(),e.setPublic(h.readString(2,!0),h.readString(2,!0))},autoImport:function(e,r){return/^\s*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----\s*$/g.test(r)?(t.exports.privateImport(e,r),!0):/^\s*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----\s*$/g.test(r)?(t.exports.publicImport(e,r),!0):!1}}}).call(this,e("buffer").Buffer)},{"../utils":259,asn1:243,buffer:4,lodash:244}],253:[function(e,t,r){(function(r){function n(e,t){null!=e&&("number"==typeof e?this.fromNumber(e,t):r.isBuffer(e)?this.fromBuffer(e):null==t&&"string"!=typeof e?this.fromByteArray(e):this.fromString(e,t))}function i(){return new n(null)}function o(e,t,r,n,i,o){for(var s=16383&t,a=t>>14;--o>=0;){var f=16383&this[e],u=this[e++]>>14,c=a*f+u*s;f=s*f+((16383&c)<<14)+r[n]+i,i=(f>>28)+(c>>14)+a*u,r[n++]=268435455&f}return i}function s(e){return ft.charAt(e)}function a(e,t){var r=ut[e.charCodeAt(t)];return null==r?-1:r}function f(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function u(e){this.t=1,this.s=0>e?-1:0,e>0?this[0]=e:-1>e?this[0]=e+DV:this.t=0}function c(e){var t=i();return t.fromInt(e),t}function h(e,t,r){var i;switch(t){case 2:i=1;break;case 4:i=2;break;case 8:i=3;break;case 16:i=4;break;case 32:i=5;break;case 256:i=8;break;default:return void this.fromRadix(e,t)}this.t=0,this.s=0;for(var o=e.length,s=!1,f=0;--o>=0;){var u=8==i?255&e[o]:a(e,o);0>u?"-"==e.charAt(o)&&(s=!0):(s=!1,0===f?this[this.t++]=u:f+i>this.DB?(this[this.t-1]|=(u&(1<<this.DB-f)-1)<<f,this[this.t++]=u>>this.DB-f):this[this.t-1]|=u<<f,f+=i,f>=this.DB&&(f-=this.DB))}r||8!=i||0==(128&e[0])||(this.s=-1,f>0&&(this[this.t-1]|=(1<<this.DB-f)-1<<f)),this.clamp(),s&&n.ZERO.subTo(this,this)}function d(e,t){this.fromString(e,256,t)}function p(e){this.fromString(e,256,!0)}function l(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function b(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o="",a=this.t,f=this.DB-a*this.DB%t;if(a-- >0)for(f<this.DB&&(r=this[a]>>f)>0&&(i=!0,o=s(r));a>=0;)t>f?(r=(this[a]&(1<<f)-1)<<t-f,r|=this[--a]>>(f+=this.DB-t)):(r=this[a]>>(f-=t)&n,0>=f&&(f+=this.DB,--a)),r>0&&(i=!0),i&&(o+=s(r));return i?o:"0"}function g(){var e=i();return n.ZERO.subTo(this,e),e}function y(){return this.s<0?this.negate():this}function m(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(t=r-e.t,0!=t)return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0}function v(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function _(){return this.t<=0?0:this.DB*(this.t-1)+v(this[this.t-1]^this.s&this.DM)}function w(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function S(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}function E(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(e/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)t[r]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()}function M(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)return void(t.t=0);var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<i,t[s-r]=this[s]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}function A(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);i>r;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=0>n?-1:0,-1>n?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}function k(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)}function x(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function I(e,t,r){var o=e.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=i());var a=i(),f=this.s,u=e.s,c=this.DB-v(o[o.t-1]);c>0?(o.lShiftTo(c,a),s.lShiftTo(c,r)):(o.copyTo(a),s.copyTo(r));var h=a.t,d=a[h-1];if(0!==d){var p=d*(1<<this.F1)+(h>1?a[h-2]>>this.F2:0),l=this.FV/p,b=(1<<this.F1)/p,g=1<<this.F2,y=r.t,m=y-h,_=null==t?i():t;for(a.dlShiftTo(m,_),r.compareTo(_)>=0&&(r[r.t++]=1,r.subTo(_,r)),n.ONE.dlShiftTo(h,_),_.subTo(a,a);a.t<h;)a[a.t++]=0;for(;--m>=0;){var w=r[--y]==d?this.DM:Math.floor(r[y]*l+(r[y-1]+g)*b);if((r[y]+=a.am(0,w,r,m,0,h))<w)for(a.dlShiftTo(m,_),r.subTo(_,r);r[y]<--w;)r.subTo(_,r)}null!=t&&(r.drShiftTo(h,t),f!=u&&n.ZERO.subTo(t,t)),r.t=h,r.clamp(),c>0&&r.rShiftTo(c,r),0>f&&n.ZERO.subTo(r,r)}}}function B(e){var t=i();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t}function R(e){this.m=e}function O(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function T(e){return e}function P(e){e.divRemTo(this.m,null,e)}function j(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function C(e,t){e.squareTo(t),this.reduce(t)}function D(){if(this.t<1)return 0;var e=this[0];if(0===(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function N(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function L(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t}function q(e){var t=i();return e.copyTo(t),this.reduce(t),t}function U(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function z(e,t){e.squareTo(t),this.reduce(t)}function K(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function F(){return 0===(this.t>0?1&this[0]:this.s)}function H(e,t){if(e>4294967295||1>e)return n.ONE;var r=i(),o=i(),s=t.convert(this),a=v(e)-1;for(s.copyTo(r);--a>=0;)if(t.sqrTo(r,o),(e&1<<a)>0)t.mulTo(o,s,r);else{var f=r;r=o,o=f}return t.revert(r)}function G(e,t){var r;return r=256>e||t.isEven()?new R(t):new N(t),this.exp(e,r)}function Y(){var e=i();return this.copyTo(e),e}function V(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0===this.t)return-1}else{if(1==this.t)return this[0];if(0===this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function $(){return 0==this.t?this.s:this[0]<<24>>24}function W(){return 0==this.t?this.s:this[0]<<16>>16}function X(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function Z(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function J(e){if(null==e&&(e=10),0===this.signum()||2>e||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=c(r),o=i(),s=i(),a="";for(this.divRemTo(n,o,s);o.signum()>0;)a=(r+s.intValue()).toString(e).substr(1)+a,o.divRemTo(n,o,s);return s.intValue().toString(e)+a}function Q(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,s=0,f=0,u=0;u<e.length;++u){var c=a(e,u);0>c?"-"==e.charAt(u)&&0===this.signum()&&(o=!0):(f=t*f+c,++s>=r&&(this.dMultiply(i),this.dAddOffset(f,0),s=0,f=0))}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(f,0)),o&&n.ZERO.subTo(this,this)}function ee(e,t){if("number"==typeof t)if(2>e)this.fromInt(1);else for(this.fromNumber(e),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),ue,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var r=nt.randomBytes((e>>3)+1),i=7&e;i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromByteArray(r)}}function te(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n<this.DB&&(r=this[e]>>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<<this.DB-n);e>=0;)8>n?(r=(this[e]&(1<<n)-1)<<8-n,r|=this[--e]>>(n+=this.DB-8)):(r=this[e]>>(n-=8)&255,0>=n&&(n+=this.DB,--e)),0!=(128&r)&&(r|=-256),0===i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t}function re(e){var t=new r(this.toByteArray());if(e===!0&&0===t[0])t=t.slice(1);else if(it.isNumber(e)){if(t.length>e){for(var n=0;n<t.length-e;n++)if(0!==t[n])return null;return t.slice(t.length-e)}if(t.length<e){var i=new r(e);return i.fill(0,0,e-t.length),t.copy(i,e-t.length),i}}return t}function ne(e){return 0==this.compareTo(e)}function ie(e){return this.compareTo(e)<0?this:e}function oe(e){return this.compareTo(e)>0?this:e}function se(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;o>n;++n)r[n]=t(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)r[n]=t(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)r[n]=t(i,e[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()}function ae(e,t){return e&t}function fe(e){var t=i();return this.bitwiseTo(e,ae,t),t}function ue(e,t){return e|t}function ce(e){var t=i();return this.bitwiseTo(e,ue,t),t}function he(e,t){return e^t}function de(e){var t=i();return this.bitwiseTo(e,he,t),t}function pe(e,t){return e&~t}function le(e){var t=i();return this.bitwiseTo(e,pe,t),t}function be(){for(var e=i(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}function ge(e){var t=i();return 0>e?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function ye(e){var t=i();return 0>e?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function me(e){if(0===e)return-1;var t=0;return 0===(65535&e)&&(e>>=16,t+=16),0===(255&e)&&(e>>=8,t+=8),0===(15&e)&&(e>>=4,t+=4),0===(3&e)&&(e>>=2,t+=2),0===(1&e)&&++t,t}function ve(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+me(this[e]);return this.s<0?this.t*this.DB:-1}function _e(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function we(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=_e(this[r]^t);return e}function Se(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)}function Ee(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}function Me(e){return this.changeBit(e,ue)}function Ae(e){return this.changeBit(e,pe)}function ke(e){return this.changeBit(e,he)}function xe(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);i>r;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=0>n?-1:0,n>0?t[r++]=n:-1>n&&(t[r++]=this.DV+n),t.t=r,t.clamp()}function Ie(e){var t=i();return this.addTo(e,t),t}function Be(e){var t=i();return this.subTo(e,t),t}function Re(e){var t=i();return this.multiplyTo(e,t),t}function Oe(){var e=i();return this.squareTo(e),e}function Te(e){var t=i();return this.divRemTo(e,t,null),t}function Pe(e){var t=i();return this.divRemTo(e,null,t),t}function je(e){var t=i(),r=i();return this.divRemTo(e,t,r),new Array(t,r)}function Ce(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function De(e,t){if(0!==e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function Ne(){}function Le(e){return e}function qe(e,t,r){e.multiplyTo(t,r)}function Ue(e,t){e.squareTo(t)}function ze(e){return this.exp(e,new Ne)}function Ke(e,t,r){var n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r[--n]=0;var i;for(i=r.t-this.t;i>n;++n)r[n+this.t]=this.am(0,e[n],r,n,0,this.t);for(i=Math.min(e.t,t);i>n;++n)this.am(0,e[n],r,n,0,t-n);r.clamp()}function Fe(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r[this.t+n-t]=this.am(t-n,e[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)}function He(e){this.r2=i(),this.q3=i(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function Ge(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=i();return e.copyTo(t),this.reduce(t),t}function Ye(e){return e}function Ve(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function $e(e,t){e.squareTo(t),this.reduce(t)}function We(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function Xe(e,t){var r,n,o=e.bitLength(),s=c(1);if(0>=o)return s;r=18>o?1:48>o?3:144>o?4:768>o?5:6,n=8>o?new R(t):t.isEven()?new He(t):new N(t);var a=new Array,f=3,u=r-1,h=(1<<r)-1;if(a[1]=n.convert(this),r>1){var d=i();for(n.sqrTo(a[1],d);h>=f;)a[f]=i(),n.mulTo(d,a[f-2],a[f]),f+=2}var p,l,b=e.t-1,g=!0,y=i();for(o=v(e[b])-1;b>=0;){for(o>=u?p=e[b]>>o-u&h:(p=(e[b]&(1<<o+1)-1)<<u-o,b>0&&(p|=e[b-1]>>this.DB+o-u)),f=r;0===(1&p);)p>>=1,--f;if((o-=f)<0&&(o+=this.DB,--b),g)a[p].copyTo(s),g=!1;else{for(;f>1;)n.sqrTo(s,y),n.sqrTo(y,s),f-=2;f>0?n.sqrTo(s,y):(l=s,s=y,y=l),n.mulTo(y,a[p],s)}for(;b>=0&&0===(e[b]&1<<o);)n.sqrTo(s,y),l=s,s=y,y=l,--o<0&&(o=this.DB-1,--b)}return n.revert(s)}function Ze(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit();if(0>o)return t;for(o>i&&(o=i),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r}function Je(e){if(0>=e)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0===t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r}function Qe(e){var t=e.isEven();if(this.isEven()&&t||0===e.signum())return n.ZERO;for(var r=e.clone(),i=this.clone(),o=c(1),s=c(0),a=c(0),f=c(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),t?(a.isEven()&&f.isEven()||(a.addTo(this,a),f.subTo(e,f)),a.rShiftTo(1,a)):f.isEven()||f.subTo(e,f),f.rShiftTo(1,f);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(a,o),s.subTo(f,s)):(i.subTo(r,i),t&&a.subTo(o,a),f.subTo(s,f))}return 0!=i.compareTo(n.ONE)?n.ZERO:f.compareTo(e)>=0?f.subtract(e):f.signum()<0?(f.addTo(e,f),f.signum()<0?f.add(e):f):f}function et(e){var t,r=this.abs();if(1==r.t&&r[0]<=ct[ct.length-1]){for(t=0;t<ct.length;++t)if(r[0]==ct[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<ct.length;){for(var n=ct[t],i=t+1;i<ct.length&&ht>n;)n*=ct[i++];for(n=r.modInt(n);i>t;)if(n%ct[t++]===0)return!1}return r.millerRabin(e)}function tt(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(0>=r)return!1;var o=t.shiftRight(r);e=e+1>>1,e>ct.length&&(e=ct.length);for(var s=i(),a=0;e>a;++a){s.fromInt(ct[Math.floor(Math.random()*ct.length)]);var f=s.modPow(o,this);if(0!=f.compareTo(n.ONE)&&0!=f.compareTo(t)){for(var u=1;u++<r&&0!=f.compareTo(t);)if(f=f.modPowInt(2,this),0===f.compareTo(n.ONE))return!1;if(0!=f.compareTo(t))return!1}}return!0}var rt,nt=e("crypto"),it=e("lodash");n.prototype.am=o,rt=28,n.prototype.DB=rt,n.prototype.DM=(1<<rt)-1,n.prototype.DV=1<<rt;var ot=52;n.prototype.FV=Math.pow(2,ot),n.prototype.F1=ot-rt,n.prototype.F2=2*rt-ot;var st,at,ft="0123456789abcdefghijklmnopqrstuvwxyz",ut=new Array;for(st="0".charCodeAt(0),at=0;9>=at;++at)ut[st++]=at;for(st="a".charCodeAt(0),at=10;36>at;++at)ut[st++]=at;for(st="A".charCodeAt(0),at=10;36>at;++at)ut[st++]=at;R.prototype.convert=O,R.prototype.revert=T,R.prototype.reduce=P,R.prototype.mulTo=j,R.prototype.sqrTo=C,N.prototype.convert=L,N.prototype.revert=q,N.prototype.reduce=U,N.prototype.mulTo=K,N.prototype.sqrTo=z,Ne.prototype.convert=Le,Ne.prototype.revert=Le,Ne.prototype.mulTo=qe,Ne.prototype.sqrTo=Ue,He.prototype.convert=Ge,He.prototype.revert=Ye,He.prototype.reduce=Ve,He.prototype.mulTo=We,He.prototype.sqrTo=$e;var ct=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ht=(1<<26)/ct[ct.length-1];n.prototype.copyTo=f,n.prototype.fromInt=u,n.prototype.fromString=h,n.prototype.fromByteArray=d,n.prototype.fromBuffer=p,n.prototype.clamp=l,n.prototype.dlShiftTo=w,n.prototype.drShiftTo=S,n.prototype.lShiftTo=E,n.prototype.rShiftTo=M,n.prototype.subTo=A,n.prototype.multiplyTo=k,n.prototype.squareTo=x,n.prototype.divRemTo=I,n.prototype.invDigit=D,n.prototype.isEven=F,n.prototype.exp=H,n.prototype.chunkSize=X,n.prototype.toRadix=J,n.prototype.fromRadix=Q,n.prototype.fromNumber=ee,n.prototype.bitwiseTo=se,n.prototype.changeBit=Ee,n.prototype.addTo=xe,n.prototype.dMultiply=Ce,n.prototype.dAddOffset=De,n.prototype.multiplyLowerTo=Ke,n.prototype.multiplyUpperTo=Fe,n.prototype.modInt=Je,n.prototype.millerRabin=tt,n.prototype.toString=b,n.prototype.negate=g,n.prototype.abs=y,n.prototype.compareTo=m,n.prototype.bitLength=_,n.prototype.mod=B,n.prototype.modPowInt=G,n.prototype.clone=Y,n.prototype.intValue=V,n.prototype.byteValue=$,n.prototype.shortValue=W,n.prototype.signum=Z,n.prototype.toByteArray=te,n.prototype.toBuffer=re,n.prototype.equals=ne,n.prototype.min=ie,n.prototype.max=oe,n.prototype.and=fe,n.prototype.or=ce,n.prototype.xor=de,n.prototype.andNot=le,n.prototype.not=be,n.prototype.shiftLeft=ge,n.prototype.shiftRight=ye,n.prototype.getLowestSetBit=ve,n.prototype.bitCount=we,n.prototype.testBit=Se,n.prototype.setBit=Me,n.prototype.clearBit=Ae,n.prototype.flipBit=ke,n.prototype.add=Ie,n.prototype.subtract=Be,n.prototype.multiply=Re,n.prototype.divide=Te,n.prototype.remainder=Pe,n.prototype.divideAndRemainder=je,n.prototype.modPow=Xe,n.prototype.modInverse=Qe,n.prototype.pow=ze,n.prototype.gcd=Ze,n.prototype.isProbablePrime=et,n.int2char=s,n.ZERO=c(0),n.ONE=c(1),n.prototype.square=Oe,t.exports=n}).call(this,e("buffer").Buffer)},{buffer:4,crypto:9,lodash:244}],254:[function(e,t,r){(function(n){var i=(e("lodash"),e("crypto"),e("./jsbn.js")),o=e("../utils.js"),s=e("../schemes/schemes.js"),a=e("../encryptEngines/encryptEngines.js");r.BigInteger=i,t.exports.Key=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.setOptions=function(e){var t=s[e.signingScheme],r=s[e.encryptionScheme];t===r?this.signingScheme=this.encryptionScheme=r.makeScheme(this,e):(this.encryptionScheme=r.makeScheme(this,e),this.signingScheme=t.makeScheme(this,e)),this.encryptEngine=a.getEngine(this,e)},e.prototype.generate=function(e,t){var r=e>>1;this.e=parseInt(t,16);for(var n=new i(t,16);;){for(;;)if(this.p=new i(e-r,1),0===this.p.subtract(i.ONE).gcd(n).compareTo(i.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new i(r,1),0===this.q.subtract(i.ONE).gcd(n).compareTo(i.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(i.ONE),a=this.q.subtract(i.ONE),f=s.multiply(a);if(0===f.gcd(n).compareTo(i.ONE)){if(this.n=this.p.multiply(this.q),this.n.bitLength()<e)continue;this.d=n.modInverse(f),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}this.$$recalculateCache()},e.prototype.setPrivate=function(e,t,r,n,s,a,f,u){if(!(e&&t&&r&&e.length>0&&t.length>0&&r.length>0))throw Error("Invalid RSA private key");this.n=new i(e),this.e=o.get32IntFromBuffer(t,0),this.d=new i(r),n&&s&&a&&f&&u&&(this.p=new i(n),this.q=new i(s),this.dmp1=new i(a),this.dmq1=new i(f),this.coeff=new i(u)),this.$$recalculateCache()},e.prototype.setPublic=function(e,t){if(!(e&&t&&e.length>0&&t.length>0))throw Error("Invalid RSA public key");this.n=new i(e),this.e=o.get32IntFromBuffer(t,0),this.$$recalculateCache()},e.prototype.$doPrivate=function(e){if(this.p||this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.$doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.encrypt=function(e,t){var r=[],i=[],o=e.length,s=Math.ceil(o/this.maxMessageLength)||1,a=Math.ceil(o/s||1);if(1==s)r.push(e);else for(var f=0;s>f;f++)r.push(e.slice(f*a,(f+1)*a));for(var u=0;u<r.length;u++)i.push(this.encryptEngine.encrypt(r[u],t));return n.concat(i)},e.prototype.decrypt=function(e,t){if(e.length%this.encryptedDataLength>0)throw Error("Incorrect data or key");for(var r=[],i=0,o=0,s=e.length/this.encryptedDataLength,a=0;s>a;a++)i=a*this.encryptedDataLength,o=i+this.encryptedDataLength,r.push(this.encryptEngine.decrypt(e.slice(i,Math.min(o,e.length)),t));return n.concat(r)},e.prototype.sign=function(e){return this.signingScheme.sign.apply(this.signingScheme,arguments)},e.prototype.verify=function(e,t,r){return this.signingScheme.verify.apply(this.signingScheme,arguments)},e.prototype.isPrivate=function(){return this.n&&this.e&&this.d||!1},e.prototype.isPublic=function(e){return this.n&&this.e&&!(e&&this.d)||!1},Object.defineProperty(e.prototype,"keySize",{get:function(){return this.cache.keyBitLength}}),Object.defineProperty(e.prototype,"encryptedDataLength",{get:function(){return this.cache.keyByteLength}}),Object.defineProperty(e.prototype,"maxMessageLength",{get:function(){return this.encryptionScheme.maxMessageLength()}}),e.prototype.$$recalculateCache=function(){this.cache=this.cache||{},this.cache.keyBitLength=this.n.bitLength(),this.cache.keyByteLength=this.cache.keyBitLength+6>>3},e}()}).call(this,e("buffer").Buffer)},{"../encryptEngines/encryptEngines.js":246,"../schemes/schemes.js":258,
"../utils.js":259,"./jsbn.js":253,buffer:4,crypto:9,lodash:244}],255:[function(e,t,r){(function(r){var n=(e("../libs/jsbn"),e("crypto"));t.exports={isEncryption:!0,isSignature:!1},t.exports.digestLength={md4:16,md5:16,ripemd160:20,rmd160:20,sha:20,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64};var i="sha1";t.exports.eme_oaep_mgf1=function(e,o,s){s=s||i;for(var a=t.exports.digestLength[s],f=Math.ceil(o/a),u=new r(a*f),c=new r(4),h=0;f>h;++h){var d=n.createHash(s);d.update(e),c.writeUInt32BE(h,0),d.update(c),d.digest().copy(u,h*a)}return u.slice(0,o)},t.exports.makeScheme=function(e,o){function s(e,t){this.key=e,this.options=t}return s.prototype.maxMessageLength=function(){return this.key.encryptedDataLength-2*t.exports.digestLength[this.options.encryptionSchemeOptions.hash||i]-2},s.prototype.encPad=function(e){var o=this.options.encryptionSchemeOptions.hash||i,s=this.options.encryptionSchemeOptions.mgf||t.exports.eme_oaep_mgf1,a=this.options.encryptionSchemeOptions.label||new r(0),f=this.key.encryptedDataLength,u=t.exports.digestLength[o];if(e.length>f-2*u-2)throw new Error("Message is too long to encode into an encoded message with a length of "+f+" bytes, increaseemLen to fix this error (minimum value for given parameters and options: "+(f-2*u-2)+")");var c=n.createHash(o);c.update(a),c=c.digest();var h=new r(f-e.length-2*u-1);h.fill(0),h[h.length-1]=1;for(var d=r.concat([c,h,e]),p=n.randomBytes(u),l=s(p,d.length,o),b=0;b<d.length;b++)d[b]^=l[b];for(l=s(d,u,o),b=0;b<p.length;b++)p[b]^=l[b];var g=new r(1+p.length+d.length);return g[0]=0,p.copy(g,1),d.copy(g,1+p.length),g},s.prototype.encUnPad=function(e){var o=this.options.encryptionSchemeOptions.hash||i,s=this.options.encryptionSchemeOptions.mgf||t.exports.eme_oaep_mgf1,a=this.options.encryptionSchemeOptions.label||new r(0),f=t.exports.digestLength[o];if(e.length<2*f+2)throw new Error("Error decoding message, the supplied message is not long enough to be a valid OAEP encoded message");for(var u=e.slice(1,f+1),c=e.slice(1+f),h=s(c,f,o),d=0;d<u.length;d++)u[d]^=h[d];for(h=s(u,c.length,o),d=0;d<c.length;d++)c[d]^=h[d];var p=n.createHash(o);p.update(a),p=p.digest();var l=c.slice(0,f);if(l.toString("hex")!=p.toString("hex"))throw new Error("Error decoding message, the lHash calculated from the label provided and the lHash in the encrypted data do not match.");for(d=f;0===c[d++]&&d<c.length;);if(1!=c[d-1])throw new Error("Error decoding message, there is no padding message separator byte");return c.slice(d)},new s(e,o)}}).call(this,e("buffer").Buffer)},{"../libs/jsbn":253,buffer:4,crypto:9}],256:[function(e,t,r){(function(r){var n=e("../libs/jsbn"),i=e("crypto"),o={md2:new r("3020300c06082a864886f70d020205000410","hex"),md5:new r("3020300c06082a864886f70d020505000410","hex"),sha1:new r("3021300906052b0e03021a05000414","hex"),sha224:new r("302d300d06096086480165030402040500041c","hex"),sha256:new r("3031300d060960864801650304020105000420","hex"),sha384:new r("3041300d060960864801650304020205000430","hex"),sha512:new r("3051300d060960864801650304020305000440","hex"),ripemd160:new r("3021300906052b2403020105000414","hex"),rmd160:new r("3021300906052b2403020105000414","hex")},s={ripemd160:"rmd160"},a="sha256";t.exports={isEncryption:!0,isSignature:!0},t.exports.makeScheme=function(e,t){function f(e,t){this.key=e,this.options=t}return f.prototype.maxMessageLength=function(){return this.key.encryptedDataLength-11},f.prototype.encPad=function(e,t){t=t||{};var n;if(e.length>this.key.maxMessageLength)throw new Error("Message too long for RSA (n="+this.key.encryptedDataLength+", l="+e.length+")");if(1===t.type)return n=new r(this.key.encryptedDataLength-e.length-1),n.fill(255,0,n.length-1),n[0]=1,n[n.length-1]=0,r.concat([n,e]);n=new r(this.key.encryptedDataLength-e.length),n[0]=0,n[1]=2;for(var o=i.randomBytes(n.length-3),s=0;s<o.length;s++){for(var a=o[s];0===a;)a=i.randomBytes(1)[0];n[s+2]=a}return n[n.length-1]=0,r.concat([n,e])},f.prototype.encUnPad=function(e,t){t=t||{};var r=0;if(e.length<4)return null;if(1===t.type){if(0!==e[0]&&1!==e[1])return null;for(r=3;0!==e[r];)if(255!=e[r]||++r>=e.length)return null}else{if(0!==e[0]&&2!==e[1])return null;for(r=3;0!==e[r];)if(++r>=e.length)return null}return e.slice(r+1,e.length)},f.prototype.sign=function(e){var t=this.options.signingSchemeOptions.hash||a;if("browser"==this.options.environment){t=s[t]||t;var r=i.createHash(t);r.update(e);var o=this.pkcs1pad(r.digest(),t),f=this.key.$doPrivate(new n(o)).toBuffer(this.key.encryptedDataLength);return f}var u=i.createSign("RSA-"+t.toUpperCase());return u.update(e),u.sign(this.options.rsaUtils.exportKey("private"))},f.prototype.verify=function(e,t,o){var f=this.options.signingSchemeOptions.hash||a;if("browser"==this.options.environment){f=s[f]||f,o&&(t=new r(t,o));var u=i.createHash(f);u.update(e);var c=this.pkcs1pad(u.digest(),f),h=this.key.$doPublic(new n(t));return h.toBuffer().toString("hex")==c.toString("hex")}var d=i.createVerify("RSA-"+f.toUpperCase());return d.update(e),d.verify(this.options.rsaUtils.exportKey("public"),t,o)},f.prototype.pkcs1pad=function(e,t){var n=o[t];if(!n)throw Error("Unsupported hash algorithm");var i=r.concat([n,e]);if(i.length+10>this.key.encryptedDataLength)throw Error("Key is too short for signing algorithm ("+t+")");var s=new r(this.key.encryptedDataLength-i.length-1);s.fill(255,0,s.length-1),s[0]=1,s[s.length-1]=0;var a=r.concat([s,i]);return a},new f(e,t)}}).call(this,e("buffer").Buffer)},{"../libs/jsbn":253,buffer:4,crypto:9}],257:[function(e,t,r){(function(r){var n=e("../libs/jsbn"),i=e("crypto");t.exports={isEncryption:!1,isSignature:!0};var o="sha1",s=20;t.exports.makeScheme=function(t,a){function f(e,t){this.key=e,this.options=t}var u=e("./schemes").pkcs1_oaep;return f.prototype.sign=function(e){var t=this.emsa_pss_encode(e,this.key.keySize-1),r=this.key.$doPrivate(new n(t)).toBuffer(this.key.encryptedDataLength);return r},f.prototype.verify=function(e,t,i){i&&(t=new r(t,i)),t=new n(t);var o=Math.ceil((this.key.keySize-1)/8),s=this.key.$doPublic(t).toBuffer(o);return this.emsa_pss_verify(e,s,this.key.keySize-1)},f.prototype.emsa_pss_encode=function(e,t){var n=this.options.signingSchemeOptions.hash||o,a=this.options.signingSchemeOptions.mgf||u.eme_oaep_mgf1,f=this.options.signingSchemeOptions.saltLength||s,c=u.digestLength[n],h=Math.ceil(t/8);if(c+f+2>h)throw new Error("Output length passed to emBits("+t+") is too small for the options specified("+n+", "+f+"). To fix this issue increase the value of emBits. (minimum size: "+(8*c+8*f+9)+")");var d=i.createHash(n);d.update(e),d=d.digest();var p=i.randomBytes(f),l=new r(8+c+f);l.fill(0,0,8),d.copy(l,8),p.copy(l,8+d.length);var b=i.createHash(n);b.update(l),b=b.digest();var g=new r(h-p.length-c-2);g.fill(0);var y=new r(g.length+1+p.length);g.copy(y),y[g.length]=1,p.copy(y,g.length+1);for(var m=a(b,y.length,n),v=new r(y.length),_=0;_<m.length;_++)v[_]=y[_]^m[_];var w=t-8*(h-1),S=255<<8-w>>8-w;v[0]&=(v[0]^S)&v[0];var E=new r(v.length+b.length+1);return v.copy(E,0),b.copy(E,v.length),E[E.length-1]=188,E},f.prototype.emsa_pss_verify=function(e,t,n){var a=this.options.signingSchemeOptions.hash||o,f=this.options.signingSchemeOptions.mgf||u.eme_oaep_mgf1,c=this.options.signingSchemeOptions.saltLength||s,h=u.digestLength[a],d=Math.ceil(n/8);if(h+c+2>d||188!=t[t.length-1])return!1;var p=new r(d-h-1);t.copy(p,0,0,d-h-1);for(var l=0,b=0,g=8*d-n;g>b;b++)l|=1<<7-b;if(0!==(p[0]&l))return!1;var y=t.slice(d-h-1,d-1),m=f(y,p.length,a);for(b=0;b<p.length;b++)p[b]^=m[b];for(l=0,b=0,g=n-8*(d-1);g>b;b++)l|=1<<b;for(p[0]&=l;0===p[b++]&&b<p.length;);if(1!=p[b-1])return!1;var v=p.slice(p.length-c),_=i.createHash(a);_.update(e),_=_.digest();var w=new r(8+h+c);w.fill(0,0,8),_.copy(w,8),v.copy(w,8+_.length);var S=i.createHash(a);return S.update(w),S=S.digest(),y.toString("hex")===S.toString("hex")},new f(t,a)}}).call(this,e("buffer").Buffer)},{"../libs/jsbn":253,"./schemes":258,buffer:4,crypto:9}],258:[function(e,t,r){t.exports={pkcs1:e("./pkcs1"),pkcs1_oaep:e("./oaep"),pss:e("./pss"),isEncryption:function(e){return t.exports[e]&&t.exports[e].isEncryption},isSignature:function(e){return t.exports[e]&&t.exports[e].isSignature}}},{"./oaep":255,"./pkcs1":256,"./pss":257}],259:[function(e,t,r){(function(r){e("crypto");t.exports.linebrk=function(e,t){for(var r="",n=0;n+t<e.length;)r+=e.substring(n,n+t)+"\n",n+=t;return r+e.substring(n,e.length)},t.exports.detectEnvironment=function(){return r&&"browser"!=r.title?"node":window?"browser":"node"},t.exports.get32IntFromBuffer=function(e,t){t=t||0;var r=0;if((r=e.length-t)>0){if(r>=4)return e.readUInt32BE(t);for(var n=0,i=t+r,o=0;i>t;i--,o+=2)n+=e[i-1]*Math.pow(16,o);return n}return NaN}}).call(this,e("_process"))},{_process:205,crypto:9}],260:[function(e,t,r){(function(r){function n(e){if(e&&"function"==typeof e)return!0;throw new Error("Invalid callback function provided.")}function i(e){return e&&"object"==typeof e&&Object.keys(e).forEach(function(t){c[t]=e[t]}),this.protocol=c.protocol,this.keepAlive=c.keep_alive,this.noDelay=c.no_delay,this.timeout=c.timeout,this.host=c.host,this.port=c.port,this.protocol||(this.protocol=c.default_protocol),this.port||(this.port=u.available_protocols[this.protocol].port),this.__publicKey=void 0,this}t.exports=i;var o=e("net"),s=e("util"),a=e("http"),f=e("node-rsa"),u={host:"192.168.0.1",keep_alive:!0,timeout:2e3,no_delay:!0,default_channel:6,default_protocol:"http",available_protocols:{tcp:{port:"5609"},http:{port:"80"}}},c=u,h={open:0,none:0,wep_psk:1,wep_shared:32769,wpa_tkip:2097154,wpa_aes:2097156,wpa2_aes:4194308,wpa2_tkip:4194306,wpa2_mixed:4194310,wpa2:4194310};i.prototype.scan=function(e){n(e);var t=this.__sendCommand("scan-ap",e);return t},i.prototype.connect=function(e){n(e);var t=this.__sendCommand({name:"connect-ap",body:{idx:0}},e);return t},i.prototype.deviceInfo=function(e){function t(t,r){if(t)return e(t);var n="1"===r.c?!0:!1;this.__deviceID=r.id,e(null,{id:r.id,claimed:n})}n(e);var r=this.__sendCommand("device-id",t.bind(this));return r},i.prototype.publicKey=function(e){function t(t,n){if(t)return e(t);if(!n)return e(new Error("No data received"));if(0!==n.r)return e(new Error("Received non-zero response code"));var i=new r(n.b,"hex");this.__publicKey=new f(i.slice(22),"pkcs1-public-der",{encryptionScheme:"pkcs1"}),e(null,this.__publicKey.exportKey("pkcs8-public"))}n(e);var i=this.__sendCommand("public-key",t.bind(this));return i},i.prototype.setClaimCode=function(e,t){if(n(t),!e||"string"!=typeof e)throw new Error("Must provide claim code string as first parameter");var r={k:"cc",v:e},i=this.__sendCommand({name:"set",body:r},t);return i},i.prototype.configure=function(e,t){n(t);var r=void 0;if(!this.__publicKey)throw new Error("Must retrieve public key of device prior to AP configuration");if(!e||"object"!=typeof e)throw new Error("Missing configuration options object as first parameter");if(!e.ssid){if(!e.name)throw new Error("Configuration options contain no ssid property");e.ssid=e.name}if(!e.enc&&!e.sec||e.security||(e.security=e.sec||e.enc),e.security||(e.security="open",e.password=null),e.password||e.pass){if(!e.security)throw new Error("Password provided but no security type specified");e.pass&&!e.password&&(e.password=e.pass),r=this.__publicKey.encrypt(e.password,"hex")}"string"==typeof e.security&&(e.security=h[e.security]);var i={idx:0,ssid:e.ssid,sec:e.security,ch:parseInt(e.channel)};r&&(i.pwd=r);var o=this.__sendCommand({name:"configure-ap",body:i},t);return o},i.prototype.__getSocket=function(e,t,r){var n=void 0;if("function"!=typeof e&&(n="Invalid connect function specified."),"function"!=typeof t&&(n="Invalid data function specified."),r&&"function"!=typeof r&&(n="Provided error handler is not a function."),n)throw new Error(n);var i=o.createConnection(this.port,this.host);return i.setTimeout(this.timeout),i.on("data",t),r&&i.on("error",r),i.on("connect",e),i},i.prototype.__httpRequest=function(e,t,r){var n,i,o=void 0;if(e&&"object"==typeof e||(o="Invalid command object specified."),o)throw new Error(o);var s={method:"GET",path:"/"+e.name,hostname:this.host,port:this.port};return e.body&&"object"==typeof e.body&&(i=JSON.stringify(e.body),s.headers={"Content-Length":i.length,"Content-Type":"application/x-www-form-urlencoded"},s.method="POST"),n=a.request(s,function(e){var r="";e.on("data",function(e){e&&(r+=e.toString())}),e.on("end",function(){t(r)})}),n.on("error",r),i&&n.write(i),n.end(),n},i.prototype.__sendCommand=function(e,t){function i(){if(e.body&&"object"==typeof e.body){var t=JSON.stringify(e.body),r=t.length;send=s.format("%s\n%s\n\n%s",e.name,r,t)}else send=s.format("%s\n0\n\n",e.name);a.write(send)}function o(e){if(e instanceof r||"string"==typeof e)try{var n=JSON.parse(e.toString().split("}{").join("},{") )}catch(i){return t(new Error("Invalid JSON received from device."))}else if("object"==typeof e)var n=e;t(null,n)}var a,f=this.protocol;if("string"==typeof e)e={name:e,body:void 0};else{if("object"!=typeof e)throw new Error("Invalid command");if(!e.name)throw new Error("Command object has no name property")}return n(t),a="http"==f?this.__httpRequest(e,o,t):this.__getSocket(i,o)},i.prototype.version=function(e){n(e);var t=this.__sendCommand("version",e);return t},i.prototype.securityLookup=function(e){var t=null;return Object.keys(h).forEach(function(r){parseInt(e)==h[r]&&(t=r)}),t}}).call(this,e("buffer").Buffer)},{buffer:4,http:224,net:1,"node-rsa":245,util:234}]},{},[260])(260)});
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){"use strict";var Device=function(attributes,spark){this._spark=spark;this.attributes={};this._updateAttrs(attributes);this.requirePlugins()};Device.prototype.remove=function(callback){return this._spark.removeCore(this.id,callback)};Device.prototype.rename=function(name,callback){return this._spark.renameCore(this.id,name,callback)};Device.prototype.signal=function(callback){return this._spark.signalCore(this.id,true,callback)};Device.prototype.stopSignal=function(callback){return this._spark.signalCore(this.id,false,callback)};Device.prototype.flash=function(files,callback){return this._spark.flashCore(this.id,files,callback)};Device.prototype.sendPublicKey=function(buffer,callback){return this._spark.sendPublicKey(this.id,buffer,callback)};Device.prototype.callFunction=function(name,params,callback){return this._spark.callFunction(this.id,name,params,callback)};Device.prototype.subscribe=function(eventName,callback){return this._spark.getEventStream(eventName,this.id,callback)};Device.prototype.createWebhook=function(eventName,url,callback){return this._spark.createWebhook(eventName,url,this.id,callback)};Device.prototype.getVariable=function(name,callback){return this._spark.getVariable(this.id,name,callback)};Device.prototype.getAttributes=function(callback){this._spark.getAttributes(this.id,function(err,data){if(!err){this._updateAttrs(data)}callback(err,data)}.bind(this))};Device.prototype.onEvent=function(eventName,callback){return this._spark.getEventStream(eventName,this.id,callback)};Device.prototype._updateAttrs=function(attrs){var replacer=function(match){return match.toUpperCase().replace("_","")};var tmpKey="";for(var key in attrs){tmpKey=key.replace(/(\_[a-z])/g,replacer);this[tmpKey]=attrs[key];this.attributes[tmpKey]=attrs[key]}};Device.prototype.requirePlugins=function(){var plugins=this._spark.plugins;var Plugin=null;var name="";var moduleName="";for(var i in plugins){name=plugins[i];moduleName="spark-"+name;Plugin=require(moduleName);this[name]=new Plugin(this.id,this._spark)}};module.exports=Device},{}],2:[function(require,module,exports){(function(process){"use strict";var fs=require("fs"),path=require("path");var SparkApi=function(args){this.request=require("request");this.clientId=args.clientId;this.clientSecret=args.clientSecret;this.baseUrl=args.baseUrl};SparkApi.prototype.login=function(params,callback){this.request({uri:this.baseUrl+"/oauth/token",method:"POST",json:true,form:{username:params.username,password:params.password,grant_type:"password",client_id:this.clientId,client_secret:this.clientSecret}},callback)};SparkApi.prototype.listDevices=function(params,callback){this.request({uri:this.baseUrl+"/v1/devices?access_token="+params.accessToken,method:"GET",json:true},callback)};SparkApi.prototype.getDevice=function(params,callback){this.request({uri:this.baseUrl+"/v1/devices/"+params.deviceId+"?access_token="+params.accessToken,method:"GET",json:true},callback)};SparkApi.prototype.createUser=function(username,password,callback){this.request({uri:this.baseUrl+"/v1/users",method:"POST",form:{username:username,password:password},json:true},callback)};SparkApi.prototype.removeAccessToken=function(username,password,accessToken,callback){this.request({uri:this.baseUrl+"/v1/access_tokens/"+accessToken,method:"DELETE",auth:{username:username,password:password},form:{access_token:accessToken},json:true},callback)};SparkApi.prototype.claimCore=function(coreId,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices",method:"POST",form:{id:coreId,access_token:accessToken},json:true},callback)};SparkApi.prototype.removeCore=function(coreId,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId,method:"DELETE",form:{id:coreId,access_token:accessToken},json:true},callback)};SparkApi.prototype.renameCore=function(coreId,name,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId,method:"PUT",form:{name:name,access_token:accessToken},json:true},callback)};SparkApi.prototype.changeProduct=function(coreId,product_id,should_update,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId,method:"PUT",form:{product_id:product_id,update_after_claim:should_update,access_token:accessToken},json:true},callback)};SparkApi.prototype.getAttributes=function(coreId,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId+"?access_token="+accessToken,method:"GET",json:true},callback)};SparkApi.prototype.getVariable=function(coreId,name,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId+"/"+name+"?access_token="+accessToken,method:"GET",json:true},callback)};SparkApi.prototype.signalCore=function(coreId,signal,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId,method:"PUT",form:{signal:signal?1:0,access_token:accessToken},json:true},callback)};SparkApi.prototype.flashTinker=function(coreId,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId,method:"PUT",form:{access_token:accessToken,app:"tinker"},json:true},callback)};SparkApi.prototype.flashCore=function(coreId,files,accessToken,callback){files=Array.isArray(files)?files:[files];var r=this.request({uri:this.baseUrl+"/v1/devices/"+coreId+"?access_token="+accessToken,method:"PUT",json:true},callback);var form=r.form(),paramName="file";for(var i in files){form.append(paramName,fs.createReadStream(path.join(process.cwd(),files[i])),{filename:path.basename(files[i])});paramName="file"+i}};SparkApi.prototype.compileCode=function(files,options,accessToken,callback){files=Array.isArray(files)?files:[files];if(!callback){callback=accessToken;accessToken=options;options=null}options=options||{};var formData={};for(var i in files){formData[i]={value:fs.createReadStream(path.join(process.cwd(),files[i])),options:{filename:path.basename(files[i])}}}if(options.deviceID!==undefined)formData.device_id=options.deviceID;if(options.platformID!==undefined)formData.platform_id=options.platformID;if(options.productID!==undefined)formData.product_id=options.productID;this.request({uri:this.baseUrl+"/v1/binaries?access_token="+accessToken,method:"POST",json:true,formData:formData},callback)};SparkApi.prototype.downloadBinary=function(url,filename,accessToken,callback){var response=this.request({uri:this.baseUrl+url+"?access_token="+accessToken,method:"GET"},callback);return response};SparkApi.prototype.sendPublicKey=function(coreId,buffer,accessToken,callback){this.request({uri:this.baseUrl+"/v1/provisioning/"+coreId,method:"POST",form:{deviceID:coreId,publicKey:buffer.toString(),order:"manual_"+(new Date).getTime(),filename:"cli",access_token:accessToken},json:true},callback)};SparkApi.prototype.callFunction=function(coreId,functionName,funcParam,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/"+coreId+"/"+functionName,method:"POST",form:{args:funcParam,access_token:accessToken},json:true},callback)};SparkApi.prototype.getEventStream=function(eventName,coreId,accessToken,callback){var url;if(!coreId){url="/v1/events"}else if(coreId=="mine"){url="/v1/devices/events"}else{url="/v1/devices/"+coreId+"/events"}if(eventName){url+="/"+eventName}var requestObj=this.request({uri:this.baseUrl+url+"?access_token="+accessToken,method:"GET"},callback);return requestObj};SparkApi.prototype.publishEvent=function(eventName,data,accessToken,callback){this.request({uri:this.baseUrl+"/v1/devices/events",method:"POST",form:{name:eventName,data:data,access_token:accessToken},json:true},callback)};SparkApi.prototype.createWebhook=function(eventName,url,coreId,accessToken,callback){var body={event:eventName,url:url,access_token:accessToken};if(coreId==="mine"){body.mydevices=true}else{body.deviceid=coreId}this.request({uri:this.baseUrl+"/v1/webhooks",method:"POST",form:body,json:true},callback)};SparkApi.prototype.deleteWebhook=function(hookId,accessToken,callback){this.request({uri:this.baseUrl+"/v1/webhooks/"+hookId+"?access_token="+accessToken,method:"DELETE",json:true},callback)};SparkApi.prototype.listWebhooks=function(accessToken,callback){this.request({uri:this.baseUrl+"/v1/webhooks/?access_token="+accessToken,method:"GET",json:true},callback)};module.exports=SparkApi}).call(this,require("_process"))},{_process:11,fs:7,path:10,request:6}],3:[function(require,module,exports){var css=".spark-modal {\n display: none;\n width: 400px;\n background: #fff;\n padding: 15px 30px;\n -webkit-border-radius: 8px;\n -moz-border-radius: 8px;\n -o-border-radius: 8px;\n -ms-border-radius: 8px;\n border-radius: 8px;\n -webkit-box-shadow: 0 0 10px #000;\n -moz-box-shadow: 0 0 10px #000;\n -o-box-shadow: 0 0 10px #000;\n -ms-box-shadow: 0 0 10px #000;\n box-shadow: 0 0 10px #000;\n}\n\n.spark-modal a.close-modal {\n position: absolute;\n top: -12.5px;\n right: -12.5px;\n display: block;\n width: 30px;\n height: 30px;\n text-indent: -9999px;\n}\n\n.modal-spinner {\n display: none;\n width: 64px;\n height: 64px;\n position: fixed;\n top: 50%;\n left: 50%;\n margin-right: -32px;\n margin-top: -32px;\n -webkit-border-radius: 8px;\n -moz-border-radius: 8px;\n -o-border-radius: 8px;\n -ms-border-radius: 8px;\n border-radius: 8px;\n}\n\n.spark-login-button {\n width: 150px;\n border-radius: 0;\n color: #fff;\n font-weight: 700;\n text-transform: uppercase;\n padding: 12px;\n background: #00aced;\n border: 0;\n font-size: 11px;\n}\n\n.spark-login-input {\n border-radius: 0;\n border: 1px solid #f7f7f7;\n height: 40px;\n width: 248px;\n margin-bottom: 20px;\n padding-left: 20px;\n font-size: 16px;\n font-weight: 300;\n font-family: 'Gotham SSm A', 'Gotham SSm B', proxima-nova, 'Helvetica Neue', helvetica, arial, sans-serif;\n font-size: 16px;\n outline: none;\n}\n\n.spark-login-modal {\n box-sizing: border-box;\n display: block;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-size: 14px;\n padding-bottom: 30px;\n padding-left: 75px;\n padding-right: 10px;\n padding-top: 60px;\n width: 400px;\n z-index: 0;\n background: rgba(0,0,0,0.8);\n border-radius: 0;\n border: 0;\n}\n\n.spark-login-error {\n background-color: #f2dede;\n background-image: linear-gradient(to bottom, #f2dede 0, #e7c3c3 100%);\n background-repeat: repeat-x;\n border: 1px solid transparent;\n border-color: #dca7a7;\n border-radius: 4px;\n box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),0 1px 2px rgba(0,0,0,0.05);\n color: #b94a48;\n padding: 15px;\n margin-bottom: 20px;\n text-shadow: 0 1px 0 rgba(255,255,255,0.2);\n -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),0 1px 2px rgba(0,0,0,0.05);\n width: 216px;\n display: none;\n}\n\n#spark-login-form {\n display: none;\n}\n\n#spark-login-form-button {\n width: 248px;\n margin: 20px auto;\n background: #fad612;\n font-size: 14px;\n}\n";require("/Users/nexxy/Particle/sparkjs/node_modules/cssify")(css);module.exports=css},{"/Users/nexxy/Particle/sparkjs/node_modules/cssify":14}],4:[function(require,module,exports){var $=require("jquery");var jModal=require("../vendor/jquery.modal.min.js");var cssify=require("cssify");require("./spark-browser-style.css");window.sparkLogin=function(callback){addLoginButton();addLoginForm();addBehaviour(callback)};window.spark=require("./spark.js");$.modal.defaults.modalClass="spark-modal";function addLoginButton(){var btn=document.createElement("button");btn.id="spark-login-button";btn.className="spark-login-button";btn.appendChild(document.createTextNode("Login to Spark"));btn.onclick=function(){$("#spark-login-form").modal()};if($("#spark-login").length){$("#spark-login").append(btn)}else{document.body.appendChild(btn)}}function addLoginForm(){var form=document.createElement("form");form.id="spark-login-form";form.className="spark-login-modal";form.appendChild(generateError());form.appendChild(generateInput("email","text"));form.appendChild(generateInput("password","password"));form.appendChild(generateButton());document.body.appendChild(form)}function addBehaviour(callback){$("#spark-login-form-button").click(function(e){e.preventDefault();var user=$("#spark-login-form-email").val();var pass=$("#spark-login-form-password").val();var loginPromise=window.spark.login({username:user,password:pass});loginPromise.then(function(data){callback(data);$("#spark-login-form-email").val("");$("#spark-login-form-password").val("");displayErrorMessage("");$("#spark-login-form-error").hide();$.modal.close()},function(error){if(error.message==="invalid_client"){displayErrorMessage("Invalid username or password.")}else if(error.cors==="rejected"){displayErrorMessage("Request rejected.")}else{displayErrorMessage("Unknown error.");console.log(error)}})})}function generateError(){var div=document.createElement("div");div.id="spark-login-form-error";div.className="spark-login-error";return div}function generateInput(name,type){var input=document.createElement("input");input.id="spark-login-form-"+name;input.type=type;input.className="spark-login-input";input.placeholder=name;return input}function generateButton(){var btn=document.createElement("button");btn.id="spark-login-form-button";btn.className="spark-login-button";btn.appendChild(document.createTextNode("log in"));return btn}function displayErrorMessage(message){$("#spark-login-form-error").show();$("#spark-login-form-error").text(message)}},{"../vendor/jquery.modal.min.js":35,"./spark-browser-style.css":3,"./spark.js":5,cssify:14,jquery:15}],5:[function(require,module,exports){"use strict";var when=require("when"),pipeline=require("when/pipeline");var fs=require("fs"),util=require("util"),EventEmitter=require("events").EventEmitter,Device=require("./device"),SparkApi=require("./spark-api");var Spark=function(opts){Object.defineProperty(this,"baseUrl",{get:function(){return this.__baseUrl},set:function(url){this.__baseUrl=url}});this.baseUrl="https://api.particle.io";this.clientId="Spark";this.clientSecret="Spark";this.accessToken=null;this.plugins=[];this.devices=[];this.api=new SparkApi({clientId:this.clientId,clientSecret:this.clientSecret,baseUrl:this.baseUrl})};util.inherits(Spark,EventEmitter);Spark.prototype.resolveDefer=function(defer,err,data,callback){if(defer){if(err){defer.reject(err)}else{defer.resolve(data)}}};Spark.prototype.createDefer=function(eventName,callback){var defer=null;if(!callback&&this.listeners(eventName).length===0){defer=when.defer()}return defer};Spark.prototype.normalizeErr=function(err,data,callback){if(!err&&data.error){err=new Error(data.error)}return err};Spark.prototype.emitAndCallback=function(eventName,err,data,callback){if(!!err){data=null}this.emit(eventName,err,data);if("function"===typeof callback){callback(err,data)}};Spark.prototype.defaultHandler=function(eventName,defer,userCb,sparkCb){var handler=function(err,response,data){err=this.normalizeErr(err,data);if(!err&&typeof sparkCb==="function"){sparkCb(data)}this.resolveDefer(defer,err,data);this.emitAndCallback(eventName,err,data,userCb)}.bind(this);return handler};Spark.prototype.include=function(plugins){plugins=Array.isArray(plugins)?plugins:[plugins];for(var i in plugins){if(this.plugins.indexOf(plugins[i])==-1){this.plugins.push(plugins[i])}}};Spark.prototype.login=function(params,callback){var defer=this.createDefer("login",callback);var handler=this.defaultHandler("login",defer,callback,function(data){this.accessToken=data.access_token||data.accessToken}.bind(this));if(params.accessToken){handler(null,params,params)}else{this.api.login(params,handler)}var promise=!!defer?defer.promise:null;return promise};Spark.prototype.getDevice=function(deviceId,callback){var defer=this.createDefer("getDevice",callback);var device=null;var handler=function(err,response,data){err=this.normalizeErr(err,data);if(data&&data.id){device=new Device(data,this)}this.resolveDefer(defer,err,device);this.emitAndCallback("getDevice",err,device,callback)}.bind(this);this.api.getDevice({deviceId:deviceId,accessToken:this.accessToken},handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.listDevices=function(callback){var defer=this.createDefer("listDevices",callback);var handler=function(err,response,data){err=this.normalizeErr(err,data);this.devices=[];if(Array.isArray(data)){for(var i in data){this.devices.push(new Device(data[i],this))}}this.resolveDefer(defer,err,this.devices);this.emitAndCallback("listDevices",err,this.devices,callback)}.bind(this);this.api.listDevices({accessToken:this.accessToken},handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.ready=function(){return!!this.accessToken};Spark.prototype.createUser=function(username,password,callback){var defer=this.createDefer("createUser",callback),emailRegex=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!username||username===""||!emailRegex.test(username)){var err=new Error("Username must be an email address.");this.emitAndCallback("createUser",err,null,callback);if(!!defer){defer.reject(err)}}else{var handler=this.defaultHandler("createUser",defer,callback,function(data){this.username=username;this.password=password}.bind(this));this.api.createUser(username,password,handler)}var promise=!!defer?defer.promise:null;return promise};Spark.prototype.removeAccessToken=function(username,password,accessToken,callback){var defer=this.createDefer("removeAccessToken",callback),handler=this.defaultHandler("removeAccessToken",defer,callback).bind(this);accessToken=accessToken||this.accessToken;this.api.removeAccessToken(username,password,accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.claimCore=function(coreId,callback){var defer=this.createDefer("claimCore",callback),handler=this.defaultHandler("claimCore",defer,callback).bind(this);this.api.claimCore(coreId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.removeCore=function(coreId,callback){var defer=this.createDefer("removeCore",callback),handler=this.defaultHandler("removeCore",defer,callback).bind(this);this.api.removeCore(coreId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.renameCore=function(coreId,name,callback){var defer=this.createDefer("renameCore",callback),handler=this.defaultHandler("renameCore",defer,callback).bind(this);this.api.renameCore(coreId,name,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.getAttributes=function(coreId,callback){var defer=this.createDefer("getAttributes",callback),handler=this.defaultHandler("getAttributes",defer,callback);this.api.getAttributes(coreId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.getVariable=function(coreId,name,callback){var defer=this.createDefer("getVariable",callback),handler=this.defaultHandler("getVariable",defer,callback).bind(this);this.api.getVariable(coreId,name,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.signalCore=function(coreId,beSignalling,callback){var defer=this.createDefer("signalCore",callback),handler=this.defaultHandler("signalCore",defer,callback).bind(this);this.api.signalCore(coreId,beSignalling,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.flashTinker=function(coreId,callback){var defer=this.createDefer("flashTinker",callback),handler=this.defaultHandler("flashTinker",defer,callback).bind(this);this.api.flashTinker(coreId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.flashCore=function(coreId,files,callback){var defer=this.createDefer("flashCore",callback),handler=this.defaultHandler("flashCore",defer,callback).bind(this);this.api.flashCore(coreId,files,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.compileCode=function(files,options,callback){if(!callback&&typeof options==="function"){callback=options;options=null}var defer=this.createDefer("compileCode",callback),handler=this.defaultHandler("compileCode",defer,callback);this.api.compileCode(files,options,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.downloadBinary=function(url,filename,callback){var defer=this.createDefer("downloadBinary",callback),outFs=fs.createWriteStream(filename),handler=this.defaultHandler("downloadBinary",defer,callback).bind(this);this.api.downloadBinary(url,filename,this.accessToken,handler).pipe(outFs);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.sendPublicKey=function(coreId,buffer,callback){var defer=this.createDefer("sendPublicKey",callback),handler=this.defaultHandler("sendPublicKey",defer,callback).bind(this);this.api.sendPublicKey(coreId,buffer,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.callFunction=function(coreId,functionName,funcParam,callback){var defer=this.createDefer("callFunction",callback),handler=this.defaultHandler("callFunction",defer,callback).bind(this);this.api.callFunction(coreId,functionName,funcParam,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.lookupAttributesForAll=function(cores){var defer=this.createDefer("lookupAttributesForAll",null);if(!cores||cores.length===0){this._attributeCache=null}else{var promises=[];for(var i=0;i<cores.length;i++){var coreId=cores[i].id;if(cores[i].connected){promises.push(this.getAttributes(coreId))}else{promises.push(when.resolve(cores[i]))}}when.all(promises).then(function(cores){cores=cores.sort(function(a,b){return(a.name||"").localeCompare(b.name)});this._attributeCache=cores;defer.resolve(cores)}.bind(this))}var promise=!!defer?defer.promise:null;return promise};Spark.prototype.getAttributesForAll=function(){if(this._attributeCache){return when.resolve(this._attributeCache)}return pipeline([this.listDevices.bind(this),this.lookupAttributesForAll.bind(this)])};Spark.prototype.getEventStream=function(eventName,coreId,callback){var defer=this.createDefer("getEventStream",callback),handler=this.defaultHandler("getEventStream",defer,callback).bind(this),requestObj=this.api.getEventStream(eventName,coreId,this.accessToken,handler);if(callback){var processor=this._createStreamProcessor();processor.watch(requestObj,callback)}return requestObj};Spark.prototype._createStreamProcessor=function(){var Processor=function(){};Processor.prototype={chunks:[],appendToQueue:function(arr){for(var i=0;i<arr.length;i++){var line=(arr[i]||"").trim();if(line==""){continue}this.chunks.push(line);if(line.indexOf("data:")==0){this.processItem(this.chunks);this.chunks=[]}}},processItem:function(arr){var obj={};for(var i=0;i<arr.length;i++){var line=arr[i];if(line.indexOf("event:")==0){obj.name=line.replace("event:","").trim()}else if(line.indexOf("data:")==0){line=line.replace("data:","");var name=obj.name;obj=JSON.parse(line);obj.name=name}}if(this.onDataReady){this.onDataReady(obj)}},onData:function(event){var chunk=event.toString();this.appendToQueue(chunk.split("\n"))},watch:function(eventer,callback){this.onDataReady=callback;if(eventer.on){eventer.on("data",this.onData.bind(this))}else if(eventer.onreadystatechange){var that=this,idx=0;eventer.onreadystatechange=function(){var text=eventer.responseText.substr(idx);idx=eventer.responseText.length;that.onData(text)}}else{console.error("event stream couldn't stream!")}}};return new Processor};Spark.prototype.onEvent=function(eventName,callback){this.getEventStream(eventName,false,callback)};Spark.prototype.publishEvent=function(eventName,data,callback){var defer=this.createDefer("publishEvent",callback),handler=this.defaultHandler("publishEvent",defer,callback).bind(this);this.api.publishEvent(eventName,data,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.createWebhook=function(eventName,url,coreId,callback){var defer=this.createDefer("createWebhook",callback),handler=this.defaultHandler("createWebhook",defer,callback).bind(this);this.api.createWebhook(eventName,url,coreId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.deleteWebhook=function(hookId,callback){var defer=this.createDefer("deleteWebhook",callback),handler=this.defaultHandler("deleteWebhook",defer,callback).bind(this);this.api.deleteWebhook(hookId,this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};Spark.prototype.listWebhooks=function(callback){var defer=this.createDefer("listWebhooks",callback),handler=this.defaultHandler("listWebhooks",defer,callback).bind(this);this.api.listWebhooks(this.accessToken,handler);var promise=!!defer?defer.promise:null;return promise};module.exports=new Spark},{"./device":1,"./spark-api":2,events:8,fs:7,util:13,when:34,"when/pipeline":33}],6:[function(require,module,exports){(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory)}else if(typeof exports==="object"){module.exports=factory()}else{root.returnExports=factory()}})(this,function(){var XHR=XMLHttpRequest;if(!XHR)throw new Error("missing XMLHttpRequest");request.log={trace:noop,debug:noop,info:noop,warn:noop,error:noop};var DEFAULT_TIMEOUT=3*60*1e3;function request(options,callback){if(typeof callback!=="function")throw new Error("Bad callback given: "+callback);if(!options)throw new Error("No options given");var options_onResponse=options.onResponse;if(typeof options==="string")options={uri:options};else options=JSON.parse(JSON.stringify(options));options.onResponse=options_onResponse;if(options.verbose)request.log=getLogger();if(options.url){options.uri=options.url;delete options.url}if(!options.uri&&options.uri!=="")throw new Error("options.uri is a required argument");if(typeof options.uri!="string")throw new Error("options.uri must be a string");var unsupported_options=["proxy","_redirectsFollowed","maxRedirects","followRedirect"];for(var i=0;i<unsupported_options.length;i++)if(options[unsupported_options[i]])throw new Error("options."+unsupported_options[i]+" is not supported");options.callback=callback;options.method=options.method||"GET";options.headers=options.headers||{};options.body=options.body||null;options.timeout=options.timeout||request.DEFAULT_TIMEOUT;if(options.headers.host)throw new Error("Options.headers.host is not supported");if(options.json){options.headers.accept=options.headers.accept||"application/json";if(options.method!=="GET")options.headers["content-type"]="application/json";if(typeof options.json!=="boolean")options.body=JSON.stringify(options.json);else if(typeof options.body!=="string")options.body=JSON.stringify(options.body)}var serialize=function(obj){var str=[];for(var p in obj)if(obj.hasOwnProperty(p)){str.push(encodeURIComponent(p)+"="+encodeURIComponent(obj[p]))}return str.join("&")};if(options.qs){var qs=typeof options.qs=="string"?options.qs:serialize(options.qs);if(options.uri.indexOf("?")!==-1){options.uri=options.uri+"&"+qs}else{options.uri=options.uri+"?"+qs}}var multipart=function(obj){var result={};result.boundry="-------------------------------"+Math.floor(Math.random()*1e9);var lines=[];for(var p in obj){if(obj.hasOwnProperty(p)){lines.push("--"+result.boundry+"\n"+'Content-Disposition: form-data; name="'+p+'"'+"\n"+"\n"+obj[p]+"\n")}}lines.push("--"+result.boundry+"--");result.body=lines.join("");result.length=result.body.length;result.type="multipart/form-data; boundary="+result.boundry;return result};if(options.form){if(typeof options.form=="string")throw"form name unsupported";if(options.method==="POST"){var encoding=(options.encoding||"application/x-www-form-urlencoded").toLowerCase();options.headers["content-type"]=encoding;switch(encoding){case"application/x-www-form-urlencoded":options.body=serialize(options.form).replace(/%20/g,"+");break;case"multipart/form-data":var multi=multipart(options.form);options.body=multi.body;options.headers["content-type"]=multi.type;break;default:throw new Error("unsupported encoding:"+encoding)}}}options.onResponse=options.onResponse||noop;if(options.onResponse===true){options.onResponse=callback;options.callback=noop}if(!options.headers.authorization&&options.auth)options.headers.authorization="Basic "+b64_enc(options.auth.username+":"+options.auth.password);return run_xhr(options)}var req_seq=0;function run_xhr(options){var xhr=new XHR,timed_out=false,is_cors=is_crossDomain(options.uri),supports_cors="withCredentials"in xhr;req_seq+=1;xhr.seq_id=req_seq;xhr.id=req_seq+": "+options.method+" "+options.uri;xhr._id=xhr.id;if(is_cors&&!supports_cors){var cors_err=new Error("Browser does not support cross-origin request: "+options.uri);cors_err.cors="unsupported";return options.callback(cors_err,xhr)}xhr.timeoutTimer=setTimeout(too_late,options.timeout);function too_late(){timed_out=true;var er=new Error("ETIMEDOUT");er.code="ETIMEDOUT";er.duration=options.timeout;request.log.error("Timeout",{id:xhr._id,milliseconds:options.timeout});return options.callback(er,xhr)}var did={response:false,loading:false,end:false};xhr.onreadystatechange=on_state_change;xhr.open(options.method,options.uri,true);if(is_cors)xhr.withCredentials=!!options.withCredentials;xhr.send(options.body);return xhr;function on_state_change(event){if(timed_out)return request.log.debug("Ignoring timed out state change",{state:xhr.readyState,id:xhr.id});request.log.debug("State change",{state:xhr.readyState,id:xhr.id,timed_out:timed_out});if(xhr.readyState===XHR.OPENED){request.log.debug("Request started",{id:xhr.id});for(var key in options.headers)xhr.setRequestHeader(key,options.headers[key])}else if(xhr.readyState===XHR.HEADERS_RECEIVED)on_response();else if(xhr.readyState===XHR.LOADING){on_response();on_loading()}else if(xhr.readyState===XHR.DONE){on_response();on_loading();on_end()}}function on_response(){if(did.response)return;did.response=true;request.log.debug("Got response",{id:xhr.id,status:xhr.status});clearTimeout(xhr.timeoutTimer);xhr.statusCode=xhr.status;if(is_cors&&xhr.statusCode==0){var cors_err=new Error("CORS request rejected: "+options.uri);cors_err.cors="rejected";did.loading=true;did.end=true;return options.callback(cors_err,xhr)}options.onResponse(null,xhr)}function on_loading(){if(did.loading)return;did.loading=true;request.log.debug("Response body loading",{id:xhr.id})}function on_end(){if(did.end)return;did.end=true;request.log.debug("Request done",{id:xhr.id});xhr.body=xhr.responseText;if(options.json){try{xhr.body=JSON.parse(xhr.responseText)}catch(er){return options.callback(er,xhr)}}options.callback(null,xhr,xhr.body)}}request.withCredentials=false;request.DEFAULT_TIMEOUT=DEFAULT_TIMEOUT;request.defaults=function(options,requester){var def=function(method){var d=function(params,callback){if(typeof params==="string")params={uri:params};else{params=JSON.parse(JSON.stringify(params))}for(var i in options){if(params[i]===undefined)params[i]=options[i]}return method(params,callback)};return d};var de=def(request);de.get=def(request.get);de.post=def(request.post);de.put=def(request.put);de.head=def(request.head);return de};var shortcuts=["get","put","post","head"];shortcuts.forEach(function(shortcut){var method=shortcut.toUpperCase();var func=shortcut.toLowerCase();request[func]=function(opts){if(typeof opts==="string")opts={method:method,uri:opts};else{opts=JSON.parse(JSON.stringify(opts));opts.method=method}var args=[opts].concat(Array.prototype.slice.apply(arguments,[1]));
return request.apply(this,args)}});request.couch=function(options,callback){if(typeof options==="string")options={uri:options};options.json=true;if(options.body)options.json=options.body;delete options.body;callback=callback||noop;var xhr=request(options,couch_handler);return xhr;function couch_handler(er,resp,body){if(er)return callback(er,resp,body);if((resp.statusCode<200||resp.statusCode>299)&&body.error){er=new Error("CouchDB error: "+(body.error.reason||body.error.error));for(var key in body)er[key]=body[key];return callback(er,resp,body)}return callback(er,resp,body)}};function noop(){}function getLogger(){var logger={},levels=["trace","debug","info","warn","error"],level,i;for(i=0;i<levels.length;i++){level=levels[i];logger[level]=noop;if(typeof console!=="undefined"&&console&&console[level])logger[level]=formatted(console,level)}return logger}function formatted(obj,method){return formatted_logger;function formatted_logger(str,context){if(typeof context==="object")str+=" "+JSON.stringify(context);return obj[method].call(obj,str)}}function is_crossDomain(url){var rurl=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;var ajaxLocation;try{ajaxLocation=location.href}catch(e){ajaxLocation=document.createElement("a");ajaxLocation.href="";ajaxLocation=ajaxLocation.href}var ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[],parts=rurl.exec(url.toLowerCase());var result=!!(parts&&(parts[1]!=ajaxLocParts[1]||parts[2]!=ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?80:443))!=(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?80:443))));return result}function b64_enc(data){var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,enc="",tmp_arr=[];if(!data){return data}do{o1=data.charCodeAt(i++);o2=data.charCodeAt(i++);o3=data.charCodeAt(i++);bits=o1<<16|o2<<8|o3;h1=bits>>18&63;h2=bits>>12&63;h3=bits>>6&63;h4=bits&63;tmp_arr[ac++]=b64.charAt(h1)+b64.charAt(h2)+b64.charAt(h3)+b64.charAt(h4)}while(i<data.length);enc=tmp_arr.join("");switch(data.length%3){case 1:enc=enc.slice(0,-2)+"==";break;case 2:enc=enc.slice(0,-1)+"=";break}return enc}return request})},{}],7:[function(require,module,exports){},{}],8:[function(require,module,exports){function EventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||n<0||isNaN(n))throw TypeError("n must be a positive number");this._maxListeners=n;return this};EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(!this._events)this._events={};if(type==="error"){if(!this._events.error||isObject(this._events.error)&&!this._events.error.length){er=arguments[1];if(er instanceof Error){throw er}throw TypeError('Uncaught, unspecified "error" event.')}}handler=this._events[type];if(isUndefined(handler))return false;if(isFunction(handler)){switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];handler.apply(this,args)}}else if(isObject(handler)){len=arguments.length;args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];listeners=handler.slice();len=listeners.length;for(i=0;i<len;i++)listeners[i].apply(this,args)}return true};EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener);if(!this._events[type])this._events[type]=listener;else if(isObject(this._events[type]))this._events[type].push(listener);else this._events[type]=[this._events[type],listener];if(isObject(this._events[type])&&!this._events[type].warned){var m;if(!isUndefined(this._maxListeners)){m=this._maxListeners}else{m=EventEmitter.defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);if(typeof console.trace==="function"){console.trace()}}}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throw TypeError("listener must be a function");var fired=false;function g(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments)}}g.listener=listener;this.on(type,g);return this};EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){delete this._events[type];if(this._events.removeListener)this.emit("removeListener",type,listener)}else if(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}}if(position<0)return this;if(list.length===1){list.length=0;delete this._events[type]}else{list.splice(position,1)}if(this._events.removeListener)this.emit("removeListener",type,listener)}return this};EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[type])delete this._events[type];return this}if(arguments.length===0){for(key in this._events){if(key==="removeListener")continue;this.removeAllListeners(key)}this.removeAllListeners("removeListener");this._events={};return this}listeners=this._events[type];if(isFunction(listeners)){this.removeListener(type,listeners)}else{while(listeners.length)this.removeListener(type,listeners[listeners.length-1])}delete this._events[type];return this};EventEmitter.prototype.listeners=function(type){var ret;if(!this._events||!this._events[type])ret=[];else if(isFunction(this._events[type]))ret=[this._events[type]];else ret=this._events[type].slice();return ret};EventEmitter.listenerCount=function(emitter,type){var ret;if(!emitter._events||!emitter._events[type])ret=0;else if(isFunction(emitter._events[type]))ret=1;else ret=emitter._events[type].length;return ret};function isFunction(arg){return typeof arg==="function"}function isNumber(arg){return typeof arg==="number"}function isObject(arg){return typeof arg==="object"&&arg!==null}function isUndefined(arg){return arg===void 0}},{}],9:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],10:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:11}],11:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}if(canPost){var queue=[];window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],12:[function(require,module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==="object"&&typeof arg.copy==="function"&&typeof arg.fill==="function"&&typeof arg.readUInt8==="function"}},{}],13:[function(require,module,exports){(function(process,global){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(inspect(arguments[i]))}return objects.join(" ")}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==="%%")return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x=args[i];i<len;x=args[++i]){if(isNull(x)||!isObject(x)){str+=" "+x}else{str+=" "+inspect(x)}}return str};exports.deprecate=function(fn,msg){if(isUndefined(global.process)){return function(){return exports.deprecate(fn,msg).apply(this,arguments)}}if(process.noDeprecation===true){return fn}var warned=false;function deprecated(){if(!warned){if(process.throwDeprecation){throw new Error(msg)}else if(process.traceDeprecation){console.trace(msg)}else{console.error(msg)}warned=true}return fn.apply(this,arguments)}return deprecated};var debugs={};var debugEnviron;exports.debuglog=function(set){if(isUndefined(debugEnviron))debugEnviron=process.env.NODE_DEBUG||"";set=set.toUpperCase();if(!debugs[set]){if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else{debugs[set]=function(){}}}return debugs[set]};function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};if(arguments.length>=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts}else if(opts){exports._extend(ctx,opts)}if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m"}else{return str}}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes)}return ret}var primitive=formatPrimitive(ctx,value);if(primitive){return primitive}var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value)}if(isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0)){return formatError(value)}if(keys.length===0){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),"date")}if(isError(value)){return formatError(value)}}var base="",array=false,braces=["{","}"];if(isArray(value)){array=true;braces=["[","]"]}if(isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)){base=" "+RegExp.prototype.toString.call(value)}if(isDate(value)){base=" "+Date.prototype.toUTCString.call(value)}if(isError(value)){base=" "+formatError(value)}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}else{return ctx.stylize("[Object]","special")}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys)}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)})}ctx.seen.pop();return reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i<l;++i){if(hasOwnProperty(value,String(i))){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),true))}else{output.push("")}}keys.forEach(function(key){if(!key.match(/^\d+$/)){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,true))}});return output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]};if(desc.get){if(desc.set){str=ctx.stylize("[Getter/Setter]","special")}else{str=ctx.stylize("[Getter]","special")}}else{if(desc.set){str=ctx.stylize("[Setter]","special")}}if(!hasOwnProperty(visibleKeys,key)){name="["+key+"]"}if(!str){if(ctx.seen.indexOf(desc.value)<0){if(isNull(recurseTimes)){str=formatValue(ctx,desc.value,null)}else{str=formatValue(ctx,desc.value,recurseTimes-1)}if(str.indexOf("\n")>-1){if(array){str=str.split("\n").map(function(line){return" "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return" "+line}).join("\n")}}}else{str=ctx.stylize("[Circular]","special")}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,"string")}}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(length>60){return braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]}return braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=require("./support/isBuffer");function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))};exports.inherits=require("inherits");exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":12,_process:11,inherits:9}],14:[function(require,module,exports){module.exports=function(css,customDocument){var doc=customDocument||document;if(doc.createStyleSheet){var sheet=doc.createStyleSheet();sheet.cssText=css;return sheet.ownerNode}else{var head=doc.getElementsByTagName("head")[0],style=doc.createElement("style");style.type="text/css";if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(doc.createTextNode(css))}head.appendChild(style);return style}};module.exports.byUrl=function(url){if(document.createStyleSheet){return document.createStyleSheet(url).ownerNode}else{var head=document.getElementsByTagName("head")[0],link=document.createElement("link");link.rel="stylesheet";link.href=url;head.appendChild(link);return link}}},{}],15:[function(require,module,exports){(function(global,factory){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document")}return factory(w)}}else{factory(global)}})(typeof window!=="undefined"?window:this,function(window,noGlobal){var arr=[];var slice=arr.slice;var concat=arr.concat;var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var support={};var document=window.document,version="2.1.4",jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return letter.toUpperCase()};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,selector:"",length:0,toArray:function(){return slice.call(this)},get:function(num){return num!=null?num<0?this[num+this.length]:this[num]:slice.call(this)},pushStack:function(elems){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;ret.context=this.context;return ret},each:function(callback,args){return jQuery.each(this,callback,args)},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={}}if(i===length){target=this;i--}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];copy=options[name];if(target===copy){continue}if(deep&©&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[]}else{clone=src&&jQuery.isPlainObject(src)?src:{}}target[name]=jQuery.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}}return target};jQuery.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:true,error:function(msg){throw new Error(msg)},noop:function(){},isFunction:function(obj){return jQuery.type(obj)==="function"},isArray:Array.isArray,isWindow:function(obj){return obj!=null&&obj===obj.window},isNumeric:function(obj){return!jQuery.isArray(obj)&&obj-parseFloat(obj)+1>=0},isPlainObject:function(obj){if(jQuery.type(obj)!=="object"||obj.nodeType||jQuery.isWindow(obj)){return false}if(obj.constructor&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return false}return true},isEmptyObject:function(obj){var name;for(name in obj){return false}return true},type:function(obj){if(obj==null){return obj+""}return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj},globalEval:function(code){var script,indirect=eval;code=jQuery.trim(code);if(code){if(code.indexOf("use strict")===1){script=document.createElement("script");script.text=code;document.head.appendChild(script).parentNode.removeChild(script)}else{indirect(code)}}},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()},each:function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===false){break}}}else{for(i in obj){value=callback.apply(obj[i],args);if(value===false){break}}}}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}else{for(i in obj){value=callback.call(obj[i],i,obj[i]);if(value===false){break}}}}return obj},trim:function(text){return text==null?"":(text+"").replace(rtrim,"")},makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArraylike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr)}else{push.call(ret,arr)}}return ret},inArray:function(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i)},merge:function(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j]}first.length=i;return first},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i])}}return matches},map:function(elems,callback,arg){var value,i=0,length=elems.length,isArray=isArraylike(elems),ret=[];if(isArray){for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}}return concat.apply([],ret)},guid:1,proxy:function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp}if(!jQuery.isFunction(fn)){return undefined}args=slice.call(arguments,2);proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy},now:Date.now,support:support});jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()});function isArraylike(obj){var length="length"in obj&&obj.length,type=jQuery.type(obj);if(type==="function"||jQuery.isWindow(obj)){return false}if(obj.nodeType===1&&length){return true}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj}var Sizzle=function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),sortOrder=function(a,b){if(a===b){hasDuplicate=true}return 0},MAX_NEGATIVE=1<<31,hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){var i=0,len=list.length;for(;i<len;i++){if(list[i]===elem){return i}}return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),attributes="\\["+whitespace+"*("+characterEncoding+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+".*"+")\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rattributeQuotes=new RegExp("="+whitespace+"*([^\\]'\"]*?)"+whitespace+"*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+characterEncoding+")"),CLASS:new RegExp("^\\.("+characterEncoding+")"),TAG:new RegExp("^("+characterEncoding.replace("w","w*")+")"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,rescape=/'|\\/g,runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function(_,escaped,escapedWhitespace){var high="0x"+escaped-65536;return high!==high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,high&1023|56320)},unloadHandler=function(){setDocument()};try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?function(target,els){push_native.apply(target,slice.call(els))}:function(target,els){var j=target.length,i=0;while(target[j++]=els[i++]){}target.length=j-1}}}function Sizzle(selector,context,results,seed){var match,elem,m,nodeType,i,groups,old,nid,newContext,newSelector;if((context?context.ownerDocument||context:preferredDoc)!==document){setDocument(context)}context=context||document;results=results||[];nodeType=context.nodeType;if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results}if(!seed&&documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if(m=match[1]){if(nodeType===9){elem=context.getElementById(m);if(elem&&elem.parentNode){if(elem.id===m){results.push(elem);return results}}else{return results}}else{if(context.ownerDocument&&(elem=context.ownerDocument.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results}}}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results}else if((m=match[3])&&support.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results}}if(support.qsa&&(!rbuggyQSA||!rbuggyQSA.test(selector))){
nid=old=expando;newContext=context;newSelector=nodeType!==1&&selector;if(nodeType===1&&context.nodeName.toLowerCase()!=="object"){groups=tokenize(selector);if(old=context.getAttribute("id")){nid=old.replace(rescape,"\\$&")}else{context.setAttribute("id",nid)}nid="[id='"+nid+"'] ";i=groups.length;while(i--){groups[i]=nid+toSelector(groups[i])}newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;newSelector=groups.join(",")}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results}catch(qsaError){}finally{if(!old){context.removeAttribute("id")}}}}}return select(selector.replace(rtrim,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift()]}return cache[key+" "]=value}return cache}function markFunction(fn){fn[expando]=true;return fn}function assert(fn){var div=document.createElement("div");try{return!!fn(div)}catch(e){return false}finally{if(div.parentNode){div.parentNode.removeChild(div)}div=null}}function addHandle(attrs,handler){var arr=attrs.split("|"),i=attrs.length;while(i--){Expr.attrHandle[arr[i]]=handler}}function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||MAX_NEGATIVE)-(~a.sourceIndex||MAX_NEGATIVE);if(diff){return diff}if(cur){while(cur=cur.nextSibling){if(cur===b){return-1}}}return a?1:-1}function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type}}function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j])}}})})}function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context}support=Sizzle.support={};isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};setDocument=Sizzle.setDocument=function(node){var hasCompare,parent,doc=node?node.ownerDocument||node:preferredDoc;if(doc===document||doc.nodeType!==9||!doc.documentElement){return document}document=doc;docElem=doc.documentElement;parent=doc.defaultView;if(parent&&parent!==parent.top){if(parent.addEventListener){parent.addEventListener("unload",unloadHandler,false)}else if(parent.attachEvent){parent.attachEvent("onunload",unloadHandler)}}documentIsHTML=!isXML(doc);support.attributes=assert(function(div){div.className="i";return!div.getAttribute("className")});support.getElementsByTagName=assert(function(div){div.appendChild(doc.createComment(""));return!div.getElementsByTagName("*").length});support.getElementsByClassName=rnative.test(doc.getElementsByClassName);support.getById=assert(function(div){docElem.appendChild(div).id=expando;return!doc.getElementsByName||!doc.getElementsByName(expando).length});if(support.getById){Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var m=context.getElementById(id);return m&&m.parentNode?[m]:[]}};Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}}}else{delete Expr.find["ID"];Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId}}}Expr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag)}else if(support.qsa){return context.querySelectorAll(tag)}}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if(tag==="*"){while(elem=results[i++]){if(elem.nodeType===1){tmp.push(elem)}}return tmp}return results};Expr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(documentIsHTML){return context.getElementsByClassName(className)}};rbuggyMatches=[];rbuggyQSA=[];if(support.qsa=rnative.test(doc.querySelectorAll)){assert(function(div){docElem.appendChild(div).innerHTML="<a id='"+expando+"'></a>"+"<select id='"+expando+"-\f]' msallowcapture=''>"+"<option selected=''></option></select>";if(div.querySelectorAll("[msallowcapture^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:''|\"\")")}if(!div.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")")}if(!div.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=")}if(!div.querySelectorAll(":checked").length){rbuggyQSA.push(":checked")}if(!div.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]")}});assert(function(div){var input=doc.createElement("input");input.setAttribute("type","hidden");div.appendChild(input).setAttribute("name","D");if(div.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=")}if(!div.querySelectorAll(":enabled").length){rbuggyQSA.push(":enabled",":disabled")}div.querySelectorAll("*,:x");rbuggyQSA.push(",.*:")})}if(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)){assert(function(div){support.disconnectedMatch=matches.call(div,"div");matches.call(div,"[s!='']:x");rbuggyMatches.push("!=",pseudos)})}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));hasCompare=rnative.test(docElem.compareDocumentPosition);contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true}}}return false};sortOrder=hasCompare?function(a,b){if(a===b){hasDuplicate=true;return 0}var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare}compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){if(a===doc||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)){return-1}if(b===doc||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)){return 1}return sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0}return compare&4?-1:1}:function(a,b){if(a===b){hasDuplicate=true;return 0}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup){return a===doc?-1:b===doc?1:aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0}else if(aup===bup){return siblingCheck(a,b)}cur=a;while(cur=cur.parentNode){ap.unshift(cur)}cur=b;while(cur=cur.parentNode){bp.unshift(cur)}while(ap[i]===bp[i]){i++}return i?siblingCheck(ap[i],bp[i]):ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0};return doc};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)};Sizzle.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document){setDocument(elem)}expr=expr.replace(rattributeQuotes,"='$1']");if(support.matchesSelector&&documentIsHTML&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret}}catch(e){}}return Sizzle(expr,document,null,[elem]).length>0};Sizzle.contains=function(context,elem){if((context.ownerDocument||context)!==document){setDocument(context)}return contains(context,elem)};Sizzle.attr=function(elem,name){if((elem.ownerDocument||elem)!==document){setDocument(elem)}var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)};Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i)}}while(j--){results.splice(duplicates[j],1)}}sortInput=null;return results};getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){while(node=elem[i++]){ret+=getText(node)}}else if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem)}}}else if(nodeType===3||nodeType===4){return elem.nodeValue}return ret};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" "}return match.slice(0,4)},CHILD:function(match){match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){if(!match[3]){Sizzle.error(match[0])}match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd")}else if(match[3]){Sizzle.error(match[0])}return match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null}if(match[3]){match[2]=match[4]||match[5]||""}else if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess)}return match.slice(0,3)}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!="}if(!operator){return true}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false}},CHILD:function(type,what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return!!elem.parentNode}:function(elem,context,xml){var cache,outerCache,node,diff,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType;if(parent){if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false}}start=dir=type==="only"&&!start&&"nextSibling"}return true}start=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){outerCache=parent[expando]||(parent[expando]={});cache=outerCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=cache[0]===dirruns&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if(node.nodeType===1&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break}}}else if(useCache&&(cache=(elem[expando]||(elem[expando]={}))[type])&&cache[0]===dirruns){diff=cache[1]}else{while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){if(useCache){(node[expando]||(node[expando]={}))[type]=[dirruns,diff]}if(node===elem){break}}}}diff-=last;return diff===first||diff%first===0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument)}if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i])}}):function(elem){return fn(elem,0,args)}}return fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem)}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return!results.pop()}}),has:markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0}}),contains:markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1}}),lang:markFunction(function(lang){if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang)}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0}}while((elem=elem.parentNode)&&elem.nodeType===1);return false}}),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:function(elem){return elem.disabled===false},disabled:function(elem){return elem.disabled===true},checked:function(elem){var nodeName=elem.nodeName.toLowerCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem.selected},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex}return elem.selected===true},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false}}return true},parent:function(elem){return!Expr.pseudos["empty"](elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button"},text:function(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text")},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes}),lt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;--i>=0;){matchIndexes.push(i)}return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i)}return matchIndexes})}};Expr.pseudos["nth"]=Expr.pseudos["eq"];for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i)}for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i)}function setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters;tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0)}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar}groups.push(tokens=[])}matched=false;if(match=rcombinators.exec(soFar)){matched=match.shift();tokens.push({value:matched,type:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length)}for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length)}}if(!matched){break}}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0)};function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value}return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&dir==="parentNode",doneName=done++;return combinator.first?function(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml)}}}:function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];if(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});if((oldCache=outerCache[dir])&&oldCache[0]===dirruns&&oldCache[1]===doneName){return newCache[2]=oldCache[2]}else{outerCache[dir]=newCache;if(newCache[2]=matcher(elem,context,xml)){return true}}}}}}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false}}return true}:matchers[0]}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results)}return results}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i)}}}}return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter)}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector)}return markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher){matcher(matcherIn,matcherOut,context,xml)}if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem)}}}if(seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){temp.push(matcherIn[i]=elem)}}postFinder(null,matcherOut=[],temp,xml)}i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem)}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml)}else{push.apply(results,matcherOut)}}})}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1},implicitRelative,true),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)]}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);if(matcher[expando]){j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}}return elementMatcher(matchers)}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find["TAG"]("*",outermost),dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||.1,len=elems.length;if(outermost){outermostContext=context!==document&&context}for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;while(matcher=elementMatchers[j++]){if(matcher(elem,context,xml)){results.push(elem);break}}if(outermost){dirruns=dirrunsUnique}}if(bySet){if(elem=!matcher&&elem){matchedCount--}if(seed){unmatched.push(elem)}}}matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml)}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results)}}}setMatched=condense(setMatched)}push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){Sizzle.uniqueSort(results)}}if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup}return unmatched};return bySet?markFunction(superMatcher):superMatcher}compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){if(!match){match=tokenize(selector)}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached)}else{elementMatchers.push(cached)}}cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));cached.selector=selector}return cached};select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&support.getById&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results}else if(compiled){context=context.parentNode}selector=selector.slice(tokens.shift().value.length)}i=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[type=token.type]){break}if(find=Expr.find[type]){if(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results}break}}}}(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,rsibling.test(selector)&&testContext(context.parentNode)||context);return results};support.sortStable=expando.split("").sort(sortOrder).join("")===expando;support.detectDuplicates=!!hasDuplicate;setDocument();support.sortDetached=assert(function(div1){return div1.compareDocumentPosition(document.createElement("div"))&1});if(!assert(function(div){div.innerHTML="<a href='#'></a>";return div.firstChild.getAttribute("href")==="#"})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2)}})}if(!support.attributes||!assert(function(div){div.innerHTML="<input/>";div.firstChild.setAttribute("value","");return div.firstChild.getAttribute("value")===""})){addHandle("value",function(elem,name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue}})}if(!assert(function(div){return div.getAttribute("disabled")==null})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null}})}return Sizzle}(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;var rneedsContext=jQuery.expr.match.needsContext;var rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var risSimple=/^.[^:#\[\.,]*$/;function winnow(elements,qualifier,not){if(jQuery.isFunction(qualifier)){return jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not})}if(qualifier.nodeType){return jQuery.grep(elements,function(elem){return elem===qualifier!==not})}if(typeof qualifier==="string"){if(risSimple.test(qualifier)){return jQuery.filter(qualifier,elements,not)}qualifier=jQuery.filter(qualifier,elements)}return jQuery.grep(elements,function(elem){return indexOf.call(qualifier,elem)>=0!==not})}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")"}return elems.length===1&&elem.nodeType===1?jQuery.find.matchesSelector(elem,expr)?[elem]:[]:jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return elem.nodeType===1}))};jQuery.fn.extend({find:function(selector){var i,len=this.length,ret=[],self=this;if(typeof selector!=="string"){return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true}}}))}for(i=0;i<len;i++){jQuery.find(selector,self[i],ret)}ret=this.pushStack(len>1?jQuery.unique(ret):ret);ret.selector=this.selector?this.selector+" "+selector:selector;return ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],false))},not:function(selector){return this.pushStack(winnow(this,selector||[],true))},is:function(selector){return!!winnow(this,typeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(selector,context){var match,elem;if(!selector){return this}if(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){match=[null,selector,null]}else{match=rquickExpr.exec(selector)}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){if(jQuery.isFunction(this[match])){this[match](context[match])}else{this.attr(match,context[match])}}}return this}else{elem=document.getElementById(match[2]);if(elem&&elem.parentNode){this.length=1;this[0]=elem}this.context=document;this.selector=selector;return this}}else if(!context||context.jquery){return(context||rootjQuery).find(selector)}else{return this.constructor(context).find(selector)}}else if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this}else if(jQuery.isFunction(selector)){return typeof rootjQuery.ready!=="undefined"?rootjQuery.ready(selector):selector(jQuery)}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context}return jQuery.makeArray(selector,this)};init.prototype=jQuery.fn;rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.extend({dir:function(elem,dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&jQuery(elem).is(until)){break}matched.push(elem)}}return matched},sibling:function(n,elem){var matched=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n)}}return matched}});jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=targets.length;return this.filter(function(){var i=0;for(;i<l;i++){if(jQuery.contains(this,targets[i])){return true}}})},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],pos=rneedsContext.test(selectors)||typeof selectors!=="string"?jQuery(selectors,context||this.context):0;for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){if(cur.nodeType<11&&(pos?pos.index(cur)>-1:cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}}}return this.pushStack(matched.length>1?jQuery.unique(matched):matched)},index:function(elem){if(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof elem==="string"){return indexOf.call(jQuery(elem),this[0])}return indexOf.call(this,elem.jquery?elem[0]:elem)},add:function(selector,context){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(selector,context))))},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}return cur}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return jQuery.dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return elem.contentDocument||jQuery.merge([],elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until}if(selector&&typeof selector==="string"){matched=jQuery.filter(selector,matched)}if(this.length>1){if(!guaranteedUnique[name]){
jQuery.unique(matched)}if(rparentsprev.test(name)){matched.reverse()}}return this.pushStack(matched)}});var rnotwhite=/\S+/g;var optionsCache={};function createOptions(options){var object=optionsCache[options]={};jQuery.each(options.match(rnotwhite)||[],function(_,flag){object[flag]=true});return object}jQuery.Callbacks=function(options){options=typeof options==="string"?optionsCache[options]||createOptions(options):jQuery.extend({},options);var memory,fired,firing,firingStart,firingLength,firingIndex,list=[],stack=!options.once&&[],fire=function(data){memory=options.memory&&data;fired=true;firingIndex=firingStart||0;firingStart=0;firingLength=list.length;firing=true;for(;list&&firingIndex<firingLength;firingIndex++){if(list[firingIndex].apply(data[0],data[1])===false&&options.stopOnFalse){memory=false;break}}firing=false;if(list){if(stack){if(stack.length){fire(stack.shift())}}else if(memory){list=[]}else{self.disable()}}},self={add:function(){if(list){var start=list.length;(function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);if(type==="function"){if(!options.unique||!self.has(arg)){list.push(arg)}}else if(arg&&arg.length&&type!=="string"){add(arg)}})})(arguments);if(firing){firingLength=list.length}else if(memory){firingStart=start;fire(memory)}}return this},remove:function(){if(list){jQuery.each(arguments,function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);if(firing){if(index<=firingLength){firingLength--}if(index<=firingIndex){firingIndex--}}}})}return this},has:function(fn){return fn?jQuery.inArray(fn,list)>-1:!!(list&&list.length)},empty:function(){list=[];firingLength=0;return this},disable:function(){list=stack=memory=undefined;return this},disabled:function(){return!list},lock:function(){stack=undefined;if(!memory){self.disable()}return this},locked:function(){return!stack},fireWith:function(context,args){if(list&&(!fired||stack)){args=args||[];args=[context,args.slice?args.slice():args];if(firing){stack.push(args)}else{fire(args)}}return this},fire:function(){self.fireWith(this,arguments);return this},fired:function(){return!!fired}};return self};jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state},always:function(){deferred.done(arguments).fail(arguments);return this},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify)}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments)}})});fns=null}).promise()},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise}},deferred={};promise.pipe=promise.then;jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add;if(stateString){list.add(function(){state=stateString},tuples[i^1][2].disable,tuples[2][2].lock)}deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?promise:this,arguments);return this};deferred[tuple[0]+"With"]=list.fireWith});promise.promise(deferred);if(func){func.call(deferred,deferred)}return deferred},when:function(subordinate){var i=0,resolveValues=slice.call(arguments),length=resolveValues.length,remaining=length!==1||subordinate&&jQuery.isFunction(subordinate.promise)?length:0,deferred=remaining===1?subordinate:jQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this;values[i]=arguments.length>1?slice.call(arguments):value;if(values===progressValues){deferred.notifyWith(contexts,values)}else if(!--remaining){deferred.resolveWith(contexts,values)}}},progressValues,progressContexts,resolveContexts;if(length>1){progressValues=new Array(length);progressContexts=new Array(length);resolveContexts=new Array(length);for(;i<length;i++){if(resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)){resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues))}else{--remaining}}}if(!remaining){deferred.resolveWith(resolveContexts,resolveValues)}return deferred.promise()}});var readyList;jQuery.fn.ready=function(fn){jQuery.ready.promise().done(fn);return this};jQuery.extend({isReady:false,readyWait:1,holdReady:function(hold){if(hold){jQuery.readyWait++}else{jQuery.ready(true)}},ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return}jQuery.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return}readyList.resolveWith(document,[jQuery]);if(jQuery.fn.triggerHandler){jQuery(document).triggerHandler("ready");jQuery(document).off("ready")}}});function completed(){document.removeEventListener("DOMContentLoaded",completed,false);window.removeEventListener("load",completed,false);jQuery.ready()}jQuery.ready.promise=function(obj){if(!readyList){readyList=jQuery.Deferred();if(document.readyState==="complete"){setTimeout(jQuery.ready)}else{document.addEventListener("DOMContentLoaded",completed,false);window.addEventListener("load",completed,false)}}return readyList.promise(obj)};jQuery.ready.promise();var access=jQuery.access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(jQuery.type(key)==="object"){chainable=true;for(i in key){jQuery.access(elems,fn,i,key[i],true,emptyGet,raw)}}else if(value!==undefined){chainable=true;if(!jQuery.isFunction(value)){raw=true}if(bulk){if(raw){fn.call(elems,value);fn=null}else{bulk=fn;fn=function(elem,key,value){return bulk.call(jQuery(elem),value)}}}if(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)))}}}return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet};jQuery.acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!+owner.nodeType};function Data(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=jQuery.expando+Data.uid++}Data.uid=1;Data.accepts=jQuery.acceptData;Data.prototype={key:function(owner){if(!Data.accepts(owner)){return 0}var descriptor={},unlock=owner[this.expando];if(!unlock){unlock=Data.uid++;try{descriptor[this.expando]={value:unlock};Object.defineProperties(owner,descriptor)}catch(e){descriptor[this.expando]=unlock;jQuery.extend(owner,descriptor)}}if(!this.cache[unlock]){this.cache[unlock]={}}return unlock},set:function(owner,data,value){var prop,unlock=this.key(owner),cache=this.cache[unlock];if(typeof data==="string"){cache[data]=value}else{if(jQuery.isEmptyObject(cache)){jQuery.extend(this.cache[unlock],data)}else{for(prop in data){cache[prop]=data[prop]}}}return cache},get:function(owner,key){var cache=this.cache[this.key(owner)];return key===undefined?cache:cache[key]},access:function(owner,key,value){var stored;if(key===undefined||key&&typeof key==="string"&&value===undefined){stored=this.get(owner,key);return stored!==undefined?stored:this.get(owner,jQuery.camelCase(key))}this.set(owner,key,value);return value!==undefined?value:key},remove:function(owner,key){var i,name,camel,unlock=this.key(owner),cache=this.cache[unlock];if(key===undefined){this.cache[unlock]={}}else{if(jQuery.isArray(key)){name=key.concat(key.map(jQuery.camelCase))}else{camel=jQuery.camelCase(key);if(key in cache){name=[key,camel]}else{name=camel;name=name in cache?[name]:name.match(rnotwhite)||[]}}i=name.length;while(i--){delete cache[name[i]]}}},hasData:function(owner){return!jQuery.isEmptyObject(this.cache[owner[this.expando]]||{})},discard:function(owner){if(owner[this.expando]){delete this.cache[owner[this.expando]]}}};var data_priv=new Data;var data_user=new Data;var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;function dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=data==="true"?true:data==="false"?false:data==="null"?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data}catch(e){}data_user.set(elem,key,data)}else{data=undefined}}return data}jQuery.extend({hasData:function(elem){return data_user.hasData(elem)||data_priv.hasData(elem)},data:function(elem,name,data){return data_user.access(elem,name,data)},removeData:function(elem,name){data_user.remove(elem,name)},_data:function(elem,name,data){return data_priv.access(elem,name,data)},_removeData:function(elem,name){data_priv.remove(elem,name)}});jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=data_user.get(elem);if(elem.nodeType===1&&!data_priv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=jQuery.camelCase(name.slice(5));dataAttr(elem,name,data[name])}}}data_priv.set(elem,"hasDataAttrs",true)}}return data}if(typeof key==="object"){return this.each(function(){data_user.set(this,key)})}return access(this,function(value){var data,camelKey=jQuery.camelCase(key);if(elem&&value===undefined){data=data_user.get(elem,key);if(data!==undefined){return data}data=data_user.get(elem,camelKey);if(data!==undefined){return data}data=dataAttr(elem,camelKey,undefined);if(data!==undefined){return data}return}this.each(function(){var data=data_user.get(this,camelKey);data_user.set(this,camelKey,value);if(key.indexOf("-")!==-1&&data!==undefined){data_user.set(this,key,value)}})},null,value,arguments.length>1,null,true)},removeData:function(key){return this.each(function(){data_user.remove(this,key)})}});jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=data_priv.get(elem,type);if(data){if(!queue||jQuery.isArray(data)){queue=data_priv.access(elem,type,jQuery.makeArray(data))}else{queue.push(data)}}return queue||[]}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type)};if(fn==="inprogress"){fn=queue.shift();startLength--}if(fn){if(type==="fx"){queue.unshift("inprogress")}delete hooks.stop;fn.call(elem,next,hooks)}if(!startLength&&hooks){hooks.empty.fire()}},_queueHooks:function(elem,type){var key=type+"queueHooks";return data_priv.get(elem,key)||data_priv.access(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){data_priv.remove(elem,[type+"queue",key])})})}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--}if(arguments.length<setter){return jQuery.queue(this[0],type)}return data===undefined?this:this.each(function(){var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)}})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function(){if(!--count){defer.resolveWith(elements,[elements])}};if(typeof type!=="string"){obj=type;type=undefined}type=type||"fx";while(i--){tmp=data_priv.get(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve)}}resolve();return defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var cssExpand=["Top","Right","Bottom","Left"];var isHidden=function(elem,el){elem=el||elem;return jQuery.css(elem,"display")==="none"||!jQuery.contains(elem.ownerDocument,elem)};var rcheckableType=/^(?:checkbox|radio)$/i;(function(){var fragment=document.createDocumentFragment(),div=fragment.appendChild(document.createElement("div")),input=document.createElement("input");input.setAttribute("type","radio");input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue})();var strundefined=typeof undefined;support.focusinBubbles="onfocusin"in window;var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;function returnTrue(){return true}function returnFalse(){return false}function safeActiveElement(){try{return document.activeElement}catch(err){}}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=data_priv.get(elem);if(!elemData){return}if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector}if(!handler.guid){handler.guid=jQuery.guid++}if(!(events=elemData.events)){events=elemData.events={}}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof jQuery!==strundefined&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined}}types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){continue}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid}}if(selector){handlers.splice(handlers.delegateCount++,0,handleObj)}else{handlers.push(handleObj)}jQuery.event.global[type]=true}},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=data_priv.hasData(elem)&&data_priv.get(elem);if(!elemData||!(events=elemData.events)){return}types=(types||"").match(rnotwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true)}continue}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--}if(special.remove){special.remove.call(elem,handleObj)}}}if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle)}delete events[type]}}if(jQuery.isEmptyObject(events)){delete elemData.handle;data_priv.remove(elem,"events")}},trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=tmp=elem=elem||document;if(elem.nodeType===3||elem.nodeType===8){return}if(rfocusMorph.test(type+jQuery.event.triggered)){return}if(type.indexOf(".")>=0){namespaces=type.split(".");type=namespaces.shift();namespaces.sort()}ontype=type.indexOf(":")<0&&"on"+type;event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event==="object"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;event.result=undefined;if(!event.target){event.target=elem}data=data==null?[event]:jQuery.makeArray(data,[event]);special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return}if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode}for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur}if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window)}}i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){event.type=i>1?bubbleType:special.bindType||type;handle=(data_priv.get(cur,"events")||{})[event.type]&&data_priv.get(cur,"handle");if(handle){handle.apply(cur,data)}handle=ontype&&cur[ontype];if(handle&&handle.apply&&jQuery.acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault()}}}event.type=type;if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&jQuery.acceptData(elem)){if(ontype&&jQuery.isFunction(elem[type])&&!jQuery.isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null}jQuery.event.triggered=type;elem[type]();jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp}}}}return event.result},dispatch:function(event){event=jQuery.event.fix(event);var i,j,ret,matched,handleObj,handlerQueue=[],args=slice.call(arguments),handlers=(data_priv.get(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};args[0]=event;event.delegateTarget=this;if(special.preDispatch&&special.preDispatch.call(this,event)===false){return}handlerQueue=jQuery.event.handlers.call(this,event,handlers);i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){if(!event.namespace_re||event.namespace_re.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation()}}}}}if(special.postDispatch){special.postDispatch.call(this,event)}return event.result},handlers:function(event,handlers){var i,matches,sel,handleObj,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&(!event.button||event.type!=="click")){for(;cur!==this;cur=cur.parentNode||this){if(cur.disabled!==true||event.type!=="click"){matches=[];for(i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector+" ";if(matches[sel]===undefined){matches[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>=0:jQuery.find(sel,this,null,[cur]).length}if(matches[sel]){matches.push(handleObj)}}if(matches.length){handlerQueue.push({elem:cur,handlers:matches})}}}}if(delegateCount<handlers.length){handlerQueue.push({elem:this,handlers:handlers.slice(delegateCount)})}return handlerQueue},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(event,original){if(event.which==null){event.which=original.charCode!=null?original.charCode:original.keyCode}return event}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var eventDoc,doc,body,button=original.button;if(event.pageX==null&&original.clientX!=null){eventDoc=event.target.ownerDocument||document;doc=eventDoc.documentElement;body=eventDoc.body;event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)}if(!event.which&&button!==undefined){event.which=button&1?1:button&2?3:button&4?2:0}return event}},fix:function(event){if(event[jQuery.expando]){return event}var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];if(!fixHook){this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{}}copy=fixHook.props?this.props.concat(fixHook.props):this.props;event=new jQuery.Event(originalEvent);i=copy.length;while(i--){prop=copy[i];event[prop]=originalEvent[prop]}if(!event.target){event.target=document}if(event.target.nodeType===3){event.target=event.target.parentNode}return fixHook.filter?fixHook.filter(event,originalEvent):event},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus){this.focus();return false}},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur){this.blur();return false}},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&jQuery.nodeName(this,"input")){this.click();return false}},_default:function(event){return jQuery.nodeName(event.target,"a")}},beforeunload:{postDispatch:function(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result}}}},simulate:function(type,elem,event,bubble){var e=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:true,originalEvent:{}});if(bubble){jQuery.event.trigger(e,null,elem)}else{jQuery.event.dispatch.call(elem,e)}if(e.isDefaultPrevented()){event.preventDefault()}}};jQuery.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle,false)}};jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props)}if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===false?returnTrue:returnFalse}else{this.type=src}if(props){jQuery.extend(this,props)}this.timeStamp=src&&src.timeStamp||jQuery.now();this[jQuery.expando]=true};jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&e.preventDefault){e.preventDefault()}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&e.stopPropagation){e.stopPropagation()}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&e.stopImmediatePropagation){e.stopImmediatePropagation()}this.stopPropagation()}};jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||related!==target&&!jQuery.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix}return ret}}});if(!support.focusinBubbles){jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),true)};jQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this,attaches=data_priv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true)}data_priv.access(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this,attaches=data_priv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);data_priv.remove(doc,fix)}else{data_priv.access(doc,fix,attaches)}}}})}jQuery.fn.extend({on:function(types,selector,data,fn,one){var origFn,type;if(typeof types==="object"){if(typeof selector!=="string"){data=data||selector;selector=undefined}for(type in types){this.on(type,selector,data,types[type],one)}return this}if(data==null&&fn==null){fn=selector;data=selector=undefined}else if(fn==null){if(typeof selector==="string"){fn=data;data=undefined}else{fn=data;data=selector;selector=undefined}}if(fn===false){fn=returnFalse}else if(!fn){return this}if(one===1){origFn=fn;fn=function(event){jQuery().off(event);return origFn.apply(this,arguments)};fn.guid=origFn.guid||(origFn.guid=jQuery.guid++)}return this.each(function(){jQuery.event.add(this,types,fn,data,selector)})},one:function(types,selector,data,fn){return this.on(types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this}if(typeof types==="object"){for(type in types){this.off(type,selector,types[type])}return this}if(selector===false||typeof selector==="function"){fn=selector;selector=undefined}if(fn===false){fn=returnFalse}return this.each(function(){jQuery.event.remove(this,types,fn,selector)})},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true)}}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;function manipulationTarget(elem,content){return jQuery.nodeName(elem,"table")&&jQuery.nodeName(content.nodeType!==11?content:content.firstChild,"tr")?elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody")):elem}function disableScript(elem){elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;return elem}function restoreScript(elem){var match=rscriptTypeMasked.exec(elem.type);if(match){elem.type=match[1]}else{elem.removeAttribute("type")}return elem}function setGlobalEval(elems,refElements){var i=0,l=elems.length;for(;i<l;i++){data_priv.set(elems[i],"globalEval",!refElements||data_priv.get(refElements[i],"globalEval"))}}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,pdataCur,udataOld,udataCur,events;if(dest.nodeType!==1){return}if(data_priv.hasData(src)){pdataOld=data_priv.access(src);pdataCur=data_priv.set(dest,pdataOld);events=pdataOld.events;if(events){delete pdataCur.handle;pdataCur.events={};for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i])}}}}if(data_user.hasData(src)){udataOld=data_user.access(src);udataCur=jQuery.extend({},udataOld);data_user.set(dest,udataCur)}}function getAll(context,tag){var ret=context.getElementsByTagName?context.getElementsByTagName(tag||"*"):context.querySelectorAll?context.querySelectorAll(tag||"*"):[];return tag===undefined||tag&&jQuery.nodeName(context,tag)?jQuery.merge([context],ret):ret}function fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();if(nodeName==="input"&&rcheckableType.test(src.type)){dest.checked=src.checked}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue}}jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=jQuery.contains(elem.ownerDocument,elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){destElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i])}}if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i])}}else{cloneCopyEvent(elem,clone)}}destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"))}return clone},buildFragment:function(elems,context,scripts,selection){var elem,tmp,tag,wrap,contains,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;for(;i<l;i++){elem=elems[i];if(elem||elem===0){if(jQuery.type(elem)==="object"){jQuery.merge(nodes,elem.nodeType?[elem]:elem)}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem))}else{tmp=tmp||fragment.appendChild(context.createElement("div"));tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+elem.replace(rxhtmlTag,"<$1></$2>")+wrap[2];j=wrap[0];while(j--){tmp=tmp.lastChild}jQuery.merge(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent=""}}}fragment.textContent="";i=0;while(elem=nodes[i++]){if(selection&&jQuery.inArray(elem,selection)!==-1){continue}contains=jQuery.contains(elem.ownerDocument,elem);tmp=getAll(fragment.appendChild(elem),"script");if(contains){setGlobalEval(tmp)}if(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem)}}}}return fragment},cleanData:function(elems){var data,elem,type,key,special=jQuery.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(jQuery.acceptData(elem)){key=elem[data_priv.expando];if(key&&(data=data_priv.cache[key])){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type)}else{jQuery.removeEvent(elem,type,data.handle)}}}if(data_priv.cache[key]){delete data_priv.cache[key]}}}delete data_user.cache[elem[data_user.expando]]}}});jQuery.fn.extend({text:function(value){return access(this,function(value){return value===undefined?jQuery.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value}})},null,value,arguments.length)},append:function(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}})},before:function(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this)}})},after:function(){return this.domManip(arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling)}})},remove:function(selector,keepData){var elem,elems=selector?jQuery.filter(selector,this):this,i=0;for(;(elem=elems[i])!=null;i++){if(!keepData&&elem.nodeType===1){jQuery.cleanData(getAll(elem))}if(elem.parentNode){if(keepData&&jQuery.contains(elem.ownerDocument,elem)){setGlobalEval(getAll(elem,"script"))}elem.parentNode.removeChild(elem)}}return this;
},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.textContent=""}}return this},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML}if(typeof value==="string"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{for(;i<l;i++){elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value}}elem=0}catch(e){}}if(elem){this.empty().append(value)}},null,value,arguments.length)},replaceWith:function(){var arg=arguments[0];this.domManip(arguments,function(elem){arg=this.parentNode;jQuery.cleanData(getAll(this));if(arg){arg.replaceChild(elem,this)}});return arg&&(arg.length||arg.nodeType)?this:this.remove()},detach:function(selector){return this.remove(selector,true)},domManip:function(args,callback){args=concat.apply([],args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=this.length,set=this,iNoClone=l-1,value=args[0],isFunction=jQuery.isFunction(value);if(isFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return this.each(function(index){var self=set.eq(index);if(isFunction){args[0]=value.call(this,index,self.html())}self.domManip(args,callback)})}if(l){fragment=jQuery.buildFragment(args,this[0].ownerDocument,false,this);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first}if(first){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;for(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);if(hasScripts){jQuery.merge(scripts,getAll(node,"script"))}}callback.call(this[i],node,i)}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;jQuery.map(scripts,restoreScript);for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!data_priv.access(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src){if(jQuery._evalUrl){jQuery._evalUrl(node.src)}}else{jQuery.globalEval(node.textContent.replace(rcleanScript,""))}}}}}}return this}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);push.apply(ret,elems.get())}return this.pushStack(ret)}});var iframe,elemdisplay={};function actualDisplay(name,doc){var style,elem=jQuery(doc.createElement(name)).appendTo(doc.body),display=window.getDefaultComputedStyle&&(style=window.getDefaultComputedStyle(elem[0]))?style.display:jQuery.css(elem[0],"display");elem.detach();return display}function defaultDisplay(nodeName){var doc=document,display=elemdisplay[nodeName];if(!display){display=actualDisplay(nodeName,doc);if(display==="none"||!display){iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(doc.documentElement);doc=iframe[0].contentDocument;doc.write();doc.close();display=actualDisplay(nodeName,doc);iframe.detach()}elemdisplay[nodeName]=display}return display}var rmargin=/^margin/;var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles=function(elem){if(elem.ownerDocument.defaultView.opener){return elem.ownerDocument.defaultView.getComputedStyle(elem,null)}return window.getComputedStyle(elem,null)};function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);if(computed){ret=computed.getPropertyValue(name)||computed[name]}if(computed){if(ret===""&&!jQuery.contains(elem.ownerDocument,elem)){ret=jQuery.style(elem,name)}if(rnumnonpx.test(ret)&&rmargin.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth}}return ret!==undefined?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(conditionFn()){delete this.get;return}return(this.get=hookFn).apply(this,arguments)}}}(function(){var pixelPositionVal,boxSizingReliableVal,docElem=document.documentElement,container=document.createElement("div"),div=document.createElement("div");if(!div.style){return}div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";container.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;"+"position:absolute";container.appendChild(div);function computePixelPositionAndBoxSizingReliable(){div.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;"+"box-sizing:border-box;display:block;margin-top:1%;top:1%;"+"border:1px;padding:1px;width:4px;position:absolute";div.innerHTML="";docElem.appendChild(container);var divStyle=window.getComputedStyle(div,null);pixelPositionVal=divStyle.top!=="1%";boxSizingReliableVal=divStyle.width==="4px";docElem.removeChild(container)}if(window.getComputedStyle){jQuery.extend(support,{pixelPosition:function(){computePixelPositionAndBoxSizingReliable();return pixelPositionVal},boxSizingReliable:function(){if(boxSizingReliableVal==null){computePixelPositionAndBoxSizingReliable()}return boxSizingReliableVal},reliableMarginRight:function(){var ret,marginDiv=div.appendChild(document.createElement("div"));marginDiv.style.cssText=div.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";marginDiv.style.marginRight=marginDiv.style.width="0";div.style.width="1px";docElem.appendChild(container);ret=!parseFloat(window.getComputedStyle(marginDiv,null).marginRight);docElem.removeChild(container);div.removeChild(marginDiv);return ret}})}})();jQuery.swap=function(elem,options,callback,args){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name]}ret=callback.apply(elem,args||[]);for(name in options){elem.style[name]=old[name]}return ret};var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rnumsplit=new RegExp("^("+pnum+")(.*)$","i"),rrelNum=new RegExp("^([+-])=("+pnum+")","i"),cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","O","Moz","ms"];function vendorPropName(style,name){if(name in style){return name}var capName=name[0].toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in style){return name}}return origName}function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value}function augmentWidthOrHeight(elem,name,extra,isBorderBox,styles){var i=extra===(isBorderBox?"border":"content")?4:name==="width"?1:0,val=0;for(;i<4;i+=2){if(extra==="margin"){val+=jQuery.css(elem,extra+cssExpand[i],true,styles)}if(isBorderBox){if(extra==="content"){val-=jQuery.css(elem,"padding"+cssExpand[i],true,styles)}if(extra!=="margin"){val-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}else{val+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);if(extra!=="padding"){val+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}}return val}function getWidthOrHeight(elem,name,extra){var valueIsBorderBox=true,val=name==="width"?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box";if(val<=0||val==null){val=curCSS(elem,name,styles);if(val<0||val==null){val=elem.style[name]}if(rnumnonpx.test(val)){return val}valueIsBorderBox=isBorderBox&&(support.boxSizingReliable()||val===elem.style[name]);val=parseFloat(val)||0}return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)+"px"}function showHide(elements,show){var display,elem,hidden,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue}values[index]=data_priv.get(elem,"olddisplay");display=elem.style.display;if(show){if(!values[index]&&display==="none"){elem.style.display=""}if(elem.style.display===""&&isHidden(elem)){values[index]=data_priv.access(elem,"olddisplay",defaultDisplay(elem.nodeName))}}else{hidden=isHidden(elem);if(display!=="none"||!hidden){data_priv.set(elem,"olddisplay",hidden?display:jQuery.css(elem,"display"))}}}for(index=0;index<length;index++){elem=elements[index];if(!elem.style){continue}if(!show||elem.style.display==="none"||elem.style.display===""){elem.style.display=show?values[index]||"":"none"}}return elements}jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret}}}},cssNumber:{columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":"cssFloat"},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return}var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type==="string"&&(ret=rrelNum.exec(value))){value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name));type="number"}if(value==null||value!==value){return}if(type==="number"&&!jQuery.cssNumber[origName]){value+="px"}if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit"}if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){style[name]=value}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret}return style[name]}},css:function(elem,name,extra,styles){var val,num,hooks,origName=jQuery.camelCase(name);name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(elem.style,origName));hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra)}if(val===undefined){val=curCSS(elem,name,styles)}if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name]}if(extra===""||extra){num=parseFloat(val);return extra===true||jQuery.isNumeric(num)?num||0:val}return val}});jQuery.each(["height","width"],function(i,name){jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed){return rdisplayswap.test(jQuery.css(elem,"display"))&&elem.offsetWidth===0?jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra)}):getWidthOrHeight(elem,name,extra)}},set:function(elem,value,extra){var styles=extra&&getStyles(elem);return setPositiveNumber(elem,value,extra?augmentWidthOrHeight(elem,name,extra,jQuery.css(elem,"boxSizing",false,styles)==="border-box",styles):0)}}});jQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,function(elem,computed){if(computed){return jQuery.swap(elem,{display:"inline-block"},curCSS,[elem,"marginRight"])}});jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i=0,expanded={},parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0]}return expanded}};if(!rmargin.test(prefix)){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber}});jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(jQuery.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles)}return map}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)},name,value,arguments.length>1)},show:function(){return showHide(this,true)},hide:function(){return showHide(this)},toggle:function(state){if(typeof state==="boolean"){return state?this.show():this.hide()}return this.each(function(){if(isHidden(this)){jQuery(this).show()}else{jQuery(this).hide()}})}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||"swing";this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration)}else{this.pos=eased=percent}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(hooks&&hooks.set){hooks.set(this)}else{Tween.propHooks._default.set(this)}return this}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function(tween){var result;if(tween.elem[tween.prop]!=null&&(!tween.elem.style||tween.elem.style[tween.prop]==null)){return tween.elem[tween.prop]}result=jQuery.css(tween.elem,tween.prop,"");return!result||result==="auto"?0:result},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween)}else if(tween.elem.style&&(tween.elem.style[jQuery.cssProps[tween.prop]]!=null||jQuery.cssHooks[tween.prop])){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}else{tween.elem[tween.prop]=tween.now}}}};Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now}}};jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2}};jQuery.fx=Tween.prototype.init;jQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var tween=this.createTween(prop,value),target=tween.cur(),parts=rfxnum.exec(value),unit=parts&&parts[3]||(jQuery.cssNumber[prop]?"":"px"),start=(jQuery.cssNumber[prop]||unit!=="px"&&+target)&&rfxnum.exec(jQuery.css(tween.elem,prop)),scale=1,maxIterations=20;if(start&&start[3]!==unit){unit=unit||start[3];parts=parts||[];start=+target||1;do{scale=scale||".5";start=start/scale;jQuery.style(tween.elem,prop,start+unit)}while(scale!==(scale=tween.cur()/target)&&scale!==1&&--maxIterations)}if(parts){start=tween.start=+start||+target||0;tween.unit=unit;tween.end=parts[1]?start+(parts[1]+1)*parts[2]:+parts[2]}return tween}]};function createFxNow(){setTimeout(function(){fxNow=undefined});return fxNow=jQuery.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type}if(includeWidth){attrs.opacity=attrs.width=type}return attrs}function createTween(value,prop,animation){var tween,collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){return tween}}}function defaultPrefilter(elem,props,opts){var prop,value,toggle,tween,hooks,oldfire,display,checkDisplay,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHidden(elem),dataShow=data_priv.get(elem,"fxshow");if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire()}}}hooks.unqueued++;anim.always(function(){anim.always(function(){hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire()}})})}if(elem.nodeType===1&&("height"in props||"width"in props)){opts.overflow=[style.overflow,style.overflowX,style.overflowY];display=jQuery.css(elem,"display");checkDisplay=display==="none"?data_priv.get(elem,"olddisplay")||defaultDisplay(elem.nodeName):display;if(checkDisplay==="inline"&&jQuery.css(elem,"float")==="none"){style.display="inline-block"}}if(opts.overflow){style.overflow="hidden";anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2]})}for(prop in props){value=props[prop];if(rfxtypes.exec(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true}else{continue}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop)}else{display=undefined}}if(!jQuery.isEmptyObject(orig)){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden}}else{dataShow=data_priv.access(elem,"fxshow",{})}if(toggle){dataShow.hidden=!hidden}if(hidden){jQuery(elem).show()}else{anim.done(function(){jQuery(elem).hide()})}anim.done(function(){var prop;data_priv.remove(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop])}});for(prop in orig){tween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=tween.start;if(hidden){tween.end=tween.start;tween.start=prop==="width"||prop==="height"?1:0}}}}else if((display==="none"?defaultDisplay(elem.nodeName):display)==="inline"){style.display=display}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props){name=jQuery.camelCase(index);easing=specialEasing[name];value=props[index];if(jQuery.isArray(value)){easing=value[1];value=props[index]=value[0]}if(index!==name){props[name]=value;delete props[index]}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing}}}else{specialEasing[name]=easing}}}function Animation(elem,properties,options){var result,stopped,index=0,length=animationPrefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem}),tick=function(){if(stopped){return false}var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent)}deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining}else{deferred.resolveWith(elem,[animation]);return false}},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{}},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped){return this}stopped=true;for(;index<length;index++){animation.tweens[index].run(1)}if(gotoEnd){deferred.resolveWith(elem,[animation,gotoEnd])}else{deferred.rejectWith(elem,[animation,gotoEnd])}return this}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=animationPrefilters[index].call(animation,elem,props,animation.opts);if(result){return result}}jQuery.map(props,createTween,animation);if(jQuery.isFunction(animation.opts.start)){animation.opts.start.call(elem,animation)}jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always)}jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){if(jQuery.isFunction(props)){callback=props;props=["*"]}else{props=props.split(" ")}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];tweeners[prop]=tweeners[prop]||[];tweeners[prop].unshift(callback)}},prefilter:function(callback,prepend){if(prepend){animationPrefilters.unshift(callback)}else{animationPrefilters.push(callback)}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default;if(opt.queue==null||opt.queue===true){opt.queue="fx"}opt.old=opt.complete;opt.complete=function(){if(jQuery.isFunction(opt.old)){opt.old.call(this)}if(opt.queue){jQuery.dequeue(this,opt.queue)}};return opt};jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery.extend({},prop),optall);if(empty||data_priv.get(this,"finish")){anim.stop(true)}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd)};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined}if(clearQueue&&type!==false){this.queue(type||"fx",[])}return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=data_priv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index])}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index])}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1)}}if(dequeue||!gotoEnd){jQuery.dequeue(this,type)}})},finish:function(type){if(type!==false){type=type||"fx"}return this.each(function(){var index,data=data_priv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;data.finish=true;jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true)}for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1)}}for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this)}}delete data.finish})}});jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback)}});jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}});jQuery.timers=[];jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;fxNow=jQuery.now();for(;i<timers.length;i++){timer=timers[i];if(!timer()&&timers[i]===timer){timers.splice(i--,1)}}if(!timers.length){jQuery.fx.stop()}fxNow=undefined};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);if(timer()){jQuery.fx.start()}else{jQuery.timers.pop()}};jQuery.fx.interval=13;jQuery.fx.start=function(){if(!timerId){timerId=setInterval(jQuery.fx.tick,jQuery.fx.interval)}};jQuery.fx.stop=function(){clearInterval(timerId);timerId=null};jQuery.fx.speeds={slow:600,fast:200,_default:400};jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout)}})};(function(){var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox";support.checkOn=input.value!=="";support.optSelected=opt.selected;select.disabled=true;support.optDisabled=!opt.disabled;input=document.createElement("input");input.value="t";input.type="radio";support.radioValue=input.value==="t"})();var nodeHook,boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})}});jQuery.extend({attr:function(elem,name,value){var hooks,ret,nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return}if(typeof elem.getAttribute===strundefined){return jQuery.prop(elem,name,value)}if(nType!==1||!jQuery.isXMLDoc(elem)){name=name.toLowerCase();hooks=jQuery.attrHooks[name]||(jQuery.expr.match.bool.test(name)?boolHook:nodeHook)}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name)}else if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret}else{elem.setAttribute(name,value+"");return value}}else if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret}else{ret=jQuery.find.attr(elem,name);return ret==null?undefined:ret}},removeAttr:function(elem,value){var name,propName,i=0,attrNames=value&&value.match(rnotwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){propName=jQuery.propFix[name]||name;if(jQuery.expr.match.bool.test(name)){elem[propName]=false}elem.removeAttribute(name)}}},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value==="radio"&&jQuery.nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val}return value}}}}});boolHook={set:function(elem,value,name){if(value===false){jQuery.removeAttr(elem,name)}else{elem.setAttribute(name,name)}return name}};jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle;if(!isXML){handle=attrHandle[name];attrHandle[name]=ret;ret=getter(elem,name,isXML)!=null?name.toLowerCase():null;attrHandle[name]=handle}return ret}});var rfocusable=/^(?:input|select|textarea|button)$/i;jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,arguments.length>1)},removeProp:function(name){return this.each(function(){delete this[jQuery.propFix[name]||name]})}});jQuery.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(elem,name,value){var ret,hooks,notxml,nType=elem.nodeType;if(!elem||nType===3||nType===8||nType===2){return}notxml=nType!==1||!jQuery.isXMLDoc(elem);if(notxml){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name]}if(value!==undefined){return hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined?ret:elem[name]=value}else{return hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null?ret:elem[name]}},propHooks:{tabIndex:{get:function(elem){return elem.hasAttribute("tabindex")||rfocusable.test(elem.nodeName)||elem.href?elem.tabIndex:-1}}}});if(!support.optSelected){jQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex}return null}}}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this});var rclass=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function(value){var classes,elem,cur,clazz,j,finalValue,proceed=typeof value==="string"&&value,i=0,len=this.length;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className))})}if(proceed){classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):" ");if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" "}}finalValue=jQuery.trim(cur);if(elem.className!==finalValue){elem.className=finalValue}}}}return this},removeClass:function(value){var classes,elem,cur,clazz,j,finalValue,proceed=arguments.length===0||typeof value==="string"&&value,i=0,len=this.length;if(jQuery.isFunction(value)){return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className))})}if(proceed){classes=(value||"").match(rnotwhite)||[];for(;i<len;i++){elem=this[i];cur=elem.nodeType===1&&(elem.className?(" "+elem.className+" ").replace(rclass," "):"");if(cur){j=0;while(clazz=classes[j++]){while(cur.indexOf(" "+clazz+" ")>=0){cur=cur.replace(" "+clazz+" "," ")}}finalValue=value?jQuery.trim(cur):"";if(elem.className!==finalValue){elem.className=finalValue}}}}return this},toggleClass:function(value,stateVal){var type=typeof value;if(typeof stateVal==="boolean"&&type==="string"){return stateVal?this.addClass(value):this.removeClass(value)}if(jQuery.isFunction(value)){return this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal)})}return this.each(function(){if(type==="string"){var className,i=0,self=jQuery(this),classNames=value.match(rnotwhite)||[];while(className=classNames[i++]){if(self.hasClass(className)){self.removeClass(className)}else{self.addClass(className)}}}else if(type===strundefined||type==="boolean"){if(this.className){data_priv.set(this,"__className__",this.className)}this.className=this.className||value===false?"":data_priv.get(this,"__className__")||""}})},hasClass:function(selector){var className=" "+selector+" ",i=0,l=this.length;for(;i<l;i++){if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(rclass," ").indexOf(className)>=0){return true}}return false}});var rreturn=/\r/g;jQuery.fn.extend({val:function(value){var hooks,ret,isFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret}ret=elem.value;return typeof ret==="string"?ret.replace(rreturn,""):ret==null?"":ret}return}isFunction=jQuery.isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return}if(isFunction){val=value.call(this,i,jQuery(this).val())}else{val=value}if(val==null){val=""}else if(typeof val==="number"){val+=""}else if(jQuery.isArray(val)){val=jQuery.map(val,function(value){return value==null?"":value+""})}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val}})}});jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:jQuery.trim(jQuery.text(elem))}},select:{get:function(elem){var value,option,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one"||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;for(;i<max;i++){option=options[i];if((option.selected||i===index)&&(support.optDisabled?!option.disabled:option.getAttribute("disabled")===null)&&(!option.parentNode.disabled||!jQuery.nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val();
if(one){return value}values.push(value)}}return values},set:function(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];if(option.selected=jQuery.inArray(option.value,values)>=0){optionSet=true}}if(!optionSet){elem.selectedIndex=-1}return values}}}});jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(elem,value){if(jQuery.isArray(value)){return elem.checked=jQuery.inArray(jQuery(elem).val(),value)>=0}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value}}});jQuery.each(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error contextmenu").split(" "),function(i,name){jQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}});jQuery.fn.extend({hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)},bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn)}});var nonce=jQuery.now();var rquery=/\?/;jQuery.parseJSON=function(data){return JSON.parse(data+"")};jQuery.parseXML=function(data){var xml,tmp;if(!data||typeof data!=="string"){return null}try{tmp=new DOMParser;xml=tmp.parseFromString(data,"text/xml")}catch(e){xml=undefined}if(!xml||xml.getElementsByTagName("parsererror").length){jQuery.error("Invalid XML: "+data)}return xml};var rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,prefilters={},transports={},allTypes="*/".concat("*"),ajaxLocation=window.location.href,ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[];function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*"}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(func)){while(dataType=dataTypes[i++]){if(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func)}else{(structure[dataType]=structure[dataType]||[]).push(func)}}}}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false}else if(seekingTransport){return!(selected=dataTypeOrTransport)}});return selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key]}}if(deep){jQuery.extend(true,target,deep)}return target}function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type")}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}}}if(dataTypes[0]in responses){finalDataType=dataTypes[0]}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}if(!firstDataType){firstDataType=type}}finalDataType=finalDataType||firstDataType}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)}return responses[finalDataType]}}function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv]}}current=dataTypes.shift();while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response}if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType)}prev=current;current=dataTypes.shift();if(current){if(current==="*"){current=prev}else if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2]}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1])}break}}}}if(conv!==true){if(conv&&s["throws"]){response=conv(response)}else{try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}}}}}return{state:"success",data:response}}jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined}options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,parts,fireGlobals,i,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(state===2){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()]=match[2]}}match=responseHeaders[key.toLowerCase()]}return match==null?null:match},getAllResponseHeaders:function(){return state===2?responseHeadersString:null},setRequestHeader:function(name,value){var lname=name.toLowerCase();if(!state){name=requestHeadersNames[lname]=requestHeadersNames[lname]||name;requestHeaders[name]=value}return this},overrideMimeType:function(type){if(!state){s.mimeType=type}return this},statusCode:function(map){var code;if(map){if(state<2){for(code in map){statusCode[code]=[statusCode[code],map[code]]}}else{jqXHR.always(map[jqXHR.status])}}return this},abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText)}done(0,finalText);return this}};deferred.promise(jqXHR).complete=completeDeferred.add;jqXHR.success=jqXHR.done;jqXHR.error=jqXHR.fail;s.url=((url||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//");s.type=options.method||options.type||s.method||s.type;s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(rnotwhite)||[""];if(s.crossDomain==null){parts=rurl.exec(s.url.toLowerCase());s.crossDomain=!!(parts&&(parts[1]!==ajaxLocParts[1]||parts[2]!==ajaxLocParts[2]||(parts[3]||(parts[1]==="http:"?"80":"443"))!==(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443"))))}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(state===2){return jqXHR}fireGlobals=jQuery.event&&s.global;if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart")}s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);cacheURL=s.url;if(!s.hasContent){if(s.data){cacheURL=s.url+=(rquery.test(cacheURL)?"&":"?")+s.data;delete s.data}if(s.cache===false){s.url=rts.test(cacheURL)?cacheURL.replace(rts,"$1_="+nonce++):cacheURL+(rquery.test(cacheURL)?"&":"?")+"_="+nonce++}}if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL])}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL])}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i])}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||state===2)){return jqXHR.abort()}strAbort="abort";for(i in{success:1,error:1,complete:1}){jqXHR[i](s[i])}transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport")}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])}if(s.async&&s.timeout>0){timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout)}try{state=1;transport.send(requestHeaders,done)}catch(e){if(state<2){done(-1,e)}else{throw e}}}function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(state===2){return}state=2;if(timeoutTimer){clearTimeout(timeoutTimer)}transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses)}response=ajaxConvert(s,response,jqXHR,isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified}}if(status===204||s.type==="HEAD"){statusText="nocontent"}else if(status===304){statusText="notmodified"}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error}}else{error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0}}}jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR])}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error])}jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error])}completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!--jQuery.active){jQuery.event.trigger("ajaxStop")}}}return jqXHR},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")}});jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){if(jQuery.isFunction(data)){type=type||callback;callback=data;data=undefined}return jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback})}});jQuery._evalUrl=function(url){return jQuery.ajax({url:url,type:"GET",dataType:"script",async:false,global:false,"throws":true})};jQuery.fn.extend({wrapAll:function(html){var wrap;if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapAll(html.call(this,i))})}if(this[0]){wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.map(function(){var elem=this;while(elem.firstElementChild){elem=elem.firstElementChild}return elem}).append(this)}return this},wrapInner:function(html){if(jQuery.isFunction(html)){return this.each(function(i){jQuery(this).wrapInner(html.call(this,i))})}return this.each(function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.append(html)}})},wrap:function(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html)})},unwrap:function(){return this.parent().each(function(){if(!jQuery.nodeName(this,"body")){jQuery(this).replaceWith(this.childNodes)}}).end()}});jQuery.expr.filters.hidden=function(elem){return elem.offsetWidth<=0&&elem.offsetHeight<=0};jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(elem)};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(jQuery.isArray(obj)){jQuery.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v)}else{buildParams(prefix+"["+(typeof v==="object"?i:"")+"]",v,traditional,add)}})}else if(!traditional&&jQuery.type(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add)}}else{add(prefix,obj)}}jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=jQuery.isFunction(value)?value():value==null?"":value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)};if(traditional===undefined){traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional}if(jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){jQuery.each(a,function(){add(this.name,this.value)})}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add)}}return s.join("&").replace(r20,"+")};jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this}).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}});jQuery.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var xhrId=0,xhrCallbacks={},xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();if(window.attachEvent){window.attachEvent("onunload",function(){for(var key in xhrCallbacks){xhrCallbacks[key]()}})}support.cors=!!xhrSupported&&"withCredentials"in xhrSupported;support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport(function(options){var callback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function(headers,complete){var i,xhr=options.xhr(),id=++xhrId;xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i]}}if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType)}if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"}for(i in headers){xhr.setRequestHeader(i,headers[i])}callback=function(type){return function(){if(callback){delete xhrCallbacks[id];callback=xhr.onload=xhr.onerror=null;if(type==="abort"){xhr.abort()}else if(type==="error"){complete(xhr.status,xhr.statusText)}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,typeof xhr.responseText==="string"?{text:xhr.responseText}:undefined,xhr.getAllResponseHeaders())}}}};xhr.onload=callback();xhr.onerror=callback("error");callback=xhrCallbacks[id]=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback){throw e}}},abort:function(){if(callback){callback()}}}}});jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(text){jQuery.globalEval(text);return text}}});jQuery.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false}if(s.crossDomain){s.type="GET"}});jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,callback;return{send:function(_,complete){script=jQuery("<script>").prop({async:true,charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove();callback=null;if(evt){complete(evt.type==="error"?404:200,evt.type)}});document.head.appendChild(script[0])},abort:function(){if(callback){callback()}}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce++;this[callback]=true;return callback}});jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName)}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName}s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called")}return responseContainer[0]};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments};jqXHR.always(function(){window[callbackName]=overwritten;if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName)}if(responseContainer&&jQuery.isFunction(overwritten)){overwritten(responseContainer[0])}responseContainer=overwritten=undefined});return"script"}});jQuery.parseHTML=function(data,context,keepScripts){if(!data||typeof data!=="string"){return null}if(typeof context==="boolean"){keepScripts=context;context=false}context=context||document;var parsed=rsingleTag.exec(data),scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])]}parsed=jQuery.buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove()}return jQuery.merge([],parsed.childNodes)};var _load=jQuery.fn.load;jQuery.fn.load=function(url,params,callback){if(typeof url!=="string"&&_load){return _load.apply(this,arguments)}var selector,type,response,self=this,off=url.indexOf(" ");if(off>=0){selector=jQuery.trim(url.slice(off));url=url.slice(0,off)}if(jQuery.isFunction(params)){callback=params;params=undefined}else if(params&&typeof params==="object"){type="POST"}if(self.length>0){jQuery.ajax({url:url,type:type,dataType:"html",data:params}).done(function(responseText){response=arguments;self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText)}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR])})}return this};jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}});jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length};var docElem=window.document.documentElement;function getWindow(elem){return jQuery.isWindow(elem)?elem:elem.nodeType===9&&elem.defaultView}jQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};if(position==="static"){elem.style.position="relative"}curOffset=curElem.offset();curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0}if(jQuery.isFunction(options)){options=options.call(elem,i,curOffset)}if(options.top!=null){props.top=options.top-curOffset.top+curTop}if(options.left!=null){props.left=options.left-curOffset.left+curLeft}if("using"in options){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({offset:function(options){if(arguments.length){return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i)})}var docElem,win,elem=this[0],box={top:0,left:0},doc=elem&&elem.ownerDocument;if(!doc){return}docElem=doc.documentElement;if(!jQuery.contains(docElem,elem)){return box}if(typeof elem.getBoundingClientRect!==strundefined){box=elem.getBoundingClientRect()}win=getWindow(doc);return{top:box.top+win.pageYOffset-docElem.clientTop,left:box.left+win.pageXOffset-docElem.clientLeft}},position:function(){if(!this[0]){return}var offsetParent,offset,elem=this[0],parentOffset={top:0,left:0};if(jQuery.css(elem,"position")==="fixed"){offset=elem.getBoundingClientRect()}else{offsetParent=this.offsetParent();offset=this.offset();if(!jQuery.nodeName(offsetParent[0],"html")){parentOffset=offsetParent.offset()}parentOffset.top+=jQuery.css(offsetParent[0],"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent[0],"borderLeftWidth",true)}return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||docElem;while(offsetParent&&(!jQuery.nodeName(offsetParent,"html")&&jQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent}return offsetParent||docElem})}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined){return win?win[prop]:elem[method]}if(win){win.scrollTo(!top?val:window.pageXOffset,top?val:window.pageYOffset)}else{elem[method]=val}},method,val,arguments.length,null)}});jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);return rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed}})});jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,function(elem,type,value){var doc;if(jQuery.isWindow(elem)){return elem.document.documentElement["client"+name]}if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])}return value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)},type,chainable?margin:undefined,chainable,null)}})});jQuery.fn.size=function(){return this.length};jQuery.fn.andSelf=jQuery.fn.addBack;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return jQuery})}var _jQuery=window.jQuery,_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery}return jQuery};if(typeof noGlobal===strundefined){window.jQuery=window.$=jQuery}return jQuery})},{}],16:[function(require,module,exports){(function(define){"use strict";define(function(require){var makePromise=require("./makePromise");var Scheduler=require("./Scheduler");var async=require("./env").asap;return makePromise({scheduler:new Scheduler(async)})})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"./Scheduler":17,"./env":29,"./makePromise":31}],17:[function(require,module,exports){(function(define){"use strict";define(function(){function Scheduler(async){this._async=async;this._running=false;this._queue=this;this._queueLen=0;this._afterQueue={};this._afterQueueLen=0;var self=this;this.drain=function(){self._drain()}}Scheduler.prototype.enqueue=function(task){this._queue[this._queueLen++]=task;this.run()};Scheduler.prototype.afterQueue=function(task){this._afterQueue[this._afterQueueLen++]=task;this.run()};Scheduler.prototype.run=function(){if(!this._running){this._running=true;this._async(this.drain)}};Scheduler.prototype._drain=function(){var i=0;for(;i<this._queueLen;++i){this._queue[i].run();this._queue[i]=void 0}this._queueLen=0;this._running=false;for(i=0;i<this._afterQueueLen;++i){this._afterQueue[i].run();this._afterQueue[i]=void 0}this._afterQueueLen=0};return Scheduler})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],18:[function(require,module,exports){(function(define){"use strict";define(function(){function TimeoutError(message){Error.call(this);this.message=message;this.name=TimeoutError.name;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,TimeoutError)}}TimeoutError.prototype=Object.create(Error.prototype);TimeoutError.prototype.constructor=TimeoutError;return TimeoutError})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],19:[function(require,module,exports){(function(define){"use strict";define(function(){makeApply.tryCatchResolve=tryCatchResolve;return makeApply;function makeApply(Promise,call){if(arguments.length<2){call=tryCatchResolve}return apply;function apply(f,thisArg,args){var p=Promise._defer();var l=args.length;var params=new Array(l);callAndResolve({f:f,thisArg:thisArg,args:args,params:params,i:l-1,call:call},p._handler);return p}function callAndResolve(c,h){if(c.i<0){return call(c.f,c.thisArg,c.params,h)}var handler=Promise._handler(c.args[c.i]);handler.fold(callAndResolveNext,c,void 0,h)}function callAndResolveNext(c,x,h){c.params[c.i]=x;c.i-=1;callAndResolve(c,h)}}function tryCatchResolve(f,thisArg,args,resolver){try{resolver.resolve(f.apply(thisArg,args))}catch(e){resolver.reject(e)}}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],20:[function(require,module,exports){(function(define){"use strict";define(function(require){var state=require("../state");var applier=require("../apply");return function array(Promise){var applyFold=applier(Promise);var toPromise=Promise.resolve;var all=Promise.all;var ar=Array.prototype.reduce;var arr=Array.prototype.reduceRight;var slice=Array.prototype.slice;Promise.any=any;Promise.some=some;Promise.settle=settle;Promise.map=map;Promise.filter=filter;Promise.reduce=reduce;Promise.reduceRight=reduceRight;Promise.prototype.spread=function(onFulfilled){return this.then(all).then(function(array){return onFulfilled.apply(this,array)})};return Promise;function any(promises){var p=Promise._defer();var resolver=p._handler;var l=promises.length>>>0;var pending=l;var errors=[];for(var h,x,i=0;i<l;++i){x=promises[i];if(x===void 0&&!(i in promises)){--pending;continue}h=Promise._handler(x);if(h.state()>0){resolver.become(h);Promise._visitRemaining(promises,i,h);break}else{h.visit(resolver,handleFulfill,handleReject)}}if(pending===0){resolver.reject(new RangeError("any(): array must not be empty"))}return p;function handleFulfill(x){errors=null;this.resolve(x)}function handleReject(e){if(this.resolved){return}errors.push(e);if(--pending===0){this.reject(errors)}}}function some(promises,n){var p=Promise._defer();var resolver=p._handler;var results=[];var errors=[];var l=promises.length>>>0;var nFulfill=0;var nReject;var x,i;for(i=0;i<l;++i){x=promises[i];if(x===void 0&&!(i in promises)){continue}++nFulfill}n=Math.max(n,0);nReject=nFulfill-n+1;nFulfill=Math.min(n,nFulfill);if(n>nFulfill){resolver.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+nFulfill))}else if(nFulfill===0){resolver.resolve(results)}for(i=0;i<l;++i){x=promises[i];if(x===void 0&&!(i in promises)){continue}Promise._handler(x).visit(resolver,fulfill,reject,resolver.notify)}return p;function fulfill(x){if(this.resolved){return}results.push(x);if(--nFulfill===0){errors=null;this.resolve(results)}}function reject(e){if(this.resolved){return}errors.push(e);if(--nReject===0){results=null;this.reject(errors)}}}function map(promises,f){return Promise._traverse(f,promises)}function filter(promises,predicate){var a=slice.call(promises);return Promise._traverse(predicate,a).then(function(keep){return filterSync(a,keep)})}function filterSync(promises,keep){var l=keep.length;var filtered=new Array(l);for(var i=0,j=0;i<l;++i){if(keep[i]){filtered[j++]=Promise._handler(promises[i]).value}}filtered.length=j;return filtered}function settle(promises){return all(promises.map(settleOne))}function settleOne(p){var h=Promise._handler(p);if(h.state()===0){return toPromise(p).then(state.fulfilled,state.rejected)}h._unreport();return state.inspect(h)}function reduce(promises,f){return arguments.length>2?ar.call(promises,liftCombine(f),arguments[2]):ar.call(promises,liftCombine(f))}function reduceRight(promises,f){return arguments.length>2?arr.call(promises,liftCombine(f),arguments[2]):arr.call(promises,liftCombine(f))}function liftCombine(f){return function(z,x,i){return applyFold(f,void 0,[z,x,i])}}}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"../apply":19,"../state":32}],21:[function(require,module,exports){(function(define){"use strict";define(function(){return function flow(Promise){var resolve=Promise.resolve;var reject=Promise.reject;var origCatch=Promise.prototype["catch"];Promise.prototype.done=function(onResult,onError){this._handler.visit(this._handler.receiver,onResult,onError)};Promise.prototype["catch"]=Promise.prototype.otherwise=function(onRejected){if(arguments.length<2){return origCatch.call(this,onRejected)}if(typeof onRejected!=="function"){return this.ensure(rejectInvalidPredicate)}return origCatch.call(this,createCatchFilter(arguments[1],onRejected))};function createCatchFilter(handler,predicate){return function(e){return evaluatePredicate(e,predicate)?handler.call(this,e):reject(e)}}Promise.prototype["finally"]=Promise.prototype.ensure=function(handler){if(typeof handler!=="function"){return this}return this.then(function(x){return runSideEffect(handler,this,identity,x)},function(e){return runSideEffect(handler,this,reject,e)})};function runSideEffect(handler,thisArg,propagate,value){var result=handler.call(thisArg);return maybeThenable(result)?propagateValue(result,propagate,value):propagate(value)}function propagateValue(result,propagate,x){return resolve(result).then(function(){return propagate(x)})}Promise.prototype["else"]=Promise.prototype.orElse=function(defaultValue){return this.then(void 0,function(){return defaultValue})};Promise.prototype["yield"]=function(value){
return this.then(function(){return value})};Promise.prototype.tap=function(onFulfilledSideEffect){return this.then(onFulfilledSideEffect)["yield"](this)};return Promise};function rejectInvalidPredicate(){throw new TypeError("catch predicate must be a function")}function evaluatePredicate(e,predicate){return isError(predicate)?e instanceof predicate:predicate(e)}function isError(predicate){return predicate===Error||predicate!=null&&predicate.prototype instanceof Error}function maybeThenable(x){return(typeof x==="object"||typeof x==="function")&&x!==null}function identity(x){return x}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],22:[function(require,module,exports){(function(define){"use strict";define(function(){return function fold(Promise){Promise.prototype.fold=function(f,z){var promise=this._beget();this._handler.fold(function(z,x,to){Promise._handler(z).fold(function(x,z,to){to.resolve(f.call(this,z,x))},x,this,to)},z,promise._handler.receiver,promise._handler);return promise};return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],23:[function(require,module,exports){(function(define){"use strict";define(function(require){var inspect=require("../state").inspect;return function inspection(Promise){Promise.prototype.inspect=function(){return inspect(Promise._handler(this))};return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"../state":32}],24:[function(require,module,exports){(function(define){"use strict";define(function(){return function generate(Promise){var resolve=Promise.resolve;Promise.iterate=iterate;Promise.unfold=unfold;return Promise;function iterate(f,condition,handler,x){return unfold(function(x){return[x,f(x)]},condition,handler,x)}function unfold(unspool,condition,handler,x){return resolve(x).then(function(seed){return resolve(condition(seed)).then(function(done){return done?seed:resolve(unspool(seed)).spread(next)})});function next(item,newSeed){return resolve(handler(item)).then(function(){return unfold(unspool,condition,handler,newSeed)})}}}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],25:[function(require,module,exports){(function(define){"use strict";define(function(){return function progress(Promise){Promise.prototype.progress=function(onProgress){return this.then(void 0,void 0,onProgress)};return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],26:[function(require,module,exports){(function(define){"use strict";define(function(require){var env=require("../env");var TimeoutError=require("../TimeoutError");function setTimeout(f,ms,x,y){return env.setTimer(function(){f(x,y,ms)},ms)}return function timed(Promise){Promise.prototype.delay=function(ms){var p=this._beget();this._handler.fold(handleDelay,ms,void 0,p._handler);return p};function handleDelay(ms,x,h){setTimeout(resolveDelay,ms,x,h)}function resolveDelay(x,h){h.resolve(x)}Promise.prototype.timeout=function(ms,reason){var p=this._beget();var h=p._handler;var t=setTimeout(onTimeout,ms,reason,p._handler);this._handler.visit(h,function onFulfill(x){env.clearTimer(t);this.resolve(x)},function onReject(x){env.clearTimer(t);this.reject(x)},h.notify);return p};function onTimeout(reason,h,ms){var e=typeof reason==="undefined"?new TimeoutError("timed out after "+ms+"ms"):reason;h.reject(e)}return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"../TimeoutError":18,"../env":29}],27:[function(require,module,exports){(function(define){"use strict";define(function(require){var setTimer=require("../env").setTimer;var format=require("../format");return function unhandledRejection(Promise){var logError=noop;var logInfo=noop;var localConsole;if(typeof console!=="undefined"){localConsole=console;logError=typeof localConsole.error!=="undefined"?function(e){localConsole.error(e)}:function(e){localConsole.log(e)};logInfo=typeof localConsole.info!=="undefined"?function(e){localConsole.info(e)}:function(e){localConsole.log(e)}}Promise.onPotentiallyUnhandledRejection=function(rejection){enqueue(report,rejection)};Promise.onPotentiallyUnhandledRejectionHandled=function(rejection){enqueue(unreport,rejection)};Promise.onFatalRejection=function(rejection){enqueue(throwit,rejection.value)};var tasks=[];var reported=[];var running=null;function report(r){if(!r.handled){reported.push(r);logError("Potentially unhandled rejection ["+r.id+"] "+format.formatError(r.value))}}function unreport(r){var i=reported.indexOf(r);if(i>=0){reported.splice(i,1);logInfo("Handled previous rejection ["+r.id+"] "+format.formatObject(r.value))}}function enqueue(f,x){tasks.push(f,x);if(running===null){running=setTimer(flush,0)}}function flush(){running=null;while(tasks.length>0){tasks.shift()(tasks.shift())}}return Promise};function throwit(e){throw e}function noop(){}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"../env":29,"../format":30}],28:[function(require,module,exports){(function(define){"use strict";define(function(){return function addWith(Promise){Promise.prototype["with"]=Promise.prototype.withThis=function(receiver){var p=this._beget();var child=p._handler;child.receiver=receiver;this._handler.chain(child,receiver);return p};return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],29:[function(require,module,exports){(function(process){(function(define){"use strict";define(function(require){var MutationObs;var capturedSetTimeout=typeof setTimeout!=="undefined"&&setTimeout;var setTimer=function(f,ms){return setTimeout(f,ms)};var clearTimer=function(t){return clearTimeout(t)};var asap=function(f){return capturedSetTimeout(f,0)};if(isNode()){asap=function(f){return process.nextTick(f)}}else if(MutationObs=hasMutationObserver()){asap=initMutationObserver(MutationObs)}else if(!capturedSetTimeout){var vertxRequire=require;var vertx=vertxRequire("vertx");setTimer=function(f,ms){return vertx.setTimer(ms,f)};clearTimer=vertx.cancelTimer;asap=vertx.runOnLoop||vertx.runOnContext}return{setTimer:setTimer,clearTimer:clearTimer,asap:asap};function isNode(){return typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"}function hasMutationObserver(){return typeof MutationObserver==="function"&&MutationObserver||typeof WebKitMutationObserver==="function"&&WebKitMutationObserver}function initMutationObserver(MutationObserver){var scheduled;var node=document.createTextNode("");var o=new MutationObserver(run);o.observe(node,{characterData:true});function run(){var f=scheduled;scheduled=void 0;f()}var i=0;return function(f){scheduled=f;node.data=i^=1}}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})}).call(this,require("_process"))},{_process:11}],30:[function(require,module,exports){(function(define){"use strict";define(function(){return{formatError:formatError,formatObject:formatObject,tryStringify:tryStringify};function formatError(e){var s=typeof e==="object"&&e!==null&&e.stack?e.stack:formatObject(e);return e instanceof Error?s:s+" (WARNING: non-Error used)"}function formatObject(o){var s=String(o);if(s==="[object Object]"&&typeof JSON!=="undefined"){s=tryStringify(o,s)}return s}function tryStringify(x,defaultValue){try{return JSON.stringify(x)}catch(e){return defaultValue}}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],31:[function(require,module,exports){(function(process){(function(define){"use strict";define(function(){return function makePromise(environment){var tasks=environment.scheduler;var emitRejection=initEmitRejection();var objectCreate=Object.create||function(proto){function Child(){}Child.prototype=proto;return new Child};function Promise(resolver,handler){this._handler=resolver===Handler?handler:init(resolver)}function init(resolver){var handler=new Pending;try{resolver(promiseResolve,promiseReject,promiseNotify)}catch(e){promiseReject(e)}return handler;function promiseResolve(x){handler.resolve(x)}function promiseReject(reason){handler.reject(reason)}function promiseNotify(x){handler.notify(x)}}Promise.resolve=resolve;Promise.reject=reject;Promise.never=never;Promise._defer=defer;Promise._handler=getHandler;function resolve(x){return isPromise(x)?x:new Promise(Handler,new Async(getHandler(x)))}function reject(x){return new Promise(Handler,new Async(new Rejected(x)))}function never(){return foreverPendingPromise}function defer(){return new Promise(Handler,new Pending)}Promise.prototype.then=function(onFulfilled,onRejected,onProgress){var parent=this._handler;var state=parent.join().state();if(typeof onFulfilled!=="function"&&state>0||typeof onRejected!=="function"&&state<0){return new this.constructor(Handler,parent)}var p=this._beget();var child=p._handler;parent.chain(child,parent.receiver,onFulfilled,onRejected,onProgress);return p};Promise.prototype["catch"]=function(onRejected){return this.then(void 0,onRejected)};Promise.prototype._beget=function(){return begetFrom(this._handler,this.constructor)};function begetFrom(parent,Promise){var child=new Pending(parent.receiver,parent.join().context);return new Promise(Handler,child)}Promise.all=all;Promise.race=race;Promise._traverse=traverse;function all(promises){return traverseWith(snd,null,promises)}function traverse(f,promises){return traverseWith(tryCatch2,f,promises)}function traverseWith(tryMap,f,promises){var handler=typeof f==="function"?mapAt:settleAt;var resolver=new Pending;var pending=promises.length>>>0;var results=new Array(pending);for(var i=0,x;i<promises.length&&!resolver.resolved;++i){x=promises[i];if(x===void 0&&!(i in promises)){--pending;continue}traverseAt(promises,handler,i,x,resolver)}if(pending===0){resolver.become(new Fulfilled(results))}return new Promise(Handler,resolver);function mapAt(i,x,resolver){if(!resolver.resolved){traverseAt(promises,settleAt,i,tryMap(f,x,i),resolver)}}function settleAt(i,x,resolver){results[i]=x;if(--pending===0){resolver.become(new Fulfilled(results))}}}function traverseAt(promises,handler,i,x,resolver){if(maybeThenable(x)){var h=getHandlerMaybeThenable(x);var s=h.state();if(s===0){h.fold(handler,i,void 0,resolver)}else if(s>0){handler(i,h.value,resolver)}else{resolver.become(h);visitRemaining(promises,i+1,h)}}else{handler(i,x,resolver)}}Promise._visitRemaining=visitRemaining;function visitRemaining(promises,start,handler){for(var i=start;i<promises.length;++i){markAsHandled(getHandler(promises[i]),handler)}}function markAsHandled(h,handler){if(h===handler){return}var s=h.state();if(s===0){h.visit(h,void 0,h._unreport)}else if(s<0){h._unreport()}}function race(promises){if(typeof promises!=="object"||promises===null){return reject(new TypeError("non-iterable passed to race()"))}return promises.length===0?never():promises.length===1?resolve(promises[0]):runRace(promises)}function runRace(promises){var resolver=new Pending;var i,x,h;for(i=0;i<promises.length;++i){x=promises[i];if(x===void 0&&!(i in promises)){continue}h=getHandler(x);if(h.state()!==0){resolver.become(h);visitRemaining(promises,i+1,h);break}else{h.visit(resolver,resolver.resolve,resolver.reject)}}return new Promise(Handler,resolver)}function getHandler(x){if(isPromise(x)){return x._handler.join()}return maybeThenable(x)?getHandlerUntrusted(x):new Fulfilled(x)}function getHandlerMaybeThenable(x){return isPromise(x)?x._handler.join():getHandlerUntrusted(x)}function getHandlerUntrusted(x){try{var untrustedThen=x.then;return typeof untrustedThen==="function"?new Thenable(untrustedThen,x):new Fulfilled(x)}catch(e){return new Rejected(e)}}function Handler(){}Handler.prototype.when=Handler.prototype.become=Handler.prototype.notify=Handler.prototype.fail=Handler.prototype._unreport=Handler.prototype._report=noop;Handler.prototype._state=0;Handler.prototype.state=function(){return this._state};Handler.prototype.join=function(){var h=this;while(h.handler!==void 0){h=h.handler}return h};Handler.prototype.chain=function(to,receiver,fulfilled,rejected,progress){this.when({resolver:to,receiver:receiver,fulfilled:fulfilled,rejected:rejected,progress:progress})};Handler.prototype.visit=function(receiver,fulfilled,rejected,progress){this.chain(failIfRejected,receiver,fulfilled,rejected,progress)};Handler.prototype.fold=function(f,z,c,to){this.when(new Fold(f,z,c,to))};function FailIfRejected(){}inherit(Handler,FailIfRejected);FailIfRejected.prototype.become=function(h){h.fail()};var failIfRejected=new FailIfRejected;function Pending(receiver,inheritedContext){Promise.createContext(this,inheritedContext);this.consumers=void 0;this.receiver=receiver;this.handler=void 0;this.resolved=false}inherit(Handler,Pending);Pending.prototype._state=0;Pending.prototype.resolve=function(x){this.become(getHandler(x))};Pending.prototype.reject=function(x){if(this.resolved){return}this.become(new Rejected(x))};Pending.prototype.join=function(){if(!this.resolved){return this}var h=this;while(h.handler!==void 0){h=h.handler;if(h===this){return this.handler=cycle()}}return h};Pending.prototype.run=function(){var q=this.consumers;var handler=this.handler;this.handler=this.handler.join();this.consumers=void 0;for(var i=0;i<q.length;++i){handler.when(q[i])}};Pending.prototype.become=function(handler){if(this.resolved){return}this.resolved=true;this.handler=handler;if(this.consumers!==void 0){tasks.enqueue(this)}if(this.context!==void 0){handler._report(this.context)}};Pending.prototype.when=function(continuation){if(this.resolved){tasks.enqueue(new ContinuationTask(continuation,this.handler))}else{if(this.consumers===void 0){this.consumers=[continuation]}else{this.consumers.push(continuation)}}};Pending.prototype.notify=function(x){if(!this.resolved){tasks.enqueue(new ProgressTask(x,this))}};Pending.prototype.fail=function(context){var c=typeof context==="undefined"?this.context:context;this.resolved&&this.handler.join().fail(c)};Pending.prototype._report=function(context){this.resolved&&this.handler.join()._report(context)};Pending.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()};function Async(handler){this.handler=handler}inherit(Handler,Async);Async.prototype.when=function(continuation){tasks.enqueue(new ContinuationTask(continuation,this))};Async.prototype._report=function(context){this.join()._report(context)};Async.prototype._unreport=function(){this.join()._unreport()};function Thenable(then,thenable){Pending.call(this);tasks.enqueue(new AssimilateTask(then,thenable,this))}inherit(Pending,Thenable);function Fulfilled(x){Promise.createContext(this);this.value=x}inherit(Handler,Fulfilled);Fulfilled.prototype._state=1;Fulfilled.prototype.fold=function(f,z,c,to){runContinuation3(f,z,this,c,to)};Fulfilled.prototype.when=function(cont){runContinuation1(cont.fulfilled,this,cont.receiver,cont.resolver)};var errorId=0;function Rejected(x){Promise.createContext(this);this.id=++errorId;this.value=x;this.handled=false;this.reported=false;this._report()}inherit(Handler,Rejected);Rejected.prototype._state=-1;Rejected.prototype.fold=function(f,z,c,to){to.become(this)};Rejected.prototype.when=function(cont){if(typeof cont.rejected==="function"){this._unreport()}runContinuation1(cont.rejected,this,cont.receiver,cont.resolver)};Rejected.prototype._report=function(context){tasks.afterQueue(new ReportTask(this,context))};Rejected.prototype._unreport=function(){if(this.handled){return}this.handled=true;tasks.afterQueue(new UnreportTask(this))};Rejected.prototype.fail=function(context){this.reported=true;emitRejection("unhandledRejection",this);Promise.onFatalRejection(this,context===void 0?this.context:context)};function ReportTask(rejection,context){this.rejection=rejection;this.context=context}ReportTask.prototype.run=function(){if(!this.rejection.handled&&!this.rejection.reported){this.rejection.reported=true;emitRejection("unhandledRejection",this.rejection)||Promise.onPotentiallyUnhandledRejection(this.rejection,this.context)}};function UnreportTask(rejection){this.rejection=rejection}UnreportTask.prototype.run=function(){if(this.rejection.reported){emitRejection("rejectionHandled",this.rejection)||Promise.onPotentiallyUnhandledRejectionHandled(this.rejection)}};Promise.createContext=Promise.enterContext=Promise.exitContext=Promise.onPotentiallyUnhandledRejection=Promise.onPotentiallyUnhandledRejectionHandled=Promise.onFatalRejection=noop;var foreverPendingHandler=new Handler;var foreverPendingPromise=new Promise(Handler,foreverPendingHandler);function cycle(){return new Rejected(new TypeError("Promise cycle"))}function ContinuationTask(continuation,handler){this.continuation=continuation;this.handler=handler}ContinuationTask.prototype.run=function(){this.handler.join().when(this.continuation)};function ProgressTask(value,handler){this.handler=handler;this.value=value}ProgressTask.prototype.run=function(){var q=this.handler.consumers;if(q===void 0){return}for(var c,i=0;i<q.length;++i){c=q[i];runNotify(c.progress,this.value,this.handler,c.receiver,c.resolver)}};function AssimilateTask(then,thenable,resolver){this._then=then;this.thenable=thenable;this.resolver=resolver}AssimilateTask.prototype.run=function(){var h=this.resolver;tryAssimilate(this._then,this.thenable,_resolve,_reject,_notify);function _resolve(x){h.resolve(x)}function _reject(x){h.reject(x)}function _notify(x){h.notify(x)}};function tryAssimilate(then,thenable,resolve,reject,notify){try{then.call(thenable,resolve,reject,notify)}catch(e){reject(e)}}function Fold(f,z,c,to){this.f=f;this.z=z;this.c=c;this.to=to;this.resolver=failIfRejected;this.receiver=this}Fold.prototype.fulfilled=function(x){this.f.call(this.c,this.z,x,this.to)};Fold.prototype.rejected=function(x){this.to.reject(x)};Fold.prototype.progress=function(x){this.to.notify(x)};function isPromise(x){return x instanceof Promise}function maybeThenable(x){return(typeof x==="object"||typeof x==="function")&&x!==null}function runContinuation1(f,h,receiver,next){if(typeof f!=="function"){return next.become(h)}Promise.enterContext(h);tryCatchReject(f,h.value,receiver,next);Promise.exitContext()}function runContinuation3(f,x,h,receiver,next){if(typeof f!=="function"){return next.become(h)}Promise.enterContext(h);tryCatchReject3(f,x,h.value,receiver,next);Promise.exitContext()}function runNotify(f,x,h,receiver,next){if(typeof f!=="function"){return next.notify(x)}Promise.enterContext(h);tryCatchReturn(f,x,receiver,next);Promise.exitContext()}function tryCatch2(f,a,b){try{return f(a,b)}catch(e){return reject(e)}}function tryCatchReject(f,x,thisArg,next){try{next.become(getHandler(f.call(thisArg,x)))}catch(e){next.become(new Rejected(e))}}function tryCatchReject3(f,x,y,thisArg,next){try{f.call(thisArg,x,y,next)}catch(e){next.become(new Rejected(e))}}function tryCatchReturn(f,x,thisArg,next){try{next.notify(f.call(thisArg,x))}catch(e){next.notify(e)}}function inherit(Parent,Child){Child.prototype=objectCreate(Parent.prototype);Child.prototype.constructor=Child}function snd(x,y){return y}function noop(){}function initEmitRejection(){if(typeof process!=="undefined"&&process!==null&&typeof process.emit==="function"){return function(type,rejection){return type==="unhandledRejection"?process.emit(type,rejection.value,rejection):process.emit(type,rejection)}}else if(typeof self!=="undefined"&&typeof CustomEvent==="function"){return function(noop,self,CustomEvent){var hasCustomEvent=false;try{var ev=new CustomEvent("unhandledRejection");hasCustomEvent=ev instanceof CustomEvent}catch(e){}return!hasCustomEvent?noop:function(type,rejection){var ev=new CustomEvent(type,{detail:{reason:rejection.value,key:rejection},bubbles:false,cancelable:true});return!self.dispatchEvent(ev)}}(noop,self,CustomEvent)}return noop}return Promise}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})}).call(this,require("_process"))},{_process:11}],32:[function(require,module,exports){(function(define){"use strict";define(function(){return{pending:toPendingState,fulfilled:toFulfilledState,rejected:toRejectedState,inspect:inspect};function toPendingState(){return{state:"pending"}}function toRejectedState(e){return{state:"rejected",reason:e}}function toFulfilledState(x){return{state:"fulfilled",value:x}}function inspect(handler){var state=handler.state();return state===0?toPendingState():state>0?toFulfilledState(handler.value):toRejectedState(handler.value)}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory()})},{}],33:[function(require,module,exports){(function(define){define(function(require){var when=require("./when");var all=when.Promise.all;var slice=Array.prototype.slice;return function pipeline(tasks){var runTask=function(args,task){runTask=function(arg,task){return task(arg)};return task.apply(null,args)};return all(slice.call(arguments,1)).then(function(args){return when.reduce(tasks,function(arg,task){return runTask(arg,task)},args)})}})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"./when":34}],34:[function(require,module,exports){(function(define){"use strict";define(function(require){var timed=require("./lib/decorators/timed");var array=require("./lib/decorators/array");var flow=require("./lib/decorators/flow");var fold=require("./lib/decorators/fold");var inspect=require("./lib/decorators/inspect");var generate=require("./lib/decorators/iterate");var progress=require("./lib/decorators/progress");var withThis=require("./lib/decorators/with");var unhandledRejection=require("./lib/decorators/unhandledRejection");var TimeoutError=require("./lib/TimeoutError");var Promise=[array,flow,fold,generate,progress,inspect,withThis,timed,unhandledRejection].reduce(function(Promise,feature){return feature(Promise)},require("./lib/Promise"));var apply=require("./lib/apply")(Promise);when.promise=promise;when.resolve=Promise.resolve;when.reject=Promise.reject;when.lift=lift;when["try"]=attempt;when.attempt=attempt;when.iterate=Promise.iterate;when.unfold=Promise.unfold;when.join=join;when.all=all;when.settle=settle;when.any=lift(Promise.any);when.some=lift(Promise.some);when.race=lift(Promise.race);when.map=map;when.filter=filter;when.reduce=lift(Promise.reduce);when.reduceRight=lift(Promise.reduceRight);when.isPromiseLike=isPromiseLike;when.Promise=Promise;when.defer=defer;when.TimeoutError=TimeoutError;function when(x,onFulfilled,onRejected,onProgress){var p=Promise.resolve(x);if(arguments.length<2){return p}return p.then(onFulfilled,onRejected,onProgress)}function promise(resolver){return new Promise(resolver)}function lift(f){return function(){for(var i=0,l=arguments.length,a=new Array(l);i<l;++i){a[i]=arguments[i]}return apply(f,this,a)}}function attempt(f){for(var i=0,l=arguments.length-1,a=new Array(l);i<l;++i){a[i]=arguments[i+1]}return apply(f,this,a)}function defer(){return new Deferred}function Deferred(){var p=Promise._defer();function resolve(x){p._handler.resolve(x)}function reject(x){p._handler.reject(x)}function notify(x){p._handler.notify(x)}this.promise=p;this.resolve=resolve;this.reject=reject;this.notify=notify;this.resolver={resolve:resolve,reject:reject,notify:notify}}function isPromiseLike(x){return x&&typeof x.then==="function"}function join(){return Promise.all(arguments)}function all(promises){return when(promises,Promise.all)}function settle(promises){return when(promises,Promise.settle)}function map(promises,mapFunc){return when(promises,function(promises){return Promise.map(promises,mapFunc)})}function filter(promises,predicate){return when(promises,function(promises){return Promise.filter(promises,predicate)})}return when})})(typeof define==="function"&&define.amd?define:function(factory){module.exports=factory(require)})},{"./lib/Promise":16,"./lib/TimeoutError":18,"./lib/apply":19,"./lib/decorators/array":20,"./lib/decorators/flow":21,"./lib/decorators/fold":22,"./lib/decorators/inspect":23,"./lib/decorators/iterate":24,"./lib/decorators/progress":25,"./lib/decorators/timed":26,"./lib/decorators/unhandledRejection":27,"./lib/decorators/with":28}],35:[function(require,module,exports){var jQuery=require("jquery");!function(a){var b=null;a.modal=function(c,d){a.modal.close();var e,f;if(this.$body=a("body"),this.options=a.extend({},a.modal.defaults,d),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),c.is("a"))if(f=c.attr("href"),/^#/.test(f)){if(this.$elm=a(f),1!==this.$elm.length)return null;this.open()}else this.$elm=a("<div>"),this.$body.append(this.$elm),e=function(a,b){b.elm.remove()},this.showSpinner(),c.trigger(a.modal.AJAX_SEND),a.get(f).done(function(d){b&&(c.trigger(a.modal.AJAX_SUCCESS),b.$elm.empty().append(d).on(a.modal.CLOSE,e),b.hideSpinner(),b.open(),c.trigger(a.modal.AJAX_COMPLETE))}).fail(function(){c.trigger(a.modal.AJAX_FAIL),b.hideSpinner(),c.trigger(a.modal.AJAX_COMPLETE)});else this.$elm=c,this.open()},a.modal.prototype={constructor:a.modal,open:function(){var b=this;this.options.doFade?(this.block(),setTimeout(function(){b.show()},this.options.fadeDuration*this.options.fadeDelay)):(this.block(),this.show()),this.options.escapeClose&&a(document).on("keydown.modal",function(b){27==b.which&&a.modal.close()}),this.options.clickClose&&this.blocker.click(a.modal.close)},close:function(){this.unblock(),this.hide(),a(document).off("keydown.modal")},block:function(){var b=this.options.doFade?0:this.options.opacity;this.$elm.trigger(a.modal.BEFORE_BLOCK,[this._ctx()]),this.blocker=a('<div class="jquery-modal blocker"></div>').css({top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",position:"fixed",zIndex:this.options.zIndex,background:this.options.overlay,opacity:b}),this.$body.append(this.blocker),this.options.doFade&&this.blocker.animate({opacity:this.options.opacity},this.options.fadeDuration),this.$elm.trigger(a.modal.BLOCK,[this._ctx()])},unblock:function(){this.options.doFade?this.blocker.fadeOut(this.options.fadeDuration,function(){a(this).remove()}):this.blocker.remove()},show:function(){this.$elm.trigger(a.modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=a('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass+" current"),this.center(),this.options.doFade?this.$elm.fadeIn(this.options.fadeDuration):this.$elm.show(),this.$elm.trigger(a.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(a.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove(),this.$elm.removeClass("current"),this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration):this.$elm.hide(),this.$elm.trigger(a.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||a('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},center:function(){this.$elm.css({position:"fixed",top:"50%",left:"50%",marginTop:-(this.$elm.outerHeight()/2),marginLeft:-(this.$elm.outerWidth()/2),zIndex:this.options.zIndex+1})},_ctx:function(){return{elm:this.$elm,blocker:this.blocker,options:this.options}}},a.modal.prototype.resize=a.modal.prototype.center,a.modal.close=function(a){if(b){a&&a.preventDefault(),b.close();var c=b.$elm;return b=null,c}},a.modal.resize=function(){b&&b.resize()},a.modal.isActive=function(){return b?!0:!1},a.modal.defaults={overlay:"#000",opacity:.75,zIndex:1,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},a.modal.BEFORE_BLOCK="modal:before-block",a.modal.BLOCK="modal:block",a.modal.BEFORE_OPEN="modal:before-open",a.modal.OPEN="modal:open",a.modal.BEFORE_CLOSE="modal:before-close",a.modal.CLOSE="modal:close",a.modal.AJAX_SEND="modal:ajax:send",a.modal.AJAX_SUCCESS="modal:ajax:success",a.modal.AJAX_FAIL="modal:ajax:fail",a.modal.AJAX_COMPLETE="modal:ajax:complete",a.fn.modal=function(c){return 1===this.length&&(b=new a.modal(this,c)),this},a(document).on("click.modal",'a[rel="modal:close"]',a.modal.close),a(document).on("click.modal",'a[rel="modal:open"]',function(b){b.preventDefault(),a(this).modal()})}(jQuery)},{jquery:15}]},{},[4]);
</script>
<style>
/*!
Pure v0.6.0
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
https://github.com/yahoo/pure/blob/master/LICENSE.md
*/
/*!
normalize.css v^3.0 | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;*letter-spacing:normal;*word-spacing:-.43em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-flex;-webkit-flex-flow:row wrap;display:-ms-flexbox;-ms-flex-flow:row wrap;-ms-align-content:flex-start;-webkit-align-content:flex-start;align-content:flex-start}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class *="pure-u"]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-2,.pure-u-1-3,.pure-u-2-3,.pure-u-1-4,.pure-u-3-4,.pure-u-1-5,.pure-u-2-5,.pure-u-3-5,.pure-u-4-5,.pure-u-5-5,.pure-u-1-6,.pure-u-5-6,.pure-u-1-8,.pure-u-3-8,.pure-u-5-8,.pure-u-7-8,.pure-u-1-12,.pure-u-5-12,.pure-u-7-12,.pure-u-11-12,.pure-u-1-24,.pure-u-2-24,.pure-u-3-24,.pure-u-4-24,.pure-u-5-24,.pure-u-6-24,.pure-u-7-24,.pure-u-8-24,.pure-u-9-24,.pure-u-10-24,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%;*width:4.1357%}.pure-u-1-12,.pure-u-2-24{width:8.3333%;*width:8.3023%}.pure-u-1-8,.pure-u-3-24{width:12.5%;*width:12.469%}.pure-u-1-6,.pure-u-4-24{width:16.6667%;*width:16.6357%}.pure-u-1-5{width:20%;*width:19.969%}.pure-u-5-24{width:20.8333%;*width:20.8023%}.pure-u-1-4,.pure-u-6-24{width:25%;*width:24.969%}.pure-u-7-24{width:29.1667%;*width:29.1357%}.pure-u-1-3,.pure-u-8-24{width:33.3333%;*width:33.3023%}.pure-u-3-8,.pure-u-9-24{width:37.5%;*width:37.469%}.pure-u-2-5{width:40%;*width:39.969%}.pure-u-5-12,.pure-u-10-24{width:41.6667%;*width:41.6357%}.pure-u-11-24{width:45.8333%;*width:45.8023%}.pure-u-1-2,.pure-u-12-24{width:50%;*width:49.969%}.pure-u-13-24{width:54.1667%;*width:54.1357%}.pure-u-7-12,.pure-u-14-24{width:58.3333%;*width:58.3023%}.pure-u-3-5{width:60%;*width:59.969%}.pure-u-5-8,.pure-u-15-24{width:62.5%;*width:62.469%}.pure-u-2-3,.pure-u-16-24{width:66.6667%;*width:66.6357%}.pure-u-17-24{width:70.8333%;*width:70.8023%}.pure-u-3-4,.pure-u-18-24{width:75%;*width:74.969%}.pure-u-19-24{width:79.1667%;*width:79.1357%}.pure-u-4-5{width:80%;*width:79.969%}.pure-u-5-6,.pure-u-20-24{width:83.3333%;*width:83.3023%}.pure-u-7-8,.pure-u-21-24{width:87.5%;*width:87.469%}.pure-u-11-12,.pure-u-22-24{width:91.6667%;*width:91.6357%}.pure-u-23-24{width:95.8333%;*width:95.8023%}.pure-u-1,.pure-u-1-1,.pure-u-5-5,.pure-u-24-24{width:100%}.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:0 rgba(0,0,0,0);background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:hover,.pure-button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:-moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));background-image:-o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active{border:0;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4;cursor:not-allowed;box-shadow:none}.pure-button-hidden{display:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-form input[type=text],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input[type=text]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input:not([type]):focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus{outline:thin solid #129FEA;outline:1px auto #129FEA}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input[type=text][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input:not([type])[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form textarea:focus:invalid,.pure-form select:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input[type=text],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked select,.pure-form-stacked label,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-stacked input:not([type]){display:block;margin:.25em 0}.pure-form-aligned input,.pure-form-aligned textarea,.pure-form-aligned select,.pure-form-aligned .pure-help-inline,.pure-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form input.pure-input-rounded,.pure-form .pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=text],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=text],.pure-group input[type=password],.pure-group input[type=email],.pure-group input[type=url],.pure-group input[type=date],.pure-group input[type=month],.pure-group input[type=time],.pure-group input[type=datetime],.pure-group input[type=datetime-local],.pure-group input[type=week],.pure-group input[type=number],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=color]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form .pure-help-inline,.pure-form-message-inline,.pure-form-message{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-list,.pure-menu-item{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-link,.pure-menu-heading{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-separator{display:inline-block;*display:inline;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-allow-hover:hover>.pure-menu-children,.pure-menu-active>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-link,.pure-menu-disabled,.pure-menu-heading{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:hover,.pure-menu-link:focus{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td{background-color:#f2f2f2}.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
</style>
</body>
</html>