This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pot.min.js
1384 lines (1384 loc) · 291 KB
/
pot.min.js
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
1000
/*!
* Pot.js - JavaScript library
*
* Pot.js is an implemental utility library
* that can execute JavaScript without burdening the CPU.
*
* Version 1.2.3, 2014-12-16
* Copyright (c) 2012-2014 polygon planet <[email protected]>
* Dual licensed under the MIT or GPL v2 licenses.
* https://github.com/polygonplanet/Pot.js
* http://polygonplanet.github.com/Pot.js/
*/
(function a(aP){"use strict";var aN={VERSION:"1.21",TYPE:"full"},u,a5,Q,c,az,aX,aO,q,ap,L,x,ah,S,aU,ax,al,aM,O,aW,aK,b,k,aC,D,d,B,ay,aD,v,aZ,Z,F,a6,e,aj,N,aV,ar,a4,G,h,ak,A,aA,i,p,aJ,J,ab=Array.prototype,w=Object.prototype,a2=String.prototype,P=Function.prototype,f=ab.push,y=ab.slice,aE=ab.splice,aY=ab.concat,aT=ab.unshift,r=ab.indexOf,aH=ab.lastIndexOf,au=w.toString,ao=w.hasOwnProperty,U=P.toString,j=String.fromCharCode,g=(function(){var a8,a9=[];
for(a8=0;a8<=65535;a8++){a9[a8]=j(a8)}return function(ba){return a9[ba&65535]}}()),aF="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/1999/xhtml",s="http://www.w3.org/1999/xhtml",a0="http://www.w3.org/1999/xlink",ae="http://www.w3.org/1999/XSL/Transform",n="http://www.w3.org/2000/svg",Y="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",R=["javascript"]+[":void(0);"],aa="ABCDEFGHIJKLMNOPQRSTUVWXYZ",at="abcdefghijklmnopqrstuvwxyz",M="0123456789",aQ=/([-.*+?^${}()|[\]\/\\])/g,K=/^(?:[a-zA-Z0-9_~.-]|%[0-9a-fA-F]{2})*$/,aw=/List|Collection/i,aq=/^[\s\u00A0\u3000]+|[\s\u00A0\u3000]+$/g,aI=/^[\s\u00A0\u3000]+/g,av=/[\s\u00A0\u3000]+$/g,T=/[\s\u00A0\u3000]+/g,C=/\r\n|\r|\n/,l=/(\r\n|\r|\n)/,z=/^[(]?[^{]*?[{][\s\u00A0]*[}]\s*[)]?\s*$/,a3=/^(?:[\w!#$()*+,.:;=?@[\]^`|~-]|\\[ux][0-9a-f]+)*$/i,am=/^(?:[^<>"'&]|&(?:[a-z]\w{0,24}|#(?:x[0-9a-f]{1,8}|[0-9]{1,10}));)*$/i,ad,ai,X,V;
(function(a8){I(aN,{NAME:"Pot",System:{},Plugin:{},toString:function(){return aR(this.NAME||this.name||typeof this)},Browser:(function(bb){var a9={},bc,ba,bf,be,bg,bi={webkit:/(webkit)(?:.*version|)[\s\/]+([\w.]+)/,opera:/(opera)(?:.*version|)[\s\/]+([\w.]+)/,msie:/(msie)[\s\/]+([\w.]+)/,mozilla:/(?!^.*compatible.*$).*(mozilla)(?:.*?\s+rv[:\s\/]+([\w.]+)|)/},bd=[/webkit.*version[\s\/]+([\w.]+).*(safari)/,/webkit.*(chrome|safari)[\s\/]+([\w.]+)/,/(iphone|ipod|ipad|android).*version[\s\/]+([\w.]+)/,/(blackberry)(?:[\s\d]*|.*version)[\s\/]+([\w.]+)/,bi.webkit,bi.opera,bi.msie,/(?!^.*compatible.*$).*mozilla.*?(firefox)(?:[\s\/]+([\w.]+)|)/,bi.mozilla],bh=(""+(bb&&bb.userAgent)).toLowerCase();
if(bh){for(be=0,bg=bd.length;be<bg;be++){if((bc=bd[be].exec(bh))){break}}if(bc){if(/[^a-z]/.test(bc[1])){ba=bc[2];bf=bc[1]}else{ba=bc[1];bf=bc[2]}if(ba){a9[ba]={version:""+(bf||0)}
}}bc=bi.webkit.exec(bh)||bi.opera.exec(bh)||bi.msie.exec(bh)||bi.mozilla.exec(bh)||[];if(bc&&bc[1]){a9[bc[1]]={version:""+(bc[2]||0)}}}return a9}(a8)),LANG:(function(a9){return((a9&&(a9.language||a9.userLanguage||a9.browserLanguage||a9.systemLanguage))||"en").split(/[^a-zA-Z0-9]+/).shift().toLowerCase()
}(a8)),OS:(function(bg){var a9={},bd=bg||{},be,bf,bc,bh=(""+(bd.platform)).toLowerCase(),ba=(""+(bd.userAgent)).toLowerCase(),bb=(""+(bd.appVersion)).toLowerCase(),bi=[{s:"iphone",p:bh},{s:"ipod",p:bh},{s:"ipad",p:ba},{s:"blackberry",p:ba},{s:"android",p:ba},{s:"mac",p:bh},{s:"win",p:bh},{s:"linux",p:bh},{s:"x11",p:bb}];
for(be=0,bf=bi.length;be<bf;be++){bc=bi[be];if(~bc.p.indexOf(bc.s)){a9[bc.s]=true}}if(a9.android&&!~ba.indexOf("mobile")){a9.androidtablet=true}if(a9.ipad||a9.androidtablet){a9.tablet=true
}a9.toString=function(){var bj=[],bk;for(bk in a9){if(a9[bk]===true){bj.push(bk)}}return bj.join("/")};return a9}(a8)),Global:(function(){var a9=(new Function("return this;"))();
if(!aP||typeof aP!=="object"||!("setTimeout" in aP)){aP=this||a9||{}}return this||a9||{}}()),noop:function(){},tmp:{},Internal:{getMagicNumber:(function(a9){var bb=0,ba=+a9;
return function(){var bc=ba+(bb++);if(!isFinite(bc)||isNaN(bc)){bb=ba=bc=0}return bc}}("0xC26BEB642C0A")),getExportObject:function(bc){var bb,bd,a9;if(bc){if(u.isNonBrowser){bb=aO||aP
}else{bb=(N(aP)&&aP)||(N(aO)&&aO)||aN.currentWindow()}if(!bb&&typeof window!=="undefined"&&N(window)){bb=window}if(bb){do{bd=af(aN,"")}while(bd in bb);bb[bd]=1;a9=(new Function("try{return "+bd+"===1;}catch(e){}"))();
try{delete bb[bd]}catch(ba){try{bb[bd]=void 0}catch(ba){}}if(!a9){bb=aO}}}if(!bb){if(u.isNodeJS){if(typeof module==="object"&&typeof module.exports==="object"){bb=module.exports
}else{if(typeof exports==="object"){bb=exports}else{bb=aP}}}else{bb=aP}if(!bb){bb=aP||aO||aN.currentWindow()}}return bb},ScriptImplementation:a},update:I,Pot:aN})
}(typeof navigator!=="undefined"&&navigator||{}));u=aN.System;a5=aN.Plugin;Q=aN.toString;c=aN.Browser;az=aN.LANG;aX=aN.OS;aO=aN.Global;q=aN.noop;ap=aN.tmp;L=aN.Internal;
aN.update({PATH_DELIMITER:aX.win?";":":",DIR_DELIMITER:aX.win?"\\":"/",XML_NS_URI:aF,HTML_NS_URI:m,XHTML_NS_URI:s,XLINK_NS_URI:a0,XSL_NS_URI:ae,SVG_NS_URI:n,XUL_NS_URI:Y,JS_VOID_URI:R});
I(u,(function(){var ba={},be,bh,bj,bk,a8,bc,bl,a9,bb,bd,bf;ba.isWaitable=false;if(typeof window==="object"&&"setTimeout" in window&&window.window==window&&typeof document==="object"&&document.nodeType>0&&typeof document.documentElement==="object"){ba.isWebBrowser=true;
if(window.location&&/^(?:chrome|resource):?$/.test(window.location.protocol)){try{if(typeof Components!=="object"){throw false}ai=Components.classes;ad=Components.interfaces;
X=Components.results;V=Components.utils;ba.isWaitable=true;ba.hasComponents=true;if(c.firefox||c.mozilla){ba.isFirefoxExtension=true}}catch(bg){ad=ai=X=V=null}}try{bl=document.documentElement;
if(bl){bf=function(){};bf.prototype=bl;a9=new bf();if(bl.nodeName===a9.nodeName&&bl.nodeType===a9.nodeType){ba.canCloneDOM=true}}}catch(bg){}}else{ba.isNonBrowser=true;
if(typeof process!=="undefined"&&process&&process.version&&typeof require==="function"&&(typeof exports==="object"||(typeof module==="object"&&typeof module.exports==="object"))){ba.isNodeJS=true
}}if(aO&&aO.ActiveXObject||typeof ActiveXObject!=="undefined"&&ActiveXObject){ba.hasActiveXObject=true}if(!ba.isFirefoxExtension){if(c.chrome||c.webkit||c.safari){if(typeof chrome==="object"&&typeof chrome.extension==="object"){ba.isChromeExtension=true
}else{if(typeof safari==="object"&&typeof safari.extension==="object"){ba.isSafariExtension=true}}}}if(!ba.isChromeExtension&&!ba.isSafariExtension){if(typeof GM_log==="function"&&typeof GM_xmlhttpRequest==="function"){ba.isGreasemonkey=true
}else{if(typeof require==="function"){try{if("title" in require("windows").browserWindows.activeWindow){ba.isJetpack=true}}catch(bg){}}}if(ba.isWebBrowser&&!ba.isGreasemonkey&&!ba.isFirefoxExtension){ba.isNotExtension=true
}}try{bb={a:1,b:2};bf=function(){};bf.prototype=bb;bd=new bf();bd.a=0;if(bb!==bd&&bb.a===1&&bd.a===0&&bb.b===bd.b){ba.canProtoClone=true}}catch(bg){}try{be=(new Function("yield(0);"))();
if(be&&typeof be.next==="function"){ba.isYieldable=true}}catch(bg){}try{if(typeof FileReader!=="undefined"&&typeof FileReader.LOADING!=="undefined"&&typeof(new FileReader()).readAsText==="function"){ba.hasFileReader=true
}}catch(bg){}try{if(typeof Blob==="function"&&au.call(new Blob())==="[object Blob]"&&typeof Blob.prototype.slice==="function"){ba.hasBlob=true}}catch(bg){}try{bj=(typeof BlobBuilder!=="undefined")?BlobBuilder:(typeof MozBlobBuilder!=="undefined")?MozBlobBuilder:(typeof WebKitBlobBuilder!=="undefined")?WebKitBlobBuilder:(typeof MSBlobBuilder!=="undefined")?MSBlobBuilder:null;
if(!bj||typeof bj!=="function"||typeof bj.prototype.append!=="function"||typeof bj.prototype.getBlob!=="function"){bj=null}else{ba.BlobBuilder=bj;if(bj&&typeof MozBlobBuilder!=="undefined"&&bj===MozBlobBuilder){ba.isMozillaBlobBuilder=true
}}}catch(bg){}ba.createBlob=function(){if(ba.hasBlob){return function(bo,bn){var bm=aY.call([],bo);if(bn){return new Blob(bm,{type:bn})}else{return new Blob(bm)}}
}else{if(ba.BlobBuilder){return function(bo,bn){var bm=new ba.BlobBuilder();bm.append(bo);if(bn){return bm.getBlob(bn)}else{return bm.getBlob()}}}}}();try{bk=(typeof URL!=="undefined")?URL:(typeof webkitURL!=="undefined")?webkitURL:null;
if(!bk||typeof bk.createObjectURL!=="function"){bk=null}else{ba.BlobURI=bk}}catch(bg){}bh=[];if(typeof Worker==="function"){bh.push([Worker,"Worker"])}if(typeof ChromeWorker==="function"){bh.push([ChromeWorker,"ChromeWorker"])
}while(bh.length){(function(){var bx=bh.shift(),bo=bx[0],bw=bx[1],bq="has"+bw,by="can"+bw+"DataURI",bs="can"+bw+"BlobURI",bp="can"+bw+"PostObject",bn,bm,bv,br;bn=function(){return 1
};bm={a:function(){return bn()}};try{if(typeof bo.prototype.postMessage==="function"){ba[bq]=true;bv=new bo("data:application/javascript;base64,b25tZXNzYWdlPWZ1bmN0aW9uKGUpe3Bvc3RNZXNzYWdlKChlJiZlLmRhdGEmJigodHlwZW9mIGUuZGF0YS5hPT09J2Z1bmN0aW9uJyYmZS5kYXRhLmEoKSl8fGUuZGF0YSkpKzEpfQ==");
bv.onmessage=function(bA){if(bA){switch(bA.data){case (bm.a()+1):u[bp]=true;case (bm+1):case"x1":u[by]=true}}try{bv.terminate()}catch(bz){}};try{bv.postMessage(bm)
}catch(bu){bv.postMessage("x")}}}catch(bt){}if(ba[bq]&&ba.createBlob&&ba.BlobURI){try{br=new bo(ba.BlobURI.createObjectURL(ba.createBlob('onmessage=function(e){postMessage((e&&e.data&&((typeof e.data.a==="function"&&e.data.a())||e.data))+1)}')));
br.onmessage=function(bA){if(bA){switch(bA.data){case (bm.a()+1):u[bp]=true;case (bm+1):case"x1":u[bs]=true}}try{br.terminate()}catch(bz){}};try{br.postMessage(bm)
}catch(bu){br.postMessage("x")}}catch(bt){}}}())}try{if(typeof ArrayBuffer!=="undefined"&&(new ArrayBuffer(10)).byteLength===10&&typeof Uint8Array!=="undefined"&&(new Uint8Array([0,312])).subarray(1)[0]===56){ba.hasTypedArray=true;
try{a8=new Uint8Array([1,2]);bc=new Uint8Array(a8.subarray(0));bc[0]=5;if(a8[0]===1&&bc[0]===5){ba.canCopyTypedArray=true}a8=bc=null}catch(bi){}try{if(typeof Uint8ClampedArray!=="undefined"&&(new Uint8ClampedArray([0,312])).subarray(1)[0]===255){ba.hasUint8ClampedArray=true
}}catch(bi){}if(typeof DataView!=="undefined"&&(new DataView(new Uint8Array([16,32,64,128]).buffer)).getUint32(0)===270549120){ba.hasDataView=true}}}catch(bg){}return ba
}()));(function(ba){var a9=0,a8=ba.length,bb={};for(;a9<a8;a9++){(function(){var bd=ba[a9],bc=bd.toLowerCase();bb[aR(bd)]=bc;aN["is"+bd]=(function(){switch(bc){case"error":return function(be){return(be!=null&&(be instanceof Error||ax(be)===bc))||false
};case"date":return function(be){return(be!=null&&(be instanceof Date||ax(be)===bc))||false};default:return function(be){return ax(be)===bc}}}())}())}aN.update({typeOf:function(bc){return(bc==null)?String(bc):(bb[au.call(bc)]||"object")
},typeLikeOf:function(bd){var bc=ax(bd);if(bc!=="array"&&aD(bd)){bc="array"}return bc}})}("Boolean Number String Function Array Date RegExp Object Error".split(" ")));
aM=aN.isBoolean;O=aN.isNumber;aW=aN.isString;aK=aN.isFunction;b=aN.isArray;k=aN.isDate;aC=aN.isRegExp;D=aN.isObject;d=aN.isError;aD=aN.isArrayLike;ax=aN.typeOf;al=aN.typeLikeOf;
(function(a8){I(L,{callInBackground:{flush:function(ba){var a9=this.byEvent||this.byTick||this.byTimer;a9(ba)},byEvent:(function(){var ba;if(u.isNonBrowser||u.isNodeJS||typeof window!=="object"||typeof document!=="object"||typeof Image!=="function"||window.opera||c.opera||typeof document.addEventListener!=="function"){return false
}try{if(typeof(new Image()).addEventListener!=="function"){return false}}catch(a9){return false}ba="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
return function(bf){var bb,bd,bc=new Image();bd=function(){try{bc.removeEventListener("load",bd,false);bc.removeEventListener("error",bd,false)}catch(bg){}if(!bb){bb=true;
bf()}};bc.addEventListener("load",bd,false);bc.addEventListener("error",bd,false);try{bc.src=ba}catch(be){this.byEvent=this.byTimer}}}()),byTick:(function(){if(!u.isNodeJS||typeof process!=="object"||typeof process.nextTick!=="function"){return false
}return function(a9){process.nextTick(a9)}}()),byTimer:function(ba,a9){return setTimeout(ba,a9||0)}},setTimeout:function(a9,bb){try{return x.byTimer(a9,bb||0)}catch(ba){}},clearTimeout:function(ba){try{return clearTimeout(ba)
}catch(a9){}},setInterval:function(a9,bb){try{return setInterval(a9,bb||0)}catch(ba){}},clearInterval:function(ba){try{return clearInterval(ba)}catch(a9){}}});x=L.callInBackground;
ah=L.setTimeout;S=L.clearTimeout;aN.update({Cc:ai,Ci:ad,Cr:X,Cu:V,StopIteration:(function(){var a9=I(function(){return a9},{NAME:a8,toString:Q});a9.prototype={constructor:a9,NAME:a9.NAME,toString:a9.toString};
a9.prototype.constructor.prototype=a9.constructor.prototype;return new a9()}()),isStopIter:function(a9){if(a9&&((aU!==void 0&&(a9==aU||a9 instanceof aU))||(typeof StopIteration==="object"&&(a9==StopIteration||a9 instanceof StopIteration))||(this&&this.StopIteration!==void 0&&(a9==this.StopIteration||a9 instanceof this.StopIteration))||(~au.call(a9).indexOf(a8)||~String(a9&&a9.toString&&a9.toString()||a9).indexOf(a8))||(d(a9)&&a9[a8]&&!(a8 in a9[a8])&&!d(a9[a8])&&aZ(a9[a8])))){return true
}else{return false}},isIterable:function(a9){return !!(a9&&aK(a9.next)&&(~aN.getFunctionCode(a9.next).indexOf(a8)||aN.isNativeCode(a9.next)))},isScalar:function(a9){return a9!=null&&(aW(a9)||O(a9)||aM(a9))
},isBlob:function(a9){return !!(a9&&au.call(a9)==="[object Blob]")},isFileReader:function(a9){return !!(u.hasFileReader&&a9&&a9.constructor===FileReader)},isImage:function(){var a9=(typeof Image==="function")||(c.msie&&typeof Image==="object");
return function(ba){return !!(a9&&ba&&(ba.constructor===Image||au.call(ba)==="[object HTMLImageElement]"||ag(ba.tagName).toLowerCase()==="img"))}}(),isArguments:function(ba){var a9=false;
if(ba){if(au.call(ba)==="[object Arguments]"){a9=true}else{try{if("callee" in ba&&typeof ba.length==="number"){a9=true}}catch(bb){}}}return a9},isTypedArray:function(ba){var a9=false;
if(ba&&u.hasTypedArray&&(ba.constructor===ArrayBuffer||(ba.buffer&&ba.buffer.constructor===ArrayBuffer))){a9=true}return a9},isArrayBuffer:function(a9){return !!(u.hasTypedArray&&a9&&a9.constructor===ArrayBuffer)
},isArrayLike:function(ba){var a9;if(!ba){return false}if(b(ba)||ba instanceof Array||ba.constructor===Array||B(ba)||aj(ba)){return true}a9=ba.length;if(!O(a9)||(!D(ba)&&!b(ba))||ba===aN||ba===aO||ba===aP||N(ba)||aV(ba)||ar(ba)){return false
}if(ba.isArray||aN.isArguments(ba)||a4(ba)||((typeof ba.item==="function"||typeof ba.nextNode==="function")&&ba.nodeType!=3&&ba.nodeType!=4)||(0 in ba&&((a9-1) in ba))||aw.test(au.call(ba))){return true
}else{return false}},isPlainObject:function(bc){var a9=false,bb;try{if(!bc||!D(bc)||ar(bc)||N(bc)||aV(bc)){throw bc}if(bc.constructor&&!ao.call(bc,"constructor")&&!ao.call(bc.constructor.prototype,"isPrototypeOf")){throw bc
}for(bb in bc){}a9=(bb===void 0||ao.call(bc,bb))}catch(ba){a9=false}return a9},isEmpty:function(bd){var bb,bc,ba,a9=aN.getFunctionCode;switch(al(bd)){case"object":bb=true;
for(bc in bd){bb=false;break}break;case"array":case"string":bb=(!bd||!bd.length);break;case"function":ba=function(){};bb=true;for(bc in bd){if(bc in ba){continue
}bb=false;break}if(bb){if(a9(bd)===a9(ba)||z.test(a9(bd))){if(bd.prototype){for(bc in bd.prototype){if(bc in ba.prototype){continue}bb=false;break}}}else{bb=false
}}break;default:bb=(bd==false||!bd||bd==null||bd==0)}return bb},isDeferred:function(a9){return a9!=null&&((a9 instanceof h)||(a9.id!=null&&a9.id===h.fn.id&&a9.NAME!=null&&a9.NAME===h.fn.NAME))
},isIter:function(a9){return a9!=null&&((a9 instanceof A)||(a9.id!=null&&a9.id===A.fn.id&&a9.NAME!=null&&a9.NAME===A.fn.NAME&&typeof a9.next==="function"))},isWorkeroid:function(a9){return a9!=null&&((a9 instanceof aJ)||(a9.id!=null&&a9.id===aJ.fn.id&&a9.NAME!=null&&a9.NAME===aJ.fn.NAME))
},isArrayBufferoid:function(a9){return J&&a9!=null&&((a9 instanceof J)||(a9.id!=null&&a9.id===J.fn.id&&a9.NAME!=null&&a9.NAME===J.fn.NAME))},isHash:function(a9){return a9!=null&&((a9 instanceof ak)||(a9.id!=null&&a9.id===ak.fn.id&&a9.NAME!=null&&a9.NAME===ak.fn.NAME))
},isJSEscaped:function(a9){return a3.test(a9)},isPercentEncoded:function(a9){return K.test(a9)},isHTMLEscaped:function(a9){return am.test(a9)},isNumeric:function(a9){return(a9==null||(a9===""||(a9==""&&a9&&a9.constructor===String))||(typeof a9==="object"&&a9.constructor!==Number))?false:!isNaN(a9-0)
},isInt:function(a9){return O(a9)&&isFinite(a9)&&a9%1==0},isNativeCode:function(ba){var a9;if(!ba){return false}if(aN.getFunctionCode){a9=aN.getFunctionCode(ba)}else{if(aK(ba)){a9=U.call(ba)
}else{if(ba.toString){a9=ba.toString()}else{a9=""+ba}}}return !!(~a9.indexOf("[native code]")&&a9.length<=92)},isBuiltinMethod:function(a9){return a9!=null&&(typeof a9==="function"||a9.constructor===Function)&&aN.isNativeCode(a9)
},isWindow:function(a9){return a9!=null&&typeof a9==="object"&&"setInterval" in a9&&a9.window==a9&&!!(a9.location||a9.screen||a9.navigator||a9.document)},isDocument:function(a9){return a9!=null&&typeof a9==="object"&&"getElementById" in a9&&a9.nodeType>0&&typeof a9.documentElement==="object"
},isElement:function(a9){return a9!=null&&typeof a9==="object"&&a9.nodeType==1},isNodeLike:function(a9){return a9!=null&&typeof a9==="object"&&a9.nodeType>0},isNodeList:function(a9){var ba;
if(a9&&O(a9.length)){ba=typeof a9.item;if(D(a9)){return ba==="function"||ba==="string"}else{if(aK(a9)){return ba==="function"}}}return false},isDOMLike:(function(){var a9=new RegExp("X?HTML|XUL|XML|DOM|Element|Node|Entity|Plugin|Worker|Character|Data|Comment|Document|Window|Fragment|Range|Event|CDATA|Section|Process|Shared|List|Collection|Audio|Video|Canvas|Image|Notify|Text|Option|Socket|File|Session|Local","i");
return function(ba){return(G(ba)||a4(ba)||N(ba)||aV(ba))||ba!=null&&typeof ba==="object"&&(((ba.preventDefault||"returnValue" in ba)&&(ba.target||ba.currentTarget||ba.originalTarget||ba.pageX))||((ba.selectNode||ba.selectNodeContents||ba.surroundContents)&&(ba.cloneRange||ba.commonAncestorContainer||ba.insertNode||ba.compareBoundaryPoints))||((ba.getRangeAt||ba.addRange||ba.deleteFromDocument)&&(ba.anchorNode||ba.anchorOffset||ba.focusNode||ba.isCollapsed||ba.rangeCount))||("cssText" in ba&&"color" in ba&&"margin" in ba&&"padding" in ba&&"border" in ba)||("ownerElement" in ba&&"isId" in ba&&"name" in ba&&"value" in ba)||(ba.postMessage&&"terminate" in ba)||a9.test(au.call(ba)))
}}())})}("StopIteration"));aU=aN.StopIteration;B=aN.isTypedArray;ay=aN.isArrayBuffer;aD=aN.isArrayLike;v=aN.isNumeric;aZ=aN.isStopIter;Z=aN.isDeferred;F=aN.isHash;
a6=aN.isIter;e=aN.isWorkeroid;aj=aN.isArrayBufferoid;N=aN.isWindow;aV=aN.isDocument;ar=aN.isElement;a4=aN.isNodeList;G=aN.isNodeLike;(function(){var bc,bh,a8,bf,ba,bg;
bf="window contentWindow defaultView parentWindow content top".split(" ");ba="ownerDocument document".split(" ");function bb(bi){var bj;if(bi){if(N(bi)){bj=bi}else{a7(bf,function(bl){try{if(N(bi[bl])){bj=bi[bl]
}if(bi[bl].content&&N(bi[bl].content)){bj=bi[bl].content}}catch(bk){}if(bj){throw aU}})}}return bj}function a9(bi){var bj;if(bi){if(aV(bi)){bj=bi}else{a7(ba,function(bl){try{if(aV(bi[bl])){bj=bi[bl]
}if(bi[bl].content&&aV(bi[bl].content.document)){bj=bi[bl].content.document}}catch(bk){}if(bj){throw aU}})}}return bj}a7([aP,aO,typeof window==="undefined"?this:window,typeof document==="undefined"?this:document],function(bi){if(bi){if(!bc){bc=bb(bi)
}if(!bh){bh=a9(bi)}if(bc&&bh){throw aU}}});if(u.isNodeJS){a8=(typeof process==="object"&&process.mainModule&&process.mainModule.filename)||(typeof __filename==="string"&&__filename)
}else{if(bh){try{a8=bh.documentURI||bh.baseURI||bh.URL}catch(bd){}}if(!a8&&bc){try{a8=bc.location&&bc.location.href||bc.location}catch(bd){try{bg=bh.createElement("a");
bg.href="";a8=bg.href}catch(be){}}}}I(u,{currentWindow:bc||{},currentDocument:bh||{},currentURI:ag(a8,true)});aN.update({currentWindow:function(){return u.currentWindow
},currentDocument:function(){return u.currentDocument},currentURI:function(){return u.currentURI}})}());I(u,{isBuiltinObjectKeys:aN.isBuiltinMethod(Object.keys),isBuiltinArrayForEach:aN.isBuiltinMethod(ab.forEach),isBuiltinArrayIndexOf:aN.isBuiltinMethod(ab.indexOf),isBuiltinArrayLastIndexOf:aN.isBuiltinMethod(ab.lastIndexOf)});
aN.update({keys:(function(){var ba=!({toString:null}).propertyIsEnumerable("toString"),a9=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a8=a9.length;
return function(bc){var bd=[],bi=typeof bc,bf,bb,be;if(bi!=="object"&&bi!=="function"||bc===null){return bd}if(aD(bc)){bf=bc.length;for(be=0;be<bf;be++){if(be in bc){bd[bd.length]=be
}}}else{if(u.isBuiltinObjectKeys){try{bd=Object.keys(bc);return bd}catch(bg){}}for(bb in bc){try{if(ao.call(bc,bb)){bd[bd.length]=bb}}catch(bh){}}if(ba){for(be=0;
be<a8;be++){try{if(ao.call(bc,a9[be])){bd[bd.length]=a9[be]}}catch(bj){}}}}return bd}}()),globalEval:I(function(a9){var bc=aN.globalEval,a8,bg,ba,bf,be,bd;if(a9&&bc.patterns.valid.test(a9)){if(u.hasActiveXObject){if(typeof execScript!=="undefined"&&execScript&&bc.test(execScript)){return execScript(a9,bc.language)
}else{ba="execScript";if(ba in aP&&bc.test(ba,aP)){return aP[ba](a9,bc.language)}else{if(ba in aO&&bc.test(ba,aO)){return aO[ba](a9,bc.language)}}}}ba="eval";if(ba in aP&&bc.test(ba,aP)){bg=aP
}else{if(ba in aO&&bc.test(ba,aO)){bg=aO}}if(u.isGreasemonkey){return aN.localEval(a9,bg||aO)}if(bg){if(bg[ba].call&&bg[ba].apply&&bc.test(ba,bg,true)){return bg[ba].call(bg,a9)
}if(bc.worksForGlobal==null){bc.worksForGlobal=false;do{a8=af(aN,"")}while(a8 in bg);bg[a8]=1;bg[ba]("try{delete "+a8+";}catch(e){}");if(!(a8 in bg)){bc.worksForGlobal=true
}try{delete bg[a8]}catch(bb){try{bg[a8]=void 0}catch(bb){}}}if(bc.worksForGlobal){return bg[ba](a9)}}if(u.isNodeJS){return bc.doEvalInGlobalNodeJS(ba,a9)}if(u.isWebBrowser&&typeof document==="object"){bf=document;
bd=bf.getElementsByTagName("head");if(bd&&bd[0]){bd=bd[0]}else{bd=bf.head||bf.body||bf.documentElement}if(bd){be=bf.createElement("script");be.type="text/javascript";
be.defer=be.async=false;if(u.hasActiveXObject&&"text" in be){be.text=a9}else{be.appendChild(bf.createTextNode(a9))}bd.appendChild(be);bd.removeChild(be)}}else{return aN.localEval(a9,bg||aO)
}}},{language:"JavaScript",patterns:{valid:/\S/},test:function(ba,bc,a9){var a8=false,bd="(void 0);";try{if(bc){if(a9){bc.func.call(null,bd)}else{bc.func(bd)}}else{if(a9){ba.call(null,bd)
}else{ba(bd)}}a8=true}catch(bb){a8=false}return a8},doEvalInGlobalNodeJS:function(bb,a9){var bg,bd=aN.globalEval.doEvalInGlobalNodeJS,ba,be,bf=aO,a8;if(bd.worksForGlobal==null){try{bd.worksForGlobal=false;
do{a8=af(aN,"")}while(a8 in bf);bf[a8]=1;bf[bb].call(bf,"try{delete "+a8+";}catch(e){}");if(!(a8 in bf)){bd.worksForGlobal=true}else{try{delete bf[a8]}catch(bc){}}}catch(bc){bd.worksForGlobal=false
}}if(bd.worksForGlobal){bg=bf[bb].call(bf,a9)}else{if(typeof require!=="undefined"&&require){ba=require("vm");if(ba&&ba.createScript){be=ba.createScript(a9);if(be&&be.runInThisContext){bg=be.runInThisContext()
}}}}return bg}}),localEval:I(function(bd,a9){var bc=aN.globalEval,bb=aN.localEval,ba,a8;if(bd&&bc.patterns.valid.test(bd)){ba="eval";if(ba in aP&&bc.test(ba,aP)){a8=aP
}else{if(ba in aO&&bc.test(ba,aO)){a8=aO}}if(a8&&a8[ba]){if(a8[ba].call&&a8[ba].apply&&bc.test(ba,a8,true)){return bb.doEval(bd,a8,a9)}else{if(a9==null){return bb.doEval(bd,a8,a9,true)
}}}return bb.doEvalByFunc(bd,a9)}},{isLiteral:/^\s*(?!(?:return|var|if|do|for|try|while)\b\s*)[\w$.!"'~(){}[\]]/,isFunc:/^\s*function\b[^{]*[{][\s\S]*[}][^}]*$/,clean:/^(?:[{[(']{0}[')\]}]+|)[;\s\u00A0]*|[;\s\u00A0]*$/g,doEval:function(){try{return arguments[1]["eval"].call(arguments[2]||arguments[1],arguments[0])
}catch(a8){}if(arguments[3]){return arguments[1]["eval"](arguments[0])}else{return aN.localEval.doEvalByFunc(arguments[0],arguments[2]||arguments[1])}},doEvalByFunc:function(ba,a8){var a9=aN.localEval,bb;
if(a9.isFunc.test(ba)||(a9.isLiteral.test(ba)&&!aN.hasReturn(ba))){bb="return("+String(ba).replace(a9.clean,"")+");"}else{bb=ba}return(new Function("return(function(){"+bb+"}).call(this);")).call(a8)
}}),getFunctionCode:function(a8){if(aK(a8)){return U.call(a8)}if(aW(a8)){if(a8.toString){return a8.toString()}return""+a8}return""},isWords:(function(){var a9=/\s/,a8=/[^$\w\u0100-\uFFFF]/;
return function(ba){return aW(ba)&&!a9.test(ba)&&!a8.test(ba)}}()),isNL:(function(){var a8=/[^\r\n\u2028\u2029]/;return function(a9){return aW(a9)&&!a8.test(a9)}
}()),format:(function(){var a8,a9=/#(\d+)/g,ba=function(bb,bc){return a8&&a8[+bc]};return function(bb){var bc=ag(bb,true);a8=a1(arguments);if(!a8||!a8.length){return bc
}a9.lastIndex=0;return bc.replace(a9,ba)}}()),tokenize:(function(){var bb={TOKEN:new RegExp("(/[*][\\s\\S]*?[*]/|/{2,}[^\\r\\n]*(?:\\r\\n|\\r|\\n|)|\"(?:\\\\[\\s\\S]|[^\"\\r\\n\\\\])*\"|'(?:\\\\[\\s\\S]|[^'\\r\\n\\\\])*'|(^|[-!%&*+,/:;<=>?[{(^|~])(?:((?![\\r\\n])\\s+|(?:\\r\\n|\\r|\\n))|\\s*)(?:((?:/(?![*])(?:\\\\.|[^/\\r\\n\\\\])+/)(?:[gimy]{0,4}|\\b))(?=\\s*(?:(?!\\s*[/\\\\<>*+%`^\"'\\w$-])[^/\\\\<>*+%`^'\"@({[\\w$-]|===?|!==?|[|][|]|[&][&]|/(?:[*]|/)|[,.;:!?)}\\]\\r\\n]|$)))|<(\\w+(?::\\w+|))\\b[^>]*>(?:(?!</\\5>(?!\\s*['\"]))[\\s\\S])*</\\5>|<>[\\s\\S]*?</>|>>>=?|<<=|===|!==|>>=|[+][+](?=[+])|[-][-](?=[-])|[=!<>*+/&|^-]=|[&][&]|[|][|]|[+][+]|[-][-]|<<|>>|0(?:[xX][0-9a-fA-F]+|[0-7]+)|\\d+(?:[.]\\d+)?(?:[eE][+-]?\\d+)?|[1-9]\\d*|[-+/%*=&|^~<>!?:,;@()\\\\[\\].{}]|(?:(?![\\r\\n])\\s)+|(?:\\r\\n|\\r|\\n)|[^\\s+/%*=&|^~<>!?:,;@()\\\\[\\].{}'\"-]+)","g"),LINEBREAK:/^(?:\r\n|\r|\n)/,NOTSPACE:/[\S\r\n]/,COMMENTS:/^\/{2,}[\s\S]*$|^\/[*][\s\S]*?[*]\/$/},a8=8192,ba=0,a9=".",bc={};
return function(bi){var bh=[],bd,be,bg,bf=aN.getFunctionCode(bi);if(bf){if((a9+bf) in bc){return bc[a9+bf]}bb.TOKEN.lastIndex=0;while((bd=bb.TOKEN.exec(bf))!=null){be=bd[1];
if(!bb.NOTSPACE.test(be)||bb.COMMENTS.test(be)){continue}if(bd[4]){if(bd[2]){bh[bh.length]=bd[2]}if(bd[3]&&bb.NOTSPACE.test(bd[3])){bh[bh.length]=bd[3]}bh[bh.length]=bd[4]
}else{bg=bh[bh.length-1];if(!bg||!bb.LINEBREAK.test(bg)||!bb.LINEBREAK.test(be)){bh[bh.length]=be}}}if(ba<a8){bc[a9+bf]=bh;ba++}}return bh}}()),joinTokens:(function(){var a9=/^[^\s+\/%*=&|^~<>!?:,;@()\\[\].{}'"-]+$/,a8=/^[-+]+$/;
return function(bf){var bi=[],be,bc,bh,bb,bg,bd,ba;if(b(bf)){be=bf.length;for(bd=0;bd<be;bd++){ba=bf[bd];if(!bc){bi[bi.length]=ba}else{bb="";bg="";if(ba==="in"){if(!bh){bb=" "
}bg=" "}else{if(a8.test(ba)){if(!bh&&a8.test(bc)){bb=" "}}else{if(a9.test(bc.slice(-1))&&a9.test(ba.charAt(0))){bb=" "}}}if(bh===" "){bb=""}bi[bi.length]=bb+ba+bg
}bc=ba;bh=bg}}return bi.join("")}}()),hasReturn:(function(){var a9={STRIP:new RegExp("^\\s*function\\b[^{]*[{]|[}][^}]*$|/[*][\\s\\S]*?[*]/|/{2,}[^\\r\\n]*(?:\\r\\n|\\r|\\n|)|\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'","g"),RETURN:/(?:^|\s|[^\w$.]\b)return(?:[^\w$.]\b|\s|$)/,FUNC:/(?:^|\s|[^\w$.]\b)function(?:[^\w$.]\b|\s|)[^{}]*$/,PREREGEX:/(?:^|[,;:!?=&|!([]|[^\w$.<>%'"@){}\]])\s*\/$/,REGEXP:/(\/(?![*])(?:\\.|[^\/\r\n\\])+\/)$/,E4X:/(?:^|[(){}<>&|%*~^!?:;,\/[\]=+-])\s*<([^\s>]*)[^>]*>$/,TAG:/<([^\s>]*)[^>]*>$/},a8=8192,bb=0,ba={};
return function(bf){var bi=false,bd,bj,bl,bc,bk,bq,br,bs,bn,bh,bg,bm,bp,be,bt,bo;bd=aN.getFunctionCode(bf);if(bd in ba){return ba[bd]}bc=bd;bd=bd.replace(a9.STRIP,"");
if(bd&&a9.RETURN.test(bd)){bn=0;bh=0;bm="";bg="";bk="";bt="";bo=false;be=false;br=bd.length;for(bq=0;bq<br;bq++){bs=bd.charAt(bq);if(bm&&bs!=="/"){bm+=bs;continue
}switch(bs){case"{":if(bh===0&&a9.FUNC.test(bk)){bn++}break;case"}":if(bh===0&&bn>0){bn--}break;case"/":if(!bo&&bn===0){if(bh>0){bg+=bs}else{if(!bm){bk+=bs;if(a9.PREREGEX.test(bk)){bm=bs;
bk=bk.slice(0,-1)+" "}}else{if(bm){bm+=bs;if(a9.REGEXP.test(bm)){bm=""}}}}}break;case"-":if(bn===0){if(bh>0){bg+=bs;if(bg.slice(-4)==="<!--"){bo=true;bg=bg.slice(0,-4)+" "
}}else{bk+=bs}}break;case"[":if((be||!bo)&&bn===0){if(bh>0){bg+=bs;if(bg.slice(-9).toUpperCase()==="<![CDATA["){bo=true;be=true;bg=bg.slice(0,-9)+" "}}else{bk+=bs
}}break;case"]":case"<":if((be||!bo)&&bn===0){if(bh>0){bg+=bs}else{bk+=bs}}break;case">":if(bn===0){if(bh===0){bk+=bs;if(a9.E4X.test(bk)){bp=bk.match(a9.TAG);bh++;
bk=bk.slice(0,-bp[0].length)+" ";bt=bp[1];bl=new RegExp("</"+ac(bt)+">$");bj=new RegExp("<"+ac(bt)+"\\b[^>]*>$")}}else{if(bh>0){if(bo){if((!be&&bg.slice(-2)==="--")||(be&&bg.slice(-2)==="]]")){bo=be=false;
bg=bg.slice(0,-2)}bg+=" ";break}bg+=bs;if(bl&&bl.test(bg)){bh--;if(bh===0){bt=bg=""}}else{if(bj&&bj.test(bg)){bh++}}}}}break;default:if(!bo&&bn===0){if(bh>0){bg+=bs
}else{bk+=bs}}}}if(a9.RETURN.test(bk)){bi=true}}if(bb<a8){ba[bc]=bi;bb++}return bi}}()),override:function(a8,ba,bd,bc){var bb=[],a9;if(a8&&ba&&(bd||bc)){if(bc){if(aK(bd)){a9=bd;
bd=bc;bc=a9}}else{if(aK(bd)){bc=bd}}if(aC(bd)){bd=[bd,""]}else{if(aW(bd)){bd=[new RegExp(ac(bd),"g"),""]}}a7(a1(ba),function(be){if(be){a7(a8,function(bf,bg){if(aK(bf)&&((aC(be)&&be.test(bg))||be==bg)){bb[bb.length]=bg
}})}});a7(bb,function(bj){var bi,bg,bh,bf,be;if(ao.call(a8,bj)){bi=a8[bj];be=!!(a8[bj]&&a8[bj].apply&&typeof a8[bj].apply===typeof a8[bj].call);if(bd){bg=bh=aN.getFunctionCode(bi);
bf=a1(bd);if(!b(bf[0])){bf=[bf]}a7(bf,function(bk){var bn,bm;try{bn=bk[0];bm=bk[1];if(aW(bn)){bn=new RegExp(ac(bn),"g")}if(!aW(bm)){bm=""}bg=bg.replace(bn,bm)}catch(bl){}});
if(bh!==bg){bi=aN.localEval(bg,a8)}}a8[bj]=I(function(){var bl=this,bk=arguments;if(aK(bc)){return bc.call(bl,function(){var bm=arguments;if(bm.length===1&&bm[0]&&aN.isArguments(bm[0])&&bm[0]===bk){if(be){return bi.apply(bl,a1(bm[0]))
}else{return H(a8,bj,a1(bm[0]))}}else{if(be){return bi.apply(bl,a1(bm))}else{return H(a8,bj,a1(bm))}}},bk,bl,bj)}else{return bi.apply(bl,bk)}},a8[bj]);if(!a8[bj].overridden||O(a8[bj].overridden)){I(a8[bj],{overridden:((a8[bj].overridden||0)-0)+1})
}}})}return a8},getErrorMessage:function(a8,a9){var ba;if(d(a8)){ba=String(a8.message||a8.description||(a8.toString&&a8.toString())||a8)}else{ba=(a8&&a8.toString&&a8.toString())||a8
}return ag(ba)||ag(a9)||"error"},createBlob:function(a9,a8){if(u.createBlob){try{return u.createBlob(a9,a8)}catch(ba){}}return null},createConstructor:function(a8,a9,bc){var be,bb,bd,ba="init";
if(aW(a8)){bd=a8}else{bc=a9;a9=a8}bb=a9||{};if(!bc&&ba in bb){bc=ba}if(aW(bc)&&bc in bb){be=function(){this[bc].apply(this,arguments)}}else{if(aK(bc)){a9.init=bc;
be=function(){this.init.apply(this,arguments)}}}if(!be){be=function(){}}be.prototype=bb;be.prototype.constructor=be;if(bd){be.prototype.toString=function(){return aR(bd)
}}return be}});function I(){var ba=arguments,a9=ba.length,bb=1,be,bd,a8;if(a9===bb){be=this||{};bb--}else{be=ba[bb-1]}if(be){do{a8=ba[bb];if(a8){for(bd in a8){try{be[bd]=a8[bd]
}catch(bc){}}}}while(++bb<a9)}return be}function a1(ba,a9){var bf,bc,a8,bd=a1,bb;if(bd.canNodeList==null){if(u.currentDocument){try{bb=y.call(u.currentDocument.documentElement.childNodes)[0].nodeType;
bb=null;bd.canNodeList=true}catch(be){bd.canNodeList=false}}}if(ba==null){bf=[ba]}else{switch(ax(ba)){case"array":bf=ba.slice();break;case"object":if(aD(ba)){if(!bd.canNodeList&&a4(ba)){bf=[];
bc=0;a8=ba.length;do{bf[bc]=ba[bc]}while(++bc<a8)}else{bf=y.call(ba)}break}default:bf=y.call(aY.call([],ba))}}if(a9>0){bf=bf.slice(a9)}return bf}function W(be,ba){var bg=0,a8=0,bc=arguments,bd=W,bf,a9;
if(!bd.PATTERNS){bd.PATTERNS={BASE36GZ:/[g-z]/,BASE36G:/[^a-z0-9]/g,BASE36:/[^a-z0-9]/,BASE16:/[a-f]/,MB_DIGITS:/[\uFF10-\uFF19]/,COMMAS:/[,\uFF0C]+/g,STRIP:/[^\w$]/g,NUMBERS:/([+-]?(?:0[0-7]+|0x[\da-f]+|(?:\d+[.]?\d*|[.]\d+)(?:e[-+]?\d+)?))/i,LEFT_SYMBOLS:/^[\s\xA0\u3000\x00-\x20!-\/:-@[-\]^-`{|}~\x7F-\xFF]*/,LEFT_NUMBERS:/^[^\d]{0,5}((?:0x?|)(?:\d+[.]?\d*|[.]\d+)(?:e[-+]?\d+|))/i}
}if(v(be)){bg=be-0}else{if(bc.length>=2&&v(ba)){bg=ba-0}else{if(be==null){bg=0}else{a8=0;switch(al(be)){case"boolean":bg=(be==true)?1:0;break;case"string":if(!be){bg=a8
}else{bf=be.replace(T,"").replace(bd.PATTERNS.COMMAS,"");if(aN.Text&&bd.PATTERNS.MB_DIGITS.test(bf)){bf=aN.Text.toHankakuCase(bf)}if((a9=bf.match(bd.PATTERNS.NUMBERS))&&bf.indexOf(a9[1])===0){bg=a9[1]-0
}else{if(aN.Sanitizer&&aN.isJSEscaped(bf)){bf=aN.Sanitizer.unescapeSequence(bf)}if(aN.Sanitizer&&aN.isHTMLEscaped(bf)){bf=aN.Sanitizer.unescapeHTML(bf)}if(aN.URI&&aN.isPercentEncoded(bf)){bf=aN.URI.urlDecode(bf)
}if((a9=bf.match(bd.PATTERNS.NUMBERS))&&bf.indexOf(a9[1])===0){bg=a9[1]-0}else{if(!bd.PATTERNS.BASE36.test(bf)){if(bd.PATTERNS.BASE36GZ.test(bf)){bg=parseInt(bf,36)
}else{if(bd.PATTERNS.BASE16.test(bf)){bg=parseInt(bf,16)}else{bg=parseInt(bf,10)}}}else{bf=bf.replace(bd.PATTERNS.LEFT_SYMBOLS,"");if((a9=bf.match(bd.PATTERNS.LEFT_NUMBERS))){bg=a9[1]-0
}else{if((a9=bf.match(bd.PATTERNS.NUMBERS))){bg=a9[1]-0}else{bg=parseInt(bf.replace(bd.PATTERNS.BASE36G,""),36)}}}}}}break;case"function":bg=3400406589+(+be.length||0);
break;case"regexp":bf=be.toString();if(aN.Crypt){bg=aN.Crypt.hashCode(bf)}else{bg=bd(bf)}break;case"array":bg=be.length;break;case"date":bg=be.getTime();break;case"number":bg=be-0;
break;case"object":bg=2829954028;break;case"error":bg=bd(String(be.message||be.description||be));break;default:try{bg=bd(aN.JSON.stringify(be))}catch(bb){bg=bd((be==null)?String(be):be.toString())
}}}}}return(v(bg)?bg:a8)-0}function aS(){return +new Date}function ag(ba,bb){var a9="",bc,a8=arguments.length;if(ba!==null){switch(typeof ba){case"string":case"number":case"xml":a9=ba;
break;case"boolean":if(a8>=2&&!bb){a9=ba}else{if(!bb){a9=ba?1:""}}break;case"object":if(ba){bc=ba.constructor;if(bc===String||bc===Number||(typeof XML!=="undefined"&&bc===XML)||(typeof Buffer!=="undefined"&&bc===Buffer)){a9=ba
}else{if(bc===Boolean){if(a8>=2&&!bb){a9=ba}else{if(!bb){a9=(ba==true)?1:""}}}}}}}return a9.toString()}function aL(ba,bb,a8){var a9;if(bb){a9=new RegExp(["^[","]+|[","]+$"].join(ac(bb)),"g"+(a8?"i":""))
}else{a9=aq}return ag(ba,true).replace(a9,"")}function ac(a8){return ag(a8,true).replace(aQ,"\\$1")}function H(){var bg=a1(arguments),bi=bg.length,bc,a8,bb,bh,a9,bj,bd,be,ba;
try{switch(bi){case 0:throw false;case 1:a8=bg[0];break;case 2:bc=bg[0];a8=bg[1];break;case 3:bc=bg[0];a8=bg[1];bb=a1(bg[2]);break;default:bc=bg[0];a8=bg[1];bb=a1(bg,2)
}if(!a8){throw a8}if(!bc&&aW(a8)){bc=(bc&&bc[a8]&&bc)||(aP&&aP[a8]&&aP)||(aO&&aO[a8]&&aO)}if(aW(a8)){bh=true;if(!bc){bc=(aP||aO)}}}catch(bf){ba=bf;throw d(ba)?ba:new Error(ba)
}if(aK(a8.apply)&&aK(a8.call)){if(bb==null||!bb.length){return a8.call(bc)}else{return a8.apply(bc,bb)}}else{a9=bb||[];be=a9.length||0;if(bh){switch(be){case 0:return bc[a8]();
case 1:return bc[a8](a9[0]);case 2:return bc[a8](a9[0],a9[1]);case 3:return bc[a8](a9[0],a9[1],a9[2])}}else{switch(be){case 0:return a8();case 1:return a8(a9[0]);
case 2:return a8(a9[0],a9[1]);case 3:return a8(a9[0],a9[1],a9[2])}}bj=[];for(bd=0;bd<be;bd++){bj[bj.length]="p["+bd+"]"}return(new Function("e,o,m,p",["return e?o[m](","):m(",");"].join(bj.join(","))))(bh,bc,a8,a9)
}}function t(bd){var a8=arguments,bb=t,ba,a9;try{if(!bb.firebug("log",a8)){if(!u.hasComponents){throw false}a9=ai["@mozilla.org/consoleservice;1"].getService(ad.nsIConsoleService);
a9.logStringMessage(String(bd))}}catch(bc){if(typeof console!=="undefined"&&console){ba=console.debug||console.dir||console.log}else{if(typeof opera!=="undefined"&&opera&&opera.postError){ba=opera.postError
}else{if(typeof GM_log==="function"){ba=GM_log}else{ba=function(be){throw be}}}}try{if(ba.apply){ba.apply(ba,a8)}else{throw ba}}catch(bc){try{ba(bd)}catch(bc){try{console.log(bd)
}catch(bc){try{bb.divConsole(bd)}catch(bc){}}}}}return bd}function aB(bb){var a8=arguments,a9;try{if(!t.firebug("error",a8)){if(!u.hasComponents){throw false}V.reportError(bb)
}}catch(ba){if(typeof console!=="undefined"&&console){a9=console.error||console.debug||console.dir||console.log}else{if(typeof opera!=="undefined"&&opera&&opera.postError){a9=opera.postError
}else{if(typeof GM_log==="function"){a9=GM_log}else{a9=function(bc){throw bc}}}}try{if(a9.apply){a9.apply(a9,a8)}else{a9(bb)}}catch(ba){throw bb}}return bb}I(t,{firebug:function(be,ba){var a8=false,bc,a9;
try{if(!u.hasComponents){throw false}bc=aN.XPCOM.getMostRecentWindow();if(!bc){throw bc}if(bc.FirebugConsole&&bc.FirebugContext){a9=new bc.FirebugConsole(bc.FirebugContext,bc.content);
a9[be].apply(a9,ba);a8=true}else{if(bc.Firebug&&bc.Firebug.Console){try{bc.Firebug.Console.logFormatted.call(bc.Firebug.Console,a1(ba),bc.FirebugContext,be);a8=true
}catch(bd){}}}}catch(bb){}return a8},dump:function(bb){var ba,a9=t.dump,a8;a8=function(bc){return(bc==null)?String(bc):bc.toString?bc.toString():String(bc)};if(bb==null){return String(bb)
}if(typeof uneval==="function"){return uneval(bb)}else{if(typeof bb.toSource==="function"){return bb.toSource()}}ba=[];switch(al(bb)){case"array":a7(bb,function(bc){ba[ba.length]=a9(bc)
});return"["+ba.join(", ")+"]";case"object":if(G(bb)||N(bb)||aV(bb)){ba[ba.length]=au.call(bb)}else{a7(bb,function(bd,bc){ba[ba.length]=bc+": "+a9(bd)})}return"{"+ba.join(", ")+"}";
case"string":return'"'+a8(bb)+'"';case"function":return"("+a8(bb)+")";default:return a8(bb)}},divConsole:I(function(a9){var bd=t.divConsole,ba,bg,bf,a8,bc,be;if(u.hasActiveXObject&&typeof document!=="undefined"){bg=document;
bf=bg.documentElement||{};try{ba=(typeof bf.style.maxHeight==="undefined")}catch(bb){}if(bd.done&&bd.ieConsole){bd.append(a9)}else{if(!bd.msgStack){bd.msgStack=[]
}bd.msgStack.push(a9);if(!bd.done){bd.done=true;h.till(function(){return !!(bg&&bg.body)}).then(function(){var bi,bh,bj,bk;bi={border:"1px solid #999",background:"#fff",color:"#333",fontSize:"13px",fontFamily:"monospace",position:"absolute",padding:"10px",margin:"0px",zoom:1};
bk=bg.createElement("div");bh=bk.style;a7(bi,function(bm,bl){bh[bl]=bm});bh.borderWidth="3px";bh.width="95%";bh.zIndex=9996;bh.left="0px";bh.bottom="0px";bh.zoom=1;
if(ba){bh.height=Math.floor(bf.clientHeight/3.2)+"px"}else{bh.position="fixed";bh.height="25%"}bd.titlebar=bg.createElement("div");bh=bd.titlebar.style;bh.zIndex=9999;
bh.border="0";bh.width="95%";bh.position="relative";bh.margin="2px";bh.fontWeight="bold";bh.color="#333";bh.background="#fff";bh.fontFamily="verdana";bh.zoom=1;bd.titlebar.appendChild(bg.createTextNode("Pot.js Console"));
bd.ieConsole=bk.cloneNode(false);bd.ieConsole.id=bd.ieConsoleId=af(aN,"");bh=bd.ieConsole.style;bh.borderWidth="1px";bh.width="95%";bh.height="68%";bh.position="relative";
bh.zIndex=9997;bh.marginTop="3px";bh.padding="5px";bh.whiteSpace="pre";bh.wordWrap="break-word";bh.overflowX="hidden";bh.overflowY="auto";bh.zoom=1;bd.hr=bg.createElement("hr");
bh=bd.hr.style;bh.position="relative";bh.width="100%";bh.border="1px solid #aaa";bh.zIndex=9998;bh.zoom=1;bj=bg.createElement("div");bh=bj.style;a7(bi,function(bm,bl){bh[bl]=bm
});bh.zIndex=9999;bh.fontFamily="sans-serif";bh.fontWeight="bold";bh.borderWidth="1px";bh.padding="1px 4px";bh.lineHeight=1;bh.right="2px";bh.top="2px";bh.cursor="pointer";
bh.zoom=1;bj.title="close";bj.appendChild(bg.createTextNode("x"));bd.histories=[];bd.historyIndex=0;bd.historyLimit=50;bd.executer=bg.createElement("input");bd.executer.type="text";
bh=bd.executer.style;bh.zIndex=9999;bh.position="relative";bh.display="block";bh.fontFamily="monospace";bh.fontSize="13px";bh.padding="2px";bh.marginTop="5px";bh.width="95.5%";
bh.border="2px solid #999";bh.zoom=1;a8=function(){var bm,bl,bn="95%";bm=bg.body.clientWidth-7;bk.style.width=(bm<=0)?bn:bm+"px";bm=bk.offsetWidth-55;bd.ieConsole.style.width=(bm<=0)?bn:bm+"px";
bl=Math.floor(bf.clientHeight/3.2)+"px";bk.style.height=bl;bc()};bc=function(){var bl=bf.scrollTop+(bf.clientHeight-bk.clientHeight)-7;if(bl>0){bk.style.top=bl+"px"
}};be=function(){try{bk.parentNode.removeChild(bk);window.dettachEvent("onscroll",bc);window.dettachEvent("onresize",a8);bk=bd.ieConsole=null}catch(bl){}};onKeydown=function(bp){var bm,bn,bl,bo=aL(bd.executer.value);
bp=window.event||bp;if(bp){if(bo&&bp.keyCode==13){try{bm=aN.localEval(bo)}catch(bq){bm=aN.getErrorMessage(bq)}aN.debug(bm);if(bd.histories.length>bd.historyLimit){bd.histories.pop()
}bd.histories.unshift(bo);bd.executer.value="";bd.historyIndex=0}else{if(bp.keyCode==38){bn=bd.histories[bd.historyIndex];bd.historyIndex=Math.max(0,Math.min(bd.histories.length-1,bd.historyIndex+1));
if(bn){bd.executer.value=bn}}else{if(bp.keyCode==40){if(bd.historyIndex-1<0){bd.executer.value="";bd.historyIndex=0}else{bd.historyIndex=Math.max(0,Math.min(bd.histories.length-1,bd.historyIndex-1));
bl=bd.histories[bd.historyIndex];if(bl){bd.executer.value=bl}}}else{bd.historyIndex=0}}}}};if(typeof window!=="undefined"&&window&&window.attachEvent){if(ba){a7({onscroll:bc,onresize:a8},function(bm,bl){window.attachEvent(bl,bm)
})}if(bj.attachEvent){bj.attachEvent("onclick",be)}if(bd.executer.attachEvent){bd.executer.attachEvent("onkeydown",onKeydown)}}if(ba){h.wait(0.25).then(function(){bk.style.bottom="1px"
}).wait(0.5).then(function(){bk.style.bottom="0px"})}a7([bj,bd.titlebar,bd.ieConsole,bd.executer],function(bl){bk.appendChild(bl)});bg.body.appendChild(bk);bd.append()
})}}}},{append:function(bd){var bb=this,a9,ba,a8;if(bb.ieConsole){try{a8=a1(bb.msgStack||[]);while(bb.msgStack&&bb.msgStack.length){bb.msgStack.pop()}if(arguments.length){a8.push(bd)
}while(a8.length){a9=a8.shift();ba=t.dump(a9);if(aW(a9)&&ba.charAt(0)==='"'&&ba.slice(-1)==='"'){ba=ba.slice(1,-1)}a7([document.createTextNode(ba),bb.hr.cloneNode(false)],function(be){bb.ieConsole.appendChild(be)
})}ah(function(){bb.ieConsole.scrollTop=bb.ieConsole.scrollHeight},10)}catch(bc){}}}})});aN.update({arrayize:a1,numeric:W,stringify:ag,trim:aL,rescape:ac,invoke:H,now:aS,debug:t,error:aB});
function a7(bc,bh,a9){var bd,be,ba,bb,a8,bi;if(bc){be=bc.length;try{if(aD(bc)){for(bd=0;bd<be;bd++){if(bd in bc){try{ba=bc[bd]}catch(bf){continue}bh.call(a9,ba,bd,bc)
}}}else{bi=aN.keys(bc);be=bi.length;for(bd=0;bd<be;bd++){a8=bi[bd];try{ba=bc[a8]}catch(bf){continue}bh.call(a9,ba,a8,bc)}}}catch(bg){bb=bg;if(!aZ(bb)){throw bb}}}return bc
}function af(a9,a8){return[String((a9&&(a9.NAME||a9.name))||(void 0)),Math.random().toString(36).substring(2),aS()].join(arguments.length>=2?a8:"-")}function aR(a8){return"[object "+a8+"]"
}function an(bb,a9){var ba,a8;if(bb&&a9){if(D(bb.options)){ba=bb.options}else{if(D(bb)){ba=bb}}if(D(a9.options)){a8=a9.options}else{if(D(a9)){a8=a9}}if("async" in a8){ba.async=!!a8.async
}if("speed" in a8&&v(a8.speed)){ba.speed=a8.speed}if("cancellers" in a8){if(!a8.cancellers||!a8.cancellers.length){a8.cancellers=[]}else{if(ba.cancellers&&ba.cancellers.length){ba.cancellers=aY.call([],a1(ba.cancellers),a1(a8.cancellers))
}else{ba.cancellers=a1(a8.cancellers)}}}if("stoppers" in a8){if(!a8.stoppers||!a8.stoppers.length){a8.stoppers=[]}else{if(ba.stoppers&&ba.stoppers.length){ba.stoppers=aY.call([],a1(ba.stoppers),a1(a8.stoppers))
}else{ba.stoppers=a1(a8.stoppers)}}}if("storage" in a8){ba.storage=a8.storage||{}}if(!ba.storage){ba.storage={}}}}(function(){aN.update({Deferred:function(){return Z(this)?this.init(arguments):new h.fn.init(arguments)
}});h=aN.Deferred;I(h,{StopIteration:aU,speeds:{limp:2400,doze:1000,slow:100,normal:36,fast:20,rapid:12,ninja:0},states:{success:1,failure:2,fired:3,unfired:4}});
a7(h.states,function(bq,bp){h.states[bq]=bp});I(h,{defaults:{speed:h.speeds.ninja,canceller:null,stopper:null,async:true}});h.fn=h.prototype=I(h.prototype,{constructor:h,id:L.getMagicNumber(),serial:null,chains:[],chained:false,cancelled:false,freezing:false,tilling:false,waiting:false,nested:0,state:null,results:null,destAssign:false,chainDebris:null,options:{},plugins:{},NAME:"Deferred",toString:Q,isDeferred:Z,init:function(bp){if(!this.serial){this.serial=af(this)
}this.options={};this.plugins={};a8.call(this,a1(bp),h.defaults);I(this,{results:{success:null,failure:null},state:h.states.unfired,chains:[],nested:0,chained:false,cancelled:false,freezing:false,tilling:false,waiting:false,destAssign:false,chainDebris:null});
L.referSpeeds.call(this,h.speeds);return this},speed:function(bs){var bq=this,bp=arguments,br;if(v(bs)){br=bs-0}else{if(v(h.speeds[bs])){br=h.speeds[bs]-0}else{br=this.options.speed
}}if(this.state===h.states.unfired&&!this.chains.length){if(bp.length===0){return this.options.speed}this.options.speed=br}else{this.then(function(bt){if(bp.length===0){return bq.options.speed
}bq.options.speed=br;return bt})}return this},async:function(br){var bq=this,bp=arguments;if(this.state===h.states.unfired&&!this.chains.length){if(bp.length===0){return this.options.async
}this.options.async=!!br}else{this.then(function(bs){if(bp.length===0){return bq.options.async}bq.options.async=!!br;return bs})}return this},canceller:function(bq){var bp=arguments;
if(this.state===h.states.unfired&&!this.chains.length){if(bp.length===0){return this.options.cancellers}if(!this.cancelled&&aK(bq)){this.options.cancellers.push(bq)
}}else{this.stopper.apply(this,bp)}return this},stopper:function(br){var bq=this,bp=arguments;if(this.state===h.states.unfired&&!this.chains.length){this.canceller.apply(this,bp)
}else{this.then(function(bs){if(bp.length===0){return bq.options.stoppers}if(!bq.cancelled&&aK(br)){bq.options.stoppers.push(br)}return bs})}return this},then:function(bq,bp){if(!this.chained&&!this.cancelled){this.chains.push({success:bq,failure:bp});
if(this.state&h.states.fired){if(!this.freezing&&!this.tilling&&!this.waiting){bd.call(this)}}}L.referSpeeds.call(this,h.speeds);return this},rescue:function(bp){return this.then(null,bp)
},ensure:function(bp){return this.then(bp,bp)},cancel:function(){if(!this.cancelled){this.cancelled=true;switch(this.state){case h.states.unfired:bf.call(this,"cancellers");
if(this.state===h.states.unfired){this.raise(new Error(this))}break;case h.states.success:bf.call(this,"stoppers");if(Z(this.results.success)){this.results.success.cancel()
}break;case h.states.failure:bf.call(this,"stoppers")}}return this},begin:function(){var br=this,bp,bq=a1(arguments),bs;bp=bq[0];if(bq.length>1){bs=bq}else{bs=bq[0]
}if(!this.cancelled&&this.state===h.states.unfired){if(Z(bp)&&!bp.cancelled){bp.ensure(function(){br.begin.apply(this,arguments)})}else{this.options.cancellers=[];
bn.call(this,bs)}}L.referSpeeds.call(this,h.speeds);return this},raise:function(){var bq=a1(arguments),bp,br;bp=bq[0];if(!d(bp)){bq[0]=new Error(bp)}if(bq.length>1){br=bq
}else{br=bq[0]}return this.begin.apply(this,a1(br))},end:function(){this.chained=true;return this},wait:function(bt,br){var bs=new h(),bq=this,bp=arguments;return this.then(function(bu){if(d(bu)){throw bu
}bq.waiting=true;h.wait(bt).ensure(function(bv){bq.waiting=false;if(d(bv)){bs.raise(bv)}else{bs.begin(bp.length>=2?br:bu)}});return bs})},till:function(bp){var bq=this,br=new h();
return this.then(function(bs){if(d(bs)){throw bs}bq.tilling=true;h.till(bp,bs).ensure(function(bt){bq.tilling=false;if(d(bt)){br.raise(bt)}else{br.begin(bs)}});return br
})},args:function(){var bq=a1(arguments),bp=bq.length;if(bp===0){return h.lastResult(this)}else{return this.then(function(){var bs,br=a1(arguments);if(br.length>1){bs=br
}else{bs=br[0]}if(bp>1){return bq}else{if(aK(bq[0])){return bq[0].apply(this,a1(bs))}else{return bq[0]}}})}},data:function(){var bt=this,bq=this,br=a1(arguments),bs,bp=br.length,bu=".";
if(this.options){if(!this.options.storage){this.options.storage={}}switch(bp){case 0:bq={};a7(this.options.storage,function(bx,bv){try{if(bv&&bv.charAt(0)===bu){bq[bv.substring(1)]=bx
}}catch(bw){}});break;case 1:if(br[0]==null){this.options.storage={}}else{if(D(br[0])){a7(br[0],function(bw,bv){bt.options.storage[bu+ag(bv)]=bw})}else{bq=this.options.storage[bu+ag(br[0])]
}}break;case 2:this.options.storage[bu+ag(br[0])]=br[1];break;default:bs=0;do{this.options.storage[bu+ag(br[bs++])]=br[bs++]}while(bs<bp)}}return bq},update:function(){var bq=h.fn,bp=a1(arguments);
bp.unshift(bq);I.apply(bq,bp);return this}});h.fn.init.prototype=h.fn;function bg(bp){if(d(bp)){this.state=h.states.failure}else{this.state=h.states.success}return this.state
}function bn(bp){bg.call(this,bp);this.results[h.states[this.state]]=bp;if(!this.freezing&&!this.tilling&&!this.waiting){bd.call(this)}}function bd(bp){if(bp||(!this.freezing&&!this.tilling&&!this.waiting)){if(this.options&&this.options.async){bb.call(this)
}else{bm.call(this)}}}function bb(){var bp=this,bq,br;if(this.options&&v(this.options.speed)){bq=this.options.speed}else{bq=h.defaults.speed}this.freezing=true;br=function(){try{bc.call(bp)
}catch(bs){bp.freezing=false;throw bs}if(bh.call(bp)){bd.call(bp,true)}else{bp.freezing=false}};if(!bq&&this.state===h.states.unfired){x.flush(br)}else{ah(br,bq)
}}function bm(){bc.call(this);if(this.options&&this.options.async){bd.call(this)}}function bc(){var bt=this,bp,br,bs,bw,bu=null,bq;bj.call(this);bp=this.results[h.states[this.state]];
while(bh.call(this)){bs=this.chains.shift();bw=bs&&bs[h.states[this.state]];if(!aK(bw)){continue}bq=false;try{if(this.destAssign||(O(bw.length)&&bw.length>1&&b(bp)&&bp.length===bw.length)){br=bw.apply(this,bp)
}else{br=bw.call(this,bp)}if(br===void 0&&this.state!==h.states.failure&&!d(bp)&&!aN.hasReturn(bw)){br=bp}bp=br;if(e(bp)){bp=bi.call(this,bp)}else{if(aN.isFileReader(bp)){bp=bl.call(this,bp)
}else{if(aN.isImage(bp)){bp=bk.call(this,bp)}}}this.destAssign=false;this.state=bg.call({},bp);if(Z(bp)){bu=function(bx){return be.call(bt,bx)};this.nested++}}catch(bv){bp=bv;
if(aZ(bp)){bq=true}else{a9.call(this,bp)}this.destAssign=false;this.state=h.states.failure;if(!d(bp)){bp=new Error(bp);if(bq){I(bp,{StopIteration:aU})}}}if(this.options&&this.options.async){break
}}this.results[h.states[this.state]]=bp;if(bu&&this.nested){bp.ensure(bu).end()}bo.call(this)}function bh(){return this.chains&&this.chains.length&&this.nested===0&&!this.cancelled
}function ba(){var bt,bs,bp,br,bu,bq;br=h.states[h.states.failure];bu=this.chains;bp=bu&&bu.length;if(bp){for(bs=0;bs<bp;bs++){if(bu[bs]){bq=bu[bs][br];if(bq&&aK(bq)){bt=true;
break}}}}return bt}function a9(bp){if(!ba.call(this)){this.chainDebris={error:bp}}}function bo(){var bp=this,bq;if(this.chainDebris&&"error" in this.chainDebris&&(this.cancelled||this.chained||(!this.chains||!this.chains.length))){if(this.options&&v(this.options.speed)){bq=this.options.speed
}else{bq=h.defaults.speed}this.chainDebris.timerId=ah(function(){throw bp.chainDebris.error},bq)}}function bj(){if(this.chainDebris&&this.chainDebris.timerId!=null&&(this.state&h.states.fired)&&ba.call(this)){S(this.chainDebris.timerId);
delete this.chainDebris.error;delete this.chainDebris.timerId;this.chainDebris=null}}function be(bp){bn.call(this,bp);this.nested--;if(this.nested===0&&!this.cancelled&&(this.state&h.states.fired)){bd.call(this)
}}function bi(br){var bp,bq=false;if(this.options&&this.options.async){bq=true}bp=new h({async:bq});return bp.then(function(){var bt=new h({async:bq}),bs=0;if(br&&br.workers){a7(br.workers,function(bu,bv){if(bu&&bv&&bv.charAt&&bv.charAt(0)==="."){bu.callback=function(bw){bs--;
if(bs===0){bt.begin(bw)}};bs++}});if(bs===0){bt.begin()}}else{bt.begin()}return bt}).begin()}function bl(bp){var bu,br,bs=false,bv=bp.onload,bt=bp.onloadend,bq=bp.onerror;
if(this.options&&this.options.async){bs=true}bu=new h({async:bs});if(bp.readyState===FileReader.LOADING){bp.onload=function(bw){if(!br){br=true;bu.begin(bw&&bw.target&&bw.target.result)
}if(aK(bv)){if(bv.apply){bv.apply(this,arguments)}else{bv(bw)}}};bp.onloadend=function(bw){if(!br){br=true;bu.begin(bw&&bw.target&&bw.target.result)}if(aK(bt)){if(bt.apply){bt.apply(this,arguments)
}else{bt(bw)}}};bp.onerror=function(bw){if(!br){br=true;bu.raise(bw)}if(aK(bq)){if(bq.apply){bq.apply(this,arguments)}else{bq(bw)}}}}else{bu.begin(bp.result)}return bu
}function bk(bt){var bu,bq,br=false,bv=bt.onload,bp=bt.onerror,bs=function(bw){return(("naturalWidth" in bw&&!(bw.naturalWidth+bw.naturalHeight))||!(bw.width+bw.height))
};if(this.options&&this.options.async){br=true}bu=new h({async:br});if(!bs(bt)){bu.begin(bt)}else{bt.onload=function(bw){if(!bq){bq=true;if(bs(this)){return this.onerror(new Error(this.src))
}bu.begin(this)}if(aK(bv)){if(bv.apply){bv.apply(this,arguments)}else{bv(bw)}}};bt.onerror=function(bw){if(!bq){bq=true;bu.raise(bw)}if(aK(bp)){if(bp.apply){bp.apply(this,arguments)
}else{bp(bw)}}}}return bu}function a8(bq,bv){var bt,bu,bp,bs,br,bw;if(bq){if(bq.length===1&&bq[0]&&D(bq[0])){bt=bq[0];if(bt.speed!==bw||bt.canceller!==bw||bt.async!==bw||bt.stopper!==bw){bu=bt.speed;
bp=bt.canceller;bs=bt.stopper;br=bt.async}else{bu=bt.options&&bt.options.speed;bp=bt.options&&bt.options.canceller;bs=bt.options&&bt.options.stopper;br=bt.options&&bt.options.async
}}else{if(bq.length===1&&bq[0]&&b(bq[0])){bt=bq[0]}else{bt=bq}a7(bt||[],function(bx){if(bu===bw&&v(bx)){bu=bx}else{if(bu===bw&&v(h.speeds[bx])){bu=h.speeds[bx]}else{if(bp===bw&&aK(bx)){bp=bx
}else{if(br===bw&&aM(bx)){br=bx}else{if(bs===bw&&bp===bw&&aK(bx)){bs=bx}}}}}})}}this.options=this.options||{};this.options.storage=this.options.storage||{};if(!b(this.options.cancellers)){this.options.cancellers=[]
}if(!b(this.options.stoppers)){this.options.stoppers=[]}if(!v(bu)){if(this.options.speed!==bw&&v(this.options.speed)){bu=this.options.speed-0}else{bu=bv.speed}}if(!aK(bp)){bp=bv.canceller
}if(!aK(bs)){bs=bv.stopper}if(!aM(br)){if(this.options.async!==bw&&aM(this.options.async)){br=this.options.async}else{br=bv.async}}I(this.options,{speed:bu-0,async:br});
if(aK(bp)){this.options.cancellers.push(bp)}if(aK(bs)){this.options.stoppers.push(bs)}return this}function bf(bp){var bq;while(this.options[bp]&&this.options[bp].length){bq=this.options[bp].shift();
if(aK(bq)){bq.call(this)}}}I(h,{extendSpeeds:function(bu,bs,bp,br){var bt=function(bw,bx){var bv=function(){var bA={},by=arguments,bz=bv;by=a1(by);a8.call(bA,by,{speed:bx,canceller:h.defaults.canceller,stopper:h.defaults.stopper,async:h.defaults.async});
bA.speedName=bw;by.unshift(bA);return bp.apply(bz.instance,by)};return bv},bq={};a7(br,function(bw,bv){bq[bv]=bt(bv,bw)});return I(bu[bs],bq)}});I(L,{referSpeeds:I(function(bp){var bq=L.referSpeeds,bs,br;
if(bp&&this.forEach.fast.instance!==this){for(bs in bq.props){if(bs in this&&this[bs]){for(br in bq.speeds){if(br in bp&&br in this[bs]&&this[bs][br]){this[bs][br].instance=this
}}}}}},{props:{forEach:true,repeat:true,forEver:true,iterate:true,items:true,zip:true,map:true,filter:true,reduce:true,every:true,some:true},speeds:{limp:0,doze:1,slow:2,normal:3,fast:4,rapid:5,ninja:6}})});
h.extendSpeeds(aN,"Deferred",function(bp){return h(bp)},h.speeds)}());(function(){I(h,{isDeferred:Z,succeed:function(){var a8=new h();return a8.begin.apply(a8,arguments)
},failure:function(){var a8=new h();return a8.raise.apply(a8,arguments)},wait:function(ba,a8){var bb,a9=new h({canceller:function(){try{S(bb)}catch(bc){}}});if(arguments.length>=2){a9.then(function(){return a8
})}bb=ah(function(){a9.begin()},Math.floor(((ba-0)||0)*1000));return a9},callLater:function(a9,ba){var a8=a1(arguments,2);return h.wait(a9).then(function(){if(Z(ba)){return ba.begin.apply(ba,a8)
}else{if(aK(ba)){return ba.apply(ba,a8)}else{return ba}}})},callLazy:function(a9){var a8=a1(arguments,1);return h.begin(function(){if(Z(a9)){return a9.begin.apply(a9,a8)
}else{if(aK(a9)){return a9.apply(a9,a8)}else{return a9}}})},maybeDeferred:function(a8){var ba;if(Z(a8)){return a8}if(d(a8)){return h.failure(a8)}if(a8){try{if(typeof jQuery==="function"&&jQuery.Deferred&&typeof a8.then==="function"&&a8.promise&&a8.always&&a8.resolve&&a8.rejectWith){ba=new h();
a8.then(function(){ba.begin.apply(ba,arguments)},function(){ba.raise.apply(ba,arguments)});return ba}}catch(a9){}try{if(a8._id===250149748310446&&typeof a8.next==="function"&&typeof a8.error==="function"&&typeof a8.fail==="function"&&typeof a8.cancel==="function"){ba=new h();
a8.next(function(){ba.begin.apply(ba,arguments)}).error(function(){ba.raise.apply(ba,arguments)});return ba}}catch(a9){}}return h.succeed(a8)},isFired:function(a8){return Z(a8)&&((a8.state&h.states.fired)!==0)
},lastResult:function(a9,bc){var a8,ba=arguments,bb;if(Z(a9)){try{bb=h.states[h.states.success];if(ba.length<=1){a8=a9.results[bb]}else{a9.results[bb]=bc;a8=a9}}catch(bd){}}return a8
},lastError:function(a9,bc){var a8,ba=arguments,bb;if(Z(a9)){try{bb=h.states[h.states.failure];if(ba.length<=1){a8=a9.results[bb]}else{if(!d(bc)){bc=new Error(bc)
}a9.results[bb]=bc;a8=a9}}catch(bd){}}return a8},register:function(){var a8=0,bb=h.fn,ba=a1(arguments),a9=[];switch(ba.length){case 0:break;case 1:if(D(ba[0])){a7(ba[0],function(bd,bc){if(aK(bd)&&aW(bc)){a9.push([bc,bd])
}else{if(aK(bc)&&aW(bd)){a9.push([bd,bc])}}})}break;default:if(aK(ba[0])){a9.push([ba[1],ba[0]])}else{a9.push([ba[0],ba[1]])}}if(a9&&a9.length){a7(a9,function(bf){var bd={},bc,be,bg;
if(bf&&bf.length>=2&&aK(bf[1])){bc=ag(bf[0],true);be=bf[1];bg=function(){var bh={};bh.inputs=arguments;return this.then(function(){bh.results=arguments;return be.call(this,bh)
})};bd[bc]=bg;I(bb,bd);a8++}})}return a8},unregister:function(){var a8=0,ba=h.fn,a9=a1(arguments),bb;if(a9.length>1){bb=a9}else{bb=a9[0]}a7(a1(bb),function(bc){try{delete ba[bc];
a8++}catch(bd){}});return a8},deferrize:function(a9,be){var a8=arguments,bc,ba,bb;try{switch(a8.length){case 0:throw false;case 1:bc=a9;break;default:if(D(be)){ba=be;
bc=a9}else{bc=be;ba=a9}}if(!bc){throw bc}}catch(bd){bb=bd;throw (d(bb)?bb:new Error(bb))}return function(){var bg=this,bf=a1(arguments),bh=new h();bh.then(function(){var bj=new h(),bi,bn=[],bk=false,bl,bo=h.isFired;
a7(bf,function(bp){if(aK(bp)){bn.push(function(){var bq,bs;try{bq=bp.apply(bg,arguments)}catch(br){bs=br;if(!bo(bj)){bj.raise(bs)}}finally{if(!bo(bj)){bj.begin(bq)
}}if(bs!=null){throw bs}return bq});bk=true}else{bn[bn.length]=bp}});try{bi=H(ba,bc,bn)}catch(bm){bl=bm;if(!bk&&!bo(bj)){bj.raise(bl)}}finally{if(!bk&&!bo(bj)){bj.begin(bi)
}}if(bl!=null){throw d(bl)?bl:new Error(bl)}return bj}).begin();return bh}},update:function(){var a9=h,a8=a1(arguments);a8.unshift(a9);return I.apply(a9,a8)}});I(h,{begin:function(a8){var bb=new h(),a9=a1(arguments,1),ba;
if(a8&&aK(a8)){bb.then(function(){return a8.apply(this,a9)})}else{ba=a8}x.flush(function(){bb.begin(ba)});return bb},flush:function(a9){var a8=a1(arguments,1);return h.begin(function(){if(Z(a9)){return a9.begin.apply(a9,a8)
}else{if(aK(a9)){return a9.apply(this,a8)}else{return a9}}})},till:function(ba){var bb=new h(),a9=a1(arguments,1),a8=13;return h.begin(function bc(){var bd=this,be=aS();
if(ba&&!ba.apply(this,a9)){ah(function(){bc.call(bd)},Math.min(1000,a8+(aS()-be)))}else{bb.begin()}return bb})},parallel:function(bd){var a8,ba=arguments,be,bc,a9,bb;
if(ba.length===0){a8=h.succeed()}else{if(ba.length===1){if(D(bd)){bc=bd}else{bc=a1(bd)}}else{bc=a1(ba)}a8=new h({canceller:function(){a7(bc,function(bf){if(Z(bf)){bf.cancel()
}})}});be=new h();bb=[];a9=D(bc)?{}:[];a7(bc,function(bf,bg){var bh;if(Z(bf)){bh=bf}else{if(aK(bf)){bh=new h();bh.then(bf)}else{bh=h.succeed(bf)}}if(!Z(bh)){bh=h.maybeDeferred(bh)
}bb[bb.length]=bg;be.then(function(){if(bh.state===h.states.unfired){h.flush(bh)}bh.then(function(bi){if(bb.length){a9[bg]=bi;bb.pop();if(bb.length===0){a8.begin(a9)
}}},function(bi){bb=[];a8.raise(bi)})})});h.flush(be)}return a8},chain:(function(){var a8={funcName:/^\s*[()]*\s*function\s*([^\s()]+)/,rescue:/rescue|raise|err|fail/i};
return function(){var ba=arguments,a9=ba.length,bc,bb=new h();if(a9>0){bc=a1((a9===1)?ba[0]:ba);a7(bc,function(bf){var bd;if(aK(bf)){try{bd=aN.getFunctionCode(bf).match(a8.funcName)[1]
}catch(be){}if(bd&&a8.rescue.test(bd)){bb.rescue(bf)}else{bb.then(bf)}}else{if(Z(bf)){bb.then(function(bg){if(bf.state===h.states.unfired){bf.begin(bg)}return bf
})}else{if(D(bf)||b(bf)){bb.then(function(){return h.parallel(bf)})}else{if(d(bf)){bb.then(function(){throw bf})}else{bb.then(function(){return bf})}}}}})}h.callLazy(bb);
return bb}}())});h.extendSpeeds(h,"begin",function(a8,bf){var bd,a9,be=a1(arguments,2),ba=(bf&&aK(bf)),bc=a8.options||a8||{},bb,bg;if(!bc.cancellers){bc.cancellers=[]
}bc.cancellers.push(function(){try{if(a9!=null){S(a9)}}catch(bh){}});bd=new h(bc);if(ba){bd.then(function(){return bf.apply(this,be)})}else{bg=bf}bb=(((a8.options&&a8.options.speed)||a8.speed)-0)||0;
if(v(bb)&&bb>0){a9=ah(function(){bd.begin(bg)},bb)}else{x.flush(function(){bd.begin(bg)})}return bd},h.speeds);h.extendSpeeds(h,"flush",function(ba,bd){var bb,a9,bc,a8=a1(arguments,2);
bb=ba.options?ba.options.speed:ba.speed;if(bb in h.speeds&&aW(h.speeds[bb])){a9=h.speeds[bb]}else{a7(h.speeds,function(bf,be){if(bf==bb){a9=be;throw aU}})}if(a9&&a9 in h.begin){bc=h.begin[a9]
}else{bc=h.begin}return bc(function(){if(Z(bd)){return bd.begin.apply(bd,a8)}else{if(aK(bd)){return bd.apply(this,a8)}else{return bd}}})},h.speeds);aN.update({succeed:aN.Deferred.succeed,failure:aN.Deferred.failure,wait:aN.Deferred.wait,callLater:aN.Deferred.callLater,callLazy:aN.Deferred.callLazy,maybeDeferred:aN.Deferred.maybeDeferred,isFired:aN.Deferred.isFired,lastResult:aN.Deferred.lastResult,lastError:aN.Deferred.lastError,register:aN.Deferred.register,unregister:aN.Deferred.unregister,deferrize:aN.Deferred.deferrize,begin:aN.Deferred.begin,flush:aN.Deferred.flush,till:aN.Deferred.till,parallel:aN.Deferred.parallel,chain:aN.Deferred.chain})
}());(function(){var a9,bb,a8,ba;I(L,{LightIterator:I(function(bd,be,bc){return new a9.fn.doit(bd,be,bc)},{speeds:{limp:-1,doze:0,slow:2,normal:5,fast:12,rapid:36,ninja:60},delays:{limp:1000,doze:100,slow:13,normal:0,fast:0,rapid:0,ninja:0},types:{forLoop:1,forInLoop:2,repeat:4,forEver:8,iterate:16,items:32,zip:64}})});
aA=a9=L.LightIterator;I(a9,{defaults:{speed:a9.speeds.normal},revSpeeds:{}});a7(a9.speeds,function(bd,bc){a9.revSpeeds[bd]=bc});a9.fn=a9.prototype=I(a9.prototype,{constructor:a9,interval:a9.defaults.speed,iter:null,result:null,deferred:null,revDeferred:null,isDeferStopIter:false,time:{},waiting:false,restable:false,async:false,options:null,doit:function(bd,be,bc){this.setOptions(bc);
this.execute(bd,be);this.watch();return this},setOptions:function(bc){this.options=bc||{};this.setInterval();this.setAsync()},setInterval:function(){var bc=null;
if(v(this.options.interval)){bc=this.options.interval-0}else{if(this.options.interval in a9.speeds){bc=a9.speeds[this.options.interval]-0}}if(bc!==null&&!isNaN(bc)){this.interval=bc
}if(!v(this.interval)){this.interval=a9.defaults.speed}},setAsync:function(){var bc=null;if(this.options.async!==void 0){bc=!!this.options.async}if(bc!==null){this.async=!!bc
}if(!aM(this.async)){this.async=!!this.async}},createDeferred:function(){return new h({async:false})},watch:function(){var bc=this;if(!this.async&&this.waiting===true&&u.isWaitable){aN.XPCOM.throughout(function(){return bc.waiting!==true
})}},execute:function(bc,bf){var be,bd=this;this.waiting=true;if(!bc){this.result={};this.waiting=false}else{this.waiting=true;this.restable=true;this.time={start:aS(),total:null,loop:null,diff:null,risk:null,axis:null,count:1,rest:100,limit:255};
this.setIter(bc,bf);if(!this.async&&!u.isWaitable){this.revback();this.waiting=false}else{be=this.createDeferred();be.then(function(){var bh=bd.createDeferred(),bg=bd.createDeferred();
bh.then(function(){return bd.revolve().then(function(){bg.begin()})}).begin();return bg}).ensure(function(){bd.waiting=false});if(this.async){this.deferred=be.then(function(){if(Z(bd.result)&&aZ(h.lastError(bd.result))){bd.result=h.lastResult(bd.result)
}return bd.result})}this.flush(be)}}},setIter:function(bc,bg){var bf=this.options.type,be=a9.types,bd=this.options.context;switch(true){case ((bf&be.iterate)===be.iterate):this.result=null;
this.iter=this.iterate(bc,bg,bd);break;case ((bf&be.forEver)===be.forEver):this.result={};this.iter=this.forEver(bc,bd);break;case ((bf&be.repeat)===be.repeat):this.result={};
this.iter=this.repeat(bc,bg,bd);break;case ((bf&be.items)===be.items):this.result=[];this.iter=this.items(bc,bg,bd);break;case ((bf&be.zip)===be.zip):this.result=[];
this.iter=this.zip(bc,bg,bd);break;default:if(aD(bc)){this.result=bc;this.iter=this.forLoop(bc,bg,bd)}else{this.result=bc;this.iter=this.forInLoop(bc,bg,bd)}}},revback:function(){var bf=this,bc,be,bd=false,bh;
this.time.loop=aS();REVOLVE:{do{try{if(this.isDeferStopIter){this.isDeferStopIter=false;throw aU}bc=this.iter.next()}catch(bg){be=bg;if(aZ(be)){break REVOLVE}throw be
}if(this.async&&Z(bc)){return bc.ensure(function(bi){if(bi!==void 0){if(d(bi)){if(aZ(bi)){bf.isDeferStopIter=true;if(Z(bf.result)&&aZ(h.lastError(bf.result))){bf.result=h.lastResult(bf.result)
}}else{h.lastError(this,bi)}}else{h.lastResult(this,bi)}}bf.flush(bf.revback,true)})}bh=aS();if(u.isWaitable){if(this.time.total===null){this.time.total=bh}else{if(bh-this.time.total>=this.time.rest){aN.XPCOM.throughout(0);
this.time.total=aS()}}}else{if(!this.async){if(this.restable&&this.time.count>=this.time.limit){this.restable=false}}}this.time.risk=bh-this.time.start;this.time.diff=bh-this.time.loop;
if(this.time.diff>=this.interval){if(this.async&&this.interval<a9.speeds.normal){bd=true}else{if(this.async||this.restable||u.isWaitable){if(this.time.diff<this.interval+8){this.time.axis=2
}else{if(this.time.diff<this.interval+36){this.time.axis=5}else{if(this.time.diff<this.interval+48){this.time.axis=7}else{this.time.axis=10}}}if(this.time.axis>=10||(Math.random()*10<this.time.axis)){bd=true
}}}}}while(!bd);if(this.time.count<=this.time.limit){this.time.count++}return this.flush(this.revback,true)}if(Z(this.revDeferred)){this.revDeferred.begin()}},revolve:function(){var bc=this,bd=this.createDeferred(),be=this.createDeferred();
bd.then(function(){var bf=bc.createDeferred();bc.revDeferred=bc.createDeferred();bf.then(function(){return bc.revback()}).begin();return bc.revDeferred}).ensure(function(bf){be.begin();
if(d(bf)){throw bf}});this.flush(bd);return be},flush:function(bi,bf){var bd=this,bh,bc=false,be,bg;if(this.async||u.isWaitable){bc=true}if(!bc&&aK(bi)){return bi.call(this)
}else{bh=this.createDeferred();bh.then(function(){if(Z(bi)){bi.begin()}else{bi.call(bd)}});if(bc){be=0;if(bf){bg=a9.revSpeeds[this.interval];if(bg&&v(a9.delays[bg])){be=a9.delays[bg]
}if(Math.random()*10<Math.max(2,(this.time.axis||2)/2.75)){be+=Math.min(this.time.rest,Math.max(1,Math.ceil((this.time.risk/(this.time.rest+this.time.diff))+this.time.diff)))
}}ah(function(){bh.begin()},be)}else{bh.begin()}}},noop:function(){return{next:function(){throw aU}}},forEver:function(be,bd){var bc=0;if(!aK(be)){return this.noop()
}return{next:function(){var bf=be.call(bd,bc);try{if(!isFinite(++bc)||bc>=Number.MAX_VALUE){throw 0}}catch(bg){bc=0}return bf}}},repeat:function(bc,bi,bf){var be,bd,bh,bg;
if(!aK(bi)){return this.noop()}if(!bc||bc==null){bh=0}else{if(v(bc)){bh=bc-0}else{bh=bc||{};if(v(bh.start)){bh.begin=bh.start}if(v(bh.stop)){bh.end=bh.stop}}}bd={begin:v(bh.begin)?bh.begin-0:0,end:v(bh.end)?bh.end-0:(bh||0)-0,step:v(bh.step)?bh.step-0:1,last:false,prev:null};
be=bd.step?bd.begin:bd.end;bg=bd.end-bd.step;return{next:function(){var bj;if(be<bd.end){bd.last=(be>=bg);bj=bi.call(bf,be,bd.last,bd);bd.prev=bj}else{throw aU}be+=bd.step;
return bj}}},forLoop:function(bc,bg,be){var bf,bd=0;if(!bc||!bc.length||!aK(bg)){return this.noop()}bf=a1(bc);return{next:function(){var bj,bh;while(true){if(bd>=bf.length){throw aU
}if(!(bd in bf)){bd++;continue}try{bj=bf[bd]}catch(bi){bd++;continue}bh=bg.call(be,bj,bd,bc);bd++;return bh}}}},forInLoop:function(bc,bg,be){var bf,bd=0;if(aK(bg)){bf=[];
a7(bc,function(bh,bi){bf[bf.length]=[bh,bi]})}if(!bf||!bf.length){return this.noop()}return{next:function(){var bh,bl,bi,bk;while(true){if(bd>=bf.length){throw aU
}if(!(bd in bf)){bd++;continue}try{bl=bf[bd];bk=bl[0];bi=bl[1]}catch(bj){bd++;continue}bh=bg.call(be,bk,bi,bc);bd++;return bh}}}},iterate:function(bc,bg,bd){var be=this,bf;
if(aN.isIterable(bc)&&!aN.isIter(bc)){if(aK(bg)){return{next:function(){var bh=bc.next();be.result=bg.apply(bd,a1(bh));return be.result}}}else{return{next:function(){be.result=bc.next();
return be.result}}}}else{bf=A.toIter(bc);if(!a6(bf)){return this.noop()}if(aK(bg)){return{next:function(){var bh=bf.next();bh=a1(bh);while(bh.length<2){bh.push((void 0))
}bh.push(bc);be.result=bg.apply(bd,bh);return be.result}}}else{return{next:function(){be.result=bf.next();return be.result}}}}},items:function(bc,bi,be){var bf=this,bh,bd=0,bg;
if(D(bc)){bh=[];a7(bc,function(bj,bk){bh[bh.length]=[bk,bj]});bg=true}else{if(aD(bc)){bh=a1(bc)}}if(!bh||!bh.length){return this.noop()}if(aK(bi)){return{next:function(){var bj,bn,bk,bm;
while(true){if(bd>=bh.length){throw aU}if(!(bd in bh)){bd++;continue}try{bn=bh[bd];if(bg){bk=bn[0];bm=bn[1]}else{bk=bd;bm=bn}}catch(bl){bd++;continue}bj=bi.call(be,[bk,bm],bc);
bd++;bf.result[bf.result.length]=bj;return bj}}}}else{return{next:function(){var bm,bl,bk,bj;while(true){if(bd>=bh.length){throw aU}if(!(bd in bh)){bd++;continue
}try{bl=bh[bd];if(bg){bk=bl[0];bj=bl[1]}else{bk=bd;bj=bl}}catch(bn){bd++;continue}bd++;bm=[bk,bj];bf.result[bf.result.length]=bm;return bm}}}}},zip:function(bd,bi,bf){var bg=this,bh,be=0,bc;
if(aD(bd)){bh=a1(bd);bc=bh.length}if(!bc||!bh||!bh.length){return this.noop()}if(aK(bi)){return{next:function(){var bj,bl=[],bk,bm;for(bk=0;bk<bc;bk++){bm=a1(bh[bk]);
if(!bm||!bm.length||be>=bm.length){throw aU}bl[bl.length]=bm[be]}bj=bi.call(bf,bl,bd);bg.result[bg.result.length]=bj;be++;return bj}}}else{return{next:function(){var bl=[],bj,bk;
for(bj=0;bj<bc;bj++){bk=a1(bh[bj]);if(!bk||!bk.length||be>=bk.length){throw aU}bl[bl.length]=bk[be]}bg.result[bg.result.length]=bl;be++;return bl}}}}});a9.fn.doit.prototype=a9.fn;
I(a9,{QuickIteration:{resolve:function(bc){var bd;try{while(true){bc.next()}}catch(be){bd=be;if(!aZ(bd)){throw bd}}},forEach:function(be,bh,bf){var bc,bd,bg=a9.fn;
if(!be){bc={}}else{bc=be;if(aD(be)){bd=bg.forLoop(be,bh,bf)}else{bd=bg.forInLoop(be,bh,bf)}bb.resolve(bd)}return bc},repeat:function(bd,bh,bf){var bc={},be,bg=a9.fn;
if(bd){be=bg.repeat(bd,bh,bf);bb.resolve(be)}return bc},forEver:function(bg,be){var bc={},bd,bf=a9.fn;if(bg){bd=bf.forEver(bg,be);bb.resolve(bd)}return bc},iterate:function(be,bi,bf){var bc,bd,bh,bg=a9.fn;
if(!be){bc={}}else{bc=null;bh={noop:bg.noop,result:null};bd=bg.iterate.call(bh,be,bi,bf);bb.resolve(bd);bc=bh.result}return bc},items:function(be,bi,bf){var bc=[],bd,bh,bg=a9.fn;
if(be){bh={noop:bg.noop,result:[]};bd=bg.items.call(bh,be,bi,bf);bb.resolve(bd);bc=bh.result}return bc},zip:function(be,bi,bf){var bc=[],bd,bh,bg=a9.fn;if(be){bh={noop:bg.noop,result:[]};
bd=bg.zip.call(bh,be,bi,bf);bb.resolve(bd);bc=bh.result}return bc}}});bb=a9.QuickIteration;I(ap,{createLightIterateConstructor:function(bg){var be,bf=function(bi){var bh;
if(a9.speeds[bi]===void 0){bh=a9.defaults.speed}else{bh=a9.speeds[bi]}return bg(bh)},bd={},bc=bf();for(be in a9.speeds){bd[be]=bf(be)}return I(bc,bd)}});a8=ap.createLightIterateConstructor;
aN.update({forEach:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bd,bg,be){var bf={};bf.type=a9.types.forLoop|a9.types.forInLoop;bf.interval=bc;
bf.async=false;bf.context=be;return(new a9(bd,bg,bf)).result}}else{return function(bd,bf,be){return bb.forEach(bd,bf,be)}}}),repeat:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bd,bg,be){var bf={};
bf.type=a9.types.repeat;bf.interval=bc;bf.async=false;bf.context=be;return(new a9(bd,bg,bf)).result}}else{return function(bd,bf,be){return bb.repeat(bd,bf,be)}}}),forEver:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bf,bd){var be={};
be.type=a9.types.forEver;be.interval=bc;be.async=false;be.context=bd;return(new a9(bf,null,be)).result}}else{return function(be,bd){return bb.forEver(be,bd)}}}),iterate:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bd,bg,be){var bf={};
bf.type=a9.types.iterate;bf.interval=bc;bf.async=false;bf.context=be;return(new a9(bd,bg,bf)).result}}else{return function(bd,bf,be){return bb.iterate(bd,bf,be)}
}}),items:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bd,bg,be){var bf={};bf.type=a9.types.items;bf.interval=bc;bf.async=false;bf.context=be;
return(new a9(bd,bg,bf)).result}}else{return function(bd,bf,be){return bb.items(bd,bf,be)}}}),zip:a8(function(bc){if(u.isWaitable&&bc<a9.speeds.normal){return function(bd,bg,be){var bf={};
bf.type=a9.types.zip;bf.interval=bc;bf.async=false;bf.context=be;return(new a9(bd,bg,bf)).result}}else{return function(bd,bf,be){return bb.zip(bd,bf,be)}}})});I(h,{forEach:a8(function(bc){return function(bd,bg,be){var bf={};
bf.type=a9.types.forLoop|a9.types.forInLoop;bf.interval=bc;bf.async=true;bf.context=be;return(new a9(bd,bg,bf)).deferred}}),repeat:a8(function(bc){return function(bd,bg,be){var bf={};
bf.type=a9.types.repeat;bf.interval=bc;bf.async=true;bf.context=be;return(new a9(bd,bg,bf)).deferred}}),forEver:a8(function(bc){return function(bf,bd){var be={};
be.type=a9.types.forEver;be.interval=bc;be.async=true;be.context=bd;return(new a9(bf,null,be)).deferred}}),iterate:a8(function(bc){return function(bd,bg,be){var bf={};
bf.type=a9.types.iterate;bf.interval=bc;bf.async=true;bf.context=be;return(new a9(bd,bg,bf)).deferred}}),items:a8(function(bc){return function(bd,bg,be){var bf={};
bf.type=a9.types.items;bf.interval=bc;bf.async=true;bf.context=be;return(new a9(bd,bg,bf)).deferred}}),zip:a8(function(bc){return function(bd,bg,be){var bf={};bf.type=a9.types.zip;
bf.interval=bc;bf.async=true;bf.context=be;return(new a9(bd,bg,bf)).deferred}})});delete ap.createLightIterateConstructor;aN.update({Iter:function(){return a6(this)?this.init(arguments):new A.fn.init(arguments)
}});A=aN.Iter;A.fn=A.prototype=I(A.prototype,{constructor:A,id:L.getMagicNumber(),serial:null,NAME:"Iter",toString:Q,isIter:a6,init:function(bc){if(!this.serial){this.serial=af(this)
}return this},next:function(){throw aU}});A.fn.init.prototype=A.fn;I(A,{StopIteration:aU,toIter:function(bd){var be,bg,bc,bf;if(a6(bd)){return bd}bc=bd&&aD(bd);bf=bd&&!bc&&D(bd);
if(bf){bg=[];a7(bd,function(bh,bi){bg[bg.length]=[bh,bi]})}else{bg=a1(bd)}be=new A();be.next=(function(){var bh=0;if(bf){return function(){var bi,bl,bk;while(true){if(bh>=bg.length){throw aU
}if(!(bh in bg)){bh++;continue}try{bi=bg[bh][1];bl=bg[bh][0]}catch(bj){bh++;continue}bk=[bl,bi];bh++;return bk}}}else{return function(){var bj,bi;while(true){if(bh>=bg.length){throw aU
}if(!(bh in bg)){bh++;continue}try{bj=bg[bh]}catch(bk){bh++;continue}bi=[bj,bh];bh++;return bi}}}}());return be},forEach:function(){return aN.iterate.apply(null,arguments)
},map:function(be,bi,bc){var bj,bk,bg,bh,bf,bd;bh=this&&this.iterateSpeed;bk=be&&aD(be);bg=be&&!bk&&D(be);if(bk){bj=[]}else{if(bg){bj={}}else{bj=null}}bd=bh||this&&this.iterateSpeedSync||aN.iterate;
bf=function(){return bd(be,function(bo,bm,bn){var bl=bi.call(bc,bo,bm,bn);if(Z(bl)){return bl.then(function(bp){if(bk){bj[bj.length]=bp}else{if(bg){bj[bm]=bp}else{bj=bp
}}})}else{if(bk){bj[bj.length]=bl}else{if(bg){bj[bm]=bl}else{bj=bl}}}},bc)};if(bh){return bf().then(function(){return bj})}else{bf();return bj}},filter:(function(){var bc=function(bd){return bd
};return function(bg,bk,bd){var bl,bm,bi,bj,bh,be,bf;bf=bk||bc;bj=this&&this.iterateSpeed;bm=bg&&aD(bg);bi=bg&&!bm&&D(bg);if(bm){bl=[]}else{if(bi){bl={}}else{bl=null
}}be=bj||this&&this.iterateSpeedSync||aN.iterate;bh=function(){return be(bg,function(bq,bo,bp){var bn=bf.call(bd,bq,bo,bp);if(Z(bn)){return bn.then(function(br){if(br){if(bm){bl[bl.length]=bq
}else{if(bi){bl[bo]=bq}else{bl=bq}}}})}else{if(bn){if(bm){bl[bl.length]=bq}else{if(bi){bl[bo]=bq}else{bl=bq}}}}},bd)};if(bj){return bh().then(function(){return bl
})}else{bh();return bl}}}()),reduce:function(be,bl,bh,bc){var bm,bg,bj,bk,bi,bf,bd;bi=this&&this.iterateSpeed;bm=be&&aD(be);bg=be&&!bm&&D(be);if(bh===void 0){bj=(function(){var bn;
if(bm||bg){a7(be,function(bo){bn=bo;throw aU})}return bn}())}else{bj=bh}bk=true;bd=bi||this&&this.iterateSpeedSync||aN.iterate;bf=function(){return bd(be,function(bq,bo,bp){var bn;
if(bk){bk=false}else{bn=bl.call(bc,bj,bq,bo,bp);if(Z(bn)){return bn.then(function(br){bj=br})}else{bj=bn}}},bc)};if(bi){return bf().then(function(){return bj})}else{bf();
return bj}},every:function(bd,bi,be){var bc=true,bh,bf,bg;bh=this&&this.iterateSpeed;bg=bh||this&&this.iterateSpeedSync||aN.iterate;bf=function(){return bg(bd,function(bm,bk,bl){var bj=bi.call(be,bm,bk,bl);
if(Z(bj)){return bj.then(function(bn){if(!bn){bc=false;throw aU}})}else{if(!bj){bc=false;throw aU}}},be)};if(bh){return bf().then(function(){return bc})}else{bf();
return bc}},some:function(bd,bi,be){var bc=false,bh,bf,bg;bh=this&&this.iterateSpeed;bg=bh||this&&this.iterateSpeedSync||aN.iterate;bf=function(){return bg(bd,function(bm,bk,bl){var bj=bi.call(be,bm,bk,bl);
if(Z(bj)){return bj.then(function(bn){if(bn){bc=true;throw aU}})}else{if(bj){bc=true;throw aU}}},be)};if(bh){return bf().then(function(){return bc})}else{bf();return bc
}},range:function(){var bh=arguments,bj,bk=[],be=0,bf=0,bd=1,bc,bg,bi;switch(bh.length){case 0:return;case 1:bj=bh[0];if(D(bj)){if("begin" in bj){be=bj.begin}else{if("start" in bj){be=bj.start
}}if("end" in bj){bf=bj.end}else{if("stop" in bj){bf=bj.stop}}if("step" in bj){bd=bj.step}}else{bf=bj}break;case 2:be=bh[0];bf=bh[1];break;default:be=bh[0];bf=bh[1];
bd=bh[2]}if(aW(be)&&be.length===1&&aW(bf)&&bf.length===1){be=be.charCodeAt(0)||0;bf=bf.charCodeAt(0)||0;bg=true}else{be=be-0;bf=bf-0;bg=false}bd=bd-0;if(isNaN(be)||isNaN(bf)||isNaN(bd)||bd==0){return bk
}if((bd>0&&be>bf)||(bd<0&&be<bf)){bc=be;be=bf;bf=bc}bi=new A();bi.next=function(){if((bd>0&&be>bf)||(bd<0&&be<bf)){throw aU}bk[bk.length]=bg?g(be):be;be+=bd};aN.iterate(bi);
return bk},indexOf:function(be,bl,bm){var bp=-1,bh,bi,bc,bg,bk=arguments,bn=bk.length,bo=be&&aD(be),bf=be&&!bo&&D(be);if(bo){try{if(u.isBuiltinArrayIndexOf){bh=r.apply(be,a1(bk,1));
if(v(bh)){bp=bh}else{throw bh}}else{throw bh}}catch(bd){bi=(be&&be.length)||0;bh=(+bm)||0;bh=(bh<0)?Math.ceil(bh):Math.floor(bh);if(bh<0){bh+=bi}for(;bh<bi;bh++){try{if(bh in be){bc=be[bh];
if(bc===bl){bp=bh;break}}}catch(bj){continue}}}}else{if(bf){bg=false;a7(be,function(bq,br){if(!bg&&bn>=3&&bm!==br){return}else{bg=true}if(bq===bl){bp=br}})}else{if(be!=null){try{bc=(be.toString&&be.toString())||String(be);
bp=a2.indexOf.apply(bc,a1(bk,1))}catch(bj){bp=-1}}else{bp=-1}}}return bp},lastIndexOf:function(bf,bm,bn){var bq=-1,bi,bj,bo,bd,bh,bc,bl=arguments,bp=bf&&aD(bf),bg=bf&&!bp&&D(bf);
if(bp){try{if(u.isBuiltinArrayLastIndexOf){bi=aH.apply(bf,a1(bl,1));if(v(bi)){bq=bi}else{throw bi}}else{throw bi}}catch(be){bj=(bf&&bf.length)||0;bi=(+bn);if(isNaN(bi)){bi=bj-1
}else{bi=(bi<0)?Math.ceil(bi):Math.floor(bi);if(bi<0){bi+=bj}else{if(bi>=bj){bi=bj-1}}}for(;bi>-1;bi--){try{if(bi in bf){bd=bf[bi];if(bd===bm){bq=bi;break}}}catch(bk){continue
}}}}else{if(bg){bc=[];bh=false;a7(bf,function(br,bs){bc[bc.length]=[bs,br];if(br===bm){bq=bs}if(bs===bn){bh=true;throw aU}});if(bh){bq=-1;bj=bc.length;while(--bj>=0){bo=bc[bj][0];
bd=bc[bj][1];if(bd===bm){bq=bo;break}}}}else{if(bf!=null){try{bd=(bf.toString&&bf.toString())||String(bf);bq=a2.lastIndexOf.apply(bd,a1(bl,1))}catch(bk){bq=-1}}else{bq=-1
}}}return bq}});aN.update({toIter:A.toIter});I(ap,{createIterators:function(bc){a7(bc,function(bd){var be={};be[bd.NAME]=function(){var bg={},bf=a1(arguments);bg.iterateSpeed=(this&&this.iterateSpeed)||h.iterate;
return h.begin(function(){var bh=new h();bd.method.apply(bg,bf).then(function(bi){bh.begin(bi)},function(bi){bh.raise(bi)});return bh})};I(h,be);h.extendSpeeds(h,bd.NAME,function(bh){var bg={},bf=a1(arguments,1);
bg.iterateSpeed=h.iterate[bh.speedName];return h.begin(function(){var bi=new h();bd.method.apply(bg,bf).then(function(bj){bi.begin(bj)},function(bj){bi.raise(bj)
});return bi})},a9.speeds)})},createProtoIterators:function(bc){a7(bc,function(bd){var bf={},be={};bf[bd.NAME]=function(){var bh=a1(arguments),bg=I({},this.options);
return this.then(function(bi){var bj=new h();bh=bd.args(bi,bh);bd.method.apply(bd.context,bh).ensure(function(bk){an(bj,bg);if(d(bk)){bj.raise(bk)}else{bj.begin(bk)
}});return bj})};I(h.fn,bf);if(bd.speed){if(bd.iterable){be.methods=function(bg){return{iter:bd.iterable[bg],context:bd.context}}}else{be.methods=function(bg){return{iter:bd.method,context:{iterateSpeed:bd.context.iterateSpeed[bg]}}
}}h.extendSpeeds(h.fn,bd.NAME,function(bi){var bh=a1(arguments,1),bj=be.methods(bi.speedName),bg=I({},this.options);return this.then(function(bk){var bl=new h();
bh=bd.args(bk,bh);bj.iter.apply(bj.context,bh).ensure(function(bm){an(bl,bg);if(d(bm)){bl.raise(bm)}else{bl.begin(bm)}});return bl})},a9.speeds)}})},createSyncIterator:function(bf){var bd,bc,be=function(bh){var bg=bh;
if(!bg){a7(a9.speeds,function(bj,bi){if(bj===a9.defaults.speed){bg=bi;throw aU}})}return bf(bg)};bc=be();bd={};a7(a9.speeds,function(bh,bg){bd[bg]=be(bg)});return I(bc,bd)
}});ap.createIterators([{NAME:"map",method:A.map},{NAME:"filter",method:A.filter},{NAME:"reduce",method:A.reduce},{NAME:"every",method:A.every},{NAME:"some",method:A.some}]);
ap.createProtoIterators([{NAME:"forEach",method:h.forEach,context:null,speed:true,iterable:h.forEach,args:function(bc,bd){return[bc].concat(bd)}},{NAME:"repeat",method:h.repeat,context:null,speed:true,iterable:h.repeat,args:function(bc,bd){if(v(bc)){return[bc-0].concat(bd)
}if(bc&&O(bc.length)){return[bc.length].concat(bd)}if(bc&&D(bc)&&("end" in bc||"begin" in bc||"step" in bc||"stop" in bc||"start" in bc)){return[bc].concat(bd)}return bd
}},{NAME:"forEver",method:h.forEver,context:null,speed:true,iterable:h.forEver,args:function(bc,bd){return bd}},{NAME:"iterate",method:h.iterate,context:null,speed:true,iterable:h.iterate,args:function(bc,bd){return[bc].concat(bd)
}},{NAME:"items",method:h.items,context:null,speed:true,iterable:h.items,args:function(bc,bd){return[bc].concat(bd)}},{NAME:"zip",method:h.zip,context:null,speed:true,iterable:h.zip,args:function(bc,bd){return[bc].concat(bd)
}},{NAME:"map",method:A.map,context:{iterateSpeed:h.iterate},speed:true,iterable:null,args:function(bc,bd){return[bc].concat(bd)}},{NAME:"filter",method:A.filter,context:{iterateSpeed:h.iterate},speed:true,iterable:null,args:function(bc,bd){return[bc].concat(bd)
}},{NAME:"reduce",method:A.reduce,context:{iterateSpeed:h.iterate},speed:true,iterable:null,args:function(bc,bd){return[bc].concat(bd)}},{NAME:"every",method:A.every,context:{iterateSpeed:h.iterate},speed:true,iterable:null,args:function(bc,bd){return[bc].concat(bd)
}},{NAME:"some",method:A.some,context:{iterateSpeed:h.iterate},speed:true,iterable:null,args:function(bc,bd){return[bc].concat(bd)}}]);ba=ap.createSyncIterator;aN.update({map:ba(function(bc){return function(){var bd={iterateSpeedSync:aN.iterate[bc]};
return A.map.apply(bd,arguments)}}),filter:ba(function(bc){return function(){var bd={iterateSpeedSync:aN.iterate[bc]};return A.filter.apply(bd,arguments)}}),reduce:ba(function(bc){return function(){var bd={iterateSpeedSync:aN.iterate[bc]};
return A.reduce.apply(bd,arguments)}}),every:ba(function(bc){return function(){var bd={iterateSpeedSync:aN.iterate[bc]};return A.every.apply(bd,arguments)}}),some:ba(function(bc){return function(){var bd={iterateSpeedSync:aN.iterate[bc]};
return A.some.apply(bd,arguments)}}),range:function(){return A.range.apply(null,arguments)},indexOf:function(){return A.indexOf.apply(null,arguments)},lastIndexOf:function(){return A.lastIndexOf.apply(null,arguments)
}});I(L,{defineDeferrater:ba});(function(){var bc=function(bh){return new bc.prototype.init(bh)},bf=af({NAME:".\u0000[~`{{*@:SPEED:@*}}`~]\u0001"}),be={},bd=0,bg=8192;
bc.prototype=I(bc.prototype,{constructor:bc,id:L.getMagicNumber(),func:null,code:null,tokens:[],uniqs:{},tails:[],iteration:{},init:function(bh){this.func=bh;this.code=this.toCode(this.func);
this.tokens=[];this.iteration={};this.tails=[];return this},execute:function(){var bi=this,bh="";if(this.code){if(this.code in be){bh=be[this.code]}else{this.uniqs={};
a7("key val ret rev err nxt".split(" "),function(bj){bi.uniqs[bj]=bi.generateUniqName({NAME:"$_"+bj+"_"})});this.tokens=this.tokenize(this.code);if(!this.hasIteration(this.tokens)){bh=this.func
}else{this.parseLoop();bh=this.deferrizeFunction();if(bh){if(bd<bg){be[this.code]=bh;bd++}}}}}return bh},hasIteration:function(bl){var bi=false,bk,bh,bj;if(bl){bh=bl.length;
for(bk=0;bk<bh;bk++){bj=bl[bk];if(bj==="for"||bj==="while"||bj==="do"){bi=true;break}}}return bi},toCode:function(bh){return aN.getFunctionCode(bh)},isWord:(function(){var bh={SPACE:/\s/,WORDS:/[$\w\u0100-\uFFFF]/};
return function(bi){return bi!=null&&!bh.SPACE.test(bi)&&bh.WORDS.test(bi)}}()),isNL:(function(){var bh=/\r\n|\r|\n/;return function(bi){return bi!=null&&bh.test(bi)
}}()),format:function(){var bh=a1(arguments);return bh[0].replace(/#(\d+)/g,function(bi,bj){return bh[+bj]})},joinTokens:function(bm){var bp=[],bl=bm.length,bj,bo,bi,bn,bk,bh;
for(bk=0;bk<bl;bk++){bh=bm[bk];if(!bj){bp[bp.length]=bh}else{bi="";bn="";if(bh==="+"||bh==="-"||bh==="++"||bh==="--"||bh==="in"){bi=" ";bn=" "}else{if(this.isWord(bj.slice(-1))&&this.isWord(bh.charAt(0))){bi=" "
}}if(bo===" "){bi=""}bp[bp.length]=bi+bh+bn}bj=bh;bo=bn}return bp.join("")},toEnd:function(bi){var bh;if(b(bi)){bh=this.joinTokens(bi)}else{bh=ag(bi)}if(aL(bh).slice(-1)===";"){return bh
}return bh?bh+";":bh},generateUniqName:function(bi){var bh;do{bh=af(bi||aN,"")}while(~aN.indexOf(this.tokens,bh));return bh},tokenize:(function(){var bh={TOKEN:new RegExp("(^\\s*function\\b[^{]*[{]|[}][^}]*$|/[*][\\s\\S]*?[*]/|/{2,}[^\\r\\n]*(?:\\r\\n|\\r|\\n|)|\"(?:\\\\[\\s\\S]|[^\"\\r\\n\\\\])*\"|'(?:\\\\[\\s\\S]|[^'\\r\\n\\\\])*'|/(?![*])(?:\\\\.|[^/\\r\\n\\\\])+/[gimy]{0,4}|<([^\\s>]*)[^>]*>[\\s\\S]*?</\\2>|>>>=?|<<=|===|!==|>>=|[+][+](?=[+])|[-][-](?=[-])|[=!<>*+/&|^-]=|[&][&]|[|][|]|[+][+]|[-][-]|<<|>>|0(?:[xX][0-9a-fA-F]+|[0-7]+)|\\d+(?:[.]\\d+)?(?:[eE][+-]?\\d+)?|[1-9]\\d*|[-+/%*=&|^~<>!?:,;@()\\\\[\\].{}]|(?![\\r\\n])\\s+|(?:\\r\\n|\\r|\\n)|[^\\s+/%*=&|^~<>!?:,;@()\\\\[\\].{}'\"-]+)","g"),NOTSPACE:/[\S\r\n]/,COMMENTS:/^\/{2,}[\s\S]*$|^\/[*][\s\S]*?[*]\/$/};
return function(bm){var bl=[],bi,bj,bk=this.toCode(bm);if(bk){bh.TOKEN.lastIndex=0;while((bi=bh.TOKEN.exec(bk))!=null){bj=bi[1];if(!bh.NOTSPACE.test(bj)||bh.COMMENTS.test(bj)){continue
}else{bl[bl.length]=bj}}}return bl}}()),parseLoop:function(){var br,bp=0,bq=[],bk=[],bo=0,bi=0,bh=0,bm,bl,bj,bn=this.tokens.length;for(bl=0;bl<bn;bl++){bj=this.tokens[bl];
switch(bj){case"for":case"while":case"do":if(!bm){bm={token:bj,org:{level:bh,nest:bi},cur:{level:bh,nest:bi}}}break;case"(":bi++;if(bm){bm.cur.nest++}break;case")":bi--;
if(bm){if(--bm.cur.nest===bm.org.nest&&bm.cur.level===bm.org.level&&bm.token==="do"){bm.last=true}}break;case"{":bh++;if(bm){bm.cur.level++}break;case"}":bh--;if(bm){if(--bm.cur.level===bm.org.level&&bm.cur.nest===bm.org.nest&&bm.token!=="do"){bm.last=true
}}break}if(bm){if(!(bo in bq)){bq[bo]=[];bk[bo]={start:bl}}bq[bo][bq[bo].length]=bj;if(bm.last){bk[bo].end=bl;bm=null;bo++}}}bn=bq.length;for(bl=0;bl<bn;bl++){if(bq[bl].length>bp){bp=bl
}}this.iteration={loops:bq[bp],start:bk[bp].start,end:bk[bp].end};return br},deferrizeLoop:function(){var bi=this.iteration.loops,bh=bi.shift();switch(bh){case"for":return this.parseFor(bi);
case"while":return this.parseWhile(bi);case"do":return this.parseDoWhile(bi)}},deferrizeFunction:function(){var bs,bm,bk,bi,bl,bo=this.tokens.length,bq="before",bp,br={level:0,block:0},bj={before:[],loop:[],after:[],result:[]},bn=function(bt){if(!br[bt]){br[bt]={block:br.block,level:br.level}
}},bh=function(bt){a7(bt?a1(bt):["func","cond"],function(bu){if(br[bu]&&br[bu].block===br.block&&br[bu].level===br.level){br[bu]=null}})};for(bl=1;bl<bo-1;bl++){if(bl>=this.iteration.start&&bl<=this.iteration.end){if(!bk){bk=true;
bl=this.iteration.end-1;bj.loop=a1(this.deferrizeLoop());bq="after";if(br.cond){bp=true}}continue}bi=this.tokens[bl];bm=this.tokens[bl+1];switch(bi){case"{":br.block++;
break;case"}":br.block--;bh();break;case"(":br.level++;break;case")":br.level--;if(br.cond&&br.cond.expr&&bm==="{"){br.cond.expr=null;bh("func")}else{bh()}break;
case";":bh("result");break;case"function":bn("func");break;case"if":bn("cond");br.cond.expr=true;break;case"return":if(!br.func&&!br.result){if(!bm||bm===";"||this.isNL(bm)){bi=this.format("#1 #2=void 0#3",bi,this.uniqs.ret,(bm===";"||this.isNL(bm))?"":";")
}else{bi=this.format("#1(#2!==#3)?#2:#2=",bi,this.uniqs.ret,this.uniqs.rev)}bj.result=[];bn("result")}break;default:if(br.result&&this.isNL(bi)){bh("result")}break
}bj[bq][bj[bq].length]=bi;if(br.result){bj.result[bj.result.length]=bi}}bs=this.format("#1var #2={},#3=#2,#4={};return Pot.Deferred.begin(function(){#5#6#9});#7#8}).then(function(r){return(#2===#3)?r:#2;});#10",this.tokens.shift(),this.uniqs.ret,this.uniqs.rev,this.uniqs.nxt,this.toEnd(this.joinTokens(bj.before)),this.joinTokens(bj.loop),this.joinTokens(this.tails),this.joinTokens(bp?bj.after:[]),this.joinTokens(bp?bj.result:bj.after),this.tokens.pop());
return bs},parseWhile:function(br){var bv="",bh=0,bi=0,bq=false,bl,bo,bt,bs="cond",bn,bk,bm,bp=br.length,bj=false,bu={cond:[],body:[]};for(bm=0;bm<bp;bm++){bk=br[bm];
bo=br[bm+1];bt=false;switch(bk){case"(":bi++;if(bn){bn.cur.nest++}if(bm===0&&bi===1){bt=true}break;case")":bi--;if(bn){if(--bn.cur.nest===bn.org.nest&&bn.cur.level===bn.org.level&&bn.token==="do"){bn=null
}}if(!bq&&bi===0&&bh===0&&bo==="{"){bt=true}break;case"{":bh++;if(bn){bn.cur.level++}if(bh===1&&bi===0&&bl===")"){bt=true;bq=true;bs="body"}break;case"}":bh--;if(bn){if(--bn.cur.level===bn.org.level&&bn.cur.nest===bn.org.nest&&bn.token!=="do"){bn=null
}}if(bq&&bi===0&&bh===0){bu.body.unshift(this.format("if(#1!==#2||!(#3)){throw Pot.StopIteration;}try{",this.uniqs.ret,this.uniqs.rev,this.joinTokens(bu.cond)||"false"));
bu.body.push(this.format("}catch(#1){if(Pot.isError(#1)||Pot.isStopIter(#1)){throw #1;}if(#1!==#2){throw #1;}}",this.uniqs.err,this.uniqs.nxt));bk+=").then(function(){";
bj=true}break;case"for":case"while":case"do":bn={token:bk,org:{level:bh,nest:bi},cur:{level:bh,nest:bi}};break;case"break":if(!bn&&bq&&!this.isWord(bo)){bk="throw Pot.StopIteration"
}break;case"continue":if(!bn&&bq&&!this.isWord(bo)){bk="throw "+this.uniqs.nxt}break;case"return":if(bq){if(!bo||bo===";"||this.isNL(bo)){bk=this.format("#1 #2=void 0#3",bk,this.uniqs.ret,(bo===";"||this.isNL(bo))?"":";")
}else{bk=this.format("#1 #2=",bk,this.uniqs.ret)}}break}if(!bt){bu[bs][bu[bs].length]=bk}bl=bk}bv="";if(!bj){throw new Error("Parse error, expect 'while(...)'")}bv=this.format("return Pot.Deferred.forEver.#1(function(){#2",bf,this.joinTokens(bu.body));
return bv},parseDoWhile:function(bq){var bu="",bh=0,bi=0,bl,bo,br,bs="body",bn,bk,bm,bp=bq.length,bj=false,bt={cond:[],body:[],after:[]};for(bm=0;bm<bp;bm++){bk=bq[bm];
bo=bq[bm+1];br=false;switch(bk){case"(":bi++;if(bn){bn.cur.nest++}if(bh===0&&bi===1&&bl==="while"){br=true;bs="cond"}break;case")":bi--;if(bn){if(--bn.cur.nest===bn.org.nest&&bn.cur.level===bn.org.level&&bn.token==="do"){bn=null
}}if(bi===0&&bh===0&&bs==="cond"){br=true}break;case"{":bh++;if(bn){bn.cur.level++}if(bm===0&&bh===1){br=true}break;case"}":bh--;if(bn){if(--bn.cur.level===bn.org.level&&bn.cur.nest===bn.org.nest&&bn.token!=="do"){bn=null
}}if(bi===0&&bh===0&&bo==="while"){bj=true;br=true}break;case"while":if(bh===0&&bi===0){br=true;break}case"for":case"do":bn={token:bk,org:{level:bh,nest:bi},cur:{level:bh,nest:bi}};
break;case"break":if(!bn&&!this.isWord(bo)){bk="throw Pot.StopIteration"}break;case"continue":if(!bn&&!this.isWord(bo)){bk="throw "+this.uniqs.nxt}break;case"return":if(!bo||bo===";"||this.isNL(bo)){bk=this.format("#1 #2=void 0#3",bk,this.uniqs.ret,(bo===";"||this.isNL(bo))?"":";")
}else{bk=this.format("#1 #2=",bk,this.uniqs.ret)}break}if(!br){bt[bs][bt[bs].length]=bk}bl=bk}bu="";if(!bj){throw new Error("Parse error, expect 'do...while()'")
}bt.body.unshift(this.format("if(#1!==#2){throw Pot.StopIteration;}try{",this.uniqs.ret,this.uniqs.rev));bt.body.push(this.format("}catch(#1){if(Pot.isError(#1)||Pot.isStopIter(#1)){throw #1;}if(#1!==#2){throw #1;}}finally{if(!(#3)){throw Pot.StopIteration;}}}).then(function(){",this.uniqs.err,this.uniqs.nxt,this.joinTokens(bt.cond)||"false"));
bu=this.format("return Pot.Deferred.forEver.#1(function(){#2",bf,this.joinTokens(bt.body));return bu},parseFor:function(bs){var bx="",bh=0,bi=0,bp=null,br=false,bl,bo,bu,bt="before",bw,bn,bm,bq,bk,bj=false,bv={prefix:[],suffix:[],before:[],cond:[],after:[],key:[],target:[],body:[]};
bq=bs.length;for(bm=0;bm<bq;bm++){bk=bs[bm];bo=bs[bm+1];bu=false;switch(bk){case"(":bi++;if(bn){bn.cur.nest++}if(bm===0&&bi===1){bu=true}break;case")":bi--;if(bn){if(--bn.cur.nest===bn.org.nest&&bn.cur.level===bn.org.level&&bn.token==="do"){bn=null
}}if(!br&&bi===0&&bh===0&&bo==="{"){bu=true}break;case"{":bh++;if(bn){bn.cur.level++}if(bh===1&&bi===0&&bl===")"){bu=true;br=true;bt="body"}break;case"}":bh--;if(bn){if(--bn.cur.level===bn.org.level&&bn.cur.nest===bn.org.nest&&bn.token!=="do"){bn=null
}}if(br&&bi===0&&bh===0){bv.body.unshift(this.format("if(#1!==#2){throw Pot.StopIteration;}try{",this.uniqs.ret,this.uniqs.rev));if(bv.suffix.length){bv.body.push(this.toEnd(this.joinTokens(bv.suffix)))
}bv.body.push(this.format("}catch(#1){if(Pot.isError(#1)||Pot.isStopIter(#1)){throw #1;}if(#1!==#2){throw #1;}}finally{#3}",this.uniqs.err,this.uniqs.nxt,this.toEnd(this.joinTokens(bv.after))));
bk+=").then(function(){";bj=true}break;case"each":if(bm===0){throw new Error("Not supported 'for each'")}break;case"in":case"of":if(!br&&bp===null&&bi===1&&bh===0){bu=true;
bp=true;if(bv.before.length>2){throw new Error("Invalid keys, expect 'for(var [...] in ...);'")}if(bw){bv.before.push(";");aT.apply(bv.prefix,bv.before);bv.before.shift();
bv.before.pop();if(bw==="let"){bv.prefix.unshift("{");this.tails.push("}")}}bv.before.push("="+this.uniqs.key);bv.before.push(";");bv.key=bv.before;aT.apply(bv.body,bv.key);
bt="target"}break;case"var":case"let":if(!bw&&bm===1&&bi===1){bw=bk}break;case",":if(!br&&bi===1&&bh===0&&!bw&&(bt==="before"||bt==="after")){bk=";"}break;case";":if(!br&&bi===1&&bh===0){bu=true;
if(bp===null){bp=false}if(bt==="before"){bt="cond";bv.prefix.push(this.toEnd(this.joinTokens(bv.before)));if(bw==="let"){bv.prefix.unshift("{");this.tails.push("}")
}}else{if(bt==="cond"){bt="after";if(bv.cond.length){bv.cond.unshift("if(");bv.cond.push("){");bv.suffix.push("}else{throw Pot.StopIteration;}")}f.apply(bv.body,bv.cond)
}}}break;case"for":case"while":case"do":bn={token:bk,org:{level:bh,nest:bi},cur:{level:bh,nest:bi}};break;case"break":if(!bn&&br&&!this.isWord(bo)){bk="throw Pot.StopIteration"
}break;case"continue":if(!bn&&br&&!this.isWord(bo)){bk="throw "+this.uniqs.nxt}break;case"return":if(br){if(!bo||bo===";"||this.isNL(bo)){bk=this.format("#1 #2=void 0#3",bk,this.uniqs.ret,(bo===";"||this.isNL(bo))?"":";")
}else{bk=this.format("#1 #2=",bk,this.uniqs.ret)}}break}if(!bu){bv[bt][bv[bt].length]=bk}bl=bk}bx="";if(!bj){throw new Error("Parse error, expect 'for(...)'")}if(bp){bx=this.format("#1return Pot.Deferred.forEach.#2(#3,function(#4,#5){#6",this.toEnd(this.joinTokens(bv.prefix)),bf,this.joinTokens(bv.target),this.uniqs.val,this.uniqs.key,this.joinTokens(bv.body))
}else{bx=this.format("#1return Pot.Deferred.forEver.#2(function(){#3",this.toEnd(this.joinTokens(bv.prefix)),bf,this.joinTokens(bv.body))}return bx}});bc.prototype.init.prototype=bc.prototype;
I(L,{deferrate:function(bh){return(new bc(bh)).execute()}});I(h,{deferreed:function(bm,bh){var bp,bk,bj,bl,bi,bo;try{switch(arguments.length){case 0:throw false;
case 1:bk=bm;if(!aK(bk)){throw bk}bo=bk;break;case 2:default:if(D(bh)){bj=bh;bk=bm}else{bk=bh;bj=bm}if(!aK(bj[bk])){throw bk}bo=bj[bk];break}if(!bo||!aK(bo)||aN.isBuiltinMethod(bo)){throw bo
}bi=L.deferrate(bo);if(!bi){throw bi}if(bi===bo){bp=h.deferrize(bo)}else{if(!aW(bi)){throw bi}bp=L.defineDeferrater(function(br){var bs=bi.replace(bf,br),bq=aN.localEval(bs,bj);
return function(){return bq.apply(bj,arguments)}})}if(!bp||!aK(bp)){throw bp}}catch(bn){bl=bn;throw d(bl)?bl:new Error(bl)}return bp}});aN.update({deferreed:h.deferreed})
}());delete ap.createIterators;delete ap.createProtoIterators;delete ap.createSyncIterator}());(function(){var bg;aN.update({ArrayBufferoid:I(function(){return aj(this)?this.init(arguments):new J.fn.init(arguments)
},{types:{}})});J=aN.ArrayBufferoid;bg=J.types;a7({ArrayBuffer:1,Int8Array:2,Uint8Array:4,Uint8ClampedArray:8,Int16Array:16,Uint16Array:32,Int32Array:64,Uint32Array:128,Float32Array:256,Float64Array:512},function(bi,bh){bg[bh]=bi;
J["to"+bh]=function(){return bd(bi,arguments)}});J.fn=J.prototype={constructor:J,id:L.getMagicNumber(),serial:null,NAME:"ArrayBufferoid",isArrayBufferoid:aj,length:0,offset:0,init:function(bh){if(!this.serial){this.serial=af(this)
}this.length=0;this.offset=0;ba(this,bh);return this},size:function(){var bh=bb(this,true);this.length=bh;return bh},toString:function(){var bh=bf(this);return ab.toString.call(bh)
},join:function(bh){var bi=bf(this);return ab.join.apply(bi,arguments)},push:function(){var bi=bf(this,true),bh=f.apply(bi,arguments);a8(this,bi);return bh},pop:function(){var bi=bf(this,true),bh=ab.pop.apply(bi,arguments);
a8(this,bi);return bh},shift:function(){var bi=bf(this,true),bh=ab.shift.apply(bi,arguments);a8(this,bi);return bh},unshift:function(){var bi=bf(this,true),bh=aT.apply(bi,arguments);
a8(this,bi);return bh},reverse:function(){var bh=bf(this);return new J(ab.reverse.apply(bh,arguments))},sort:function(){var bh=bf(this,true);ab.sort.apply(bh,arguments);
a8(this,bh);return new J(bh)},concat:function(){var bh=bf(this);return new J(aY.apply(bh,arguments))},slice:function(){var bh=bf(this);return new J(y.apply(bh,arguments))
},splice:function(){var bi=bf(this,true),bh=new J(aE.apply(bi,arguments));a8(this,bi);return bh},indexOf:function(){var bh=a1(arguments);bh.unshift(this);return aN.indexOf.apply(null,bh)
},lastIndexOf:function(){var bh=a1(arguments);bh.unshift(this);return aN.lastIndexOf.apply(null,bh)},filter:function(){var bh=a1(arguments);bh.unshift(this);if(bh[2]===void 0){bh[2]=this
}return new J(aN.filter.apply(null,bh))},forEach:function(){var bh=a1(arguments);bh.unshift(this);if(bh[2]===void 0){bh[2]=this}return aN.forEach.apply(null,bh)},map:function(){var bh=a1(arguments);
bh.unshift(this);if(bh[2]===void 0){bh[2]=this}return new J(aN.map.apply(null,bh))},reduce:function(){var bh=a1(arguments);bh.unshift(this);if(bh[3]===void 0){bh[3]=this
}return aN.reduce.apply(null,bh)},every:function(){var bh=a1(arguments);bh.unshift(this);if(bh[2]===void 0){bh[2]=this}return aN.every.apply(null,bh)},some:function(){var bh=a1(arguments);
bh.unshift(this);if(bh[2]===void 0){bh[2]=this}return aN.some.apply(null,bh)}};a7(bg,function(bj,bh){var bi="to"+bh;J.fn[bi]=function(){return J[bi](bf(this))}});
I(J.fn,{toArray:function(){return bf(this)},seek:function(bh){this.offset=(bh-0)||0;return this.offset},tell:function(){return this.offset},read:function(bi){var bj=(bi-0)||0,bh=this.slice(this.offset,this.offset+bj);
this.offset+=bj;return bh},write:function(bk){var bi=0,bl=a1(bk),bj=0,bh=bl.length;for(;bj<bh;bj++){this[this.offset++]=bl[bj];bi++}return bi}});I(J.fn,{getInt8:function(bi){var bh=this.getUint8(bi);
return(bh<128)?bh:bh-256},getUint8:function(bh){var bi;if(bh!=null){this.offset=(bh-0)||0}bi=this[this.offset++];if(aW(bi)){bi=bi.charCodeAt(0)}return bi&255},getInt16:function(bi,bj){var bh=this.getUint16(bi,bj);
return(bh<2048)?bh:bh-65536},getUint16:function(bi,bj){var bh=a9(this,bi,2,bj);return(bh[0]<<8)+bh[1]},getInt32:function(bi,bj){var bh=this.getUint32(bi,bj);return(bh>2147483647)?bh-Math.pow(2,32):bh
},getUint32:function(bi,bj){var bh=a9(this,bi,4,bj);return(bh[0]*16777216)+(bh[1]<<16)+(bh[2]<<8)+bh[3]},getFloat32:function(bl,bm){var bi=a9(this,bl,4,bm),bj=1-(2*(bi[0]>>7)),bh=(((bi[0]<<1)&255)|(bi[1]>>7))-127,bk=((bi[1]&127)<<16)|(bi[2]<<8)|bi[3];
if(bh===128){return(bk===0)?bj*Infinity:NaN}else{if(bh===-127){return bj*bk*Math.pow(2,-126-23)}else{return bj*(1+bk*Math.pow(2,-23))*Math.pow(2,bh)}}},getFloat64:function(bl,bm){var bi=a9(this,bl,8,bm),bj=1-(2*(bi[0]>>7)),bh=((((bi[0]<<1)&255)<<3)|(bi[1]>>4))-1023,bk=((bi[1]&15)*Math.pow(2,48))+(bi[2]*Math.pow(2,40))+(bi[3]*Math.pow(2,32))+(bi[4]*16777216)+(bi[5]*65536)+(bi[6]*256)+bi[7];
if(bh===1024){return(bk===0)?bj*Infinity:NaN}else{if(bh===-1023){return bj*bk*Math.pow(2,-1022-52)}else{return bj*(1+bk*Math.pow(2,-52))*Math.pow(2,bh)}}}});J.fn.init.prototype=J.fn;
I(J,{copyBuffer:function(bl){var bj=[],bk,bi,bm,bh;if(bl){if(aj(bl)){bj=new J(bl)}else{if(u.hasTypedArray){if(u.canCopyTypedArray){bj=new Uint8Array(new Uint8Array(bl.subarray&&bl.subarray(0)||bl)).buffer
}else{bk=new Uint8Array(bl.buffer||bl);bi=[];bh=bk.length;for(bm=0;bm<bh;bm++){bi[bm]=bk[bm]}bj=new Uint8Array(bi).buffer}}else{bj=a1(bl)}}}return bj},binaryToBuffer:I(function(bj){var bi=new J(),bh,bk,bl=ag(bj);
if(bl){bh=bl.length;for(bk=0;bk<bh;bk++){bi[bk]=bl.charCodeAt(bk)&255;bi.length++}}return bi},{deferred:function(bi){var bh=new J(),bj=ag(bi);return h.repeat(bj.length,function(bk){bh[bk]=bj.charCodeAt(bk)&255;
bh.length++}).then(function(){return bh})}}),bufferToBinary:I(function(bj){var bi="",bl=[],bk,bh,bm;if(bj&&aD(bj)){bm=a1(bj);bh=bm.length;for(bk=0;bk<bh;bk++){bl[bk]=g(bm[bk])
}bi=bl.join("")}return bi},{deferred:function(bi){var bh,bj,bk=new h();if(bi&&u.hasFileReader&&u.createBlob){bj=new FileReader();if(aj(bi)){bh=bi.toArrayBuffer()
}else{bh=bi.buffer||bi}bj.onload=function(bl){if(bl&&bl.target){bk.begin(bl.target.result)}else{bk.raise(bl)}};bj.onerror=function(bl){bk.raise(bl)};bj.readAsBinaryString(aN.createBlob(bh))
}else{bk.begin(J.bufferToBinary(bi))}return bk}}),stringToBuffer:(function(){var bh=function(bi,bj){if(bj<128){bi[bi.length++]=bj}else{if(bj<2048){bi[bi.length++]=192|((bj>>6)&31);
bi[bi.length++]=128|((bj>>0)&63)}else{if(bj<65536){bi[bi.length++]=224|((bj>>12)&15);bi[bi.length++]=128|((bj>>6)&63);bi[bi.length++]=128|((bj>>0)&63)}else{bi[bi.length++]=240|((bj>>18)&15);
bi[bi.length++]=128|((bj>>12)&63);bi[bi.length++]=128|((bj>>6)&63);bi[bi.length++]=128|((bj>>0)&63)}}}};return function(bl){var bj=new J(),bi,bn,bk,bp,bm,bo=ag(bl);
if(bo){bi=bo.length;for(bn=0;bn<bi;bn++){bp=bo.charCodeAt(bn);if(55296<=bp&&bp<=55551){bk=bn+1;if(bk<bi){bm=bo.charCodeAt(bk);if(56320<=bm&&bm<=57343){bp=((bp&1023)<<10)+(bm&1023)+65536;
bn=bk}}}bh(bj,bp)}}return bj}}()),bufferToString:function(bm){var bt="",bs=[],bn=0,bo,bi,br,bl,bk,bj,bh,bq,bp;if(bm&&aD(bm)){bq=g;bp=a1(bm);bo=bp.length;while(bn<bo){br=bp[bn++];
bi=(br>>4);if(0<=bi&&bi<=7){bs[bs.length]=bq(br)}else{if(12<=bi&&bi<=13){bl=bp[bn++];bs[bs.length]=bq(((br&31)<<6)|(bl&63))}else{if(bi===14){bl=bp[bn++];bk=bp[bn++];
bs[bs.length]=bq(((br&15)<<12)|((bl&63)<<6)|((bk&63)<<0))}else{if(bn+2<bo){bl=bp[bn++];bk=bp[bn++];bj=bp[bn++];bh=(((br&7)<<18)|((bl&63)<<12)|((bk&63)<<6)|((bj&63)<<0));
if(bh<=65535){bs[bs.length]=bq(bh)}else{bs[bs.length]=j((bh>>10)+55232,(bh&1023)+56320)}}}}}}bt=bs.join("")}return bt}});function bd(bk,bi){var bj=bg,bh=bi.length,bl;
if(u.hasTypedArray){switch(true){case ((bk&bj.ArrayBuffer)===bk):return be(Uint8Array,bi).buffer;case ((bk&bj.Uint8Array)===bk):return be(Uint8Array,bi);case ((bk&bj.Uint16Array)===bk):return be(Uint16Array,bi);
case ((bk&bj.Uint32Array)===bk):return be(Uint32Array,bi);case ((bk&bj.Int8Array)===bk):return be(Int8Array,bi);case ((bk&bj.Int16Array)===bk):return be(Int16Array,bi);
case ((bk&bj.Int32Array)===bk):return be(Int32Array,bi);case ((bk&bj.Float32Array)===bk):return be(Float32Array,bi);case ((bk&bj.Float64Array)===bk):return be(Float64Array,bi);
case ((bk&bj.Uint8ClampedArray)===bk):if(u.hasUint8ClampedArray){return be(Uint8ClampedArray,bi)}}}if(bh){if(bh===1){bl=bi[0];if(O(bl)){return new Array(bl)}else{if(aD(bl)){return a1(bl)
}else{return[bl]}}}else{return a1(bi)}}return[]}function be(bl,bj){var bi,bk,bh;switch(bj.length){case 0:return new bl();case 1:return new bl(bj[0]);case 2:return new bl(bj[0],bj[1]);
case 3:return new bl(bj[0],bj[1],bj[2]);default:bi=[];bh=bj.length;for(bk=0;bk<bh;bk++){bi[bk]="a["+bk+"]"}return(new Function("a,c",aN.format("return new c(#1);",bi.join(","))))(bj,bl)
}}function bf(bj,bi){var bl=[],bk=0,bh=bj.size();for(;bk<bh;bk++){bl[bk]=bj[bk];if(bi){delete bj[bk]}}if(bi){bj.length=0}return bl}function a8(bi,bk){var bj=0,bh=bk.length;
for(;bj<bh;bj++){bi[bj]=bk[bj]}bi.length=bh}function bb(bj,bm){var bi=-1,bn,bl=0,bk,bo,bh;if(bm){bn=[];for(bo in bj){if(+bo>=0){bn[bn.length]=bo}}}else{bn=aN.keys(bj)
}bh=bn.length;for(;bl<bh;bl++){bk=+bn[bl];if(bk>bi){bi=bk}}if(bi>=0){bi++}else{bi=0}bj.length=bi;return bi}function ba(bj,bk){var bm=bk.length,bn,bl,bh,bi;switch(bm){case 0:bj.length=0;
break;case 1:bn=bk[0];if(!bn){bj.length=0}else{if(O(bn)){bh=bn;for(bl=0;bl<bh;bl++){bj[bl]=void 0}bj.length=bh}else{if(aD(bn)){if(B(bn)){if(ay(bn)&&bn.byteLength!=null&&bn[0]===void 0){bi=new Uint8Array(bn)
}else{bi=bn}}else{bi=a1(bn)}bh=bi.length;for(bl=0;bl<bh;bl++){bj[bl]=bi[bl]}bj.length=bh}else{bj[0]=bn;bj.length=1}}}break;default:bh=bk.length;for(bl=0;bl<bh;bl++){bj[bl]=bk[bl]
}bj.length=bh}}function a9(bh,bk,bj,bm){var bl=[],bi=0;for(;bi<bj;bi++){bl[bi]=bh.getUint8(bc(bh,bk,bi,bj,bm))}return bl}function bc(bh,bk,bm,bj,bl){var bi=(bl==null)?true:bl;
if(bk!=null){bh.offset=(bk-0)||0}return bh.offset+(bi?bj-bm-1:bm)}}());(function(){var bp,br,bd=".",bl={URI:/^(?:[\w.*=+-]+:+|)[-.!~\w\/\\?@&=+$%#^]+$/i,FUNC:/^[\s();]*(?:new|)[\s();]*|[\s();]*$/g,FUNF:/^[\s();]*(?:new|)[\s();]{0,}/,FUNT:/[\s();]*$/,HEAD:/^(?:(?![(]?[)]{0}function)[\s\S])*([(]?[)]{0}function)\b/,DEFF:/^[\s;{}()]*(?:new|)[\s;{}()]*function\b/,DEFT:/[^{]*[}][\s;]*$/,PREF:/^([\s;{}()]*(?:new|)[\s;{}()]*function\b[^{]+?[{])(?=[^}]*[}])/,ARGS:/^function\s*[^()]*?[(]\s*(?:\S[^()]*?)\s*[)]/,LOAD:/complete|loaded/i,DATA:new RegExp("^data:((?:[\\w.*+-]+/[\\w.*+-]+|[*]|)(?=[;,])|)(;?charset=[\"']?[\\w.=*+-]+['\"]?(?=[;,])|)(;?base64(?=,)|),([\\s\\S]*)$","i"),MSG:new RegExp("(?:^|\\b)(?:\\[[\"']|)onmessage(?:['\"]\\]|)\\s*=|(?:^|\\b)addEventListener\\s*[(]\\s*[\"'](?:[Oo][Nn]|)[Mm][Ee][Ss][Ss][Aa][Gg][Ee]['\"][\\s\\S]*?[)]")};
bp=function(bD){return new bp.fn.init(bD)};bp.fn=bp.prototype=I(bp.prototype,{constructor:bp,child:null,queues:[],fired:false,callback:null,init:function(bD){this.queues=[];
this.child=new br(this,bD);return this},postMessage:function(bE){var bD=this,bF=this.child;this.queues.push(bE);h.till(function(){return bF.isReady()}).then(function(){var bG=a1(bD.queues.splice(0,bD.queues.length));
return h.forEach(bG,function(bH){return h.flush(function(){var bI;try{if(bF.nativeWorker){bF.nativeWorker.postMessage(bH)}else{bF.onmessage({data:bH})}}catch(bJ){bI=bJ;
if(!aZ(bI)){throw bI}}finally{bD.fired=true}})})})},terminate:function(){var bD=this.child;if(bD){if(bD.nativeWorker){bD.nativeWorker.terminate()}if(bD.context&&bD.stopId&&bD.stopId in bD.context){bD.context[bD.stopId]=true;
if(bD.elem){h.till(function(){return bD.context[bD.isStoppedId]===true}).wait(1).then(function(){try{bD.elem.parentNode.removeChild(bD.elem)}catch(bE){}bD.elem=null
}).ensure(function(){})}}}},addEventListener:function(bD,bE){if(aK(bE)){switch(ag(bD).toLowerCase()){case"message":this.onmessage=bE;break;case"error":this.onerror=bE
}}},removeEventListener:function(bD){switch(ag(bD).toLowerCase()){case"message":this.onmessage=null;break;case"error":this.onerror=null}}});bp.fn.init.prototype=bp.fn;
br=function(bE,bD){return new br.fn.init(bE,bD)};br.fn=br.prototype=I(br.prototype,{constructor:br,server:null,queues:[],loaded:false,context:{},elem:null,nativeWorker:null,stopId:null,isStoppedId:null,usePot:false,init:function(bF,bE){var bD=this;
this.queues=[];this.server=bF;this.context=I({},{postMessage:bC(this.postMessage,this),importScripts:bC(this.importScripts,this),addEventListener:bC(this.addEventListener,this),removeEventListener:bC(this.removeEventListener,this),onmessage:null,onerror:null});
a7({stopId:["stop",false],isStoppedId:["stopped",false]},function(bH,bG){bD[bG]=af(aN,bH[0]);bD.context[bD[bG]]=bH[1]});h.flush(function(){bD.runScript(bE)});return this
},compriseScript:function(bE,bH){var bD="",bI,bG,bF;if((u.hasWorker&&(u.canWorkerDataURI||u.canWorkerBlobURI))||(u.hasChromeWorker&&(u.canChromeWorkerDataURI||u.canChromeWorkerBlobURI))){bF=true
}if(bE){if(bH){bG=aN.getFunctionCode(bE).replace(bl.FUNC,"")}else{bG=ag(bE,true)}bI=aN.tokenize(bG);bG=aN.joinTokens(bI);this.usePot=this.isPotUsing(bI);if(this.usePot&&u.isMozillaBlobBuilder){bF=false
}if(bl.MSG.test(bG)){if(bF){bD=this.insertProvision(bI,bH)}else{if(bl.DEFF.test(bG)){bG=aN.format("(#1).call(this);",bG.replace(bl.HEAD,"$1").replace(bl.FUNC,""));
bD=this.insertStepStatements(aN.tokenize(bG))}else{bD=this.insertStepStatements(bI)}}}else{if(bl.DEFF.test(bG)){bG=aN.format('(#1).call(this,(!event||typeof event.data==="undefined")?void 0:event.data,event);',bG.replace(bl.HEAD,"$1").replace(bl.FUNC,""))
}if(bF){bD=this.providePot(bG)}else{bG=this.insertStepStatements(aN.tokenize(bG));bD="onmessage=(function(){var self=this;return function(){var event=arguments[0];return(function(){"+bG+'}).call(self);};}).call((typeof self!=="undefined"&&self&&self.postMessage)?self:this);'
}}}return bD},isPotUsing:function(bK){var bL=false,bG,bF,bE,bI,bD,bH,bJ;if(bK){bI=bK.length;for(bG=0;bG<bI;bG++){bD=bK[bG];bH="";for(bF=bG+1;bF<bI;bF++){bH=bK[bF];
if(aN.isNL(bH)){continue}else{break}}bJ="";for(bE=bF+1;bE<bI;bE++){bJ=bK[bE];if(aN.isNL(bJ)){continue}else{break}}switch(bD){case"Pot":if(bH==="."||(bH==="["&&bJ!=="]")){bL=true
}}if(bL){break}}}return bL},insertStepStatements:function(bO){var bI=[],bF,bJ,bH,bG,bM,bE,bK,bN,bP,bD=af(aN,"$this$scope"),bL={pre:aN.format("var #1=this;Pot.Deferred.forEver(function(){(function(){",bD),suf:aN.format("}).call(#1);throw Pot.StopIteration;}).then(function(){#2=true;});",bD,this.isStoppedId),step:aN.format("if(#1){throw Pot.StopIteration;}",this.stopId)};
bM=bO.length;for(bJ=0;bJ<bM;bJ++){bP=false;bF=bO[bJ];bK="";for(bH=bJ+1;bH<bM;bH++){bK=bO[bH];if(aN.isNL(bK)){continue}else{break}}bN="";for(bG=bH+1;bG<bM;bG++){bN=bO[bG];
if(aN.isNL(bN)){continue}else{break}}switch(bF){case"{":if(bE===")"&&bK!=="}"&&bK!=="case"&&bK!=="default"&&bN!==":"){bP=true}}if(!aN.isNL(bF)){bE=bF}bI[bI.length]=bF;
if(bP){bI[bI.length]=bL.step}}bI.unshift(bL.pre+bL.step);bI.push(bL.suf);return aN.joinTokens(bI)},providePot:function(bG){var bD,bF=af({NAME:"scope"},"$"),bE=this.getPotScript();
bD=aN.format('var #1=this;onmessage=(function(){var self=this;return function(){var event=arguments[0];if(typeof Pot==="undefined"){(#2)(#1||{});}return(function(){#3}).call(self);};}).call((typeof self!=="undefined"&&self&&self.postMessage)?self:this);',bF,bE,bG);
return bD},insertProvision:function(bJ,bG){var bD,bF,bI,bH={},bE=this.getPotScript();a7(["scope","script","func"],function(bK){bH[bK]=af({NAME:bK},"$")});bI=this.parseScript(bJ);
bF=aN.format('(function(){var self=this;return function(){return(function(){if(typeof Pot==="undefined"){(#1)(#2||{});}var #3=#4;return #3.apply(this,arguments);}).apply(self,arguments);};}).call((typeof self!=="undefined"&&self&&self.postMessage)?self:this)\n',bE,bH.scope,bH.func,bI.func);
if(bG||(bl.DEFF.test(bI.pre)&&bl.DEFT.test(bI.suf))){bD=aN.format("var #1=this;(#2#3#4).call(this);",bH.scope,bI.pre.replace(bl.FUNF,""),bF,bI.suf.replace(bl.FUNT,""))
}else{bD=aN.format("var #1=this;#2#3#4",bH.scope,bI.pre,bF,bI.suf)}return bD},getPotScript:function(){var bD=aN.getFunctionCode(L.ScriptImplementation).replace(bl.FUNC,"");
return bD},parseScript:function(bL){var bP=[],bF=[],bN=[],bS,bR,bU=bL&&bL.length,bJ,bM,bH,bK,bT,bQ,bE,bG,bI,bD,bX,bY,bV,bO,bW;for(bS=0;bS<bU;bS++){bJ=bL[bS];if(bO){bF[bF.length]=bJ;
continue}bM="";for(bR=bS+1;bR<bU;bR++){bM=bL[bR];if(aN.isNL(bM)){continue}else{break}}switch(bJ){case"onmessage":bE=false;if(bM==="="&&!bG&&!bW){bI=true}break;case"function":bE=false;
if(bT){bG=true}break;case"addEventListener":bE=true;break;case"=":if(bI&&!bG&&!bW){bH=true;bI=false}break;case"{":if(bT&&bG&&!bW){bX=bD=1;bT=false}else{if(bG&&!bW){bD++
}}break;case"}":if(bG&&!bW){if(bD--===bX){bW=true;if(bM==="("||bM===")"||bM==="."){break}bG=false;bK=true}}break;case"(":if(bW&&bG&&bV==null){bV=bY=1}else{if(bG){bY++
}}break;case")":if(bW&&bG){if(bV==null){if(bM==="("||bM===")"||bM==="."){break}bG=false;bK=true}else{bY--;if(bM==="("||bM===")"||bM==="."){break}if(bY===bV-1){bG=false;
bK=true}}}break;case",":if(bE&&bI&&!bG&&!bW){bH=true;bI=false}break;default:if(bE&&bM===","&&((bJ.charAt(0)==='"'&&bJ.slice(-1)==='"')||(bJ.charAt(0)==="'"&&bJ.slice(-1)==="'"))){bQ=bJ.slice(1,-1).toLowerCase();
if(bQ==="message"){bI=true;break}}if(bE&&aN.isWords(bJ)){bE=false}}if(bT||bG||bK){bN[bN.length]=bJ;if(bK){bK=false;bO=true}}else{bP[bP.length]=bJ;if(bH){bT=true;
bH=false}}}return{pre:aN.joinTokens(bP),suf:aN.joinTokens(bF),func:aN.joinTokens(bN)}},loadScript:function(bK,bF){var bI=this,bD,bH,bG,bE,bJ;if(bf()){bG=u.hasChromeWorker;
bE=bG&&u.canChromeWorkerDataURI;bJ=bG&&u.canChromeWorkerBlobURI}else{bG=u.hasWorker;bE=bG&&u.canWorkerDataURI;bJ=bG&&u.canWorkerBlobURI}if(bK){if(aK(bK)){bH=this.compriseScript(bK,true);
if(u.isMozillaBlobBuilder&&this.usePot){bD=[bH,false]}else{if(bJ){bD=[ba(bH),true]}else{if(bE){bD=[bq(bH),true]}else{bD=[bH,false]}}}}else{bH=ag(bK,true);if(bg(bH)){if(bx(bH)){bH=this.compriseScript(bA(bH));
if(u.isMozillaBlobBuilder&&this.usePot){bD=[bH,false]}else{if(bJ){bD=[ba(bH),true]}else{if(bE){bD=[bq(bH),true]}else{bD=[bH,false]}}}}else{if(be(bH)){bH=this.compriseScript(bm(bH));
if(u.isMozillaBlobBuilder&&this.usePot){bD=[bH,false]}else{if(bE){bD=[bq(bH),true]}else{if(bJ){bD=[ba(bH),true]}else{bD=[bH,false]}}}}else{if(bF){bD=this.compriseScript(bH)
}else{bD=bw(bH,true).then(function(bL){return bI.loadScript(bL,true)})}}}}else{bH=this.compriseScript(bH);if(u.isMozillaBlobBuilder&&this.usePot){bD=[bH,false]}else{if(bJ){bD=[ba(bH),true]
}else{if(bE){bD=[bq(bH),true]}else{bD=[bH,false]}}}}}}return h.maybeDeferred(bD)},runScript:function(bE){var bD=this;return this.loadScript(bE).then(function(bH,bF){var bG;
if(bH){if(bF){bD.nativeWorker=by(bH);bD.loaded=true}else{if(u.isWebBrowser&&u.isNotExtension){bG=bu(bH,bD.context,bD)}if(bG){bD.elem=bG;h.till(function(){return bo(bG)
}).then(function(){bD.loaded=true})}else{bj(bH,bD.context);bD.loaded=true}}}})},isReady:function(){this.referEvents();return this.loaded&&((this.nativeWorker&&this.nativeWorker.onmessage)||(aK(this.server.onmessage)&&aK(this.onmessage)))
},referEvents:function(){if(this.nativeWorker){if(this.server.onmessage){this.nativeWorker.onmessage=this.server.onmessage}if(this.server.onerror){this.nativeWorker.onerror=this.server.onerror
}}else{if(this.context){if(this.context.onmessage){this.onmessage=this.context.onmessage}if(this.context.onerror){this.onerror=this.context.onerror}}}},postMessage:function(bE){var bD=this;
this.queues.push(bE);return h.till(function(){return bD.isReady()&&bD.server.fired}).then(function(){var bF=a1(bD.queues.splice(0,bD.queues.length));return h.forEach(bF,function(bG){return h.flush(function(){var bH;
try{bD.server.onmessage({data:bG})}catch(bI){bH=bI;if(!aZ(bH)){throw bH}}})})})},importScripts:function(){var bG=this,bF,bE=arguments,bD=bE.length,bH;for(bF=0;bF<bD;
bF++){bH=ag(bE[bF]);if(bH){bw(bH,true).then(function(bI){if(bG.elem){bs(bI,bG.elem,bG.context)}else{aN.globalEval(bI)}})}}},addEventListener:function(bD,bE){if(aK(bE)){switch(ag(bD).toLowerCase()){case"message":this.onmessage=bE;
break;case"error":this.onerror=bE}}},removeEventListener:function(bD){switch(ag(bD).toLowerCase()){case"message":this.onmessage=null;break;case"error":this.onerror=null
}}});br.fn.init.prototype=br.fn;aN.update({Workeroid:function(bD){return e(this)?this.init(bD):new aJ.fn.init(bD)}});aJ=aN.Workeroid;aJ.fn=aJ.prototype=I(aJ.prototype,{constructor:aJ,id:L.getMagicNumber(),serial:null,NAME:"Workeroid",toString:Q,isWorkeroid:e,workers:{},workerLength:0,singleKey:null,init:function(bD){var bE=this;
if(!this.serial){this.serial=af(this)}bt.call(this);if(bD){if(D(bD)){this.singleKey=null;a7(bD,function(bG,bF){bh.call(bE,bF,bG)})}else{this.singleKey=af(this);bh.call(this,this.singleKey,bD)
}}return this},postMessage:function(){var bG=this,bE=arguments,bH={},bF,bD=bE.length;switch(bD){case 0:if(this.singleKey){bH[this.singleKey]=void 0}break;case 1:if(D(bE[0])){bH=bE[0]
}else{bH[this.singleKey]=bE[0]}break;case 2:bH[bE[0]]=bE[1];break;default:bF=0;do{bH[bE[bF++]]=bE[bF++]}while(bF<bD)}bc.call(this);a7(bH,function(bL,bI){var bK=bL,bJ=bb.call(bG,bI);
if(bK==null){bK=null}if(bJ&&bJ.postMessage){bJ.postMessage(bK)}});return this},terminate:function(){var bF=this,bE=arguments,bD=bE.length,bG;switch(bD){case 0:bt.call(this);
break;case 1:bG=a1(bE[0]);break;default:bG=a1(bE)}if(bG){a7(bG,function(bH){a9.call(bF,bH)})}return this},addEventListener:function(bD,bE){if(aK(bE)){switch(ag(bD).toLowerCase()){case"message":this.onmessage=bE;
break;case"error":this.onerror=bE}}return this},removeEventListener:function(bD){switch(ag(bD).toLowerCase()){case"message":this.onmessage=null;break;case"error":this.onerror=null
}return this}});function bc(){var bD=this;a7(this.workers,function(bE){if(bE){if(aK(bD.onmessage)){bE.onmessage=function(bF){bD.onmessage.call(bD,bF&&bF.data,bF);
bE.callback&&bE.callback(bF&&bF.data)}}if(bD.onerror){bE.onerror=bD.onerror}}})}function bv(bD){return bd+bD}function bi(bD){return new bp(bD)}function bz(bD){return(bv(bD) in this.workers)
}function bh(bE,bD){var bF=bv(bE);if(bz.call(this)){a9.call(this,bE)}this.workers[bF]=bi(bD);this.workerLength++}function bb(bD){return this.workers[bv(bD)]}function a9(bD){var bE=bv(bD),bF=this.workers[bE];
if(bF){if(bF.terminate){bF.terminate()}this.workers[bE]=bF=null;delete this.workers[bE];this.workerLength--}}function bt(){var bD=this;if(this.workers){a7(this.workers,function(bF,bE){if(bE&&bE.charAt&&bE.charAt(0)===bd){a9.call(bD,bE.substring(1))
}})}this.workers={};this.workerLength=0}function bC(bF,bD){var bE=bD||null;return function(){return bF.apply(bE,arguments)}}function bk(bE){var bD={};if(typeof location!=="undefined"&&!!location){a7(["href","protocol","host","hostname","port","pathname","search","hash"],function(bF){try{bD[bF]=ag(location[bF])
}catch(bG){}})}a7(["window","document","navigator"],function(bF){bE[bF]=void 0});bE.location=bD;bE.self=bE;bE.Pot=aN}function bj(bE,bD){bk(bD);return(new Function("with(this){"+bE+"}")).call(bD)
}function bu(bG,bH,bI){var bP=false,bK,bN,bJ,bF,bO,bE,bD,bM;bK=aN.currentWindow();bN=aN.currentDocument();if(bK&&bN&&bK.document===bN&&bN.body){bD=!!(c.msie&&u.hasActiveXObject);
if(bD){bM=parseInt(c.msie.version,10)}do{bF=af({NAME:"potiframeworker"},"")}while((bF in bK)||bN.getElementById(bF));if(bD&&bM<=7){bJ=bN.createElement('<iframe name="'+bF+'">')
}else{bJ=bN.createElement("iframe")}bI.elem=bJ;bJ.name=bJ.id=bF;bJ.frameBorder=0;if(bD&&bM<7){bJ.src="javascript:[]+[]"}bE=bJ.style;bE.zIndex=-1;bE.visibility=bE.overflow="hidden";
bE.border=bE.outline=bE.margin=bE.padding="0";bE.minWidth=bE.minHeight="0px";bE.width=bE.height=bE.maxWidth=bE.maxHeight="10px";if(c.webkit){bE.marginTop=bE.marginLeft="-10px"
}else{bE.position="absolute";bE.top=bE.left="-20px"}bN.body.appendChild(bJ);bO=bJ.contentWindow||(bK.frames&&bK.frames[bF]);bN=bn(bJ);if(!bN||!bO||!bN.write){try{bJ.parentNode.removeChild(bJ)
}catch(bL){}bI.elem=null}else{bN.open();a7(bH,function(bR,bQ){bO[bQ]=bR});bk(bH);do{bF=af(aN,"$")}while(bF in bO);bO[bF]=bH;bN.write("<!doctype html><html><head>"+a8(aN.format("(function(){with(#1){#2}}).call(#1);",bF,bG))+"</head><body><br></body></html>");
bN.close();bP=bJ}}return bP}function bs(bF,bL,bG){var bJ,bM,bP,bN,bO,bK,bI,bE,bD,bH="val";bJ=aN.currentWindow();bM=bL.contentWindow||(bJ&&bJ.frames&&bJ.frames[bL.id]);
if(bM){bP=bn(bL);do{bD=af(aN,"$")}while(bD in bM);bM[bD]=bG;bE="with("+bD+"){"+bF+"}";if(bP){bN=bP.getElementsByTagName("head");if(bN&&bN[0]){bN=bN[0]}else{bN=bP.head||bP.body||bP.documentElement
}if(bN){bO=bP.createElement("script");bO.type="text/javascript";bO.defer=bO.async=false;if(u.hasActiveXObject&&"text" in bO){bO.text=bE}else{bO.appendChild(bP.createTextNode(bE))
}bN.appendChild(bO);bN.removeChild(bO);bK=true}}if(!bK){bI=["e"]+bH;if(bM[bI]){if(bM[bI].call&&bM[bI].apply){bM[bI].call(bM,bE)}else{bM[bI](bE)}bK=true}}}return bK
}function bo(bG){var bD=false,bF;try{if(bG){if(u.hasActiveXObject&&bl.LOAD.test(bG.readyState)){bD=true}else{bF=bn(bG);if(bF){bD=!!(bF.body&&bF.body.firstChild)}}}}catch(bE){}return bD
}function bn(bF){var bE=N,bD=aV;if(bF==null){return null}if(bE(bF.contentWindow)&&bD(bF.contentWindow.document)){return bF.contentWindow.document}if(bD(bF.contentDocument)){return bF.contentDocument
}if(bD(bF.document)){return bF.document}return null}function be(bD){return ag(bD).slice(0,5).toLowerCase()==="data:"}function bx(bD){return ag(bD).slice(0,11).toLowerCase()==="javascript:"
}function bg(bD){return bl.URI.test(ag(bD))}function bA(bD){var bE="";if(bx(bD)){bE=ag(bD).substring(11)}return bE}function bq(bD){return"data:application/javascript,"+aN.URI.urlEncode(bD)
}function bm(bE){var bF="",bD;if(be(bE)){bl.DATA.lastIndex=0;bD=bl.DATA.match(bE);if(bD&&bD[4]){bF=bD[4];if(bD[3]){bF=bB(bF)}else{bF=aN.URI.urlDecode(bF)}}}return bF
}function ba(bD){return u.BlobURI.createObjectURL(aN.createBlob(bD))}function bB(bD){if(aN.Base64){return aN.Base64.decode(bD)}if(!bB.decode){bB.decode=(function(){var bF=aa+at+M+"+/=",bE=function(bH){if(aN.UTF8){return aN.UTF8.decode(bH)
}try{return aN.URI.urlDecode(escape(bH))}catch(bI){try{return decodeURIComponent(escape(bH))}catch(bG){return bH}}};return function(bH){var bN="",bG=-8,bM=0,bL,bK,bI=0,bO=ag(bH),bJ=bO.length;
for(;bI<bJ;bI++){bL=bF.indexOf(bO.charAt(bI));if(bL>=0){bM=(bM<<6)|(bL&63);if((bG+=6)>=0){bK=bM>>bG&255;if(bL!==64){bN+=g(bK)}bM&=63;bG-=8}}}return bE(bN)}}())}return bB.decode(bD)
}function by(bD){return bf()?new ChromeWorker(bD):new Worker(bD)}function bf(){var bE=0,bD=0;if(u.hasChromeWorker){bE++;if(u.canChromeWorkerDataURI){bE++}if(u.canChromeWorkerBlobURI){bE++
}}if(u.hasWorker){bD++;if(u.canWorkerDataURI){bD++}if(u.canWorkerBlobURI){bD++}}return bE>=bD}function a8(bD){return["<script>"+bD+"</"]+["script>"]}function bw(bD,bF){var bE="application/javascript";
return aN.Net.request(bD,{sync:bF,mimeType:bE,headers:{"Content-Type":bE}}).then(function(bG){return ag(bG&&bG.responseText)})}}());aN.update({Serializer:{}});(function(){var a8,a9;
if(typeof JSON==="object"&&aN.isBuiltinMethod(JSON.stringify)&&aN.isBuiltinMethod(JSON.parse)){I(aN.Serializer,{serializeToJSON:function(){return JSON.stringify.apply(null,arguments)
},parseFromJSON:function(){return JSON.parse.apply(null,arguments)}});return}a8="null";a9=I(function(){},{charsCache:{'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000B"},replaceTo:/\uFFFF/.test("\uFFFF")?/[\\\"\x00-\x1F\x7F-\uFFFF]/g:/[\\\"\x00-\x1F\x7F-\xFF]/g});
a9.prototype=I(a9.prototype,{serialize:function(ba){var bb=[];this.serializeAll(ba,bb);return bb.join("")},serializeAll:function(ba,bb){if(ba==null){bb[bb.length]=a8
}else{switch(ax(ba)){case"string":this.serializeString(ba,bb);break;case"number":this.serializeNumber(ba,bb);break;case"boolean":bb[bb.length]=(ba==true)?"true":"false";
break;case"array":this.serializeArray(ba,bb);break;case"object":case"error":this.serializeObject(ba,bb);break;case"date":this.serializeDate(ba,bb);break;case"regexp":this.serializeString(ba.toString(),bb);
break;case"function":break;default:bb[bb.length]=a8}}},padZero:function(ba){return(ba<10)?"0"+ba:ba},serializeDate:function(bc,ba){var bb=this.padZero;result=isFinite(bc.valueOf())?'"'+bc.getUTCFullYear()+"-"+bb(bc.getUTCMonth()+1)+"-"+bb(bc.getUTCDate())+"T"+bb(bc.getUTCHours())+":"+bb(bc.getUTCMinutes())+":"+bb(bc.getUTCSeconds())+'Z"':a8;
ba[ba.length]=result},serializeString:function(bc,ba){var bb=bc.replace(a9.replaceTo,function(bf){var be,bd;if(bf in a9.charsCache){return a9.charsCache[bf]}be=bf.charCodeAt(0);
bd="\\u";if(be<16){bd+="000"}else{if(be<256){bd+="00"}else{if(be<4096){bd+="0"}}}bd=bd+be.toString(16);a9.charsCache[bf]=bd;return bd});ba[ba.length]='"'+bb+'"'},serializeNumber:function(bb,ba){ba[ba.length]=(isFinite(bb)&&!isNaN(bb))?bb:a8
},serializeArray:function(bb,bf){var ba,bc="",be,bd,bh;ba=bb&&bb.length;bf[bf.length]="[";for(be=0;be<ba;be++){bd=true;try{bh=bb[be]}catch(bg){bd=false}if(bd){bf[bf.length]=bc;
this.serializeAll(bh,bf);bc=","}}bf[bf.length]="]"},serializeObject:function(bg,bd){var ba="",bc,bb,be;bd[bd.length]="{";for(bc in bg){bb=true;if(ao.call(bg,bc)){try{be=bg[bc];
if(aK(be)){throw be}}catch(bf){bb=false}if(bb){bd[bd.length]=ba;this.serializeString(bc,bd);bd[bd.length]=":";this.serializeAll(be,bd);ba=","}}}bd[bd.length]="}"
}});I(aN.Serializer,{serializeToJSON:function(ba){return(new a9()).serialize(ba)},parseFromJSON:I(function(bc){var ba=aN.Serializer.parseFromJSON,bb;bb=String(bc).replace(ba.PATTERNS.CLEAN,"");
if(ba.isValid(ba,bb)){return aN.localEval("("+bb+")")}else{throw new Error("Invalid JSON string: "+bb)}},{PATTERNS:{META:/\\["\\\/bfnrtu]/g,STRING:/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1F\x80-\x9F]*"/g,EXPRS:/true|false|null|[+-]?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,BRACKETS:/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,REMAINDER:/^[\],:{}\s\u2028\u2029]*$/,SPACE:/^\s*$/,CLEAN:/^(?:[{[(']{0}[')\]}]+|)[;\s\u00A0]*|[;\s\u00A0]*$/g},isValid:function(bd,bc){var ba="@",be="[]".charAt(1),bb=bd.PATTERNS;
if(bb.SPACE.test(bc)){return false}return bb.REMAINDER.test(bc.replace(bb.META,ba).replace(bb.STRING,be).replace(bb.EXPRS,be).replace(bb.BRACKETS,""))}})})}());I(aN.Serializer,{serializeToQueryString:function(bb){var a9=[],ba,a8;
if(!bb||bb==false){return""}if(typeof Buffer!=="undefined"&&bb.constructor===Buffer){return bb}if(aW(bb)){return ag(bb)}a8=D(bb);if(a8||aD(bb)){ba=aN.URI.urlEncode;
a7(bb,function(bi,bd){var bj,bh,bc,bk,be=0,bg=true;if(a8){bj=[bd,bi]}else{bj=bi}try{bh=ag(bj[0],false);bc=bj[1]}catch(bf){bg=false}if(bg&&(bh||bc)){if(!a8){a7(bb,function(bl){if(bl){try{if(ag(bl[0],false)===bh){be++
}}catch(bm){}}})}if(be>1||b(bc)){bk="=";bh=ag(bh,true)+"[]"}else{bk=bh?"=":""}a7(a1(bc),function(bl){a9[a9.length]=ba(bh)+bk+ba(ag(bl,false))})}})}return a9.join("&")
},parseFromQueryString:function(bd,bc){var a8=[],bb,ba,a9;if(D(bd)||b(bd)){return bd}if(bc){a8={}}ba=ag(bd,true);if(ba){bb=aN.URI.urlDecode;a9=/&(?:(?:amp|#(?:0*38|[xX]0*26));|)/;
while(ba.charAt(0)==="?"){ba=ba.substring(1)}a7(ba.split(a9),function(bg){var bf,bi,bh,be;bh=bg.split("=");switch(bh.length){case 0:break;case 1:bi=bh[0];break;default:bf=bh[0];
bi=bh[1];break}if(bf||bi){bf=ag(bb(bf));bi=ag(bb(bi));if(bf.slice(-2)==="[]"){be=bf.slice(0,-2);if(bc){if(ao.call(a8,be)){a8[be]=aY.call([],a1(a8[be]),a1(bi))}else{a8[be]=[bi]
}}else{a8[a8.length]=[be,bi]}}else{if(bc){a8[bf]=bi}else{a8[a8.length]=[bf,bi]}}}})}return a8}});aN.update({serializeToJSON:aN.Serializer.serializeToJSON,parseFromJSON:aN.Serializer.parseFromJSON,serializeToQueryString:aN.Serializer.serializeToQueryString,parseFromQueryString:aN.Serializer.parseFromQueryString});
aN.update({URI:{}});I(aN.URI,{urlEncode:I(function(a9){var a8="",bb=aN.URI.urlEncode,ba;ba=ag(a9,true);if(ba){if(aN.isPercentEncoded(ba)){a8=ba}else{try{a8=bb.encoder.component(ba)
}catch(bc){a8=bb.encoder.encode(ba)}}}return ag(a8,true)},{encoder:{component:function(a8){return encodeURIComponent(a8)},encode:function(ba){var a8="",bc,bb,bd,a9;
bc=ag(ba,true);if(bc){bb=/[^!'-*.0-9A-Z_a-z~-]/g;a9="%";bd=function(be){var bf,bg=be.charCodeAt(0);if(bg<16){bf=a9+"0"+bg.toString(16)}else{if(bg<128){bf=a9+bg.toString(16)
}else{if(bg<2048){bf=a9+(bg>>6|192).toString(16)+a9+(bg&63|128).toString(16)}else{bf=a9+(bg>>12|224).toString(16)+a9+(bg>>6&63|128).toString(16)+a9+(bg&63|128).toString(16)
}}}return bf.toUpperCase()};a8=bc.replace(bb,bd)}return a8}}}),urlDecode:I(function(a9){var a8="",bb=aN.URI.urlDecode,ba;ba=ag(a9,true);if(ba){ba=ba.replace(bb.decoder.reSpace.from,bb.decoder.reSpace.to);
try{a8=bb.decoder.component(ba)}catch(bc){a8=bb.decoder.decode(ba)}}return ag(a8,true)},{decoder:{reSpace:{from:/[+]/g,to:" "},component:function(a8){return decodeURIComponent(a8)
},decode:function(a9){var a8="",bb,ba,bc;bb=ag(a9,true);if(bb){ba=new RegExp("%(?:E(?:0%[AB]|[1-CEF]%[89AB]|D%[89])[0-9A-F]|C[2-9A-F]|D[0-9A-F])%[89AB][0-9A-F]|%[0-7][0-9A-F]","gi");
bc=function(bd){var be,bf=parseInt(bd.substring(1),16);if(bf<128){be=bf}else{if(bf<224){be=((bf&31)<<6|parseInt(bd.substring(4),16)&63)}else{be=(((bf&15)<<6|parseInt(bd.substring(4),16)&63)<<6|parseInt(bd.substring(7),16)&63)
}}return g(be)};a8=bb.replace(ba,bc)}return a8}}}),parseURI:I(function(ba){var a8={},a9=aN.URI.parseURI,bc,bb=ag(ba,true).match(a9.parser.pattern)||[];for(bc in a9.parser.capture){a8[bc]=ag(bb[a9.parser.capture[bc]])
}return a8},{parser:{pattern:new RegExp("^(?:(([^:/\\\\?#.]+):+|)(?://|[\\\\]+|))(?:(([^/\\\\?#:]*):([^/\\\\?#]*)|[^/\\\\?#]*?)@|)(?:[/\\\\]|(([-\\w\\d\\u0100-\\uFFFF.%]*)(?::([0-9]+)|)|))((?:([^?#]*)[/\\\\]|)([^/\\\\?#]*?(?:[.]([^.?#]*)|)|)|[^?#]+|)([?]([^#]*)|)(#(.*)|)$"),capture:{protocol:1,scheme:2,userinfo:3,username:4,password:5,host:6,hostname:7,port:8,pathname:9,dirname:10,filename:11,extension:12,search:13,query:14,hash:15,fragment:16}}}),buildURI:(function(){var a8=/^[^:]+:\/{0,}/,a9=new RegExp("[st]?(?:http|ws|ftp|rsync|wais|telnet|nntp|gopher|prospero|ssh|svn|scp|ldap|git)(?:[+]ssh)?s?","i");
return function(bb){var bd,bi=arguments,bj,bp,bh,bk,ba=bi[1],bg=aN.URI.urlEncode,bo=aN.Serializer.serializeToQueryString,bm,bf,bl,bc,bn,be;if(D(bb)){bm=ag(bb.protocol);
if(!bm){bm=ag(bb.scheme);if(!bm){bm="http:"}}bj=bm.slice(-1);if(bj!==":"&&bj!=="/"){bm+=":"}bf=ag(bb.userinfo);if(!bf&&bb.username!=null&&bb.password!=null){bf=[bg(bb.username),bg(bb.password)].join(":");
if(bf===":"){bf=""}}if(bf&&bf.slice(-1)!=="@"){bf+="@"}bl=ag(bb.host);if(!bl){if(bb.hostname!=null){bl=ag(bb.hostname)}if(v(bb.port)){bl+=":"+(+bb.port)}}bc=ag(bb.pathname);
if(!bc){if(bb.dirname!=null&&bb.filename!=null){bc=ag(bb.dirname)+ag(bb.filename)}}bj=bc.charAt(0);if(bj!=="/"&&bj!=="\\"){bc="/"+bc}if(D(bb.search)||aD(bb.search)){bn=ag(bo(bb.search))
}else{bn=ag(bb.search)}if(!bn){if(bb.query!=null){if(D(bb.query)||aD(bb.query)){bn=ag(bo(bb.query))}else{bn=ag(bb.query)}}else{if(ba!=null){if(D(ba)||aD(ba)){bn=ag(bo(ba))
}else{bn=ag(ba)}}}}while(bn.charAt(0)==="?"){bn=bn.substring(1)}if(bn){bn="?"+bn}be=ag(bb.hash);if(!be){be=ag(bb.fragment)}while(be.charAt(0)==="#"){be=be.substring(1)
}if(be){be="#"+be}bd=bm+bf+bl+bc;bj=(~bd.indexOf("?"))?"&":"?";while(bn.charAt(0)===bj){bn=bn.substring(1)}if(bn){bd+=bj+bn}bd+=be}else{bd=ag(bb);bk="";if(ba!=null){if(D(ba)||aD(ba)){bk=ag(bo(ba))
}else{bk=ag(ba)}}bj=(~bd.indexOf("?"))?"&":"?";while(bk.charAt(0)===bj){bk=bk.substring(1)}if(bk){bd+=bj+bk}}bh=bd.indexOf(":");if(!~bh){bm="http"}else{bm=bd.substr(0,bh).toLowerCase()
}bp="";if(bm==="file"){bp="///"}else{if(a9.test(bm)){bp="//"}}bm+=":"+bp;if(bd.indexOf(bp)!==0){bd=bd.replace(a8,bm)}return bd}}()),resolveRelativeURI:I(function(ba,a8){var bk="",be=aN.URI.resolveRelativeURI,bj,bg="",bi,bf,bc,a9,bb,bd,bh;
if(a8){bg=a8.document||a8.ownerDocument;if(bg){bg=bg.documentURI||bg.URL||(bg.location&&bg.location.href)||""}}bg=ag(bg);bi=aL(aL(ba&&(ba.href||ba.path)||ba)||bg);
if(!bi){bk=bg}else{bj="/";bf=bi.indexOf(bj);if(aX.win&&!~bf&&!~bg.indexOf(bj)){bj="\\"}if(bg){if(bf===0&&be.PATTERNS.PROTOCOL.test(bg)){bg=bg.replace(be.PATTERNS.HOSTS,"$1")
}if(!be.PATTERNS.PROTOCOL.test(bi)){bi=bg.replace(be.PATTERNS.UNHOSTS,"$1")+bi}}bh="";if(be.PATTERNS.PROTOCOL.test(bi)){bi=bi.replace(be.PATTERNS.PROTOCOL,function(bl){bh=bl;
return""})}bc=bi.split(be.PATTERNS.SEPARATOR);bd=bc.length;bb=[];while(--bd>=0){a9=bc.shift();if(!a9||a9.indexOf(".")===0){if(a9===".."){bb.pop()}continue}bb.push(a9)
}bk=bh+bb.join(bj);if(!be.PATTERNS.PROTOCOL.test(bk)){bk=bj+bk}}return ag(bk)},{PATTERNS:{PROTOCOL:/^([a-zA-Z]\w*:[\/\\]*)/,SEPARATOR:/[\/\\]/,HOSTS:/^(\w+:[\/\\]*[^\/\\]*[\/\\]).*$/,UNHOSTS:/([\/\\])[^\/\\]*$/g}}),getExt:I(function(be){var a8="",bb=aN.URI.getExt,a9=bb.PATTERNS,bd=aN.URI.urlDecode,ba=ag((be&&(be.href||be.path))||be,true).replace(a9.STRIP,"");
if(ba&&~ba.indexOf(".")){try{a8=ba.replace(a9.CLEAN,"").match(a9.EXT)[1]}catch(bc){}if(!a8){try{a8=bd(ba.replace(a9.HASH,"")).match(a9.EXT)[1]}catch(bc){}if(!a8){try{a8=bd(ba).match(a9.EXT)[1]
}catch(bc){}if(!a8){try{a8=bd(ba).match(a9.EXTF)[1]}catch(bc){}}}}}return ag(a8)},{PATTERNS:{EXT:/[.](\w{1,24})$/,EXTF:/[.]([^.:;*&=#?!\/\\]*)$/,HASH:/#.*$/g,CLEAN:/[?#].*$/g,STRIP:/[\s\u00A0\u3000]+/g}}),toDataURI:function(bb){var ba="",be=arguments,a9={},a8,bd,bi,bf=aN.URI,bg=aN.MimeType,bc=aN.Base64,bh=D(be[1]);
if(bb){if(be.length<=2&&(D(bb)||bh)){if(bh){bb=I({},be[1],{data:bb})}for(a8 in bb){bd=String(a8).toLowerCase();if(a9.type==null&&~bd.indexOf("mime")){a9.type=bb[a8]
}else{if(a9.encoded==null&&~bd.indexOf("enc")){a9.encoded=bb[a8]}else{if(a9.base64==null&&~bd.indexOf("64")){a9.base64=bb[a8]}else{if(a9.charset==null&&~bd.indexOf("char")){a9.charset=bb[a8]
}else{if(a9.data==null&&~bd.indexOf("data")){a9.data=bb[a8]}}}}}}}else{a9.data=bb;a9.type=be[1];a9.base64=be[2];a9.charset=be[3];a9.encoded=be[4]}a9.type=aL(a9.type).toLowerCase();
if(bg&&a9.type&&!~a9.type.indexOf("/")){a9.type=bg.getMimeTypeByExt(a9.type)}if(!a9.type){a9.type="*/*"}if(a9.charset){a9.charset=";charset="+ag(a9.charset,true)
}if(a9.base64){a9.base64=";base64"}bi=ag(a9.data,true);if(!a9.encoded){if(a9.base64){if(bc){bi=bc.encode(bi)}else{a9.base64=false;bi=bf.urlEncode(bi)}}else{bi=bf.urlEncode(bi)
}}}ba=["data:",a9.type,ag(a9.charset,true),ag(a9.base64,true),",",ag(bi,true)].join("");return ba}});aN.update({urlEncode:aN.URI.urlEncode,urlDecode:aN.URI.urlDecode,parseURI:aN.URI.parseURI,buildURI:aN.URI.buildURI,resolveRelativeURI:aN.URI.resolveRelativeURI,getExt:aN.URI.getExt,toDataURI:aN.URI.toDataURI});
aN.update({Crypt:{}});I(aN.Crypt,{hashCode:function(be){var bb=0,bd,bc,ba,a9=4294967296,a8=false;if(be==null){bd=String(be)}else{if(aD(be)){bd=a1(be);a8=true}else{bd=be.toString?be.toString():String(be)
}}ba=bd.length;for(bc=0;bc<ba;++bc){bb=31*bb+(a8?bd[bc]:bd.charCodeAt(bc));bb%=a9}return bb},md5:(function(){function bj(bm,bn){return(bm<<bn)|(bm>>>(32-bn))}function ba(bn,bs){var bm,bo,bp,bq,br;
bp=(bn&2147483648);bq=(bs&2147483648);bm=(bn&1073741824);bo=(bs&1073741824);br=(bn&1073741823)+(bs&1073741823);if(bm&bo){return(br^2147483648^bp^bq)}if(bm|bo){if(br&1073741824){return(br^3221225472^bp^bq)
}else{return(br^1073741824^bp^bq)}}else{return(br^bp^bq)}}function bc(bm,bo,bn){return(bm&bo)|((~bm)&bn)}function bk(bm,bo,bn){return(bm&bn)|(bo&(~bn))}function bb(bm,bo,bn){return(bo^(bm|(~bn)))
}function bi(bm,bo,bn){return(bm^bo^bn)}function bg(bo,bn,bs,br,bm,bp,bq){bo=ba(bo,ba(ba(bc(bn,bs,br),bm),bq));return ba(bj(bo,bp),bn)}function be(bo,bn,bs,br,bm,bp,bq){bo=ba(bo,ba(ba(bk(bn,bs,br),bm),bq));
return ba(bj(bo,bp),bn)}function a9(bo,bn,bs,br,bm,bp,bq){bo=ba(bo,ba(ba(bi(bn,bs,br),bm),bq));return ba(bj(bo,bp),bn)}function bl(bo,bn,bs,br,bm,bp,bq){bo=ba(bo,ba(ba(bb(bn,bs,br),bm),bq));
return ba(bj(bo,bp),bn)}function bh(bv,bw){var bn,bo=bv.length,bs=bo+8,br=(bs-(bs%64))/64,bt=(br+1)*16,bq=new Array(bt-1),bm=0,bu=0;while(bu<bo){bn=(bu-(bu%4))/4;
bm=(bu%4)*8;bq[bn]=(bq[bn]|((bw?bv[bu]:bv.charCodeAt(bu))<<bm));bu++}bn=(bu-(bu%4))/4;bm=(bu%4)*8;bq[bn]=bq[bn]|(128<<bm);bq[bt-2]=bo<<3;bq[bt-1]=bo>>>29;return bq
}function a8(bn){var bp="",bo="",bm,bq;for(bq=0;bq<=3;bq++){bm=(bn>>>(bq*8))&255;bo="0"+bm.toString(16);bp=bp+bo.substr(bo.length-2,2)}return bp}function bd(bn,bm,bp,bo){return[a8(bn),a8(bm),a8(bp),a8(bo)].join("").toLowerCase()
}function bf(bA){var bB=7,bx=12,bv=17,bu=22,bM=5,bK=9,bI=14,bH=20,bq=4,bp=11,bo=16,bn=23,bD=6,bC=10,by=15,bw=21,bO=1732584193,bN=4023233417,bL=2562383102,bJ=271733878,bG,bm,br,bE,bF,bt=function(){bG=bO;
bm=bN;br=bL;bE=bJ;bO=bg(bO,bN,bL,bJ,bs[bF+0],bB,3614090360);bJ=bg(bJ,bO,bN,bL,bs[bF+1],bx,3905402710);bL=bg(bL,bJ,bO,bN,bs[bF+2],bv,606105819);bN=bg(bN,bL,bJ,bO,bs[bF+3],bu,3250441966);
bO=bg(bO,bN,bL,bJ,bs[bF+4],bB,4118548399);bJ=bg(bJ,bO,bN,bL,bs[bF+5],bx,1200080426);bL=bg(bL,bJ,bO,bN,bs[bF+6],bv,2821735955);bN=bg(bN,bL,bJ,bO,bs[bF+7],bu,4249261313);
bO=bg(bO,bN,bL,bJ,bs[bF+8],bB,1770035416);bJ=bg(bJ,bO,bN,bL,bs[bF+9],bx,2336552879);bL=bg(bL,bJ,bO,bN,bs[bF+10],bv,4294925233);bN=bg(bN,bL,bJ,bO,bs[bF+11],bu,2304563134);
bO=bg(bO,bN,bL,bJ,bs[bF+12],bB,1804603682);bJ=bg(bJ,bO,bN,bL,bs[bF+13],bx,4254626195);bL=bg(bL,bJ,bO,bN,bs[bF+14],bv,2792965006);bN=bg(bN,bL,bJ,bO,bs[bF+15],bu,1236535329);
bO=be(bO,bN,bL,bJ,bs[bF+1],bM,4129170786);bJ=be(bJ,bO,bN,bL,bs[bF+6],bK,3225465664);bL=be(bL,bJ,bO,bN,bs[bF+11],bI,643717713);bN=be(bN,bL,bJ,bO,bs[bF+0],bH,3921069994);
bO=be(bO,bN,bL,bJ,bs[bF+5],bM,3593408605);bJ=be(bJ,bO,bN,bL,bs[bF+10],bK,38016083);bL=be(bL,bJ,bO,bN,bs[bF+15],bI,3634488961);bN=be(bN,bL,bJ,bO,bs[bF+4],bH,3889429448);
bO=be(bO,bN,bL,bJ,bs[bF+9],bM,568446438);bJ=be(bJ,bO,bN,bL,bs[bF+14],bK,3275163606);bL=be(bL,bJ,bO,bN,bs[bF+3],bI,4107603335);bN=be(bN,bL,bJ,bO,bs[bF+8],bH,1163531501);
bO=be(bO,bN,bL,bJ,bs[bF+13],bM,2850285829);bJ=be(bJ,bO,bN,bL,bs[bF+2],bK,4243563512);bL=be(bL,bJ,bO,bN,bs[bF+7],bI,1735328473);bN=be(bN,bL,bJ,bO,bs[bF+12],bH,2368359562);
bO=a9(bO,bN,bL,bJ,bs[bF+5],bq,4294588738);bJ=a9(bJ,bO,bN,bL,bs[bF+8],bp,2272392833);bL=a9(bL,bJ,bO,bN,bs[bF+11],bo,1839030562);bN=a9(bN,bL,bJ,bO,bs[bF+14],bn,4259657740);
bO=a9(bO,bN,bL,bJ,bs[bF+1],bq,2763975236);bJ=a9(bJ,bO,bN,bL,bs[bF+4],bp,1272893353);bL=a9(bL,bJ,bO,bN,bs[bF+7],bo,4139469664);bN=a9(bN,bL,bJ,bO,bs[bF+10],bn,3200236656);
bO=a9(bO,bN,bL,bJ,bs[bF+13],bq,681279174);bJ=a9(bJ,bO,bN,bL,bs[bF+0],bp,3936430074);bL=a9(bL,bJ,bO,bN,bs[bF+3],bo,3572445317);bN=a9(bN,bL,bJ,bO,bs[bF+6],bn,76029189);
bO=a9(bO,bN,bL,bJ,bs[bF+9],bq,3654602809);bJ=a9(bJ,bO,bN,bL,bs[bF+12],bp,3873151461);bL=a9(bL,bJ,bO,bN,bs[bF+15],bo,530742520);bN=a9(bN,bL,bJ,bO,bs[bF+2],bn,3299628645);
bO=bl(bO,bN,bL,bJ,bs[bF+0],bD,4096336452);bJ=bl(bJ,bO,bN,bL,bs[bF+7],bC,1126891415);bL=bl(bL,bJ,bO,bN,bs[bF+14],by,2878612391);bN=bl(bN,bL,bJ,bO,bs[bF+5],bw,4237533241);
bO=bl(bO,bN,bL,bJ,bs[bF+12],bD,1700485571);bJ=bl(bJ,bO,bN,bL,bs[bF+3],bC,2399980690);bL=bl(bL,bJ,bO,bN,bs[bF+10],by,4293915773);bN=bl(bN,bL,bJ,bO,bs[bF+1],bw,2240044497);
bO=bl(bO,bN,bL,bJ,bs[bF+8],bD,1873313359);bJ=bl(bJ,bO,bN,bL,bs[bF+15],bC,4264355552);bL=bl(bL,bJ,bO,bN,bs[bF+6],by,2734768916);bN=bl(bN,bL,bJ,bO,bs[bF+13],bw,1309151649);
bO=bl(bO,bN,bL,bJ,bs[bF+4],bD,4149444226);bJ=bl(bJ,bO,bN,bL,bs[bF+11],bC,3174756917);bL=bl(bL,bJ,bO,bN,bs[bF+2],by,718787259);bN=bl(bN,bL,bJ,bO,bs[bF+9],bw,3951481745);
bO=ba(bO,bG);bN=ba(bN,bm);bL=ba(bL,br);bJ=ba(bJ,bE)},bs,bz;if(aD(bA)){bs=bh(a1(bA),true)}else{bs=bh(aN.UTF8.encode(ag(bA,true)))}bz=bs.length;return{sync:function(){for(bF=0;
bF<bz;bF+=16){bt()}return bd(bO,bN,bL,bJ)},async:function(bP){bF=0;return h.forEver[bP](function(){if(bF<bz){bt()}else{throw aU}bF+=16}).then(function(){return bd(bO,bN,bL,bJ)
})}}}return I(function(bm){return bf(bm).sync()},{deferred:L.defineDeferrater(function(bm){return function(bn){return bf(bn).async(bm)}})})}()),crc32:(function(){var a8=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];
return function(be){var bc,bd=0,bb,bf,ba,a9=false;if(aD(be)){bc=a1(be);a9=true}else{bc=aN.UTF8.encode(ag(be,true))}ba=bc.length;bd=bd^-1;for(bb=0;bb<ba;bb++){bf=(bd^(a9?bc[bb]:bc.charCodeAt(bb)))&255;
bd=(bd>>>8)^a8[bf]}return bd^-1}}()),sha1:(function(){function bb(be,bd){var bc=(be<<bd)|(be>>>(32-bd));return bc}function ba(bf){var be="",bd,bc;for(bd=7;bd>=0;
bd--){bc=(bf>>>(bd*4))&15;be+=bc.toString(16)}return be}function a9(bd,bc,bg,bf,be){return(ba(bd)+ba(bc)+ba(bg)+ba(bf)+ba(be)).toLowerCase()}function a8(by){var bx,bu,bt,br,bq,bp,bo,bl,bd=new Array(80),bk=1732584193,bj=4023233417,bh=2562383102,bf=271733878,be=3285377520,bi=[],bn,bc,bg=function(){for(bu=0;
bu<16;bu++){bd[bu]=bi[bx+bu]}for(bu=16;bu<=79;bu++){bd[bu]=bb(bd[bu-3]^bd[bu-8]^bd[bu-14]^bd[bu-16],1)}br=bk;bq=bj;bp=bh;bo=bf;bl=be;for(bu=0;bu<=19;bu++){bc=(bb(br,5)+((bq&bp)|(~bq&bo))+bl+bd[bu]+1518500249)&4294967295;
bl=bo;bo=bp;bp=bb(bq,30);bq=br;br=bc}for(bu=20;bu<=39;bu++){bc=(bb(br,5)+(bq^bp^bo)+bl+bd[bu]+1859775393)&4294967295;bl=bo;bo=bp;bp=bb(bq,30);bq=br;br=bc}for(bu=40;
bu<=59;bu++){bc=(bb(br,5)+((bq&bp)|(bq&bo)|(bp&bo))+bl+bd[bu]+2400959708)&4294967295;bl=bo;bo=bp;bp=bb(bq,30);bq=br;br=bc}for(bu=60;bu<=79;bu++){bc=(bb(br,5)+(bq^bp^bo)+bl+bd[bu]+3395469782)&4294967295;
bl=bo;bo=bp;bp=bb(bq,30);bq=br;br=bc}bk=(bk+br)&4294967295;bj=(bj+bq)&4294967295;bh=(bh+bp)&4294967295;bf=(bf+bo)&4294967295;be=(be+bl)&4294967295},bz=function(bs){return bw?bm[bs]:bm.charCodeAt(bs)
},bm,bv,bw=false;if(aD(by)){bm=a1(by);bw=true}else{bm=aN.UTF8.encode(ag(by,true))}bv=bm.length;for(bu=0;bu<bv-3;bu+=4){bt=bz(bu)<<24|bz(bu+1)<<16|bz(bu+2)<<8|bz(bu+3);
bi[bi.length]=bt}switch(bv%4){case 0:bu=2147483648;break;case 1:bu=bz(bv-1)<<24|8388608;break;case 2:bu=bz(bv-2)<<24|bz(bv-1)<<16|32768;break;case 3:bu=bz(bv-3)<<24|bz(bv-2)<<16|bz(bv-1)<<8|128
}bi[bi.length]=bu;while((bi.length%16)!=14){bi[bi.length]=0}bi[bi.length]=(bv>>>29);bi[bi.length]=((bv<<3)&4294967295);bn=bi.length;return{sync:function(){for(bx=0;
bx<bn;bx+=16){bg()}return a9(bk,bj,bh,bf,be)},async:function(bs){bx=0;return h.forEver[bs](function(){if(bx<bn){bg()}else{throw aU}bx+=16}).then(function(){return a9(bk,bj,bh,bf,be)
})}}}return I(function(bc){return a8(bc).sync()},{deferred:L.defineDeferrater(function(bc){return function(bd){return a8(bd).async(bc)}})})}()),Arc4:(function(){function a8(bk,bj,bm){var ba=[],bh=a1(bm),bf,be=0,bi,bg,bl=ag(bk,true),bc=ag(bj,true),bb=bc.length,bd=function(){bf=(bf+1)%256;
be=(be+bh[bf])%256;bi=bh[bf];bh[bf]=bh[be];bh[be]=bi;ba[ba.length]=g(bl.charCodeAt(bg)^bh[(bh[bf]+bh[be])%256])};for(bf=0;bf<256;bf++){be=(be+bh[bf]+bc.charCodeAt(bf%bb))%256;
bi=bh[bf];bh[bf]=bh[be];bh[be]=bi}bf=be=0;bb=bl.length;return{sync:function(){for(bg=0;bg<bb;bg++){bd()}return ba.join("")},async:function(bn){bg=0;return h.forEver[bn](function(){if(bg<bb){bd()
}else{throw aU}bg++}).then(function(){return ba.join("")})}}}function a9(ba){return new a9.prototype.init(ba)}a9.prototype=I(a9.prototype,{constructor:a9,table:[],key:null,init:function(bc){var bd=this,bb,ba;
if(bc!=null){this.setKey(bc)}this.initTable();bb=this.encrypt.deferred;ba=this.decrypt.deferred;bb.instance=ba.instance=this;a7(aA.speeds,function(bf,be){bb[be].instance=ba[be].instance=bd
});return this},initTable:function(){var ba;this.table=[];for(ba=0;ba<256;ba++){this.table[ba]=ba}},setKey:function(ba){this.key=aN.UTF8.encode(ba);return this},encrypt:I(function(ba){return a8(aN.UTF8.encode(ba),this.key,this.table).sync()
},{deferred:L.defineDeferrater(function(bb){var ba=function(bd){var bc=ba.instance;return a8(aN.UTF8.encode(bd),bc.key,bc.table).async(bb)};return ba})}),decrypt:I(function(ba){return aN.UTF8.decode(a8(ba,this.key,this.table).sync())
},{deferred:L.defineDeferrater(function(bb){var ba=function(bd){var bc=ba.instance;return a8(bd,bc.key,bc.table).async(bb).then(function(be){return aN.UTF8.decode(be)
})};return ba})})});a9.prototype.init.prototype=a9.prototype;return a9}())});aN.update({hashCode:aN.Crypt.hashCode,md5:aN.Crypt.md5,crc32:aN.Crypt.crc32,sha1:aN.Crypt.sha1,Arc4:aN.Crypt.Arc4});
(function(){aN.update({Net:{}});I(aN.Net,{request:function(bd,bc){if(u.isGreasemonkey){return aN.Net.requestByGreasemonkey(bd,bc)}else{if(u.isNodeJS){return aN.Net.requestByNodeJS(bd,bc)
}else{return aN.Net.XHR.request(bd,bc)}}},XHR:{ReadyState:{UNINITIALIZED:0,LOADING:1,LOADED:2,INTERACTIVE:3,COMPLETE:4},factory:function(){var bc;try{bc=new XMLHttpRequest()
}catch(bd){}if(!bc&&u.hasActiveXObject){a7(["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],function(bf){try{bc=new ActiveXObject(bf)
}catch(be){}if(bc){throw aU}})}return bc},request:(function(){var be=function(bg,bf){return new be.prototype.doit(bg,bf)},bc={URI:/^([^:]+)(?::+\/{0,}((?:[^@]+@|)[^\/\\?&#:;]*)(?::(\d+)|)|)/},bd=bc.URI.exec(aN.currentURI().toLowerCase())||[];
be.prototype=I(be.prototype,{xhr:null,url:null,options:{},deferred:null,doit:function(bg,bf){var bi=this;this.url=ag(bg,true);this.deferred=new h({canceller:function(){try{bi.cancel(true)
}catch(bk){}}});if(this.url){try{this.setOptions(bf);if(this.factory()){this.open();this.setHeaders();this.setReadyStateChange();this.send()}}catch(bj){try{this.cancel(true)
}catch(bh){}this.deferred.raise(bj)}}return this},factory:function(){this.xhr=aN.Net.XHR.factory();if(!this.xhr){this.deferred.raise("Failed to create XMLHttpRequest");
return false}else{return true}},setOptions:function(bf){var bg,bi,bh={method:"GET",sendContent:null,queryString:null,callback:null,username:null,password:null,mimeType:null,responseType:null,binary:false,cache:true,sync:false,cookie:false,crossDomain:null,headers:{Accept:["*/"]+["*"],"X-Requested-With":"XMLHttpRequest"}};
if(D(bf)){bg=I({},bf)}else{bg={}}this.options=I({},bh,bg||{});this.method=aL(this.options.method).toUpperCase();if(!this.method){this.method=bh.method}this.url=a8(this.url,this.options.queryString);
this.options.sendContent=ag(aN.Serializer.serializeToQueryString(this.options.sendContent),true);if((this.options.method==="GET"||this.options.method===bh.method)&&(this.options.sendContent)){this.options.method="POST"
}if(!this.options.cache&&(this.options.method==="GET"||this.options.method==="HEAD")){this.url=ba(this.url)}if(this.options.crossDomain==null){bc.URI.lastIndex=0;
bi=bc.URI.exec(aN.currentURI().toLowerCase());this.options.crossDomain=!!(bi&&(bi[1]!==bd[1]||bi[2]!==bd[2]||bi[3]!==bd[3]))}if(this.options.binary&&!this.options.mimeType){this.options.mimeType="text/plain; charset=x-user-defined"
}if(this.options.sync){this.deferred.async(false)}},open:function(){var bf=this.options.sync?false:true;if(this.options.username!=null){this.xhr.open(this.options.method,this.url,bf,ag(this.options.username,true),ag(this.options.password,true))
}else{this.xhr.open(this.options.method,this.url,bf)}},setHeaders:function(){var bf=this,bh;try{if(this.options.responseType){try{this.xhr.responseType=this.options.responseType
}catch(bg){}}if(this.options.cookie){try{this.xhr.withCredentials="true"}catch(bg){}}try{if(this.xhr.overrideMimeType&&this.options.mimeType!=null){this.xhr.overrideMimeType(this.options.mimeType)
}}catch(bg){}if(this.options.contentType!=null){bh=this.options.contentType}if(this.options.headers!=null){a7(this.options.headers,function(bj,bi){if(!bh&&/^Content-?Type/i.test(bi)){bh=bj
}else{bf.xhr.setRequestHeader(bi,bj)}})}if(!bh&&this.options.method==="POST"){bh="application/x-www-form-urlencoded; charset=UTF-8"}if(bh){this.xhr.setRequestHeader("Content-Type",bh)
}}catch(bg){}},setReadyStateChange:function(){var bg=this,bf;if(this.options.sync){bf=function(bh){var bi=new h({async:false});return bi.then(bh).begin()}}else{bf=h.flush
}this.xhr.onreadystatechange=function(){var bh=null,bj;if(bg.xhr.readyState==aN.Net.XHR.ReadyState.COMPLETE){bg.cancel();try{bh=parseInt(bg.xhr.status,10);bj=bg.xhr.responseText;
if(!bh&&bj){bh=304}}catch(bi){}if((bh>=200&&bh<300)||bh===304||bh===1223){bg.assignResponseText();if(aK(bg.options.callback)){bf(function(){bg.options.callback.call(bg.xhr,bj,bg.xhr)
}).ensure(function(bk){bg.deferred.begin(bg.xhr)})}else{bg.deferred.begin(bg.xhr)}}else{bg.deferred.raise(I({},bg.xhr));try{bg.cancel(true)}catch(bi){}}}}},assignResponseText:function(){var bi,bf,bg,bk,bm,bj;
if(this.options.binary){bg=[];bk=[];try{bj=this.xhr.responseText||""}catch(bl){bj=""}bf=bj.length;for(bi=0;bi<bf;bi++){bm=bj.charCodeAt(bi)&255;bg[bi]=bm;bk[bi]=g(bm)
}try{this.xhr.originalText=bj;this.xhr.responseBytes=bg;this.xhr.responseText=bk.join("")}catch(bl){try{this.xhr=I(this.xhr,{originalText:bj,responseBytes:bg,responseText:bk.join("")})
}catch(bh){}}}},cancel:function(bf){try{this.xhr.onreadystatechange=null}catch(bg){try{this.xhr.onreadystatechange=q}catch(bg){}}if(bf){try{this.xhr.abort()}catch(bg){}}},send:function(){this.xhr.send(this.options.sendContent);
this.deferred.data({request:this.xhr})}});be.prototype.doit.prototype=be.prototype;return function(bg,bf){return(new be(bg,bf)).deferred}}())},requestByGreasemonkey:function(bd,bc){var bi=new h(),bf,be,bg=I({cache:true},bc||{}),bh={sendContent:"data",mimeType:"overrideMimeType",username:"user",sync:"synchronous"};
a7(bh,function(bj,bk){if(bk in bg){bg[bj]=bg[bk]}});bg.method=aL(bg.method).toUpperCase()||"GET";bg.url=a8(bd,bg.queryString);if(bg.data){bg.data=aN.Serializer.serializeToQueryString(bg.data)
}if(bg.data&&bg.method==="GET"){bg.method="POST"}if(!bg.cache&&(bg.method==="GET"||bg.method==="HEAD")){bg.url=ba(bg.url)}bf=bg.contentType;if(bg.headers){a7(bg.headers,function(bk,bj){if(!bf&&/^Content-?Type/i.test(bj)){bf=bk;
throw aU}})}if(!bf&&bg.method==="POST"){bf="application/x-www-form-urlencoded"}if(bf){bg.headers=I(bg.headers||{},{"Content-Type":bf})}if(bg.sync){bi.async(false);
be=function(bj){bj()}}else{be=h.callLazy}if(bg.onload){bi.then(bg.onload)}if(bg.onerror){bi.rescue(bg.onerror)}I(bg,{onload:function(){bi.begin.apply(bi,arguments)
},onerror:function(){bi.raise.apply(bi,arguments)}});be(function(){var bj=GM_xmlhttpRequest(bg);bi.data({request:bj});bi.canceller(function(){try{bj.abort()}catch(bk){}})
});return bi},requestByNodeJS:(function(){function bd(be){return new bd.prototype.doit(be)}function bc(be){return new bc.prototype.init(be)}bc.prototype=I(bc.prototype,{responseText:"",responseXML:"",status:null,statusText:null,init:function(be){var bf=be||{};
I(this,bf,{getResponseHeader:this.getResponseHeader,getAllResponseHeaders:this.getAllResponseHeaders,responseText:bf.responseText,responseXML:bf.responseXML,status:bf.status,statusText:bf.statusText});
return this},getResponseHeader:function(bf){var be=null,bg;bg=ag(bf);lkey=bg.toLowerCase();if(this.headers){if(lkey in this.headers){be=this.headers[lkey]}else{if(bg in this.headers){be=this.headers[bg]
}}}return be},getAllResponseHeaders:function(){var bf=[],be;if(this.headers){for(be in this.headers){bf.push(be+": "+this.headers[be])}}return bf.join("\r\n")}});
bd.prototype=I(bd.prototype,{deferred:null,request:null,response:null,headers:{},requestOptions:{},defaultHeaders:{Accept:["*/"]+["*"],"User-Agent":["Pot.js/"+aN.VERSION,aN.TYPE,"(Node.js; *)"].join(" ")},doit:function(be){var bf=this;
this.deferred=new h({canceller:function(){try{bf.abort()}catch(bg){}}});this.setOptions(be);this.send();return this},setOptions:function(bn){var bf,be,bj,bg,bl,bh,bm,bi,bk;
bf=I({cache:true,sync:false},bn||{});be=aL(bf.method).toUpperCase()||"GET";bj=false;bg=require("url").parse(bf.url);switch(bg.protocol){case"https:":bj=true;case"http:":bl=bg.hostname;
break;default:throw new Error("Not supported protocol: "+bg.protocol)}bh=bg.port||(bj?443:80);bm=bg.pathname+(bg.search?bg.search:"");this.headers=I({},this.defaultHeaders,bf.headers||{});
this.headers.Host=bl;if(bf.username!=null){bi=new Buffer([ag(bf.username,true),ag(bf.password,true)].join(":"));this.headers.Authorization="Basic "+bi.toString("base64")
}bk=bf.sendContent||bf.queryString;if(be==="GET"||be==="HEAD"){bm=a8(bm,bk);if(!bf.cache){bm=ba(bm)}bk=null}else{bk=aN.Serializer.serializeToQueryString(bk);if(bk){this.headers["Content-Length"]=Buffer.byteLength(bk);
if(!this.headers["Content-Type"]){this.headers["Content-Type"]="application/x-www-form-urlencoded"}}}if(bf.sync){this.deferred.async(false)}this.requestOptions={data:bk,ssl:bj,sync:bf.sync,settings:{host:bl,port:bh,path:bm,method:be,headers:this.headers}}
},send:function(){var bf=this,be,bg=true;if(this.requestOptions.ssl){be=require("https").request}else{be=require("http").request}this.request=be(this.requestOptions.settings,function(bh){bf.response=new bc(bh);
bf.response.responseText="";bf.response.responseXML="";bf.response.setEncoding("utf8");bf.response.status=bf.response.statusCode;if(bf.response.status==200&&!bf.response.statusText){bf.response.statusText="OK"
}bf.response.on("data",function(bi){if(bi){bf.response.responseText+=ag(bi,true)}});bf.response.on("end",function(){bg=false;bf.deferred.begin(bf.response)});bf.response.on("error",function(bi){bg=false;
bf.handleError(bi)})}).on("error",function(bh){bg=false;bf.handleError(bh)});if(this.requestOptions.data){this.request.write(this.requestOptions.data)}this.request.end();
if(this.requestOptions.sync){while(bg){}}},handleError:function(be){this.response.status=503;this.response.statusText=be;this.response.responseText=be&&be.stack;
this.deferred.raise(this.response)},abort:function(){if(this.response){this.response.responseText="";this.response.responseXML=""}try{if(this.request&&this.request.abort){this.request.abort()
}}catch(be){}}});bd.prototype.doit.prototype=bd.prototype;bc.prototype.init.prototype=bc.prototype;return function(bf,be){var bg=I({},be||{},{url:bf});return(new bd(bg)).deferred
}}()),requestByJSONP:(function(){var bc={KEY:/json|call/i,DONE:/loaded|complete/};return function(be,br){var bl,bd,bg,bf,bq,bp,bo,bh,bn,bm,bj,bi;bi="callback";bl=new h();
bd=I({cache:false,sync:false},br||{});bg=aP||aO;bo=u.currentDocument;bn=bb();if(!bg||!bo||!bn||!be){return bl.raise(bg||be||bn||bo)}try{if(bd.callback){if(aW(bd.callback)){bf=bd.callback
}else{if(aK(bd.callback)){bq=bd.callback}else{if(D(bd.callback)){for(bp in bd.callback){bi=bp;if(aW(bd.callback[bp])){bf=bd.callback[bp]}else{if(aK(bd.callback[bp])){bq=bd.callback[bp]
}}break}}}}}else{a7(bd,function(bt,bs){if(bc.KEY.test(bs)){bi=bs;if(aW(bt)){bf=bt}else{if(aK(bt)){bq=bt}}throw aU}})}if(!bf){do{bf=af(aN,"")}while(bf in bg)}bh=a8(a9(be,bf,bi),bd.queryString||bd.sendContent);
if(!bd.cache){bh=ba(bh)}if(u.isGreasemonkey){return aN.Net.requestByGreasemonkey(bh,{method:"GET",sync:bd.sync}).then(function(bs){var bt=aL(bs&&bs.responseText);
bt=bt.replace(/^[^{]*|[^}]*$/g,"");return aN.Serializer.parseFromJSON(bt)})}bm=bo.createElement("script");if(bd.sync){bl.async(false)}else{bm.async="async"}if(bd.type){bm.type=bd.type
}if(bd.charset){bm.charset=bd.charset}bg[bf]=function(){var bs=arguments;try{delete bg[bf]}catch(bt){try{bg[bf]=null}catch(bt){}}try{if(bm){bm.parentNode.removeChild(bm)
}bm=void 0}catch(bt){}if(aK(bq)){bq.apply(bq,bs)}bl.begin.apply(bl,bs)};bm.src=bh;bm.onload=bm.onreadystatechange=function(bt,bs){if(!bj&&bm&&(bs===1||!bm.readyState||bc.DONE.test(bm.readyState))){bj=true;
try{bm.onload=bm.onreadystatechange=null}catch(bu){}if(bn&&bm&&bm.parentNode){try{bn.removeChild(bm)}catch(bu){}}bm=void 0}};bl.canceller(function(){try{if(bm){bm.onload(0,1)
}}catch(bs){}});bn.insertBefore(bm,bn.firstChild)}catch(bk){bl.raise(bk)}return bl}}()),getJSON:(function(){var bc=/^[^{]*|[^}]*$/g,bd="application/json";return function(bf,be){return aN.Net.request(bf,I({mimeType:bd,headers:{"Content-Type":bd}},be||{})).then(function(bg){var bh=aL(bg&&bg.responseText).replace(bc,"");
return aN.Serializer.parseFromJSON(bh)})}}()),loadScript:(function(){var bc;if(u.isNonBrowser||!u.isNotExtension){return function(be,bd){return aN.Net.request(be,I({method:"GET",mimeType:"application/javascript",headers:{"Content-Type":"application/javascript"}},{cache:false,sync:false},bd||{})).then(function(bf){return aN.globalEval(bf.responseText)
})}}bc={DONE:/loaded|complete/,CALLBACK:/^callback|(?:on|)(?:load(?:ed|)|ready)/i};return function(be,bn){var bi,bk,bd,bl,bj,bf,bm,bg;bi=new h();try{if(aK(bn)){bd={callback:bd};
bm=bd.callback}else{bd=I({},bn||{});a7(bd,function(bp,bo){if(aK(bp)){bm=bp;if(bc.CALLBACK.test(bo)){throw aU}}})}if(bm){bi.then(function(){return bm.apply(this,arguments)
})}bf=a8(be,bd.queryString||bd.sendContent);if(!bd.cache){bf=ba(bf)}bl=u.currentDocument;bj=bb();if(!bl||!bj||!bf){return bi.raise(bf||bj||bl)}bk=bl.createElement("script");
if(bd.sync){bi.async(false)}else{bk.async="async"}bk.type=bd.type||"text/javascript";if(bd.charset){bk.charset=bd.charset}bk.src=bf;bk.onload=bk.onreadystatechange=function(bp,bo){if(!bg&&bk&&(bo===1||!bk.readyState||bc.DONE.test(bk.readyState))){bg=true;
try{bk.onload=bk.onreadystatechange=null}catch(bq){}if(bj&&bk&&bk.parentNode){try{bj.removeChild(bk)}catch(bq){}}bk=void 0;bi.begin()}};bi.canceller(function(){try{if(bk){bk.onload(0,1)
}}catch(bo){}});bj.insertBefore(bk,bj.firstChild)}catch(bh){bi.raise(bh)}return bi}}())});function a8(bd,bf){var bc,be,bg;bc=ag(bd);bg=(~bc.indexOf("?"))?"&":"?";
be=ag(aN.Serializer.serializeToQueryString(bf));while(bc.slice(-1)===bg){bc=bc.slice(0,-1)}while(be.charAt(0)===bg){be=be.substring(1)}if(be){be=bg+be}return bc?bc+be:null
}function ba(bf){var bd=ag(bf),be,bc="?",bg="_";if(bd){do{be=bg+af(aN,"").toLowerCase()}while(~bd.indexOf(be));if(~bd.indexOf(bc)){bc="&";while(bd.slice(-1)===bc){bd=bd.slice(0,-1)
}}bd=bd+bc+be+"="+aS()}return bd}function bb(){var bc,be=u.currentDocument;try{if(be.head&&ar(be.head)){return be.head}}catch(bd){}try{bc=be.getElementsByTagName("head");
if(bc&&ar(bc[0])){return bc[0]}}catch(bd){}try{return be.documentElement}catch(bd){}}function a9(bc,bf,be){var bd=ag(bc);if(~bd.indexOf("=?")){bd=bd.replace("=?","="+bf)
}else{if(~bd.indexOf("?")){bd=bd.replace("?","?"+be+"="+bf)}else{while(bd.slice(-1)==="&"){bd=bd.slice(0,-1)}bd=bd+"?"+be+"="+bf}}return bd}aN.update({request:aN.Net.request,jsonp:aN.Net.requestByJSONP,getJSON:aN.Net.getJSON,loadScript:aN.Net.loadScript})
}());aN.update({XPCOM:{}});I(aN.XPCOM,{evalInSandbox:function(bb,a9){var a8,ba,bc;if(u.hasComponents){if(!V){u.isWaitable=u.hasComponents=false;return}ba=/^[\s;]*|[\s;]*$/g;
bc=ag(bb).replace(ba,"");a8=V.evalInSandbox(bc,V.Sandbox(a9))}return a8},throughout:function(a9){var a8;if(u.hasComponents){try{a8=ai["@mozilla.org/thread-manager;1"].getService(ad.nsIThreadManager).mainThread
}catch(ba){u.isWaitable=u.hasComponents=false}if(a8&&u.hasComponents){do{a8.processNextEvent(true)}while(a9&&!a9())}}},getMostRecentWindow:function(){var a9;if(u.hasComponents){try{a9=ai["@mozilla.org/appshell/window-mediator;1"].getService(ad.nsIWindowMediator).getMostRecentWindow("navigator:browser")
}catch(a8){u.isWaitable=u.hasComponents=false}}return a9},getChromeWindow:function(ba){var a9,bc,bd,a8;if(!u.hasComponents){return}a8=ba||"chrome://browser/content/browser.xul";
try{bd=ai["@mozilla.org/appshell/window-mediator;1"].getService(ad.nsIWindowMediator).getXULWindowEnumerator(null)}catch(bb){u.isWaitable=u.hasComponents=false;return
}while(bd.hasMoreElements()){try{bc=bd.getNext().QueryInterface(ad.nsIXULWindow).docShell.QueryInterface(ad.nsIInterfaceRequestor).getInterface(ad.nsIDOMWindow);
if(bc&&bc.location&&(bc.location.href==a8||bc.location==a8)){a9=bc;break}}catch(bb){}}return a9}});aN.update({evalInSandbox:aN.XPCOM.evalInSandbox,throughout:aN.XPCOM.throughout,getMostRecentWindow:aN.XPCOM.getMostRecentWindow,getChromeWindow:aN.XPCOM.getChromeWindow});
(function(){var bq=[],bm=[],bl=[],bx={},br=false,bu="*e",bc=".",bk={MOUSE_OVER:/mouse(?:over|enter)/,MOUSE_OUT:/mouse(?:out|leave)/,EVENT_ONCE:/^(?:on|)(?:(?:un|)load|DOMContentLoaded)$/,ID_CLEAN:/^#/},bp,bt;
aN.update({Signal:{}});i=aN.Signal;I(i,{NAME:"Signal",toString:Q,Handler:I(function(by){return new bp.fn.init(by)},{advices:{normal:1,before:2,around:4,after:8,propBefore:16,propAround:32,propAfter:64}}),Observer:function(bz,bC){var bB=this,by,bD=this.PotInternal;
if(!bD.serial){bD.serial=af(this)}I(bD,{orgEvent:bC||(typeof window==="object"&&window.event)||{},object:bz});by=bD.orgEvent;if(!D(by)){bD.orgEvent=by={type:by}}a7(I({},by),function(bE,bF){if(!ao.call(bB,bF)){bB[bF]=bE
}});try{if(!by.target){by.target=by.srcElement||aN.currentDocument()||{}}if(by.target.nodeType==3&&by.target.parentNode){by.target=by.target.parentNode}if(by.metaKey==null){by.metaKey=by.ctrlKey
}if(by.timeStamp==null){by.timeStamp=aS()}if(by.relatedTarget==null){if(bk.MOUSE_OVER.test(by.type)){by.relatedTarget=by.fromElement}else{if(bk.MOUSE_OUT.test(by.type)){by.relatedTarget=by.toElement
}}}}catch(bA){}this.originalEvent=by},DropFile:function(bz,by){return new p.fn.init(bz,by)},isHandler:function(by){return by!=null&&((by instanceof bp)||(by.id!=null&&by.id===bp.fn.id&&by.NAME!=null&&by.NAME===bp.fn.NAME))
},isObserver:function(by){return by!=null&&((by instanceof bt)||(by.PotInternal!=null&&by.PotInternal.id!=null&&by.PotInternal.id===bt.fn.PotInternal.id&&by.PotInternal.NAME!=null&&by.PotInternal.NAME===bt.fn.PotInternal.NAME))
},attach:function(bC,bF,bI,bA,by){var bD=[],bG,bE,bH,bB,bz=bg(bC);if(!bz){return}bG=bh(bz);bH=!!bA;if(b(bF)){bE=true}bB=bp.advices.normal;a7(a1(bF),function(bM){var bJ,bK,bL;
bJ=ag(bM);bL=bd(bz,bJ,bI,bH,bG,by,bB);bK=new bp({object:bz,signal:bJ,listener:bL,callback:bI,isDOM:bG,useCapture:bH,advice:bB,attached:true});bb(function(bN){bN[bN.length]=bK
});if(bG){if(bz.addEventListener){bz.addEventListener(bn(bz,bJ),bL,bH)}else{if(bz.attachEvent){bz.attachEvent(bn(bz,bJ),bL)}}}bD[bD.length]=bK});return bE?bD:bD[0]
},attachBefore:function(bA,bz,bC,by,bB){return bv(bA,bz,bC,bp.advices.before,bB)},attachAfter:function(bA,bz,bC,by,bB){return bv(bA,bz,bC,bp.advices.after,bB)},attachPropBefore:function(bz,bB,bC,by,bA){return bo(bz,bB,bC,bp.advices.propBefore,bA)
},attachPropAfter:function(bz,bB,bC,by,bA){return bo(bz,bB,bC,bp.advices.propAfter,bA)},detach:function(bC,bA,bF,bz){var by=false,bB=arguments,bD,bE=bg(bC);if(!bE){return
}if(i.isHandler(bE)){be(function(bG){if(bG&&bG.attached&&bG===bE){bD=bG;throw aU}})}else{if(bB.length>1){be(function(bG){if(bG&&bG.attached&&bG.object===bE&&bG.signal==bA&&bG.callback===bF){bD=bG;
throw aU}})}}if(bD){bs(bD);by=true}return by},detachAll:function(){var bA=arguments,bC,bz=[],bB={},by=[];switch(bA.length){case 0:break;case 1:bC=bA[0];break;case 2:bC=bA[0];
bz=bA[1]||[];break;default:bC=bA[0];bz=a1(bA,1)}if(bC!=null){bC=bg(bC)}bz=a1(bz);a7(bz,function(bD){bB[bc+ag(bD)]=true});be(function(bD){if(!bD||((bC==null||bD.object===bC)&&((!bz||bz.length===0)||(bz.length&&bD.signal in bB)))){if(bD&&bD.attached){by[by.length]=bD
}}});a7(by,function(bD){bs(bD)})},signal:function(bA,bD){var bG,bC=a1(arguments,2),bE=[],bF,bz,bB={},by=bg(bA);if(!by){return}bG=a9();bF=bD;bz=bp.advices.normal;
a7(a1(bF),function(bH){bB[bc+ag(bH)]=true});be(function(bH){if(bH&&bH.attached&&bH.advice===bz&&bH.object===by&&((bc+bH.signal) in bB)){bG.then(function(){var bI=bH.listener.apply(by,bC);
if(Z(bI)){bI.begin()}return bI},function(bI){bE[bE.length]=bI})}});return bG.ensure(function(bH){if(d(bH)){bE[bE.length]=bH}switch(bE.length){case 0:break;case 1:throw bE[0];
default:throw I(bE[0]||{},{errors:bE})}return bH}).begin()},cancelEvent:function(by){var bz=function(bA){try{bA.preventDefault();bA.stopPropagation()}catch(bB){}};
if(by){bz();if(by.originalEvent){bz(by.originalEvent)}if(by.PotInternal&&by.PotInternal.orgEvent){bz(by.PotInternal.orgEvent)}}return false}});p=i.DropFile;bp=i.Handler;
bt=i.Observer;p.fn=p.prototype=I(p.prototype,{constructor:p,id:L.getMagicNumber(),NAME:"DropFile",serial:null,toString:Q,defaultOptions:{onShow:null,onHide:null,onDrop:null,onLoadImage:null,onLoadText:null,onLoadUnknown:null,onLoadEnd:null,onProgress:null,onProgressFile:null,readAs:null,encoding:null},encoding:null,loadedFiles:[],handleCache:[],target:[],options:{},isShow:false,init:function(bz,by){if(!this.serial){this.serial=af(this)
}this.loadedFiles=[];this.handleCache=[];this.isShow=false;this.target=bg(bz);this.options=I({},this.defaultOptions,by||{});if(this.options.encoding){this.encoding=this.options.encoding
}this.assignReadType();if(this.target){this.initEvents()}return this},clearDropEvents:function(){a7(this.handleCache,function(by){i.detach(by)});this.handleCache=[]
},initEvents:function(){var bA=this,bB=this.target,bz,by=this.handleCache,bD=this.options,bC=i;by[by.length]=bC.attach(bB,"drop",function(bL){var bK,bE,bH=0,bJ,bF,bI={seek:new h(),files:[],steps:[],ends:[true],done:false},bG=function(bM){if(bM&&bM.target&&bM.target.result!=null){bA.loadedFiles.push(bM.target.result);
return true}else{return false}};bA.isShow=false;bF=bL.dataTransfer&&bL.dataTransfer.files;if(bF){bJ=0;bK=[];a7(bF,function(bM){if(bM){bK[bJ++]=bM}});if(bD.onDrop){bD.onDrop.call(bA,bK,bJ)
}if(u.hasFileReader){bE=new FileReader();bE.onloadend=function(bM){if(bG(bM)){if(bI.files[bH]&&!bI.ends[bH]){bI.files[bH].begin()}}};h.forEach(bK,function(bM){if(bM){bI.seek.then(function(){var bN=I({},bM,{index:bH++});
return h.till(function(){return !aN.some(bI.ends,function(bO){return bO===false})}).then(function(){bI.ends[bH]=false;bI.steps[bH]=new h();bI.files[bH]=new h().then(function(){if(bA.isImageFile(bN.type)){bA.loadAsImage(bI,bH,bJ,bM,bN)
}else{if(bA.isTextFile(bN.type)){bA.loadAsText(bI,bH,bJ,bM,bN)}else{bA.loadAsUnknown(bI,bH,bJ,bM,bN)}}return bI.steps[bH]});bA.readFile(bE,bM);return bI.files[bH]
})})}}).then(function(){bI.seek.then(function(){var bM=aN.every(bI.ends,function(bN){return bN===true});if(bM&&!bI.done){bI.done=true;if(bD.onProgress){bA.updateProgressEnd()
}if(bD.onLoadEnd){bD.onLoadEnd.call(bA,a1(bA.loadedFiles))}}}).begin()})}}});by[by.length]=bC.attach(bB,"dragenter",function(bE){bA.isShow=true;bC.cancelEvent(bE)
});by[by.length]=bC.attach(bB,"dragover",function(bE){bA.isShow=true;bC.cancelEvent(bE)});by[by.length]=bC.attach(bB,"dragleave",function(bE){bA.isShow=false});if(bD.onHide){bD.onHide.call(bA)
}bz=aN.currentDocument().documentElement;by[by.length]=bC.attach(bz,"drop",function(bE){bA.isShow=false;if(bD.onHide){bD.onHide.call(bA)}bC.cancelEvent(bE)});by[by.length]=bC.attach(bz,"dragleave",function(bE){ah(function(){if(bA.isShow){bA.isShow=false
}else{if(bD.onHide){bD.onHide.call(bA)}}},1000)});a7(["dragenter","dragover"],function(bE){by[by.length]=bC.attach(bz,bE,function(bI){var bH=bI&&bI.dataTransfer,bG,bF;
if(bH){if(bH.files&&bH.files.length){bG=true}else{if(bH.types){bF=/Files/i;if(bF.test(bH.types)){bG=true}else{if(aD(bH.types)){a7(bH.types,function(bJ){if(bF.test(bJ)){bG=true;
throw aU}})}}}}}if(bG){bA.isShow=true;if(bD.onShow){bD.onShow.call(bA)}}bC.cancelEvent(bI)})})},readFile:function(by,bz,bA){switch(this.options.readAs){case"text":if(this.encoding){by.readAsText(bz,this.encoding)
}else{by.readAsText(bz)}break;case"binary":by.readAsBinaryString(bz);break;case"arraybuffer":by.readAsArrayBuffer(bz);break;case"datauri":by.readAsDataURL(bz);break;
default:if(bA){if(this.encoding){by.readAsText(bz,this.encoding)}else{by.readAsText(bz)}}else{by.readAsDataURL(bz)}}},assignReadType:function(){var by,bz=ag(this.options.readAs).toLowerCase();
if(~bz.indexOf("text")){by="text"}else{if(~bz.indexOf("bin")){by="binary"}else{if(~bz.indexOf("arr")||~bz.indexOf("buf")){by="arraybuffer"}else{if(~bz.indexOf("data")||~bz.indexOf("ur")){by="datauri"
}else{by=null}}}}this.options.readAs=by},isImageFile:function(by){return/image/i.test(by)},isTextFile:function(by){return !/image|audio|video|zip|compress|stream/i.test(by)
},upload:function(bA,bG){var bD,bB,bz=this.loadedFiles,by={},bF,bC,bE="file";if(bz&&bz.length){if(aW(bG)){bE=bG}else{if(D(bG)){bF=/key|file|name/i;a7(bG,function(bI,bH){if(aW(bI)&&bF.test(bH)){bE=bI;
throw aU}});by=I({},bG)}}bB=ag(bA);bF=/([^@:;#?&=\/\\]+)=[?]/;if(bF.test(bB)){bE=bB.match(bF)[1];bB=bB.replace(bE,"")}bC=by.sendContent||by.queryString||{};if(b(bC)){bC[bC.length]=[bE,bz.splice(0,bz.length)]
}else{bC[bE]=bz.splice(0,bz.length)}by.sendContent=bC;by.queryString=null;by.method=by.method||"POST";bD=aN.Net.request(bB,by)}return h.maybeDeferred(bD)},loadAsImage:function(bG,bA,bE,bz,by){var bD=this,bB=this.options,bC=new FileReader(),bF=bB.onLoadImage;
if(bB.onProgressFile){bC.onprogress=function(bH){bD.updateProgressFile(bH,by,bE)}}bC.onload=function(bH){bG.ends[bA]=true;bG.steps[bA].begin();if(bB.onProgressFile){bD.updateProgressFileEnd(by)
}if(bF){bF.call(bD,bH&&bH.target&&bH.target.result,by)}};bC.onerror=function(bH){bG.ends[bA]=true;bG.steps[bA].raise(bH)};this.readFile(bC,bz)},loadAsText:function(bG,bA,bE,bz,by){var bD=this,bB=this.options,bC=new FileReader(),bF=bB.onLoadText;
if(bB.onProgressFile){bC.onprogress=function(bH){bD.updateProgressFile(bH,by,bE)}}bC.onload=function(bH){bG.ends[bA]=true;bG.steps[bA].begin();if(bB.onProgressFile){bD.updateProgressFileEnd(by)
}if(bF){bF.call(bD,bH&&bH.target&&bH.target.result,by)}};bC.onerror=function(bH){bG.ends[bA]=true;bG.steps[bA].raise(bH)};this.readFile(bC,bz,true)},loadAsUnknown:function(bG,bA,bE,bz,by){var bD=this,bB=this.options,bC=new FileReader(),bF=bB.onLoadUnknown;
if(bB.onProgressFile){bC.onprogress=function(bH){bD.updateProgressFile(bH,by,bE)}}bC.onload=function(bH){bG.ends[bA]=true;bG.steps[bA].begin();if(bB.onProgressFile){bD.updateProgressFileEnd(by)
}if(bF){bF.call(bD,bH&&bH.target&&bH.target.result,by)}};bC.onerror=function(bH){bG.ends[bA]=true;bG.steps[bA].raise(bH)};this.readFile(bC,bz)},updateProgress:function(bz,bA){var by,bB=this.options.onProgress;
if(bB){by=Math.max(0,Math.min(100,Math.round((bz/bA)*100)));bB.call(this,by)}},updateProgressEnd:function(){var by=this.options.onProgress;if(by){by.call(this,100)
}},updateProgressFile:function(by,bB,bA){var bz,bD=this.options,bC=bD.onProgressFile;if(bC&&by&&by.lengthComputable&&by.loaded!=null){bz=Math.max(0,Math.min(100,Math.round((by.loaded/by.total)*100)));
bC.call(this,bz,bB)}if(bD.onProgress){this.updateProgress(bB.index,bA)}},updateProgressFileEnd:function(by){var bz=this.options.onProgressFile;if(bz){bz.call(this,100,by)
}}});p.fn.init.prototype=p.fn;bp.fn=bp.prototype=I(bp.prototype,{constructor:bp,id:L.getMagicNumber(),NAME:"Handler",serial:null,toString:Q,init:function(by){if(!this.serial){this.serial=af(this)
}I(this,by);return this}});bp.fn.init.prototype=bp.fn;bt.fn=bt.prototype={constructor:bt,PotInternal:{id:L.getMagicNumber(),NAME:"Observer",serial:null,orgEvent:null,object:null},toString:function(){return aR(this.PotInternal.NAME)
},preventDefault:function(){var by;try{by=this.PotInternal.orgEvent;if(by){if(by.preventDefault){by.preventDefault()}else{by.returnValue=false}}}catch(bz){}if(this.originalEvent){try{by=this.originalEvent;
if(by){if(by.preventDefault){by.preventDefault()}else{by.returnValue=false}}}catch(bz){}}},stopPropagation:function(){var by;try{by=this.PotInternal.orgEvent;if(by){if(by.stopPropagation){by.stopPropagation()
}by.cancelBubble=true}}catch(bz){}if(this.originalEvent){try{by=this.originalEvent;if(by){if(by.stopPropagation){by.stopPropagation()}by.cancelBubble=true}}catch(bz){}}}};
a7({attach:4,attachBefore:4,attachAfter:4,attachPropBefore:4,attachPropAfter:4},function(bz,by){I(i[by],{once:function(){var bA=a1(arguments);bA[bz]=true;return i[by].apply(i,bA)
}})});a7({normal:true,before:true,after:true,propBefore:true,propAfter:true},function(bz,by){var bA={};bA[by]=function(bB,bE,bD,bC){return bi(bB,bE,bD,bp.advices[by],bC)
};I(bx,bA)});function bd(bD,bK,bI,bA,bH,bz,bC){var bL,bJ=(bH&&bk.EVENT_ONCE.test(bK)),bF,bB,bG,by=i,bE;if(bz||bJ){bF=true;bB=function(bM){by.detach(bD,bK,bI,bA)}
}if(bw(bD,bK,true)){if(bC===bp.advices.normal){a8(bD,bK)}bG=q;if(bH){return bG}else{be(function(bM){if(bM&&!bM.isDOM&&bM.advice===bp.advices.normal&&bM.object===bD&&bM.signal==bK&&bM.listener!==q){if(bE){bM.listener=q
}else{if(!bM.attached){bG=bM.listener;bM.listener=q;bE=true}}}});return bG}}bl[bl.length]={object:bD,signal:bK,advice:bC,attached:true};bL=function(bO){var bP=a9(),bM=arguments,bN=bL,bQ=bH?new bt(bD,bO):bM;
bP.data(bu,[]);bx.before(bP,bD,bK,bQ);bx.normal(bP,bD,bK,bQ);bx.after(bP,bD,bK,bQ);return bP.ensure(function(bR){var bS;if(d(bR)){this.data(bu,aY.call(this.data(bu)||[],bR))
}bS=this.data(bu);if(bF){bB(bN)}if(bS&&bS.length){if(bS.length>1){throw I(bS[0],{errors:bS})}else{throw bS[0]}}return bR}).begin()};return bL}function bi(bG,bB,bF,bA,bE){var bC={},bD,by,bz=bg(bB);
if(!bz){return}bD=a1(bF);a7(bD,function(bH){bC[bc+ag(bH)]=true});by=false;switch(bA){case bp.advices.normal:by=true;break;case bp.advices.before:case bp.advices.after:a7(bD,function(bH){if(bw(bz,ag(bH))){by=true;
throw aU}});break;case bp.advices.propBefore:case bp.advices.propAfter:a7(bD,function(bH){if(ba(bz,ag(bH))){by=true;throw aU}});break;default:by=false}if(by){be(function(bI){var bH=ag(bI&&bI.signal);
if(bI&&bI.attached&&bI.advice===bA&&bI.object===bz&&((bc+bH) in bC)){bG.ensure(function(bJ){if(d(bJ)){this.data(bu,aY.call(this.data(bu)||[],bJ))}if(bA===bp.advices.normal){return bI.callback.apply(bz,a1(bE))
}else{return bI.listener.apply(bz,a1(bE))}})}})}return bG}function bw(bA,bz,bB){var by=false;a7(a1(bz),function(bF){var bD,bE,bC=ag(bF);for(bD=bl.length-1;bD>=0;
bD--){bE=bl[bD];if(bE&&(bB||bE.attached)&&bE.advice===bp.advices.normal&&bE.object===bA&&bE.signal==bC){by=true;throw aU}}});return by}function a8(bA,bz){var by=false;
a7(a1(bz),function(bE){var bC,bD,bB=ag(bE);for(bC=bl.length-1;bC>=0;bC--){bD=bl[bC];if(bD&&!bD.attached&&bD.advice===bp.advices.normal&&bD.object===bA&&bD.signal==bB){bD.attached=true;
throw aU}}});return by}function ba(bz,bB,bA){var by=false;a7(a1(bB),function(bF){var bD,bE,bC=ag(bF);for(bD=bm.length-1;bD>=0;bD--){bE=bm[bD];if(bE&&(bA||bE.attached)&&bE.object===bz&&bE.signal==bC){by=true;
throw aU}}});return by}function bj(bz,bA){var by=false;a7(a1(bA),function(bE){var bC,bD,bB=ag(bE);for(bC=bm.length-1;bC>=0;bC--){bD=bm[bC];if(bD&&!bD.attached&&(bD.advice===bp.advices.propBefore||bD.advice===bp.advices.propAfter)&&bD.object===bz&&bD.signal==bB){bD.attached=true;
throw aU}}});return by}function bs(bG){var bA,bD,bz,bF,bB,bC,bE,by;if(!bG||!bG.attached){return}bG.attached=false;bA=bG.object;bD=bG.signal;bF=bG.useCapture;bz=bG.listener;
if(!bG.isDOM){if(bG.advice===bp.advices.propBefore||bG.advice===bp.advices.propAfter){bE=false;be(function(bH){if(bH&&bH.attached&&!bH.isDOM&&(bH.advice===bp.advices.propBefore||bH.advice===bp.advices.propAfter)&&bH.object===bA&&bH.signal==bD){bE=true;
throw aU}});if(!bE){for(bB=bm.length-1;bB>=0;bB--){bC=bm[bB];if(bC&&bC.attached&&bC.object===bA&&bC.signal==bD){bC.attached=false}}}}else{if(bG.advice===bp.advices.normal){bE=false;
by=null;be(function(bH){if(bH&&bH.attached&&!bH.isDOM&&bH.advice===bp.advices.normal&&bH.object===bA&&bH.signal==bD){bE=true;by=bH;throw aU}});if(bE){if(by&&by.listener===q&&bz!==q){by.listener=bz
}}else{for(bB=bl.length-1;bB>=0;bB--){bC=bl[bB];if(bC&&bC.attached&&bC.object===bA&&bC.signal==bD){bC.attached=false}}}}}}else{if(bG.advice===bp.advices.normal){bE=false;
be(function(bH){if(bH&&bH.attached&&bH.isDOM&&bH.advice===bp.advices.normal&&bH.object===bA&&bH.signal==bD){bE=true;throw aU}});if(!bE){for(bB=bl.length-1;bB>=0;
bB--){bC=bl[bB];if(bC&&bC.attached&&bC.advice===bp.advices.normal&&bC.object===bA&&bC.signal==bD){bC.attached=false}}}}}bf()}function bv(bB,bE,bH,bA,by){var bC=[],bz,bG,bD,bF;
bz=bg(bB);if(!bz){return}bF=function(bJ){var bI=function(){var bK=arguments;bH.apply(bz,bK);if(by){i.detach(bz,bJ,bI,false)}};return bI};bG=bh(bz);if(b(bE)){bD=true
}a7(a1(bE),function(bL){var bI=ag(bL),bJ,bK;bK=bF(bI);bJ=new bp({object:bz,signal:bI,listener:bK,callback:bK,isDOM:bG,useCapture:false,advice:bA,attached:true});
bb(function(bM){bM[bM.length]=bJ});bC[bC.length]=bJ});return bD?bC:bC[0]}function bo(bB,bE,bH,bA,bz){var bC=[],bD,bF,bG,by=i;if(!bB||!aK(bH)){return}if(b(bE)){bD=true
}bG=function(bI){var bJ=function(){var bK=arguments;bH.apply(bB,bK);if(bz){by.detach(bB,bI,bJ,false)}};return bJ};bF=a1(bE);a7(bF,function(bJ){var bI=ag(bJ);if(ba(bB,bI,true)){if(bA===bp.advices.propBefore||bA===bp.advices.propAfter){bj(bB,bI)
}}else{bm[bm.length]={object:bB,signal:bI,advice:bA,attached:true};aN.override(bB,bI,function(bO,bK){var bN={},bM=a9(),bL=bN;bM.data(bu,[]);bx.propBefore(bM,bB,bI,bK);
bM.ensure(function(bP){if(d(bP)){this.data(bu,aY.call(this.data(bu)||[],bP))}return bO.apply(bB,bK)}).then(function(bP){bL=bP;return bP});bx.normal(bM,bB,bI,bK);
bx.propAfter(bM,bB,bI,bK);bM.ensure(function(bP){var bQ;if(d(bP)){this.data(bu,aY.call(this.data(bu)||[],bP))}bQ=this.data(bu);if(bQ&&bQ.length){if(bQ.length>1){throw I(bQ[0],{errors:bQ})
}else{throw bQ[0]}}return bP}).begin();return(bL===bN)?null:bL})}});a7(bF,function(bL){var bI=ag(bL),bJ,bK;bK=bG(bI);bJ=new bp({object:bB,signal:bI,listener:bK,callback:bK,isDOM:false,useCapture:false,advice:bA,attached:true});
bb(function(bM){bM[bM.length]=bJ});bC[bC.length]=bJ});return bD?bC:bC[0]}function bn(by,bB){var bz=ag(bB),bA="on";if(by){if(by.addEventListener){if(bz.indexOf(bA)===0){bz=bz.substring(2)
}}else{if(by.attachEvent){if(bz.indexOf(bA)!==0){bz=bA+bz}}}}return bz}function bh(by){return !!(by&&(by.addEventListener&&by.removeEventListener)||(by.attachEvent&&by.detachEvent))
}function bg(bz){if(typeof bz==="object"||aK(bz)){if(bz.jquery&&bz.get){return bz.get(0)}else{return bz}}if(aW(bz)){try{return aN.currentDocument().getElementById(ag(bz).replace(bk.ID_CLEAN,""))
}catch(by){}}return false}function be(bD){var bz,bB=null,bA,by;br=true;try{by=bq.length;for(bA=0;bA<by;bA++){bz=bD(bq[bA],bA)}}catch(bC){bB=bC}finally{br=false}if(bB!==null&&!aZ(bB)){throw bB
}return bz}function bb(bD){var by,bB=255,bA={},bz=false;(function bC(){try{if(br){if(--bB>=0){throw bA}else{bB=-1;ah(function(){bC()},0)}}else{if(!bz){bz=true;by=bD(bq)
}}}catch(bE){if(bE===bA){return bC()}else{throw bE}}})();return by}function bf(){var bA,by,bB,bz=[],bC;if(!br){br=true;try{by=bq.length;for(bA=0;bA<by;bA++){bB=bq[bA];
if(!bB||(!bB.attached&&((bB.advice===bp.advices.normal&&bB.listener===q)||(bB.advice===bp.advices.propBefore||bB.advice===bp.advices.propAfter)||(bB.advice===bp.advices.before||bB.advice===bp.advices.after)))){continue
}bz[bz.length]=bB}bq.splice(0,by);f.apply(bq,bz)}catch(bD){bC=bD}finally{br=false}if(bC!=null){throw bC}}}function a9(){return new h({async:false})}aN.update({attach:aN.Signal.attach,attachBefore:aN.Signal.attachBefore,attachAfter:aN.Signal.attachAfter,attachPropBefore:aN.Signal.attachPropBefore,attachPropAfter:aN.Signal.attachPropAfter,detach:aN.Signal.detach,detachAll:aN.Signal.detachAll,signal:aN.Signal.signal,cancelEvent:aN.Signal.cancelEvent,DropFile:aN.Signal.DropFile})
}());(function(){var a9=".",a8;aN.update({Hash:function(){return F(this)?this.init(arguments):new ak.fn.init(arguments)}});I(ap,{createHashIterator:function(bd){var bc=function(bf){var be=bf;
if(!be){a7(aA.speeds,function(bh,bg){if(bh===aA.defaults.speed){be=bg;throw aU}})}return bd(be)},bb={},ba=bc();a7(aA.speeds,function(bf,be){bb[be]=bc(be)});return I(ba,bb)
}});ak=aN.Hash;a8=ap.createHashIterator;ak.fn=ak.prototype=I(ak.prototype,{constructor:ak,id:L.getMagicNumber(),serial:null,StopIteration:aU,_rawData:{},length:0,NAME:"Hash",toString:Q,isHash:F,init:function(bd){var bc=this,bb,ba;
if(!this.serial){this.serial=af(this)}this._rawData={};this.length=0;bb=a1(bd);ba=bb.length;if(ba===2&&!D(bb[0])){this.set(bb[0],bb[1])}else{if(ba){a7(bb,function(be){bc.set(be)
})}}L.referSpeeds.call(this,aA.speeds);return this},get:function(ba){return this._rawData[a9+ba]},set:function(ba,bc){var bb=this;if(F(ba)){ba.forEach(function(be,bd){bb.set(bd,be)
})}else{if(ba&&D(ba)){a7(ba,function(be,bd){bb.set(bd,be)})}else{if(!this.has(ba)){this.length++}this._rawData[a9+ba]=bc}}return this},has:function(ba){return((a9+ba) in this._rawData)
},hasValue:function(bb){var ba=false;a7(this._rawData,function(bd,bc){if(bc&&bc.charAt(0)===a9&&bd===bb){ba=true;throw aU}});return ba},remove:function(ba){if(this.has(ba)){delete this._rawData[(a9+ba)];
this.length--}return this},clear:function(){this._rawData={};this.length=0;return this},keys:function(){var ba=[];a7(this._rawData,function(bc,bb){if(bb&&bb.charAt(0)===a9){ba[ba.length]=bb.substring(1)
}});return ba},values:function(){var ba=[];a7(this._rawData,function(bc,bb){if(bb&&bb.charAt(0)===a9){ba[ba.length]=bc}});return ba},toJSON:function(){var bc=[],bb,ba=aN.Serializer.serializeToJSON;
a7(this._rawData,function(be,bd){if(bd&&bd.charAt(0)===a9){bb=bd.substring(1);try{bc[bc.length]=ba(bb)+":"+ba(be)}catch(bf){}}});return"{"+bc.join(",")+"}"},toObject:function(){var bb={},ba;
a7(this._rawData,function(bd,bc){if(bc&&bc.charAt(0)===a9){ba=bc.substring(1);try{bb[ba]=bd}catch(be){}}});return bb},toItems:function(){var ba=[],bb;a7(this._rawData,function(bd,bc){if(bc&&bc.charAt(0)===a9){bb=bc.substring(1);
ba[ba.length]=[bb,bd]}});return ba},forEach:a8(function(bb){var ba=function(be,bc){var bd=ba.instance||this;aN.forEach[bb](bd._rawData,function(bj,bg,bh){var bi,bf;
if(bg&&bg.charAt(0)===a9){bi=bg.substring(1);bf=be.call(bc,bj,bi,bh)}});return bd};return ba}),map:a8(function(bb){var ba=function(bf,bc){var bd=ba.instance||this,be=new ak();
aN.forEach[bb](bd._rawData,function(bk,bh,bi){var bj,bg;if(bh&&bh.charAt(0)===a9){bj=bh.substring(1);bg=bf.call(bc,bk,bj,bi);be.set(bj,bg)}});return be};return ba
}),filter:a8(function(bb){var ba=function(bf,bc){var bd=ba.instance||this,be=new ak();aN.forEach[bb](bd._rawData,function(bj,bg,bh){var bi;if(bg&&bg.charAt(0)===a9){bi=bg.substring(1);
if(bf.call(bc,bj,bi,bh)){be.set(bi,bj)}}});return be};return ba}),reduce:a8(function(bb){var ba=function(bk,bg,bd){var be=ba.instance||this,bh,bi,bc,bj=be._rawData;
if(bg==null){for(bc in bj){if(bc&&bc.charAt(0)===a9){try{bh=bj[bc];break}catch(bf){}}}}else{bh=bg}bi=true;aN.forEach[bb](bj,function(bo,bl,bm){var bn;if(bi){bi=false
}else{if(bl&&bl.charAt(0)===a9){bn=bl.substring(1);bh=bk.call(bd,bh,bo,bn,bm)}}});return bh};return ba}),every:a8(function(bb){var ba=function(bf,bd){var be=ba.instance||this,bc=true;
aN.forEach[bb](be._rawData,function(bj,bg,bh){var bi;if(bg&&bg.charAt(0)===a9){bi=bg.substring(1);if(!bf.call(bd,bj,bi,bh)){bc=false;throw aU}}});return bc};return ba
}),some:a8(function(bb){var ba=function(bf,bd){var be=ba.instance||this,bc=false;aN.forEach[bb](be._rawData,function(bj,bg,bh){var bi;if(bg&&bg.charAt(0)===a9){bi=bg.substring(1);
if(bf.call(bd,bj,bi,bh)){bc=true;throw aU}}});return bc};return ba})});delete ap.createHashIterator;ak.fn.init.prototype=ak.fn}());aN.update({Collection:function(){return a1.apply(null,arguments)
}});I(aN.Collection,{arrayize:a1,merge:function(){var a9=null,ba=a1(arguments),a8=ba[0];switch(ba.length){case 0:break;case 1:a9=a1(a8);break;default:if(aD(a8)){a9=aY.apply([],ba)
}else{if(D(a8)){ba.unshift({});a9=I.apply(null,ba)}else{if(aW(a8)){a9=ab.join.call(ba,"")}else{a9=ba}}}}return a9},unique:(function(){var a8,ba,bb=function(bf,be){var bd,bc;
if(a8&&bf!=null&&bf.toLowerCase&&be!=null&&be.toLowerCase){bd=bf.toLowerCase();bc=be.toLowerCase()}else{bd=bf;bc=be}return ba&&bd===bc||bd==bc},a9=function(bd,bc){var bf,be;
if(a8){bf=ag(bd).toLowerCase();be=ag(bc).toLowerCase()}else{bf=bd;be=bc}if(ba&&bf===be||bf==be){return true}else{if(aN.Struct&&aN.Struct.equals){return aN.Struct.equals(bd,bc,bb)
}else{return false}}};return function(bc,be,bl){var bg=[],bm=arguments,bn=aN.Collection.unique,bh,bf,bi,bk,bd=[];bm=a1(bm);ba=!be;a8=!!bl;if(bc){if(b(bc)){bi=bc.length;
if(bi){for(bh=0;bh<bi;bh++){for(bf=bh+1;bf<bi;bf++){try{if(a9(bc[bh],bc[bf])){bd[bf]=bh}}catch(bj){}}if(!(bh in bd)){try{bg[bg.length]=bc[bh]}catch(bj){}}}}}else{if(D(bc)){bg={};
bk=[];a7(bc,function(bp,bo){bk[bk.length]=[bo,bp]});bi=bk.length;for(bh=0;bh<bi;bh++){for(bf=bh+1;bf<bi;bf++){try{if(a9(bk[bh][1],bk[bf][1])){bd[bf]=bh}}catch(bj){}}if(!(bh in bd)){try{bg[bk[bh][0]]=bk[bh][1]
}catch(bj){}}}}else{if(aW(bc)){bm[0]=bc.split("");bg=bn.apply(null,bm).join("")}else{bg=bc}}}}return bg}}()),flatten:function aG(bd){var bb=[],ba,a8,bc,a9;if(!b(bd)){bb[bb.length]=bd
}else{a9=a1(bd);a8=a9.length;for(ba=0;ba<a8;ba++){bc=a9[ba];if(b(bc)){f.apply(bb,aG(bc))}else{bb[bb.length]=bc}}}return bb},alphanumSort:(function(){function a9(be){var bh=[],bb=0,bg=-1,bf=0,bd,bc,ba;
while((bd=(bc=be.charAt(bb++)).charCodeAt(0))){ba=(bd==46||(bd>=48&&bd<=57));if(ba!==bf){bh[++bg]="";bf=ba}bh[bg]+=bc}return bh}function a8(bc,ba){var be,bg,bh,bf,bd;
be=a9(ag(bc).toLowerCase());bg=a9(ag(ba).toLowerCase());for(bd=0;(be[bd]&&bg[bd]);bd++){if(be[bd]!==bg[bd]){bh=+be[bd];bf=+bg[bd];if(bh==be[bd]&&bf==bg[bd]){return bh-bf
}else{return(be[bd]>bg[bd])?1:-1}}}return be.length-bg.length}return function(bb,ba){if(b(bb)){if(aK(ba)){bb.sort(function(bd,bc){return a8(ba(bd),ba(bc))})}else{bb.sort(a8)
}}return bb}}())});aN.update({arrayize:aN.Collection.arrayize,merge:aN.Collection.merge,unique:aN.Collection.unique,flatten:aN.Collection.flatten,alphanumSort:aN.Collection.alphanumSort});
aN.update({Struct:{}});I(aN.Struct,{invoke:H,clone:function(a9){var a8,ba,bb;if(a9==null){return a9}bb=a9.constructor;switch(al(a9)){case"array":a8=a1(a9);break;
case"function":a8=I(function(){return a9.apply(this,arguments)},a9);a8.prototype=I({},a9.prototype);break;case"object":if(aN.isDOMLike(a9)){if(a9.cloneNode){a8=a9.cloneNode(true);
break}else{if(!u.canCloneDOM){a8=I({},a9);break}}}if(u.canProtoClone){ba=function(){};ba.prototype=a9;a8=new ba()}else{a8={};a7(a9,function(bd,bc){a8[bc]=bd})}break;
case"error":a8=new Error(aN.getErrorMessage(a9));I(a8,a9);break;case"date":a8=new Date(a9.getTime());break;case"regexp":a8=new RegExp(a9);break;case"boolean":case"number":case"string":if(typeof a9==="object"){a8=new bb(bb(a9))
}else{a8=bb((function(){return this}).call(a9))}break;default:a8=a9}return a8},bind:function(bc,a8){var a9=arguments,bb,ba=a8||null;if(a9.length>2){bb=a1(a9,2);return function(){var bd=a1(arguments);
aT.apply(bd,bb);return bc.apply(ba,bd)}}else{return function(){return bc.apply(ba,arguments)}}},partial:function(a9){var a8=a1(arguments,1);return function(){var ba=a1(arguments);
ba.unshift.apply(ba,a8);return a9.apply(this,ba)}},keys:aN.keys,values:function(a9){var a8=[];if(a9){if(D(a9)||aD(a9)){a7(a9,function(ba){a8[a8.length]=ba})}}return a8
},tuple:function(a9,be,bd){var a8={},bc,ba=arguments,bb=null;if(ba.length>=2){if(aK(be)){bc=be;bb=bd}else{bc=bd;bb=be}}if(!aK(bc)){bc=null}if(bb==null){bb="object"
}else{if(F(bb)||(bb&&bb===ak)){bb="hash"}else{bb=ax(bb)}}if(a9){if(b(a9)){a8=null;a7(a9,function(bj){var bi,bf,bh,bg,bk=[];if(bj){if(aD(bj)){bi=0;bf=bj.length;if(bf){do{try{bg=ag(bj[bi++],true);
bh=bj[bi++];bk[bk.length]=[bg,bh]}catch(bl){}}while(bi<bf)}}else{if(D(bj)){a7(bj,function(bn,bm){bk[bk.length]=[bm,bn]})}}a7(bk,function(bn){var bo;try{switch(bb){case"hash":if(a8===null){a8=new ak()
}if(bc){bo=bc.apply(bn,bn);if(b(bo)){a8.set(bo[0],bo[1])}else{if(D(bo)){a8.set(bo)}else{a8.set(bn[0],bo)}}}else{a8.set(bn[0],bn[1])}break;case"array":if(a8===null){a8=[]
}a8[a8.length]=bc?bc.apply(bn,bn):bn;break;case"string":if(a8===null){a8=""}a8+=bc?bc.apply(bn,bn):(ag(bn[0])+ag(bn[1]));break;case"number":if(a8===null){a8=0}a8+=bc?bc.apply(bn,bn):((+bn[0]||0)+(+bn[1]||0));
break;case"object":default:if(a8===null){a8={}}if(bc){bo=bc.apply(bn,bn);if(b(bo)){a8[bo[0]]=bo[1]}else{if(D(bo)){a7(bo,function(bp,bq){a8[bq]=bp})}else{a8[bn[0]]=bo
}}}else{a8[bn[0]]=bn[1]}}}catch(bm){}})}})}}return a8},unzip:function(bi,bh){var bj=[],bf,bb,be,ba,a9,bg,a8,bc;if(aK(bh)){be=bh}if(bi&&bi.length&&b(bi)){bf=0;a7(bi,function(bk){if(bk&&bk.length>bf){bf=bk.length
}});bb=bi.length;for(ba=0;ba<bf;ba++){bg=[];for(a9=0;a9<bb;a9++){try{a8=bi[a9][ba]}catch(bd){continue}bc=bg.length-1;if(a8&&bc>=0&&D(bg[bc])&&D(a8)){a7(a8,function(bl,bk){try{bg[bc][bk]=bl
}catch(bm){}})}else{bg[bg.length]=a8}}if(bg.length===1&&D(bg[0])){bg=bg.shift()}bj[bj.length]=be?be.apply(bg,a1(bg)):bg}}return bj},pairs:function(){var a9={},ba=a1(arguments),a8=ba.length,bb=0;
do{if(b(ba[bb])){ba[bb]=aN.Struct.pairs.apply(null,ba[bb])}if(D(ba[bb])){a7(ba[bb++],function(bd,bc){a9[bc]=bd})}else{a9[ag(ba[bb++],true)]=ba[bb++]}}while(bb<a8);
return a9},count:function(a9){var ba=0;if(a9!=null){switch(al(a9)){case"array":case"string":ba=a9.length;break;case"object":case"function":a7(a9,function(){ba++});
break;case"number":ba=Math.abs(Math.round(a9));break;default:try{ba=a9.toString().length}catch(a8){ba=0}}}return ba-0},first:function(bd,a9){var ba,bc,a8;if(bd!=null){switch(al(bd)){case"array":if(bd){a8=bd.length;
for(bc=0;bc<a8;bc++){try{if(bc in bd){if(a9){ba=bc}else{ba=bd[bc]}break}}catch(bb){continue}}}break;case"string":if(a9){ba=bd.length?0:null}else{ba=bd.length?bd.charAt(0):""
}break;case"number":if(a9){ba=isNaN(bd)?null:0}else{ba=Math.abs(bd).toString().slice(-1)-0}break;case"object":if(bd){for(bc in bd){if(ao.call(bd,bc)){try{if(a9){ba=bc
}else{ba=bd[bc]}break}catch(bb){continue}}}}}}return ba},firstKey:function(a8){return aN.Struct.first(a8,true)},last:function(bc,a8){var a9,bb;if(bc!=null){switch(al(bc)){case"array":bb=bc.length;
while(--bb>=0){try{if(bb in bc){if(a8){a9=bb}else{a9=bc[bb]}break}}catch(ba){continue}}break;case"string":if(a8){a9=bc.length?bc.length-1:null}else{a9=bc.length?bc.slice(-1):""
}break;case"number":if(a8){a9=isNaN(bc)?null:Math.abs(bc).toString().length-1}else{a9=Math.abs(bc).toString().charAt(0)-0}break;case"object":a7(bc,function(be,bd){if(a8){a9=bd
}else{a9=be}})}}return a9},lastKey:function(a8){return aN.Struct.last(a8,true)},contains:function(a9,ba){var a8=false;switch(al(a9)){case"string":a8=~a9.indexOf(ba);
break;case"array":a8=~aN.indexOf(a9,ba);break;case"object":a8=~aN.indexOf(a9,ba);break;case"number":a8=~a9.toString().indexOf(ba)}return !!a8},remove:function(a8,bf,a9){var bg,bb,bd,bc,ba=false;
bg=a8;if(a8!=null){switch(al(a8)){case"string":bg=a8.replace(bf,"");break;case"array":if(!a9&&u.isBuiltinArrayIndexOf){bc=r.call(a8,bf);if(~bc){bg=aN.Struct.removeAt(a8,bc)
}break}bg=[];bd=a8.length;for(bb=0;bb<bd;bb++){try{if(!ba&&((!a9&&a8[bb]===bf)||(a9&&a8[bb]==bf))){ba=true}else{bg[bg.length]=a8[bb]}}catch(be){}}break;case"object":bg={};
a7(a8,function(bh,bi){if(!ba&&((!a9&&bh===bf)||(a9&&bh==bf))){ba=true}else{bg[bi]=bh}});break;case"number":bg=a8.toString().replace(bf,"")-0;break;default:bg=a8}}return bg
},removeAll:function(ba,bc,be){var a9,bb,a8;a9=ba;if(ba!=null){switch(al(ba)){case"string":if(aC(bc)){if(!bc.global){bc=new RegExp(bc.source,"g"+(bc.ignoreCase?"i":"")+(bc.multiline?"m":""))
}}else{bc=new RegExp(ac(bc),"g")}a9=ba.replace(bc,"");break;case"array":a9=[];a8=ba.length;for(bb=0;bb<a8;bb++){try{if((!be&&ba[bb]===bc)||(be&&ba[bb]==bc)){continue
}a9[a9.length]=ba[bb]}catch(bd){}}break;case"object":a9={};a7(ba,function(bf,bg){if((!be&&bf===bc)||(be&&bf==bc)){return}a9[bg]=bf});break;case"number":a9=ba.toString().split(bc).join("")-0;
break;default:a9=ba}}return a9},removeAt:function(bb,bc,a8){var bg,be=aN.Struct.removeAt,bf,bd,a9,ba;bg=bb;if(bb!=null){bf=bc-0;bd=(a8-0)||1;if(isNaN(bf)){return bg
}switch(al(bb)){case"string":if(bb){if(bf>=0&&bd>0){if(bf===0){bg=bb.substring(bd)}else{bg=bb.substring(0,bf)+bb.substring(bf+bd)}}}break;case"array":if(bb.length){bg=a1(bb);
aE.call(bg,bf,bd)}break;case"object":bg={};a9=0;a7(bb,function(bh,bi){if(a9<bf||a9>bf+bd){bg[bi]=bh}a9++});break;case"number":ba=(bb<0);bg=be(Math.abs(bb).toString().split("").reverse().join(""),bf,bd).toString().split("").reverse().join("")-0;
if(ba){bg=-bg}break;default:bg=bb}}return bg},equals:function(bb,bf,a9){var bi=false,bg,bd,bh,bc,be,ba,a8;bg=aK(a9)?a9:(function(bk,bj){return bk===bj});a8=function(bk,bj){try{return bg(bk,bj)
}catch(bl){return false}};if(bb==null){if(bg(bb,bf)){bi=true}}else{if(bb===bf||a8(bb,bf)){bi=true}else{switch(al(bb)){case"array":if(bf&&aD(bf)){if(aN.isEmpty(bb)&&aN.isEmpty(bf)){bi=true
}else{if(bb&&bb.length===bf.length){bi=false;a7(bb,function(bj,bk){if(!(bk in bf)||!aN.Struct.equals(bj,bf[bk],bg)){bi=false;throw aU}else{bi=true}})}}}break;case"object":if(bf&&D(bf)){if(aN.isEmpty(bb)&&aN.isEmpty(bf)){bi=true
}else{if((aN.isDOMLike(bb)||!aN.isPlainObject(bb))&&(aN.isDOMLike(bf)||!aN.isPlainObject(bf))){bi=(bb===bf)}else{bh=aN.keys(bf);be=bh.length;if(bb&&aN.keys(bb).length===be){bc=0;
bi=true;a7(bb,function(bj,bl){if(!(bc in bh)||bh[bc]!==bl){bi=false;throw aU}try{if(!aN.Struct.equals(bj,bf[bl],bg)){bi=false;throw aU}}catch(bk){}bc++})}}}}break;
case"string":if(aW(bf)){if(bb.length===bf.length&&bg(bb.toString(),bf.toString())){bi=true}}break;case"number":if(O(bf)){if(isNaN(bb)&&isNaN(bf)){bi=true}else{if(!isFinite(bb)&&!isFinite(bf)){bi=true
}else{if(aN.isInt(bf)){if(bg(bb,bf)){bi=true}}else{if(Math.abs(bb-bf)<=0.000001){bi=true}}}}}break;case"function":if(aK(bf)){if(bg(aN.getFunctionCode(bb),aN.getFunctionCode(bf))&&bb.constructor===bf.constructor){bd=function(bj){for(ba in bj){return false
}return true};if(bd(bb)&&bd(bf)){bi=true}else{bi=false;a7(bb,function(bk,bj){if(!aN.Struct.equals(bk,bf[bj],bg)){bi=false;throw aU}else{bi=true}})}if(bi){if(bd(bb.prototype)&&bd(bf.prototype)){bi=true
}else{bi=false;a7(bb.prototype,function(bk,bj){if(!aN.Struct.equals(bk,bf.prototype[bj],bg)){bi=false;throw aU}else{bi=true}})}}}}break;case"boolean":if(aM(bf)){if(bg(bb!=false,bf!=false)){bi=true
}}break;case"date":if(k(bf)){if(bg(bb.getTime(),bf.getTime())){bi=true}}break;case"error":if(d(bf)){if(aN.Struct.equals(aN.getErrorMessage(bb),aN.getErrorMessage(bf),bg)&&bg(bb.constructor,bf.constructor)){bi=true
}}break;case"regexp":if(aC(bf)){if(bg(bb.toString(),bf.toString())){bi=true}}break;default:if(ax(bb)===ax(bf)&&bg(bb,bf)){bi=true}}}}return bi},reverse:function(a9){var bg,ba,bd,a8,bb;
switch(al(a9)){case"object":bg={};ba=[];for(a8 in a9){try{if(ao.call(a9,a8)){try{bb=a9[a8]}catch(bf){continue}ba[ba.length]=[a8,bb]}}catch(be){}}bd=ba.length;while(--bd>=0){bg[ba[bd][0]]=ba[bd][1]
}break;case"array":try{if(b(a9)){bg=a9.reverse()}else{throw a9}}catch(be){bg=[];bd=a9.length;while(--bd>=0){try{if(ao.call(a9,bd)){try{bb=a9[bd]}catch(bf){continue
}bg[bg.length]=bb}}catch(bc){}}}break;case"string":bg=a9.split("").reverse().join("");break;case"number":bg=-a9;break;case"boolean":bg=(a9==false);break;default:bg=a9
}return bg},flip:function(a9){var a8;switch(al(a9)){case"object":a8={};a7(a9,function(bb,ba){a8[ag(bb,true)]=ba});break;case"array":a8=[];a7(a9,function(ba,bb){if(v(ba)){a8[(ba-0)]=bb
}});break;case"string":a8="";a7(a9.split(""),function(ba){a8+=g(ba.charCodeAt(0)^65535)});break;case"number":a8=~a9;break;case"boolean":a8=(a9==false);break;default:a8=a9
}return a8},shuffle:function(bf){var a8,bc,ba,bb,bd,a9,be=aN.Struct;if(b(bf)){a8=bf.slice();bc=a8.length;while(bc>0){ba=Math.floor(Math.random()*bc);bb=a8[--bc];
a8[bc]=a8[ba];a8[ba]=bb}}else{if(bf&&D(bf)){a8=be.tuple(be.shuffle(aN.items(bf)))}else{if(bf&&aW(bf)){a8=be.shuffle(bf.split("")).join("")}else{if(O(bf)&&v(bf)){a9=((bf-0)<0)?"-":"";
bd=Math.abs(bf).toString().split(".");a8=be.shuffle(bd.shift());if(bd.length){a8+="."+be.shuffle(bd.pop())}a8=a8-0;if(a9){a8=-a8}}else{a8=bf}}}}return a8},fill:function(be,bd,bc){var a8=null,ba=arguments,bb,a9,bf;
if(ba.length===2){bc=bd;bd=be;switch(al(be)){case"string":be="";break;case"object":be=bd;bd=bc;bc=0;break;case"number":be=0;break;case"array":if(be.length===1){bd=be[0]
}be=[]}}if(v(bc)||D(be)){bb=Math.floor(bc-0);switch(al(be)){case"array":a8=a1(be);while(--bb>=0){a8[a8.length]=bd}break;case"string":a8=ag(be);bf=ag(bd);while(--bb>=0){a8+=bf
}break;case"object":a8={};a7(be,function(bh,bg){a8[bg]=bd});if(bb){a9=0;while(--bb>=0){a8[a9++]=bd}}break;case"number":a8=((be-0)||0).toString();bf=Math.floor(Math.abs((bd-0)||0)).toString();
while(--bb>=0){a8=bf+a8}a8=a8-0;break;default:a8=be}}return a8},implode:function(ba){var bk="",bf=[],bh,bj,a8,bi,bd,bg=arguments,be=bg.length,bc,a9,bb={delimiter:":",separator:","};
for(bc=0;bc<be;bc++){if(!a8&&D(bg[bc])){a8=bg[bc]}else{if(!bh&&aW(bg[bc])){bh=bg[bc]}else{if(!bj&&aW(bg[bc])){bj=bg[bc]}else{if(D(a8)&&aW(bh)&&aW(bj)){bi=bg[bc]}else{if(!a9&&D(a8)&&D(bg[bc])&&(bg[bc].delimiter||bg[bc].separator||bg[bc].tail)){a9=bg[bc];
bh=bh||ag(a9.delimiter,true);bj=bj||ag(a9.separator,true);bi=bi||a9.tail}}}}}}if(a8&&D(a8)){if(bh===bd){bh=bb.delimiter}if(bj===bd){bj=bb.separator}a7(a8,function(bl,bm){bf[bf.length]=bm+bh+ag(bl)
});bk=bf.join(bj);if(bi){bk+=aW(bi)?bi:bj}}return bk},explode:function(bd){var bi={},be=arguments,bf=be.length,bc,bg,a8,bh,a9,bb,ba={delimiter:":",separator:","};
for(a9=0;a9<bf;a9++){if(D(be[a9])&&(be[a9].delimiter||be[a9].separator)){bb=be[a9];a8=a8||bb.delimiter;bh=bh||bb.separator}else{if(!bg&&aW(be[a9])){bg=be[a9]}else{if(!a8&&(aW(be[a9])||aC(be[a9]))){a8=be[a9]
}else{if(!bh&&(aW(be[a9])||aC(be[a9]))){bh=be[a9]}}}}}bg=ag(bg);if(bg){if(a8===bc){a8=ba.delimiter}if(bh===bc){bh=ba.separator}a7(bg.split(bh),function(bl){var bm,bk,bj;
if(bl){bm=bl.split(a8);bj=bm.length;bk=0;do{bi[ag(bm[bk++],true)]=bm[bk++]}while(bk<bj)}})}return bi},glue:function(){var a9="",ba=arguments,a8,bb=aN.Collection.flatten;
switch(ba.length){case 0:break;case 1:a8=ba[0];if(b(a8)){a9=bb(a8).join("")}else{if(D(a8)||aD(a8)){a7(a8,function(bc){a9+=ag(bc)})}else{a9=ag(a8)}}break;default:a9=bb(a1(ba)).join("")
}return a9},clearObject:function(ba){var a9;if(ba){if(aD(ba)){a9=ba.length;while(--a9>=0){try{delete ba[a9]}catch(a8){}}try{ba.length=0}catch(a8){}}else{if(D(ba)){for(a9 in ba){try{delete ba[a9]
}catch(a8){}}}else{ba=null}}}return ba}});aN.update({invoke:aN.Struct.invoke,clone:aN.Struct.clone,bind:aN.Struct.bind,partial:aN.Struct.partial,keys:aN.Struct.keys,values:aN.Struct.values,tuple:aN.Struct.tuple,unzip:aN.Struct.unzip,pairs:aN.Struct.pairs,count:aN.Struct.count,first:aN.Struct.first,firstKey:aN.Struct.firstKey,last:aN.Struct.last,lastKey:aN.Struct.lastKey,contains:aN.Struct.contains,remove:aN.Struct.remove,removeAll:aN.Struct.removeAll,removeAt:aN.Struct.removeAt,equals:aN.Struct.equals,reverse:aN.Struct.reverse,flip:aN.Struct.flip,shuffle:aN.Struct.shuffle,fill:aN.Struct.fill,implode:aN.Struct.implode,explode:aN.Struct.explode,glue:aN.Struct.glue,clearObject:aN.Struct.clearObject});
aN.update({DateTime:function(a8){return +new Date(a8)}});I(aN.DateTime,{now:aS,time:function(){return Math.round(aS()/1000)},format:(function(){var a8=function(){};
I(a8,{TIMEZONE_MAPS:{GMT:0,UTC:0,WET:0,WAT:-1*3600,AT:-2*3600,NFT:-3*3600-1800,AST:-4*3600,EST:-5*3600,CST:-6*3600,MST:-7*3600,PST:-8*3600,YST:-9*3600,HST:-10*3600,CAT:-10*3600,AHST:-10*3600,NT:-11*3600,IDLW:-12*3600,CET:+1*3600,MET:+1*3600,MEWT:+1*3600,SWT:+1*3600,FWT:+1*3600,EET:+2*3600,BT:+3*3600,IT:+3*3600+1800,ZP4:+4*3600,ZP5:+5*3600,IST:+5*3600+1800,ZP6:+6*3600,SST:+7*3600,WAST:+7*3600,JT:+7*3600+1800,CCT:+8*3600,JST:+9*3600,CAST:+9*3600+1800,EAST:+10*3600,GST:+10*3600,NZT:+12*3600,NZST:+12*3600,IDLE:+12*3600},WEEK:{en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ja:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"]},MONTH:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],ja:["\u7766\u6708","\u5982\u6708","\u5f25\u751f","\u536f\u6708","\u7690\u6708","\u6c34\u7121\u6708","\u6587\u6708","\u8449\u6708","\u9577\u6708","\u795e\u7121\u6708","\u971c\u6708","\u5e2b\u8d70"]},DATE_SUFFIX:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],TRANSLATE_PATTERN:/(?:\\.|[a-zA-Z])/g});
a8.prototype=I(a8.prototype,{format:function(bd,ba){var bh="",bb=this,bg,bf,bc,a9,be;if(!aW(bd)){bg=bd;bd=ba;ba=bg}bf=ag(bd);if(k(ba)){bc=ba}else{if(v(ba)||(ba&&aW(ba))){bc=new Date(ba)
}else{bc=new Date()}}if(bf){a9={self:bc,year:bc.getFullYear(),month:bc.getMonth(),date:bc.getDate(),day:bc.getDay(),hours:bc.getHours(),minutes:bc.getMinutes(),seconds:bc.getSeconds(),mseconds:bc.getMilliseconds(),timezone:bc.getTimezoneOffset(),time:bc.getTime()};
be=function(bi){return bb.translate(bi,a9)};bh=bf.replace(a8.TRANSLATE_PATTERN,be)}return bh},translate:function(ba,a9){switch(ba.charAt(0)){case"\\":return ba.charAt(1);
case"A":return this.meridiem(a9.hours).toUpperCase();case"a":return this.meridiem(a9.hours);case"c":return this.format(aN.DateTime.format.ATOM);case"D":return a8.WEEK.en[a9.day].substr(0,3);
case"d":return this.padding(a9.date);case"F":return a8.MONTH.en[a9.month];case"G":return a9.hours;case"g":return this.to12Hour(a9.hours);case"H":return this.padding(a9.hours);
case"h":return this.padding(this.to12Hour(a9.hours));case"i":return this.padding(a9.minutes);case"J":return a8.WEEK.ja[a9.day];case"j":return a9.date;case"L":return String(this.isLeapYear(a9.year)?1:0);
case"l":return a8.WEEK.en[a9.day];case"M":return a8.MONTH.en[a9.month].substr(0,3);case"m":return this.padding(a9.month+1);case"N":return this.isoDay(a9.day);case"n":return a9.month+1;
case"o":return a8.MONTH.ja[a9.month];case"O":return this.getTimezone(a9.timezone);case"P":return this.getTimezone(a9.timezone,true);case"r":return this.format(aN.DateTime.format.RFC2822);
case"S":return a8.DATE_SUFFIX[a9.date-1];case"s":return this.padding(a9.seconds);case"T":return this.getTimezoneName(a9.timezone);case"t":return this.lastDayOfMonth(a9.self);
case"U":return Math.round(a9.time/1000);case"u":return this.padding(a9.mseconds,6);case"w":return a9.day;case"Y":return a9.year;case"y":return a9.year.toString().substr(2,2);
case"z":return this.countDate(a9.year,a9.month,a9.date);case"Z":return this.getTimezoneSec(a9.timezone);default:break}return ba},padding:function(be,ba,bc){var bb=String(be),a9=(ba||2)-0,bd=String(bc||0);
while(bb.length<a9){bb=bd+bb}return bb},to12Hour:function(a9){return(a9>12)?a9-12:a9},meridiem:function(a9){return(((a9-0)<12)?"a":"p")+"m"},isoDay:function(a9){return((a9-0)===0)?"7":a9
},lastDayOfMonth:function(a9){var ba=new Date(a9.getFullYear(),a9.getMonth()+1,1);ba.setTime(ba.getTime()-1);return ba.getDate()},isLeapYear:function(bb){var bc=new Date(bb,0,1),ba=0,a9;
for(a9=0;a9<12;a9++){bc.setMonth(a9);ba+=this.lastDayOfMonth(bc)}return ba!=365},countDate:function(bd,be,ba){var bf=new Date(bd,0,1),bc=-1,bb,a9=(be-0);for(bb=0;
bb<a9;bb++){bf.setMonth(bb);bc+=this.lastDayOfMonth(bf)}return bc+ba},getTimezone:function(bd,bb){var bc=(bd-0)||0,ba=Math.abs(bc),a9=(bc<0)?"+":"-";return[a9,this.padding(Math.floor(ba/60)),bb?":":"",this.padding(ba%60)].join("")
},getTimezoneSec:function(ba){var a9=(ba-0)||0;return((a9<0)?"":"-")+Math.abs(a9*60)},getTimezoneName:function(bc){var a9,ba,bb=a8.TIMEZONE_MAPS;def=bb[1],o=(bc-0)||0;
time=Math.floor(-o/60*3600);if(time===0){a9=def}else{for(ba in bb){if(bb[ba]===time){a9=ba;break}}}return a9||def}});return I(function(){var a9=new a8();return a9.format.apply(a9,arguments)
},{ATOM:"Y-m-d\\TH:i:sP",COOKIE:"l, d-M-y H:i:s T",ISO8601:"Y-m-d\\TH:i:sO",RFC822:"D, d M y H:i:s O",RFC850:"l, d-M-y H:i:s T",RFC1036:"D, d M y H:i:s O",RFC1123:"D, d M Y H:i:s O",RFC2822:"D, d M Y H:i:s O",RFC3339:"Y-m-d\\TH:i:sP",RSS:"D, d M Y H:i:s O",W3C:"Y-m-d\\TH:i:sP"})
}()),prettyDate:(function(){var a9=60,ba=60*a9,bb=24*ba,a8=7*bb,bc=4*a8,be=365*bb,bh=100*be,bf=/^j[ap]/i,bj={past:{en:"ago",ja:"\u524d"},future:{en:"from now",ja:"\u5f8c"}},bd={en:" ",ja:""},bg=[[a9,{en:"just now",ja:"\u305f\u3063\u305f\u4eca"},1],[2*a9,{en:"a minute "+bj.past.en,ja:"1\u5206"+bj.past.ja},{en:"a minute "+bj.future.en,ja:"1\u5206"+bj.future.ja}],[ba,{en:"minutes",ja:"\u5206"},a9],[2*ba,{en:"an hour "+bj.past.en,ja:"1\u6642\u9593"+bj.past.ja},{en:"an hour "+bj.future.en,ja:"1\u6642\u9593"+bj.future.ja}],[bb,{en:"hours",ja:"\u6642\u9593"},ba],[2*bb,{en:"yesterday",ja:"\u6628\u65e5"},{en:"tomorrow",ja:"\u660e\u65e5"}],[a8,{en:"days",ja:"\u65e5"},bb],[2*a8,{en:"last week",ja:"\u5148\u9031"},{en:"next week",ja:"\u6765\u9031"}],[bc,{en:"weeks",ja:"\u9031\u9593"},a8],[2*bc,{en:"last month",ja:"\u5148\u6708"},{en:"next month",ja:"\u6765\u6708"}],[be,{en:"months",ja:"\u30f6\u6708"},bc],[2*be,{en:"last year",ja:"\u53bb\u5e74"},{en:"next year",ja:"\u6765\u5e74"}],[bh,{en:"years",ja:"\u5e74"},be],[2*bh,{en:"last century",ja:"\u524d\u4e16\u7d00"},{en:"next century",ja:"\u6765\u4e16\u7d00"}],[Number.MAX_VALUE,{en:"centuries",ja:"\u4e16\u7d00"},bh]],bi=function(bl,bm){var bt="",br,bs,bq,bp,bn=0,bo,bk=bf.test(bm)?"ja":"en";
if(k(bl)){br=bl}else{if(v(bl)||(bl&&aW(bl))){br=new Date(bl)}else{br=new Date()}}bs=(new Date-br.getTime())/1000;if(bs<0){bs=Math.abs(bs);bq=bj.future[bk];bp=2}else{bq=bj.past[bk];
bp=1}while((bo=bg[bn++])){if(bs<bo[0]){if(D(bo[2])){bt=bo[bp][bk]}else{if(bn>1){bt=[Math.floor(bs/bo[2]),bo[1][bk],bq].join(bd[bk])}else{bt=bo[1][bk]}}break}}return bt
};a7(["en","ja"],function(bk){bi[bk]=function(bl){return bi(bl,bk)}});return bi}())});aN.update({time:aN.DateTime.time,date:aN.DateTime.format,prettyDate:aN.DateTime.prettyDate});
aN.update({Complex:{}});I(aN.Complex,{numeric:W,rand:I(function(ba,be){var bh=0,bb=arguments,bc=aN.Complex.rand,bg,a8,bf,a9,bd=false;if(!bc.getScale){bc.getScale=function(bi){var bj=".",bk=bi.toString();
return ~bk.indexOf(bj)?bk.split(bj).pop().length:0}}if(aW(ba)&&aW(be)){bd=true;ba=ba.charCodeAt(0);be=be.charCodeAt(0)}switch(bb.length){case 0:bf=2147483647;a8=~bf;
break;case 1:a8=0;bf=ba-0;break;default:a8=ba-0;bf=be-0}if(a8>bf){bg=bf;bf=a8;a8=bg}if(isNaN(a8)){if(isNaN(bf)){bh=0}else{bh=bf}}else{if(isNaN(bf)){if(isNaN(a8)){bh=0
}else{bh=a8}}else{if(!isFinite(a8)){if(isFinite(bf)){bh=bf}else{bh=0}}else{if(!isFinite(bf)){if(isFinite(a8)){bh=a8}else{bh=0}}else{a9=Math.max(bc.getScale(a8),bc.getScale(bf));
if(a9){bh=(Math.random()*(bf-a8)+a8).toFixed(a9)}else{bh=Math.floor(Math.random()*(bf-a8+1))+a8}}}}}if(bd){bh=g(bh)}else{bh=bh-0}return bh},(function(){var ba=at+aa,a9=ba+M;
function a8(bc,bb){return Math.floor(Math.random()*(bb-bc+1))+bc}return{alpha:I(function(be){var bd="",bf,bc,bb;bc=v(be)?be-0:1;if(bc>0){bf=[];bb=ba.length-1;while(--bc>=0){bf[bf.length]=ba.charAt(a8(0,bb))
}bd=bf.join("")}return bd},{lower:function(){return aN.Complex.rand.alpha.apply(null,arguments).toLowerCase()},upper:function(){return aN.Complex.rand.alpha.apply(null,arguments).toUpperCase()
}}),alnum:I(function(bf,be){var bd="",bc,bb,bg;bc=v(bf)?bf-0:1;if(bc>0){bg=[];bb=a9.length-1;if(be){bg[bg.length]=aN.Complex.rand.alpha(1);bc--}while(--bc>=0){bg[bg.length]=a9.charAt(a8(0,bb))