From e5f86ba61bacf4c84028d693a7d9d00eceb3b5f6 Mon Sep 17 00:00:00 2001 From: LethaK Maas Date: Thu, 8 Apr 2021 14:41:42 +0200 Subject: [PATCH] Tag: [v2021.4.43](https://github.com/lethak/LTKDIFMU-userscript/tree/v2021.4.43) All platforms: * Misc (VueJS): Fixed component inclusion to prevent webpack from injecting the DOM prior to the DOM existing at all. (issue #48) * Player (track download button): Fixed some edge cases preventing the download button from working as intended. (issue #50) * Player (track play): The ability to play a track from its hero or favorite page is now toggleable in the userscript's settings. It was previously forced on. * Player (track play): Implemented a new feature to always play a track from the beginning (toggleable). (issue #51) * Misc (js errors): Fixed some javascript errors triggered when using deprecated API values. di-only: * Navigation (UI): Fixed the "DIUserscript" menu entries & removed the "Go Premium" one (issue #52) * Player (volume input control): Fixed CSS since its now vertical instead of horizontal (issue #46). Its still slightly ugly but its working. --- DIUserscript.meta.js | 2 +- DIUserscript.user.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DIUserscript.meta.js b/DIUserscript.meta.js index bf43389..5504eb2 100644 --- a/DIUserscript.meta.js +++ b/DIUserscript.meta.js @@ -31,5 +31,5 @@ // @grant GM_download // @inject-into page // @run-at document-start -// @version 2020.10.660 +// @version 2021.4.43 // ==/UserScript== diff --git a/DIUserscript.user.js b/DIUserscript.user.js index 85d77e7..cef51a5 100644 --- a/DIUserscript.user.js +++ b/DIUserscript.user.js @@ -31,6 +31,6 @@ // @grant GM_download // @inject-into page // @run-at document-start -// @version 2020.10.660 +// @version 2021.4.43 // ==/UserScript== -!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=632)}([function(t,e,i){var n=i(4),r=i(37),o=i(23),a=i(24),s=i(33),c=function(t,e,i){var l,p,u,d,f=t&c.F,v=t&c.G,h=t&c.S,m=t&c.P,g=t&c.B,y=v?n:h?n[e]||(n[e]={}):(n[e]||{}).prototype,b=v?r:r[e]||(r[e]={}),x=b.prototype||(b.prototype={});for(l in v&&(i=e),i)u=((p=!f&&y&&void 0!==y[l])?y:i)[l],d=g&&p?s(u,n):m&&"function"==typeof u?s(Function.call,u):u,y&&a(y,l,u,t&c.U),b[l]!=u&&o(b,l,d),m&&x[l]!=u&&(x[l]=u)};n.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},function(t,e,i){var n=i(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){i.d(e,"factory",function(){return s});var n=Object.assign||function(t){for(var e=1;e=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return z(t).length;default:if(n)return R(t).length;e=(""+e).toLowerCase(),n=!0}}function h(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:g(t,e,i,n,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):g(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,i,n,r){var o,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,i/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var p=-1;for(o=i;os&&(i=s-c),o=i;o>=0;o--){for(var u=!0,d=0;dr&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function S(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:l>223?3:l>191?2:1;if(r+u<=i)switch(u){case 1:l<128&&(p=l);break;case 2:128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)>127&&(p=c);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(p=c);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(p=c)}null===p?(p=65533,u=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),r+=u}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var i="",n=0;for(;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return V(this,e,i);case"latin1":case"binary":return O(this,e,i);case"base64":return S(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,a=i-e,s=Math.min(o,a),l=this.slice(n,r),p=t.slice(e,i),u=0;ur)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return x(this,t,e,i);case"latin1":case"binary":return _(this,t,e,i);case"base64":return w(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function V(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,i,n,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function j(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function M(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function D(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function B(t,e,i,n,o){return o||D(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function L(t,e,i,n,o){return o||D(t,0,i,8),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||I(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);I(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);I(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return B(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return B(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return L(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return L(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function z(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace($,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(e,i(8))},function(t,e,i){var n=i(94)("wks"),r=i(59),o=i(4).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},function(t,e,i){t.exports=!i(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(2),r=i(176),o=i(41),a=Object.defineProperty;e.f=i(11)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(40),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e){t.exports=["El5Bp82l6PYrhs+cyj9AaUsa7SkyBF8y+xR0AcXyjVDbkio=","xeZRiE6KkE9VC86DaHLsQMzAxzuwINpHlH83kedzh4Ym38Cf","c2PMceerX1ZxzXs38Vgr2JMzqGgtYAzEdEl8Ehi0","YXJe3FK0h64jdjAhXy80+Y1poL//HhV4V8wbwq71ucY=","jlriVG3G+l0sVhYxtm4fM5aGbuIbdC5JM0g38yA6gauw9psH7MiOFLc=","XJMG47Z1klx+M7KyJmuBxKvP74uIgDOb0c9h0wABHFMbWg==","q4nlWLauXGNtyoshyDaTE0uqj/Qdq0AsV+RKmKG35NIM48KCBzU/O0y5og==","C9I555ue+/trSgfQmY2dzZappwUnLZHQM98vy0tLm4vEKFTlVKyClw+0Amk=","GjvgF+9RwKJfr30ENL/KVlS+gwG3S/olIB31Xt+2ownAOQmw1runKA==","u+mOb2h1H4rGvM3qmLwlpNt2QoA2bNGLTUxQdk0YIEfUJ3KZREvY6A==","eqPeksZiUAb87JU9KP/aSFxgVlzLX46MGLOsIKRc+6k=","/DktA+LsN3E8huvLkpxcQury38ed42ETw/IA9eBTLheWsg==","wtDTFg77AGipE/1NPJu+kRNBg81SXvZOIXsQPp9VGnYV","0JOFQW0zjDw+OFwikDMgh5XL78aWPBfcacMD2SlyWqdGCXg0Cs4=","D3put+uh2hbgLocFIzBB7UXxeNk656N7N2Vcf4duT0NumW/Wbw==","z5njR4YgSho0h3ZS6fsooNPx6rWckw==","PQqJWwjSSyhsEs0Uj3QfGHAmZCuXxTenXQ2Hk0/xQ0QZ0KNFCM26Zg==","JZ6tKcoHUvhFtUPI1VtvwWqf5cpt71k0P/cc5A==","Zu68fFahuCzLVLLk+m/gcxKJf0PTD7QySbjbOzcS7dLK0onPCEpfNWBNkh8=","OFiKVOMvMLlUXtCdc8zJe5FBH7wQzUcD9jTbrF0ncd15i8Lkhw=="]},function(t,e,i){(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=this,o=arguments;function a(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var s=i(229),c=i(577),l=i(244),p=i(154),u=i(243),d=i(238),f={isDevtoolOpen:function(){var t=void 0,e=new Audio;return Object.defineProperty(e,"id",{get:function(){return t=!0,null}}),t=!1,console.debug(e),t},getString:function(e){return t.exports.aes.decrypt(u[e])},defineProp:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{return delete t[e],Object.defineProperty(t,e,{value:i,writable:n,enumerable:!0,configurable:!1}),t}catch(t){console.error("DIU CAUGHT ERROR while using tools.defineProp : ",t)}return null},jsVar:function(t,i,n){void 0===i&&(i=e),void 0===n&&(n=!1);var r=t.split(".");if(r.length<=0)return console.error("jsVar: invalid given varPath ( "+String(t)+" ) resulting in invalid splitPath:",r),!n&&void 0;for(var o=i;r.length>0;){var a=r.shift();if(void 0===o[a])return!n&&void 0;o=o[a]}return!!n||o},jsVarEnc:function(i,n,r,o){void 0===n&&(n=e),void 0===r&&(r=!1);var a=t.exports.aes.decrypt(i,o);return t.exports.jsVar(a,n,r)},jsVarEncByIndex:function(i,n,r){return void 0===n&&(n=e),void 0===r&&(r=!1),t.exports.jsVarEnc(p[i],n,r)},rand:function(t,e){return Math.round(Math.random()*(e-t)+t)},stringToHtmlCode:function(t){for(var e=[],i=void 0,n=0;n=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(t,e,i,n){for(var r=0,o=Math.min(t.length,i),a=e;a=49?s-49+10:s>=17?s-17+10:s}return r}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(r=0,o=0;r>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=6)r=s(t,i,i+6),this.words[n]|=r<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=s(t,e,i+6),this.words[n]|=r<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=e)n++;n--,r=r/e|0;for(var o=t.length-i,a=o%n,s=Math.min(o,o-a)+i,l=0,p=i;p1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,i){i.negative=e.negative^t.negative;var n=t.length+e.length|0;i.length=n,n=n-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,c=a/67108864|0;i.words[0]=s;for(var l=1;l>>26,u=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var v=l-f|0;p+=(a=(r=0|t.words[v])*(o=0|e.words[f])+u)/67108864|0,u=67108863&a}i.words[l]=0|u,c=0|p}return 0!==c?i.words[l]=0|c:i.length--,i.strip()}o.prototype.toString=function(t,e){var i;if(t=t||10,e=0|e||1,16===t||"hex"===t){i="";for(var r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?l[6-c.length]+c+i:c+i,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var d=p[t],f=u[t];i="";var v=this.clone();for(v.negative=0;!v.isZero();){var h=v.modn(f).toString(t);i=(v=v.idivn(f)).isZero()?h+i:l[d-h.length]+h+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var r=this.byteLength(),o=i||Math.max(1,r);n(r<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===e,l=new t(o),p=this.clone();if(c){for(s=0;!p.isZero();s++)a=p.andln(255),p.iushrn(8),l[s]=a;for(;s=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var i=t/26|0,r=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,n=t):(i=t,n=this);for(var r=0,o=0;o>>26;for(;0!==r&&o>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=t):(i=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],v=8191&f,h=f>>>13,m=0|a[2],g=8191&m,y=m>>>13,b=0|a[3],x=8191&b,_=b>>>13,w=0|a[4],k=8191&w,S=w>>>13,C=0|a[5],T=8191&C,V=C>>>13,O=0|a[6],A=8191&O,P=O>>>13,E=0|a[7],I=8191&E,j=E>>>13,M=0|a[8],D=8191&M,B=M>>>13,L=0|a[9],$=8191&L,N=L>>>13,R=0|s[0],z=8191&R,F=R>>>13,H=0|s[1],U=8191&H,q=H>>>13,W=0|s[2],Y=8191&W,G=W>>>13,X=0|s[3],K=8191&X,Z=X>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],it=8191&et,nt=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ct=8191&st,lt=st>>>13,pt=0|s[8],ut=8191&pt,dt=pt>>>13,ft=0|s[9],vt=8191&ft,ht=ft>>>13;i.negative=t.negative^e.negative,i.length=19;var mt=(l+(n=Math.imul(u,z))|0)+((8191&(r=(r=Math.imul(u,F))+Math.imul(d,z)|0))<<13)|0;l=((o=Math.imul(d,F))+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(v,z),r=(r=Math.imul(v,F))+Math.imul(h,z)|0,o=Math.imul(h,F);var gt=(l+(n=n+Math.imul(u,U)|0)|0)+((8191&(r=(r=r+Math.imul(u,q)|0)+Math.imul(d,U)|0))<<13)|0;l=((o=o+Math.imul(d,q)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,z),r=(r=Math.imul(g,F))+Math.imul(y,z)|0,o=Math.imul(y,F),n=n+Math.imul(v,U)|0,r=(r=r+Math.imul(v,q)|0)+Math.imul(h,U)|0,o=o+Math.imul(h,q)|0;var yt=(l+(n=n+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,G)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,z),r=(r=Math.imul(x,F))+Math.imul(_,z)|0,o=Math.imul(_,F),n=n+Math.imul(g,U)|0,r=(r=r+Math.imul(g,q)|0)+Math.imul(y,U)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,G)|0)+Math.imul(h,Y)|0,o=o+Math.imul(h,G)|0;var bt=(l+(n=n+Math.imul(u,K)|0)|0)+((8191&(r=(r=r+Math.imul(u,Z)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Z)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,z),r=(r=Math.imul(k,F))+Math.imul(S,z)|0,o=Math.imul(S,F),n=n+Math.imul(x,U)|0,r=(r=r+Math.imul(x,q)|0)+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(g,Y)|0,r=(r=r+Math.imul(g,G)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(v,K)|0,r=(r=r+Math.imul(v,Z)|0)+Math.imul(h,K)|0,o=o+Math.imul(h,Z)|0;var xt=(l+(n=n+Math.imul(u,Q)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,z),r=(r=Math.imul(T,F))+Math.imul(V,z)|0,o=Math.imul(V,F),n=n+Math.imul(k,U)|0,r=(r=r+Math.imul(k,q)|0)+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(x,Y)|0,r=(r=r+Math.imul(x,G)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(g,K)|0,r=(r=r+Math.imul(g,Z)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(v,Q)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(h,Q)|0,o=o+Math.imul(h,tt)|0;var _t=(l+(n=n+Math.imul(u,it)|0)|0)+((8191&(r=(r=r+Math.imul(u,nt)|0)+Math.imul(d,it)|0))<<13)|0;l=((o=o+Math.imul(d,nt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(A,z),r=(r=Math.imul(A,F))+Math.imul(P,z)|0,o=Math.imul(P,F),n=n+Math.imul(T,U)|0,r=(r=r+Math.imul(T,q)|0)+Math.imul(V,U)|0,o=o+Math.imul(V,q)|0,n=n+Math.imul(k,Y)|0,r=(r=r+Math.imul(k,G)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(x,K)|0,r=(r=r+Math.imul(x,Z)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(g,Q)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(v,it)|0,r=(r=r+Math.imul(v,nt)|0)+Math.imul(h,it)|0,o=o+Math.imul(h,nt)|0;var wt=(l+(n=n+Math.imul(u,ot)|0)|0)+((8191&(r=(r=r+Math.imul(u,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(I,z),r=(r=Math.imul(I,F))+Math.imul(j,z)|0,o=Math.imul(j,F),n=n+Math.imul(A,U)|0,r=(r=r+Math.imul(A,q)|0)+Math.imul(P,U)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(T,Y)|0,r=(r=r+Math.imul(T,G)|0)+Math.imul(V,Y)|0,o=o+Math.imul(V,G)|0,n=n+Math.imul(k,K)|0,r=(r=r+Math.imul(k,Z)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(x,Q)|0,r=(r=r+Math.imul(x,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,it)|0,r=(r=r+Math.imul(g,nt)|0)+Math.imul(y,it)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(v,ot)|0,r=(r=r+Math.imul(v,at)|0)+Math.imul(h,ot)|0,o=o+Math.imul(h,at)|0;var kt=(l+(n=n+Math.imul(u,ct)|0)|0)+((8191&(r=(r=r+Math.imul(u,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,z),r=(r=Math.imul(D,F))+Math.imul(B,z)|0,o=Math.imul(B,F),n=n+Math.imul(I,U)|0,r=(r=r+Math.imul(I,q)|0)+Math.imul(j,U)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(A,Y)|0,r=(r=r+Math.imul(A,G)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(T,K)|0,r=(r=r+Math.imul(T,Z)|0)+Math.imul(V,K)|0,o=o+Math.imul(V,Z)|0,n=n+Math.imul(k,Q)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(x,it)|0,r=(r=r+Math.imul(x,nt)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,r=(r=r+Math.imul(g,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(v,ct)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(h,ct)|0,o=o+Math.imul(h,lt)|0;var St=(l+(n=n+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul($,z),r=(r=Math.imul($,F))+Math.imul(N,z)|0,o=Math.imul(N,F),n=n+Math.imul(D,U)|0,r=(r=r+Math.imul(D,q)|0)+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,G)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(A,K)|0,r=(r=r+Math.imul(A,Z)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(T,Q)|0,r=(r=r+Math.imul(T,tt)|0)+Math.imul(V,Q)|0,o=o+Math.imul(V,tt)|0,n=n+Math.imul(k,it)|0,r=(r=r+Math.imul(k,nt)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(x,ot)|0,r=(r=r+Math.imul(x,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,lt)|0)+Math.imul(y,ct)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(v,ut)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(h,ut)|0,o=o+Math.imul(h,dt)|0;var Ct=(l+(n=n+Math.imul(u,vt)|0)|0)+((8191&(r=(r=r+Math.imul(u,ht)|0)+Math.imul(d,vt)|0))<<13)|0;l=((o=o+Math.imul(d,ht)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul($,U),r=(r=Math.imul($,q))+Math.imul(N,U)|0,o=Math.imul(N,q),n=n+Math.imul(D,Y)|0,r=(r=r+Math.imul(D,G)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(I,K)|0,r=(r=r+Math.imul(I,Z)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(A,Q)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(T,it)|0,r=(r=r+Math.imul(T,nt)|0)+Math.imul(V,it)|0,o=o+Math.imul(V,nt)|0,n=n+Math.imul(k,ot)|0,r=(r=r+Math.imul(k,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(x,ct)|0,r=(r=r+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,lt)|0,n=n+Math.imul(g,ut)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,dt)|0;var Tt=(l+(n=n+Math.imul(v,vt)|0)|0)+((8191&(r=(r=r+Math.imul(v,ht)|0)+Math.imul(h,vt)|0))<<13)|0;l=((o=o+Math.imul(h,ht)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul($,Y),r=(r=Math.imul($,G))+Math.imul(N,Y)|0,o=Math.imul(N,G),n=n+Math.imul(D,K)|0,r=(r=r+Math.imul(D,Z)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(A,it)|0,r=(r=r+Math.imul(A,nt)|0)+Math.imul(P,it)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(T,ot)|0,r=(r=r+Math.imul(T,at)|0)+Math.imul(V,ot)|0,o=o+Math.imul(V,at)|0,n=n+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,lt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,lt)|0,n=n+Math.imul(x,ut)|0,r=(r=r+Math.imul(x,dt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,dt)|0;var Vt=(l+(n=n+Math.imul(g,vt)|0)|0)+((8191&(r=(r=r+Math.imul(g,ht)|0)+Math.imul(y,vt)|0))<<13)|0;l=((o=o+Math.imul(y,ht)|0)+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,n=Math.imul($,K),r=(r=Math.imul($,Z))+Math.imul(N,K)|0,o=Math.imul(N,Z),n=n+Math.imul(D,Q)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(I,it)|0,r=(r=r+Math.imul(I,nt)|0)+Math.imul(j,it)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(A,ot)|0,r=(r=r+Math.imul(A,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,n=n+Math.imul(T,ct)|0,r=(r=r+Math.imul(T,lt)|0)+Math.imul(V,ct)|0,o=o+Math.imul(V,lt)|0,n=n+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,dt)|0;var Ot=(l+(n=n+Math.imul(x,vt)|0)|0)+((8191&(r=(r=r+Math.imul(x,ht)|0)+Math.imul(_,vt)|0))<<13)|0;l=((o=o+Math.imul(_,ht)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul($,Q),r=(r=Math.imul($,tt))+Math.imul(N,Q)|0,o=Math.imul(N,tt),n=n+Math.imul(D,it)|0,r=(r=r+Math.imul(D,nt)|0)+Math.imul(B,it)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(I,ot)|0,r=(r=r+Math.imul(I,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,lt)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,lt)|0,n=n+Math.imul(T,ut)|0,r=(r=r+Math.imul(T,dt)|0)+Math.imul(V,ut)|0,o=o+Math.imul(V,dt)|0;var At=(l+(n=n+Math.imul(k,vt)|0)|0)+((8191&(r=(r=r+Math.imul(k,ht)|0)+Math.imul(S,vt)|0))<<13)|0;l=((o=o+Math.imul(S,ht)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul($,it),r=(r=Math.imul($,nt))+Math.imul(N,it)|0,o=Math.imul(N,nt),n=n+Math.imul(D,ot)|0,r=(r=r+Math.imul(D,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,lt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,lt)|0,n=n+Math.imul(A,ut)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(T,vt)|0)|0)+((8191&(r=(r=r+Math.imul(T,ht)|0)+Math.imul(V,vt)|0))<<13)|0;l=((o=o+Math.imul(V,ht)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul($,ot),r=(r=Math.imul($,at))+Math.imul(N,ot)|0,o=Math.imul(N,at),n=n+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(I,ut)|0,r=(r=r+Math.imul(I,dt)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,dt)|0;var Et=(l+(n=n+Math.imul(A,vt)|0)|0)+((8191&(r=(r=r+Math.imul(A,ht)|0)+Math.imul(P,vt)|0))<<13)|0;l=((o=o+Math.imul(P,ht)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,ct),r=(r=Math.imul($,lt))+Math.imul(N,ct)|0,o=Math.imul(N,lt),n=n+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,dt)|0;var It=(l+(n=n+Math.imul(I,vt)|0)|0)+((8191&(r=(r=r+Math.imul(I,ht)|0)+Math.imul(j,vt)|0))<<13)|0;l=((o=o+Math.imul(j,ht)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul($,ut),r=(r=Math.imul($,dt))+Math.imul(N,ut)|0,o=Math.imul(N,dt);var jt=(l+(n=n+Math.imul(D,vt)|0)|0)+((8191&(r=(r=r+Math.imul(D,ht)|0)+Math.imul(B,vt)|0))<<13)|0;l=((o=o+Math.imul(B,ht)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Mt=(l+(n=Math.imul($,vt))|0)+((8191&(r=(r=Math.imul($,ht))+Math.imul(N,vt)|0))<<13)|0;return l=((o=Math.imul(N,ht))+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,c[0]=mt,c[1]=gt,c[2]=yt,c[3]=bt,c[4]=xt,c[5]=_t,c[6]=wt,c[7]=kt,c[8]=St,c[9]=Ct,c[10]=Tt,c[11]=Vt,c[12]=Ot,c[13]=At,c[14]=Pt,c[15]=Et,c[16]=It,c[17]=jt,c[18]=Mt,0!==l&&(c[19]=l,i.length++),i};function v(t,e,i){return(new h).mulp(t,e,i)}function h(t,e){this.x=t,this.y=e}Math.imul||(f=d),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):i<63?d(this,t,e):i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var n=0,r=0,o=0;o>>26)|0)>>>26,a&=67108863}i.words[o]=s,n=a,a=r}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,t,e):v(this,t,e)},h.prototype.makeRBT=function(t){for(var e=new Array(t),i=o.prototype._countBits(t)-1,n=0;n>=1;return n},h.prototype.permute=function(t,e,i,n,r,o){for(var a=0;a>>=1)r++;return 1<>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new o(1);for(var i=this,n=0;n=0);var e,i=t%26,r=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(e=0;e>>26-i}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==p||l>=r);l--){var u=0|this.words[l];this.words[l]=p<<26-o|u>>>o,p=u&s}return c&&0!==p&&(c.words[c.length++]=p),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return n(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,r=1<=0);var e=t%26,i=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var r=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[r+i]=67108863&o}for(;r>26,this.words[r+i]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,r=0;r>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=(this.length,t.length),n=this.clone(),r=t,a=0|r.words[r.length-1];0!==(i=26-this._countBits(a))&&(r=r.ushln(i),n.iushln(i),a=0|r.words[r.length-1]);var s,c=n.length-r.length;if("mod"!==e){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;u--){var d=67108864*(0|n.words[r.length+u])+(0|n.words[r.length+u-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(r,d,u);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(r,1,u),n.isZero()||(n.negative^=1);s&&(s.words[u]=d)}return s&&s.strip(),n.strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,i){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),r=t.andln(1),o=i.cmp(n);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;r>=0;r--)i=(e*i+(0|this.words[r]))%t;return i},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++l;for(var p=i.clone(),u=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(p),a.isub(u)),r.iushrn(1),a.iushrn(1);for(var v=0,h=1;0==(i.words[0]&h)&&v<26;++v,h<<=1);if(v>0)for(i.iushrn(v);v-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(p),c.isub(u)),s.iushrn(1),c.iushrn(1);e.cmp(i)>=0?(e.isub(i),r.isub(s),a.isub(c)):(i.isub(e),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:i.iushln(l)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,a=new o(1),s=new o(0),c=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,p=1;0==(e.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(i)>=0?(e.isub(i),a.isub(s)):(i.isub(e),s.isub(a))}return(r=0===e.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var n=0;e.isEven()&&i.isEven();n++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=e.cmp(i);if(r<0){var o=e;e=i,i=o}else if(0===r||0===i.cmpn(1))break;e.isub(i)}return i.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,i=(t-e)/26,r=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),n(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;i--){var n=0|this.words[i],r=0|t.words[i];if(n!==r){nr&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new w(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?i.isub(this.p):i.strip(),i},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},r(y,g),y.prototype.split=function(t,e){for(var i=Math.min(t.length,9),n=0;n>>22,r=o}r>>>=22,t.words[n-10]=r,0===r&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=r,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(m[t])return m[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new b;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},w.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new o(2*p*p).toRed(this);0!==this.pow(p,l).cmp(c);)p.redIAdd(c);for(var u=this.pow(p,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),v=a;0!==f.cmp(s);){for(var h=f,m=0;0!==h.cmp(s);m++)h=h.redSqr();n(m=0;n--){for(var l=e.words[n],p=c-1;p>=0;p--){var u=l>>p&1;r!==i[0]&&(r=this.sqr(r)),0!==u||0!==a?(a<<=1,a|=u,(4===++s||0===n&&0===p)&&(r=this.mul(r,i[a]),s=0,a=0)):s=0}c=26}return r},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},r(k,w),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var i=t.mul(e),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}).call(e,i(628)(t))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=this;function o(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var a=i(15),s=i(242),c=i(239),l=i(241),p=i(3).factory(function(){return o(this,r),"DIUserscript :: busHelper"}.bind(this)),u=function(t,e){return o(this,r),void 0!==t&&null!==t||p.error("getIdentifier 'index' value is null(Object) or undefined : typeof = "+(void 0===t?"undefined":n(t))),a.aes.decrypt(e[t])}.bind(this),d={req:{},cmd:{}},f={event:{}},v={req:{id:function(t){return"string"==typeof t?t:u(t,s)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(5,t)},get _(){return a.jsVarEncByIndex(4,t)},getOrigCallback:function(t){return d.req[t]},getCallback:function(t){var e=this.value(t);return void 0===e?(p.error("req.getCallback value with index "+t+" is undefined [error compensated]"),e={callback:function(){}}):void 0===e.callback&&(p.error("req.getCallback with index "+t+" has an undefined callback [error compensated]"),e.callback=function(){}),e.callback},setCallback:function(t,e){d.req[t]||(d.req[t]=v.req.getCallback(t));var i=this.value(t);void 0!==i&&null!==i||(p.error("req.setCallback obj value with index "+t+" is undefined [error compensated]"),i={}),a.defineProp(i,"callback",e)},do:function(t,e){return arguments[0]=this.id(t),p.debug("req "+arguments[0],arguments),this._.request.apply(this._,arguments)}},cmd:{id:function(t){return"string"==typeof t?t:u(t,c)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(7,t)},get _(){return a.jsVarEncByIndex(6,t)},getOrigCallback:function(t){return d.cmd[t]},getCallback:function(t){var e=this.value(t);return void 0===e?(p.error("cmd.getCallback value with index "+t+" is undefined [error compensated]"),e={callback:function(){}}):void 0===e.callback&&(p.error("cmd.getCallback with index "+t+" has an undefined callback [error compensated]"),e.callback=function(){}),e.callback},setCallback:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d.cmd[t]||(d.cmd[t]=v.cmd.getCallback(t));var n=this.value(t);void 0!==n&&null!==n||(p.error("cmd.setCallback obj value with index "+t+" is undefined [error compensated]"),n={}),a.defineProp(n,"callback",e,i)},do:function(t,e){return arguments[0]=this.id(t),p.debug("cmd "+arguments[0],arguments),this._.execute.apply(this._,arguments)}},event:{id:function(t){return"string"==typeof t?t:u(t,l)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(3,t)},get _(){return a.jsVarEncByIndex(2,t)},on:function(t,e){return this._.on(this.id(t),e)},off:function(t,e){return this._.off(this.id(t),e)},trigger:function(t,e){return arguments[0]=this.id(t),p.debug("event "+arguments[0],arguments),this._.trigger.apply(this._,arguments)},clear:function(t){var e=this.value(t);f.event[""+t]=[];var i=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;f.event[""+t].push(s)}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return e.length=0,e},restore:function(t){var e=this.value(t);if(e.length=0,f.event[""+t]){var i=!0,n=!1,r=void 0;try{for(var o,a=f.event[""+t][Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;e.push(s)}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}f.event[""+t].length=0}return e}}};e.default=v}.call(e,i(8))},function(t,e,i){var n=i(38);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(61)(i(279),null,null,null);t.exports=n.exports},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){"use strict";var n=e;n.version=i(552).version,n.utils=i(551),n.rand=i(159),n.curve=i(98),n.curves=i(543),n.ec=i(544),n.eddsa=i(547)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(12),r=i(55);t.exports=i(11)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(4),r=i(23),o=i(22),a=i(59)("src"),s=Function.toString,c=(""+s).split("toString");i(37).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,i,s){var l="function"==typeof i;l&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(l&&(o(i,a)||r(i,a,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,i){var n=i(0),r=i(5),o=i(38),a=/"/g,s=function(t,e,i,n){var r=String(o(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,i){var n=Object.freeze({});function r(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function p(t){return"[object Object]"===l.call(t)}function u(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r-1)return t.splice(i,1)}}var x=Object.prototype.hasOwnProperty;function _(t,e){return x.call(t,e)}function w(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}var k=/-(\w)/g,S=w(function(t){return t.replace(k,function(t,e){return e?e.toUpperCase():""})}),C=w(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),T=/\B([A-Z])/g,V=w(function(t){return t.replace(T,"-$1").toLowerCase()});var O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i};function A(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function P(t,e){for(var i in e)t[i]=e[i];return t}function E(t){for(var e={},i=0;i0,tt=Z&&Z.indexOf("edge/")>0,et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===K),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),nt={}.watch,rt=!1;if(G)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===W&&(W=!G&&!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),W},st=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"==typeof t&&/native code/.test(t.toString())}var lt,pt="undefined"!=typeof Symbol&&ct(Symbol)&&"undefined"!=typeof Reflect&&ct(Reflect.ownKeys);lt="undefined"!=typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=I,dt=0,ft=function(){this.id=dt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){b(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){var t=this.subs.slice();for(var e=0,i=t.length;e-1)if(o&&!_(r,"default"))a=!1;else if(""===a||a===V(t)){var c=Ht(String,r.type);(c<0||s0&&(de((l=t(l,(i||"")+"_"+c))[0])&&de(u)&&(n[p]=xt(u.text+l[0].text),l.shift()),n.push.apply(n,l)):s(l)?de(u)?n[p]=xt(u.text+l):""!==l&&n.push(xt(l)):de(l)&&de(u)?n[p]=xt(u.text+l.text):(a(e._isVList)&&o(l.tag)&&r(l.key)&&o(i)&&(l.key="__vlist"+i+"_"+c+"__"),n.push(l)));return n}(t):void 0}function de(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var i=Object.create(null),n=pt?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&i&&i!==n&&s===i.$key&&!o&&!i.$hasNormal)return i;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=ge(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=ye(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",a),U(r,"$key",s),U(r,"$hasNormal",o),r}function ge(t,e,i){var n=function(){var t=arguments.length?i.apply(null,arguments):i({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return i.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ye(t,e){return function(){return t[e]}}function be(t,e){var i,n,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(i=new Array(t.length),n=0,r=t.length;ndocument.createEvent("Event").timeStamp&&(ui=function(){return di.now()})}function fi(){var t,e;for(pi=ui(),ci=!0,ri.sort(function(t,e){return t.id-e.id}),li=0;lili&&ri[i].id>t.id;)i--;ri.splice(i+1,0,t)}else ri.push(t);si||(si=!0,ne(fi))}}(this)},hi.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hi.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hi.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hi.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mi={enumerable:!0,configurable:!0,get:I,set:I};function gi(t,e,i){mi.get=function(){return this[e][i]},mi.set=function(t){this[e][i]=t},Object.defineProperty(t,i,mi)}function yi(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},n=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){r.push(o);var a=Rt(o,e,i,t);At(n,o,a),o in t||gi(t,"_props",o)};for(var s in e)a(s);Tt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var i in e)t[i]="function"!=typeof e[i]?I:O(e[i],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;p(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{mt()}}(e,t):e||{})||(e={});var i=Object.keys(e),n=t.$options.props,r=(t.$options.methods,i.length);for(;r--;){var o=i[r];0,n&&_(n,o)||H(o)||gi(t,"_data",o)}Ot(e,!0)}(t):Ot(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),n=at();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;0,n||(i[r]=new hi(t,a||I,I,bi)),r in t||xi(t,r,o)}}(t,e.computed),e.watch&&e.watch!==nt&&function(t,e){for(var i in e){var n=e[i];if(Array.isArray(n))for(var r=0;r-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!u(t)&&t.test(e)}function Pi(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var a=i[o];if(a){var s=Oi(a.componentOptions);s&&!e(s)&&Ei(i,o,n,r)}}}function Ei(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,b(i,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Si++,e._isVue=!0,t&&t._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=$t(Ci(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=ve(e._renderChildren,r),t.$scopedSlots=n,t._c=function(e,i,n,r){return He(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return He(t,e,i,n,r,!0)};var o=i&&i.data;At(t,"$attrs",o&&o.attrs||n,null,!0),At(t,"$listeners",e._parentListeners||n,null,!0)}(e),ni(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach(function(i){At(t,i,e[i])}),Tt(!0))}(e),yi(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),ni(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Ti),function(t){var e={get:function(){return this._data}},i={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=Pt,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,i){if(p(e))return ki(this,t,e,i);(i=i||{}).user=!0;var n=new hi(this,t,e,i);if(i.immediate)try{e.call(this,n.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(Ti),function(t){var e=/^hook:/;t.prototype.$on=function(t,i){var n=this;if(Array.isArray(t))for(var r=0,o=t.length;r1?A(i):i;for(var n=A(arguments,1),r='event handler for "'+t+'"',o=0,a=i.length;oparseInt(this.max)&&Ei(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:P,mergeOptions:$t,defineReactive:At},t.set=Pt,t.delete=Et,t.nextTick=ne,t.observable=function(t){return Ot(t),t},t.options=Object.create(null),N.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,P(t.options.components,ji),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=A(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=$t(this.options,t),this}}(t),Vi(t),function(t){N.forEach(function(e){t[e]=function(t,i){return i?("component"===e&&p(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}(t)}(Ti),Object.defineProperty(Ti.prototype,"$isServer",{get:at}),Object.defineProperty(Ti.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ti,"FunctionalRenderContext",{value:Me}),Ti.version="2.6.12";var Mi=m("style,class"),Di=m("input,textarea,option,select,progress"),Bi=function(t,e,i){return"value"===i&&Di(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Li=m("contenteditable,draggable,spellcheck"),$i=m("events,caret,typing,plaintext-only"),Ni=function(t,e){return Ui(e)||"false"===e?"false":"contenteditable"===t&&$i(e)?e:"true"},Ri=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zi="http://www.w3.org/1999/xlink",Fi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Hi=function(t){return Fi(t)?t.slice(6,t.length):""},Ui=function(t){return null==t||!1===t};function qi(t){for(var e=t.data,i=t,n=t;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Wi(n.data,e));for(;o(i=i.parent);)i&&i.data&&(e=Wi(e,i.data));return function(t,e){if(o(t)||o(e))return Yi(t,Gi(e));return""}(e.staticClass,e.class)}function Wi(t,e){return{staticClass:Yi(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Yi(t,e){return t?e?t+" "+e:t:e||""}function Gi(t){return Array.isArray(t)?function(t){for(var e,i="",n=0,r=t.length;n-1?xn(t,e,i):Ri(e)?Ui(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Li(e)?t.setAttribute(e,Ni(e,i)):Fi(e)?Ui(i)?t.removeAttributeNS(zi,Hi(e)):t.setAttributeNS(zi,e,i):xn(t,e,i)}function xn(t,e,i){if(Ui(i))t.removeAttribute(e);else{if(J&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}var _n={create:yn,update:yn};function wn(t,e){var i=e.elm,n=e.data,a=t.data;if(!(r(n.staticClass)&&r(n.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=qi(e),c=i._transitionClasses;o(c)&&(s=Yi(s,Gi(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var kn,Sn,Cn,Tn,Vn,On,An={create:wn,update:wn},Pn=/[\w).+\-_$\]]/;function En(t){var e,i,n,r,o,a=!1,s=!1,c=!1,l=!1,p=0,u=0,d=0,f=0;for(n=0;n=0&&" "===(h=t.charAt(v));v--);h&&Pn.test(h)||(l=!0)}}else void 0===r?(f=n+1,r=t.slice(0,n).trim()):m();function m(){(o||(o=[])).push(t.slice(f,n).trim()),f=n+1}if(void 0===r?r=t.slice(0,n).trim():0!==f&&m(),o)for(n=0;n-1?{exp:t.slice(0,Tn),key:'"'+t.slice(Tn+1)+'"'}:{exp:t,key:null};Sn=t,Tn=Vn=On=0;for(;!Xn();)Kn(Cn=Gn())?Jn(Cn):91===Cn&&Zn(Cn);return{exp:t.slice(0,Vn),key:t.slice(Vn+1,On)}}(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function Gn(){return Sn.charCodeAt(++Tn)}function Xn(){return Tn>=kn}function Kn(t){return 34===t||39===t}function Zn(t){var e=1;for(Vn=Tn;!Xn();)if(Kn(t=Gn()))Jn(t);else if(91===t&&e++,93===t&&e--,0===e){On=Tn;break}}function Jn(t){for(var e=t;!Xn()&&(t=Gn())!==e;);}var Qn,tr="__r",er="__c";function ir(t,e,i){var n=Qn;return function r(){null!==e.apply(null,arguments)&&or(t,r,i,n)}}var nr=Xt&&!(it&&Number(it[1])<=53);function rr(t,e,i,n){if(nr){var r=pi,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Qn.addEventListener(t,e,rt?{capture:i,passive:n}:i)}function or(t,e,i,n){(n||Qn).removeEventListener(t,e._wrapper||e,i)}function ar(t,e){if(!r(t.data.on)||!r(e.data.on)){var i=e.data.on||{},n=t.data.on||{};Qn=e.elm,function(t){if(o(t[tr])){var e=J?"change":"input";t[e]=[].concat(t[tr],t[e]||[]),delete t[tr]}o(t[er])&&(t.change=[].concat(t[er],t.change||[]),delete t[er])}(i),ce(i,n,rr,or,ir,e.context),Qn=void 0}}var sr,cr={create:ar,update:ar};function lr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var i,n,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(i in o(c.__ob__)&&(c=e.data.domProps=P({},c)),s)i in c||(a[i]="");for(i in c){if(n=c[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),n===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=n;var l=r(n)?"":String(n);pr(a,l)&&(a.value=l)}else if("innerHTML"===i&&Zi(a.tagName)&&r(a.innerHTML)){(sr=sr||document.createElement("div")).innerHTML=""+n+"";for(var p=sr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;p.firstChild;)a.appendChild(p.firstChild)}else if(n!==s[i])try{a[i]=n}catch(t){}}}}function pr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(t,e)||function(t,e){var i=t.value,n=t._vModifiers;if(o(n)){if(n.number)return h(i)!==h(e);if(n.trim)return i.trim()!==e.trim()}return i!==e}(t,e))}var ur={create:lr,update:lr},dr=w(function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function fr(t){var e=vr(t.style);return t.staticStyle?P(t.staticStyle,e):e}function vr(t){return Array.isArray(t)?E(t):"string"==typeof t?dr(t):t}var hr,mr=/^--/,gr=/\s*!important$/,yr=function(t,e,i){if(mr.test(e))t.style.setProperty(e,i);else if(gr.test(i))t.style.setProperty(V(e),i.replace(gr,""),"important");else{var n=xr(e);if(Array.isArray(i))for(var r=0,o=i.length;r-1?e.split(kr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Cr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(kr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function Tr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,Vr(t.name||"v")),P(e,t),e}return"string"==typeof t?Vr(t):void 0}}var Vr=w(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Or=G&&!Q,Ar="transition",Pr="animation",Er="transition",Ir="transitionend",jr="animation",Mr="animationend";Or&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Er="WebkitTransition",Ir="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(jr="WebkitAnimation",Mr="webkitAnimationEnd"));var Dr=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Br(t){Dr(function(){Dr(t)})}function Lr(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Sr(t,e))}function $r(t,e){t._transitionClasses&&b(t._transitionClasses,e),Cr(t,e)}function Nr(t,e,i){var n=zr(t,e),r=n.type,o=n.timeout,a=n.propCount;if(!r)return i();var s=r===Ar?Ir:Mr,c=0,l=function(){t.removeEventListener(s,p),i()},p=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c0&&(i=Ar,p=a,u=o.length):e===Pr?l>0&&(i=Pr,p=l,u=c.length):u=(i=(p=Math.max(a,l))>0?a>l?Ar:Pr:null)?i===Ar?o.length:c.length:0,{type:i,timeout:p,propCount:u,hasTransform:i===Ar&&Rr.test(n[Er+"Property"])}}function Fr(t,e){for(;t.length1}function Gr(t,e){!0!==e.data.show&&Ur(e)}var Xr=function(t){var e,i,n={},c=t.modules,l=t.nodeOps;for(e=0;ev?b(t,r(i[g+1])?null:i[g+1].elm,i,f,g,n):f>g&&_(e,d,v)}(d,m,g,i,p):o(g)?(o(t.text)&&l.setTextContent(d,""),b(d,null,g,0,g.length-1,i)):o(m)?_(m,0,m.length-1):o(t.text)&&l.setTextContent(d,""):t.text!==e.text&&l.setTextContent(d,e.text),o(v)&&o(f=v.hook)&&o(f=f.postpatch)&&f(t,e)}}}function C(t,e,i){if(a(i)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,a.selected!==o&&(a.selected=o);else if(D(to(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Qr(t,e){return e.every(function(e){return!D(e,t)})}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function io(t){t.target.composing&&(t.target.composing=!1,no(t.target,"input"))}function no(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function ro(t){return!t.componentInstance||t.data&&t.data.transition?t:ro(t.componentInstance._vnode)}var oo={model:Kr,show:{bind:function(t,e,i){var n=e.value,r=(i=ro(i)).data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,Ur(i,function(){t.style.display=o})):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value;!n!=!e.oldValue&&((i=ro(i)).data&&i.data.transition?(i.data.show=!0,n?Ur(i,function(){t.style.display=t.__vOriginalDisplay}):qr(i,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}}},ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function so(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?so(Ge(e.children)):t}function co(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var o in r)e[S(o)]=r[o];return e}function lo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var po=function(t){return t.tag||Ye(t)},uo=function(t){return"show"===t.name},fo={name:"transition",props:ao,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(po)).length){0;var n=this.mode;0;var r=i[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=so(r);if(!o)return r;if(this._leaving)return lo(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=co(this),l=this._vnode,p=so(l);if(o.data.directives&&o.data.directives.some(uo)&&(o.data.show=!0),p&&p.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,p)&&!Ye(p)&&(!p.componentInstance||!p.componentInstance._vnode.isComment)){var u=p.data.transition=P({},c);if("out-in"===n)return this._leaving=!0,le(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),lo(t,r);if("in-out"===n){if(Ye(o))return l;var d,f=function(){d()};le(c,"afterEnter",f),le(c,"enterCancelled",f),le(u,"delayLeave",function(t){d=t})}}return r}}},vo=P({tag:String,moveClass:String},ao);function ho(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function mo(t){t.data.newPos=t.elm.getBoundingClientRect()}function go(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}delete vo.mode;var yo={Transition:fo,TransitionGroup:{props:vo,beforeMount:function(){var t=this,e=this._update;this._update=function(i,n){var r=ti(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,i,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=co(this),s=0;s-1?tn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:tn[t]=/HTMLUnknownElement/.test(e.toString())},P(Ti.options.directives,oo),P(Ti.options.components,yo),Ti.prototype.__patch__=G?Xr:I,Ti.prototype.$mount=function(t,e){return function(t,e,i){return t.$el=e,t.$options.render||(t.$options.render=bt),ni(t,"beforeMount"),new hi(t,function(){t._update(t._render(),i)},I,{before:function(){t._isMounted&&!t._isDestroyed&&ni(t,"beforeUpdate")}},!0),i=!1,null==t.$vnode&&(t._isMounted=!0,ni(t,"mounted")),t}(this,t=t&&G?nn(t):void 0,e)},G&&setTimeout(function(){z.devtools&&st&&st.emit("init",Ti)},0);var bo=/\{\{((?:.|\r?\n)+?)\}\}/g,xo=/[-.*+?^${}()|[\]\/\\]/g,_o=w(function(t){var e=t[0].replace(xo,"\\$&"),i=t[1].replace(xo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")});function wo(t,e){var i=e?_o(e):bo;if(i.test(t)){for(var n,r,o,a=[],s=[],c=i.lastIndex=0;n=i.exec(t);){(r=n.index)>c&&(s.push(o=t.slice(c,r)),a.push(JSON.stringify(o)));var l=En(n[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=r+n[0].length}return c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Eo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Io="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",jo="((?:"+Io+"\\:)?"+Io+")",Mo=new RegExp("^<"+jo),Do=/^\s*(\/?)>/,Bo=new RegExp("^<\\/"+jo+"[^>]*>"),Lo=/^]+>/i,$o=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Ho=/&(?:lt|gt|quot|amp|#39);/g,Uo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,qo=m("pre,textarea",!0),Wo=function(t,e){return t&&qo(t)&&"\n"===e[0]};function Yo(t,e){var i=e?Uo:Ho;return t.replace(i,function(t){return Fo[t]})}var Go,Xo,Ko,Zo,Jo,Qo,ta,ea,ia=/^@|^v-on:/,na=/^v-|^@|^:|^#/,ra=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,oa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,aa=/^\(|\)$/g,sa=/^\[.*\]$/,ca=/:(.*)$/,la=/^:|^\.|^v-bind:/,pa=/\.[^.\]]+(?=[^\]]*$)/g,ua=/^v-slot(:|$)|^#/,da=/[\r\n]/,fa=/\s+/g,va=w(To),ha="_empty_";function ma(t,e,i){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},i=0,n=t.length;i]*>)","i")),d=t.replace(u,function(t,i,n){return l=n.length,Ro(p)||"noscript"===p||(i=i.replace(//g,"$1").replace(//g,"$1")),Wo(p,i)&&(i=i.slice(1)),e.chars&&e.chars(i),""});c+=t.length-d.length,t=d,T(p,c-l,c)}else{var f=t.indexOf("<");if(0===f){if($o.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v),c,c+v+3),k(v+3);continue}}if(No.test(t)){var h=t.indexOf("]>");if(h>=0){k(h+2);continue}}var m=t.match(Lo);if(m){k(m[0].length);continue}var g=t.match(Bo);if(g){var y=c;k(g[0].length),T(g[1],y,c);continue}var b=S();if(b){C(b),Wo(b.tagName,t)&&k(1);continue}}var x=void 0,_=void 0,w=void 0;if(f>=0){for(_=t.slice(f);!(Bo.test(_)||Mo.test(_)||$o.test(_)||No.test(_)||(w=_.indexOf("<",1))<0);)f+=w,_=t.slice(f);x=t.substring(0,f)}f<0&&(x=t),x&&k(x.length),e.chars&&x&&e.chars(x,c-x.length,c)}if(t===i){e.chars&&e.chars(t);break}}function k(e){c+=e,t=t.substring(e)}function S(){var e=t.match(Mo);if(e){var i,n,r={tagName:e[1],attrs:[],start:c};for(k(e[0].length);!(i=t.match(Do))&&(n=t.match(Eo)||t.match(Po));)n.start=c,k(n[0].length),n.end=c,r.attrs.push(n);if(i)return r.unarySlash=i[1],k(i[0].length),r.end=c,r}}function C(t){var i=t.tagName,c=t.unarySlash;o&&("p"===n&&Ao(i)&&T(n),s(i)&&n===i&&T(i));for(var l=a(i)||!!c,p=t.attrs.length,u=new Array(p),d=0;d=0&&r[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=r.length-1;l>=a;l--)e.end&&e.end(r[l].tag,i,o);r.length=a,n=a&&r[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,i,o):"p"===s&&(e.start&&e.start(t,[],!1,i,o),e.end&&e.end(t,i,o))}T()}(t,{warn:Go,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,a,s,u){var d=r&&r.ns||ea(t);J&&"svg"===d&&(i=function(t){for(var e=[],i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Rn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(n?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Yn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Yn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Yn(e,"$$c")+"}",null,!0)}(t,n,r);else if("input"===o&&"radio"===a)!function(t,e,i){var n=i&&i.number,r=Fn(t,"value")||"null";Dn(t,"checked","_q("+e+","+(r=n?"_n("+r+")":r)+")"),Rn(t,"change",Yn(e,r),null,!0)}(t,n,r);else if("input"===o||"textarea"===o)!function(t,e,i){var n=t.attrsMap.type,r=i||{},o=r.lazy,a=r.number,s=r.trim,c=!o&&"range"!==n,l=o?"change":"range"===n?tr:"input",p="$event.target.value";s&&(p="$event.target.value.trim()"),a&&(p="_n("+p+")");var u=Yn(e,p);c&&(u="if($event.target.composing)return;"+u),Dn(t,"value","("+e+")"),Rn(t,l,u,null,!0),(s||a)&&Rn(t,"blur","$forceUpdate()")}(t,n,r);else if(!z.isReservedTag(o))return Wn(t,n,r),!1;return!0},text:function(t,e){e.value&&Dn(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Dn(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Vo,mustUseProp:Bi,canBeLeftOpenTag:Oo,isReservedTag:Ji,getTagNamespace:Qi,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Ta)},Pa=w(function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});function Ea(t,e){t&&(Va=Pa(e.staticKeys||""),Oa=e.isReservedTag||j,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||g(t.tag)||!Oa(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Va)))}(e);if(1===e.type){if(!Oa(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var i=0,n=e.children.length;i|^function(?:\s+[\w$]+)?\s*\(/,ja=/\([^)]*?\);*$/,Ma=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Da={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ba={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},La=function(t){return"if("+t+")return null;"},$a={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:La("$event.target !== $event.currentTarget"),ctrl:La("!$event.ctrlKey"),shift:La("!$event.shiftKey"),alt:La("!$event.altKey"),meta:La("!$event.metaKey"),left:La("'button' in $event && $event.button !== 0"),middle:La("'button' in $event && $event.button !== 1"),right:La("'button' in $event && $event.button !== 2")};function Na(t,e){var i=e?"nativeOn:":"on:",n="",r="";for(var o in t){var a=Ra(t[o]);t[o]&&t[o].dynamic?r+=o+","+a+",":n+='"'+o+'":'+a+","}return n="{"+n.slice(0,-1)+"}",r?i+"_d("+n+",["+r.slice(0,-1)+"])":i+n}function Ra(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return Ra(t)}).join(",")+"]";var e=Ma.test(t.value),i=Ia.test(t.value),n=Ma.test(t.value.replace(ja,""));if(t.modifiers){var r="",o="",a=[];for(var s in t.modifiers)if($a[s])o+=$a[s],Da[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=La(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);return a.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(za).join("&&")+")return null;"}(a)),o&&(r+=o),"function($event){"+r+(e?"return "+t.value+"($event)":i?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||i?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function za(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=Da[t],n=Ba[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(n)+")"}var Fa={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:I},Ha=function(t){this.options=t,this.warn=t.warn||jn,this.transforms=Mn(t.modules,"transformCode"),this.dataGenFns=Mn(t.modules,"genData"),this.directives=P(P({},Fa),t.directives);var e=t.isReservedTag||j;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ua(t,e){var i=new Ha(e);return{render:"with(this){return "+(t?qa(t,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function qa(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Wa(t,e);if(t.once&&!t.onceProcessed)return Ya(t,e);if(t.for&&!t.forProcessed)return Xa(t,e);if(t.if&&!t.ifProcessed)return Ga(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var i=t.slotName||'"default"',n=Qa(t,e),r="_t("+i+(n?","+n:""),o=t.attrs||t.dynamicAttrs?is((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:S(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];!o&&!a||n||(r+=",null");o&&(r+=","+o);a&&(r+=(o?"":",null")+","+a);return r+")"}(t,e);var i;if(t.component)i=function(t,e,i){var n=e.inlineTemplate?null:Qa(e,i,!0);return"_c("+t+","+Ka(e,i)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ka(t,e));var r=t.inlineTemplate?null:Qa(t,e,!0);i="_c('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(i+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var i=t.children[0];0;if(i&&1===i.type){var n=Ua(i,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);o&&(i+=o+",")}return i=i.replace(/,$/,"")+"}",t.dynamicAttrs&&(i="_b("+i+',"'+t.tag+'",'+is(t.dynamicAttrs)+")"),t.wrapData&&(i=t.wrapData(i)),t.wrapListeners&&(i=t.wrapListeners(i)),i}function Za(t){return 1===t.type&&("slot"===t.tag||t.children.some(Za))}function Ja(t,e){var i=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!i)return Ga(t,e,Ja,"null");if(t.for&&!t.forProcessed)return Xa(t,e,Ja);var n=t.slotScope===ha?"":String(t.slotScope),r="function("+n+"){return "+("template"===t.tag?t.if&&i?"("+t.if+")?"+(Qa(t,e)||"undefined")+":undefined":Qa(t,e)||"undefined":qa(t,e))+"}",o=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+o+"}"}function Qa(t,e,i,n,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=i?e.maybeComponent(a)?",1":",0":"";return""+(n||qa)(a,e)+s}var c=i?function(t,e){for(var i=0,n=0;n':'
',ss.innerHTML.indexOf(" ")>0}var us=!!G&&ps(!1),ds=!!G&&ps(!0),fs=w(function(t){var e=nn(t);return e&&e.innerHTML}),vs=Ti.prototype.$mount;Ti.prototype.$mount=function(t,e){if((t=t&&nn(t))===document.body||t===document.documentElement)return this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=fs(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){0;var r=ls(n,{outputSourceRange:!1,shouldDecodeNewlines:us,shouldDecodeNewlinesForHref:ds,delimiters:i.delimiters,comments:i.comments},this),o=r.render,a=r.staticRenderFns;i.render=o,i.staticRenderFns=a}}return vs.call(this,t,e)},Ti.compile=ls,e.default=Ti}.call(e,i(8),i(226).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(17),r=this,o=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"on";p.log("registered handlers (onVolumeChange)"),c.jsVarEncByIndex(9)[e](c.getString(4),t)}}}return o(t,[{key:"resumePlayback",value:function(){return n.default.cmd.do(63)}},{key:"pausePlayback",value:function(){return n.default.cmd.do(64)}},{key:"getPlaylistEntity",value:function(){a(this,r);var t=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,i){n.default.req.do(73,e).done(function(e,i,n){return t(e)}).fail(function(e,i,n){return n&&p.error('CATCHED ERROR while executing "getPlaylistEntity", error = ',n),t(null)})}));case 1:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}.bind(r)()},{key:"getChannelEntity",value:function(t){return n.default.req.do(61,t)}},{key:"getChannelEntities",value:function(){return n.default.req.do(62)}},{key:"getChannelOptionsById",value:function(t){return this.getChannelOptionsByKey(t,"id")}},{key:"getChannelOptionsByKey",value:function(t){return this.getChannelOptionsBy(t,"key")}},{key:"getChannelOptionsBy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key",i=!0,n=!1,r=void 0;try{for(var o,a=this.channelsOptions[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;if(s&&s[e]===t)return s}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return null}},{key:"getListeningHistory",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t||(t=this.currentContext),n.default.req.do(74,t)}},{key:"getPlaylistListeningHistory",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t||(t=this.currentContext),n.default.req.do(100,t)}},{key:"getListeningHistoryPastTracks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=[],i=!1;try{var n=this.getListeningHistory(t),r=!0,o=!1,a=void 0;try{for(var s,c=n.models[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value.attributes.track;!!l.attributes.current&&!i?i=!0:e.push(l)}}catch(t){o=!0,a=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}catch(t){p.error('FATAL ERROR while retrieving "getListeningHistory". err = '+String(t.message)+" | ",t),e=[]}return e}},{key:"getPlaylistListeningHistoryPastTracks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=[],i=!1;try{var n=this.getPlaylistListeningHistory(t),r=!0,o=!1,a=void 0;try{for(var s,c=n.models[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value.attributes.track;!!l.attributes.current&&!i?i=!0:e.push(l)}}catch(t){o=!0,a=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}catch(t){p.error('CAUGHT ERROR while retrieving "getPlaylistListeningHistory". err = '+String(t.message)+" | ",t),e=[]}return e}},{key:"trackVotedStatus",value:function(t){var e={up:!1,down:!1},i=void 0;if(t&&"function"==typeof t.get&&(i=t.get("votes"))&&i.cast){return Object.assign({},e,i.cast)}return e}},{key:"getUpvotedTracks",value:function(){a(this,r);var t=s(regeneratorRuntime.mark(function t(){var e,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.jsVarEncByIndex(15),i=new e([],{params:{filter:null,page:1,per_page:2e4}}),t.abrupt("return",new Promise(function(t,e){i.fetch().done(function(t,e,n){return function(){0===i.models.length&&i.reset()}}).done(function(e,n,r){return t(i.models.map(function(t){return t.attributes&&t.attributes.track?t.attributes.track:null}).filter(function(t){return null!==t}))}).fail(function(e,i,n){return n&&p.error('CATCHED ERROR while executing "getUpvotedTracks", error = ',n),t([])})}));case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}.bind(r)()},{key:"downloadCurrentTrack",value:function(){if(p.log("downloadCurrentTrack"),!l.helpers.isTampermonkey)return this.downloadTrackNative();var t=this.getTrackDownloadData();return t&&t.src?"function"!=typeof l.GM.GM_download?(p.error("GM_download seems not available as a function: ",l.GM.GM_download),!1):(l.GM.GM_download({url:t.src,name:t.nameSlug,saveAs:!0}),!0):(p.error("Unable to determine a valid track download url for this track"),!1)}},{key:"getTrackDownloadData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.guessPlayerMetas(t);return e&&e.download?e.download:null}},{key:"guessPlayerMetas",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.currentContext,i={contextName:e&&e.get("show")?e.get("show").name:e&&e.get("name")?e.get("name"):void 0,contextType:e&&this.currentContextType?this.currentContextType:void 0,track:void 0,isPlaying:this.isPlaying,download:{nameSlug:"",src:null}};t||(t=this.currentTrackModel),t||p.warn("guessPlayerMetas reports an empty track model : ",t);var n=t?{id:t.get("id")?t.get("id"):null,src:t.get("src")?"https:"+t.get("src"):null,display_artist:t.get("display_artist")?t.get("display_artist"):null,display_title:t.get("display_title")?t.get("display_title"):null,images:[],assets:t.get("content")&&t.get("content").assets?t.get("content").assets:null,duration:t.get("length"),playbackPosition:this.model.get("currentTime")?this.model.get("currentTime"):0}:null;return null!==n&&void 0!==n.images&&(t.get("asset_url")&&n.images.push(t.get("asset_url")),t.get("images")&&t.get("images").default&&n.images.push(t.get("images").default)),null!==n&&(null!==n.id&&(i.download.nameSlug+=""+n.id),null!==n.src&&(i.download.src=n.src),null!==n.display_artist&&(i.download.nameSlug+="_"+n.display_artist),null!==n.display_title&&(i.download.nameSlug+="_"+n.display_title),i.download.nameSlug=i.download.nameSlug.replace(/"/gi,""),i.download.nameSlug+=".mp4"),i.track=n,i}},{key:"downloadTrackNative",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;p.log("downloadTrackNative ",t);var e=this.getTrackDownloadData(t);return e&&e.src?(window.open(e.src),!0):(p.error("Unable to determine a valid track download url for this track"),!1)}},{key:"playNextItem",value:function(){p.log("playNextItem"),n.default.cmd.do(58)}},{key:"skipTrack",value:function(){return n.default.cmd.do(75)}},{key:"playTrackModel",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p.log("playTrackModel : ",t,e);var i=null;void 0===e?(i=n.default.req.do(12),p.log("elected context: ",i)):i=e,n.default.cmd.do(48,t,i)}},{key:"isPlaying",get:function(){return n.default.req.do(15)}},{key:"volume",get:function(){return n.default.req.do(17)},set:function(t){p.log("-set- MainPlayer.volume = ",t),void 0===t&&(t=10),t<0&&(t=0),t>100&&(t=100),n.default.cmd.do(66,t)}},{key:"model",get:function(){return c.jsVarEncByIndex(9)}},{key:"isAppearingAsConnecting",get:function(){return this.model.get("connecting")},set:function(t){return void 0===t&&(t=!0),this.model.set("connecting",t)}},{key:"channelsOptions",get:function(){return c.jsVarEncByIndex(16)}},{key:"currentTrackModel",get:function(){return n.default.req.do(9)}},{key:"currentContext",get:function(){return n.default.req.do(12)}},{key:"currentContextType",get:function(){return n.default.req.do(13)}},{key:"currentContentType",get:function(){return n.default.req.do(14)}}]),t}());e.default=u},function(t,e,i){var n=i(75),r=i(55),o=i(30),a=i(41),s=i(22),c=i(176),l=Object.getOwnPropertyDescriptor;e.f=i(11)?l:function(t,e){if(t=o(t),e=a(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(22),r=i(18),o=i(127)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){var n=i(74),r=i(38);t.exports=function(t){return n(r(t))}},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(20);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){"use strict";var n=i(5);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){var n;!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],a=i.document,s=Object.getPrototypeOf,c=o.slice,l=o.concat,p=o.push,u=o.indexOf,d={},f=d.toString,v=d.hasOwnProperty,h=v.toString,m=h.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},x={type:!0,src:!0,noModule:!0};function _(t,e,i){var n,r=(e=e||a).createElement("script");if(r.text=t,i)for(n in x)i[n]&&(r[n]=i[n]);e.head.appendChild(r).parentNode.removeChild(r)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[f.call(t)]||"object":typeof t}var k=function(t,e){return new k.fn.init(t,e)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(t){var e=!!t&&"length"in t&&t.length,i=w(t);return!y(t)&&!b(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i+~]|"+B+")"+B+"*"),U=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),q=new RegExp(N),W=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),tt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},nt=function(){d()},rt=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{I.apply(A=j.call(_.childNodes),_.childNodes),A[_.childNodes.length].nodeType}catch(t){I={apply:A.length?function(t,e){E.apply(t,j.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,n,r){var o,s,l,p,u,v,g,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return n;if(!r&&((e?e.ownerDocument||e:_)!==f&&d(e),e=e||f,h)){if(11!==w&&(u=Z.exec(t)))if(o=u[1]){if(9===w){if(!(l=e.getElementById(o)))return n;if(l.id===o)return n.push(l),n}else if(y&&(l=y.getElementById(o))&&b(e,l)&&l.id===o)return n.push(l),n}else{if(u[2])return I.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!T[t+" "]&&(!m||!m.test(t))){if(1!==w)y=e,g=t;else if("object"!==e.nodeName.toLowerCase()){for((p=e.getAttribute("id"))?p=p.replace(et,it):e.setAttribute("id",p=x),s=(v=a(t)).length;s--;)v[s]="#"+p+" "+gt(v[s]);g=v.join(","),y=J.test(t)&&ht(e.parentNode)||e}if(g)try{return I.apply(n,y.querySelectorAll(g)),n}catch(t){}finally{p===x&&e.removeAttribute("id")}}}return c(t.replace(z,"$1"),e,n,r)}function at(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function st(t){return t[x]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function pt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function ft(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return st(function(e){return e=+e,st(function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:_;return a!==f&&9===a.nodeType&&a.documentElement?(v=(f=a).documentElement,h=!o(f),_!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",nt,!1):r.attachEvent&&r.attachEvent("onunload",nt)),i.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=ct(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=K.test(f.getElementsByClassName),i.getById=ct(function(t){return v.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),i.getById?(n.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(Q,tt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},g=[],m=[],(i.qsa=K.test(f.querySelectorAll))&&(ct(function(t){v.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+B+"*(?:value|"+D+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),ct(function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+B+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),v.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(i.matchesSelector=K.test(y=v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&ct(function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),g.push("!=",N)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=K.test(v.compareDocumentPosition),b=e||K.test(v.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===f||t.ownerDocument===_&&b(_,t)?-1:e===f||e.ownerDocument===_&&b(_,e)?1:p?M(p,t)-M(p,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===f?-1:e===f?1:r?-1:o?1:p?M(p,t)-M(p,e):0;if(r===o)return pt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?pt(a[n],s[n]):a[n]===_?-1:s[n]===_?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&d(t),e=e.replace(U,"='$1']"),i.matchesSelector&&h&&!T[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==f&&d(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==f&&d(t);var r=n.attrHandle[e.toLowerCase()],o=r&&O.call(n.attrHandle,e.toLowerCase())?r(t,e,!h):void 0;return void 0!==o?o:i.attributes||!h?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,p=!i.sortStable&&t.slice(0),t.sort(V),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return p=null,t},r=ot.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=ot.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=a(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+B+")"+t+"("+B+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var r=ot.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(R," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,c){var l,p,u,d,f,v,h=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(m){if(o){for(;h;){for(d=e;d=d[h];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;v=h="only"===t&&!v&&"nextSibling"}return!0}if(v=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(l=(p=(u=(d=m)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&l[1])&&l[2],d=f&&m.childNodes[f];d=++f&&d&&d[h]||(b=f=0)||v.pop();)if(1===d.nodeType&&++b&&d===e){p[t]=[w,f,b];break}}else if(y&&(b=f=(l=(p=(u=(d=e)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&l[1]),!1===b)for(;(d=++f&&d&&d[h]||(b=f=0)||v.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++b||(y&&((p=(u=d[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]=[w,b]),d!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,i){for(var n,o=r(t,e),a=o.length;a--;)t[n=M(t,o[a])]=!(i[n]=o[a])}):function(t){return r(t,0,i)}):r}},pseudos:{not:st(function(t){var e=[],i=[],n=s(t.replace(z,"$1"));return n[x]?st(function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(Q,tt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:st(function(t){return W.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(Q,tt).toLowerCase(),function(e){var i;do{if(i=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===v},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt(function(){return[0]}),last:vt(function(t,e){return[e-1]}),eq:vt(function(t,e,i){return[i<0?i+e:i]}),even:vt(function(t,e){for(var i=0;i=0;)t.push(n);return t}),gt:vt(function(t,e,i){for(var n=i<0?i+e:i;++n1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function xt(t,e,i,n,r){for(var o,a=[],s=0,c=t.length,l=null!=e;s-1&&(o[l]=!(a[l]=u))}}else g=xt(g===a?g.splice(v,g.length):g),r?r(null,a,g,c):I.apply(a,g)})}function wt(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],c=a?1:0,p=yt(function(t){return t===e},s,!0),u=yt(function(t){return M(e,t)>-1},s,!0),d=[function(t,i,n){var r=!a&&(n||i!==l)||((e=i).nodeType?p(t,i,n):u(t,i,n));return e=null,r}];c1&&bt(d),c>1&>(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(z,"$1"),i,c0,r=t.length>0,o=function(o,a,s,c,p){var u,v,m,g=0,y="0",b=o&&[],x=[],_=l,k=o||r&&n.find.TAG("*",p),S=w+=null==_?1:Math.random()||.1,C=k.length;for(p&&(l=a===f||a||p);y!==C&&null!=(u=k[y]);y++){if(r&&u){for(v=0,a||u.ownerDocument===f||(d(u),s=!h);m=t[v++];)if(m(u,a||f,s)){c.push(u);break}p&&(w=S)}i&&((u=!m&&u)&&g--,o&&b.push(u))}if(g+=y,i&&y!==g){for(v=0;m=e[v++];)m(b,x,a,s);if(o){if(g>0)for(;y--;)b[y]||x[y]||(x[y]=P.call(c));x=xt(x)}I.apply(c,x),p&&!o&&x.length>0&&g+e.length>1&&ot.uniqueSort(c)}return p&&(w=S,l=_),b};return i?st(o):o}(o,r))).selector=t}return s},c=ot.select=function(t,e,i,r){var o,c,l,p,u,d="function"==typeof t&&t,f=!r&&a(t=d.selector||t);if(i=i||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===e.nodeType&&h&&n.relative[c[1].type]){if(!(e=(n.find.ID(l.matches[0].replace(Q,tt),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(o=Y.needsContext.test(t)?0:c.length;o--&&(l=c[o],!n.relative[p=l.type]);)if((u=n.find[p])&&(r=u(l.matches[0].replace(Q,tt),J.test(c[0].type)&&ht(e.parentNode)||e))){if(c.splice(o,1),!(t=r.length&>(c)))return I.apply(i,r),i;break}}return(d||s(t,f))(r,e,!h,i,!e||J.test(t)&&ht(e.parentNode)||e),i},i.sortStable=x.split("").sort(V).join("")===x,i.detectDuplicates=!!u,d(),i.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),ct(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&ct(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||lt(D,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),ot}(i);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var V=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&k(t).is(i))break;n.push(t)}return n},O=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},A=k.expr.match.needsContext;function P(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,e,i){return y(e)?k.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?k.grep(t,function(t){return t===e!==i}):"string"!=typeof e?k.grep(t,function(t){return u.call(e,t)>-1!==i}):k.filter(e,t,i)}k.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e1?k.uniqueSort(i):i},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&A.test(t)?k(t):t||[],!1).length}});var j,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||j,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),E.test(n[1])&&k.isPlainObject(e))for(n in e)y(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=a.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==i.ready?i.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,j=k(a);var D=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter(function(){for(var t=0;t-1:1===i.nodeType&&k.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(k(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return V(t,"parentNode")},parentsUntil:function(t,e,i){return V(t,"parentNode",i)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return V(t,"nextSibling")},prevAll:function(t){return V(t,"previousSibling")},nextUntil:function(t,e,i){return V(t,"nextSibling",i)},prevUntil:function(t,e,i){return V(t,"previousSibling",i)},siblings:function(t){return O((t.parentNode||{}).firstChild,t)},children:function(t){return O(t.firstChild)},contents:function(t){return P(t,"iframe")?t.contentDocument:(P(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(t,e){k.fn[t]=function(i,n){var r=k.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=k.filter(n,r)),this.length>1&&(B[t]||k.uniqueSort(r),D.test(t)&&r.reverse()),this.pushStack(r)}});var $=/[^\x20\t\r\n\f]+/g;function N(t){return t}function R(t){throw t}function z(t,e,i,n){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(i):t&&y(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match($)||[],function(t,i){e[i]=!0}),e}(t):k.extend({},t);var e,i,n,r,o=[],a=[],s=-1,c=function(){for(r=r||t.once,n=e=!0;a.length;s=-1)for(i=a.shift();++s-1;)o.splice(i,1),i<=s&&s--}),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return k.Deferred(function(i){k.each(e,function(e,n){var r=y(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,c=arguments,l=function(){var i,l;if(!(t=o&&(n!==R&&(s=void 0,c=[i]),e.rejectWith(s,c))}};t?p():(k.Deferred.getStackHook&&(p.stackTrace=k.Deferred.getStackHook()),i.setTimeout(p))}}return k.Deferred(function(i){e[0][3].add(a(0,i,y(r)?r:N,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:N)),e[2][3].add(a(0,i,y(n)?n:R))}).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},o={};return k.each(e,function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=c.call(arguments),o=k.Deferred(),a=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?c.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(z(t,o.done(a(i)).resolve,o.reject,!e),"pending"===o.state()||y(r[i]&&r[i].then)))return o.then();for(;i--;)z(r[i],a(i),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&F.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){i.setTimeout(function(){throw t})};var H=k.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),i.removeEventListener("load",U),k.ready()}k.fn.ready=function(t){return H.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||H.resolveWith(a,[k]))}}),k.ready.then=H.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?i.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",U),i.addEventListener("load",U));var q=function(t,e,i,n,r,o,a){var s=0,c=t.length,l=null==i;if("object"===w(i))for(s in r=!0,i)q(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,y(n)||(a=!0),l&&(a?(e.call(t,n),e=null):(l=e,e=function(t,e,i){return l.call(k(t),i)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),k.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=J.get(t,e),i&&(!n||Array.isArray(i)?n=J.access(t,e,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),n=i.length,r=i.shift(),o=k._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,function(){k.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return J.get(t,i)||J.access(t,i,{empty:k.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",i])})})}}),k.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]+)/i,vt=/^$|^module$|\/(?:java|ecma)script/i,ht={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function mt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&P(t,e)?k.merge([t],i):i}function gt(t,e){for(var i=0,n=t.length;i-1)r&&r.push(o);else if(l=k.contains(o.ownerDocument,o),a=mt(u.appendChild(o),"script"),l&>(a),i)for(p=0;o=a[p++];)vt.test(o.type||"")&&i.push(o);return u}yt=a.createDocumentFragment().appendChild(a.createElement("div")),(bt=a.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),yt.appendChild(bt),g.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked,yt.innerHTML="",g.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue;var wt=a.documentElement,kt=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function Vt(){return!1}function Ot(){try{return a.activeElement}catch(t){}}function At(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)At(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Vt;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,r,n,i)})}k.event={global:{},add:function(t,e,i,n,r){var o,a,s,c,l,p,u,d,f,v,h,m=J.get(t);if(m)for(i.handler&&(i=(o=i).handler,r=o.selector),r&&k.find.matchesSelector(wt,r),i.guid||(i.guid=k.guid++),(c=m.events)||(c=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match($)||[""]).length;l--;)f=h=(s=Ct.exec(e[l])||[])[1],v=(s[2]||"").split(".").sort(),f&&(u=k.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=k.event.special[f]||{},p=k.extend({type:f,origType:h,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:v.join(".")},o),(d=c[f])||((d=c[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,v,a)||t.addEventListener&&t.addEventListener(f,a)),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,p):d.push(p),k.event.global[f]=!0)},remove:function(t,e,i,n,r){var o,a,s,c,l,p,u,d,f,v,h,m=J.hasData(t)&&J.get(t);if(m&&(c=m.events)){for(l=(e=(e||"").match($)||[""]).length;l--;)if(f=h=(s=Ct.exec(e[l])||[])[1],v=(s[2]||"").split(".").sort(),f){for(u=k.event.special[f]||{},d=c[f=(n?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)p=d[o],!r&&h!==p.origType||i&&i.guid!==p.guid||s&&!s.test(p.namespace)||n&&n!==p.selector&&("**"!==n||!p.selector)||(d.splice(o,1),p.selector&&d.delegateCount--,u.remove&&u.remove.call(t,p));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,v,m.handle)||k.removeEvent(t,f,m.handle),delete c[f])}else for(f in c)k.event.remove(t,f+e[l],i,n,!0);k.isEmptyObject(c)&&J.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=k.event.fix(t),c=new Array(arguments.length),l=(J.get(this,"events")||{})[s.type]||[],p=k.event.special[s.type]||{};for(c[0]=s,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},i=0;i-1:k.find(r,this,null,[l]).length),a[r]&&o.push(n);o.length&&s.push({elem:l,handlers:o})}return l=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,Et=/\s*$/g;function Mt(t,e){return P(t,"table")&&P(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,e){var i,n,r,o,a,s,c,l;if(1===e.nodeType){if(J.hasData(t)&&(o=J.access(t),a=J.set(e,o),l=o.events))for(r in delete a.handle,a.events={},l)for(i=0,n=l[r].length;i1&&"string"==typeof v&&!g.checkClone&&It.test(v))return t.each(function(r){var o=t.eq(r);h&&(e[0]=v.call(this,r,o.html())),$t(o,e,i,n)});if(d&&(o=(r=_t(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(s=(a=k.map(mt(r,"script"),Dt)).length;u")},clone:function(t,e,i){var n,r,o,a,s,c,l,p=t.cloneNode(!0),u=k.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=mt(p),n=0,r=(o=mt(t)).length;n0&>(a,!u&&mt(t,"script")),p},cleanData:function(t){for(var e,i,n,r=k.event.special,o=0;void 0!==(i=t[o]);o++)if(K(i)){if(e=i[J.expando]){if(e.events)for(n in e.events)r[n]?k.event.remove(i,n):k.removeEvent(i,n,e.handle);i[J.expando]=void 0}i[Q.expando]&&(i[Q.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return q(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return $t(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return $t(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return $t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return $t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!ht[(ft.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-s-.5))),c}function te(t,e,i){var n=zt(t),r=Ht(t,e,n),o="border-box"===k.css(t,"boxSizing",!1,n),a=o;if(Rt.test(r)){if(!i)return r;r="auto"}return a=a&&(g.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===k.css(t,"display",!1,n))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(r=parseFloat(r)||0)+Qt(t,e,i||(o?"border":"content"),a,n,r)+"px"}function ee(t,e,i,n,r){return new ee.prototype.init(t,e,i,n,r)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ht(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=X(e),c=Wt.test(e),l=t.style;if(c||(e=Zt(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:l[e];"string"===(o=typeof i)&&(r=rt.exec(i))&&r[1]&&(i=ct(t,e,r),o="number"),null!=i&&i==i&&("number"===o&&(i+=r&&r[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(c?l.setProperty(e,i):l[e]=i))}},css:function(t,e,i,n){var r,o,a,s=X(e);return Wt.test(e)||(e=Zt(s)),(a=k.cssHooks[e]||k.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=Ht(t,e,n)),"normal"===r&&e in Gt&&(r=Gt[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),k.each(["height","width"],function(t,e){k.cssHooks[e]={get:function(t,i,n){if(i)return!qt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,n):st(t,Yt,function(){return te(t,e,n)})},set:function(t,i,n){var r,o=zt(t),a="border-box"===k.css(t,"boxSizing",!1,o),s=n&&Qt(t,e,n,a,o);return a&&g.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Qt(t,e,"border",!1,o)-.5)),s&&(r=rt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=k.css(t,e)),Jt(0,i,s)}}}),k.cssHooks.marginLeft=Ut(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(t,e){k.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+ot[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(k.cssHooks[t+e].set=Jt)}),k.fn.extend({css:function(t,e){return q(this,function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=zt(t),r=e.length;a1)}}),k.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,i=ee.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ee.prototype.init,k.fx.step={};var ie,ne,re=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){ne&&(!1===a.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ae):i.setTimeout(ae,k.fx.interval),k.fx.tick())}function se(){return i.setTimeout(function(){ie=void 0}),ie=Date.now()}function ce(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=ot[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function le(t,e,i){for(var n,r=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),o=0,a=r.length;o1)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,i):(1===o&&k.isXMLDoc(t)||(r=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ue:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&P(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match($);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ue={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var i=de[e]||k.find.attr;de[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=de[a],de[a]=r,r=null!=i(t,e,n)?a:null,de[a]=o),r}});var fe=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function he(t){return(t.match($)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match($)||[]}k.fn.extend({prop:function(t,e){return q(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,r=k.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,i,n,r,o,a,s,c=0;if(y(t))return this.each(function(e){k(this).addClass(t.call(this,e,me(this)))});if((e=ge(t)).length)for(;i=this[c++];)if(r=me(i),n=1===i.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(s=he(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,o,a,s,c=0;if(y(t))return this.each(function(e){k(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;i=this[c++];)if(r=me(i),n=1===i.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=he(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(i){k(this).toggleClass(t.call(this,i,me(this),e),e)}):this.each(function(){var e,r,o,a;if(n)for(r=0,o=k(this),a=ge(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=me(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+he(me(i))+" ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g;k.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=y(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,k(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,function(t){return null==t?"":t+""})),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ye,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:he(k.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],c=a?o+1:r.length;for(n=o<0?c:a?o:0;n-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),g.focusin="onfocusin"in i;var be=/^(?:focusinfocus|focusoutblur)$/,xe=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,n,r){var o,s,c,l,p,u,d,f,h=[n||a],m=v.call(t,"type")?t.type:t,g=v.call(t,"namespace")?t.namespace.split("."):[];if(s=f=c=n=n||a,3!==n.nodeType&&8!==n.nodeType&&!be.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(m=(g=m.split(".")).shift(),g.sort()),p=m.indexOf(":")<0&&"on"+m,(t=t[k.expando]?t:new k.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),d=k.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!b(n)){for(l=d.delegateType||m,be.test(l+m)||(s=s.parentNode);s;s=s.parentNode)h.push(s),c=s;c===(n.ownerDocument||a)&&h.push(c.defaultView||c.parentWindow||i)}for(o=0;(s=h[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:d.bindType||m,(u=(J.get(s,"events")||{})[t.type]&&J.get(s,"handle"))&&u.apply(s,e),(u=p&&s[p])&&u.apply&&K(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),e)||!K(n)||p&&y(n[m])&&!b(n)&&((c=n[p])&&(n[p]=null),k.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,xe),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,xe),k.event.triggered=void 0,c&&(n[p]=c)),t.result}},simulate:function(t,e,i){var n=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return k.event.trigger(t,e,i,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){k.event.simulate(e,t.target,k.event.fix(t))};k.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=J.access(n,e);r||n.addEventListener(t,i,!0),J.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=J.access(n,e)-1;r?J.access(n,e,r):(n.removeEventListener(t,i,!0),J.remove(n,e))}}});var _e=i.location,we=Date.now(),ke=/\?/;k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var Se=/\[\]$/,Ce=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Ve=/^(?:input|select|textarea|keygen)/i;function Oe(t,e,i,n){var r;if(Array.isArray(e))k.each(e,function(e,r){i||Se.test(t)?n(t,r):Oe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==w(e))n(t,e);else for(r in e)Oe(t+"["+r+"]",e[r],i,n)}k.param=function(t,e){var i,n=[],r=function(t,e){var i=y(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){r(this.name,this.value)});else for(i in t)Oe(i,t[i],e,r);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Ve.test(this.nodeName)&&!Te.test(t)&&(this.checked||!dt.test(t))}).map(function(t,e){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:i.replace(Ce,"\r\n")}}).get()}});var Ae=/%20/g,Pe=/#.*$/,Ee=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Me=/^\/\//,De={},Be={},Le="*/".concat("*"),$e=a.createElement("a");function Ne(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match($)||[];if(y(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Re(t,e,i,n){var r={},o=t===Be;function a(s){var c;return r[s]=!0,k.each(t[s]||[],function(t,s){var l=s(e,i,n);return"string"!=typeof l||o||r[l]?o?!(c=l):void 0:(e.dataTypes.unshift(l),a(l),!1)}),c}return a(e.dataTypes[0])||!r["*"]&&a("*")}function ze(t,e){var i,n,r=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&k.extend(!0,t,n),t}$e.href=_e.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Le,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,k.ajaxSettings),e):ze(k.ajaxSettings,t)},ajaxPrefilter:Ne(De),ajaxTransport:Ne(Be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,c,l,p,u,d,f,v=k.ajaxSetup({},e),h=v.context||v,m=v.context&&(h.nodeType||h.jquery)?k(h):k.event,g=k.Deferred(),y=k.Callbacks("once memory"),b=v.statusCode||{},x={},_={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(p){if(!s)for(s={};e=Ie.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return p?o:null},setRequestHeader:function(t,e){return null==p&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==p&&(v.mimeType=t),this},statusCode:function(t){var e;if(t)if(p)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),C(0,e),this}};if(g.promise(S),v.url=((t||v.url||_e.href)+"").replace(Me,_e.protocol+"//"),v.type=e.method||e.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match($)||[""],null==v.crossDomain){l=a.createElement("a");try{l.href=v.url,l.href=l.href,v.crossDomain=$e.protocol+"//"+$e.host!=l.protocol+"//"+l.host}catch(t){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),Re(De,v,e,S),p)return S;for(d in(u=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!je.test(v.type),r=v.url.replace(Pe,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Ae,"+")):(f=v.url.slice(r.length),v.data&&(v.processData||"string"==typeof v.data)&&(r+=(ke.test(r)?"&":"?")+v.data,delete v.data),!1===v.cache&&(r=r.replace(Ee,"$1"),f=(ke.test(r)?"&":"?")+"_="+we+++f),v.url=r+f),v.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(v.data&&v.hasContent&&!1!==v.contentType||e.contentType)&&S.setRequestHeader("Content-Type",v.contentType),S.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Le+"; q=0.01":""):v.accepts["*"]),v.headers)S.setRequestHeader(d,v.headers[d]);if(v.beforeSend&&(!1===v.beforeSend.call(h,S,v)||p))return S.abort();if(w="abort",y.add(v.complete),S.done(v.success),S.fail(v.error),n=Re(Be,v,e,S)){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,v]),p)return S;v.async&&v.timeout>0&&(c=i.setTimeout(function(){S.abort("timeout")},v.timeout));try{p=!1,n.send(x,C)}catch(t){if(p)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,a,s){var l,d,f,x,_,w=e;p||(p=!0,c&&i.clearTimeout(c),n=void 0,o=s||"",S.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(x=function(t,e,i){for(var n,r,o,a,s=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){c.unshift(r);break}if(c[0]in i)o=c[0];else{for(r in i){if(!c[0]||t.converters[r+" "+c[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),i[o]}(v,S,a)),x=function(t,e,i,n){var r,o,a,s,c,l={},p=t.dataTypes.slice();if(p[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=p.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!c&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=p.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(r in l)if((s=r.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(o=s[0],p.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(v,x,S,l),l?(v.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=_),(_=S.getResponseHeader("etag"))&&(k.etag[r]=_)),204===t||"HEAD"===v.type?w="nocontent":304===t?w="notmodified":(w=x.state,d=x.data,l=!(f=x.error))):(f=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",l?g.resolveWith(h,[d,w,S]):g.rejectWith(h,[S,w,f]),S.statusCode(b),b=void 0,u&&m.trigger(l?"ajaxSuccess":"ajaxError",[S,v,l?d:f]),y.fireWith(h,[S,w]),u&&(m.trigger("ajaxComplete",[S,v]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,e){k[e]=function(t,i,n,r){return y(i)&&(r=r||n,n=i,i=void 0),k.ajax(k.extend({url:t,type:e,dataType:r,data:i,success:n},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){k(this).wrapInner(t.call(this,e))}):this.each(function(){var e=k(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(i){k(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Fe={0:200,1223:204},He=k.ajaxSettings.xhr();g.cors=!!He&&"withCredentials"in He,g.ajax=He=!!He,k.ajaxTransport(function(t){var e,n;if(g.cors||He&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Fe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(t){var e,i;if(t.crossDomain)return{send:function(n,r){e=k("