!function(a,b){"undefined"==typeof a.HTMLVideoElement&&(b.createElement("video"),b.createElement("audio"),b.createElement("track")),function(a,b){"use strict";"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.returnExports=b()}(this,function(){var a,b=Array.prototype,c=Object.prototype,d=Function.prototype,e=String.prototype,f=Number.prototype,g=b.slice,h=b.splice,i=b.push,j=b.unshift,k=b.concat,l=d.call,m=c.toString,n=Array.isArray||function(a){return"[object Array]"===m.call(a)},o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,p=Function.prototype.toString,q=function(a){try{return p.call(a),!0}catch(b){return!1}},r="[object Function]",s="[object GeneratorFunction]";a=function(a){if("function"!=typeof a)return!1;if(o)return q(a);var b=m.call(a);return b===r||b===s};var t,u=RegExp.prototype.exec,v=function(a){try{return u.call(a),!0}catch(b){return!1}},w="[object RegExp]";t=function(a){return"object"!=typeof a?!1:o?v(a):m.call(a)===w};var x,y=String.prototype.valueOf,z=function(a){try{return y.call(a),!0}catch(b){return!1}},A="[object String]";x=function(a){return"string"==typeof a?!0:"object"!=typeof a?!1:o?z(a):m.call(a)===A};var B=function(b){var c=m.call(b),d="[object Arguments]"===c;return d||(d=!n(b)&&null!==b&&"object"==typeof b&&"number"==typeof b.length&&b.length>=0&&a(b.callee)),d},C=function(a){var b,c=Object.defineProperty&&function(){try{var a={};Object.defineProperty(a,"x",{enumerable:!1,value:a});for(var b in a)return!1;return a.x===a}catch(c){return!1}}();return b=c?function(a,b,c,d){!d&&b in a||Object.defineProperty(a,b,{configurable:!0,enumerable:!1,writable:!0,value:c})}:function(a,b,c,d){!d&&b in a||(a[b]=c)},function(c,d,e){for(var f in d)a.call(d,f)&&b(c,f,d[f],e)}}(c.hasOwnProperty),D=function(a){var b=typeof a;return null===a||"object"!==b&&"function"!==b},E={ToInteger:function(a){var b=+a;return b!==b?b=0:0!==b&&b!==1/0&&b!==-(1/0)&&(b=(b>0||-1)*Math.floor(Math.abs(b))),b},ToPrimitive:function(b){var c,d,e;if(D(b))return b;if(d=b.valueOf,a(d)&&(c=d.call(b),D(c)))return c;if(e=b.toString,a(e)&&(c=e.call(b),D(c)))return c;throw new TypeError},ToObject:function(a){if(null==a)throw new TypeError("can't convert "+a+" to object");return Object(a)},ToUint32:function(a){return a>>>0}},F=function(){};C(d,{bind:function(b){var c=this;if(!a(c))throw new TypeError("Function.prototype.bind called on incompatible "+c);for(var d,e=g.call(arguments,1),f=function(){if(this instanceof d){var a=c.apply(this,k.call(e,g.call(arguments)));return Object(a)===a?a:this}return c.apply(b,k.call(e,g.call(arguments)))},h=Math.max(0,c.length-e.length),i=[],j=0;h>j;j++)i.push("$"+j);return d=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this, arguments); }")(f),c.prototype&&(F.prototype=c.prototype,d.prototype=new F,F.prototype=null),d}});var G=l.bind(c.hasOwnProperty),H=function(){var a=[1,2],b=a.splice();return 2===a.length&&n(b)&&0===b.length}();C(b,{splice:function(a,b){return 0===arguments.length?[]:h.apply(this,arguments)}},!H);var I=function(){var a={};return b.splice.call(a,0,0,1),1===a.length}();C(b,{splice:function(a,b){if(0===arguments.length)return[];var c=arguments;return this.length=Math.max(E.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof b&&(c=g.call(arguments),c.length<2?c.push(this.length-a):c[1]=E.ToInteger(b)),h.apply(this,c)}},!I);var J=1!==[].unshift(0);C(b,{unshift:function(){return j.apply(this,arguments),this.length}},J),C(Array,{isArray:n});var K=Object("a"),L="a"!==K[0]||!(0 in K),M=function(a){var b=!0,c=!0;return a&&(a.call("foo",function(a,c,d){"object"!=typeof d&&(b=!1)}),a.call([1],function(){"use strict";c="string"==typeof this},"x")),!!a&&b&&c};C(b,{forEach:function(b){var c,d=E.ToObject(this),e=L&&x(this)?this.split(""):d,f=-1,g=e.length>>>0;if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++f>>0,g=Array(f);if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.map callback must be a function");for(var h=0;f>h;h++)h in e&&("undefined"!=typeof c?g[h]=b.call(c,e[h],h,d):g[h]=b(e[h],h,d));return g}},!M(b.map)),C(b,{filter:function(b){var c,d,e=E.ToObject(this),f=L&&x(this)?this.split(""):e,g=f.length>>>0,h=[];if(arguments.length>1&&(d=arguments[1]),!a(b))throw new TypeError("Array.prototype.filter callback must be a function");for(var i=0;g>i;i++)i in f&&(c=f[i],("undefined"==typeof d?b(c,i,e):b.call(d,c,i,e))&&h.push(c));return h}},!M(b.filter)),C(b,{every:function(b){var c,d=E.ToObject(this),e=L&&x(this)?this.split(""):d,f=e.length>>>0;if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.every callback must be a function");for(var g=0;f>g;g++)if(g in e&&!("undefined"==typeof c?b(e[g],g,d):b.call(c,e[g],g,d)))return!1;return!0}},!M(b.every)),C(b,{some:function(b){var c,d=E.ToObject(this),e=L&&x(this)?this.split(""):d,f=e.length>>>0;if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.some callback must be a function");for(var g=0;f>g;g++)if(g in e&&("undefined"==typeof c?b(e[g],g,d):b.call(c,e[g],g,d)))return!0;return!1}},!M(b.some));var N=!1;b.reduce&&(N="object"==typeof b.reduce.call("es5",function(a,b,c,d){return d})),C(b,{reduce:function(b){var c=E.ToObject(this),d=L&&x(this)?this.split(""):c,e=d.length>>>0;if(!a(b))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===e&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var f,g=0;if(arguments.length>=2)f=arguments[1];else for(;;){if(g in d){f=d[g++];break}if(++g>=e)throw new TypeError("reduce of empty array with no initial value")}for(;e>g;g++)g in d&&(f=b(f,d[g],g,c));return f}},!N);var O=!1;b.reduceRight&&(O="object"==typeof b.reduceRight.call("es5",function(a,b,c,d){return d})),C(b,{reduceRight:function(b){var c=E.ToObject(this),d=L&&x(this)?this.split(""):c,e=d.length>>>0;if(!a(b))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===e&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var f,g=e-1;if(arguments.length>=2)f=arguments[1];else for(;;){if(g in d){f=d[g--];break}if(--g<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>g)return f;do g in d&&(f=b(f,d[g],g,c));while(g--);return f}},!O);var P=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);C(b,{indexOf:function(a){var b=L&&x(this)?this.split(""):E.ToObject(this),c=b.length>>>0;if(0===c)return-1;var d=0;for(arguments.length>1&&(d=E.ToInteger(arguments[1])),d=d>=0?d:Math.max(0,c+d);c>d;d++)if(d in b&&b[d]===a)return d;return-1}},P);var Q=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);C(b,{lastIndexOf:function(a){var b=L&&x(this)?this.split(""):E.ToObject(this),c=b.length>>>0;if(0===c)return-1;var d=c-1;for(arguments.length>1&&(d=Math.min(d,E.ToInteger(arguments[1]))),d=d>=0?d:c-Math.abs(d);d>=0;d--)if(d in b&&a===b[d])return d;return-1}},Q);var R=!{toString:null}.propertyIsEnumerable("toString"),S=function(){}.propertyIsEnumerable("prototype"),T=!G("x","0"),U=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],V=U.length;C(Object,{keys:function(b){var c=a(b),d=B(b),e=null!==b&&"object"==typeof b,f=e&&x(b);if(!e&&!c&&!d)throw new TypeError("Object.keys called on a non-object");var g=[],h=S&&c;if(f&&T||d)for(var i=0;im;m++){var n=U[m];l&&"constructor"===n||!G(b,n)||g.push(n)}return g}});var W=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),X=Object.keys;C(Object,{keys:function(a){return X(B(a)?b.slice.call(a):a)}},!W);var Y=-621987552e5,Z="-000001",$=Date.prototype.toISOString&&-1===new Date(Y).toISOString().indexOf(Z);C(Date.prototype,{toISOString:function(){var a,b,c,d,e;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(d=this.getUTCFullYear(),e=this.getUTCMonth(),d+=Math.floor(e/12),e=(e%12+12)%12,a=[e+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],d=(0>d?"-":d>9999?"+":"")+("00000"+Math.abs(d)).slice(d>=0&&9999>=d?-4:-6),b=a.length;b--;)c=a[b],10>c&&(a[b]="0"+c);return d+"-"+a.slice(0,2).join("-")+"T"+a.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},$);var _=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(Y).toJSON().indexOf(Z)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(a){return!1}}();_||(Date.prototype.toJSON=function(b){var c=Object(this),d=E.ToPrimitive(c);if("number"==typeof d&&!isFinite(d))return null;var e=c.toISOString;if(!a(e))throw new TypeError("toISOString property is not callable");return e.call(c)});var aa=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),ba=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z")),ca=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(!Date.parse||ca||ba||!aa)&&(Date=function(a){var b=function(c,d,e,f,g,h,i){var j,k=arguments.length;return j=this instanceof a?1===k&&String(c)===c?new a(b.parse(c)):k>=7?new a(c,d,e,f,g,h,i):k>=6?new a(c,d,e,f,g,h):k>=5?new a(c,d,e,f,g):k>=4?new a(c,d,e,f):k>=3?new a(c,d,e):k>=2?new a(c,d):k>=1?new a(c):new a:a.apply(this,arguments),C(j,{constructor:b},!0),j},c=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),d=[0,31,59,90,120,151,181,212,243,273,304,334,365],e=function(a,b){var c=b>1?1:0;return d[b]+Math.floor((a-1969+c)/4)-Math.floor((a-1901+c)/100)+Math.floor((a-1601+c)/400)+365*(a-1970)},f=function(b){return Number(new a(1970,0,1,0,0,0,b))};for(var g in a)G(a,g)&&(b[g]=a[g]);return C(b,{now:a.now,UTC:a.UTC},!0),b.prototype=a.prototype,C(b.prototype,{constructor:b},!0),b.parse=function(b){var d=c.exec(b);if(d){var g,h=Number(d[1]),i=Number(d[2]||1)-1,j=Number(d[3]||1)-1,k=Number(d[4]||0),l=Number(d[5]||0),m=Number(d[6]||0),n=Math.floor(1e3*Number(d[7]||0)),o=Boolean(d[4]&&!d[8]),p="-"===d[9]?1:-1,q=Number(d[10]||0),r=Number(d[11]||0);return(l>0||m>0||n>0?24:25)>k&&60>l&&60>m&&1e3>n&&i>-1&&12>i&&24>q&&60>r&&j>-1&&j=-864e13&&864e13>=g)?g:NaN}return a.parse.apply(this,arguments)},b}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var da=f.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),ea={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(a,b){for(var c=-1,d=b;++c=0;)c+=ea.data[b],ea.data[b]=Math.floor(c/a),c=c%a*ea.base},numToString:function(){for(var a=ea.size,b="";--a>=0;)if(""!==b||0===a||0!==ea.data[a]){var c=String(ea.data[a]);""===b?b=c:b+="0000000".slice(0,7-c.length)+c}return b},pow:function qa(a,b,c){return 0===b?c:b%2===1?qa(a,b-1,c*a):qa(a*a,b/2,c)},log:function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b}};C(f,{toFixed:function(a){var b,c,d,e,f,g,h,i;if(b=Number(a),b=b!==b?0:Math.floor(b),0>b||b>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(c=Number(this),c!==c)return"NaN";if(-1e21>=c||c>=1e21)return String(c);if(d="",0>c&&(d="-",c=-c),e="0",c>1e-21)if(f=ea.log(c*ea.pow(2,69,1))-69,g=0>f?c*ea.pow(2,-f,1):c/ea.pow(2,f,1),g*=4503599627370496,f=52-f,f>0){for(ea.multiply(0,g),h=b;h>=7;)ea.multiply(1e7,0),h-=7;for(ea.multiply(ea.pow(10,h,1),0),h=f-1;h>=23;)ea.divide(1<<23),h-=23;ea.divide(1<0?(i=e.length,e=b>=i?d+"0.0000000000000000000".slice(0,b-i+2)+e:d+e.slice(0,i-b)+"."+e.slice(i-b)):e=d+e,e}},da);var fa=e.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var a="undefined"==typeof/()??/.exec("")[1];e.split=function(b,c){var d=this;if("undefined"==typeof b&&0===c)return[];if(!t(b))return fa.call(this,b,c);var e,f,g,h,j=[],k=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.extended?"x":"")+(b.sticky?"y":""),l=0,m=new RegExp(b.source,k+"g");d+="",a||(e=new RegExp("^"+m.source+"$(?!\\s)",k));var n="undefined"==typeof c?-1>>>0:E.ToUint32(c);for(f=m.exec(d);f&&(g=f.index+f[0].length,!(g>l&&(j.push(d.slice(l,f.index)),!a&&f.length>1&&f[0].replace(e,function(){for(var a=1;a1&&f.index=n)));)m.lastIndex===f.index&&m.lastIndex++,f=m.exec(d);return l===d.length?(h||!m.test(""))&&j.push(""):j.push(d.slice(l)),j.length>n?j.slice(0,n):j}}():"0".split(void 0,0).length&&(e.split=function(a,b){return"undefined"==typeof a&&0===b?[]:fa.call(this,a,b)});var ga=e.replace,ha=function(){var a=[];return"x".replace(/x(.)?/g,function(b,c){a.push(c)}),1===a.length&&"undefined"==typeof a[0]}();ha||(e.replace=function(b,c){var d=a(c),e=t(b)&&/\)[*?]/.test(b.source);if(d&&e){var f=function(a){var d=arguments.length,e=b.lastIndex;b.lastIndex=0;var f=b.exec(a)||[];return b.lastIndex=e,f.push(arguments[d-2],arguments[d-1]),c.apply(this,f)};return ga.call(this,b,f)}return ga.call(this,b,c)});var ia=e.substr,ja="".substr&&"b"!=="0b".substr(-1);C(e,{substr:function(a,b){var c=a;return 0>a&&(c=Math.max(this.length+a,0)),ia.call(this,c,b)}},ja);var ka=" \n\f\r \u2028\u2029\ufeff",la="",ma="["+ka+"]",na=new RegExp("^"+ma+ma+"*"),oa=new RegExp(ma+ma+"*$"),pa=e.trim&&(ka.trim()||!la.trim());C(e,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(na,"").replace(oa,"")}},pa),(8!==parseInt(ka+"08")||22!==parseInt(ka+"0x16"))&&(parseInt=function(a){var b=/^0[xX]/;return function(c,d){var e=String(c).trim(),f=Number(d)||(b.test(e)?16:10);return a(e,f)}}(parseInt))}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.returnExports=b()}(this,function(){var a,c,d,e,f=Function.prototype.call,g=Object.prototype,h=f.bind(g.hasOwnProperty),i=h(g,"__defineGetter__");i&&(a=f.bind(g.__defineGetter__),c=f.bind(g.__defineSetter__),d=f.bind(g.__lookupGetter__),e=f.bind(g.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(a){var b=a.__proto__;return b||null===b?b:a.constructor?a.constructor.prototype:g});var j=function(a){try{return a.sentinel=0,0===Object.getOwnPropertyDescriptor(a,"sentinel").value}catch(b){return!1}};if(Object.defineProperty){var k=j({}),l="undefined"==typeof b||j(b.createElement("div"));if(!l||!k)var m=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||m){var n="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(a,b){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError(n+a);if(m)try{return m.call(Object,a,b)}catch(c){}var f;if(!h(a,b))return f;if(f={enumerable:!0,configurable:!0},i){var j=a.__proto__,k=a!==g;k&&(a.__proto__=g);var l=d(a,b),o=e(a,b);if(k&&(a.__proto__=j),l||o)return l&&(f.get=l),o&&(f.set=o),f}return f.value=a[b],f.writable=!0,f}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(a){return Object.keys(a)}),!Object.create){var o,p=!({__proto__:null}instanceof Object);o=p||"undefined"==typeof b?function(){return{__proto__:null}}:function(){var a=b.createElement("iframe"),c=b.body||b.documentElement;a.style.display="none",c.appendChild(a),a.src="javascript:";var d=a.contentWindow.Object.prototype;c.removeChild(a),a=null,delete d.constructor,delete d.hasOwnProperty,delete d.propertyIsEnumerable,delete d.isPrototypeOf,delete d.toLocaleString,delete d.toString,delete d.valueOf,d.__proto__=null;var e=function(){};return e.prototype=d,o=function(){return new e},new e},Object.create=function(a,b){var c,d=function(){};if(null===a)c=o();else{if("object"!=typeof a&&"function"!=typeof a)throw new TypeError("Object prototype may only be an Object or null");d.prototype=a,c=new d,c.__proto__=a}return void 0!==b&&Object.defineProperties(c,b),c}}var q=function(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){return!1}};if(Object.defineProperty){var r=q({}),s="undefined"==typeof b||q(b.createElement("div"));if(!r||!s)var t=Object.defineProperty,u=Object.defineProperties}if(!Object.defineProperty||t){var v="Property description must be an object: ",w="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(b,f,h){if("object"!=typeof b&&"function"!=typeof b||null===b)throw new TypeError(w+b);if("object"!=typeof h&&"function"!=typeof h||null===h)throw new TypeError(v+h);if(t)try{return t.call(Object,b,f,h)}catch(j){}if("value"in h)if(i&&(d(b,f)||e(b,f))){var k=b.__proto__;b.__proto__=g,delete b[f],b[f]=h.value,b.__proto__=k}else b[f]=h.value;else{if(!i)throw new TypeError(x);"get"in h&&a(b,f,h.get),"set"in h&&c(b,f,h.set)}return b}}(!Object.defineProperties||u)&&(Object.defineProperties=function(a,b){if(u)try{return u.call(Object,a,b)}catch(c){}return Object.keys(b).forEach(function(c){"__proto__"!==c&&Object.defineProperty(a,c,b[c])}),a}),Object.seal||(Object.seal=function(a){if(Object(a)!==a)throw new TypeError("Object.seal can only be called on Objects.");return a}),Object.freeze||(Object.freeze=function(a){if(Object(a)!==a)throw new TypeError("Object.freeze can only be called on Objects.");return a});try{Object.freeze(function(){})}catch(y){Object.freeze=function(a){return function(b){return"function"==typeof b?b:a(b)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(a){if(Object(a)!==a)throw new TypeError("Object.preventExtensions can only be called on Objects.");return a}),Object.isSealed||(Object.isSealed=function(a){if(Object(a)!==a)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(a){if(Object(a)!==a)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(a){if(Object(a)!==a)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var b="";h(a,b);)b+="?";a[b]=!0;var c=h(a,b);return delete a[b],c})})}(window,document);