12 |
- /*! Amaze UI v2.5.2 ~ IE8 Fucker | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-01-26T11:06:52+0800 */
- !function(e){"use strict";e.console=e.console||{};for(var t,n,r=e.console,o={},i=function(){},a="memory".split(","),c="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=a.pop();)r[t]||(r[t]=o);for(;n=c.pop();)r[n]||(r[n]=i)}("undefined"==typeof window?this:window),function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t,n,r,o=Function.prototype.call,i=Object.prototype,a=o.bind(i.hasOwnProperty),c=a(i,"__defineGetter__");c&&(e=o.bind(i.__defineGetter__),t=o.bind(i.__defineSetter__),n=o.bind(i.__lookupGetter__),r=o.bind(i.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){var t=e.__proto__;return t||null===t?t:e.constructor?e.constructor.prototype:i});var l=function(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(t){return!1}};if(Object.defineProperty){var u=l({}),s="undefined"==typeof document||l(document.createElement("div"));if(!s||!u)var f=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||f){var p="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(p+e);if(f)try{return f.call(Object,e,t)}catch(o){}var l;if(!a(e,t))return l;if(l={enumerable:!0,configurable:!0},c){var u=e.__proto__,s=e!==i;s&&(e.__proto__=i);var h=n(e,t),d=r(e,t);if(s&&(e.__proto__=u),h||d)return h&&(l.get=h),d&&(l.set=d),l}return l.value=e[t],l.writable=!0,l}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),!Object.create){var h,d=!({__proto__:null}instanceof Object),y=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(e){return!1}},m=function(){var e,t;return t=new ActiveXObject("htmlfile"),t.write("<script></script>"),t.close(),e=t.parentWindow.Object.prototype,t=null,e},g=function(){var e,t=document.createElement("iframe"),n=document.body||document.documentElement;return t.style.display="none",n.appendChild(t),t.src="javascript:",e=t.contentWindow.Object.prototype,n.removeChild(t),t=null,e};h=d||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var e=y()?m():g();delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf,e.__proto__=null;var t=function(){};return t.prototype=e,h=function(){return new t},new t},Object.create=function(e,t){var n,r=function(){};if(null===e)n=h();else{if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object prototype may only be an Object or null");r.prototype=e,n=new r,n.__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}}var b=function(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){return!1}};if(Object.defineProperty){var v=b({}),w="undefined"==typeof document||b(document.createElement("div"));if(!v||!w)var O=Object.defineProperty,j=Object.defineProperties}if(!Object.defineProperty||O){var x="Property description must be an object: ",E="Object.defineProperty called on non-object: ",T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(o,a,l){if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError(E+o);if("object"!=typeof l&&"function"!=typeof l||null===l)throw new TypeError(x+l);if(O)try{return O.call(Object,o,a,l)}catch(u){}if("value"in l)if(c&&(n(o,a)||r(o,a))){var s=o.__proto__;o.__proto__=i,delete o[a],o[a]=l.value,o.__proto__=s}else o[a]=l.value;else{if(!c)throw new TypeError(T);"get"in l&&e(o,a,l.get),"set"in l&&t(o,a,l.set)}return o}}(!Object.defineProperties||j)&&(Object.defineProperties=function(e,t){if(j)try{return j.call(Object,e,t)}catch(n){}return Object.keys(t).forEach(function(n){"__proto__"!==n&&Object.defineProperty(e,n,t[n])}),e}),Object.seal||(Object.seal=function(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e}),Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze(function(){})}catch(S){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(e){if(Object(e)!==e)throw new TypeError("Object.preventExtensions can only be called on Objects.");return e}),Object.isSealed||(Object.isSealed=function(e){if(Object(e)!==e)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(e){if(Object(e)!==e)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)!==e)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var t="";a(e,t);)t+="?";e[t]=!0;var n=a(e,t);return delete e[t],n})}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t=Array.prototype,n=Object.prototype,r=Function.prototype,o=String.prototype,i=Number.prototype,a=t.slice,c=t.splice,l=t.push,u=t.unshift,s=t.concat,f=r.call,p=n.toString,h=Array.isArray||function(e){return"[object Array]"===p.call(e)},d="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Function.prototype.toString,m=function(e){try{return y.call(e),!0}catch(t){return!1}},g="[object Function]",b="[object GeneratorFunction]";e=function(e){if("function"!=typeof e)return!1;if(d)return m(e);var t=p.call(e);return t===g||t===b};var v,w=RegExp.prototype.exec,O=function(e){try{return w.call(e),!0}catch(t){return!1}},j="[object RegExp]";v=function(e){return"object"!=typeof e?!1:d?O(e):p.call(e)===j};var x,E=String.prototype.valueOf,T=function(e){try{return E.call(e),!0}catch(t){return!1}},S="[object String]";x=function(e){return"string"==typeof e?!0:"object"!=typeof e?!1:d?T(e):p.call(e)===S};var _=function(t){var n=p.call(t),r="[object Arguments]"===n;return r||(r=!h(t)&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&e(t.callee)),r},N=function(e){var t,n=Object.defineProperty&&function(){try{var e={};Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(n){return!1}}();return t=n?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(n,r,o){for(var i in r)e.call(r,i)&&t(n,i,r[i],o)}}(n.hasOwnProperty),P=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},M={ToInteger:function(e){var t=+e;return t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var n,r,o;if(P(t))return t;if(r=t.valueOf,e(r)&&(n=r.call(t),P(n)))return n;if(o=t.toString,e(o)&&(n=o.call(t),P(n)))return n;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)},ToUint32:function(e){return e>>>0}},C=function(){};N(r,{bind:function(t){var n=this;if(!e(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,o=a.call(arguments,1),i=function(){if(this instanceof r){var e=n.apply(this,s.call(o,a.call(arguments)));return Object(e)===e?e:this}return n.apply(t,s.call(o,a.call(arguments)))},c=Math.max(0,n.length-o.length),l=[],u=0;c>u;u++)l.push("$"+u);return r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this, arguments); }")(i),n.prototype&&(C.prototype=n.prototype,r.prototype=new C,C.prototype=null),r}});var D=f.bind(n.hasOwnProperty),z=function(){var e=[1,2],t=e.splice();return 2===e.length&&h(t)&&0===t.length}();N(t,{splice:function(e,t){return 0===arguments.length?[]:c.apply(this,arguments)}},!z);var k=function(){var e={};return t.splice.call(e,0,0,1),1===e.length}();N(t,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=Math.max(M.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&(n=a.call(arguments),n.length<2?n.push(this.length-e):n[1]=M.ToInteger(t)),c.apply(this,n)}},!k);var I=1!==[].unshift(0);N(t,{unshift:function(){return u.apply(this,arguments),this.length}},I),N(Array,{isArray:h});var R=Object("a"),A="a"!==R[0]||!(0 in R),F=function(e){var t=!0,n=!0;return e&&(e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")),!!e&&t&&n};N(t,{forEach:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=-1,a=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++i<a;)i in o&&("undefined"!=typeof n?t.call(n,o[i],i,r):t(o[i],i,r))}},!F(t.forEach)),N(t,{map:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0,a=Array(i);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.map callback must be a function");for(var c=0;i>c;c++)c in o&&("undefined"!=typeof n?a[c]=t.call(n,o[c],c,r):a[c]=t(o[c],c,r));return a}},!F(t.map)),N(t,{filter:function(t){var n,r,o=M.ToObject(this),i=A&&x(this)?this.split(""):o,a=i.length>>>0,c=[];if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;a>l;l++)l in i&&(n=i[l],("undefined"==typeof r?t(n,l,o):t.call(r,n,l,o))&&c.push(n));return c}},!F(t.filter)),N(t,{every:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;i>a;a++)if(a in o&&!("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!1;return!0}},!F(t.every)),N(t,{some:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;i>a;a++)if(a in o&&("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!0;return!1}},!F(t.some));var $=!1;t.reduce&&($="object"==typeof t.reduce.call("es5",function(e,t,n,r){return r})),N(t,{reduce:function(t){var n=M.ToObject(this),r=A&&x(this)?this.split(""):n,o=r.length>>>0;if(!e(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,a=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a++];break}if(++a>=o)throw new TypeError("reduce of empty array with no initial value")}for(;o>a;a++)a in r&&(i=t(i,r[a],a,n));return i}},!$);var L=!1;t.reduceRight&&(L="object"==typeof t.reduceRight.call("es5",function(e,t,n,r){return r})),N(t,{reduceRight:function(t){var n=M.ToObject(this),r=A&&x(this)?this.split(""):n,o=r.length>>>0;if(!e(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,a=o-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>a)return i;do a in r&&(i=t(i,r[a],a,n));while(a--);return i}},!L);var X=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);N(t,{indexOf:function(e){var t=A&&x(this)?this.split(""):M.ToObject(this),n=t.length>>>0;if(0===n)return-1;var r=0;for(arguments.length>1&&(r=M.ToInteger(arguments[1])),r=r>=0?r:Math.max(0,n+r);n>r;r++)if(r in t&&t[r]===e)return r;return-1}},X);var B=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);N(t,{lastIndexOf:function(e){var t=A&&x(this)?this.split(""):M.ToObject(this),n=t.length>>>0;if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,M.ToInteger(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}},B);var U=!{toString:null}.propertyIsEnumerable("toString"),q=function(){}.propertyIsEnumerable("prototype"),Z=!D("x","0"),H=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],W=H.length;N(Object,{keys:function(t){var n=e(t),r=_(t),o=null!==t&&"object"==typeof t,i=o&&x(t);if(!o&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=[],c=q&&n;if(i&&Z||r)for(var l=0;l<t.length;++l)a.push(String(l));if(!r)for(var u in t)c&&"prototype"===u||!D(t,u)||a.push(String(u));if(U)for(var s=t.constructor,f=s&&s.prototype===t,p=0;W>p;p++){var h=H[p];f&&"constructor"===h||!D(t,h)||a.push(h)}return a}});var G=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),J=Object.keys;N(Object,{keys:function(e){return J(_(e)?t.slice.call(e):e)}},!G);var Q=-621987552e5,V="-000001",Y=Date.prototype.toISOString&&-1===new Date(Q).toISOString().indexOf(V);N(Date.prototype,{toISOString:function(){var e,t,n,r,o;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(r=this.getUTCFullYear(),o=this.getUTCMonth(),r+=Math.floor(o/12),o=(o%12+12)%12,e=[o+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],r=(0>r?"-":r>9999?"+":"")+("00000"+Math.abs(r)).slice(r>=0&&9999>=r?-4:-6),t=e.length;t--;)n=e[t],10>n&&(e[t]="0"+n);return r+"-"+e.slice(0,2).join("-")+"T"+e.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},Y);var K=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(Q).toJSON().indexOf(V)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}();K||(Date.prototype.toJSON=function(t){var n=Object(this),r=M.ToPrimitive(n);if("number"==typeof r&&!isFinite(r))return null;var o=n.toISOString;if(!e(o))throw new TypeError("toISOString property is not callable");return o.call(n)});var ee=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),te=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ne=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(!Date.parse||ne||te||!ee)&&(Date=function(e){var t=function(n,r,o,i,a,c,l){var u,s=arguments.length;return u=this instanceof e?1===s&&String(n)===n?new e(t.parse(n)):s>=7?new e(n,r,o,i,a,c,l):s>=6?new e(n,r,o,i,a,c):s>=5?new e(n,r,o,i,a):s>=4?new e(n,r,o,i):s>=3?new e(n,r,o):s>=2?new e(n,r):s>=1?new e(n):new e:e.apply(this,arguments),N(u,{constructor:t},!0),u},n=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365],o=function(e,t){var n=t>1?1:0;return r[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)},i=function(t){return Number(new e(1970,0,1,0,0,0,t))};for(var a in e)D(e,a)&&(t[a]=e[a]);N(t,{now:e.now,UTC:e.UTC},!0),t.prototype=e.prototype,N(t.prototype,{constructor:t},!0);var c=function(t){var r=n.exec(t);if(r){var a,c=Number(r[1]),l=Number(r[2]||1)-1,u=Number(r[3]||1)-1,s=Number(r[4]||0),f=Number(r[5]||0),p=Number(r[6]||0),h=Math.floor(1e3*Number(r[7]||0)),d=Boolean(r[4]&&!r[8]),y="-"===r[9]?1:-1,m=Number(r[10]||0),g=Number(r[11]||0);return(f>0||p>0||h>0?24:25)>s&&60>f&&60>p&&1e3>h&&l>-1&&12>l&&24>m&&60>g&&u>-1&&u<o(c,l+1)-o(c,l)&&(a=60*(24*(o(c,l)+u)+s+m*y),a=1e3*(60*(a+f+g*y)+p)+h,d&&(a=i(a)),a>=-864e13&&864e13>=a)?a:NaN}return e.parse.apply(this,arguments)};return N(t,{parse:c}),t}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var re=i.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),oe={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,r=t;++n<oe.size;)r+=e*oe.data[n],oe.data[n]=r%oe.base,r=Math.floor(r/oe.base)},divide:function(e){for(var t=oe.size,n=0;--t>=0;)n+=oe.data[t],oe.data[t]=Math.floor(n/e),n=n%e*oe.base},numToString:function(){for(var e=oe.size,t="";--e>=0;)if(""!==t||0===e||0!==oe.data[e]){var n=String(oe.data[e]);""===t?t=n:t+="0000000".slice(0,7-n.length)+n}return t},pow:function me(e,t,n){return 0===t?n:t%2===1?me(e,t-1,n*e):me(e*e,t/2,n)},log:function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}};N(i,{toFixed:function(e){var t,n,r,o,i,a,c,l;if(t=Number(e),t=t!==t?0:Math.floor(t),0>t||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=Number(this),n!==n)return"NaN";if(-1e21>=n||n>=1e21)return String(n);if(r="",0>n&&(r="-",n=-n),o="0",n>1e-21)if(i=oe.log(n*oe.pow(2,69,1))-69,a=0>i?n*oe.pow(2,-i,1):n/oe.pow(2,i,1),a*=4503599627370496,i=52-i,i>0){for(oe.multiply(0,a),c=t;c>=7;)oe.multiply(1e7,0),c-=7;for(oe.multiply(oe.pow(10,c,1),0),c=i-1;c>=23;)oe.divide(1<<23),c-=23;oe.divide(1<<c),oe.multiply(1,1),oe.divide(2),o=oe.numToString()}else oe.multiply(0,a),oe.multiply(1<<-i,0),o=oe.numToString()+"0.00000000000000000000".slice(2,2+t);return t>0?(l=o.length,o=t>=l?r+"0.0000000000000000000".slice(0,t-l+2)+o:r+o.slice(0,l-t)+"."+o.slice(l-t)):o=r+o,o}},re);var ie=o.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 e="undefined"==typeof/()??/.exec("")[1];o.split=function(t,n){var r=this;if("undefined"==typeof t&&0===n)return[];if(!v(t))return ie.call(this,t,n);var o,i,a,c,u=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,s+"g");r+="",e||(o=new RegExp("^"+p.source+"$(?!\\s)",s));var h="undefined"==typeof n?-1>>>0:M.ToUint32(n);for(i=p.exec(r);i&&(a=i.index+i[0].length,!(a>f&&(u.push(r.slice(f,i.index)),!e&&i.length>1&&i[0].replace(o,function(){for(var e=1;e<arguments.length-2;e++)"undefined"==typeof arguments[e]&&(i[e]=void 0)}),i.length>1&&i.index<r.length&&l.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=h)));)p.lastIndex===i.index&&p.lastIndex++,i=p.exec(r);return f===r.length?(c||!p.test(""))&&u.push(""):u.push(r.slice(f)),u.length>h?u.slice(0,h):u}}():"0".split(void 0,0).length&&(o.split=function(e,t){return"undefined"==typeof e&&0===t?[]:ie.call(this,e,t)});var ae=o.replace,ce=function(){var e=[];return"x".replace(/x(.)?/g,function(t,n){e.push(n)}),1===e.length&&"undefined"==typeof e[0]}();ce||(o.replace=function(t,n){var r=e(n),o=v(t)&&/\)[*?]/.test(t.source);if(r&&o){var i=function(e){var r=arguments.length,o=t.lastIndex;t.lastIndex=0;var i=t.exec(e)||[];return t.lastIndex=o,i.push(arguments[r-2],arguments[r-1]),n.apply(this,i)};return ae.call(this,t,i)}return ae.call(this,t,n)});var le=o.substr,ue="".substr&&"b"!=="0b".substr(-1);N(o,{substr:function(e,t){var n=e;return 0>e&&(n=Math.max(this.length+e,0)),le.call(this,n,t)}},ue);var se=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",fe="\u200b",pe="["+se+"]",he=new RegExp("^"+pe+pe+"*"),de=new RegExp(pe+pe+"*$"),ye=o.trim&&(se.trim()||!fe.trim());N(o,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(he,"").replace(de,"")}},ye),(8!==parseInt(se+"08")||22!==parseInt(se+"0x16"))&&(parseInt=function(e){var t=/^0[xX]/;return function(n,r){var o=String(n).trim(),i=Number(r)||(t.test(o)?16:10);return e(o,i)}}(parseInt))}),!window.addEventListener&&function(e,t,n,r,o,i,a){e[r]=t[r]=n[r]=function(e,t){var n=this;a.unshift([n,e,t,function(e){e.currentTarget=n,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},e.target=e.srcElement||n,t.call(n,e)}]),this.attachEvent("on"+e,a[0][3])},e[o]=t[o]=n[o]=function(e,t){for(var n,r=0;n=a[r];++r)if(n[0]==this&&n[1]==e&&n[2]==t)return this.detachEvent("on"+e,a.splice(r,1)[0][3])},e[i]=t[i]=n[i]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]),function(e,t){"use strict";var n=function(){var e=document.createElement("div");return e.style.cssText="font-size: 1rem;",/rem/.test(e.style.fontSize)},r=function(){for(var e=document.getElementsByTagName("link"),t=[],n=0;n<e.length;n++)"stylesheet"===e[n].rel.toLowerCase()&&null===e[n].getAttribute("data-norem")&&t.push(e[n].href);return t},o=function(){for(var e=0;e<h.length;e++)s(h[e],i)},i=function(e,t){if(g.push(e.responseText),b.push(t),b.length===h.length){for(var n=0;n<b.length;n++)a(g[n],b[n]);(h=d.slice(0)).length>0?(b=[],g=[],d=[],o()):c()}},a=function(e,t){for(var n,r=f(e).replace(/\/\*[\s\S]*?\*\//g,""),o=/[\w\d\s\-\/\\\[\]:,.'"*()<>+~%#^$_=|@]+\{[\w\d\s\-\/\\%#:!;,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!;,.'"*()]*\}/g,i=r.match(o),a=/\d*\.?\d+rem/g,c=r.match(a),l=/(.*\/)/,u=l.exec(t)[0],s=/@import (?:url\()?['"]?([^'\)"]*)['"]?\)?[^;]*/gm;null!==(n=s.exec(e));)0===n[1].indexOf("/")?d.push(n[1]):d.push(u+n[1]);null!==i&&0!==i.length&&(y=y.concat(i),m=m.concat(c))},c=function(){for(var e=/[\w\d\s\-\/\\%#:,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!,.'"*()]*[;}]/g,t=0;t<y.length;t++){p+=y[t].substr(0,y[t].indexOf("{")+1);for(var n=y[t].match(e),r=0;r<n.length;r++)p+=n[r],r===n.length-1&&"}"!==p[p.length-1]&&(p+="\n}")}l()},l=function(){for(var e=0;e<m.length;e++)v[e]=Math.round(parseFloat(m[e].substr(0,m[e].length-3)*w))+"px";u()},u=function(){for(var e=0;e<v.length;e++)v[e]&&(p=p.replace(m[e],v[e]));var t=document.createElement("style");t.setAttribute("type","text/css"),t.id="remReplace",document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=p:t.appendChild(document.createTextNode(p))},s=function(t,n){try{var r=e.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP")||new ActiveXObject("Msxml2.XMLHTTP"):new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4===r.readyState&&n(r,t)},r.send(null)}catch(o){if(e.XDomainRequest){var i=new XDomainRequest;i.open("get",t),i.onload=function(){n(i,t)},i.onerror=function(){return!1},i.send()}}},f=function(t){return e.matchMedia||e.msMatchMedia||(t=t.replace(/@media[\s\S]*?\}\s*\}/g,"")),t};if(!n()){var p="",h=r(),d=[],y=[],m=[],g=[],b=[],v=[],w="";w=function(){var e,t=document,n=t.documentElement,r=t.body||t.createElement("body"),o=!t.body,i=t.createElement("div"),a=r.style.fontSize;return o&&n.appendChild(r),i.style.cssText="width:1em; position:absolute; visibility:hidden; padding: 0;",r.style.fontSize="1em",r.appendChild(i),e=i.offsetWidth,o?n.removeChild(r):(r.removeChild(i),r.style.fontSize=a),e}(),o()}}(window),!function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,n=e.documentElement,r=n.firstElementChild||n.firstChild,o=e.createElement("body"),i=e.createElement("div");return i.id="mq-test-1",i.style.cssText="position:absolute;top:-100em",o.style.background="none",o.appendChild(i),function(e){return i.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(o,r),t=42===i.offsetWidth,n.removeChild(o),{matches:t,media:e}}}(e.document)}(this),function(e){"use strict";function t(){O(!0)}var n={};e.respond=n,n.update=function(){};var r=[],o=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),i=function(e,t){var n=o();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))},a=function(e){return e.replace(n.regex.minmaxwh,"").match(n.regex.other)};if(n.ajax=i,n.queue=r,n.unsupportedmq=a,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var c,l,u,s=e.document,f=s.documentElement,p=[],h=[],d=[],y={},m=30,g=s.getElementsByTagName("head")[0]||f,b=s.getElementsByTagName("base")[0],v=g.getElementsByTagName("link"),w=function(){var e,t=s.createElement("div"),n=s.body,r=f.style.fontSize,o=n&&n.style.fontSize,i=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=i=s.createElement("body"),n.style.background="none"),f.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),i&&f.insertBefore(n,f.firstChild),e=t.offsetWidth,i?f.removeChild(n):n.removeChild(t),f.style.fontSize=r,o&&(n.style.fontSize=o),e=u=parseFloat(e)},O=function(t){var n="clientWidth",r=f[n],o="CSS1Compat"===s.compatMode&&r||s.body[n]||r,i={},a=v[v.length-1],y=(new Date).getTime();if(t&&c&&m>y-c)return e.clearTimeout(l),void(l=e.setTimeout(O,m));c=y;for(var b in p)if(p.hasOwnProperty(b)){var j=p[b],x=j.minw,E=j.maxw,T=null===x,S=null===E,_="em";x&&(x=parseFloat(x)*(x.indexOf(_)>-1?u||w():1)),E&&(E=parseFloat(E)*(E.indexOf(_)>-1?u||w():1)),j.hasquery&&(T&&S||!(T||o>=x)||!(S||E>=o))||(i[j.media]||(i[j.media]=[]),i[j.media].push(h[j.rules]))}for(var N in d)d.hasOwnProperty(N)&&d[N]&&d[N].parentNode===g&&g.removeChild(d[N]);d.length=0;for(var P in i)if(i.hasOwnProperty(P)){var M=s.createElement("style"),C=i[P].join("\n");M.type="text/css",M.media=P,g.insertBefore(M,a.nextSibling),M.styleSheet?M.styleSheet.cssText=C:M.appendChild(s.createTextNode(C)),d.push(M)}},j=function(e,t,r){var o=e.replace(n.regex.comments,"").replace(n.regex.keyframes,"").match(n.regex.media),i=o&&o.length||0;t=t.substring(0,t.lastIndexOf("/"));var c=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},l=!i&&r;t.length&&(t+="/"),l&&(i=1);for(var u=0;i>u;u++){var s,f,d,y;l?(s=r,h.push(c(e))):(s=o[u].match(n.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&c(RegExp.$2))),d=s.split(","),y=d.length;for(var m=0;y>m;m++)f=d[m],a(f)||p.push({media:f.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:f.indexOf("(")>-1,minw:f.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:f.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}O()},x=function(){if(r.length){var t=r.shift();i(t.href,function(n){j(n,t.href,t.media),y[t.href]=!0,e.setTimeout(function(){x()},0)})}},E=function(){for(var t=0;t<v.length;t++){var n=v[t],o=n.href,i=n.media,a=n.rel&&"stylesheet"===n.rel.toLowerCase();o&&a&&!y[o]&&(n.styleSheet&&n.styleSheet.rawCssText?(j(n.styleSheet.rawCssText,o,i),y[o]=!0):(!/^([a-zA-Z:]*\/\/)/.test(o)&&!b||o.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===o.substring(0,2)&&(o=e.location.protocol+o),r.push({href:o,media:i})))}x()};E(),n.update=E,n.getEmValue=w,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this);
|