Guest User

full

a guest
Mar 21st, 2018
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=rt.type(t);return"function"===n||rt.isWindow(t)?!1:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function o(t,e,n){if(rt.isFunction(e))return rt.grep(t,function(t,o){return!!e.call(t,o,t)!==n});if(e.nodeType)return rt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(yt.test(e))return rt.filter(e,t,n);e=rt.filter(e,t)}return rt.grep(t,function(t){return Z.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function r(t){var e={};return rt.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}function s(){V.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),rt.ready()}function a(){this.expando=rt.expando+a.uid++}function c(t,e,n){var o;if(void 0===n&&1===t.nodeType)if(o="data-"+e.replace(jt,"-$&").toLowerCase(),n=t.getAttribute(o),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:_t.test(n)?rt.parseJSON(n):n}catch(i){}St.set(t,e,n)}else n=void 0;return n}function l(t,e,n,o){var i,r=1,s=20,a=o?function(){return o.cur()}:function(){return rt.css(t,e,"")},c=a(),l=n&&n[3]||(rt.cssNumber[e]?"":"px"),u=(rt.cssNumber[e]||"px"!==l&&+c)&&Rt.exec(rt.css(t,e));if(u&&u[3]!==l){l=l||u[3],n=n||[],u=+c||1;do r=r||".5",u/=r,rt.style(t,e,u+l);while(r!==(r=a()/c)&&1!==r&&--s)}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=u,o.end=i)),i}function u(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&rt.nodeName(t,e)?rt.merge([t],n):n}function p(t,e){for(var n=0,o=t.length;o>n;n++)Tt.set(t[n],"globalEval",!e||Tt.get(e[n],"globalEval"))}function d(t,e,n,o,i){for(var r,s,a,c,l,d,f=e.createDocumentFragment(),h=[],y=0,g=t.length;g>y;y++)if(r=t[y],r||0===r)if("object"===rt.type(r))rt.merge(h,r.nodeType?[r]:r);else if(Ft.test(r)){for(s=s||f.appendChild(e.createElement("div")),a=(Dt.exec(r)||["",""])[1].toLowerCase(),c=Ot[a]||Ot._default,s.innerHTML=c[1]+rt.htmlPrefilter(r)+c[2],d=c[0];d--;)s=s.lastChild;rt.merge(h,s.childNodes),s=f.firstChild,s.textContent=""}else h.push(e.createTextNode(r));for(f.textContent="",y=0;r=h[y++];)if(o&&rt.inArray(r,o)>-1)i&&i.push(r);else if(l=rt.contains(r.ownerDocument,r),s=u(f.appendChild(r),"script"),l&&p(s),n)for(d=0;r=s[d++];)Lt.test(r.type||"")&&n.push(r);return f}function f(){return!0}function h(){return!1}function y(){try{return V.activeElement}catch(t){}}function g(t,e,n,o,i,r){var s,a;if("object"==typeof e){"string"!=typeof n&&(o=o||n,n=void 0);for(a in e)g(t,a,n,o,e[a],r);return t}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),i===!1)i=h;else if(!i)return t;return 1===r&&(s=i,i=function(t){return rt().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=rt.guid++)),t.each(function(){rt.event.add(this,e,i,o,n)})}function m(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function v(t){var e=zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){var n,o,i,r,s,a,c,l;if(1===e.nodeType){if(Tt.hasData(t)&&(r=Tt.access(t),s=Tt.set(e,r),l=r.events)){delete s.handle,s.events={};for(i in l)for(n=0,o=l[i].length;o>n;n++)rt.event.add(e,i,l[i][n])}St.hasData(t)&&(a=St.access(t),c=rt.extend({},a),St.set(e,c))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Nt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function k(t,e,n,o){e=K.apply([],e);var i,r,s,a,c,l,p=0,f=t.length,h=f-1,y=e[0],g=rt.isFunction(y);if(g||f>1&&"string"==typeof y&&!ot.checkClone&&Ut.test(y))return t.each(function(i){var r=t.eq(i);g&&(e[0]=y.call(this,i,r.html())),k(r,e,n,o)});if(f&&(i=d(e,t[0].ownerDocument,!1,t,o),r=i.firstChild,1===i.childNodes.length&&(i=r),r||o)){for(s=rt.map(u(i,"script"),b),a=s.length;f>p;p++)c=i,p!==h&&(c=rt.clone(c,!0,!0),a&&rt.merge(s,u(c,"script"))),n.call(t[p],c,p);if(a)for(l=s[s.length-1].ownerDocument,rt.map(s,v),p=0;a>p;p++)c=s[p],Lt.test(c.type||"")&&!Tt.access(c,"globalEval")&&rt.contains(l,c)&&(c.src?rt._evalUrl&&rt._evalUrl(c.src):rt.globalEval(c.textContent.replace(Wt,"")))}return t}function C(t,e,n){for(var o,i=e?rt.filter(e,t):t,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||rt.cleanData(u(o)),o.parentNode&&(n&&rt.contains(o.ownerDocument,o)&&p(u(o,"script")),o.parentNode.removeChild(o));return t}function A(t,e){var n=rt(e.createElement(t)).appendTo(e.body),o=rt.css(n[0],"display");return n.detach(),o}function T(t){var e=V,n=Xt[t];return n||(n=A(t,e),"none"!==n&&n||(Qt=(Qt||rt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Qt[0].contentDocument,e.write(),e.close(),n=A(t,e),Qt.detach()),Xt[t]=n),n}function S(t,e,n){var o,i,r,s,a=t.style;return n=n||Jt(t),s=n?n.getPropertyValue(e)||n[e]:void 0,""!==s&&void 0!==s||rt.contains(t.ownerDocument,t)||(s=rt.style(t,e)),n&&!ot.pixelMarginRight()&&Vt.test(s)&&Yt.test(e)&&(o=a.width,i=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=i,a.maxWidth=r),void 0!==s?s+"":s}function _(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function j(t){if(t in oe)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if(t=ne[n]+e,t in oe)return t}function E(t,e,n){var o=Rt.exec(e);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):e}function R(t,e,n,o,i){for(var r=n===(o?"border":"content")?4:"width"===e?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=rt.css(t,n+$t[r],!0,i)),o?("content"===n&&(s-=rt.css(t,"padding"+$t[r],!0,i)),"margin"!==n&&(s-=rt.css(t,"border"+$t[r]+"Width",!0,i))):(s+=rt.css(t,"padding"+$t[r],!0,i),"padding"!==n&&(s+=rt.css(t,"border"+$t[r]+"Width",!0,i)));return s}function $(e,n,o){var i=!0,r="width"===n?e.offsetWidth:e.offsetHeight,s=Jt(e),a="border-box"===rt.css(e,"boxSizing",!1,s);if(V.msFullscreenElement&&t.top!==t&&e.getClientRects().length&&(r=Math.round(100*e.getBoundingClientRect()[n])),0>=r||null==r){if(r=S(e,n,s),(0>r||null==r)&&(r=e.style[n]),Vt.test(r))return r;i=a&&(ot.boxSizingReliable()||r===e.style[n]),r=parseFloat(r)||0}return r+R(e,n,o||(a?"border":"content"),i,s)+"px"}function B(t,e){for(var n,o,i,r=[],s=0,a=t.length;a>s;s++)o=t[s],o.style&&(r[s]=Tt.get(o,"olddisplay"),n=o.style.display,e?(r[s]||"none"!==n||(o.style.display=""),""===o.style.display&&Bt(o)&&(r[s]=Tt.access(o,"olddisplay",T(o.nodeName)))):(i=Bt(o),"none"===n&&i||Tt.set(o,"olddisplay",i?n:rt.css(o,"display"))));for(s=0;a>s;s++)o=t[s],o.style&&(e&&"none"!==o.style.display&&""!==o.style.display||(o.style.display=e?r[s]||"":"none"));return t}function N(t,e,n,o,i){return new N.prototype.init(t,e,n,o,i)}function D(){return t.setTimeout(function(){ie=void 0}),ie=rt.now()}function L(t,e){var n,o=0,i={height:t};for(e=e?1:0;4>o;o+=2-e)n=$t[o],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function O(t,e,n){for(var o,i=(P.tweeners[e]||[]).concat(P.tweeners["*"]),r=0,s=i.length;s>r;r++)if(o=i[r].call(n,e,t))return o}function F(t,e,n){var o,i,r,s,a,c,l,u,p=this,d={},f=t.style,h=t.nodeType&&Bt(t),y=Tt.get(t,"fxshow");n.queue||(a=rt._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,c=a.empty.fire,a.empty.fire=function(){a.unqueued||c()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,rt.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],l=rt.css(t,"display"),u="none"===l?Tt.get(t,"olddisplay")||T(t.nodeName):l,"inline"===u&&"none"===rt.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(o in e)if(i=e[o],se.exec(i)){if(delete e[o],r=r||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!y||void 0===y[o])continue;h=!0}d[o]=y&&y[o]||rt.style(t,o)}else l=void 0;if(rt.isEmptyObject(d))"inline"===("none"===l?T(t.nodeName):l)&&(f.display=l);else{y?"hidden"in y&&(h=y.hidden):y=Tt.access(t,"fxshow",{}),r&&(y.hidden=!h),h?rt(t).show():p.done(function(){rt(t).hide()}),p.done(function(){var e;Tt.remove(t,"fxshow");for(e in d)rt.style(t,e,d[e])});for(o in d)s=O(h?y[o]:0,o,p),o in y||(y[o]=s.start,h&&(s.end=s.start,s.start="width"===o||"height"===o?1:0))}}function q(t,e){var n,o,i,r,s;for(n in t)if(o=rt.camelCase(n),i=e[o],r=t[n],rt.isArray(r)&&(i=r[1],r=t[n]=r[0]),n!==o&&(t[o]=r,delete t[n]),s=rt.cssHooks[o],s&&"expand"in s){r=s.expand(r),delete t[o];for(n in r)n in t||(t[n]=r[n],e[n]=i)}else e[o]=i}function P(t,e,n){var o,i,r=0,s=P.prefilters.length,a=rt.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var e=ie||D(),n=Math.max(0,l.startTime+l.duration-e),o=n/l.duration||0,r=1-o,s=0,c=l.tweens.length;c>s;s++)l.tweens[s].run(r);return a.notifyWith(t,[l,r,n]),1>r&&c?n:(a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:rt.extend({},e),opts:rt.extend(!0,{specialEasing:{},easing:rt.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||D(),duration:n.duration,tweens:[],createTween:function(e,n){var o=rt.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(o),o},stop:function(e){var n=0,o=e?l.tweens.length:0;if(i)return this;for(i=!0;o>n;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),u=l.props;for(q(u,l.opts.specialEasing);s>r;r++)if(o=P.prefilters[r].call(l,t,u,l.opts))return rt.isFunction(o.stop)&&(rt._queueHooks(l.elem,l.opts.queue).stop=rt.proxy(o.stop,o)),o;return rt.map(u,O,l),rt.isFunction(l.opts.start)&&l.opts.start.call(t,l),rt.fx.timer(rt.extend(c,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function I(t){return t.getAttribute&&t.getAttribute("class")||""}function M(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var o,i=0,r=e.toLowerCase().match(wt)||[];if(rt.isFunction(n))for(;o=r[i++];)"+"===o[0]?(o=o.slice(1)||"*",(t[o]=t[o]||[]).unshift(n)):(t[o]=t[o]||[]).push(n)}}function H(t,e,n,o){function i(a){var c;return r[a]=!0,rt.each(t[a]||[],function(t,a){var l=a(e,n,o);return"string"!=typeof l||s||r[l]?s?!(c=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),c}var r={},s=t===Te;return i(e.dataTypes[0])||!r["*"]&&i("*")}function U(t,e){var n,o,i=rt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:o||(o={}))[n]=e[n]);return o&&rt.extend(!0,t,o),t}function z(t,e,n){for(var o,i,r,s,a=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(i in a)if(a[i]&&a[i].test(o)){c.unshift(i);break}if(c[0]in n)r=c[0];else{for(i in n){if(!c[0]||t.converters[i+" "+c[0]]){r=i;break}s||(s=i)}r=r||s}return r?(r!==c[0]&&c.unshift(r),n[r]):void 0}function W(t,e,n,o){var i,r,s,a,c,l={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!c&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=r,r=u.shift())if("*"===r)r=c;else if("*"!==c&&c!==r){if(s=l[c+" "+r]||l["* "+r],!s)for(i in l)if(a=i.split(" "),a[1]===r&&(s=l[c+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[i]:l[i]!==!0&&(r=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+c+" to "+r}}}return{state:"success",data:e}}function Q(t,e,n,o){var i;if(rt.isArray(e))rt.each(e,function(e,i){n||Ee.test(t)?o(t,i):Q(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,o)});else if(n||"object"!==rt.type(e))o(t,e);else for(i in e)Q(t+"["+i+"]",e[i],n,o)}function X(t){return rt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Y=[],V=t.document,J=Y.slice,K=Y.concat,G=Y.push,Z=Y.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,ot={},it="2.2.1",rt=function(t,e){return new rt.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,ct=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};rt.fn=rt.prototype={jquery:it,constructor:rt,selector:"",length:0,toArray:function(){return J.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:J.call(this)},pushStack:function(t){var e=rt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return rt.each(this,t)},map:function(t){return this.pushStack(rt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(J.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:G,sort:Y.sort,splice:Y.splice},rt.extend=rt.fn.extend=function(){var t,e,n,o,i,r,s=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||rt.isFunction(s)||(s={}),a===c&&(s=this,a--);c>a;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],o=t[e],s!==o&&(l&&o&&(rt.isPlainObject(o)||(i=rt.isArray(o)))?(i?(i=!1,r=n&&rt.isArray(n)?n:[]):r=n&&rt.isPlainObject(n)?n:{},s[e]=rt.extend(l,r,o)):void 0!==o&&(s[e]=o));return s},rt.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===rt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!rt.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){return"object"!==rt.type(t)||t.nodeType||rt.isWindow(t)?!1:!t.constructor||nt.call(t.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=rt.trim(t),t&&(1===t.indexOf("use strict")?(e=V.createElement("script"),e.text=t,V.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(at,"ms-").replace(ct,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var o,i=0;if(n(t))for(o=t.length;o>i&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var o=e||[];return null!=t&&(n(Object(t))?rt.merge(o,"string"==typeof t?[t]:t):G.call(o,t)),o},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,o=0,i=t.length;n>o;o++)t[i++]=e[o];return t.length=i,t},grep:function(t,e,n){for(var o,i=[],r=0,s=t.length,a=!n;s>r;r++)o=!e(t[r],r),o!==a&&i.push(t[r]);return i},map:function(t,e,o){var i,r,s=0,a=[];if(n(t))for(i=t.length;i>s;s++)r=e(t[s],s,o),null!=r&&a.push(r);else for(s in t)r=e(t[s],s,o),null!=r&&a.push(r);return K.apply([],a)},guid:1,proxy:function(t,e){var n,o,i;return"string"==typeof e&&(n=t[e],e=t,t=n),rt.isFunction(t)?(o=J.call(arguments,2),i=function(){return t.apply(e||this,o.concat(J.call(arguments)))},i.guid=t.guid=t.guid||rt.guid++,i):void 0},now:Date.now,support:ot}),"function"==typeof Symbol&&(rt.fn[Symbol.iterator]=Y[Symbol.iterator]),rt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ut=function(t){function e(t,e,n,o){var i,r,s,a,c,l,p,f,h=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!o&&((e?e.ownerDocument||e:I)!==B&&$(e),e=e||B,D)){if(11!==y&&(l=mt.exec(t)))if(i=l[1]){if(9===y){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(h&&(s=h.getElementById(i))&&q(e,s)&&s.id===i)return n.push(s),n}else{if(l[2])return G.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return G.apply(n,e.getElementsByClassName(i)),n}if(w.qsa&&!W[t+" "]&&(!L||!L.test(t))){if(1!==y)h=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(vt,"\\$&"):e.setAttribute("id",a=P),p=T(t),r=p.length,c=dt.test(a)?"#"+a:"[id='"+a+"']";r--;)p[r]=c+" "+d(p[r]);f=p.join(","),h=bt.test(t)&&u(e.parentNode)||e}if(f)try{return G.apply(n,h.querySelectorAll(f)),n}catch(g){}finally{a===P&&e.removeAttribute("id")}}}return _(t.replace(at,"$1"),e,n,o)}function n(){function t(n,o){return e.push(n+" ")>k.cacheLength&&delete t[e.shift()],t[n+" "]=o}var e=[];return t}function o(t){return t[P]=!0,t}function i(t){var e=B.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),o=n.length;o--;)k.attrHandle[n[o]]=e}function s(t,e){var n=e&&t,o=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return o(function(e){return e=+e,o(function(n,o){for(var i,r=t([],n.length,e),s=r.length;s--;)n[i=r[s]]&&(n[i]=!(o[i]=n[i]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function p(){}function d(t){for(var e=0,n=t.length,o="";n>e;e++)o+=t[e].value;return o}function f(t,e,n){var o=e.dir,i=n&&"parentNode"===o,r=H++;return e.first?function(e,n,r){for(;e=e[o];)if(1===e.nodeType||i)return t(e,n,r)}:function(e,n,s){var a,c,l,u=[M,r];if(s){for(;e=e[o];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[o];)if(1===e.nodeType||i){if(l=e[P]||(e[P]={}),c=l[e.uniqueID]||(l[e.uniqueID]={}),(a=c[o])&&a[0]===M&&a[1]===r)return u[2]=a[2];if(c[o]=u,u[2]=t(e,n,s))return!0}}}function h(t){return t.length>1?function(e,n,o){for(var i=t.length;i--;)if(!t[i](e,n,o))return!1;return!0}:t[0]}function y(t,n,o){for(var i=0,r=n.length;r>i;i++)e(t,n[i],o);return o}function g(t,e,n,o,i){for(var r,s=[],a=0,c=t.length,l=null!=e;c>a;a++)(r=t[a])&&(!n||n(r,o,i))&&(s.push(r),l&&e.push(a));return s}function m(t,e,n,i,r,s){return i&&!i[P]&&(i=m(i)),r&&!r[P]&&(r=m(r,s)),o(function(o,s,a,c){var l,u,p,d=[],f=[],h=s.length,m=o||y(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?m:g(m,d,t,a,c),v=n?r||(o?t:h||i)?[]:s:b;if(n&&n(b,v,a,c),i)for(l=g(v,f),i(l,[],a,c),u=l.length;u--;)(p=l[u])&&(v[f[u]]=!(b[f[u]]=p));if(o){if(r||t){if(r){for(l=[],u=v.length;u--;)(p=v[u])&&l.push(b[u]=p);r(null,v=[],l,c)}for(u=v.length;u--;)(p=v[u])&&(l=r?tt(o,p):d[u])>-1&&(o[l]=!(s[l]=p))}}else v=g(v===s?v.splice(h,v.length):v),r?r(null,s,v,c):G.apply(s,v)})}function b(t){for(var e,n,o,i=t.length,r=k.relative[t[0].type],s=r||k.relative[" "],a=r?1:0,c=f(function(t){return t===e},s,!0),l=f(function(t){return tt(e,t)>-1},s,!0),u=[function(t,n,o){var i=!r&&(o||n!==j)||((e=n).nodeType?c(t,n,o):l(t,n,o));return e=null,i}];i>a;a++)if(n=k.relative[t[a].type])u=[f(h(u),n)];else{if(n=k.filter[t[a].type].apply(null,t[a].matches),n[P]){for(o=++a;i>o&&!k.relative[t[o].type];o++);return m(a>1&&h(u),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,o>a&&b(t.slice(a,o)),i>o&&b(t=t.slice(o)),i>o&&d(t))}u.push(n)}return h(u)}function v(t,n){var i=n.length>0,r=t.length>0,s=function(o,s,a,c,l){var u,p,d,f=0,h="0",y=o&&[],m=[],b=j,v=o||r&&k.find.TAG("*",l),x=M+=null==b?1:Math.random()||.1,w=v.length;for(l&&(j=s===B||s||l);h!==w&&null!=(u=v[h]);h++){if(r&&u){for(p=0,s||u.ownerDocument===B||($(u),a=!D);d=t[p++];)if(d(u,s||B,a)){c.push(u);break}l&&(M=x)}i&&((u=!d&&u)&&f--,o&&y.push(u))}if(f+=h,i&&h!==f){for(p=0;d=n[p++];)d(y,m,s,a);if(o){if(f>0)for(;h--;)y[h]||m[h]||(m[h]=J.call(c));m=g(m)}G.apply(c,m),l&&!o&&m.length>0&&f+n.length>1&&e.uniqueSort(c)}return l&&(M=x,j=b),y};return i?o(s):s}var x,w,k,C,A,T,S,_,j,E,R,$,B,N,D,L,O,F,q,P="sizzle"+1*new Date,I=t.document,M=0,H=0,U=n(),z=n(),W=n(),Q=function(t,e){return t===e&&(R=!0),0},X=1<<31,Y={}.hasOwnProperty,V=[],J=V.pop,K=V.push,G=V.push,Z=V.slice,tt=function(t,e){for(var n=0,o=t.length;o>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",ot="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+ot+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",rt=":("+ot+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(rt),dt=new RegExp("^"+ot+"$"),ft={ID:new RegExp("^#("+ot+")"),CLASS:new RegExp("^\\.("+ot+")"),TAG:new RegExp("^("+ot+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,vt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var o="0x"+e-65536;return o!==o||n?e:0>o?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},kt=function(){$()};try{G.apply(V=Z.call(I.childNodes),I.childNodes),V[I.childNodes.length].nodeType}catch(Ct){G={apply:V.length?function(t,e){K.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,o=0;t[n++]=e[o++];);t.length=n-1}}}w=e.support={},A=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},$=e.setDocument=function(t){var e,n,o=t?t.ownerDocument||t:I;return o!==B&&9===o.nodeType&&o.documentElement?(B=o,N=B.documentElement,D=!A(B),(n=B.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(B.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(B.getElementsByClassName),w.getById=i(function(t){return N.appendChild(t).id=P,!B.getElementsByName||!B.getElementsByName(P).length}),w.getById?(k.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&D){var n=e.getElementById(t);return n?[n]:[]}},k.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){return t.getAttribute("id")===e}}):(delete k.find.ID,k.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),k.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,o=[],i=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[i++];)1===n.nodeType&&o.push(n);return o}return r},k.find.CLASS=w.getElementsByClassName&&function(t,e){return"undefined"!=typeof e.getElementsByClassName&&D?e.getElementsByClassName(t):void 0},O=[],L=[],(w.qsa=gt.test(B.querySelectorAll))&&(i(function(t){N.appendChild(t).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+P+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||L.push(".#.+[+~]")}),i(function(t){var e=B.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=gt.test(F=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){w.disconnectedMatch=F.call(t,"div"),F.call(t,"[s!='']:x"),O.push("!=",rt)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),e=gt.test(N.compareDocumentPosition),q=e||gt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,o=e&&e.parentNode;return t===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):t.compareDocumentPosition&&16&t.compareDocumentPosition(o)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Q=e?function(t,e){if(t===e)return R=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===B||t.ownerDocument===I&&q(I,t)?-1:e===B||e.ownerDocument===I&&q(I,e)?1:E?tt(E,t)-tt(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return R=!0,0;var n,o=0,i=t.parentNode,r=e.parentNode,a=[t],c=[e];if(!i||!r)return t===B?-1:e===B?1:i?-1:r?1:E?tt(E,t)-tt(E,e):0;if(i===r)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;a[o]===c[o];)o++;return o?s(a[o],c[o]):a[o]===I?-1:c[o]===I?1:0},B):B},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==B&&$(t),n=n.replace(ut,"='$1']"),w.matchesSelector&&D&&!W[n+" "]&&(!O||!O.test(n))&&(!L||!L.test(n)))try{var o=F.call(t,n);if(o||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return o}catch(i){}return e(n,B,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==B&&$(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==B&&$(t);var n=k.attrHandle[e.toLowerCase()],o=n&&Y.call(k.attrHandle,e.toLowerCase())?n(t,e,!D):void 0;return void 0!==o?o:w.attributes||!D?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],o=0,i=0;if(R=!w.detectDuplicates,E=!w.sortStable&&t.slice(0),t.sort(Q),R){for(;e=t[i++];)e===t[i]&&(o=n.push(i));for(;o--;)t.splice(n[o],1)}return E=null,t},C=e.getText=function(t){var e,n="",o=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=C(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[o++];)n+=C(e);return n},k=e.selectors={cacheLength:50,createPseudo:o,match:ft,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(xt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,wt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&pt.test(n)&&(e=T(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,o){return function(i){var r=e.attr(i,t);return null==r?"!="===n:n?(r+="","="===n?r===o:"!="===n?r!==o:"^="===n?o&&0===r.indexOf(o):"*="===n?o&&r.indexOf(o)>-1:"$="===n?o&&r.slice(-o.length)===o:"~="===n?(" "+r.replace(st," ")+" ").indexOf(o)>-1:"|="===n?r===o||r.slice(0,o.length+1)===o+"-":!1):!0}},CHILD:function(t,e,n,o,i){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===o&&0===i?function(t){return!!t.parentNode}:function(e,n,c){var l,u,p,d,f,h,y=r!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!c&&!a,v=!1;if(g){if(r){for(;y;){for(d=e;d=d[y];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=y="only"===t&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&b){for(d=g,p=d[P]||(d[P]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),l=u[t]||[],f=l[0]===M&&l[1],v=f&&l[2],d=f&&g.childNodes[f];d=++f&&d&&d[y]||(v=f=0)||h.pop();)if(1===d.nodeType&&++v&&d===e){u[t]=[M,f,v];break}}else if(b&&(d=e,p=d[P]||(d[P]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),l=u[t]||[],f=l[0]===M&&l[1],v=f),v===!1)for(;(d=++f&&d&&d[y]||(v=f=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++v||(b&&(p=d[P]||(d[P]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),u[t]=[M,v]),d!==e)););return v-=i,v===o||v%o===0&&v/o>=0}}},PSEUDO:function(t,n){var i,r=k.pseudos[t]||k.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[P]?r(n):r.length>1?(i=[t,t,"",n],k.setFilters.hasOwnProperty(t.toLowerCase())?o(function(t,e){for(var o,i=r(t,n),s=i.length;s--;)o=tt(t,i[s]),t[o]=!(e[o]=i[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:o(function(t){var e=[],n=[],i=S(t.replace(at,"$1"));return i[P]?o(function(t,e,n,o){for(var r,s=i(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}}),has:o(function(t){return function(n){return e(t,n).length>0}}),contains:o(function(t){return t=t.replace(xt,wt),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:o(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,wt).toLowerCase(),function(e){var n;do if(n=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===B.activeElement&&(!B.hasFocus||B.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!k.pseudos.empty(t)},header:function(t){return yt.test(t.nodeName)},input:function(t){return ht.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:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[0>n?n+e:n]}),even:l(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t;
  2. }),odd:l(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var o=0>n?n+e:n;--o>=0;)t.push(o);return t}),gt:l(function(t,e,n){for(var o=0>n?n+e:n;++o<e;)t.push(o);return t})}},k.pseudos.nth=k.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})k.pseudos[x]=c(x);return p.prototype=k.filters=k.pseudos,k.setFilters=new p,T=e.tokenize=function(t,n){var o,i,r,s,a,c,l,u=z[t+" "];if(u)return n?0:u.slice(0);for(a=t,c=[],l=k.preFilter;a;){(!o||(i=ct.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),c.push(r=[])),o=!1,(i=lt.exec(a))&&(o=i.shift(),r.push({value:o,type:i[0].replace(at," ")}),a=a.slice(o.length));for(s in k.filter)!(i=ft[s].exec(a))||l[s]&&!(i=l[s](i))||(o=i.shift(),r.push({value:o,type:s,matches:i}),a=a.slice(o.length));if(!o)break}return n?a.length:a?e.error(t):z(t,c).slice(0)},S=e.compile=function(t,e){var n,o=[],i=[],r=W[t+" "];if(!r){for(e||(e=T(t)),n=e.length;n--;)r=b(e[n]),r[P]?o.push(r):i.push(r);r=W(t,v(i,o)),r.selector=t}return r},_=e.select=function(t,e,n,o){var i,r,s,a,c,l="function"==typeof t&&t,p=!o&&T(t=l.selector||t);if(n=n||[],1===p.length){if(r=p[0]=p[0].slice(0),r.length>2&&"ID"===(s=r[0]).type&&w.getById&&9===e.nodeType&&D&&k.relative[r[1].type]){if(e=(k.find.ID(s.matches[0].replace(xt,wt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(i=ft.needsContext.test(t)?0:r.length;i--&&(s=r[i],!k.relative[a=s.type]);)if((c=k.find[a])&&(o=c(s.matches[0].replace(xt,wt),bt.test(r[0].type)&&u(e.parentNode)||e))){if(r.splice(i,1),t=o.length&&d(r),!t)return G.apply(n,o),n;break}}return(l||S(t,p))(o,e,!D,n,!e||bt.test(t)&&u(e.parentNode)||e),n},w.sortStable=P.split("").sort(Q).join("")===P,w.detectDuplicates=!!R,$(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(B.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||r(et,function(t,e,n){var o;return n?void 0:t[e]===!0?e.toLowerCase():(o=t.getAttributeNode(e))&&o.specified?o.value:null}),e}(t);rt.find=ut,rt.expr=ut.selectors,rt.expr[":"]=rt.expr.pseudos,rt.uniqueSort=rt.unique=ut.uniqueSort,rt.text=ut.getText,rt.isXMLDoc=ut.isXML,rt.contains=ut.contains;var pt=function(t,e,n){for(var o=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&rt(t).is(n))break;o.push(t)}return o},dt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},ft=rt.expr.match.needsContext,ht=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,yt=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?rt.find.matchesSelector(o,t)?[o]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=this.length,o=[],i=this;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;n>e;e++)if(rt.contains(i[e],this))return!0}));for(e=0;n>e;e++)rt.find(t,i[e],o);return o=this.pushStack(n>1?rt.unique(o):o),o.selector=this.selector?this.selector+" "+t:t,o},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&ft.test(t)?rt(t):t||[],!1).length}});var gt,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,bt=rt.fn.init=function(t,e,n){var o,i;if(!t)return this;if(n=n||gt,"string"==typeof t){if(o="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:mt.exec(t),!o||!o[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(o[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:V,!0)),ht.test(o[1])&&rt.isPlainObject(e))for(o in e)rt.isFunction(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return i=V.getElementById(o[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=V,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?void 0!==n.ready?n.ready(t):t(rt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))};bt.prototype=rt.fn,gt=rt(V);var vt=/^(?:parents|prev(?:Until|All))/,xt={children:!0,contents:!0,next:!0,prev:!0};rt.fn.extend({has:function(t){var e=rt(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(rt.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,o=0,i=this.length,r=[],s=ft.test(t)||"string"!=typeof t?rt(t,e||this.context):0;i>o;o++)for(n=this[o];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&rt.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?rt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?Z.call(rt(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(rt.uniqueSort(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return pt(t,"parentNode")},parentsUntil:function(t,e,n){return pt(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return pt(t,"nextSibling")},prevAll:function(t){return pt(t,"previousSibling")},nextUntil:function(t,e,n){return pt(t,"nextSibling",n)},prevUntil:function(t,e,n){return pt(t,"previousSibling",n)},siblings:function(t){return dt((t.parentNode||{}).firstChild,t)},children:function(t){return dt(t.firstChild)},contents:function(t){return t.contentDocument||rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(n,o){var i=rt.map(this,e,n);return"Until"!==t.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=rt.filter(o,i)),this.length>1&&(xt[t]||rt.uniqueSort(i),vt.test(t)&&i.reverse()),this.pushStack(i)}});var wt=/\S+/g;rt.Callbacks=function(t){t="string"==typeof t?r(t):rt.extend({},t);var e,n,o,i,s=[],a=[],c=-1,l=function(){for(i=t.once,o=e=!0;a.length;c=-1)for(n=a.shift();++c<s.length;)s[c].apply(n[0],n[1])===!1&&t.stopOnFalse&&(c=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},u={add:function(){return s&&(n&&!e&&(c=s.length-1,a.push(n)),function o(e){rt.each(e,function(e,n){rt.isFunction(n)?t.unique&&u.has(n)||s.push(n):n&&n.length&&"string"!==rt.type(n)&&o(n)})}(arguments),n&&!e&&l()),this},remove:function(){return rt.each(arguments,function(t,e){for(var n;(n=rt.inArray(e,s,n))>-1;)s.splice(n,1),c>=n&&c--}),this},has:function(t){return t?rt.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(n){rt.each(e,function(e,r){var s=rt.isFunction(t[e])&&t[e];i[r[1]](function(){var t=s&&s.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===o?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,o):o}},i={};return o.pipe=o.then,rt.each(e,function(t,r){var s=r[2],a=r[3];o[r[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[r[0]]=function(){return i[r[0]+"With"](this===i?o:this,arguments),this},i[r[0]+"With"]=s.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,o,i=0,r=J.call(arguments),s=r.length,a=1!==s||t&&rt.isFunction(t.promise)?s:0,c=1===a?t:rt.Deferred(),l=function(t,n,o){return function(i){n[t]=this,o[t]=arguments.length>1?J.call(arguments):i,o===e?c.notifyWith(n,o):--a||c.resolveWith(n,o)}};if(s>1)for(e=new Array(s),n=new Array(s),o=new Array(s);s>i;i++)r[i]&&rt.isFunction(r[i].promise)?r[i].promise().progress(l(i,n,e)).done(l(i,o,r)).fail(c.reject):--a;return a||c.resolveWith(o,r),c.promise()}});var kt;rt.fn.ready=function(t){return rt.ready.promise().done(t),this},rt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?rt.readyWait++:rt.ready(!0)},ready:function(t){(t===!0?--rt.readyWait:rt.isReady)||(rt.isReady=!0,t!==!0&&--rt.readyWait>0||(kt.resolveWith(V,[rt]),rt.fn.triggerHandler&&(rt(V).triggerHandler("ready"),rt(V).off("ready"))))}}),rt.ready.promise=function(e){return kt||(kt=rt.Deferred(),"complete"===V.readyState||"loading"!==V.readyState&&!V.documentElement.doScroll?t.setTimeout(rt.ready):(V.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),kt.promise(e)},rt.ready.promise();var Ct=function(t,e,n,o,i,r,s){var a=0,c=t.length,l=null==n;if("object"===rt.type(n)){i=!0;for(a in n)Ct(t,e,a,n[a],!0,r,s)}else if(void 0!==o&&(i=!0,rt.isFunction(o)||(s=!0),l&&(s?(e.call(t,o),e=null):(l=e,e=function(t,e,n){return l.call(rt(t),n)})),e))for(;c>a;a++)e(t[a],n,s?o:o.call(t[a],a,e(t[a],n)));return i?t:l?e.call(t):c?e(t[0],n):r},At=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!At(t))return{};var e=t[this.expando];return e||(e={},At(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var o,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(o in e)i[o]=e[o];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var o;return void 0===e||e&&"string"==typeof e&&void 0===n?(o=this.get(t,e),void 0!==o?o:this.get(t,rt.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,o,i,r=t[this.expando];if(void 0!==r){if(void 0===e)this.register(t);else{rt.isArray(e)?o=e.concat(e.map(rt.camelCase)):(i=rt.camelCase(e),e in r?o=[e,i]:(o=i,o=o in r?[o]:o.match(wt)||[])),n=o.length;for(;n--;)delete r[o[n]]}(void 0===e||rt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!rt.isEmptyObject(e)}};var Tt=new a,St=new a,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/[A-Z]/g;rt.extend({hasData:function(t){return St.hasData(t)||Tt.hasData(t)},data:function(t,e,n){return St.access(t,e,n)},removeData:function(t,e){St.remove(t,e)},_data:function(t,e,n){return Tt.access(t,e,n)},_removeData:function(t,e){Tt.remove(t,e)}}),rt.fn.extend({data:function(t,e){var n,o,i,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(i=St.get(r),1===r.nodeType&&!Tt.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(o=s[n].name,0===o.indexOf("data-")&&(o=rt.camelCase(o.slice(5)),c(r,o,i[o])));Tt.set(r,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){St.set(this,t)}):Ct(this,function(e){var n,o;if(r&&void 0===e){if(n=St.get(r,t)||St.get(r,t.replace(jt,"-$&").toLowerCase()),void 0!==n)return n;if(o=rt.camelCase(t),n=St.get(r,o),void 0!==n)return n;if(n=c(r,o,void 0),void 0!==n)return n}else o=rt.camelCase(t),this.each(function(){var n=St.get(this,o);St.set(this,o,e),t.indexOf("-")>-1&&void 0!==n&&St.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){St.remove(this,t)})}}),rt.extend({queue:function(t,e,n){var o;return t?(e=(e||"fx")+"queue",o=Tt.get(t,e),n&&(!o||rt.isArray(n)?o=Tt.access(t,e,rt.makeArray(n)):o.push(n)),o||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),o=n.length,i=n.shift(),r=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===e&&n.unshift("inprogress"),delete r.stop,i.call(t,s,r)),!o&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Tt.get(t,n)||Tt.access(t,n,{empty:rt.Callbacks("once memory").add(function(){Tt.remove(t,[e+"queue",n])})})}}),rt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?rt.queue(this[0],t):void 0===e?this:this.each(function(){var n=rt.queue(this,t,e);rt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&rt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){rt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,o=1,i=rt.Deferred(),r=this,s=this.length,a=function(){--o||i.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=Tt.get(r[s],t+"queueHooks"),n&&n.empty&&(o++,n.empty.add(a));return a(),i.promise(e)}});var Et=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Rt=new RegExp("^(?:([+-])=|)("+Et+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Bt=function(t,e){return t=e||t,"none"===rt.css(t,"display")||!rt.contains(t.ownerDocument,t)},Nt=/^(?:checkbox|radio)$/i,Dt=/<([\w:-]+)/,Lt=/^$|\/(?:java|ecma)script/i,Ot={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ot.optgroup=Ot.option,Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td;var Ft=/<|&#?\w+;/;!function(){var t=V.createDocumentFragment(),e=t.appendChild(V.createElement("div")),n=V.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),ot.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",ot.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var qt=/^key/,Pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,It=/^([^.]*)(?:\.(.+)|)/;rt.event={global:{},add:function(t,e,n,o,i){var r,s,a,c,l,u,p,d,f,h,y,g=Tt.get(t);if(g)for(n.handler&&(r=n,n=r.handler,i=r.selector),n.guid||(n.guid=rt.guid++),(c=g.events)||(c=g.events={}),(s=g.handle)||(s=g.handle=function(e){return"undefined"!=typeof rt&&rt.event.triggered!==e.type?rt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(wt)||[""],l=e.length;l--;)a=It.exec(e[l])||[],f=y=a[1],h=(a[2]||"").split(".").sort(),f&&(p=rt.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,p=rt.event.special[f]||{},u=rt.extend({type:f,origType:y,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&rt.expr.match.needsContext.test(i),namespace:h.join(".")},r),(d=c[f])||(d=c[f]=[],d.delegateCount=0,p.setup&&p.setup.call(t,o,h,s)!==!1||t.addEventListener&&t.addEventListener(f,s)),p.add&&(p.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),rt.event.global[f]=!0)},remove:function(t,e,n,o,i){var r,s,a,c,l,u,p,d,f,h,y,g=Tt.hasData(t)&&Tt.get(t);if(g&&(c=g.events)){for(e=(e||"").match(wt)||[""],l=e.length;l--;)if(a=It.exec(e[l])||[],f=y=a[1],h=(a[2]||"").split(".").sort(),f){for(p=rt.event.special[f]||{},f=(o?p.delegateType:p.bindType)||f,d=c[f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)u=d[r],!i&&y!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(t,u));s&&!d.length&&(p.teardown&&p.teardown.call(t,h,g.handle)!==!1||rt.removeEvent(t,f,g.handle),delete c[f])}else for(f in c)rt.event.remove(t,f+e[l],n,o,!0);rt.isEmptyObject(c)&&Tt.remove(t,"handle events")}},dispatch:function(t){t=rt.event.fix(t);var e,n,o,i,r,s=[],a=J.call(arguments),c=(Tt.get(this,"events")||{})[t.type]||[],l=rt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(s=rt.event.handlers.call(this,t,c),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(r.namespace))&&(t.handleObj=r,t.data=r.data,o=((rt.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,a),void 0!==o&&(t.result=o)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,o,i,r,s=[],a=e.delegateCount,c=t.target;if(a&&c.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==t.type)){for(o=[],n=0;a>n;n++)r=e[n],i=r.selector+" ",void 0===o[i]&&(o[i]=r.needsContext?rt(i,this).index(c)>-1:rt.find(i,this,null,[c]).length),o[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,o,i,r=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||V,o=n.documentElement,i=n.body,t.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[rt.expando])return t;var e,n,o,i=t.type,r=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Pt.test(i)?this.mouseHooks:qt.test(i)?this.keyHooks:{}),o=s.props?this.props.concat(s.props):this.props,t=new rt.Event(r),e=o.length;e--;)n=o[e],t[n]=r[n];return t.target||(t.target=V),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,r):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==y()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===y()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&rt.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return rt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},rt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},rt.Event=function(t,e){return this instanceof rt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?f:h):this.type=t,e&&rt.extend(this,e),this.timeStamp=t&&t.timeStamp||rt.now(),void(this[rt.expando]=!0)):new rt.Event(t,e)},rt.Event.prototype={constructor:rt.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&t.stopImmediatePropagation(),this.stopPropagation()}},rt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){rt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,o=this,i=t.relatedTarget,r=t.handleObj;return(!i||i!==o&&!rt.contains(o,i))&&(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),rt.fn.extend({on:function(t,e,n,o){return g(this,t,e,n,o)},one:function(t,e,n,o){return g(this,t,e,n,o,1)},off:function(t,e,n){var o,i;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,rt(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=h),this.each(function(){rt.event.remove(this,t,n,e)})}});var Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ht=/<script|<style|<link/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^true\/(.*)/,Wt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;rt.extend({htmlPrefilter:function(t){return t.replace(Mt,"<$1></$2>")},clone:function(t,e,n){var o,i,r,s,a=t.cloneNode(!0),c=rt.contains(t.ownerDocument,t);if(!(ot.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(s=u(a),r=u(t),o=0,i=r.length;i>o;o++)w(r[o],s[o]);if(e)if(n)for(r=r||u(t),s=s||u(a),o=0,i=r.length;i>o;o++)x(r[o],s[o]);else x(t,a);return s=u(a,"script"),s.length>0&&p(s,!c&&u(t,"script")),a},cleanData:function(t){for(var e,n,o,i=rt.event.special,r=0;void 0!==(n=t[r]);r++)if(At(n)){if(e=n[Tt.expando]){if(e.events)for(o in e.events)i[o]?rt.event.remove(n,o):rt.removeEvent(n,o,e.handle);n[Tt.expando]=void 0}n[St.expando]&&(n[St.expando]=void 0)}}}),rt.fn.extend({domManip:k,detach:function(t){return C(this,t,!0)},remove:function(t){return C(this,t)},text:function(t){return Ct(this,function(t){return void 0===t?rt.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 k(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=m(this,t);e.appendChild(t)}})},prepend:function(){return k(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=m(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return k(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return k(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&&(rt.cleanData(u(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return Ct(this,function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!Ot[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=rt.htmlPrefilter(t);try{for(;o>n;n++)e=this[n]||{},1===e.nodeType&&(rt.cleanData(u(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return k(this,arguments,function(e){var n=this.parentNode;rt.inArray(this,t)<0&&(rt.cleanData(u(this)),n&&n.replaceChild(e,this))},t)}}),rt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){rt.fn[t]=function(t){for(var n,o=[],i=rt(t),r=i.length-1,s=0;r>=s;s++)n=s===r?this:this.clone(!0),rt(i[s])[e](n),G.apply(o,n.get());return this.pushStack(o)}});var Qt,Xt={HTML:"block",BODY:"block"},Yt=/^margin/,Vt=new RegExp("^("+Et+")(?!px)[a-z%]+$","i"),Jt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Kt=function(t,e,n,o){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];i=n.apply(t,o||[]);for(r in e)t.style[r]=s[r];return i},Gt=V.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Gt.appendChild(s);var e=t.getComputedStyle(a);n="1%"!==e.top,r="2px"===e.marginLeft,o="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,Gt.removeChild(s)}var n,o,i,r,s=V.createElement("div"),a=V.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ot.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),rt.extend(ot,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==o&&e(),o},pixelMarginRight:function(){return null==o&&e(),i},reliableMarginLeft:function(){return null==o&&e(),r},reliableMarginRight:function(){var e,n=a.appendChild(V.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Gt.appendChild(s),e=!parseFloat(t.getComputedStyle(n).marginRight),Gt.removeChild(s),a.removeChild(n),e}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],oe=V.createElement("div").style;rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=S(t,"opacity");return""===n?"1":n}}}},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:{"float":"cssFloat"},style:function(t,e,n,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,r,s,a=rt.camelCase(e),c=t.style;return e=rt.cssProps[a]||(rt.cssProps[a]=j(a)||a),s=rt.cssHooks[e]||rt.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(t,!1,o))?i:c[e]:(r=typeof n,"string"===r&&(i=Rt.exec(n))&&i[1]&&(n=l(t,e,i),r="number"),void(null!=n&&n===n&&("number"===r&&(n+=i&&i[3]||(rt.cssNumber[a]?"":"px")),ot.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,o))||(c[e]=n))))}},css:function(t,e,n,o){var i,r,s,a=rt.camelCase(e);return e=rt.cssProps[a]||(rt.cssProps[a]=j(a)||a),s=rt.cssHooks[e]||rt.cssHooks[a],s&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=S(t,e,o)),"normal"===i&&e in ee&&(i=ee[e]),""===n||n?(r=parseFloat(i),n===!0||isFinite(r)?r||0:i):i}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,n,o){return n?Zt.test(rt.css(t,"display"))&&0===t.offsetWidth?Kt(t,te,function(){return $(t,e,o)}):$(t,e,o):void 0},set:function(t,n,o){var i,r=o&&Jt(t),s=o&&R(t,e,o,"border-box"===rt.css(t,"boxSizing",!1,r),r);return s&&(i=Rt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=rt.css(t,e)),E(t,n,s)}}}),rt.cssHooks.marginLeft=_(ot.reliableMarginLeft,function(t,e){return e?(parseFloat(S(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),rt.cssHooks.marginRight=_(ot.reliableMarginRight,function(t,e){return e?Kt(t,{display:"inline-block"},S,[t,"marginRight"]):void 0}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(n){for(var o=0,i={},r="string"==typeof n?n.split(" "):[n];4>o;o++)i[t+$t[o]+e]=r[o]||r[o-2]||r[0];return i}},Yt.test(t)||(rt.cssHooks[t+e].set=E)}),rt.fn.extend({css:function(t,e){return Ct(this,function(t,e,n){var o,i,r={},s=0;if(rt.isArray(e)){for(o=Jt(t),i=e.length;i>s;s++)r[e[s]]=rt.css(t,e[s],!1,o);return r}return void 0!==n?rt.style(t,e,n):rt.css(t,e)},t,e,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Bt(this)?rt(this).show():rt(this).hide()})}}),rt.Tween=N,N.prototype={constructor:N,init:function(t,e,n,o,i,r){this.elem=t,this.prop=n,this.easing=i||rt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=r||(rt.cssNumber[n]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,n=N.propHooks[this.prop];return this.options.duration?this.pos=e=rt.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),n&&n.set?n.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.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=rt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[rt.cssProps[t.prop]]&&!rt.cssHooks[t.prop]?t.elem[t.prop]=t.now:rt.style(t.elem,t.prop,t.now+t.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},rt.fx=N.prototype.init,rt.fx.step={};var ie,re,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;rt.Animation=rt.extend(P,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return l(n.elem,t,Rt.exec(e),n),n}]},tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,o=0,i=t.length;i>o;o++)n=t[o],P.tweeners[n]=P.tweeners[n]||[],P.tweeners[n].unshift(e)},prefilters:[F],prefilter:function(t,e){e?P.prefilters.unshift(t):P.prefilters.push(t)}}),rt.speed=function(t,e,n){var o=t&&"object"==typeof t?rt.extend({},t):{complete:n||!n&&e||rt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!rt.isFunction(e)&&e};return o.duration=rt.fx.off?0:"number"==typeof o.duration?o.duration:o.duration in rt.fx.speeds?rt.fx.speeds[o.duration]:rt.fx.speeds._default,(null==o.queue||o.queue===!0)&&(o.queue="fx"),o.old=o.complete,o.complete=function(){rt.isFunction(o.old)&&o.old.call(this),o.queue&&rt.dequeue(this,o.queue)},o},rt.fn.extend({fadeTo:function(t,e,n,o){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:e},t,n,o)},animate:function(t,e,n,o){var i=rt.isEmptyObject(t),r=rt.speed(e,n,o),s=function(){var e=P(this,rt.extend({},t),r);(i||Tt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||r.queue===!1?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var o=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",r=rt.timers,s=Tt.get(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&ae.test(i)&&o(s[i]);for(i=r.length;i--;)r[i].elem!==this||null!=t&&r[i].queue!==t||(r[i].anim.stop(n),e=!1,r.splice(i,1));(e||!n)&&rt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Tt.get(this),o=n[t+"queue"],i=n[t+"queueHooks"],r=rt.timers,s=o?o.length:0;for(n.finish=!0,rt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;s>e;e++)o[e]&&o[e].finish&&o[e].finish.call(this);delete n.finish})}}),rt.each(["toggle","show","hide"],function(t,e){var n=rt.fn[e];rt.fn[e]=function(t,o,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(L(e,!0),t,o,i)}}),rt.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){rt.fn[t]=function(t,n,o){return this.animate(e,t,n,o)}}),rt.timers=[],rt.fx.tick=function(){var t,e=0,n=rt.timers;for(ie=rt.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||rt.fx.stop(),
  3. ie=void 0},rt.fx.timer=function(t){rt.timers.push(t),t()?rt.fx.start():rt.timers.pop()},rt.fx.interval=13,rt.fx.start=function(){re||(re=t.setInterval(rt.fx.tick,rt.fx.interval))},rt.fx.stop=function(){t.clearInterval(re),re=null},rt.fx.speeds={slow:600,fast:200,_default:400},rt.fn.delay=function(e,n){return e=rt.fx?rt.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,o){var i=t.setTimeout(n,e);o.stop=function(){t.clearTimeout(i)}})},function(){var t=V.createElement("input"),e=V.createElement("select"),n=e.appendChild(V.createElement("option"));t.type="checkbox",ot.checkOn=""!==t.value,ot.optSelected=n.selected,e.disabled=!0,ot.optDisabled=!n.disabled,t=V.createElement("input"),t.value="t",t.type="radio",ot.radioValue="t"===t.value}();var ce,le=rt.expr.attrHandle;rt.fn.extend({attr:function(t,e){return Ct(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var o,i,r=t.nodeType;return 3!==r&&8!==r&&2!==r?"undefined"==typeof t.getAttribute?rt.prop(t,e,n):(1===r&&rt.isXMLDoc(t)||(e=e.toLowerCase(),i=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?ce:void 0)),void 0!==n?null===n?void rt.removeAttr(t,e):i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(o=i.get(t,e))?o:(o=rt.find.attr(t,e),null==o?void 0:o)):void 0},attrHooks:{type:{set:function(t,e){if(!ot.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,o,i=0,r=e&&e.match(wt);if(r&&1===t.nodeType)for(;n=r[i++];)o=rt.propFix[n]||n,rt.expr.match.bool.test(n)&&(t[o]=!1),t.removeAttribute(n)}}),ce={set:function(t,e,n){return e===!1?rt.removeAttr(t,n):t.setAttribute(n,n),n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=le[e]||rt.find.attr;le[e]=function(t,e,o){var i,r;return o||(r=le[e],le[e]=i,i=null!=n(t,e,o)?e.toLowerCase():null,le[e]=r),i}});var ue=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return Ct(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[rt.propFix[t]||t]})}}),rt.extend({prop:function(t,e,n){var o,i,r=t.nodeType;return 3!==r&&8!==r&&2!==r?(1===r&&rt.isXMLDoc(t)||(e=rt.propFix[e]||e,i=rt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:t[e]=n:i&&"get"in i&&null!==(o=i.get(t,e))?o:t[e]):void 0},propHooks:{tabIndex:{get:function(t){var e=rt.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ot.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this});var de=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,n,o,i,r,s,a,c=0;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,I(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[c++];)if(i=I(n),o=1===n.nodeType&&(" "+i+" ").replace(de," ")){for(s=0;r=e[s++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");a=rt.trim(o),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,o,i,r,s,a,c=0;if(rt.isFunction(t))return this.each(function(e){rt(this).removeClass(t.call(this,e,I(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[c++];)if(i=I(n),o=1===n.nodeType&&(" "+i+" ").replace(de," ")){for(s=0;r=e[s++];)for(;o.indexOf(" "+r+" ")>-1;)o=o.replace(" "+r+" "," ");a=rt.trim(o),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):rt.isFunction(t)?this.each(function(n){rt(this).toggleClass(t.call(this,n,I(this),e),e)}):this.each(function(){var e,o,i,r;if("string"===n)for(o=0,i=rt(this),r=t.match(wt)||[];e=r[o++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(void 0===t||"boolean"===n)&&(e=I(this),e&&Tt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Tt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,o=0;for(e=" "+t+" ";n=this[o++];)if(1===n.nodeType&&(" "+I(n)+" ").replace(de," ").indexOf(e)>-1)return!0;return!1}});var fe=/\r/g;rt.fn.extend({val:function(t){var e,n,o,i=this[0];return arguments.length?(o=rt.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=o?t.call(this,n,rt(this).val()):t,null==i?i="":"number"==typeof i?i+="":rt.isArray(i)&&(i=rt.map(i,function(t){return null==t?"":t+""})),e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=rt.valHooks[i.type]||rt.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(fe,""):null==n?"":n)):void 0}}),rt.extend({valHooks:{option:{get:function(t){return rt.trim(t.value)}},select:{get:function(t){for(var e,n,o=t.options,i=t.selectedIndex,r="select-one"===t.type||0>i,s=r?null:[],a=r?i+1:o.length,c=0>i?a:r?i:0;a>c;c++)if(n=o[c],(n.selected||c===i)&&(ot.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!rt.nodeName(n.parentNode,"optgroup"))){if(e=rt(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,o,i=t.options,r=rt.makeArray(e),s=i.length;s--;)o=i[s],(o.selected=rt.inArray(rt.valHooks.option.get(o),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){return rt.isArray(e)?t.checked=rt.inArray(rt(t).val(),e)>-1:void 0}},ot.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var he=/^(?:focusinfocus|focusoutblur)$/;rt.extend(rt.event,{trigger:function(e,n,o,i){var r,s,a,c,l,u,p,d=[o||V],f=nt.call(e,"type")?e.type:e,h=nt.call(e,"namespace")?e.namespace.split("."):[];if(s=a=o=o||V,3!==o.nodeType&&8!==o.nodeType&&!he.test(f+rt.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),l=f.indexOf(":")<0&&"on"+f,e=e[rt.expando]?e:new rt.Event(f,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),n=null==n?[e]:rt.makeArray(n,[e]),p=rt.event.special[f]||{},i||!p.trigger||p.trigger.apply(o,n)!==!1)){if(!i&&!p.noBubble&&!rt.isWindow(o)){for(c=p.delegateType||f,he.test(c+f)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(o.ownerDocument||V)&&d.push(a.defaultView||a.parentWindow||t)}for(r=0;(s=d[r++])&&!e.isPropagationStopped();)e.type=r>1?c:p.bindType||f,u=(Tt.get(s,"events")||{})[e.type]&&Tt.get(s,"handle"),u&&u.apply(s,n),u=l&&s[l],u&&u.apply&&At(s)&&(e.result=u.apply(s,n),e.result===!1&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||p._default&&p._default.apply(d.pop(),n)!==!1||!At(o)||l&&rt.isFunction(o[f])&&!rt.isWindow(o)&&(a=o[l],a&&(o[l]=null),rt.event.triggered=f,o[f](),rt.event.triggered=void 0,a&&(o[l]=a)),e.result}},simulate:function(t,e,n){var o=rt.extend(new rt.Event,n,{type:t,isSimulated:!0});rt.event.trigger(o,null,e),o.isDefaultPrevented()&&n.preventDefault()}}),rt.fn.extend({trigger:function(t,e){return this.each(function(){rt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?rt.event.trigger(t,e,n,!0):void 0}}),rt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){rt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),ot.focusin="onfocusin"in t,ot.focusin||rt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){rt.event.simulate(e,t.target,rt.event.fix(t))};rt.event.special[e]={setup:function(){var o=this.ownerDocument||this,i=Tt.access(o,e);i||o.addEventListener(t,n,!0),Tt.access(o,e,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this,i=Tt.access(o,e)-1;i?Tt.access(o,e,i):(o.removeEventListener(t,n,!0),Tt.remove(o,e))}}});var ye=t.location,ge=rt.now(),me=/\?/;rt.parseJSON=function(t){return JSON.parse(t+"")},rt.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(o){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&rt.error("Invalid XML: "+e),n};var be=/#.*$/,ve=/([?&])_=[^&]*/,xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,we=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ke=/^(?:GET|HEAD)$/,Ce=/^\/\//,Ae={},Te={},Se="*/".concat("*"),_e=V.createElement("a");_e.href=ye.href,rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ye.href,type:"GET",isLocal:we.test(ye.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Se,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":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?U(U(t,rt.ajaxSettings),e):U(rt.ajaxSettings,t)},ajaxPrefilter:M(Ae),ajaxTransport:M(Te),ajax:function(e,n){function o(e,n,o,a){var l,p,b,v,w,C=n;2!==x&&(x=2,c&&t.clearTimeout(c),i=void 0,s=a||"",k.readyState=e>0?4:0,l=e>=200&&300>e||304===e,o&&(v=z(d,k,o)),v=W(d,v,k,l),l?(d.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(rt.lastModified[r]=w),w=k.getResponseHeader("etag"),w&&(rt.etag[r]=w)),204===e||"HEAD"===d.type?C="nocontent":304===e?C="notmodified":(C=v.state,p=v.data,b=v.error,l=!b)):(b=C,(e||!C)&&(C="error",0>e&&(e=0))),k.status=e,k.statusText=(n||C)+"",l?y.resolveWith(f,[p,C,k]):y.rejectWith(f,[k,C,b]),k.statusCode(m),m=void 0,u&&h.trigger(l?"ajaxSuccess":"ajaxError",[k,d,l?p:b]),g.fireWith(f,[k,C]),u&&(h.trigger("ajaxComplete",[k,d]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,r,s,a,c,l,u,p,d=rt.ajaxSetup({},n),f=d.context||d,h=d.context&&(f.nodeType||f.jquery)?rt(f):rt.event,y=rt.Deferred(),g=rt.Callbacks("once memory"),m=d.statusCode||{},b={},v={},x=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=xe.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=v[n]=v[n]||t,b[t]=e),this},overrideMimeType:function(t){return x||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)m[e]=[m[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),o(0,e),this}};if(y.promise(k).complete=g.add,k.success=k.done,k.error=k.fail,d.url=((e||d.url||ye.href)+"").replace(be,"").replace(Ce,ye.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=rt.trim(d.dataType||"*").toLowerCase().match(wt)||[""],null==d.crossDomain){l=V.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=_e.protocol+"//"+_e.host!=l.protocol+"//"+l.host}catch(C){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=rt.param(d.data,d.traditional)),H(Ae,d,n,k),2===x)return k;u=rt.event&&d.global,u&&0===rt.active++&&rt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!ke.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(me.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=ve.test(r)?r.replace(ve,"$1_="+ge++):r+(me.test(r)?"&":"?")+"_="+ge++)),d.ifModified&&(rt.lastModified[r]&&k.setRequestHeader("If-Modified-Since",rt.lastModified[r]),rt.etag[r]&&k.setRequestHeader("If-None-Match",rt.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Se+"; q=0.01":""):d.accepts["*"]);for(p in d.headers)k.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(d.beforeSend.call(f,k,d)===!1||2===x))return k.abort();w="abort";for(p in{success:1,error:1,complete:1})k[p](d[p]);if(i=H(Te,d,n,k)){if(k.readyState=1,u&&h.trigger("ajaxSend",[k,d]),2===x)return k;d.async&&d.timeout>0&&(c=t.setTimeout(function(){k.abort("timeout")},d.timeout));try{x=1,i.send(b,o)}catch(C){if(!(2>x))throw C;o(-1,C)}}else o(-1,"No Transport");return k},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,void 0,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,n,o,i){return rt.isFunction(n)&&(i=i||o,o=n,n=void 0),rt.ajax(rt.extend({url:t,type:e,dataType:i,data:n,success:o},rt.isPlainObject(t)&&t))}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(t){var e;return rt.isFunction(t)?this.each(function(e){rt(this).wrapAll(t.call(this,e))}):(this[0]&&(e=rt(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 rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(n){rt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return!rt.expr.filters.visible(t)},rt.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var je=/%20/g,Ee=/\[\]$/,Re=/\r?\n/g,$e=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,o=[],i=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){i(this.name,this.value)});else for(n in t)Q(n,t[n],e,i);return o.join("&").replace(je,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Be.test(this.nodeName)&&!$e.test(t)&&(this.checked||!Nt.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:n.replace(Re,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Ne={0:200,1223:204},De=rt.ajaxSettings.xhr();ot.cors=!!De&&"withCredentials"in De,ot.ajax=De=!!De,rt.ajaxTransport(function(e){var n,o;return ot.cors||De&&!e.crossDomain?{send:function(i,r){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(t){return function(){n&&(n=o=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ne[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),o=a.onerror=n("error"),void 0!==a.onabort?a.onabort=o:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&o()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(c){if(n)throw c}},abort:function(){n&&n()}}:void 0}),rt.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 rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),rt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(o,i){e=rt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),V.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Le=[],Oe=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Le.pop()||rt.expando+"_"+ge++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(e,n,o){var i,r,s,a=e.jsonp!==!1&&(Oe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Oe.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=rt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Oe,"$1"+i):e.jsonp!==!1&&(e.url+=(me.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||rt.error(i+" was not called"),s[0]},e.dataTypes[0]="json",r=t[i],t[i]=function(){s=arguments},o.always(function(){void 0===r?rt(t).removeProp(i):t[i]=r,e[i]&&(e.jsonpCallback=n.jsonpCallback,Le.push(i)),s&&rt.isFunction(r)&&r(s[0]),s=r=void 0}),"script"):void 0}),ot.createHTMLDocument=function(){var t=V.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),rt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||(ot.createHTMLDocument?V.implementation.createHTMLDocument(""):V);var o=ht.exec(t),i=!n&&[];return o?[e.createElement(o[1])]:(o=d([t],e,i),i&&i.length&&rt(i).remove(),rt.merge([],o.childNodes))};var Fe=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&Fe)return Fe.apply(this,arguments);var o,i,r,s=this,a=t.indexOf(" ");return a>-1&&(o=rt.trim(t.slice(a)),t=t.slice(0,a)),rt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&rt.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(o?rt("<div>").append(rt.parseHTML(t)).find(o):t)}).always(n&&function(t,e){s.each(function(){n.apply(s,r||[t.responseText,e,t])})}),this},rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length},rt.offset={setOffset:function(t,e,n){var o,i,r,s,a,c,l,u=rt.css(t,"position"),p=rt(t),d={};"static"===u&&(t.style.position="relative"),a=p.offset(),r=rt.css(t,"top"),c=rt.css(t,"left"),l=("absolute"===u||"fixed"===u)&&(r+c).indexOf("auto")>-1,l?(o=p.position(),s=o.top,i=o.left):(s=parseFloat(r)||0,i=parseFloat(c)||0),rt.isFunction(e)&&(e=e.call(t,n,rt.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+i),"using"in e?e.using.call(t,d):p.css(d)}},rt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,n,o=this[0],i={top:0,left:0},r=o&&o.ownerDocument;return r?(e=r.documentElement,rt.contains(e,o)?(i=o.getBoundingClientRect(),n=X(r),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i):void 0},position:function(){if(this[0]){var t,e,n=this[0],o={top:0,left:0};return"fixed"===rt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(o=t.offset()),o.top+=rt.css(t[0],"borderTopWidth",!0),o.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-o.top-rt.css(n,"marginTop",!0),left:e.left-o.left-rt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||Gt})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;rt.fn[t]=function(o){return Ct(this,function(t,o,i){var r=X(t);return void 0===i?r?r[e]:t[o]:void(r?r.scrollTo(n?r.pageXOffset:i,n?i:r.pageYOffset):t[o]=i)},t,o,arguments.length)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=_(ot.pixelPosition,function(t,n){return n?(n=S(t,e),Vt.test(n)?rt(t).position()[e]+"px":n):void 0})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,o){rt.fn[o]=function(o,i){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(o===!0||i===!0?"margin":"border");return Ct(this,function(e,n,o){var i;return rt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===o?rt.css(e,n,s):rt.style(e,n,o,s)},e,r?o:void 0,r,null)}})}),rt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,o){return this.on(e,t,n,o)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var qe=t.jQuery,Pe=t.$;return rt.noConflict=function(e){return t.$===rt&&(t.$=Pe),e&&t.jQuery===rt&&(t.jQuery=qe),rt},e||(t.jQuery=t.$=rt),rt}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.io=t()}}(function(){var t;return function e(t,n,o){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n?n:e)},u,u.exports,e,t,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(t,e,n){e.exports=t("./lib/")},{"./lib/":2}],2:[function(t,e,n){e.exports=t("./socket"),e.exports.parser=t("engine.io-parser")},{"./socket":3,"engine.io-parser":19}],3:[function(t,e,n){(function(n){function o(t,e){if(!(this instanceof o))return new o(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=u(t),e.hostname=t.host,e.secure="https"==t.protocol||"wss"==t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=u(e.host).host),this.secure=null!=e.secure?e.secure:n.location&&"https:"==location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||(n.location?location.hostname:"localhost"),this.port=e.port||(n.location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=d.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate?e.perMessageDeflate||{}:!1,!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized?null:e.rejectUnauthorized;var i="object"==typeof n&&n;i.global===i&&e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),this.open()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var r=t("./transports"),s=t("component-emitter"),a=t("debug")("engine.io-client:socket"),c=t("indexof"),l=t("engine.io-parser"),u=t("parseuri"),p=t("parsejson"),d=t("parseqs");e.exports=o,o.priorWebsocketSuccess=!1,s(o.prototype),o.protocol=l.protocol,o.Socket=o,o.Transport=t("./transport"),o.transports=t("./transports"),o.parser=t("engine.io-parser"),o.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=i(this.query);e.EIO=l.protocol,e.transport=t,this.id&&(e.sid=this.id);var n=new r[t]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders});return n},o.prototype.open=function(){var t;if(this.rememberUpgrade&&o.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},o.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},o.prototype.probe=function(t){function e(){if(d.onlyBinaryUpgrades){var e=!this.supportsBinary&&d.transport.supportsBinary;p=p||e}p||(a('probe transport "%s" opened',t),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(e){if(!p)if("pong"==e.type&&"probe"==e.data){if(a('probe transport "%s" pong',t),d.upgrading=!0,d.emit("upgrading",u),!u)return;o.priorWebsocketSuccess="websocket"==u.name,a('pausing current transport "%s"',d.transport.name),d.transport.pause(function(){p||"closed"!=d.readyState&&(a("changing transport and sending upgrade packet"),l(),d.setTransport(u),u.send([{type:"upgrade"}]),d.emit("upgrade",u),u=null,d.upgrading=!1,d.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=u.name,d.emit("upgradeError",n)}}))}function n(){p||(p=!0,l(),u.close(),u=null)}function i(e){var o=new Error("probe error: "+e);o.transport=u.name,n(),a('probe transport "%s" failed because of error: %s',t,e),d.emit("upgradeError",o)}function r(){i("transport closed")}function s(){i("socket closed")}function c(t){u&&t.name!=u.name&&(a('"%s" works - aborting "%s"',t.name,u.name),n())}function l(){u.removeListener("open",e),u.removeListener("error",i),u.removeListener("close",r),d.removeListener("close",s),d.removeListener("upgrading",c)}a('probing transport "%s"',t);var u=this.createTransport(t,{probe:1}),p=!1,d=this;o.priorWebsocketSuccess=!1,u.once("open",e),u.once("error",i),u.once("close",r),this.once("close",s),this.once("upgrading",c),u.open()},o.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",o.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;e>t;t++)this.probe(this.upgrades[t])}},o.prototype.onPacket=function(t){if("opening"==this.readyState||"open"==this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(p(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},o.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},o.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!=e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},o.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},o.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},o.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},o.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},o.prototype.write=o.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},o.prototype.sendPacket=function(t,e,n,o){if("function"==typeof e&&(o=e,e=void 0),"function"==typeof n&&(o=n,n=null),"closing"!=this.readyState&&"closed"!=this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}},o.prototype.close=function(){function t(){o.onClose("forced close"),a("socket closing - telling transport to close"),o.transport.close()}function e(){o.removeListener("upgrade",e),o.removeListener("upgradeError",e),t()}function n(){o.once("upgrade",e),o.once("upgradeError",e)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var o=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},o.prototype.onError=function(t){a("socket error %j",t),o.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},o.prototype.onClose=function(t,e){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},o.prototype.filterUpgrades=function(t){
  4. for(var e=[],n=0,o=t.length;o>n;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./transport":4,"./transports":5,"component-emitter":15,debug:17,"engine.io-parser":19,indexof:23,parsejson:26,parseqs:27,parseuri:28}],4:[function(t,e,n){function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders}var i=t("engine.io-parser"),r=t("component-emitter");e.exports=o,r(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!=this.readyState&&""!=this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!=this.readyState&&"open"!=this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!=this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":15,"engine.io-parser":19}],5:[function(t,e,n){(function(e){function o(t){var n,o=!1,a=!1,c=!1!==t.jsonp;if(e.location){var l="https:"==location.protocol,u=location.port;u||(u=l?443:80),o=t.hostname!=location.hostname||u!=t.port,a=t.secure!=l}if(t.xdomain=o,t.xscheme=a,n=new i(t),"open"in n&&!t.forceJSONP)return new r(t);if(!c)throw new Error("JSONP disabled");return new s(t)}var i=t("xmlhttprequest-ssl"),r=t("./polling-xhr"),s=t("./polling-jsonp"),a=t("./websocket");n.polling=o,n.websocket=a}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./polling-jsonp":6,"./polling-xhr":7,"./websocket":9,"xmlhttprequest-ssl":10}],6:[function(t,e,n){(function(n){function o(){}function i(t){r.call(this,t),this.query=this.query||{},a||(n.___eio||(n.___eio=[]),a=n.___eio),this.index=a.length;var e=this;a.push(function(t){e.onData(t)}),this.query.j=this.index,n.document&&n.addEventListener&&n.addEventListener("beforeunload",function(){e.script&&(e.script.onerror=o)},!1)}var r=t("./polling"),s=t("component-inherit");e.exports=i;var a,c=/\n/g,l=/\\n/g;s(i,r),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var o="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);o&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){o(),e()}function o(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+i.iframeId+'">';r=document.createElement(e)}catch(t){r=document.createElement("iframe"),r.name=i.iframeId,r.src="javascript:0"}r.id=i.iframeId,i.form.appendChild(r),i.iframe=r}var i=this;if(!this.form){var r,s=document.createElement("form"),a=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=u,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),o(),t=t.replace(l,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(p){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./polling":8,"component-inherit":16}],7:[function(t,e,n){(function(n){function o(){}function i(t){if(c.call(this,t),n.location){var e="https:"==location.protocol,o=location.port;o||(o=e?443:80),this.xd=t.hostname!=n.location.hostname||o!=t.port,this.xs=t.secure!=e}else this.extraHeaders=t.extraHeaders}function r(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!=t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in r.requests)r.requests.hasOwnProperty(t)&&r.requests[t].abort()}var a=t("xmlhttprequest-ssl"),c=t("./polling"),l=t("component-emitter"),u=t("component-inherit"),p=t("debug")("engine.io-client:polling-xhr");e.exports=i,e.exports.Request=r,u(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.extraHeaders=this.extraHeaders,new r(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,o=this.request({method:"POST",data:t,isBinary:n}),i=this;o.on("success",e),o.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=o},i.prototype.doPoll=function(){p("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(r.prototype),r.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new a(t),o=this;try{p("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders){e.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}}catch(s){}if(this.supportsBinary&&(e.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(s){}"withCredentials"in e&&(e.withCredentials=!0),this.hasXDR()?(e.onload=function(){o.onLoad()},e.onerror=function(){o.onError(e.responseText)}):e.onreadystatechange=function(){4==e.readyState&&(200==e.status||1223==e.status?o.onLoad():setTimeout(function(){o.onError(e.status)},0))},p("xhr data %s",this.data),e.send(this.data)}catch(s){return void setTimeout(function(){o.onError(s)},0)}n.document&&(this.index=r.requestsCount++,r.requests[this.index]=this)},r.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},r.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},r.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},r.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,t)try{this.xhr.abort()}catch(e){}n.document&&delete r.requests[this.index],this.xhr=null}},r.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(n){}if("application/octet-stream"===e)t=this.xhr.response;else if(this.supportsBinary)try{t=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(n){for(var o=new Uint8Array(this.xhr.response),i=[],r=0,s=o.length;s>r;r++)i.push(o[r]);t=String.fromCharCode.apply(null,i)}else t=this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},r.prototype.hasXDR=function(){return"undefined"!=typeof n.XDomainRequest&&!this.xs&&this.enablesXDR},r.prototype.abort=function(){this.cleanup()},n.document&&(r.requestsCount=0,r.requests={},n.attachEvent?n.attachEvent("onunload",s):n.addEventListener&&n.addEventListener("beforeunload",s,!1))}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./polling":8,"component-emitter":15,"component-inherit":16,debug:17,"xmlhttprequest-ssl":10}],8:[function(t,e,n){function o(t){var e=t&&t.forceBase64;u&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=t("../transport"),r=t("parseqs"),s=t("engine.io-parser"),a=t("component-inherit"),c=t("yeast"),l=t("debug")("engine.io-client:polling");e.exports=o;var u=function(){var e=t("xmlhttprequest-ssl"),n=new e({xdomain:!1});return null!=n.responseType}();a(o,i),o.prototype.name="polling",o.prototype.doOpen=function(){this.poll()},o.prototype.pause=function(t){function e(){l("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var o=0;this.polling&&(l("we are currently polling - waiting to pause"),o++,this.once("pollComplete",function(){l("pre-pause polling complete"),--o||e()})),this.writable||(l("we are currently writing - waiting to pause"),o++,this.once("drain",function(){l("pre-pause writing complete"),--o||e()}))}else e()},o.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},o.prototype.onData=function(t){var e=this;l("polling got data %s",t);var n=function(t,n,o){return"opening"==e.readyState&&e.onOpen(),"close"==t.type?(e.onClose(),!1):void e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},o.prototype.doClose=function(){function t(){l("writing close packet"),e.write([{type:"close"}])}var e=this;"open"==this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},o.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")},e=this;s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},o.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=r.encode(t),this.port&&("https"==e&&443!=this.port||"http"==e&&80!=this.port)&&(n=":"+this.port),t.length&&(t="?"+t);var o=-1!==this.hostname.indexOf(":");return e+"://"+(o?"["+this.hostname+"]":this.hostname)+n+this.path+t}},{"../transport":4,"component-inherit":16,debug:17,"engine.io-parser":19,parseqs:27,"xmlhttprequest-ssl":10,yeast:30}],9:[function(t,e,n){(function(n){function o(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,i.call(this,t)}var i=t("../transport"),r=t("engine.io-parser"),s=t("parseqs"),a=t("component-inherit"),c=t("yeast"),l=t("debug")("engine.io-client:websocket"),u=n.WebSocket||n.MozWebSocket,p=u;if(!p&&"undefined"==typeof window)try{p=t("ws")}catch(d){}e.exports=o,a(o,i),o.prototype.name="websocket",o.prototype.supportsBinary=!0,o.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=void 0,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.ws=u?new p(t):new p(t,e,n),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="buffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},o.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(o.prototype.onData=function(t){var e=this;setTimeout(function(){i.prototype.onData.call(e,t)},0)}),o.prototype.write=function(t){function e(){o.emit("flush"),setTimeout(function(){o.writable=!0,o.emit("drain")},0)}var o=this;this.writable=!1;for(var i=t.length,s=0,a=i;a>s;s++)!function(t){r.encodePacket(t,o.supportsBinary,function(r){if(!u){var s={};if(t.options&&(s.compress=t.options.compress),o.perMessageDeflate){var a="string"==typeof r?n.Buffer.byteLength(r):r.length;a<o.perMessageDeflate.threshold&&(s.compress=!1)}}try{u?o.ws.send(r):o.ws.send(r,s)}catch(c){l("websocket closed before onclose event")}--i||e()})}(t[s])},o.prototype.onClose=function(){i.prototype.onClose.call(this)},o.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},o.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"==e&&443!=this.port||"ws"==e&&80!=this.port)&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||(t.b64=1),t=s.encode(t),t.length&&(t="?"+t);var o=-1!==this.hostname.indexOf(":");return e+"://"+(o?"["+this.hostname+"]":this.hostname)+n+this.path+t},o.prototype.check=function(){return!(!p||"__initialize"in p&&this.name===o.prototype.name)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"../transport":4,"component-inherit":16,debug:17,"engine.io-parser":19,parseqs:27,ws:void 0,yeast:30}],10:[function(t,e,n){var o=t("has-cors");e.exports=function(t){var e=t.xdomain,n=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||o))return new XMLHttpRequest}catch(r){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(r){}if(!e)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(r){}}},{"has-cors":22}],11:[function(t,e,n){function o(t,e,n){function o(t,i){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(r=!0,e(t),e=n):0!==o.count||r||e(null,i)}var r=!1;return n=n||i,o.count=t,0===t?e():o}function i(){}e.exports=o},{}],12:[function(t,e,n){e.exports=function(t,e,n){var o=t.byteLength;if(e=e||0,n=n||o,t.slice)return t.slice(e,n);if(0>e&&(e+=o),0>n&&(n+=o),n>o&&(n=o),e>=o||e>=n||0===o)return new ArrayBuffer(0);for(var i=new Uint8Array(t),r=new Uint8Array(n-e),s=e,a=0;n>s;s++,a++)r[a]=i[s];return r.buffer}},{}],13:[function(t,e,n){!function(t){"use strict";n.encode=function(e){var n,o=new Uint8Array(e),i=o.length,r="";for(n=0;i>n;n+=3)r+=t[o[n]>>2],r+=t[(3&o[n])<<4|o[n+1]>>4],r+=t[(15&o[n+1])<<2|o[n+2]>>6],r+=t[63&o[n+2]];return i%3===2?r=r.substring(0,r.length-1)+"=":i%3===1&&(r=r.substring(0,r.length-2)+"=="),r},n.decode=function(e){var n,o,i,r,s,a=.75*e.length,c=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),p=new Uint8Array(u);for(n=0;c>n;n+=4)o=t.indexOf(e[n]),i=t.indexOf(e[n+1]),r=t.indexOf(e[n+2]),s=t.indexOf(e[n+3]),p[l++]=o<<2|i>>4,p[l++]=(15&i)<<4|r>>2,p[l++]=(3&r)<<6|63&s;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],14:[function(t,e,n){(function(t){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var o=n.buffer;if(n.byteLength!==o.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(o,n.byteOffset,n.byteLength)),o=i.buffer}t[e]=o}}}function o(t,e){e=e||{};var o=new r;n(t);for(var i=0;i<t.length;i++)o.append(t[i]);return e.type?o.getBlob(e.type):o.getBlob()}function i(t,e){return n(t),new Blob(t,e||{})}var r=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,s=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(e){return!1}}(),a=s&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(e){return!1}}(),c=r&&r.prototype.append&&r.prototype.getBlob;e.exports=function(){return s?a?t.Blob:i:c?o:void 0}()}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{}],15:[function(t,e,n){function o(t){return t?i(t):void 0}function i(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}e.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},o.prototype.once=function(t,e){function n(){o.off(t,n),e.apply(this,arguments)}var o=this;return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var o,i=0;i<n.length;i++)if(o=n[i],o===e||o.fn===e){n.splice(i,1);break}return this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var o=0,i=n.length;i>o;++o)n[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],16:[function(t,e,n){e.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],17:[function(t,e,n){function o(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),!e)return t;var o="color: "+this.color;t=[t[0],o,"color: inherit"].concat(Array.prototype.slice.call(t,1));var i=0,r=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(r=i))}),t.splice(r,0,o),t}function r(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(e){}}function a(){var t;try{t=n.storage.debug}catch(e){}return t}function c(){try{return window.localStorage}catch(t){}}n=e.exports=t("./debug"),n.log=r,n.formatArgs=i,n.save=s,n.load=a,n.useColors=o,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){return JSON.stringify(t)},n.enable(a())},{"./debug":18}],18:[function(t,e,n){function o(){return n.colors[u++%n.colors.length]}function i(t){function e(){}function i(){var t=i,e=+new Date,r=e-(l||e);t.diff=r,t.prev=l,t.curr=e,l=e,null==t.useColors&&(t.useColors=n.useColors()),null==t.color&&t.useColors&&(t.color=o());var s=Array.prototype.slice.call(arguments);s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(e,o){if("%%"===e)return e;a++;var i=n.formatters[o];if("function"==typeof i){var r=s[a];e=i.call(t,r),s.splice(a,1),a--}return e}),"function"==typeof n.formatArgs&&(s=n.formatArgs.apply(t,s));var c=i.log||n.log||void 0;c.apply(t,s)}e.enabled=!1,i.enabled=!0;var r=n.enabled(t)?i:e;return r.namespace=t,r}function r(t){n.save(t);for(var e=(t||"").split(/[\s,]+/),o=e.length,i=0;o>i;i++)e[i]&&(t=e[i].replace(/\*/g,".*?"),"-"===t[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")))}function s(){n.enable("")}function a(t){var e,o;for(e=0,o=n.skips.length;o>e;e++)if(n.skips[e].test(t))return!1;for(e=0,o=n.names.length;o>e;e++)if(n.names[e].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=i,n.coerce=c,n.disable=s,n.enable=r,n.enabled=a,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var l,u=0},{ms:25}],19:[function(t,e,n){(function(e){function o(t,e){var o="b"+n.packets[t.type]+t.data.data;return e(o)}function i(t,e,o){if(!e)return n.encodeBase64Packet(t,o);var i=t.data,r=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=m[t.type];for(var a=0;a<r.length;a++)s[a+1]=r[a];return o(s.buffer)}function r(t,e,o){if(!e)return n.encodeBase64Packet(t,o);var i=new FileReader;return i.onload=function(){t.data=i.result,n.encodePacket(t,e,!0,o)},i.readAsArrayBuffer(t.data)}function s(t,e,o){if(!e)return n.encodeBase64Packet(t,o);if(g)return r(t,e,o);var i=new Uint8Array(1);i[0]=m[t.type];var s=new x([i.buffer,t.data]);return o(s)}function a(t,e,n){for(var o=new Array(t.length),i=d(t.length,n),r=function(t,n,i){e(n,function(e,n){o[t]=n,i(e,o)})},s=0;s<t.length;s++)r(s,t[s],i)}var c=t("./keys"),l=t("has-binary"),u=t("arraybuffer.slice"),p=t("base64-arraybuffer"),d=t("after"),f=t("utf8"),h=navigator.userAgent.match(/Android/i),y=/PhantomJS/i.test(navigator.userAgent),g=h||y;n.protocol=3;var m=n.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=c(m),v={type:"error",data:"parser error"},x=t("blob");n.encodePacket=function(t,n,r,a){"function"==typeof n&&(a=n,n=!1),"function"==typeof r&&(a=r,r=null);var c=void 0===t.data?void 0:t.data.buffer||t.data;if(e.ArrayBuffer&&c instanceof ArrayBuffer)return i(t,n,a);if(x&&c instanceof e.Blob)return s(t,n,a);if(c&&c.base64)return o(t,a);var l=m[t.type];return void 0!==t.data&&(l+=r?f.encode(String(t.data)):String(t.data)),a(""+l)},n.encodeBase64Packet=function(t,o){var i="b"+n.packets[t.type];if(x&&t.data instanceof e.Blob){var r=new FileReader;return r.onload=function(){var t=r.result.split(",")[1];o(i+t)},r.readAsDataURL(t.data)}var s;try{s=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(a){for(var c=new Uint8Array(t.data),l=new Array(c.length),u=0;u<c.length;u++)l[u]=c[u];s=String.fromCharCode.apply(null,l)}return i+=e.btoa(s),o(i)},n.decodePacket=function(t,e,o){if("string"==typeof t||void 0===t){if("b"==t.charAt(0))return n.decodeBase64Packet(t.substr(1),e);if(o)try{t=f.decode(t)}catch(i){return v}var r=t.charAt(0);return Number(r)==r&&b[r]?t.length>1?{type:b[r],data:t.substring(1)}:{type:b[r]}:v}var s=new Uint8Array(t),r=s[0],a=u(t,1);return x&&"blob"===e&&(a=new x([a])),{type:b[r],data:a}},n.decodeBase64Packet=function(t,n){var o=b[t.charAt(0)];if(!e.ArrayBuffer)return{type:o,data:{base64:!0,data:t.substr(1)}};var i=p.decode(t.substr(1));return"blob"===n&&x&&(i=new x([i])),{type:o,data:i}},n.encodePayload=function(t,e,o){function i(t){return t.length+":"+t}function r(t,o){n.encodePacket(t,s?e:!1,!0,function(t){o(null,i(t))})}"function"==typeof e&&(o=e,e=null);var s=l(t);return e&&s?x&&!g?n.encodePayloadAsBlob(t,o):n.encodePayloadAsArrayBuffer(t,o):t.length?void a(t,r,function(t,e){return o(e.join(""))}):o("0:")},n.decodePayload=function(t,e,o){if("string"!=typeof t)return n.decodePayloadAsBinary(t,e,o);"function"==typeof e&&(o=e,e=null);var i;if(""==t)return o(v,0,1);for(var r,s,a="",c=0,l=t.length;l>c;c++){var u=t.charAt(c);if(":"!=u)a+=u;else{if(""==a||a!=(r=Number(a)))return o(v,0,1);if(s=t.substr(c+1,r),a!=s.length)return o(v,0,1);if(s.length){if(i=n.decodePacket(s,e,!0),v.type==i.type&&v.data==i.data)return o(v,0,1);var p=o(i,c+r,l);if(!1===p)return}c+=r,a=""}}return""!=a?o(v,0,1):void 0},n.encodePayloadAsArrayBuffer=function(t,e){function o(t,e){n.encodePacket(t,!0,!0,function(t){return e(null,t)})}return t.length?void a(t,o,function(t,n){var o=n.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),i=new Uint8Array(o),r=0;return n.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var o=new Uint8Array(t.length),s=0;s<t.length;s++)o[s]=t.charCodeAt(s);n=o.buffer}e?i[r++]=0:i[r++]=1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)i[r++]=parseInt(a[s]);i[r++]=255;for(var o=new Uint8Array(n),s=0;s<o.length;s++)i[r++]=o[s]}),e(i.buffer)}):e(new ArrayBuffer(0))},n.encodePayloadAsBlob=function(t,e){function o(t,e){n.encodePacket(t,!0,!0,function(t){var n=new Uint8Array(1);if(n[0]=1,"string"==typeof t){for(var o=new Uint8Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);t=o.buffer,n[0]=0}for(var r=t instanceof ArrayBuffer?t.byteLength:t.size,s=r.toString(),a=new Uint8Array(s.length+1),i=0;i<s.length;i++)a[i]=parseInt(s[i]);if(a[s.length]=255,x){var c=new x([n.buffer,a.buffer,t]);e(null,c)}})}a(t,o,function(t,n){return e(new x(n))})},n.decodePayloadAsBinary=function(t,e,o){"function"==typeof e&&(o=e,e=null);for(var i=t,r=[],s=!1;i.byteLength>0;){for(var a=new Uint8Array(i),c=0===a[0],l="",p=1;255!=a[p];p++){if(l.length>310){s=!0;break}l+=a[p]}if(s)return o(v,0,1);i=u(i,2+l.length),l=parseInt(l);var d=u(i,0,l);if(c)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(f){var h=new Uint8Array(d);d="";for(var p=0;p<h.length;p++)d+=String.fromCharCode(h[p])}r.push(d),i=u(i,l)}var y=r.length;r.forEach(function(t,i){o(n.decodePacket(t,e,!0),i,y)})}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./keys":20,after:11,"arraybuffer.slice":12,"base64-arraybuffer":13,blob:14,"has-binary":21,utf8:29}],20:[function(t,e,n){e.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var o in t)n.call(t,o)&&e.push(o);return e}},{}],21:[function(t,e,n){(function(n){function o(t){function e(t){if(!t)return!1;if(n.Buffer&&n.Buffer.isBuffer(t)||n.ArrayBuffer&&t instanceof ArrayBuffer||n.Blob&&t instanceof Blob||n.File&&t instanceof File)return!0;if(i(t)){for(var o=0;o<t.length;o++)if(e(t[o]))return!0}else if(t&&"object"==typeof t){t.toJSON&&(t=t.toJSON());for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0}return!1}return e(t)}var i=t("isarray");e.exports=o}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{isarray:24}],22:[function(t,e,n){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(o){e.exports=!1}},{}],23:[function(t,e,n){var o=[].indexOf;e.exports=function(t,e){if(o)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},{}],24:[function(t,e,n){e.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},{}],25:[function(t,e,n){function o(t){if(t=""+t,!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*c;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function i(t){return t>=u?Math.round(t/u)+"d":t>=l?Math.round(t/l)+"h":t>=c?Math.round(t/c)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function r(t){return s(t,u,"day")||s(t,l,"hour")||s(t,c,"minute")||s(t,a,"second")||t+" ms"}function s(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,c=60*a,l=60*c,u=24*l,p=365.25*u;e.exports=function(t,e){return e=e||{},"string"==typeof t?o(t):e["long"]?r(t):i(t)}},{}],26:[function(t,e,n){(function(t){var n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/^\s+/,a=/\s+$/;e.exports=function(e){return"string"==typeof e&&e?(e=e.replace(s,"").replace(a,""),t.JSON&&JSON.parse?JSON.parse(e):n.test(e.replace(o,"@").replace(i,"]").replace(r,""))?new Function("return "+e)():void 0):null}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{}],27:[function(t,e,n){n.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},n.decode=function(t){for(var e={},n=t.split("&"),o=0,i=n.length;i>o;o++){var r=n[o].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}},{}],28:[function(t,e,n){var o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(t){var e=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));for(var s=o.exec(t||""),a={},c=14;c--;)a[i[c]]=s[c]||"";return-1!=n&&-1!=r&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},{}],29:[function(e,n,o){(function(e){!function(i){function r(t){for(var e,n,o=[],i=0,r=t.length;r>i;)e=t.charCodeAt(i++),e>=55296&&56319>=e&&r>i?(n=t.charCodeAt(i++),56320==(64512&n)?o.push(((1023&e)<<10)+(1023&n)+65536):(o.push(e),i--)):o.push(e);return o}function s(t){for(var e,n=t.length,o=-1,i="";++o<n;)e=t[o],e>65535&&(e-=65536,i+=x(e>>>10&1023|55296),e=56320|1023&e),i+=x(e);return i}function a(t){if(t>=55296&&57343>=t)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return x(t>>e&63|128)}function l(t){if(0==(4294967168&t))return x(t);var e="";return 0==(4294965248&t)?e=x(t>>6&31|192):0==(4294901760&t)?(a(t),e=x(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=x(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=x(63&t|128)}function u(t){for(var e,n=r(t),o=n.length,i=-1,s="";++i<o;)e=n[i],s+=l(e);return s}function p(){if(v>=b)throw Error("Invalid byte index");var t=255&m[v];if(v++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function d(){var t,e,n,o,i;if(v>b)throw Error("Invalid byte index");if(v==b)return!1;if(t=255&m[v],v++,0==(128&t))return t;if(192==(224&t)){var e=p();if(i=(31&t)<<6|e,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=p(),n=p(),i=(15&t)<<12|e<<6|n,i>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=p(),n=p(),o=p(),i=(15&t)<<18|e<<12|n<<6|o,i>=65536&&1114111>=i))return i;throw Error("Invalid UTF-8 detected")}function f(t){m=r(t),b=m.length,v=0;for(var e,n=[];(e=d())!==!1;)n.push(e);return s(n)}var h="object"==typeof o&&o,y="object"==typeof n&&n&&n.exports==h&&n,g="object"==typeof e&&e;g.global!==g&&g.window!==g||(i=g);var m,b,v,x=String.fromCharCode,w={version:"2.0.0",encode:u,decode:f};if("function"==typeof t&&"object"==typeof t.amd&&t.amd)t(function(){return w});else if(h&&!h.nodeType)if(y)y.exports=w;else{
  5. var k={},C=k.hasOwnProperty;for(var A in w)C.call(w,A)&&(h[A]=w[A])}else i.utf8=w}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{}],30:[function(t,e,n){"use strict";function o(t){var e="";do e=a[t%c]+e,t=Math.floor(t/c);while(t>0);return e}function i(t){var e=0;for(p=0;p<t.length;p++)e=e*c+l[t.charAt(p)];return e}function r(){var t=o(+new Date);return t!==s?(u=0,s=t):t+"."+o(u++)}for(var s,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c=64,l={},u=0,p=0;c>p;p++)l[a[p]]=p;r.encode=o,r.decode=i,e.exports=r},{}],31:[function(t,e,n){function o(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o=i(t),r=o.source,l=o.id,u=o.path,p=c[l]&&u in c[l].nsps,d=e.forceNew||e["force new connection"]||!1===e.multiplex||p;return d?(a("ignoring socket cache for %s",r),n=s(r,e)):(c[l]||(a("new io instance for %s",r),c[l]=s(r,e)),n=c[l]),n.socket(o.path)}var i=t("./url"),r=t("socket.io-parser"),s=t("./manager"),a=t("debug")("socket.io-client");e.exports=n=o;var c=n.managers={};n.protocol=r.protocol,n.connect=o,n.Manager=t("./manager"),n.Socket=t("./socket")},{"./manager":32,"./socket":34,"./url":35,debug:39,"socket.io-parser":47}],32:[function(t,e,n){function o(t,e){return this instanceof o?(t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new a.Encoder,this.decoder=new a.Decoder,this.autoConnect=e.autoConnect!==!1,void(this.autoConnect&&this.open())):new o(t,e)}var i=t("engine.io-client"),r=t("./socket"),s=t("component-emitter"),a=t("socket.io-parser"),c=t("./on"),l=t("component-bind"),u=t("debug")("socket.io-client:manager"),p=t("indexof"),d=t("backo2"),f=Object.prototype.hasOwnProperty;e.exports=o,o.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)f.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},o.prototype.updateSocketIds=function(){for(var t in this.nsps)f.call(this.nsps,t)&&(this.nsps[t].id=this.engine.id)},s(o.prototype),o.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},o.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},o.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},o.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},o.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},o.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},o.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},o.prototype.open=o.prototype.connect=function(t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=i(this.uri,this.opts);var e=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var o=c(e,"open",function(){n.onopen(),t&&t()}),r=c(e,"error",function(e){if(u("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",e),t){var o=new Error("Connection error");o.data=e,t(o)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;u("connect attempt will timeout after %d",s);var a=setTimeout(function(){u("connect attempt timed out after %d",s),o.destroy(),e.close(),e.emit("error","timeout"),n.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(o),this.subs.push(r),this},o.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",l(this,"ondata"))),this.subs.push(c(t,"ping",l(this,"onping"))),this.subs.push(c(t,"pong",l(this,"onpong"))),this.subs.push(c(t,"error",l(this,"onerror"))),this.subs.push(c(t,"close",l(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",l(this,"ondecoded")))},o.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},o.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},o.prototype.ondata=function(t){this.decoder.add(t)},o.prototype.ondecoded=function(t){this.emit("packet",t)},o.prototype.onerror=function(t){u("error",t),this.emitAll("error",t)},o.prototype.socket=function(t){function e(){~p(o.connecting,n)||o.connecting.push(n)}var n=this.nsps[t];if(!n){n=new r(this,t),this.nsps[t]=n;var o=this;n.on("connecting",e),n.on("connect",function(){n.id=o.engine.id}),this.autoConnect&&e()}return n},o.prototype.destroy=function(t){var e=p(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},o.prototype.packet=function(t){u("writing packet %j",t);var e=this;e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var o=0;o<n.length;o++)e.engine.write(n[o],t.options);e.encoding=!1,e.processPacketQueue()}))},o.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},o.prototype.cleanup=function(){u("cleanup");for(var t;t=this.subs.shift();)t.destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},o.prototype.close=o.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"==this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},o.prototype.onclose=function(t){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},o.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();u("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(u("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(u("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(u("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},o.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},{"./on":33,"./socket":34,backo2:36,"component-bind":37,"component-emitter":38,debug:39,"engine.io-client":1,indexof:42,"socket.io-parser":47}],33:[function(t,e,n){function o(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}e.exports=o},{}],34:[function(t,e,n){function o(t,e){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.io.autoConnect&&this.open()}var i=t("socket.io-parser"),r=t("component-emitter"),s=t("to-array"),a=t("./on"),c=t("component-bind"),l=t("debug")("socket.io-client:socket"),u=t("has-binary");e.exports=n=o;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=r.prototype.emit;r(o.prototype),o.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",c(this,"onopen")),a(t,"packet",c(this,"onpacket")),a(t,"close",c(this,"onclose"))]}},o.prototype.open=o.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this.emit("connecting"),this)},o.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},o.prototype.emit=function(t){if(p.hasOwnProperty(t))return d.apply(this,arguments),this;var e=s(arguments),n=i.EVENT;u(e)&&(n=i.BINARY_EVENT);var o={type:n,data:e};return o.options={},o.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),delete this.flags,this},o.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},o.prototype.onopen=function(){l("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:i.CONNECT})},o.prototype.onclose=function(t){l("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},o.prototype.onpacket=function(t){if(t.nsp==this.nsp)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(t);break;case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:this.onack(t);break;case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},o.prototype.onevent=function(t){var e=t.data||[];l("emitting event %j",e),null!=t.id&&(l("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?d.apply(this,e):this.receiveBuffer.push(e)},o.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var o=s(arguments);l("sending ack %j",o);var r=u(o)?i.BINARY_ACK:i.ACK;e.packet({type:r,id:t,data:o})}}},o.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(l("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):l("bad ack %s",t.id)},o.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},o.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)d.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},o.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},o.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},o.prototype.close=o.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},o.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},{"./on":33,"component-bind":37,"component-emitter":38,debug:39,"has-binary":41,"socket.io-parser":47,"to-array":51}],35:[function(t,e,n){(function(n){function o(t,e){var o=t,e=e||n.location;null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"==t.charAt(0)&&(t="/"==t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(r("protocol-less url %s",t),t="undefined"!=typeof e?e.protocol+"//"+t:"https://"+t),r("parse %s",t),o=i(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var s=-1!==o.host.indexOf(":"),a=s?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+a+":"+o.port,o.href=o.protocol+"://"+a+(e&&e.port==o.port?"":":"+o.port),o}var i=t("parseuri"),r=t("debug")("socket.io-client:url");e.exports=o}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{debug:39,parseuri:45}],36:[function(t,e,n){function o(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}e.exports=o,o.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(t){this.ms=t},o.prototype.setMax=function(t){this.max=t},o.prototype.setJitter=function(t){this.jitter=t}},{}],37:[function(t,e,n){var o=[].slice;e.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var n=o.call(arguments,2);return function(){return e.apply(t,n.concat(o.call(arguments)))}}},{}],38:[function(t,e,n){function o(t){return t?i(t):void 0}function i(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}e.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o,i=0;i<n.length;i++)if(o=n[i],o===e||o.fn===e){n.splice(i,1);break}return this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var o=0,i=n.length;i>o;++o)n[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],39:[function(t,e,n){arguments[4][17][0].apply(n,arguments)},{"./debug":40,dup:17}],40:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{dup:18,ms:44}],41:[function(t,e,n){(function(n){function o(t){function e(t){if(!t)return!1;if(n.Buffer&&n.Buffer.isBuffer&&n.Buffer.isBuffer(t)||n.ArrayBuffer&&t instanceof ArrayBuffer||n.Blob&&t instanceof Blob||n.File&&t instanceof File)return!0;if(i(t)){for(var o=0;o<t.length;o++)if(e(t[o]))return!0}else if(t&&"object"==typeof t){t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON());for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0}return!1}return e(t)}var i=t("isarray");e.exports=o}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{isarray:43}],42:[function(t,e,n){arguments[4][23][0].apply(n,arguments)},{dup:23}],43:[function(t,e,n){arguments[4][24][0].apply(n,arguments)},{dup:24}],44:[function(t,e,n){arguments[4][25][0].apply(n,arguments)},{dup:25}],45:[function(t,e,n){arguments[4][28][0].apply(n,arguments)},{dup:28}],46:[function(t,e,n){(function(e){var o=t("isarray"),i=t("./is-buffer");n.deconstructPacket=function(t){function e(t){if(!t)return t;if(i(t)){var r={_placeholder:!0,num:n.length};return n.push(t),r}if(o(t)){for(var s=new Array(t.length),a=0;a<t.length;a++)s[a]=e(t[a]);return s}if("object"==typeof t&&!(t instanceof Date)){var s={};for(var c in t)s[c]=e(t[c]);return s}return t}var n=[],r=t.data,s=t;return s.data=e(r),s.attachments=n.length,{packet:s,buffers:n}},n.reconstructPacket=function(t,e){function n(t){if(t&&t._placeholder){var i=e[t.num];return i}if(o(t)){for(var r=0;r<t.length;r++)t[r]=n(t[r]);return t}if(t&&"object"==typeof t){for(var s in t)t[s]=n(t[s]);return t}return t}return t.data=n(t.data),t.attachments=void 0,t},n.removeBlobs=function(t,n){function r(t,c,l){if(!t)return t;if(e.Blob&&t instanceof Blob||e.File&&t instanceof File){s++;var u=new FileReader;u.onload=function(){l?l[c]=this.result:a=this.result,--s||n(a)},u.readAsArrayBuffer(t)}else if(o(t))for(var p=0;p<t.length;p++)r(t[p],p,t);else if(t&&"object"==typeof t&&!i(t))for(var d in t)r(t[d],d,t)}var s=0,a=t;r(a),s||n(a)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{"./is-buffer":48,isarray:43}],47:[function(t,e,n){function o(){}function i(t){var e="",o=!1;return e+=t.type,n.BINARY_EVENT!=t.type&&n.BINARY_ACK!=t.type||(e+=t.attachments,e+="-"),t.nsp&&"/"!=t.nsp&&(o=!0,e+=t.nsp),null!=t.id&&(o&&(e+=",",o=!1),e+=t.id),null!=t.data&&(o&&(e+=","),e+=p.stringify(t.data)),u("encoded %j as %s",t,e),e}function r(t,e){function n(t){var n=f.deconstructPacket(t),o=i(n.packet),r=n.buffers;r.unshift(o),e(r)}f.removeBlobs(t,n)}function s(){this.reconstructor=null}function a(t){var e={},o=0;if(e.type=Number(t.charAt(0)),null==n.types[e.type])return l();if(n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type){for(var i="";"-"!=t.charAt(++o)&&(i+=t.charAt(o),o!=t.length););if(i!=Number(i)||"-"!=t.charAt(o))throw new Error("Illegal attachments");e.attachments=Number(i)}if("/"==t.charAt(o+1))for(e.nsp="";++o;){var r=t.charAt(o);if(","==r)break;if(e.nsp+=r,o==t.length)break}else e.nsp="/";var s=t.charAt(o+1);if(""!==s&&Number(s)==s){for(e.id="";++o;){var r=t.charAt(o);if(null==r||Number(r)!=r){--o;break}if(e.id+=t.charAt(o),o==t.length)break}e.id=Number(e.id)}if(t.charAt(++o))try{e.data=p.parse(t.substr(o))}catch(a){return l()}return u("decoded %s as %j",t,e),e}function c(t){this.reconPack=t,this.buffers=[]}function l(t){return{type:n.ERROR,data:"parser error"}}var u=t("debug")("socket.io-parser"),p=t("json3"),d=(t("isarray"),t("component-emitter")),f=t("./binary"),h=t("./is-buffer");n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=o,n.Decoder=s,o.prototype.encode=function(t,e){if(u("encoding packet %j",t),n.BINARY_EVENT==t.type||n.BINARY_ACK==t.type)r(t,e);else{var o=i(t);e([o])}},d(s.prototype),s.prototype.add=function(t){var e;if("string"==typeof t)e=a(t),n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type?(this.reconstructor=new c(e),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",e)):this.emit("decoded",e);else{if(!h(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,this.emit("decoded",e))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length==this.reconPack.attachments){var e=f.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":46,"./is-buffer":48,"component-emitter":49,debug:39,isarray:43,json3:50}],48:[function(t,e,n){(function(t){function n(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}e.exports=n}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{}],49:[function(t,e,n){arguments[4][15][0].apply(n,arguments)},{dup:15}],50:[function(e,n,o){(function(e){(function(){function i(t,e){function n(t){if(n[t]!==g)return n[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=n("json-stringify")&&n("json-parse");else{var s,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var c=e.stringify,u="function"==typeof c&&v;if(u){(s=function(){return 1}).toJSON=s;try{u="0"===c(0)&&"0"===c(new o)&&'""'==c(new r)&&c(b)===g&&c(g)===g&&c()===g&&"1"===c(s)&&"[1]"==c([s])&&"[null]"==c([g])&&"null"==c(null)&&"[null,null,null]"==c([g,b,null])&&c({a:[s,!0,!1,null,"\x00\b\n\f\r    "]})==a&&"1"===c(null,s)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new l(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new l(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new l(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new l(-1))}catch(p){u=!1}}i=u}if("json-parse"==t){var d=e.parse;if("function"==typeof d)try{if(0===d("0")&&!d(!1)){s=d(a);var f=5==s.a.length&&1===s.a[0];if(f){try{f=!d('" "')}catch(p){}if(f)try{f=1!==d("01")}catch(p){}if(f)try{f=1!==d("1.")}catch(p){}}}}catch(p){f=!1}i=f}}return n[t]=!!i}t||(t=c.Object()),e||(e=c.Object());var o=t.Number||c.Number,r=t.String||c.String,a=t.Object||c.Object,l=t.Date||c.Date,u=t.SyntaxError||c.SyntaxError,p=t.TypeError||c.TypeError,d=t.Math||c.Math,f=t.JSON||c.JSON;"object"==typeof f&&f&&(e.stringify=f.stringify,e.parse=f.parse);var h,y,g,m=a.prototype,b=m.toString,v=new l(-0xc782b5b800cec);try{v=-109252==v.getUTCFullYear()&&0===v.getUTCMonth()&&1===v.getUTCDate()&&10==v.getUTCHours()&&37==v.getUTCMinutes()&&6==v.getUTCSeconds()&&708==v.getUTCMilliseconds()}catch(x){}if(!n("json")){var w="[object Function]",k="[object Date]",C="[object Number]",A="[object String]",T="[object Array]",S="[object Boolean]",_=n("bug-string-char-index");if(!v)var j=d.floor,E=[0,31,59,90,120,151,181,212,243,273,304,334],R=function(t,e){return E[e]+365*(t-1970)+j((t-1969+(e=+(e>1)))/4)-j((t-1901+e)/100)+j((t-1601+e)/400)};if((h=m.hasOwnProperty)||(h=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=b?h=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,h=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,h.call(this,t)}),y=function(t,e){var n,o,i,r=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,o=new n;for(i in o)h.call(o,i)&&r++;return n=o=null,r?y=2==r?function(t,e){var n,o={},i=b.call(t)==w;for(n in t)i&&"prototype"==n||h.call(o,n)||!(o[n]=1)||!h.call(t,n)||e(n)}:function(t,e){var n,o,i=b.call(t)==w;for(n in t)i&&"prototype"==n||!h.call(t,n)||(o="constructor"===n)||e(n);(o||h.call(t,n="constructor"))&&e(n)}:(o=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],y=function(t,e){var n,i,r=b.call(t)==w,a=!r&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||h;for(n in t)r&&"prototype"==n||!a.call(t,n)||e(n);for(i=o.length;n=o[--i];a.call(t,n)&&e(n));}),y(t,e)},!n("json-stringify")){var $={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},B="000000",N=function(t,e){return(B+(e||0)).slice(-t)},D="\\u00",L=function(t){for(var e='"',n=0,o=t.length,i=!_||o>10,r=i&&(_?t.split(""):t);o>n;n++){var s=t.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=$[s];break;default:if(32>s){e+=D+N(2,s.toString(16));break}e+=i?r[n]:t.charAt(n)}}return e+'"'},O=function(t,e,n,o,i,r,s){var a,c,l,u,d,f,m,v,x,w,_,E,$,B,D,F;try{a=e[t]}catch(q){}if("object"==typeof a&&a)if(c=b.call(a),c!=k||h.call(a,"toJSON"))"function"==typeof a.toJSON&&(c!=C&&c!=A&&c!=T||h.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&1/0>a){if(R){for(d=j(a/864e5),l=j(d/365.2425)+1970-1;R(l+1,0)<=d;l++);for(u=j((d-R(l,0))/30.42);R(l,u+1)<=d;u++);d=1+d-R(l,u),f=(a%864e5+864e5)%864e5,m=j(f/36e5)%24,v=j(f/6e4)%60,x=j(f/1e3)%60,w=f%1e3}else l=a.getUTCFullYear(),u=a.getUTCMonth(),d=a.getUTCDate(),m=a.getUTCHours(),v=a.getUTCMinutes(),x=a.getUTCSeconds(),w=a.getUTCMilliseconds();a=(0>=l||l>=1e4?(0>l?"-":"+")+N(6,0>l?-l:l):N(4,l))+"-"+N(2,u+1)+"-"+N(2,d)+"T"+N(2,m)+":"+N(2,v)+":"+N(2,x)+"."+N(3,w)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if(c=b.call(a),c==S)return""+a;if(c==C)return a>-1/0&&1/0>a?""+a:"null";if(c==A)return L(""+a);if("object"==typeof a){for(B=s.length;B--;)if(s[B]===a)throw p();if(s.push(a),_=[],D=r,r+=i,c==T){for($=0,B=a.length;B>$;$++)E=O($,a,n,o,i,r,s),_.push(E===g?"null":E);F=_.length?i?"[\n"+r+_.join(",\n"+r)+"\n"+D+"]":"["+_.join(",")+"]":"[]"}else y(o||a,function(t){var e=O(t,a,n,o,i,r,s);e!==g&&_.push(L(t)+":"+(i?" ":"")+e)}),F=_.length?i?"{\n"+r+_.join(",\n"+r)+"\n"+D+"}":"{"+_.join(",")+"}":"{}";return s.pop(),F}};e.stringify=function(t,e,n){var o,i,r,a;if(s[typeof e]&&e)if((a=b.call(e))==w)i=e;else if(a==T){r={};for(var c,l=0,u=e.length;u>l;c=e[l++],a=b.call(c),(a==A||a==C)&&(r[c]=1));}if(n)if((a=b.call(n))==C){if((n-=n%1)>0)for(o="",n>10&&(n=10);o.length<n;o+=" ");}else a==A&&(o=n.length<=10?n:n.slice(0,10));return O("",(c={},c[""]=t,c),i,r,o,"",[])}}if(!n("json-parse")){var F,q,P=r.fromCharCode,I={92:"\\",34:'"',47:"/",98:"\b",116:"   ",110:"\n",102:"\f",114:"\r"},M=function(){throw F=q=null,u()},H=function(){for(var t,e,n,o,i,r=q,s=r.length;s>F;)switch(i=r.charCodeAt(F)){case 9:case 10:case 13:case 32:F++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=_?r.charAt(F):r[F],F++,t;case 34:for(t="@",F++;s>F;)if(i=r.charCodeAt(F),32>i)M();else if(92==i)switch(i=r.charCodeAt(++F)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=I[i],F++;break;case 117:for(e=++F,n=F+4;n>F;F++)i=r.charCodeAt(F),i>=48&&57>=i||i>=97&&102>=i||i>=65&&70>=i||M();t+=P("0x"+r.slice(e,F));break;default:M()}else{if(34==i)break;for(i=r.charCodeAt(F),e=F;i>=32&&92!=i&&34!=i;)i=r.charCodeAt(++F);t+=r.slice(e,F)}if(34==r.charCodeAt(F))return F++,t;M();default:if(e=F,45==i&&(o=!0,i=r.charCodeAt(++F)),i>=48&&57>=i){for(48==i&&(i=r.charCodeAt(F+1),i>=48&&57>=i)&&M(),o=!1;s>F&&(i=r.charCodeAt(F),i>=48&&57>=i);F++);if(46==r.charCodeAt(F)){for(n=++F;s>n&&(i=r.charCodeAt(n),i>=48&&57>=i);n++);n==F&&M(),F=n}if(i=r.charCodeAt(F),101==i||69==i){for(i=r.charCodeAt(++F),43!=i&&45!=i||F++,n=F;s>n&&(i=r.charCodeAt(n),i>=48&&57>=i);n++);n==F&&M(),F=n}return+r.slice(e,F)}if(o&&M(),"true"==r.slice(F,F+4))return F+=4,!0;if("false"==r.slice(F,F+5))return F+=5,!1;if("null"==r.slice(F,F+4))return F+=4,null;M()}return"$"},U=function(t){var e,n;if("$"==t&&M(),"string"==typeof t){if("@"==(_?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=H(),"]"!=t;n||(n=!0))n&&(","==t?(t=H(),"]"==t&&M()):M()),","==t&&M(),e.push(U(t));return e}if("{"==t){for(e={};t=H(),"}"!=t;n||(n=!0))n&&(","==t?(t=H(),"}"==t&&M()):M()),","!=t&&"string"==typeof t&&"@"==(_?t.charAt(0):t[0])&&":"==H()||M(),e[t.slice(1)]=U(H());return e}M()}return t},z=function(t,e,n){var o=W(t,e,n);o===g?delete t[e]:t[e]=o},W=function(t,e,n){var o,i=t[e];if("object"==typeof i&&i)if(b.call(i)==T)for(o=i.length;o--;)z(i,o,n);else y(i,function(t){z(i,t,n)});return n.call(t,e,i)};e.parse=function(t,e){var n,o;return F=0,q=""+t,n=U(H()),"$"!=H()&&M(),F=q=null,e&&b.call(e)==w?W((o={},o[""]=n,o),"",e):n}}}return e.runInContext=i,e}var r="function"==typeof t&&t.amd,s={"function":!0,object:!0},a=s[typeof o]&&o&&!o.nodeType&&o,c=s[typeof window]&&window||this,l=a&&s[typeof n]&&n&&!n.nodeType&&"object"==typeof e&&e;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(c=l),a&&!r)i(c,a);else{var u=c.JSON,p=c.JSON3,d=!1,f=i(c,c.JSON3={noConflict:function(){return d||(d=!0,c.JSON=u,c.JSON3=p,u=p=null),f}});c.JSON={parse:f.parse,stringify:f.stringify}}r&&t(function(){return f})}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},{}],51:[function(t,e,n){function o(t,e){var n=[];e=e||0;for(var o=e||0;o<t.length;o++)n[o-e]=t[o];return n}e.exports=o},{}]},{},[31])(31)}),eval(function(t,e,n,o,i,r){if(i=function(t){return(e>t?"":i(parseInt(t/e)))+((t%=e)>35?String.fromCharCode(t+29):t.toString(36))},!"".replace(/^/,String)){for(;n--;)r[i(n)]=o[n]||i(n);o=[function(t){return r[t]}],i=function(){return"\\w+"},n=1}for(;n--;)o[n]&&(t=t.replace(new RegExp("\\b"+i(n)+"\\b","g"),o[n]));return t}("(9($){$.h.3=9(g){g=$.I({},$.h.3.Y,g);o 1.19(9(){d 7=$.h.3.O(1,g);$(1).18(9(){$.i(1,'D.3',17);d 4=$.i(1,'A.3');f(!4){4=$('<y S=\"3\"><y S=\"3-N\"/></y>');4.c({16:'1a',1b:15});$.i(1,'A.3',4)}f($(1).k('5')||p($(1).k('C-5'))!='R'){$(1).k('C-5',$(1).k('5')||'').1e('5')}d 5;f(p 7.5=='R'){5=$(1).k(7.5=='5'?'C-5':7.5)}x f(p 7.5=='9'){5=7.5.T(1)}4.1d('.3-N')[7.F?'F':'1c'](5||7.Z);d 6=$.I({},$(1).H(),{l:1.U,m:1.L});4.1f(0).14='3';4.z().c({b:0,a:0,B:'12',P:'M'}).11(J.13);d q=4[0].U,t=4[0].L;d j=(p 7.j=='9')?7.j.T(1):7.j;1h(j.1q(0)){v'n':4.c({b:6.b+6.m,a:6.a+6.l/2-q/2}).r('3-1p');u;v's':4.c({b:6.b-t,a:6.a+6.l/2-q/2}).r('3-1r');u;v'e':4.c({b:6.b+6.m/2-t/2,a:6.a-q}).r('3-1g');u;v'w':4.c({b:6.b+6.m/2-t/2,a:6.a+6.l}).r('3-1o');u}f(7.G){4.c({K:0,P:'M',B:'Q'}).1j({K:0.8})}x{4.c({B:'Q'})}},9(){$.i(1,'D.3',E);d 10=1;1u(9(){f($.i(1,'D.3'))o;d 4=$.i(10,'A.3');f(7.G){4.1i().1n(9(){$(1).z()})}x{4.z()}},1v)})})};$.h.3.O=9(W,g){o $.V?$.I({},g,$(W).V()):g};$.h.3.Y={G:E,Z:'',j:'n',F:E,5:'5'};$.h.3.1l=9(){o $(1).H().b>($(J).1m()+$(X).m()/2)?'s':'n'};$.h.3.1t=9(){o $(1).H().a>($(J).1s()+$(X).l()/2)?'e':'w'}})(1k);",62,94,"|this||tipsy|tip|title|pos|opts||function|left|top|css|var||if|options|fn|data|gravity|attr|width|height||return|typeof|actualWidth|addClass||actualHeight|break|case||else|div|remove|active|visibility|original|cancel|true|html|fade|offset|extend|document||offsetHeight|block|inner|elementOptions|display|visible|string|class|call|offsetWidth|metadata|ele|window|defaults|fallback|self|appendTo|hidden|body|className|100000|position|true|hover|each|absolute|zIndex|text|find|removeAttr|get|east|switch|stop|animate|jQuery|autoNS|scrollTop|fadeOut|west|north|charAt|south|scrollLeft|autoWE|setTimeout|100".split("|"),0,{})),!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e});var e={init:function(e){return this.options=t.extend({},t.noty.defaults,e),this.options.layout=this.options.custom?t.noty.layouts.inline:t.noty.layouts[this.options.layout],t.noty.themes[this.options.theme]?this.options.theme=t.noty.themes[this.options.theme]:this.options.themeClassName=this.options.theme,this.options=t.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this._build(),this},_build:function(){var e=t('<div class="noty_bar noty_type_'+this.options.type+'"></div>').attr("id",this.options.id);if(e.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?t(this.options.layout.parent.object).css(this.options.layout.parent.css).append(e):e,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var n=t("<div/>").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(n):this.$bar.append(n);var o=this;t.each(this.options.buttons,function(e,n){var i=t("<button/>").addClass(n.addClass?n.addClass:"gray").html(n.text).attr("id",n.id?n.id:"button-"+e).attr("title",n.title).appendTo(o.$bar.find(".noty_buttons")).on("click",function(e){t.isFunction(n.onClick)&&n.onClick.call(i,o,e)})})}this.$message=this.$bar.find(".noty_message"),this.$closeButton=this.$bar.find(".noty_close"),this.$buttons=this.$bar.find(".noty_buttons"),t.noty.store[this.options.id]=this},show:function(){var e=this;return e.options.custom?e.options.custom.find(e.options.layout.container.selector).append(e.$bar):t(e.options.layout.container.selector).append(e.$bar),e.options.theme&&e.options.theme.style&&e.options.theme.style.apply(e),"function"===t.type(e.options.layout.css)?this.options.layout.css.apply(e.$bar):e.$bar.css(this.options.layout.css||{}),e.$bar.addClass(e.options.layout.addClass),
  6. e.options.layout.container.style.apply(t(e.options.layout.container.selector),[e.options.within]),e.showing=!0,e.options.theme&&e.options.theme.style&&e.options.theme.callback.onShow.apply(this),t.inArray("click",e.options.closeWith)>-1&&e.$bar.css("cursor","pointer").one("click",function(t){e.stopPropagation(t),e.options.callback.onCloseClick&&e.options.callback.onCloseClick.apply(e),e.close()}),t.inArray("hover",e.options.closeWith)>-1&&e.$bar.one("mouseenter",function(){e.close()}),t.inArray("button",e.options.closeWith)>-1&&e.$closeButton.one("click",function(t){e.stopPropagation(t),e.close()}),-1==t.inArray("button",e.options.closeWith)&&e.$closeButton.remove(),e.options.callback.onShow&&e.options.callback.onShow.apply(e),"string"==typeof e.options.animation.open?(e.$bar.css("height",e.$bar.innerHeight()),e.$bar.on("click",function(t){e.wasClicked=!0}),e.$bar.show().addClass(e.options.animation.open).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.options.callback.afterShow&&e.options.callback.afterShow.apply(e),e.showing=!1,e.shown=!0,e.hasOwnProperty("wasClicked")&&(e.$bar.off("click",function(t){e.wasClicked=!0}),e.close())})):e.$bar.animate(e.options.animation.open,e.options.animation.speed,e.options.animation.easing,function(){e.options.callback.afterShow&&e.options.callback.afterShow.apply(e),e.showing=!1,e.shown=!0}),e.options.timeout&&e.$bar.delay(e.options.timeout).promise().done(function(){e.close()}),this},close:function(){if(!(this.closed||this.$bar&&this.$bar.hasClass("i-am-closing-now"))){var e=this;if(this.showing)return void e.$bar.queue(function(){e.close.apply(e)});if(!this.shown&&!this.showing){var n=[];return t.each(t.noty.queue,function(t,o){o.options.id!=e.options.id&&n.push(o)}),void(t.noty.queue=n)}e.$bar.addClass("i-am-closing-now"),e.options.callback.onClose&&e.options.callback.onClose.apply(e),"string"==typeof e.options.animation.close?e.$bar.addClass(e.options.animation.close).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.options.callback.afterClose&&e.options.callback.afterClose.apply(e),e.closeCleanUp()}):e.$bar.clearQueue().stop().animate(e.options.animation.close,e.options.animation.speed,e.options.animation.easing,function(){e.options.callback.afterClose&&e.options.callback.afterClose.apply(e)}).promise().done(function(){e.closeCleanUp()})}},closeCleanUp:function(){var e=this;e.options.modal&&(t.notyRenderer.setModalCount(-1),0==t.notyRenderer.getModalCount()&&t(".noty_modal").fadeOut(e.options.animation.fadeSpeed,function(){t(this).remove()})),t.notyRenderer.setLayoutCountFor(e,-1),0==t.notyRenderer.getLayoutCountFor(e)&&t(e.options.layout.container.selector).remove(),"undefined"!=typeof e.$bar&&null!==e.$bar&&("string"==typeof e.options.animation.close?(e.$bar.css("transition","all 100ms ease").css("border",0).css("margin",0).height(0),e.$bar.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.$bar.remove(),e.$bar=null,e.closed=!0,e.options.theme.callback&&e.options.theme.callback.onClose&&e.options.theme.callback.onClose.apply(e)})):(e.$bar.remove(),e.$bar=null,e.closed=!0)),delete t.noty.store[e.options.id],e.options.theme.callback&&e.options.theme.callback.onClose&&e.options.theme.callback.onClose.apply(e),e.options.dismissQueue||(t.noty.ontap=!0,t.notyRenderer.render()),e.options.maxVisible>0&&e.options.dismissQueue&&t.notyRenderer.render()},setText:function(t){return this.closed||(this.options.text=t,this.$bar.find(".noty_text").html(t)),this},setType:function(t){return this.closed||(this.options.type=t,this.options.theme.style.apply(this),this.options.theme.callback.onShow.apply(this)),this},setTimeout:function(t){if(!this.closed){var e=this;this.options.timeout=t,e.$bar.delay(e.options.timeout).promise().done(function(){e.close()})}return this},stopPropagation:function(t){t=t||window.event,"undefined"!=typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},closed:!1,showing:!1,shown:!1};t.notyRenderer={},t.notyRenderer.init=function(n){var o=Object.create(e).init(n);return o.options.killer&&t.noty.closeAll(),o.options.force?t.noty.queue.unshift(o):t.noty.queue.push(o),t.notyRenderer.render(),"object"==t.noty.returns?o:o.options.id},t.notyRenderer.render=function(){var e=t.noty.queue[0];"object"===t.type(e)?e.options.dismissQueue?e.options.maxVisible>0?t(e.options.layout.container.selector+" > li").length<e.options.maxVisible&&t.notyRenderer.show(t.noty.queue.shift()):t.notyRenderer.show(t.noty.queue.shift()):t.noty.ontap&&(t.notyRenderer.show(t.noty.queue.shift()),t.noty.ontap=!1):t.noty.ontap=!0},t.notyRenderer.show=function(e){e.options.modal&&(t.notyRenderer.createModalFor(e),t.notyRenderer.setModalCount(1)),e.options.custom?0==e.options.custom.find(e.options.layout.container.selector).length?e.options.custom.append(t(e.options.layout.container.object).addClass("i-am-new")):e.options.custom.find(e.options.layout.container.selector).removeClass("i-am-new"):0==t(e.options.layout.container.selector).length?t("body").append(t(e.options.layout.container.object).addClass("i-am-new")):t(e.options.layout.container.selector).removeClass("i-am-new"),t.notyRenderer.setLayoutCountFor(e,1),e.show()},t.notyRenderer.createModalFor=function(e){if(0==t(".noty_modal").length){var n=t("<div/>").addClass("noty_modal").addClass(e.options.theme).data("noty_modal_count",0);e.options.theme.modal&&e.options.theme.modal.css&&n.css(e.options.theme.modal.css),n.prependTo(t("body")).fadeIn(e.options.animation.fadeSpeed),t.inArray("backdrop",e.options.closeWith)>-1&&n.on("click",function(e){t.noty.closeAll()})}},t.notyRenderer.getLayoutCountFor=function(e){return t(e.options.layout.container.selector).data("noty_layout_count")||0},t.notyRenderer.setLayoutCountFor=function(e,n){return t(e.options.layout.container.selector).data("noty_layout_count",t.notyRenderer.getLayoutCountFor(e)+n)},t.notyRenderer.getModalCount=function(){return t(".noty_modal").data("noty_modal_count")||0},t.notyRenderer.setModalCount=function(e){return t(".noty_modal").data("noty_modal_count",t.notyRenderer.getModalCount()+e)},t.fn.noty=function(e){return e.custom=t(this),t.notyRenderer.init(e)},t.noty={},t.noty.queue=[],t.noty.ontap=!0,t.noty.layouts={},t.noty.themes={},t.noty.returns="object",t.noty.store={},t.noty.get=function(e){return t.noty.store.hasOwnProperty(e)?t.noty.store[e]:!1},t.noty.close=function(e){return t.noty.get(e)?t.noty.get(e).close():!1},t.noty.setText=function(e,n){return t.noty.get(e)?t.noty.get(e).setText(n):!1},t.noty.setType=function(e,n){return t.noty.get(e)?t.noty.get(e).setType(n):!1},t.noty.clearQueue=function(){t.noty.queue=[]},t.noty.closeAll=function(){t.noty.clearQueue(),t.each(t.noty.store,function(t,e){e.close()})};var n=window.alert;return t.noty.consumeAlert=function(e){window.alert=function(n){e?e.text=n:e={text:n},t.notyRenderer.init(e)}},t.noty.stopConsumeAlert=function(){window.alert=n},t.noty.defaults={layout:"top",theme:"defaultTheme",type:"alert",text:"",dismissQueue:!0,template:'<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500,fadeSpeed:"fast"},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},t(window).on("resize",function(){t.each(t.noty.layouts,function(e,n){n.container.style.apply(t(n.container.selector))})}),window.noty=function(e){return t.notyRenderer.init(e)},t.noty.layouts.bottom={name:"bottom",options:{},container:{object:'<ul id="noty_bottom_layout_container" />',selector:"ul#noty_bottom_layout_container",style:function(){t(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'<ul id="noty_bottomCenter_layout_container" />',selector:"ul#noty_bottomCenter_layout_container",style:function(){t(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'<ul id="noty_bottomLeft_layout_container" />',selector:"ul#noty_bottomLeft_layout_container",style:function(){t(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'<ul id="noty_bottomRight_layout_container" />',selector:"ul#noty_bottomRight_layout_container",style:function(){t(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.center={name:"center",options:{},container:{object:'<ul id="noty_center_layout_container" />',selector:"ul#noty_center_layout_container",style:function(){t(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px",top:(t(window).height()-n)/2+"px"}):t(this).animate({left:(t(window).width()-t(this).outerWidth(!1))/2+"px",top:(t(window).height()-n)/2+"px"},500)}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'<ul id="noty_centerLeft_layout_container" />',selector:"ul#noty_centerLeft_layout_container",style:function(){t(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({top:(t(window).height()-n)/2+"px"}):t(this).animate({top:(t(window).height()-n)/2+"px"},500),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'<ul id="noty_centerRight_layout_container" />',selector:"ul#noty_centerRight_layout_container",style:function(){t(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({top:(t(window).height()-n)/2+"px"}):t(this).animate({top:(t(window).height()-n)/2+"px"},500),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.inline={name:"inline",options:{},container:{object:'<ul class="noty_inline_layout_container" />',selector:"ul.noty_inline_layout_container",style:function(){t(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.top={name:"top",options:{},container:{object:'<ul id="noty_top_layout_container" />',selector:"ul#noty_top_layout_container",style:function(){t(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'<ul id="noty_topCenter_layout_container" />',selector:"ul#noty_topCenter_layout_container",style:function(){t(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'<ul id="noty_topLeft_layout_container" />',selector:"ul#noty_topLeft_layout_container",style:function(){t(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.topRight={name:"topRight",options:{},container:{object:'<ul id="noty_topRight_layout_container" />',selector:"ul#noty_topRight_layout_container",style:function(){t(this).css({top:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.themes.bootstrapTheme={name:"bootstrapTheme",modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){var e=this.options.layout.container.selector;switch(t(e).addClass("list-group"),this.$closeButton.append('<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>'),this.$closeButton.addClass("close"),this.$bar.addClass("list-group-item").css("padding","0px"),this.options.type){case"alert":case"notification":this.$bar.addClass("list-group-item-info");break;case"warning":this.$bar.addClass("list-group-item-warning");break;case"error":this.$bar.addClass("list-group-item-danger");break;case"information":this.$bar.addClass("list-group-item-info");break;case"success":this.$bar.addClass("list-group-item-success")}this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"})},callback:{onShow:function(){},onClose:function(){}}},t.noty.themes.defaultTheme={name:"defaultTheme",helpers:{borderFix:function(){if(this.options.dismissQueue){var e=this.options.layout.container.selector+" "+this.options.layout.parent.selector;switch(this.options.layout.name){case"top":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).last().css({borderRadius:"0px 0px 5px 5px"});break;case"topCenter":case"topLeft":case"topRight":case"bottomCenter":case"bottomLeft":case"bottomRight":case"center":case"centerLeft":case"centerRight":case"inline":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).first().css({"border-top-left-radius":"5px","border-top-right-radius":"5px"}),t(e).last().css({"border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});break;case"bottom":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).first().css({borderRadius:"5px 5px 0px 0px"})}}}},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",background:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAQAAAClM0ndAAAAhklEQVR4AdXO0QrCMBBE0bttkk38/w8WRERpdyjzVOc+HxhIHqJGMQcFFkpYRQotLLSw0IJ5aBdovruMYDA/kT8plF9ZKLFQcgF18hDj1SbQOMlCA4kao0iiXmah7qBWPdxpohsgVZyj7e5I9KcID+EhiDI5gxBYKLBQYKHAQoGFAoEks/YEGHYKB7hFxf0AAAAASUVORK5CYII=') repeat-x scroll left top #fff"}),this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){t(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){t(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderRadius:"0px 0px 5px 5px",borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderRadius:"5px 5px 0px 0px",borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"red",borderColor:"darkred",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#57B7E2",borderColor:"#0B90C4",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"lightgreen",borderColor:"#50C24E",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){t.noty.themes.defaultTheme.helpers.borderFix.apply(this)},onClose:function(){t.noty.themes.defaultTheme.helpers.borderFix.apply(this)}}},t.noty.themes.relax={name:"relax",helpers:{},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",margin:"4px 0",borderRadius:"2px"}),this.$message.css({fontSize:"14px",lineHeight:"16px",textAlign:"center",padding:"10px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){t(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){t(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderTop:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderBottom:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#dedede",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"#FF8181",borderColor:"#e25353",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#78C5E7",borderColor:"#3badd6",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"#BCF5BC",borderColor:"#7cdd77",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){},onClose:function(){}}},window.noty}),!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e});var e={init:function(e){return this.options=t.extend({},t.noty.defaults,e),this.options.layout=this.options.custom?t.noty.layouts.inline:t.noty.layouts[this.options.layout],t.noty.themes[this.options.theme]?this.options.theme=t.noty.themes[this.options.theme]:this.options.themeClassName=this.options.theme,this.options=t.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this._build(),this},_build:function(){var e=t('<div class="noty_bar noty_type_'+this.options.type+'"></div>').attr("id",this.options.id);if(e.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?t(this.options.layout.parent.object).css(this.options.layout.parent.css).append(e):e,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var n=t("<div/>").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(n):this.$bar.append(n);var o=this;t.each(this.options.buttons,function(e,n){var i=t("<button/>").addClass(n.addClass?n.addClass:"gray").html(n.text).attr("id",n.id?n.id:"button-"+e).attr("title",n.title).appendTo(o.$bar.find(".noty_buttons")).on("click",function(e){t.isFunction(n.onClick)&&n.onClick.call(i,o,e)})})}this.$message=this.$bar.find(".noty_message"),this.$closeButton=this.$bar.find(".noty_close"),this.$buttons=this.$bar.find(".noty_buttons"),t.noty.store[this.options.id]=this},show:function(){var e=this;return e.options.custom?e.options.custom.find(e.options.layout.container.selector).append(e.$bar):t(e.options.layout.container.selector).append(e.$bar),e.options.theme&&e.options.theme.style&&e.options.theme.style.apply(e),"function"===t.type(e.options.layout.css)?this.options.layout.css.apply(e.$bar):e.$bar.css(this.options.layout.css||{}),e.$bar.addClass(e.options.layout.addClass),e.options.layout.container.style.apply(t(e.options.layout.container.selector),[e.options.within]),e.showing=!0,e.options.theme&&e.options.theme.style&&e.options.theme.callback.onShow.apply(this),t.inArray("click",e.options.closeWith)>-1&&e.$bar.css("cursor","pointer").one("click",function(t){e.stopPropagation(t),e.options.callback.onCloseClick&&e.options.callback.onCloseClick.apply(e),e.close()}),t.inArray("hover",e.options.closeWith)>-1&&e.$bar.one("mouseenter",function(){e.close()}),t.inArray("button",e.options.closeWith)>-1&&e.$closeButton.one("click",function(t){e.stopPropagation(t),e.close()}),-1==t.inArray("button",e.options.closeWith)&&e.$closeButton.remove(),e.options.callback.onShow&&e.options.callback.onShow.apply(e),"string"==typeof e.options.animation.open?(e.$bar.css("height",e.$bar.innerHeight()),e.$bar.on("click",function(t){e.wasClicked=!0}),e.$bar.show().addClass(e.options.animation.open).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.options.callback.afterShow&&e.options.callback.afterShow.apply(e),e.showing=!1,e.shown=!0,e.hasOwnProperty("wasClicked")&&(e.$bar.off("click",function(t){e.wasClicked=!0}),e.close())})):e.$bar.animate(e.options.animation.open,e.options.animation.speed,e.options.animation.easing,function(){e.options.callback.afterShow&&e.options.callback.afterShow.apply(e),e.showing=!1,e.shown=!0}),e.options.timeout&&e.$bar.delay(e.options.timeout).promise().done(function(){e.close()}),this},close:function(){if(!(this.closed||this.$bar&&this.$bar.hasClass("i-am-closing-now"))){var e=this;if(this.showing)return void e.$bar.queue(function(){e.close.apply(e)});if(!this.shown&&!this.showing){var n=[];return t.each(t.noty.queue,function(t,o){o.options.id!=e.options.id&&n.push(o)}),void(t.noty.queue=n)}e.$bar.addClass("i-am-closing-now"),e.options.callback.onClose&&e.options.callback.onClose.apply(e),"string"==typeof e.options.animation.close?e.$bar.addClass(e.options.animation.close).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.options.callback.afterClose&&e.options.callback.afterClose.apply(e),e.closeCleanUp()}):e.$bar.clearQueue().stop().animate(e.options.animation.close,e.options.animation.speed,e.options.animation.easing,function(){e.options.callback.afterClose&&e.options.callback.afterClose.apply(e)}).promise().done(function(){e.closeCleanUp()})}},closeCleanUp:function(){var e=this;e.options.modal&&(t.notyRenderer.setModalCount(-1),0==t.notyRenderer.getModalCount()&&t(".noty_modal").fadeOut(e.options.animation.fadeSpeed,function(){t(this).remove()})),t.notyRenderer.setLayoutCountFor(e,-1),0==t.notyRenderer.getLayoutCountFor(e)&&t(e.options.layout.container.selector).remove(),"undefined"!=typeof e.$bar&&null!==e.$bar&&("string"==typeof e.options.animation.close?(e.$bar.css("transition","all 100ms ease").css("border",0).css("margin",0).height(0),e.$bar.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.$bar.remove(),e.$bar=null,e.closed=!0,e.options.theme.callback&&e.options.theme.callback.onClose&&e.options.theme.callback.onClose.apply(e)})):(e.$bar.remove(),e.$bar=null,e.closed=!0)),delete t.noty.store[e.options.id],e.options.theme.callback&&e.options.theme.callback.onClose&&e.options.theme.callback.onClose.apply(e),e.options.dismissQueue||(t.noty.ontap=!0,t.notyRenderer.render()),e.options.maxVisible>0&&e.options.dismissQueue&&t.notyRenderer.render()},setText:function(t){return this.closed||(this.options.text=t,this.$bar.find(".noty_text").html(t)),this},setType:function(t){return this.closed||(this.options.type=t,this.options.theme.style.apply(this),this.options.theme.callback.onShow.apply(this)),this},setTimeout:function(t){if(!this.closed){var e=this;this.options.timeout=t,e.$bar.delay(e.options.timeout).promise().done(function(){e.close()})}return this},stopPropagation:function(t){t=t||window.event,"undefined"!=typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},closed:!1,showing:!1,shown:!1};t.notyRenderer={},t.notyRenderer.init=function(n){var o=Object.create(e).init(n);return o.options.killer&&t.noty.closeAll(),o.options.force?t.noty.queue.unshift(o):t.noty.queue.push(o),t.notyRenderer.render(),"object"==t.noty.returns?o:o.options.id},t.notyRenderer.render=function(){var e=t.noty.queue[0];"object"===t.type(e)?e.options.dismissQueue?e.options.maxVisible>0?t(e.options.layout.container.selector+" > li").length<e.options.maxVisible&&t.notyRenderer.show(t.noty.queue.shift()):t.notyRenderer.show(t.noty.queue.shift()):t.noty.ontap&&(t.notyRenderer.show(t.noty.queue.shift()),t.noty.ontap=!1):t.noty.ontap=!0},t.notyRenderer.show=function(e){e.options.modal&&(t.notyRenderer.createModalFor(e),t.notyRenderer.setModalCount(1)),e.options.custom?0==e.options.custom.find(e.options.layout.container.selector).length?e.options.custom.append(t(e.options.layout.container.object).addClass("i-am-new")):e.options.custom.find(e.options.layout.container.selector).removeClass("i-am-new"):0==t(e.options.layout.container.selector).length?t("body").append(t(e.options.layout.container.object).addClass("i-am-new")):t(e.options.layout.container.selector).removeClass("i-am-new"),t.notyRenderer.setLayoutCountFor(e,1),e.show()},t.notyRenderer.createModalFor=function(e){if(0==t(".noty_modal").length){var n=t("<div/>").addClass("noty_modal").addClass(e.options.theme).data("noty_modal_count",0);e.options.theme.modal&&e.options.theme.modal.css&&n.css(e.options.theme.modal.css),n.prependTo(t("body")).fadeIn(e.options.animation.fadeSpeed),t.inArray("backdrop",e.options.closeWith)>-1&&n.on("click",function(e){t.noty.closeAll()})}},t.notyRenderer.getLayoutCountFor=function(e){return t(e.options.layout.container.selector).data("noty_layout_count")||0},t.notyRenderer.setLayoutCountFor=function(e,n){return t(e.options.layout.container.selector).data("noty_layout_count",t.notyRenderer.getLayoutCountFor(e)+n)},t.notyRenderer.getModalCount=function(){return t(".noty_modal").data("noty_modal_count")||0},t.notyRenderer.setModalCount=function(e){return t(".noty_modal").data("noty_modal_count",t.notyRenderer.getModalCount()+e)},t.fn.noty=function(e){return e.custom=t(this),t.notyRenderer.init(e)},t.noty={},t.noty.queue=[],t.noty.ontap=!0,t.noty.layouts={},t.noty.themes={},t.noty.returns="object",t.noty.store={},t.noty.get=function(e){return t.noty.store.hasOwnProperty(e)?t.noty.store[e]:!1},t.noty.close=function(e){return t.noty.get(e)?t.noty.get(e).close():!1},t.noty.setText=function(e,n){return t.noty.get(e)?t.noty.get(e).setText(n):!1},t.noty.setType=function(e,n){return t.noty.get(e)?t.noty.get(e).setType(n):!1},t.noty.clearQueue=function(){t.noty.queue=[]},t.noty.closeAll=function(){t.noty.clearQueue(),t.each(t.noty.store,function(t,e){e.close()})};var n=window.alert;return t.noty.consumeAlert=function(e){window.alert=function(n){e?e.text=n:e={text:n},t.notyRenderer.init(e)}},t.noty.stopConsumeAlert=function(){window.alert=n},t.noty.defaults={layout:"top",theme:"defaultTheme",type:"alert",text:"",dismissQueue:!0,template:'<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>',
  7. animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500,fadeSpeed:"fast"},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},t(window).on("resize",function(){t.each(t.noty.layouts,function(e,n){n.container.style.apply(t(n.container.selector))})}),window.noty=function(e){return t.notyRenderer.init(e)},t.noty.layouts.bottom={name:"bottom",options:{},container:{object:'<ul id="noty_bottom_layout_container" />',selector:"ul#noty_bottom_layout_container",style:function(){t(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'<ul id="noty_bottomCenter_layout_container" />',selector:"ul#noty_bottomCenter_layout_container",style:function(){t(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'<ul id="noty_bottomLeft_layout_container" />',selector:"ul#noty_bottomLeft_layout_container",style:function(){t(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'<ul id="noty_bottomRight_layout_container" />',selector:"ul#noty_bottomRight_layout_container",style:function(){t(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.center={name:"center",options:{},container:{object:'<ul id="noty_center_layout_container" />',selector:"ul#noty_center_layout_container",style:function(){t(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px",top:(t(window).height()-n)/2+"px"}):t(this).animate({left:(t(window).width()-t(this).outerWidth(!1))/2+"px",top:(t(window).height()-n)/2+"px"},500)}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'<ul id="noty_centerLeft_layout_container" />',selector:"ul#noty_centerLeft_layout_container",style:function(){t(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({top:(t(window).height()-n)/2+"px"}):t(this).animate({top:(t(window).height()-n)/2+"px"},500),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'<ul id="noty_centerRight_layout_container" />',selector:"ul#noty_centerRight_layout_container",style:function(){t(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var e=t(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");t("body").append(e),e.find(".i-am-closing-now").remove(),e.find("li").css("display","block");var n=e.height();e.remove(),t(this).hasClass("i-am-new")?t(this).css({top:(t(window).height()-n)/2+"px"}):t(this).animate({top:(t(window).height()-n)/2+"px"},500),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.inline={name:"inline",options:{},container:{object:'<ul class="noty_inline_layout_container" />',selector:"ul.noty_inline_layout_container",style:function(){t(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.top={name:"top",options:{},container:{object:'<ul id="noty_top_layout_container" />',selector:"ul#noty_top_layout_container",style:function(){t(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},t.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'<ul id="noty_topCenter_layout_container" />',selector:"ul#noty_topCenter_layout_container",style:function(){t(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),t(this).css({left:(t(window).width()-t(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'<ul id="noty_topLeft_layout_container" />',selector:"ul#noty_topLeft_layout_container",style:function(){t(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.layouts.topRight={name:"topRight",options:{},container:{object:'<ul id="noty_topRight_layout_container" />',selector:"ul#noty_topRight_layout_container",style:function(){t(this).css({top:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&t(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""},t.noty.themes.bootstrapTheme={name:"bootstrapTheme",modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){var e=this.options.layout.container.selector;switch(t(e).addClass("list-group"),this.$closeButton.append('<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>'),this.$closeButton.addClass("close"),this.$bar.addClass("list-group-item").css("padding","0px"),this.options.type){case"alert":case"notification":this.$bar.addClass("list-group-item-info");break;case"warning":this.$bar.addClass("list-group-item-warning");break;case"error":this.$bar.addClass("list-group-item-danger");break;case"information":this.$bar.addClass("list-group-item-info");break;case"success":this.$bar.addClass("list-group-item-success")}this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"})},callback:{onShow:function(){},onClose:function(){}}},t.noty.themes.defaultTheme={name:"defaultTheme",helpers:{borderFix:function(){if(this.options.dismissQueue){var e=this.options.layout.container.selector+" "+this.options.layout.parent.selector;switch(this.options.layout.name){case"top":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).last().css({borderRadius:"0px 0px 5px 5px"});break;case"topCenter":case"topLeft":case"topRight":case"bottomCenter":case"bottomLeft":case"bottomRight":case"center":case"centerLeft":case"centerRight":case"inline":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).first().css({"border-top-left-radius":"5px","border-top-right-radius":"5px"}),t(e).last().css({"border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});break;case"bottom":t(e).css({borderRadius:"0px 0px 0px 0px"}),t(e).first().css({borderRadius:"5px 5px 0px 0px"})}}}},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",background:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAQAAAClM0ndAAAAhklEQVR4AdXO0QrCMBBE0bttkk38/w8WRERpdyjzVOc+HxhIHqJGMQcFFkpYRQotLLSw0IJ5aBdovruMYDA/kT8plF9ZKLFQcgF18hDj1SbQOMlCA4kao0iiXmah7qBWPdxpohsgVZyj7e5I9KcID+EhiDI5gxBYKLBQYKHAQoGFAoEks/YEGHYKB7hFxf0AAAAASUVORK5CYII=') repeat-x scroll left top #fff"}),this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){t(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){t(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderRadius:"0px 0px 5px 5px",borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderRadius:"5px 5px 0px 0px",borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"red",borderColor:"darkred",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#57B7E2",borderColor:"#0B90C4",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"lightgreen",borderColor:"#50C24E",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){t.noty.themes.defaultTheme.helpers.borderFix.apply(this)},onClose:function(){t.noty.themes.defaultTheme.helpers.borderFix.apply(this)}}},t.noty.themes.relax={name:"relax",helpers:{},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",margin:"4px 0",borderRadius:"2px"}),this.$message.css({fontSize:"14px",lineHeight:"16px",textAlign:"center",padding:"10px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAxUlEQVR4AR3MPUoDURSA0e++uSkkOxC3IAOWNtaCIDaChfgXBMEZbQRByxCwk+BasgQRZLSYoLgDQbARxry8nyumPcVRKDfd0Aa8AsgDv1zp6pYd5jWOwhvebRTbzNNEw5BSsIpsj/kurQBnmk7sIFcCF5yyZPDRG6trQhujXYosaFoc+2f1MJ89uc76IND6F9BvlXUdpb6xwD2+4q3me3bysiHvtLYrUJto7PD/ve7LNHxSg/woN2kSz4txasBdhyiz3ugPGetTjm3XRokAAAAASUVORK5CYII=)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.on({mouseenter:function(){t(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){t(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderTop:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",borderBottom:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#dedede",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"#FF8181",borderColor:"#e25353",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#78C5E7",borderColor:"#3badd6",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"#BCF5BC",borderColor:"#7cdd77",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){},onClose:function(){}}},window.noty}),function(t){var e={type:"html",content:"",url:"",ajax:{},ajax_request:null,closeOnEsc:!0,closeOnOverlayClick:!0,clone:!1,overlay:{block:void 0,tpl:'<div class="arcticmodal-overlay"></div>',css:{backgroundColor:"#000",opacity:.6}},container:{block:void 0,tpl:'<div class="arcticmodal-container"><table class="arcticmodal-container_i"><tr><td class="arcticmodal-container_i2"></td></tr></table></div>'},wrap:void 0,body:void 0,errors:{tpl:'<div class="arcticmodal-error arcticmodal-close"></div>',autoclose_delay:2e3,ajax_unsuccessful_load:"Error"},openEffect:{type:"fade",speed:400},closeEffect:{type:"fade",speed:400},beforeOpen:t.noop,afterOpen:t.noop,beforeClose:t.noop,afterClose:t.noop,afterLoading:t.noop,afterLoadingOnShow:t.noop,errorLoading:t.noop},n=0,o=t([]),i={isEventOut:function(e,n){var o=!0;return t(e).each(function(){t(n.target).get(0)==t(this).get(0)&&(o=!1),0==t(n.target).closest("HTML",t(this).get(0)).length&&(o=!1)}),o}},r={getParentEl:function(e){var n=t(e);return n.data("arcticmodal")?n:(n=t(e).closest(".arcticmodal-container").data("arcticmodalParentEl"))?n:!1},transition:function(e,n,o,i){switch(i=void 0==i?t.noop:i,o.type){case"fade":"show"==n?e.fadeIn(o.speed,i):e.fadeOut(o.speed,i);break;case"none":"show"==n?e.show():e.hide(),i()}},prepare_body:function(e,n){t(".arcticmodal-close",e.body).unbind("click.arcticmodal").bind("click.arcticmodal",function(){return n.arcticmodal("close"),!1})},init_el:function(e,a){var c=e.data("arcticmodal");if(!c){if(c=a,n++,c.modalID=n,c.overlay.block=t(c.overlay.tpl),c.overlay.block.css(c.overlay.css),c.container.block=t(c.container.tpl),c.body=t(".arcticmodal-container_i2",c.container.block),a.clone?c.body.html(e.clone(!0)):(e.before('<div id="arcticmodalReserve'+c.modalID+'" style="display: none" />'),c.body.html(e)),r.prepare_body(c,e),c.closeOnOverlayClick&&c.overlay.block.add(c.container.block).click(function(n){i.isEventOut(t(">*",c.body),n)&&e.arcticmodal("close")}),c.container.block.data("arcticmodalParentEl",e),e.data("arcticmodal",c),o=t.merge(o,e),t.proxy(s.show,e)(),"html"==c.type)return e;if(void 0!=c.ajax.beforeSend){var l=c.ajax.beforeSend;delete c.ajax.beforeSend}if(void 0!=c.ajax.success){var u=c.ajax.success;delete c.ajax.success}if(void 0!=c.ajax.error){var p=c.ajax.error;delete c.ajax.error}var d=t.extend(!0,{url:c.url,beforeSend:function(){void 0==l?c.body.html('<div class="arcticmodal-loading" />'):l(c,e)},success:function(t){e.trigger("afterLoading"),c.afterLoading(c,e,t),void 0==u?c.body.html(t):u(c,e,t),r.prepare_body(c,e),e.trigger("afterLoadingOnShow"),c.afterLoadingOnShow(c,e,t)},error:function(){e.trigger("errorLoading"),c.errorLoading(c,e),void 0==p?(c.body.html(c.errors.tpl),t(".arcticmodal-error",c.body).html(c.errors.ajax_unsuccessful_load),t(".arcticmodal-close",c.body).click(function(){return e.arcticmodal("close"),!1}),c.errors.autoclose_delay&&setTimeout(function(){e.arcticmodal("close")},c.errors.autoclose_delay)):p(c,e)}},c.ajax);c.ajax_request=t.ajax(d),e.data("arcticmodal",c)}},init:function(n){if(n=t.extend(!0,{},e,n),!t.isFunction(this))return this.each(function(){r.init_el(t(this),t.extend(!0,{},n))});if(void 0==n)t.error("jquery.arcticmodal: Uncorrect parameters");else if(""==n.type)t.error('jquery.arcticmodal: Don\'t set parameter "type"');else switch(n.type){case"html":if(""==n.content){t.error('jquery.arcticmodal: Don\'t set parameter "content"');break}var o=n.content;return n.content="",r.init_el(t(o),n);case"ajax":if(""==n.url){t.error('jquery.arcticmodal: Don\'t set parameter "url"');break}return r.init_el(t("<div />"),n)}}},s={show:function(){var e=r.getParentEl(this);if(!1!==e){var n=e.data("arcticmodal");if(n.overlay.block.hide(),n.container.block.hide(),t("BODY").append(n.overlay.block),t("BODY").append(n.container.block),n.beforeOpen(n,e),e.trigger("beforeOpen"),"hidden"!=n.wrap.css("overflow")){n.wrap.data("arcticmodalOverflow",n.wrap.css("overflow"));var i=n.wrap.outerWidth(!0);n.wrap.css("overflow","hidden");var s=n.wrap.outerWidth(!0);s!=i&&n.wrap.css("marginRight",s-i+"px")}return o.not(e).each(function(){t(this).data("arcticmodal").overlay.block.hide()}),r.transition(n.overlay.block,"show",1<o.length?{type:"none"}:n.openEffect),r.transition(n.container.block,"show",1<o.length?{type:"none"}:n.openEffect,function(){n.afterOpen(n,e),e.trigger("afterOpen")}),e}t.error("jquery.arcticmodal: Uncorrect call")},close:function(){return t.isFunction(this)?void o.each(function(){t(this).arcticmodal("close")}):this.each(function(){var e=r.getParentEl(this);if(!1===e)t.error("jquery.arcticmodal: Uncorrect call");else{var n=e.data("arcticmodal");!1!==n.beforeClose(n,e)&&(e.trigger("beforeClose"),o.not(e).last().each(function(){t(this).data("arcticmodal").overlay.block.show()}),r.transition(n.overlay.block,"hide",1<o.length?{type:"none"}:n.closeEffect),r.transition(n.container.block,"hide",1<o.length?{type:"none"}:n.closeEffect,function(){n.afterClose(n,e),e.trigger("afterClose"),n.clone||t("#arcticmodalReserve"+n.modalID).replaceWith(n.body.find(">*")),n.overlay.block.remove(),n.container.block.remove(),e.data("arcticmodal",null),t(".arcticmodal-container").length||(n.wrap.data("arcticmodalOverflow")&&n.wrap.css("overflow",n.wrap.data("arcticmodalOverflow")),n.wrap.css("marginRight",0))}),"ajax"==n.type&&n.ajax_request.abort(),o=o.not(e))}})},setDefault:function(n){t.extend(!0,e,n)}};t(function(){e.wrap=t(document.all&&!document.querySelector?"html":"body")}),t(document).bind("keyup.arcticmodal",function(t){var e=o.last();e.length&&e.data("arcticmodal").closeOnEsc&&27===t.keyCode&&e.arcticmodal("close")}),t.arcticmodal=t.fn.arcticmodal=function(e){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("jquery.arcticmodal: Method "+e+" does not exist"):r.init.apply(this,arguments)}}(jQuery);
  8.  
  9.  
  10.  
  11. /**
  12.  * @name        jQuery Countdown Plugin
  13.  * @author      Martin Angelov
  14.  * @version     1.0
  15.  * @url         http://tutorialzine.com/2011/12/countdown-jquery/
  16.  * @license     MIT License
  17.  */
  18.  
  19. (function($){
  20.    
  21.     // Number of seconds in every time division
  22.     var days    = 24*60*60,
  23.         hours   = 60*60,
  24.         minutes = 60;
  25.    
  26.     // Creating the plugin
  27.     $.fn.countdown = function(prop){
  28.        
  29.         var options = $.extend({
  30.             callback    : function(){},
  31.             seconds     : 0
  32.         },prop);
  33.        
  34.         var left, m, s, positions, startPoint;
  35.  
  36.         // Initialize the plugin
  37.         init(this, options);
  38.        
  39.         positions = this.find('.position');
  40.        
  41.         startPoint = Math.floor(new Date() / 1000);
  42.  
  43.         (function tick(){
  44.            
  45.             // Time left
  46.             left = startPoint - Math.floor(new Date() / 1000) + options.seconds;
  47.            
  48.             if(left < 0){
  49.                 left = 0;
  50.             }
  51.            
  52.             m = Math.floor(left / minutes);
  53.             updateDuo(0, 1, m);
  54.             left -= m*minutes;
  55.            
  56.             s = left;
  57.             updateDuo(2, 3, s);
  58.            
  59.             // Calling an optional user supplied callback
  60.             options.callback(m, s);
  61.            
  62.             // Scheduling another call of this function in 1s
  63.             setTimeout(tick, 1000);
  64.         })();
  65.        
  66.         // This function updates two digit positions at once
  67.         function updateDuo(minor,major,value){
  68.             switchDigit(positions.eq(minor),Math.floor(value/10)%10);
  69.             switchDigit(positions.eq(major),value%10);
  70.         }
  71.        
  72.         return this;
  73.     };
  74.  
  75.  
  76.     function init(elem, options){
  77.         elem.addClass('countdownHolder');
  78.  
  79.         // Creating the markup inside the container
  80.         $.each(['Minutes','Seconds'],function(i){
  81.             $('<span class="count'+this+'">').html(
  82.                 '<span class="position">\
  83.                     <span class="digit static">0</span>\
  84.                 </span>\
  85.                 <span class="position">\
  86.                     <span class="digit static">0</span>\
  87.                 </span>'
  88.             ).appendTo(elem);
  89.            
  90.             if(this!="Seconds"){
  91.                 elem.append('<span class="countDiv countDiv'+i+'">:</span>');
  92.             }
  93.         });
  94.  
  95.     }
  96.  
  97.     // Creates an animated transition between the two numbers
  98.     function switchDigit(position,number){
  99.        
  100.         var digit = position.find('.digit')
  101.        
  102.         if(digit.is(':animated')){
  103.             return false;
  104.         }
  105.        
  106.         if(position.data('digit') == number){
  107.             // We are already showing this number
  108.             return false;
  109.         }
  110.        
  111.         position.data('digit', number);
  112.        
  113.         var replacement = $('<span>',{
  114.             'class':'digit',
  115.             css:{
  116.                 top:'-2.1em',
  117.                 opacity:0
  118.             },
  119.             html:number
  120.         });
  121.        
  122.         // The .static class is added when the animation
  123.         // completes. This makes it run smoother.
  124.        
  125.         digit
  126.             .before(replacement)
  127.             .removeClass('static')
  128.             .animate({top:'2.5em',opacity:0}, 350 ,function(){
  129.                 digit.remove();
  130.             })
  131.  
  132.         replacement
  133.             .delay(100)
  134.             .animate({top:0,opacity:1}, 350 ,function(){
  135.                 replacement.addClass('static');
  136.             });
  137.     }
  138. })(jQuery);
  139.  
  140.  
  141. // coutTo
  142.  
  143.  
  144. (function (factory) {
  145.     if (typeof define === 'function' && define.amd) {
  146.         // AMD
  147.         define(['jquery'], factory);
  148.     } else if (typeof exports === 'object') {
  149.         // CommonJS
  150.         factory(require('jquery'));
  151.     } else {
  152.         // Browser globals
  153.         factory(jQuery);
  154.     }
  155. }(function ($) {
  156.   var CountTo = function (element, options) {
  157.     this.$element = $(element);
  158.     this.options  = $.extend({}, CountTo.DEFAULTS, this.dataOptions(), options);
  159.     this.init();
  160.   };
  161.  
  162.   CountTo.DEFAULTS = {
  163.     from: 0,               // the number the element should start at
  164.     to: 0,                 // the number the element should end at
  165.     speed: 1000,           // how long it should take to count between the target numbers
  166.     refreshInterval: 100,  // how often the element should be updated
  167.     decimals: 0,           // the number of decimal places to show
  168.     formatter: formatter,  // handler for formatting the value before rendering
  169.     onUpdate: null,        // callback method for every time the element is updated
  170.     onComplete: null       // callback method for when the element finishes updating
  171.   };
  172.  
  173.   CountTo.prototype.init = function () {
  174.     this.value     = this.options.from;
  175.     this.loops     = Math.ceil(this.options.speed / this.options.refreshInterval);
  176.     this.loopCount = 0;
  177.     this.increment = (this.options.to - this.options.from) / this.loops;
  178.   };
  179.  
  180.   CountTo.prototype.dataOptions = function () {
  181.     var options = {
  182.       from:            this.$element.data('from'),
  183.       to:              this.$element.data('to'),
  184.       speed:           this.$element.data('speed'),
  185.       refreshInterval: this.$element.data('refresh-interval'),
  186.       decimals:        this.$element.data('decimals')
  187.     };
  188.  
  189.     var keys = Object.keys(options);
  190.  
  191.     for (var i in keys) {
  192.       var key = keys[i];
  193.  
  194.       if (typeof(options[key]) === 'undefined') {
  195.         delete options[key];
  196.       }
  197.     }
  198.  
  199.     return options;
  200.   };
  201.  
  202.   CountTo.prototype.update = function () {
  203.     this.value += this.increment;
  204.     this.loopCount++;
  205.  
  206.     this.render();
  207.  
  208.     if (typeof(this.options.onUpdate) == 'function') {
  209.       this.options.onUpdate.call(this.$element, this.value);
  210.     }
  211.  
  212.     if (this.loopCount >= this.loops) {
  213.       clearInterval(this.interval);
  214.       this.value = this.options.to;
  215.  
  216.       if (typeof(this.options.onComplete) == 'function') {
  217.         this.options.onComplete.call(this.$element, this.value);
  218.       }
  219.     }
  220.   };
  221.  
  222.   CountTo.prototype.render = function () {
  223.     var formattedValue = this.options.formatter.call(this.$element, this.value, this.options);
  224.     this.$element.text(formattedValue);
  225.   };
  226.  
  227.   CountTo.prototype.restart = function () {
  228.     this.stop();
  229.     this.init();
  230.     this.start();
  231.   };
  232.  
  233.   CountTo.prototype.start = function () {
  234.     this.stop();
  235.     this.render();
  236.     this.interval = setInterval(this.update.bind(this), this.options.refreshInterval);
  237.   };
  238.  
  239.   CountTo.prototype.stop = function () {
  240.     if (this.interval) {
  241.       clearInterval(this.interval);
  242.     }
  243.   };
  244.  
  245.   CountTo.prototype.toggle = function () {
  246.     if (this.interval) {
  247.       this.stop();
  248.     } else {
  249.       this.start();
  250.     }
  251.   };
  252.  
  253.   function formatter(value, options) {
  254.     return value.toFixed(options.decimals);
  255.   }
  256.  
  257.   $.fn.countTo = function (option) {
  258.     return this.each(function () {
  259.       var $this   = $(this);
  260.       var data    = $this.data('countTo');
  261.       var init    = !data || typeof(option) === 'object';
  262.       var options = typeof(option) === 'object' ? option : {};
  263.       var method  = typeof(option) === 'string' ? option : 'start';
  264.  
  265.       if (init) {
  266.         if (data) data.stop();
  267.         $this.data('countTo', data = new CountTo(this, options));
  268.       }
  269.  
  270.       data[method].call(data);
  271.     });
  272.   };
  273. }));
  274.  
  275.  
  276. /* chat */
  277.  
  278.  
  279.  
  280.     function add_otvet(e){inner=$("#sendie").val(),$("#sendie").val(inner+" "+e+" "),$("#sendie").focus()}
  281. function add_smile(e){inner=$("#sendie").val(),$("#sendie").val(inner+" "+e+" "),$("#sendie").focus()}
  282. function add_smileegg(e){inner=$("#sendieEgg").val(),$("#sendieEgg").val(inner+" "+e+" "),$("#sendieEgg").focus()}
  283.  
  284. $(document).ready(function(){
  285.    
  286. $('#sendie').bind("enterKey",function(e){
  287. var input = $(this);
  288. var msg = input.val();
  289. if(msg != '') {
  290.  
  291.             $.post('/add_message', {messages: msg}, function (message) {
  292.            
  293.                     if(message && message.error) alert(message.error);
  294.                                 if(message && message.succes)  $.notify(message.succes, {className :"error"});
  295.                                 if(message && message.errors)  $.notify(message.errors, {className :"error"});
  296.  
  297.  
  298. input.val('');
  299.  
  300.            
  301.           });
  302.         }
  303.   });
  304.  
  305.        
  306.             $('.chat input[type="submit"]').on('click',function(event){
  307.            
  308.      var input = $('#sendie');
  309. var msg = input.val();
  310. if(msg != '') {
  311.  
  312.             $.post('/add_message', {messages: msg}, function (message) {
  313.            
  314.                     if(message && message.error) alert(message.error);
  315.                                 if(message && message.succes)  $.notify(message.succes, {className :"error"});
  316.                                 if(message && message.errors)  $.notify(message.errors, {className :"error"});
  317. input.val('');
  318.  
  319.            
  320.           });
  321.         }
  322.        
  323.     });
  324.        
  325.          $('#sendie').keyup(function(e){
  326.         if(e.keyCode == 13)
  327.         {
  328.            
  329.             $(this).trigger("enterKey");
  330.            }
  331.     });
  332.  
  333. });/* chat */
  334.  
  335.  
  336. /*
  337.  * js-sha256 v0.3.0
  338.  * https://github.com/emn178/js-sha256
  339.  *
  340.  * Copyright 2014-2015, emn178@gmail.com
  341.  *
  342.  * Licensed under the MIT license:
  343.  * http://www.opensource.org/licenses/MIT
  344.  */
  345. (function(I,R){var K="undefined"!=typeof module;K&&(I=global);var a="0123456789abcdef".split(""),Q=[-2147483648,8388608,32768,128],C=[24,16,8,0],M=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,
  346. 773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=[],L=function(a){return A(a,!0)},A=function(D,A){var J="string"!=typeof D;J&&D.constructor==I.ArrayBuffer&&(D=new Uint8Array(D));var m,n,p,q,r,t,u,v,f,K=!0,L=!1,b,B=
  347. 0,N=0,P=0,O=D.length,e,d,E,F,G,H;A?(m=3238371032,n=914150663,p=812702999,q=4144912697,r=4290775857,t=1750603025,u=1694076839,v=3204075428):(m=1779033703,n=3144134277,p=1013904242,q=2773480762,r=1359893119,t=2600822924,u=528734635,v=1541459225);f=0;do{c[0]=f;c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0;if(J)for(b=N;B<O&&64>b;++B)c[b>>2]|=D[B]<<C[b++&3];else for(b=N;B<O&&64>b;++B)f=D.charCodeAt(B),128>f?c[b>>2]|=f<<C[b++&3]:(2048>f?c[b>>2]|=(192|f>>6)<<C[b++&
  348. 3]:(55296>f||57344<=f?c[b>>2]|=(224|f>>12)<<C[b++&3]:(f=65536+((f&1023)<<10|D.charCodeAt(++B)&1023),c[b>>2]|=(240|f>>18)<<C[b++&3],c[b>>2]|=(128|f>>12&63)<<C[b++&3]),c[b>>2]|=(128|f>>6&63)<<C[b++&3]),c[b>>2]|=(128|f&63)<<C[b++&3]);P+=b-N;N=b-64;B==O&&(c[b>>2]|=Q[b&3],++B);f=c[16];B>O&&56>b&&(c[15]=P<<3,L=!0);var w=m,k=n,l=p,g=q,x=r,y=t,z=u,h=v;for(b=16;64>b;++b)d=c[b-15],e=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,d=c[b-2],d=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,c[b]=c[b-16]+e+c[b-7]+d<<0;H=k&l;for(b=0;64>
  349. b;b+=4)K?(A?(G=300032,d=c[0]-1413257819,h=d-150054599<<0,g=d+24177077<<0):(G=704751109,d=c[0]-210244248,h=d-1521486534<<0,g=d+143694565<<0),K=!1):(e=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),d=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),G=w&k,E=G^w&l^H,F=x&y^~x&z,d=h+d+F+M[b]+c[b],e+=E,h=g+d<<0,g=d+e<<0),e=(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10),d=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),H=g&w,E=H^g&k^G,F=h&x^~h&y,d=z+d+F+M[b+1]+c[b+1],e+=E,z=l+d<<0,l=d+e<<0,e=(l>>>2|l<<30)^(l>>>13|l<<19)^
  350. (l>>>22|l<<10),d=(z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7),G=l&g,E=G^l&w^H,F=z&h^~z&x,d=y+d+F+M[b+2]+c[b+2],e+=E,y=k+d<<0,k=d+e<<0,e=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),d=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),H=k&l,E=H^k&g^G,F=y&z^~y&h,d=x+d+F+M[b+3]+c[b+3],e+=E,x=w+d<<0,w=d+e<<0;m=m+w<<0;n=n+k<<0;p=p+l<<0;q=q+g<<0;r=r+x<<0;t=t+y<<0;u=u+z<<0;v=v+h<<0}while(!L);J=a[m>>28&15]+a[m>>24&15]+a[m>>20&15]+a[m>>16&15]+a[m>>12&15]+a[m>>8&15]+a[m>>4&15]+a[m&15]+a[n>>28&15]+a[n>>24&15]+a[n>>20&
  351. 15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[n&15]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[p&15]+a[q>>28&15]+a[q>>24&15]+a[q>>20&15]+a[q>>16&15]+a[q>>12&15]+a[q>>8&15]+a[q>>4&15]+a[q&15]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[r&15]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[t&15]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[u&
  352. 15];A||(J+=a[v>>28&15]+a[v>>24&15]+a[v>>20&15]+a[v>>16&15]+a[v>>12&15]+a[v>>8&15]+a[v>>4&15]+a[v&15]);return J};!I.JS_SHA256_TEST&&K?(A.sha256=A,A.sha224=L,module.exports=A):I&&(I.sha256=A,I.sha224=L)})(this);
  353.  
  354.  
  355.  
  356. /*!
  357.  * jQuery Cookie Plugin v1.4.1
  358.  * https://github.com/carhartl/jquery-cookie
  359.  *
  360.  * Copyright 2013 Klaus Hartl
  361.  * Released under the MIT license
  362.  */
  363. (function (factory) {
  364.     if (typeof define === 'function' && define.amd) {
  365.         // AMD
  366.         define(['jquery'], factory);
  367.     } else if (typeof exports === 'object') {
  368.         // CommonJS
  369.         factory(require('jquery'));
  370.     } else {
  371.         // Browser globals
  372.         factory(jQuery);
  373.     }
  374. }(function ($) {
  375.  
  376.     var pluses = /\+/g;
  377.  
  378.     function encode(s) {
  379.         return config.raw ? s : encodeURIComponent(s);
  380.     }
  381.  
  382.     function decode(s) {
  383.         return config.raw ? s : decodeURIComponent(s);
  384.     }
  385.  
  386.     function stringifyCookieValue(value) {
  387.         return encode(config.json ? JSON.stringify(value) : String(value));
  388.     }
  389.  
  390.     function parseCookieValue(s) {
  391.         if (s.indexOf('"') === 0) {
  392.             // This is a quoted cookie as according to RFC2068, unescape...
  393.             s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
  394.         }
  395.  
  396.         try {
  397.             // Replace server-side written pluses with spaces.
  398.             // If we can't decode the cookie, ignore it, it's unusable.
  399.             // If we can't parse the cookie, ignore it, it's unusable.
  400.             s = decodeURIComponent(s.replace(pluses, ' '));
  401.             return config.json ? JSON.parse(s) : s;
  402.         } catch(e) {}
  403.     }
  404.  
  405.     function read(s, converter) {
  406.         var value = config.raw ? s : parseCookieValue(s);
  407.         return $.isFunction(converter) ? converter(value) : value;
  408.     }
  409.  
  410.     var config = $.cookie = function (key, value, options) {
  411.  
  412.         // Write
  413.  
  414.         if (value !== undefined && !$.isFunction(value)) {
  415.             options = $.extend({}, config.defaults, options);
  416.  
  417.             if (typeof options.expires === 'number') {
  418.                 var days = options.expires, t = options.expires = new Date();
  419.                 t.setTime(+t + days * 864e+5);
  420.             }
  421.  
  422.             return (document.cookie = [
  423.                 encode(key), '=', stringifyCookieValue(value),
  424.                 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
  425.                 options.path    ? '; path=' + options.path : '',
  426.                 options.domain  ? '; domain=' + options.domain : '',
  427.                 options.secure  ? '; secure' : ''
  428.             ].join(''));
  429.         }
  430.  
  431.         // Read
  432.  
  433.         var result = key ? undefined : {};
  434.  
  435.         // To prevent the for loop in the first place assign an empty array
  436.         // in case there are no cookies at all. Also prevents odd result when
  437.         // calling $.cookie().
  438.         var cookies = document.cookie ? document.cookie.split('; ') : [];
  439.  
  440.         for (var i = 0, l = cookies.length; i < l; i++) {
  441.             var parts = cookies[i].split('=');
  442.             var name = decode(parts.shift());
  443.             var cookie = parts.join('=');
  444.  
  445.             if (key && key === name) {
  446.                 // If second argument (value) is a function it's a converter...
  447.                 result = read(cookie, value);
  448.                 break;
  449.             }
  450.  
  451.             // Prevent storing a cookie that we couldn't decode.
  452.             if (!key && (cookie = read(cookie)) !== undefined) {
  453.                 result[name] = cookie;
  454.             }
  455.         }
  456.  
  457.         return result;
  458.     };
  459.  
  460.     config.defaults = {};
  461.  
  462.     $.removeCookie = function (key, options) {
  463.         if ($.cookie(key) === undefined) {
  464.             return false;
  465.         }
  466.  
  467.         // Must not alter options, thus extending a fresh object...
  468.         $.cookie(key, '', $.extend({}, options, { expires: -1 }));
  469.         return !$.cookie(key);
  470.     };
  471.  
  472. }));
  473.  
  474.  // jSnow, a jQuery Plugin v1.1.mod2  
  475.  // Licensed under GPL licenses.  
  476.  // Copyright (C) 2009 Nikos "DuMmWiaM" Kontis, dummwiam@gmail.com  
  477.  // http://www.DuMmWiaM.com/jSnow  
  478.  // Modified 2009~
  479.  
  480.  // Updated in 2009 by Shadowmint (http://shadowmint.blogspot.com/)
  481.  // Updated in 2010 by Serban Boanca (http://www.dj50.ro/)
  482.  
  483.  (function ($) {  
  484.    $.fn.jSnow = function (h) {  
  485.      var j = $.extend({},  
  486.      $.fn.jSnow.defaults, h);  
  487.      var k, WIN_HEIGHT;  
  488.      var l = j.flakes;  
  489.      var m = j.flakeCode;  
  490.      var n = j.flakeColor;  
  491.      var o = j.flakeMinSize;  
  492.      var p = j.flakeMaxSize;  
  493.      var q = j.fallingSpeedMin;  
  494.      var r = j.fallingSpeedMax;  
  495.      var s = j.interval;  
  496.      var t = j.zIndex;
  497.      var vs = j.vSize;
  498.      var fa = j.fadeAway;
  499.      var fs = j.followScroll;
  500.      setWaH();  
  501.      
  502.      var useGif = false;  
  503.      if ($.browser.msie && (parseFloat($.browser.version) < 8))  
  504.        useGif = true;  
  505.      if ($.browser.msie && (parseFloat($.browser.version) < 8) && t == "auto")  
  506.        t = 0;  
  507.      var u = $("<div \/>");  
  508.      u.css({  
  509.        width: k + "px",  
  510.        height: 1,  
  511.        display: "block",  
  512.        overflow: "visible",  
  513.        position: "absolute",  
  514.        left: "1px",  
  515.        zIndex: t  
  516.      });
  517.      
  518.      if (fs) {
  519.        u.css('top',$("html").scrollTop() + 1 + "px");
  520.      } else {
  521.          u.css='1px';
  522.        }
  523.      
  524.      $("body").prepend(u).css({  
  525.        height: "100%"  
  526.      });  
  527.      $("html").css({  
  528.        "overflow-y": "scroll",  
  529.        "overflow-x": "hidden"  
  530.      });    var v = Array();  
  531.      generateFlake(l, false);  
  532.      setInterval(animateFlakes, s);  
  533.      window.onresize = setWaH;  
  534.      function setWaH() {  
  535.        k = $('body').width();
  536.        if (!vs) {
  537.          WIN_HEIGHT = window.innerHeight || document.documentElement.clientHeight  
  538.          WIN_HEIGHT -= 50;
  539.        } else WIN_HEIGHT = vs;
  540.      };
  541.      if (fs) {
  542.        window.onscroll = function () {  
  543.          u.css({  
  544.            top: $("html").scrollTop() + "px"  
  545.          })  
  546.        };
  547.      }
  548.      function generateFlake(a, b) {  
  549.        a = a || 1;  
  550.        b = b || false;  
  551.        var i = 0;  
  552.        for (i = 0; i < a; i++) {  
  553.          var c = $("<span \/>");  
  554.          var d = o + Math.floor(Math.random() * p);  
  555.          var e = m[Math.floor(Math.random() * m.length)];  
  556.          if (e.indexOf(".gif") != -1 || e.indexOf(".png") != -1) {  
  557.            var f = new Image();  
  558.            if (useGif)  
  559.              e = e.replace("png", "gif");  
  560.            f.src = e;  
  561.            e = "<img src='" + e + "' alt='jSnowFlake'>"  
  562.          }  
  563.          c.html(e).css({  
  564.            color: n[Math.floor(Math.random() * n.length)],  
  565.            fontSize: d + "px",  
  566.            display: "block",  
  567.            position: "absolute",  
  568.            cursor: "default",  
  569.            "z-index": t  
  570.          });  
  571.          $(u).append(c);  
  572.          f_left = Math.floor(Math.random() * (k - c.width() - 50)) + 25;  
  573.          f_top = (b) ? -1 * c.height() : Math.floor(Math.random() * (WIN_HEIGHT - 50));  
  574.          var g = Math.floor(Math.random() * 90);  
  575.          jQuery.data(c, "posData", {  
  576.            top: f_top,  
  577.            left: f_left,  
  578.            rad: Math.random() * 50,  
  579.            i: Math.ceil(q + Math.random() * (r - q)),  
  580.            swingRange: g  
  581.          });  
  582.          c.css({  
  583.            top: f_top + "px",  
  584.            left: f_left + "px"  
  585.          });  
  586.          v.push(c)  
  587.        }  
  588.      };  
  589.      function animateFlakes() {  
  590.        var i = 0;  
  591.        for (i = v.length - 1; i >= 0; i--) {  
  592.          var f = v[i];  
  593.          var a = jQuery.data(f, "posData");  
  594.          a.top += a.i;  
  595.          var b = Number();  
  596.          b = Math.cos((a.rad / 180) * Math.PI);  
  597.          a.rad += 2;  
  598.          var X = a.left - b * a.swingRange;
  599.          
  600.          if (fa) {
  601.            op=(WIN_HEIGHT - a.top < 100) ? ((WIN_HEIGHT - a.top) / 100) : 1;
  602.            f.css('opacity',op);
  603.          }
  604.          
  605.          f.css({  
  606.            top: a.top + "px",
  607.            left: X + "px"
  608.          });
  609.          if (a.top > WIN_HEIGHT) {  
  610.            jQuery.removeData(f);  
  611.            f.remove();  
  612.            v.splice(i, 1);  
  613.            generateFlake(1, true)  
  614.          }  
  615.        }  
  616.      };  
  617.      return this  
  618.    };  
  619.    $.fn.jSnow.defaults = {  
  620.      flakes: 30,  
  621.      fallingSpeedMin: 1,  
  622.      fallingSpeedMax: 3,  
  623.      flakeMaxSize: 20,  
  624.      flakeMinSize: 10,  
  625.      flakeCode: ["&bull;"],  
  626.      flakeColor: ["#fff"],  
  627.      zIndex: "auto",  
  628.      interval: 50  
  629.    }  
  630.  })(jQuery);
  631.    
  632.  
  633. /* Tooltipster v3.3.0 */;(function(e,t,n){function s(t,n){this.bodyOverflowX;this.callbacks={hide:[],show:[]};this.checkInterval=null;this.Content;this.$el=e(t);this.$elProxy;this.elProxyPosition;this.enabled=true;this.options=e.extend({},i,n);this.mouseIsOverProxy=false;this.namespace="tooltipster-"+Math.round(Math.random()*1e5);this.Status="hidden";this.timerHide=null;this.timerShow=null;this.$tooltip;this.options.iconTheme=this.options.iconTheme.replace(".","");this.options.theme=this.options.theme.replace(".","");this._init()}function o(t,n){var r=true;e.each(t,function(e,i){if(typeof n[e]==="undefined"||t[e]!==n[e]){r=false;return false}});return r}function f(){return!a&&u}function l(){var e=n.body||n.documentElement,t=e.style,r="transition";if(typeof t[r]=="string"){return true}v=["Moz","Webkit","Khtml","O","ms"],r=r.charAt(0).toUpperCase()+r.substr(1);for(var i=0;i<v.length;i++){if(typeof t[v[i]+r]=="string"){return true}}return false}var r="tooltipster",i={animation:"fade",arrow:true,arrowColor:"",autoClose:true,content:null,contentAsHTML:false,contentCloning:true,debug:true,delay:200,minWidth:0,maxWidth:null,functionInit:function(e,t){},functionBefore:function(e,t){t()},functionReady:function(e,t){},functionAfter:function(e){},hideOnClick:false,icon:"(?)",iconCloning:true,iconDesktop:false,iconTouch:false,iconTheme:"tooltipster-icon",interactive:false,interactiveTolerance:350,multiple:false,offsetX:0,offsetY:0,onlyOne:false,position:"top",positionTracker:false,positionTrackerCallback:function(e){if(this.option("trigger")=="hover"&&this.option("autoClose")){this.hide()}},restoration:"current",speed:350,timer:0,theme:"tooltipster-default",touchDevices:true,trigger:"hover",updateAnimation:true};s.prototype={_init:function(){var t=this;if(n.querySelector){var r=null;if(t.$el.data("tooltipster-initialTitle")===undefined){r=t.$el.attr("title");if(r===undefined)r=null;t.$el.data("tooltipster-initialTitle",r)}if(t.options.content!==null){t._content_set(t.options.content)}else{t._content_set(r)}var i=t.options.functionInit.call(t.$el,t.$el,t.Content);if(typeof i!=="undefined")t._content_set(i);t.$el.removeAttr("title").addClass("tooltipstered");if(!u&&t.options.iconDesktop||u&&t.options.iconTouch){if(typeof t.options.icon==="string"){t.$elProxy=e('<span class="'+t.options.iconTheme+'"></span>');t.$elProxy.text(t.options.icon)}else{if(t.options.iconCloning)t.$elProxy=t.options.icon.clone(true);else t.$elProxy=t.options.icon}t.$elProxy.insertAfter(t.$el)}else{t.$elProxy=t.$el}if(t.options.trigger=="hover"){t.$elProxy.on("mouseenter."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=true;t._show()}}).on("mouseleave."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=false}});if(u&&t.options.touchDevices){t.$elProxy.on("touchstart."+t.namespace,function(){t._showNow()})}}else if(t.options.trigger=="click"){t.$elProxy.on("click."+t.namespace,function(){if(!f()||t.options.touchDevices){t._show()}})}}},_show:function(){var e=this;if(e.Status!="shown"&&e.Status!="appearing"){if(e.options.delay){e.timerShow=setTimeout(function(){if(e.options.trigger=="click"||e.options.trigger=="hover"&&e.mouseIsOverProxy){e._showNow()}},e.options.delay)}else e._showNow()}},_showNow:function(n){var r=this;r.options.functionBefore.call(r.$el,r.$el,function(){if(r.enabled&&r.Content!==null){if(n)r.callbacks.show.push(n);r.callbacks.hide=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;if(r.options.onlyOne){e(".tooltipstered").not(r.$el).each(function(t,n){var r=e(n),i=r.data("tooltipster-ns");e.each(i,function(e,t){var n=r.data(t),i=n.status(),s=n.option("autoClose");if(i!=="hidden"&&i!=="disappearing"&&s){n.hide()}})})}var i=function(){r.Status="shown";e.each(r.callbacks.show,function(e,t){t.call(r.$el)});r.callbacks.show=[]};if(r.Status!=="hidden"){var s=0;if(r.Status==="disappearing"){r.Status="appearing";if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+r.options.animation+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.stop().fadeIn(i)}}else if(r.Status==="shown"){i()}}else{r.Status="appearing";var s=r.options.speed;r.bodyOverflowX=e("body").css("overflow-x");e("body").css("overflow-x","hidden");var o="tooltipster-"+r.options.animation,a="-webkit-transition-duration: "+r.options.speed+"ms; -webkit-animation-duration: "+r.options.speed+"ms; -moz-transition-duration: "+r.options.speed+"ms; -moz-animation-duration: "+r.options.speed+"ms; -o-transition-duration: "+r.options.speed+"ms; -o-animation-duration: "+r.options.speed+"ms; -ms-transition-duration: "+r.options.speed+"ms; -ms-animation-duration: "+r.options.speed+"ms; transition-duration: "+r.options.speed+"ms; animation-duration: "+r.options.speed+"ms;",f=r.options.minWidth?"min-width:"+Math.round(r.options.minWidth)+"px;":"",c=r.options.maxWidth?"max-width:"+Math.round(r.options.maxWidth)+"px;":"",h=r.options.interactive?"pointer-events: auto;":"";r.$tooltip=e('<div class="tooltipster-base '+r.options.theme+'" style="'+f+" "+c+" "+h+" "+a+'"><div class="tooltipster-content"></div></div>');if(l())r.$tooltip.addClass(o);r._content_insert();r.$tooltip.appendTo("body");r.reposition();r.options.functionReady.call(r.$el,r.$el,r.$tooltip);if(l()){r.$tooltip.addClass(o+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.css("display","none").fadeIn(r.options.speed,i)}r._interval_set();e(t).on("scroll."+r.namespace+" resize."+r.namespace,function(){r.reposition()});if(r.options.autoClose){e("body").off("."+r.namespace);if(r.options.trigger=="hover"){if(u){setTimeout(function(){e("body").on("touchstart."+r.namespace,function(){r.hide()})},0)}if(r.options.interactive){if(u){r.$tooltip.on("touchstart."+r.namespace,function(e){e.stopPropagation()})}var p=null;r.$elProxy.add(r.$tooltip).on("mouseleave."+r.namespace+"-autoClose",function(){clearTimeout(p);p=setTimeout(function(){r.hide()},r.options.interactiveTolerance)}).on("mouseenter."+r.namespace+"-autoClose",function(){clearTimeout(p)})}else{r.$elProxy.on("mouseleave."+r.namespace+"-autoClose",function(){r.hide()})}if(r.options.hideOnClick){r.$elProxy.on("click."+r.namespace+"-autoClose",function(){r.hide()})}}else if(r.options.trigger=="click"){setTimeout(function(){e("body").on("click."+r.namespace+" touchstart."+r.namespace,function(){r.hide()})},0);if(r.options.interactive){r.$tooltip.on("click."+r.namespace+" touchstart."+r.namespace,function(e){e.stopPropagation()})}}}}if(r.options.timer>0){r.timerHide=setTimeout(function(){r.timerHide=null;r.hide()},r.options.timer+s)}}})},_interval_set:function(){var t=this;t.checkInterval=setInterval(function(){if(e("body").find(t.$el).length===0||e("body").find(t.$elProxy).length===0||t.Status=="hidden"||e("body").find(t.$tooltip).length===0){if(t.Status=="shown"||t.Status=="appearing")t.hide();t._interval_cancel()}else{if(t.options.positionTracker){var n=t._repositionInfo(t.$elProxy),r=false;if(o(n.dimension,t.elProxyPosition.dimension)){if(t.$elProxy.css("position")==="fixed"){if(o(n.position,t.elProxyPosition.position))r=true}else{if(o(n.offset,t.elProxyPosition.offset))r=true}}if(!r){t.reposition();t.options.positionTrackerCallback.call(t,t.$el)}}}},200)},_interval_cancel:function(){clearInterval(this.checkInterval);this.checkInterval=null},_content_set:function(e){if(typeof e==="object"&&e!==null&&this.options.contentCloning){e=e.clone(true)}this.Content=e},_content_insert:function(){var e=this,t=this.$tooltip.find(".tooltipster-content");if(typeof e.Content==="string"&&!e.options.contentAsHTML){t.text(e.Content)}else{t.empty().append(e.Content)}},_update:function(e){var t=this;t._content_set(e);if(t.Content!==null){if(t.Status!=="hidden"){t._content_insert();t.reposition();if(t.options.updateAnimation){if(l()){t.$tooltip.css({width:"","-webkit-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!="hidden"){t.$tooltip.removeClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!=="hidden"){t.$tooltip.css({"-webkit-transition":t.options.speed+"ms","-moz-transition":t.options.speed+"ms","-o-transition":t.options.speed+"ms","-ms-transition":t.options.speed+"ms",transition:t.options.speed+"ms"})}},t.options.speed)}},t.options.speed)}else{t.$tooltip.fadeTo(t.options.speed,.5,function(){if(t.Status!="hidden"){t.$tooltip.fadeTo(t.options.speed,1)}})}}}}else{t.hide()}},_repositionInfo:function(e){return{dimension:{height:e.outerHeight(false),width:e.outerWidth(false)},offset:e.offset(),position:{left:parseInt(e.css("left")),top:parseInt(e.css("top"))}}},hide:function(n){var r=this;if(n)r.callbacks.hide.push(n);r.callbacks.show=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;var i=function(){e.each(r.callbacks.hide,function(e,t){t.call(r.$el)});r.callbacks.hide=[]};if(r.Status=="shown"||r.Status=="appearing"){r.Status="disappearing";var s=function(){r.Status="hidden";if(typeof r.Content=="object"&&r.Content!==null){r.Content.detach()}r.$tooltip.remove();r.$tooltip=null;e(t).off("."+r.namespace);e("body").off("."+r.namespace).css("overflow-x",r.bodyOverflowX);e("body").off("."+r.namespace);r.$elProxy.off("."+r.namespace+"-autoClose");r.options.functionAfter.call(r.$el,r.$el);i()};if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-"+r.options.animation+"-show").addClass("tooltipster-dying");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(s)}else{r.$tooltip.stop().fadeOut(r.options.speed,s)}}else if(r.Status=="hidden"){i()}return r},show:function(e){this._showNow(e);return this},update:function(e){return this.content(e)},content:function(e){if(typeof e==="undefined"){return this.Content}else{this._update(e);return this}},reposition:function(){var n=this;if(e("body").find(n.$tooltip).length!==0){n.$tooltip.css("width","");n.elProxyPosition=n._repositionInfo(n.$elProxy);var r=null,i=e(t).width(),s=n.elProxyPosition,o=n.$tooltip.outerWidth(false),u=n.$tooltip.innerWidth()+1,a=n.$tooltip.outerHeight(false);if(n.$elProxy.is("area")){var f=n.$elProxy.attr("shape"),l=n.$elProxy.parent().attr("name"),c=e('img[usemap="#'+l+'"]'),h=c.offset().left,p=c.offset().top,d=n.$elProxy.attr("coords")!==undefined?n.$elProxy.attr("coords").split(","):undefined;if(f=="circle"){var v=parseInt(d[0]),m=parseInt(d[1]),g=parseInt(d[2]);s.dimension.height=g*2;s.dimension.width=g*2;s.offset.top=p+m-g;s.offset.left=h+v-g}else if(f=="rect"){var v=parseInt(d[0]),m=parseInt(d[1]),y=parseInt(d[2]),b=parseInt(d[3]);s.dimension.height=b-m;s.dimension.width=y-v;s.offset.top=p+m;s.offset.left=h+v}else if(f=="poly"){var w=[],E=[],S=0,x=0,T=0,N=0,C="even";for(var k=0;k<d.length;k++){var L=parseInt(d[k]);if(C=="even"){if(L>T){T=L;if(k===0){S=T}}if(L<S){S=L}C="odd"}else{if(L>N){N=L;if(k==1){x=N}}if(L<x){x=L}C="even"}}s.dimension.height=N-x;s.dimension.width=T-S;s.offset.top=p+x;s.offset.left=h+S}else{s.dimension.height=c.outerHeight(false);s.dimension.width=c.outerWidth(false);s.offset.top=p;s.offset.left=h}}var A=0,O=0,M=0,_=parseInt(n.options.offsetY),D=parseInt(n.options.offsetX),P=n.options.position;function H(){var n=e(t).scrollLeft();if(A-n<0){r=A-n;A=n}if(A+o-n>i){r=A-(i+n-o);A=i+n-o}}function B(n,r){if(s.offset.top-e(t).scrollTop()-a-_-12<0&&r.indexOf("top")>-1){P=n}if(s.offset.top+s.dimension.height+a+12+_>e(t).scrollTop()+e(t).height()&&r.indexOf("bottom")>-1){P=n;M=s.offset.top-a-_-12}}if(P=="top"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left+D-j/2;M=s.offset.top-a-_-12;H();B("bottom","top")}if(P=="top-left"){A=s.offset.left+D;M=s.offset.top-a-_-12;H();B("bottom-left","top-left")}if(P=="top-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top-a-_-12;H();B("bottom-right","top-right")}if(P=="bottom"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left-j/2+D;M=s.offset.top+s.dimension.height+_+12;H();B("top","bottom")}if(P=="bottom-left"){A=s.offset.left+D;M=s.offset.top+s.dimension.height+_+12;H();B("top-left","bottom-left")}if(P=="bottom-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top+s.dimension.height+_+12;H();B("top-right","bottom-right")}if(P=="left"){A=s.offset.left-D-o-12;O=s.offset.left+D+s.dimension.width+12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A<0&&O+o>i){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=o+A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);A=s.offset.left-D-q-12-I;F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A<0){A=s.offset.left+D+s.dimension.width+12;r="left"}}if(P=="right"){A=s.offset.left+D+s.dimension.width+12;O=s.offset.left-D-o-12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A+o>i&&O<0){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=i-A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A+o>i){A=s.offset.left-D-o-12;r="right"}}if(n.options.arrow){var R="tooltipster-arrow-"+P;if(n.options.arrowColor.length<1){var U=n.$tooltip.css("background-color")}else{var U=n.options.arrowColor}if(!r){r=""}else if(r=="left"){R="tooltipster-arrow-right";r=""}else if(r=="right"){R="tooltipster-arrow-left";r=""}else{r="left:"+Math.round(r)+"px;"}if(P=="top"||P=="top-left"||P=="top-right"){var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}else if(P=="bottom"||P=="bottom-left"||P=="bottom-right"){var z=parseFloat(n.$tooltip.css("border-top-width")),W=n.$tooltip.css("border-top-color")}else if(P=="left"){var z=parseFloat(n.$tooltip.css("border-right-width")),W=n.$tooltip.css("border-right-color")}else if(P=="right"){var z=parseFloat(n.$tooltip.css("border-left-width")),W=n.$tooltip.css("border-left-color")}else{var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}if(z>1){z++}var X="";if(z!==0){var V="",J="border-color: "+W+";";if(R.indexOf("bottom")!==-1){V="margin-top: -"+Math.round(z)+"px;"}else if(R.indexOf("top")!==-1){V="margin-bottom: -"+Math.round(z)+"px;"}else if(R.indexOf("left")!==-1){V="margin-right: -"+Math.round(z)+"px;"}else if(R.indexOf("right")!==-1){V="margin-left: -"+Math.round(z)+"px;"}X='<span class="tooltipster-arrow-border" style="'+V+" "+J+';"></span>'}n.$tooltip.find(".tooltipster-arrow").remove();var K='<div class="'+R+' tooltipster-arrow" style="'+r+'">'+X+'<span style="border-color:'+U+';"></span></div>';n.$tooltip.append(K)}n.$tooltip.css({top:Math.round(M)+"px",left:Math.round(A)+"px"})}return n},enable:function(){this.enabled=true;return this},disable:function(){this.hide();this.enabled=false;return this},destroy:function(){var t=this;t.hide();if(t.$el[0]!==t.$elProxy[0]){t.$elProxy.remove()}t.$el.removeData(t.namespace).off("."+t.namespace);var n=t.$el.data("tooltipster-ns");if(n.length===1){var r=null;if(t.options.restoration==="previous"){r=t.$el.data("tooltipster-initialTitle")}else if(t.options.restoration==="current"){r=typeof t.Content==="string"?t.Content:e("<div></div>").append(t.Content).html()}if(r){t.$el.attr("title",r)}t.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else{n=e.grep(n,function(e,n){return e!==t.namespace});t.$el.data("tooltipster-ns",n)}return t},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:undefined},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:undefined},option:function(e,t){if(typeof t=="undefined")return this.options[e];else{this.options[e]=t;return this}},status:function(){return this.Status}};e.fn[r]=function(){var t=arguments;if(this.length===0){if(typeof t[0]==="string"){var n=true;switch(t[0]){case"setDefaults":e.extend(i,t[1]);break;default:n=false;break}if(n)return true;else return this}else{return this}}else{if(typeof t[0]==="string"){var r="#*$~&";this.each(function(){var n=e(this).data("tooltipster-ns"),i=n?e(this).data(n[0]):null;if(i){if(typeof i[t[0]]==="function"){var s=i[t[0]](t[1],t[2])}else{throw new Error('Unknown method .tooltipster("'+t[0]+'")')}if(s!==i){r=s;return false}}else{throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element')}});return r!=="#*$~&"?r:this}else{var o=[],u=t[0]&&typeof t[0].multiple!=="undefined",a=u&&t[0].multiple||!u&&i.multiple,f=t[0]&&typeof t[0].debug!=="undefined",l=f&&t[0].debug||!f&&i.debug;this.each(function(){var n=false,r=e(this).data("tooltipster-ns"),i=null;if(!r){n=true}else if(a){n=true}else if(l){console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.')}if(n){i=new s(this,t[0]);if(!r)r=[];r.push(i.namespace);e(this).data("tooltipster-ns",r);e(this).data(i.namespace,i)}o.push(i)});if(a)return o;else return this}}};var u=!!("ontouchstart"in t);var a=false;e("body").one("mousemove",function(){a=true})})(jQuery,window,document);
  634.  
  635.  
  636. !function (a) {
  637.     a.fn.animatedModal = function (n) {
  638.         function o() {
  639.             m.css({"z-index": e.zIndexOut}), e.afterClose()
  640.         }
  641.  
  642.         function t() {
  643.             e.afterOpen()
  644.         }
  645.  
  646.         var i = a(this), e = a.extend({
  647.             modalTarget: "animatedModal",
  648.             position: "fixed",
  649.             width: "100%",
  650.             height: "100%",
  651.             top: "0px",
  652.             left: "0px",
  653.             zIndexIn: "9999",
  654.             zIndexOut: "-9999",
  655.             color: "#39BEB9",
  656.             opacityIn: "1",
  657.             opacityOut: "0",
  658.             animatedIn: "zoomIn",
  659.             animatedOut: "zoomOut",
  660.             animationDuration: ".6s",
  661.             overflow: "auto",
  662.             beforeOpen: function () {
  663.             },
  664.             afterOpen: function () {
  665.             },
  666.             beforeClose: function () {
  667.             },
  668.             afterClose: function () {
  669.             }
  670.         }, n), d = a(".close-" + e.modalTarget), s = a(i).attr("href"), m = a("body").find("#" + e.modalTarget), l = "#" + m.attr("id");
  671.         m.addClass("animated"), m.addClass(e.modalTarget + "-off");
  672.         var r = {
  673.             position: e.position,
  674.             width: e.width,
  675.             height: e.height,
  676.             top: e.top,
  677.             left: e.left,
  678.             "background-color": e.color,
  679.             "overflow-y": e.overflow,
  680.             "z-index": e.zIndexOut,
  681.             opacity: e.opacityOut,
  682.             "-webkit-animation-duration": e.animationDuration,
  683.             "-moz-animation-duration": e.animationDuration,
  684.             "-ms-animation-duration": e.animationDuration,
  685.             "animation-duration": e.animationDuration
  686.         };
  687.         m.css(r), i.click(function (n) {
  688.             n.preventDefault(), a("body, html").css({overflow: "hidden"}), s == l && (m.hasClass(e.modalTarget + "-off") && (m.removeClass(e.animatedOut), m.removeClass(e.modalTarget + "-off"), m.addClass(e.modalTarget + "-on")), m.hasClass(e.modalTarget + "-on") && (e.beforeOpen(), m.css({
  689.                 opacity: e.opacityIn,
  690.                 "z-index": e.zIndexIn
  691.             }), m.addClass(e.animatedIn), m.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", t)))
  692.         }), d.click(function (n) {
  693.             n.preventDefault(), a("body, html").removeAttr('style'), e.beforeClose(), m.hasClass(e.modalTarget + "-on") && (m.removeClass(e.modalTarget + "-on"), m.addClass(e.modalTarget + "-off")), m.hasClass(e.modalTarget + "-off") && (m.removeClass(e.animatedIn), m.addClass(e.animatedOut), m.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", o))
  694.         })
  695.     }
  696. }(jQuery);
Add Comment
Please, Sign In to add comment