6 lines
188 KiB
JavaScript
6 lines
188 KiB
JavaScript
!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,n=Z.type(t);return"function"===n||Z.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(Z.isFunction(e))return Z.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Z.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ae.test(e))return Z.filter(e,t,n);e=Z.filter(e,t)}return Z.grep(t,function(t){return X.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=de[t]={};return Z.each(t.match(he)||[],function(t,n){e[n]=!0}),e}function s(){K.removeEventListener("DOMContentLoaded",s,!1),t.removeEventListener("load",s,!1),Z.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+a.uid++}function l(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(we,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:be.test(n)?Z.parseJSON(n):n}catch(i){}ye.set(t,e,n)}else n=void 0;return n}function u(){return!0}function c(){return!1}function f(){try{return K.activeElement}catch(t){}}function p(t,e){return Z.nodeName(t,"table")&&Z.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function h(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function d(t){var e=Re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)ve.set(t[n],"globalEval",!e||ve.get(e[n],"globalEval"))}function m(t,e){var n,r,i,o,s,a,l,u;if(1===e.nodeType){if(ve.hasData(t)&&(o=ve.access(t),s=ve.set(e,o),u=o.events)){delete s.handle,s.events={};for(i in u)for(n=0,r=u[i].length;r>n;n++)Z.event.add(e,i,u[i][n])}ye.hasData(t)&&(a=ye.access(t),l=Z.extend({},a),ye.set(e,l))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Z.nodeName(t,e)?Z.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ke.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var r,i=Z(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Z.css(i[0],"display");return i.detach(),o}function w(t){var e=K,n=He[t];return n||(n=b(t,e),"none"!==n&&n||(qe=(qe||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=qe[0].contentDocument,e.write(),e.close(),n=b(t,e),qe.detach()),He[t]=n),n}function x(t,e,n){var r,i,o,s,a=t.style;return n=n||We(t),n&&(s=n.getPropertyValue(e)||n[e]),n&&(""!==s||Z.contains(t.ownerDocument,t)||(s=Z.style(t,e)),Be.test(s)&&Fe.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function C(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function T(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Ye.length;i--;)if(e=Ye[i]+n,e in t)return e;return r}function k(t,e,n){var r=Ue.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function _(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=Z.css(t,n+Ce[o],!0,i)),r?("content"===n&&(s-=Z.css(t,"padding"+Ce[o],!0,i)),"margin"!==n&&(s-=Z.css(t,"border"+Ce[o]+"Width",!0,i))):(s+=Z.css(t,"padding"+Ce[o],!0,i),"padding"!==n&&(s+=Z.css(t,"border"+Ce[o]+"Width",!0,i)));return s}function E(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=We(t),s="border-box"===Z.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=x(t,e,o),(0>i||null==i)&&(i=t.style[e]),Be.test(i))return i;r=s&&(J.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+_(t,e,n||(s?"border":"content"),r,o)+"px"}function $(t,e){for(var n,r,i,o=[],s=0,a=t.length;a>s;s++)r=t[s],r.style&&(o[s]=ve.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Te(r)&&(o[s]=ve.access(r,"olddisplay",w(r.nodeName)))):(i=Te(r),"none"===n&&i||ve.set(r,"olddisplay",i?n:Z.css(r,"display"))));for(s=0;a>s;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function S(t,e,n,r,i){return new S.prototype.init(t,e,n,r,i)}function N(){return setTimeout(function(){Je=void 0}),Je=Z.now()}function D(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=Ce[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function j(t,e,n){for(var r,i=(nn[e]||[]).concat(nn["*"]),o=0,s=i.length;s>o;o++)if(r=i[o].call(n,e,t))return r}function A(t,e,n){var r,i,o,s,a,l,u,c,f=this,p={},h=t.style,d=t.nodeType&&Te(t),g=ve.get(t,"fxshow");n.queue||(a=Z._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,Z.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],u=Z.css(t,"display"),c="none"===u?ve.get(t,"olddisplay")||w(t.nodeName):u,"inline"===c&&"none"===Z.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Ge.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}p[r]=g&&g[r]||Z.style(t,r)}else u=void 0;if(Z.isEmptyObject(p))"inline"===("none"===u?w(t.nodeName):u)&&(h.display=u);else{g?"hidden"in g&&(d=g.hidden):g=ve.access(t,"fxshow",{}),o&&(g.hidden=!d),d?Z(t).show():f.done(function(){Z(t).hide()}),f.done(function(){var e;ve.remove(t,"fxshow");for(e in p)Z.style(t,e,p[e])});for(r in p)s=j(d?g[r]:0,r,f),r in g||(g[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function O(t,e){var n,r,i,o,s;for(n in t)if(r=Z.camelCase(n),i=e[r],o=t[n],Z.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=Z.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function I(t,e,n){var r,i,o=0,s=en.length,a=Z.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=Je||N(),n=Math.max(0,u.startTime+u.duration-e),r=n/u.duration||0,o=1-r,s=0,l=u.tweens.length;l>s;s++)u.tweens[s].run(o);return a.notifyWith(t,[u,o,n]),1>o&&l?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:Z.extend({},e),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Je||N(),duration:n.duration,tweens:[],createTween:function(e,n){var r=Z.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),c=u.props;for(O(c,u.opts.specialEasing);s>o;o++)if(r=en[o].call(u,t,c,u.opts))return r;return Z.map(c,j,u),Z.isFunction(u.opts.start)&&u.opts.start.call(t,u),Z.fx.timer(Z.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function M(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(he)||[];if(Z.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function R(t,e,n,r){function i(a){var l;return o[a]=!0,Z.each(t[a]||[],function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),i(u),!1)}),l}var o={},s=t===wn;return i(e.dataTypes[0])||!o["*"]&&i("*")}function L(t,e){var n,r,i=Z.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Z.extend(!0,t,r),t}function P(t,e,n){for(var r,i,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}function q(t,e,n,r){var i,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=u[l+" "+o]||u["* "+o],!s)for(i in u)if(a=i.split(" "),a[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){s===!0?s=u[i]:u[i]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(f){return{state:"parsererror",error:s?f:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function H(t,e,n,r){var i;if(Z.isArray(e))Z.each(e,function(e,i){n||_n.test(t)?r(t,i):H(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==Z.type(e))r(t,e);else for(i in e)H(t+"["+i+"]",e[i],n,r)}function F(t){return Z.isWindow(t)?t:9===t.nodeType&&t.defaultView}var B=[],W=B.slice,z=B.concat,U=B.push,X=B.indexOf,V={},Q=V.toString,Y=V.hasOwnProperty,J={},K=t.document,G="2.1.3",Z=function(t,e){return new Z.fn.init(t,e)},te=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ee=/^-ms-/,ne=/-([\da-z])/gi,re=function(t,e){return e.toUpperCase()};Z.fn=Z.prototype={jquery:G,constructor:Z,selector:"",length:0,toArray:function(){return W.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:W.call(this)},pushStack:function(t){var e=Z.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Z.each(this,t,e)},map:function(t){return this.pushStack(Z.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(W.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(null)},push:U,sort:B.sort,splice:B.splice},Z.extend=Z.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||Z.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],r=t[e],s!==r&&(u&&r&&(Z.isPlainObject(r)||(i=Z.isArray(r)))?(i?(i=!1,o=n&&Z.isArray(n)?n:[]):o=n&&Z.isPlainObject(n)?n:{},s[e]=Z.extend(u,o,r)):void 0!==r&&(s[e]=r));return s},Z.extend({expando:"jQuery"+(G+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===Z.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Z.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==Z.type(t)||t.nodeType||Z.isWindow(t)?!1:t.constructor&&!Y.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},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?V[Q.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=Z.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ee,"ms-").replace(ne,re)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,s=t.length,a=n(t);if(r){if(a)for(;s>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),i===!1)break}else if(a)for(;s>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(te,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?Z.merge(r,"string"==typeof t?[t]:t):U.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:X.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,s=t.length,a=!n;s>o;o++)r=!e(t[o],o),r!==a&&i.push(t[o]);return i},map:function(t,e,r){var i,o=0,s=t.length,a=n(t),l=[];if(a)for(;s>o;o++)i=e(t[o],o,r),null!=i&&l.push(i);else for(o in t)i=e(t[o],o,r),null!=i&&l.push(i);return z.apply([],l)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),Z.isFunction(t)?(r=W.call(arguments,2),i=function(){return t.apply(e||this,r.concat(W.call(arguments)))},i.guid=t.guid=t.guid||Z.guid++,i):void 0},now:Date.now,support:J}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var ie=function(t){function e(t,e,n,r){var i,o,s,a,l,u,f,h,d,g;if((e?e.ownerDocument||e:H)!==A&&j(e),e=e||A,n=n||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return n;if(!r&&I){if(11!==a&&(i=ye.exec(t)))if(s=i[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&P(e,o)&&o.id===s)return n.push(o),n}else{if(i[2])return G.apply(n,e.getElementsByTagName(t)),n;if((s=i[3])&&x.getElementsByClassName)return G.apply(n,e.getElementsByClassName(s)),n}if(x.qsa&&(!M||!M.test(t))){if(h=f=q,d=e,g=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(u=_(t),(f=e.getAttribute("id"))?h=f.replace(we,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",l=u.length;l--;)u[l]=h+p(u[l]);d=be.test(t)&&c(e.parentNode)||e,g=u.join(",")}if(g)try{return G.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return $(t.replace(le,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[q]=!0,t}function i(t){var e=A.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)C.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r;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 l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function p(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function h(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=B++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,l,u=[F,o];if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(l=e[q]||(e[q]={}),(a=l[r])&&a[0]===F&&a[1]===o)return u[2]=a[2];if(l[r]=u,u[2]=t(e,n,s))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,s=[],a=0,l=t.length,u=null!=e;l>a;a++)(o=t[a])&&(!n||n(o,r,i))&&(s.push(o),u&&e.push(a));return s}function v(t,e,n,i,o,s){return i&&!i[q]&&(i=v(i)),o&&!o[q]&&(o=v(o,s)),r(function(r,s,a,l){var u,c,f,p=[],h=[],d=s.length,v=r||g(e||"*",a.nodeType?[a]:a,[]),y=!t||!r&&e?v:m(v,p,t,a,l),b=n?o||(r?t:d||i)?[]:s:y;if(n&&n(y,b,a,l),i)for(u=m(b,h),i(u,[],a,l),c=u.length;c--;)(f=u[c])&&(b[h[c]]=!(y[h[c]]=f));if(r){if(o||t){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(y[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?te(r,f):p[c])>-1&&(r[u]=!(s[u]=f))}}else b=m(b===s?b.splice(d,b.length):b),o?o(null,s,b,l):G.apply(s,b)})}function y(t){for(var e,n,r,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],a=o?1:0,l=h(function(t){return t===e},s,!0),u=h(function(t){return te(e,t)>-1},s,!0),c=[function(t,n,r){var i=!o&&(r||n!==S)||((e=n).nodeType?l(t,n,r):u(t,n,r));return e=null,i}];i>a;a++)if(n=C.relative[t[a].type])c=[h(d(c),n)];else{if(n=C.filter[t[a].type].apply(null,t[a].matches),n[q]){for(r=++a;i>r&&!C.relative[t[r].type];r++);return v(a>1&&d(c),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(le,"$1"),n,r>a&&y(t.slice(a,r)),i>r&&y(t=t.slice(r)),i>r&&p(t))}c.push(n)}return d(c)}function b(t,n){var i=n.length>0,o=t.length>0,s=function(r,s,a,l,u){var c,f,p,h=0,d="0",g=r&&[],v=[],y=S,b=r||o&&C.find.TAG("*",u),w=F+=null==y?1:Math.random()||.1,x=b.length;for(u&&(S=s!==A&&s);d!==x&&null!=(c=b[d]);d++){if(o&&c){for(f=0;p=t[f++];)if(p(c,s,a)){l.push(c);break}u&&(F=w)}i&&((c=!p&&c)&&h--,r&&g.push(c))}if(h+=d,i&&d!==h){for(f=0;p=n[f++];)p(g,v,s,a);if(r){if(h>0)for(;d--;)g[d]||v[d]||(v[d]=J.call(l));v=m(v)}G.apply(l,v),u&&!r&&v.length>0&&h+n.length>1&&e.uniqueSort(l)}return u&&(F=w,S=y),g};return i?r(s):s}var w,x,C,T,k,_,E,$,S,N,D,j,A,O,I,M,R,L,P,q="sizzle"+1*new Date,H=t.document,F=0,B=0,W=n(),z=n(),U=n(),X=function(t,e){return t===e&&(D=!0),0},V=1<<31,Q={}.hasOwnProperty,Y=[],J=Y.pop,K=Y.push,G=Y.push,Z=Y.slice,te=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=re.replace("w","w#"),oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),fe=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(se),he=new RegExp("^"+ie+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Ce=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){j()};try{G.apply(Y=Z.call(H.childNodes),H.childNodes),Y[H.childNodes.length].nodeType}catch(ke){G={apply:Y.length?function(t,e){K.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}x=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},j=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:H;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,O=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),I=!k(r),x.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=ve.test(r.getElementsByClassName),x.getById=i(function(t){return O.appendChild(t).id=q,!r.getElementsByName||!r.getElementsByName(q).length}),x.getById?(C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&I){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace(xe,Ce);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(xe,Ce);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=x.getElementsByClassName&&function(t,e){return I?e.getElementsByClassName(t):void 0},R=[],M=[],(x.qsa=ve.test(r.querySelectorAll))&&(i(function(t){O.appendChild(t).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ne+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+ee+")"),t.querySelectorAll("[id~="+q+"-]").length||M.push("~="),t.querySelectorAll(":checked").length||M.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||M.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=ve.test(L=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(t){x.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),R.push("!=",se)}),M=M.length&&new RegExp(M.join("|")),R=R.length&&new RegExp(R.join("|")),e=ve.test(O.compareDocumentPosition),P=e||ve.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===H&&P(H,t)?-1:e===r||e.ownerDocument===H&&P(H,e)?1:N?te(N,t)-te(N,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,i=0,o=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!o||!a)return t===r?-1:e===r?1:o?-1:a?1:N?te(N,t)-te(N,e):0;if(o===a)return s(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?s(l[i],u[i]):l[i]===H?-1:u[i]===H?1:0},r):A},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&j(t),n=n.replace(fe,"='$1']"),!(!x.matchesSelector||!I||R&&R.test(n)||M&&M.test(n)))try{var r=L.call(t,n);if(r||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&j(t),P(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&j(t);var n=C.attrHandle[e.toLowerCase()],r=n&&Q.call(C.attrHandle,e.toLowerCase())?n(t,e,!I):void 0;return void 0!==r?r:x.attributes||!I?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(D=!x.detectDuplicates,N=!x.sortStable&&t.slice(0),t.sort(X),D){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return N=null,t},T=e.getText=function(t){var e,n="",r=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+=T(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=T(e);return n},C=e.selectors={cacheLength:50,createPseudo:r,match:de,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(xe,Ce),t[3]=(t[3]||t[4]||t[5]||"").replace(xe,Ce),"~="===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 de.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&pe.test(n)&&(e=_(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(xe,Ce).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+ne+")"+t+"("+ne+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var u,c,f,p,h,d,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(c=m[q]||(m[q]={}),u=c[t]||[],h=u[0]===F&&u[1],p=u[0]===F&&u[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(p=h=0)||d.pop();)if(1===f.nodeType&&++p&&f===e){c[t]=[F,h,p];break}}else if(y&&(u=(e[q]||(e[q]={}))[t])&&u[0]===F)p=u[1];else for(;(f=++h&&f&&f[g]||(p=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||(y&&((f[q]||(f[q]={}))[t]=[F,p]),f!==e)););return p-=i,p===r||p%r===0&&p/r>=0}}},PSEUDO:function(t,n){var i,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[q]?o(n):o.length>1?(i=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),s=i.length;s--;)r=te(t,i[s]),t[r]=!(e[r]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=E(t.replace(le,"$1"));return i[q]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(xe,Ce),function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:r(function(t){return he.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xe,Ce).toLowerCase(),function(e){var n;do if(n=I?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===O},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.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!C.pseudos.empty(t)},header:function(t){return me.test(t.nodeName)},input:function(t){return ge.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:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:u(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return f.prototype=C.filters=C.pseudos,C.setFilters=new f,_=e.tokenize=function(t,n){var r,i,o,s,a,l,u,c=z[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=C.preFilter;a;){(!r||(i=ue.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=ce.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(le," ")}),a=a.slice(r.length));for(s in C.filter)!(i=de[s].exec(a))||u[s]&&!(i=u[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):z(t,l).slice(0)},E=e.compile=function(t,e){var n,r=[],i=[],o=U[t+" "];if(!o){for(e||(e=_(t)),n=e.length;n--;)o=y(e[n]),o[q]?r.push(o):i.push(o);o=U(t,b(i,r)),o.selector=t}return o},$=e.select=function(t,e,n,r){var i,o,s,a,l,u="function"==typeof t&&t,f=!r&&_(t=u.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&x.getById&&9===e.nodeType&&I&&C.relative[o[1].type]){if(e=(C.find.ID(s.matches[0].replace(xe,Ce),e)||[])[0],!e)return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=de.needsContext.test(t)?0:o.length;i--&&(s=o[i],!C.relative[a=s.type]);)if((l=C.find[a])&&(r=l(s.matches[0].replace(xe,Ce),be.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&p(o),!t)return G.apply(n,r),n;break}}return(u||E(t,f))(r,e,!I,n,be.test(t)&&c(e.parentNode)||e),n},x.sortStable=q.split("").sort(X).join("")===q,x.detectDuplicates=!!D,j(),x.sortDetached=i(function(t){return 1&t.compareDocumentPosition(A.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(ee,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);Z.find=ie,Z.expr=ie.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=ie.uniqueSort,Z.text=ie.getText,Z.isXMLDoc=ie.isXML,Z.contains=ie.contains;var oe=Z.expr.match.needsContext,se=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ae=/^.[^:#\[\.,]*$/;Z.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Z.find.matchesSelector(r,t)?[r]:[]:Z.find.matches(t,Z.grep(e,function(t){return 1===t.nodeType}))},Z.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(Z(t).filter(function(){for(e=0;n>e;e++)if(Z.contains(i[e],this))return!0
|
||
}));for(e=0;n>e;e++)Z.find(t,i[e],r);return r=this.pushStack(n>1?Z.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&oe.test(t)?Z(t):t||[],!1).length}});var le,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=Z.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ue.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||le).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Z?e[0]:e,Z.merge(this,Z.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),se.test(n[1])&&Z.isPlainObject(e))for(n in e)Z.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=K.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Z.isFunction(t)?"undefined"!=typeof le.ready?le.ready(t):t(Z):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Z.makeArray(t,this))};ce.prototype=Z.fn,le=Z(K);var fe=/^(?:parents|prev(?:Until|All))/,pe={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Z(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),Z.fn.extend({has:function(t){var e=Z(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(Z.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=oe.test(t)||"string"!=typeof t?Z(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Z.unique(o):o)},index:function(t){return t?"string"==typeof t?X.call(Z(t),this[0]):X.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Z.unique(Z.merge(this.get(),Z(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Z.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Z.dir(t,"parentNode")},parentsUntil:function(t,e,n){return Z.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return Z.dir(t,"nextSibling")},prevAll:function(t){return Z.dir(t,"previousSibling")},nextUntil:function(t,e,n){return Z.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return Z.dir(t,"previousSibling",n)},siblings:function(t){return Z.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Z.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Z.merge([],t.childNodes)}},function(t,e){Z.fn[t]=function(n,r){var i=Z.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Z.filter(r,i)),this.length>1&&(pe[t]||Z.unique(i),fe.test(t)&&i.reverse()),this.pushStack(i)}});var he=/\S+/g,de={};Z.Callbacks=function(t){t="string"==typeof t?de[t]||o(t):Z.extend({},t);var e,n,r,i,s,a,l=[],u=!t.once&&[],c=function(o){for(e=t.memory&&o,n=!0,a=i||0,i=0,s=l.length,r=!0;l&&s>a;a++)if(l[a].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,l&&(u?u.length&&c(u.shift()):e?l=[]:f.disable())},f={add:function(){if(l){var n=l.length;!function o(e){Z.each(e,function(e,n){var r=Z.type(n);"function"===r?t.unique&&f.has(n)||l.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?s=l.length:e&&(i=n,c(e))}return this},remove:function(){return l&&Z.each(arguments,function(t,e){for(var n;(n=Z.inArray(e,l,n))>-1;)l.splice(n,1),r&&(s>=n&&s--,a>=n&&a--)}),this},has:function(t){return t?Z.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||f.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||n&&!u||(e=e||[],e=[t,e.slice?e.slice():e],r?u.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},Z.extend({Deferred:function(t){var e=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Z.Deferred(function(n){Z.each(e,function(e,o){var s=Z.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&Z.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Z.extend(t,r):r}},i={};return r.pipe=r.then,Z.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=W.call(arguments),s=o.length,a=1!==s||t&&Z.isFunction(t.promise)?s:0,l=1===a?t:Z.Deferred(),u=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?W.call(arguments):i,r===e?l.notifyWith(n,r):--a||l.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)o[i]&&Z.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,e)):--a;return a||l.resolveWith(r,o),l.promise()}});var ge;Z.fn.ready=function(t){return Z.ready.promise().done(t),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Z.readyWait++:Z.ready(!0)},ready:function(t){(t===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,t!==!0&&--Z.readyWait>0||(ge.resolveWith(K,[Z]),Z.fn.triggerHandler&&(Z(K).triggerHandler("ready"),Z(K).off("ready"))))}}),Z.ready.promise=function(e){return ge||(ge=Z.Deferred(),"complete"===K.readyState?setTimeout(Z.ready):(K.addEventListener("DOMContentLoaded",s,!1),t.addEventListener("load",s,!1))),ge.promise(e)},Z.ready.promise();var me=Z.access=function(t,e,n,r,i,o,s){var a=0,l=t.length,u=null==n;if("object"===Z.type(n)){i=!0;for(a in n)Z.access(t,e,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,Z.isFunction(r)||(s=!0),u&&(s?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(Z(t),n)})),e))for(;l>a;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):l?e(t[0],n):o};Z.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=Z.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=a.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,Z.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(Z.isEmptyObject(o))Z.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,Z.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),s=this.cache[o];if(void 0===e)this.cache[o]={};else{Z.isArray(e)?r=e.concat(e.map(Z.camelCase)):(i=Z.camelCase(e),e in s?r=[e,i]:(r=i,r=r in s?[r]:r.match(he)||[])),n=r.length;for(;n--;)delete s[r[n]]}},hasData:function(t){return!Z.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var ve=new a,ye=new a,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,we=/([A-Z])/g;Z.extend({hasData:function(t){return ye.hasData(t)||ve.hasData(t)},data:function(t,e,n){return ye.access(t,e,n)},removeData:function(t,e){ye.remove(t,e)},_data:function(t,e,n){return ve.access(t,e,n)},_removeData:function(t,e){ve.remove(t,e)}}),Z.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=ye.get(o),1===o.nodeType&&!ve.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=Z.camelCase(r.slice(5)),l(o,r,i[r])));ve.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){ye.set(this,t)}):me(this,function(e){var n,r=Z.camelCase(t);if(o&&void 0===e){if(n=ye.get(o,t),void 0!==n)return n;if(n=ye.get(o,r),void 0!==n)return n;if(n=l(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,r);ye.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&ye.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ye.remove(this,t)})}}),Z.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=ve.get(t,e),n&&(!r||Z.isArray(n)?r=ve.access(t,e,Z.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=Z.queue(t,e),r=n.length,i=n.shift(),o=Z._queueHooks(t,e),s=function(){Z.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ve.get(t,n)||ve.access(t,n,{empty:Z.Callbacks("once memory").add(function(){ve.remove(t,[e+"queue",n])})})}}),Z.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Z.queue(this[0],t):void 0===e?this:this.each(function(){var n=Z.queue(this,t,e);Z._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Z.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Z.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Z.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=ve.get(o[s],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var xe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ce=["Top","Right","Bottom","Left"],Te=function(t,e){return t=e||t,"none"===Z.css(t,"display")||!Z.contains(t.ownerDocument,t)},ke=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),J.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",J.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var _e="undefined";J.focusinBubbles="onfocusin"in t;var Ee=/^key/,$e=/^(?:mouse|pointer|contextmenu)|click/,Se=/^(?:focusinfocus|focusoutblur)$/,Ne=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(t,e,n,r,i){var o,s,a,l,u,c,f,p,h,d,g,m=ve.get(t);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=Z.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return typeof Z!==_e&&Z.event.triggered!==e.type?Z.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(he)||[""],u=e.length;u--;)a=Ne.exec(e[u])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h&&(f=Z.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=Z.event.special[h]||{},c=Z.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Z.expr.match.needsContext.test(i),namespace:d.join(".")},o),(p=l[h])||(p=l[h]=[],p.delegateCount=0,f.setup&&f.setup.call(t,r,d,s)!==!1||t.addEventListener&&t.addEventListener(h,s,!1)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),Z.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,s,a,l,u,c,f,p,h,d,g,m=ve.hasData(t)&&ve.get(t);if(m&&(l=m.events)){for(e=(e||"").match(he)||[""],u=e.length;u--;)if(a=Ne.exec(e[u])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){for(f=Z.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=l[h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(t,c));s&&!p.length&&(f.teardown&&f.teardown.call(t,d,m.handle)!==!1||Z.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)Z.event.remove(t,h+e[u],n,r,!0);Z.isEmptyObject(l)&&(delete m.handle,ve.remove(t,"events"))}},trigger:function(e,n,r,i){var o,s,a,l,u,c,f,p=[r||K],h=Y.call(e,"type")?e.type:e,d=Y.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Se.test(h+Z.event.triggered)&&(h.indexOf(".")>=0&&(d=h.split("."),h=d.shift(),d.sort()),u=h.indexOf(":")<0&&"on"+h,e=e[Z.expando]?e:new Z.Event(h,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:Z.makeArray(n,[e]),f=Z.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Z.isWindow(r)){for(l=f.delegateType||h,Se.test(l+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||K)&&p.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:f.bindType||h,c=(ve.get(s,"events")||{})[e.type]&&ve.get(s,"handle"),c&&c.apply(s,n),c=u&&s[u],c&&c.apply&&Z.acceptData(s)&&(e.result=c.apply(s,n),e.result===!1&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),n)!==!1||!Z.acceptData(r)||u&&Z.isFunction(r[h])&&!Z.isWindow(r)&&(a=r[u],a&&(r[u]=null),Z.event.triggered=h,r[h](),Z.event.triggered=void 0,a&&(r[u]=a)),e.result}},dispatch:function(t){t=Z.event.fix(t);var e,n,r,i,o,s=[],a=W.call(arguments),l=(ve.get(this,"events")||{})[t.type]||[],u=Z.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(s=Z.event.handlers.call(this,t,l),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((Z.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(r=[],n=0;a>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?Z(i,this).index(l)>=0:Z.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget 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,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[Z.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=$e.test(i)?this.mouseHooks:Ee.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new Z.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return Z.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Z.extend(new Z.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Z.event.trigger(i,null,e):Z.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Z.Event=function(t,e){return this instanceof Z.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?u:c):this.type=t,e&&Z.extend(this,e),this.timeStamp=t&&t.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(t,e)},Z.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Z.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!Z.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),J.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Z.event.simulate(e,t.target,Z.event.fix(t),!0)};Z.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=ve.access(r,e);i||r.addEventListener(t,n,!0),ve.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ve.access(r,e)-1;i?ve.access(r,e,i):(r.removeEventListener(t,n,!0),ve.remove(r,e))}}}),Z.fn.extend({on:function(t,e,n,r,i){var o,s;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(s in t)this.on(s,e,n,t[s],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(t){return Z().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Z.guid++)),this.each(function(){Z.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,Z(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.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=c),this.each(function(){Z.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){Z.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?Z.event.trigger(t,e,n,!0):void 0}});var De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,je=/<([\w:]+)/,Ae=/<|&#?\w+;/,Oe=/<(?:script|style|link)/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^$|\/(?:java|ecma)script/i,Re=/^true\/(.*)/,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Pe={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,"",""]};Pe.optgroup=Pe.option,Pe.tbody=Pe.tfoot=Pe.colgroup=Pe.caption=Pe.thead,Pe.th=Pe.td,Z.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),l=Z.contains(t.ownerDocument,t);if(!(J.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Z.isXMLDoc(t)))for(s=v(a),o=v(t),r=0,i=o.length;i>r;r++)y(o[r],s[r]);if(e)if(n)for(o=o||v(t),s=s||v(a),r=0,i=o.length;i>r;r++)m(o[r],s[r]);else m(t,a);return s=v(a,"script"),s.length>0&&g(s,!l&&v(t,"script")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,l,u,c=e.createDocumentFragment(),f=[],p=0,h=t.length;h>p;p++)if(i=t[p],i||0===i)if("object"===Z.type(i))Z.merge(f,i.nodeType?[i]:i);else if(Ae.test(i)){for(o=o||c.appendChild(e.createElement("div")),s=(je.exec(i)||["",""])[1].toLowerCase(),a=Pe[s]||Pe._default,o.innerHTML=a[1]+i.replace(De,"<$1></$2>")+a[2],u=a[0];u--;)o=o.lastChild;Z.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",p=0;i=f[p++];)if((!r||-1===Z.inArray(i,r))&&(l=Z.contains(i.ownerDocument,i),o=v(c.appendChild(i),"script"),l&&g(o),n))for(u=0;i=o[u++];)Me.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=Z.event.special,s=0;void 0!==(n=t[s]);s++){if(Z.acceptData(n)&&(i=n[ve.expando],i&&(e=ve.cache[i]))){if(e.events)for(r in e.events)o[r]?Z.event.remove(n,r):Z.removeEvent(n,r,e.handle);ve.cache[i]&&delete ve.cache[i]}delete ye.cache[n[ye.expando]]}}}),Z.fn.extend({text:function(t){return me(this,function(t){return void 0===t?Z.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 this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?Z.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||Z.cleanData(v(n)),n.parentNode&&(e&&Z.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Z.cleanData(v(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 Z.clone(this,t,e)})},html:function(t){return me(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Oe.test(t)&&!Pe[(je.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(De,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(Z.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Z.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=z.apply([],t);var n,r,i,o,s,a,l=0,u=this.length,c=this,f=u-1,p=t[0],g=Z.isFunction(p);if(g||u>1&&"string"==typeof p&&!J.checkClone&&Ie.test(p))return this.each(function(n){var r=c.eq(n);g&&(t[0]=p.call(this,n,r.html())),r.domManip(t,e)});if(u&&(n=Z.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Z.map(v(n,"script"),h),o=i.length;u>l;l++)s=n,l!==f&&(s=Z.clone(s,!0,!0),o&&Z.merge(i,v(s,"script"))),e.call(this[l],s,l);if(o)for(a=i[i.length-1].ownerDocument,Z.map(i,d),l=0;o>l;l++)s=i[l],Me.test(s.type||"")&&!ve.access(s,"globalEval")&&Z.contains(a,s)&&(s.src?Z._evalUrl&&Z._evalUrl(s.src):Z.globalEval(s.textContent.replace(Le,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Z.fn[t]=function(t){for(var n,r=[],i=Z(t),o=i.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),Z(i[s])[e](n),U.apply(r,n.get());return this.pushStack(r)}});var qe,He={},Fe=/^margin/,Be=new RegExp("^("+xe+")(?!px)[a-z%]+$","i"),We=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s.innerHTML="",i.appendChild(o);var e=t.getComputedStyle(s,null);n="1%"!==e.top,r="4px"===e.width,i.removeChild(o)}var n,r,i=K.documentElement,o=K.createElement("div"),s=K.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",J.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(s),t.getComputedStyle&&Z.extend(J,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=s.appendChild(K.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",i.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),i.removeChild(o),s.removeChild(n),e}}))}(),Z.swap=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i};var ze=/^(none|table(?!-c[ea]).+)/,Ue=new RegExp("^("+xe+")(.*)$","i"),Xe=new RegExp("^([+-])=("+xe+")","i"),Ve={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"},Ye=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=x(t,"opacity");return""===n?"1":n}}}},cssNumber:{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,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Z.camelCase(e),l=t.style;return e=Z.cssProps[a]||(Z.cssProps[a]=T(l,a)),s=Z.cssHooks[e]||Z.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:l[e]:(o=typeof n,"string"===o&&(i=Xe.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Z.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||Z.cssNumber[a]||(n+="px"),J.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(l[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,s,a=Z.camelCase(e);return e=Z.cssProps[a]||(Z.cssProps[a]=T(t.style,a)),s=Z.cssHooks[e]||Z.cssHooks[a],s&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=x(t,e,r)),"normal"===i&&e in Qe&&(i=Qe[e]),""===n||n?(o=parseFloat(i),n===!0||Z.isNumeric(o)?o||0:i):i}}),Z.each(["height","width"],function(t,e){Z.cssHooks[e]={get:function(t,n,r){return n?ze.test(Z.css(t,"display"))&&0===t.offsetWidth?Z.swap(t,Ve,function(){return E(t,e,r)}):E(t,e,r):void 0},set:function(t,n,r){var i=r&&We(t);return k(t,n,r?_(t,e,r,"border-box"===Z.css(t,"boxSizing",!1,i),i):0)}}}),Z.cssHooks.marginRight=C(J.reliableMarginRight,function(t,e){return e?Z.swap(t,{display:"inline-block"},x,[t,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(t,e){Z.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+Ce[r]+e]=o[r]||o[r-2]||o[0];return i}},Fe.test(t)||(Z.cssHooks[t+e].set=k)}),Z.fn.extend({css:function(t,e){return me(this,function(t,e,n){var r,i,o={},s=0;if(Z.isArray(e)){for(r=We(t),i=e.length;i>s;s++)o[e[s]]=Z.css(t,e[s],!1,r);return o}return void 0!==n?Z.style(t,e,n):Z.css(t,e)},t,e,arguments.length>1)},show:function(){return $(this,!0)},hide:function(){return $(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Te(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=S,S.prototype={constructor:S,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var t=S.propHooks[this.prop];return t&&t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,n=S.propHooks[this.prop];return this.pos=e=this.options.duration?Z.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):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):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Z.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){Z.fx.step[t.prop]?Z.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Z.cssProps[t.prop]]||Z.cssHooks[t.prop])?Z.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Z.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Z.fx=S.prototype.init,Z.fx.step={};var Je,Ke,Ge=/^(?:toggle|show|hide)$/,Ze=new RegExp("^(?:([+-])=|)("+xe+")([a-z%]*)$","i"),tn=/queueHooks$/,en=[A],nn={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Ze.exec(e),o=i&&i[3]||(Z.cssNumber[t]?"":"px"),s=(Z.cssNumber[t]||"px"!==o&&+r)&&Ze.exec(Z.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do a=a||".5",s/=a,Z.style(n.elem,t,s+o);while(a!==(a=n.cur()/r)&&1!==a&&--l)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};Z.Animation=Z.extend(I,{tweener:function(t,e){Z.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],nn[n]=nn[n]||[],nn[n].unshift(e)},prefilter:function(t,e){e?en.unshift(t):en.push(t)}}),Z.speed=function(t,e,n){var r=t&&"object"==typeof t?Z.extend({},t):{complete:n||!n&&e||Z.isFunction(t)&&t,duration:t,easing:n&&e||e&&!Z.isFunction(e)&&e};return r.duration=Z.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Z.fx.speeds?Z.fx.speeds[r.duration]:Z.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Z.isFunction(r.old)&&r.old.call(this),r.queue&&Z.dequeue(this,r.queue)},r},Z.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Te).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=Z.isEmptyObject(t),o=Z.speed(e,n,r),s=function(){var e=I(this,Z.extend({},t),o);(i||ve.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=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",o=Z.timers,s=ve.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&tn.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&Z.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ve.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=Z.timers,s=r?r.length:0;for(n.finish=!0,Z.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);
|
||
delete n.finish})}}),Z.each(["toggle","show","hide"],function(t,e){var n=Z.fn[e];Z.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(D(e,!0),t,r,i)}}),Z.each({slideDown:D("show"),slideUp:D("hide"),slideToggle:D("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Z.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),Z.timers=[],Z.fx.tick=function(){var t,e=0,n=Z.timers;for(Je=Z.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||Z.fx.stop(),Je=void 0},Z.fx.timer=function(t){Z.timers.push(t),t()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Ke||(Ke=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Ke),Ke=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(t,e){return t=Z.fx?Z.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",J.checkOn=""!==t.value,J.optSelected=n.selected,e.disabled=!0,J.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",J.radioValue="t"===t.value}();var rn,on,sn=Z.expr.attrHandle;Z.fn.extend({attr:function(t,e){return me(this,Z.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Z.removeAttr(this,t)})}}),Z.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===_e?Z.prop(t,e,n):(1===o&&Z.isXMLDoc(t)||(e=e.toLowerCase(),r=Z.attrHooks[e]||(Z.expr.match.bool.test(e)?on:rn)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Z.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void Z.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(he);if(o&&1===t.nodeType)for(;n=o[i++];)r=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!J.radioValue&&"radio"===e&&Z.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),on={set:function(t,e,n){return e===!1?Z.removeAttr(t,n):t.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(t,e){var n=sn[e]||Z.find.attr;sn[e]=function(t,e,r){var i,o;return r||(o=sn[e],sn[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,sn[e]=o),i}});var an=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(t,e){return me(this,Z.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Z.propFix[t]||t]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!Z.isXMLDoc(t),o&&(e=Z.propFix[e]||e,i=Z.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||an.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),J.optSelected||(Z.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var ln=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(t){var e,n,r,i,o,s,a="string"==typeof t&&t,l=0,u=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(he)||[];u>l;l++)if(n=this[l],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=Z.trim(r),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,r,i,o,s,a=0===arguments.length||"string"==typeof t&&t,l=0,u=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(he)||[];u>l;l++)if(n=this[l],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");s=t?Z.trim(r):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(Z.isFunction(t)?function(n){Z(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,r=0,i=Z(this),o=t.match(he)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===_e||"boolean"===n)&&(this.className&&ve.set(this,"__className__",this.className),this.className=this.className||t===!1?"":ve.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(ln," ").indexOf(e)>=0)return!0;return!1}});var un=/\r/g;Z.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=Z.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Z(this).val()):t,null==i?i="":"number"==typeof i?i+="":Z.isArray(i)&&(i=Z.map(i,function(t){return null==t?"":t+""})),e=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=Z.valHooks[i.type]||Z.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(un,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(t){var e=Z.find.attr(t,"value");return null!=e?e:Z.trim(Z.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,s=o?null:[],a=o?i+1:r.length,l=0>i?a:o?i:0;a>l;l++)if(n=r[l],!(!n.selected&&l!==i||(J.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Z.nodeName(n.parentNode,"optgroup"))){if(e=Z(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=Z.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=Z.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(t,e){return Z.isArray(e)?t.checked=Z.inArray(Z(t).val(),e)>=0:void 0}},J.checkOn||(Z.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),Z.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){Z.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),Z.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},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,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var cn=Z.now(),fn=/\?/;Z.parseJSON=function(t){return JSON.parse(t+"")},Z.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+t),e};var pn=/#.*$/,hn=/([?&])_=[^&]*/,dn=/^(.*?):[ \t]*([^\r\n]*)$/gm,gn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,mn=/^(?:GET|HEAD)$/,vn=/^\/\//,yn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,bn={},wn={},xn="*/".concat("*"),Cn=t.location.href,Tn=yn.exec(Cn.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn,type:"GET",isLocal:gn.test(Tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?L(L(t,Z.ajaxSettings),e):L(Z.ajaxSettings,t)},ajaxPrefilter:M(bn),ajaxTransport:M(wn),ajax:function(t,e){function n(t,e,n,s){var l,c,v,y,w,C=e;2!==b&&(b=2,a&&clearTimeout(a),r=void 0,o=s||"",x.readyState=t>0?4:0,l=t>=200&&300>t||304===t,n&&(y=P(f,x,n)),y=q(f,y,x,l),l?(f.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[i]=w),w=x.getResponseHeader("etag"),w&&(Z.etag[i]=w)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=y.state,c=y.data,v=y.error,l=!v)):(v=C,(t||!C)&&(C="error",0>t&&(t=0))),x.status=t,x.statusText=(e||C)+"",l?d.resolveWith(p,[c,C,x]):d.rejectWith(p,[x,C,v]),x.statusCode(m),m=void 0,u&&h.trigger(l?"ajaxSuccess":"ajaxError",[x,f,l?c:v]),g.fireWith(p,[x,C]),u&&(h.trigger("ajaxComplete",[x,f]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,a,l,u,c,f=Z.ajaxSetup({},e),p=f.context||f,h=f.context&&(p.nodeType||p.jquery)?Z(p):Z.event,d=Z.Deferred(),g=Z.Callbacks("once memory"),m=f.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!s)for(s={};e=dn.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),n(0,e),this}};if(d.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,f.url=((t||f.url||Cn)+"").replace(pn,"").replace(vn,Tn[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=Z.trim(f.dataType||"*").toLowerCase().match(he)||[""],null==f.crossDomain&&(l=yn.exec(f.url.toLowerCase()),f.crossDomain=!(!l||l[1]===Tn[1]&&l[2]===Tn[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(Tn[3]||("http:"===Tn[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Z.param(f.data,f.traditional)),R(bn,f,e,x),2===b)return x;u=Z.event&&f.global,u&&0===Z.active++&&Z.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!mn.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(fn.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=hn.test(i)?i.replace(hn,"$1_="+cn++):i+(fn.test(i)?"&":"?")+"_="+cn++)),f.ifModified&&(Z.lastModified[i]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[i]),Z.etag[i]&&x.setRequestHeader("If-None-Match",Z.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+xn+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)x.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(p,x,f)===!1||2===b))return x.abort();w="abort";for(c in{success:1,error:1,complete:1})x[c](f[c]);if(r=R(wn,f,e,x)){x.readyState=1,u&&h.trigger("ajaxSend",[x,f]),f.async&&f.timeout>0&&(a=setTimeout(function(){x.abort("timeout")},f.timeout));try{b=1,r.send(v,n)}catch(C){if(!(2>b))throw C;n(-1,C)}}else n(-1,"No Transport");return x},getJSON:function(t,e,n){return Z.get(t,e,n,"json")},getScript:function(t,e){return Z.get(t,void 0,e,"script")}}),Z.each(["get","post"],function(t,e){Z[e]=function(t,n,r,i){return Z.isFunction(n)&&(i=i||r,r=n,n=void 0),Z.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),Z._evalUrl=function(t){return Z.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(t){var e;return Z.isFunction(t)?this.each(function(e){Z(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Z(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 this.each(Z.isFunction(t)?function(e){Z(this).wrapInner(t.call(this,e))}:function(){var e=Z(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Z.isFunction(t);return this.each(function(n){Z(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Z.expr.filters.visible=function(t){return!Z.expr.filters.hidden(t)};var kn=/%20/g,_n=/\[\]$/,En=/\r?\n/g,$n=/^(?:submit|button|image|reset|file)$/i,Sn=/^(?:input|select|textarea|keygen)/i;Z.param=function(t,e){var n,r=[],i=function(t,e){e=Z.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(t)||t.jquery&&!Z.isPlainObject(t))Z.each(t,function(){i(this.name,this.value)});else for(n in t)H(n,t[n],e,i);return r.join("&").replace(kn,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Z.prop(this,"elements");return t?Z.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Z(this).is(":disabled")&&Sn.test(this.nodeName)&&!$n.test(t)&&(this.checked||!ke.test(t))}).map(function(t,e){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(t){return{name:e.name,value:t.replace(En,"\r\n")}}):{name:e.name,value:n.replace(En,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Nn=0,Dn={},jn={0:200,1223:204},An=Z.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Dn)Dn[t]()}),J.cors=!!An&&"withCredentials"in An,J.ajax=An=!!An,Z.ajaxTransport(function(t){var e;return J.cors||An&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),s=++Nn;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Dn[s],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(jn[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Dn[s]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Z.globalEval(t),t}}}),Z.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Z.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=Z("<script>").prop({async:!0,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)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var On=[],In=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=On.pop()||Z.expando+"_"+cn++;return this[t]=!0,t}}),Z.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,s,a=e.jsonp!==!1&&(In.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&In.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=Z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(In,"$1"+i):e.jsonp!==!1&&(e.url+=(fn.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||Z.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},r.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,On.push(i)),s&&Z.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),Z.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=se.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Z.buildFragment([t],e,i),i&&i.length&&Z(i).remove(),Z.merge([],r.childNodes))};var Mn=Z.fn.load;Z.fn.load=function(t,e,n){if("string"!=typeof t&&Mn)return Mn.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return a>=0&&(r=Z.trim(t.slice(a)),t=t.slice(0,a)),Z.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&Z.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?Z("<div>").append(Z.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Z.fn[e]=function(t){return this.on(e,t)}}),Z.expr.filters.animated=function(t){return Z.grep(Z.timers,function(e){return t===e.elem}).length};var Rn=t.document.documentElement;Z.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,u,c=Z.css(t,"position"),f=Z(t),p={};"static"===c&&(t.style.position="relative"),a=f.offset(),o=Z.css(t,"top"),l=Z.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),Z.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+i),"using"in e?e.using.call(t,p):f.css(p)}},Z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Z.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,Z.contains(e,r)?(typeof r.getBoundingClientRect!==_e&&(i=r.getBoundingClientRect()),n=F(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===Z.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Z.nodeName(t[0],"html")||(r=t.offset()),r.top+=Z.css(t[0],"borderTopWidth",!0),r.left+=Z.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-Z.css(n,"marginTop",!0),left:e.left-r.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Rn;t&&!Z.nodeName(t,"html")&&"static"===Z.css(t,"position");)t=t.offsetParent;return t||Rn})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;Z.fn[e]=function(i){return me(this,function(e,i,o){var s=F(e);return void 0===o?s?s[n]:e[i]:void(s?s.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):e[i]=o)},e,i,arguments.length,null)}}),Z.each(["top","left"],function(t,e){Z.cssHooks[e]=C(J.pixelPosition,function(t,n){return n?(n=x(t,e),Be.test(n)?Z(t).position()[e]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(t,e){Z.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){Z.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return me(this,function(e,n,r){var i;return Z.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===r?Z.css(e,n,s):Z.style(e,n,r,s)},e,o?r:void 0,o,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var Ln=t.jQuery,Pn=t.$;return Z.noConflict=function(e){return t.$===Z&&(t.$=Pn),e&&t.jQuery===Z&&(t.jQuery=Ln),Z},typeof e===_e&&(t.jQuery=t.$=Z),Z}),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof e&&e;i||r.data("bs.affix",i=new n(this,o)),"string"==typeof e&&i[e]()})}var n=function(e,r){this.options=t.extend({},n.DEFAULTS,r),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.1",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return n>i?"top":!1;if("bottom"==this.affixed)return null!=n?i+this.unpin<=o.top?!1:"bottom":t-r>=i+s?!1:"bottom";var a=null==this.affixed,l=a?i:o.top,u=a?s:e;return null!=n&&n>=l?"top":null!=r&&l+u>=t-r?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),r=this.options.offset,i=r.top,o=r.bottom,s=t("body").height();"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,e,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-o})}};var r=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),r=n.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),e.call(n,r)})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof e&&i[e].call(n)})}var n='[data-dismiss="alert"]',r=function(e){t(e).on("click",n,this.close)};r.VERSION="3.3.1",r.TRANSITION_DURATION=150,r.prototype.close=function(e){function n(){s.detach().trigger("closed.bs.alert").remove()}var i=t(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=i.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n())};var i=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=r,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",n,r.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.button"),o="object"==typeof e&&e;i||r.data("bs.button",i=new n(this,o)),"toggle"==e?i.toggle():e&&i.setState(e)})}var n=function(e,r){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,r),this.isLoading=!1};n.VERSION="3.3.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();e+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(t.proxy(function(){r[i](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var r=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var r=t(n.target);r.hasClass("btn")||(r=r.closest(".btn")),e.call(r,"toggle"),n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.carousel"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e),s="string"==typeof e?e:o.slide;i||r.data("bs.carousel",i=new n(this,o)),"number"==typeof e?i.to(e):s?i[s]():o.interval&&i.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.1",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n="prev"==t?-1:1,r=this.getItemIndex(e),i=(r+n)%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(e,i),s=this.interval,a="next"==e?"left":"right",l="next"==e?"first":"last",u=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[l]()}if(o.hasClass("active"))return this.sliding=!1;var c=o[0],f=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(f),!f.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=t(this.$indicators.children()[this.getItemIndex(o)]);p&&p.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(n){var r,i=t(this),o=t(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=t.extend({},o.data(),i.data()),a=i.attr("data-slide-to");a&&(s.interval=!1),e.call(o,s),a&&o.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,r=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(r)}function n(e){return this.each(function(){var n=t(this),i=n.data("bs.collapse"),o=t.extend({},r.DEFAULTS,n.data(),"object"==typeof e&&e);!i&&o.toggle&&"show"==e&&(o.toggle=!1),i||n.data("bs.collapse",i=new r(this,o)),"string"==typeof e&&i[e]()})}var r=function(e,n){this.$element=t(e),this.options=t.extend({},r.DEFAULTS,n),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};r.VERSION="3.3.1",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},r.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(i&&i.length&&(e=i.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),e||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[s](this.$element[0][l])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION):i.call(this)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,r){var i=t(r);this.addAriaAndCollapsedClass(e(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)
|
||
};var i=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=r,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var i=t(this);i.attr("data-target")||r.preventDefault();var o=e(i),s=o.data("bs.collapse"),a=s?"toggle":t.extend({},i.data(),{trigger:this});n.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(i).remove(),t(o).each(function(){var r=t(this),i=n(r),o={relatedTarget:this};i.hasClass("open")&&(i.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",o)))}))}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function r(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new s(this)),"string"==typeof e&&r[e].call(n)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.1",s.prototype.toggle=function(r){var i=t(this);if(!i.is(".disabled, :disabled")){var o=n(i),s=o.hasClass("open");if(e(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(o.trigger(r=t.Event("show.bs.dropdown",a)),r.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},s.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var r=t(this);if(e.preventDefault(),e.stopPropagation(),!r.is(".disabled, :disabled")){var i=n(r),s=i.hasClass("open");if(!s&&27!=e.which||s&&27==e.which)return 27==e.which&&i.find(o).trigger("focus"),r.trigger("click");var a=" li:not(.divider):visible a",l=i.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var u=l.index(e.target);38==e.which&&u>0&&u--,40==e.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=r,t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',s.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new n(this)),"string"==typeof e&&i[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.1",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),r=e.data("target");if(r||(r=e.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(r);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},n.prototype.activate=function(e,r,i){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=r.find("> .active"),a=i&&t.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var r=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});var i=function(){n||t(r).trigger(t.support.transition.end)};return setTimeout(i,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(n,r){var i=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(n).is("body")?window:n),this.options=t.extend({},e.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i),this.refresh(),this.process()}function n(n){return this.each(function(){var r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,o)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",n=0;t.isWindow(this.$scrollElement[0])||(e="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var r=this;this.$body.find(this.selector).map(function(){var r=t(this),i=r.data("target")||r.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[e]().top+n,i]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){r.offsets.push(this[0]),r.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)s!=o[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',r=t(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=r,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e,r){return this.each(function(){var i=t(this),o=i.data("bs.modal"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);o||i.data("bs.modal",o=new n(this,s)),"string"==typeof e?o[e](r):s.show&&o.show(r)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.1",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var r=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var i=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.options.backdrop&&r.adjustBackdrop(),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in").attr("aria-hidden",!1),r.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});i?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t('<div class="modal-backdrop '+i+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){r.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},n.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},n.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var r=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=r,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var r=t(this),i=r.attr("href"),o=t(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),e.call(o,s,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof e&&e,s=o&&o.selector;(i||"destroy"!=e)&&(s?(i||r.data("bs.tooltip",i={}),i[s]||(i[s]=new n(this,o))):i||r.data("bs.tooltip",i=new n(this,o)),"string"==typeof e&&i[e]())})}var n=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};n.VERSION="3.3.1",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,r){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),f=o[0].offsetWidth,p=o[0].offsetHeight;if(u){var h=a,d=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(d);a="bottom"==a&&c.bottom+p>g.bottom?"top":"top"==a&&c.top-p<g.top?"bottom":"right"==a&&c.right+f>g.width?"left":"left"==a&&c.left-f<g.left?"right":a,o.removeClass(h).addClass(a)}var m=this.getCalculatedOffset(a,c,f,p);this.applyPlacement(m,a);var v=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(n.TRANSITION_DURATION):v()}},n.prototype.applyPlacement=function(e,n){var r=this.tip(),i=r[0].offsetWidth,o=r[0].offsetHeight,s=parseInt(r.css("margin-top"),10),a=parseInt(r.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top=e.top+s,e.left=e.left+a,t.offset.setOffset(r[0],t.extend({using:function(t){r.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),r.addClass("in");var l=r[0].offsetWidth,u=r[0].offsetHeight;"top"==n&&u!=o&&(e.top=e.top+o-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var f=/top|bottom/.test(n),p=f?2*c.left-i+l:2*c.top-o+u,h=f?"offsetWidth":"offsetHeight";r.offset(e),this.replaceArrow(p,r[0][h],f)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function r(){"in"!=i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,o=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),this.hoverState=null,this)},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],r="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=r?{top:0,left:0}:e.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=r?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,s,a,o)},n.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,l=e.top+o-s.scroll+r;a<s.top?i.top=s.top-a:l>s.top+s.height&&(i.top=s.top+s.height-l)}else{var u=e.left-o,c=e.left+o+n;u<s.left?i.left=s.left-u:c>s.width&&(i.left=s.left+s.width-c)}return i},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var r=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=r,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.popover"),o="object"==typeof e&&e,s=o&&o.selector;(i||"destroy"!=e)&&(s?(i||r.data("bs.popover",i={}),i[s]||(i[s]=new n(this,o))):i||r.data("bs.popover",i=new n(this,o)),"string"==typeof e&&i[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.1",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var r=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=r,this}}(jQuery),function(){function t(t,e,n){for(var r=(n||0)-1,i=t?t.length:0;++r<i;)if(t[r]===e)return r;return-1}function e(e,n){var r=typeof n;if(e=e.cache,"boolean"==r||null==n)return e[n]?0:-1;"number"!=r&&"string"!=r&&(r="object");var i="number"==r?n:v+n;return e=(e=e[r])&&e[i],"object"==r?e&&t(e,n)>-1?0:-1:e?0:-1}function n(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:v+t,i=e[n]||(e[n]={});"object"==n?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function r(t){return t.charCodeAt(0)}function i(t,e){for(var n=t.criteria,r=e.criteria,i=-1,o=n.length;++i<o;){var s=n[i],a=r[i];if(s!==a){if(s>a||"undefined"==typeof s)return 1;if(a>s||"undefined"==typeof a)return-1}}return t.index-e.index}function o(t){var e=-1,r=t.length,i=t[0],o=t[r/2|0],s=t[r-1];if(i&&"object"==typeof i&&o&&"object"==typeof o&&s&&"object"==typeof s)return!1;var a=l();a["false"]=a["null"]=a["true"]=a.undefined=!1;var u=l();for(u.array=t,u.cache=a,u.push=n;++e<r;)u.push(t[e]);return u}function s(t){return"\\"+V[t]}function a(){return d.pop()||[]}function l(){return g.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function u(t){t.length=0,d.length<b&&d.push(t)}function c(t){var e=t.cache;e&&c(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,g.length<b&&g.push(t)}function f(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,i=n-e||0,o=Array(0>i?0:i);++r<i;)o[r]=t[e+r];return o}function p(n){function d(t){return t&&"object"==typeof t&&!Gr(t)&&Ir.call(t,"__wrapped__")?t:new g(t)}function g(t,e){this.__chain__=!!e,this.__wrapped__=t}function b(t){function e(){if(r){var t=f(r);Mr.apply(t,arguments)}if(this instanceof e){var o=Y(n.prototype),s=n.apply(o,t||arguments);return De(s)?s:o}return n.apply(i,t||arguments)}var n=t[0],r=t[2],i=t[4];return Kr(e,t),e}function V(t,e,n,r,i){if(n){var o=n(t);if("undefined"!=typeof o)return o}var s=De(t);if(!s)return t;var l=$r.call(t);if(!W[l])return t;var c=Yr[l];switch(l){case R:case L:return new c(+t);case q:case B:return new c(t);case F:return o=c(t.source,_.exec(t)),o.lastIndex=t.lastIndex,o}var p=Gr(t);if(e){var h=!r;r||(r=a()),i||(i=a());for(var d=r.length;d--;)if(r[d]==t)return i[d];o=p?c(t.length):{}}else o=p?f(t):oi({},t);return p&&(Ir.call(t,"index")&&(o.index=t.index),Ir.call(t,"input")&&(o.input=t.input)),e?(r.push(t),i.push(o),(p?Je:li)(t,function(t,s){o[s]=V(t,e,n,r,i)}),h&&(u(r),u(i)),o):o}function Y(t){return De(t)?Hr(t):{}}function J(t,e,n){if("function"!=typeof t)return Gn;if("undefined"==typeof e||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Jr.funcNames&&(r=!t.name),r=r||!Jr.funcDecomp,!r)){var i=Ar.call(t);Jr.funcNames||(r=!E.test(i)),r||(r=D.test(i),Kr(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return Mn(t,e)}function K(t){function e(){var t=l?s:this;if(i){var d=f(i);Mr.apply(d,arguments)}if((o||c)&&(d||(d=f(arguments)),o&&Mr.apply(d,o),c&&d.length<a))return r|=16,K([n,p?r:-4&r,d,null,s,a]);if(d||(d=arguments),u&&(n=t[h]),this instanceof e){t=Y(n.prototype);var g=n.apply(t,d);return De(g)?g:t}return n.apply(t,d)}var n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=1&r,u=2&r,c=4&r,p=8&r,h=n;return Kr(e,t),e}function G(n,r){var i=-1,s=le(),a=n?n.length:0,l=a>=y&&s===t,u=[];if(l){var f=o(r);f?(s=e,r=f):l=!1}for(;++i<a;){var p=n[i];s(r,p)<0&&u.push(p)}return l&&c(r),u}function te(t,e,n,r){for(var i=(r||0)-1,o=t?t.length:0,s=[];++i<o;){var a=t[i];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Gr(a)||pe(a))){e||(a=te(a,e,n));var l=-1,u=a.length,c=s.length;for(s.length+=u;++l<u;)s[c++]=a[l]}else n||s.push(a)}return s}function ee(t,e,n,r,i,o){if(n){var s=n(t,e);if("undefined"!=typeof s)return!!s}if(t===e)return 0!==t||1/t==1/e;var l=typeof t,c=typeof e;if(!(t!==t||t&&X[l]||e&&X[c]))return!1;if(null==t||null==e)return t===e;var f=$r.call(t),p=$r.call(e);if(f==I&&(f=H),p==I&&(p=H),f!=p)return!1;switch(f){case R:case L:return+t==+e;case q:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case F:case B:return t==Cr(e)}var h=f==M;if(!h){var d=Ir.call(t,"__wrapped__"),g=Ir.call(e,"__wrapped__");if(d||g)return ee(d?t.__wrapped__:t,g?e.__wrapped__:e,n,r,i,o);if(f!=H)return!1;var m=t.constructor,v=e.constructor;if(m!=v&&!(Ne(m)&&m instanceof m&&Ne(v)&&v instanceof v)&&"constructor"in t&&"constructor"in e)return!1}var y=!i;i||(i=a()),o||(o=a());for(var b=i.length;b--;)if(i[b]==t)return o[b]==e;var w=0;if(s=!0,i.push(t),o.push(e),h){if(b=t.length,w=e.length,s=w==b,s||r)for(;w--;){var x=b,C=e[w];if(r)for(;x--&&!(s=ee(t[x],C,n,r,i,o)););else if(!(s=ee(t[w],C,n,r,i,o)))break}}else ai(e,function(e,a,l){return Ir.call(l,a)?(w++,s=Ir.call(t,a)&&ee(t[a],e,n,r,i,o)):void 0}),s&&!r&&ai(t,function(t,e,n){return Ir.call(n,e)?s=--w>-1:void 0});return i.pop(),o.pop(),y&&(u(i),u(o)),s}function ne(t,e,n,r,i){(Gr(e)?Je:li)(e,function(e,o){var s,a,l=e,u=t[o];if(e&&((a=Gr(e))||ui(e))){for(var c=r.length;c--;)if(s=r[c]==e){u=i[c];break}if(!s){var f;n&&(l=n(u,e),(f="undefined"!=typeof l)&&(u=l)),f||(u=a?Gr(u)?u:[]:ui(u)?u:{}),r.push(e),i.push(u),f||ne(u,e,n,r,i)}}else n&&(l=n(u,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(u=l);t[o]=u})}function re(t,e){return t+jr(Qr()*(e-t+1))}function ie(n,r,i){var s=-1,l=le(),f=n?n.length:0,p=[],h=!r&&f>=y&&l===t,d=i||h?a():p;if(h){var g=o(d);l=e,d=g}for(;++s<f;){var m=n[s],v=i?i(m,s,n):m;(r?!s||d[d.length-1]!==v:l(d,v)<0)&&((i||h)&&d.push(v),p.push(m))}return h?(u(d.array),c(d)):i&&u(d),p}function oe(t){return function(e,n,r){var i={};n=d.createCallback(n,r,3);var o=-1,s=e?e.length:0;if("number"==typeof s)for(;++o<s;){var a=e[o];t(i,a,n(a,o,e),e)}else li(e,function(e,r,o){t(i,e,n(e,r,o),o)});return i}}function se(t,e,n,r,i,o){var s=1&e,a=2&e,l=4&e,u=16&e,c=32&e;if(!a&&!Ne(t))throw new Tr;u&&!n.length&&(e&=-17,u=n=!1),c&&!r.length&&(e&=-33,c=r=!1);var p=t&&t.__bindData__;if(p&&p!==!0)return p=f(p),p[2]&&(p[2]=f(p[2])),p[3]&&(p[3]=f(p[3])),!s||1&p[1]||(p[4]=i),!s&&1&p[1]&&(e|=8),!l||4&p[1]||(p[5]=o),u&&Mr.apply(p[2]||(p[2]=[]),n),c&&Pr.apply(p[3]||(p[3]=[]),r),p[1]|=e,se.apply(null,p);var h=1==e||17===e?b:K;return h([t,e,n,r,i,o])}function ae(t){return ei[t]}function le(){var e=(e=d.indexOf)===yn?t:e;return e}function ue(t){return"function"==typeof t&&Sr.test(t)}function ce(t){var e,n;return t&&$r.call(t)==H&&(e=t.constructor,!Ne(e)||e instanceof e)?(ai(t,function(t,e){n=e}),"undefined"==typeof n||Ir.call(t,n)):!1}function fe(t){return ni[t]}function pe(t){return t&&"object"==typeof t&&"number"==typeof t.length&&$r.call(t)==I||!1}function he(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),V(t,e,"function"==typeof n&&J(n,r,1))}function de(t,e,n){return V(t,!0,"function"==typeof e&&J(e,n,1))}function ge(t,e){var n=Y(t);return e?oi(n,e):n}function me(t,e,n){var r;return e=d.createCallback(e,n,3),li(t,function(t,n,i){return e(t,n,i)?(r=n,!1):void 0}),r}function ve(t,e,n){var r;return e=d.createCallback(e,n,3),be(t,function(t,n,i){return e(t,n,i)?(r=n,!1):void 0}),r}function ye(t,e,n){var r=[];ai(t,function(t,e){r.push(e,t)});var i=r.length;for(e=J(e,n,3);i--&&e(r[i--],r[i],t)!==!1;);return t}function be(t,e,n){var r=ti(t),i=r.length;for(e=J(e,n,3);i--;){var o=r[i];if(e(t[o],o,t)===!1)break}return t}function we(t){var e=[];return ai(t,function(t,n){Ne(t)&&e.push(n)}),e.sort()}function xe(t,e){return t?Ir.call(t,e):!1}function Ce(t){for(var e=-1,n=ti(t),r=n.length,i={};++e<r;){var o=n[e];i[t[o]]=o}return i}function Te(t){return t===!0||t===!1||t&&"object"==typeof t&&$r.call(t)==R||!1}function ke(t){return t&&"object"==typeof t&&$r.call(t)==L||!1}function _e(t){return t&&1===t.nodeType||!1}function Ee(t){var e=!0;if(!t)return e;var n=$r.call(t),r=t.length;return n==M||n==B||n==I||n==H&&"number"==typeof r&&Ne(t.splice)?!r:(li(t,function(){return e=!1}),e)}function $e(t,e,n,r){return ee(t,e,"function"==typeof n&&J(n,r,2))}function Se(t){return Br(t)&&!Wr(parseFloat(t))}function Ne(t){return"function"==typeof t}function De(t){return!(!t||!X[typeof t])}function je(t){return Oe(t)&&t!=+t}function Ae(t){return null===t}function Oe(t){return"number"==typeof t||t&&"object"==typeof t&&$r.call(t)==q||!1}function Ie(t){return t&&"object"==typeof t&&$r.call(t)==F||!1}function Me(t){return"string"==typeof t||t&&"object"==typeof t&&$r.call(t)==B||!1}function Re(t){return"undefined"==typeof t}function Le(t,e,n){var r={};return e=d.createCallback(e,n,3),li(t,function(t,n,i){r[n]=e(t,n,i)}),r}function Pe(t){var e=arguments,n=2;if(!De(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=J(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);
|
||
for(var i=f(arguments,1,n),o=-1,s=a(),l=a();++o<n;)ne(t,i[o],r,s,l);return u(s),u(l),t}function qe(t,e,n){var r={};if("function"!=typeof e){var i=[];ai(t,function(t,e){i.push(e)}),i=G(i,te(arguments,!0,!1,1));for(var o=-1,s=i.length;++o<s;){var a=i[o];r[a]=t[a]}}else e=d.createCallback(e,n,3),ai(t,function(t,n,i){e(t,n,i)||(r[n]=t)});return r}function He(t){for(var e=-1,n=ti(t),r=n.length,i=dr(r);++e<r;){var o=n[e];i[e]=[o,t[o]]}return i}function Fe(t,e,n){var r={};if("function"!=typeof e)for(var i=-1,o=te(arguments,!0,!1,1),s=De(t)?o.length:0;++i<s;){var a=o[i];a in t&&(r[a]=t[a])}else e=d.createCallback(e,n,3),ai(t,function(t,n,i){e(t,n,i)&&(r[n]=t)});return r}function Be(t,e,n,r){var i=Gr(t);if(null==n)if(i)n=[];else{var o=t&&t.constructor,s=o&&o.prototype;n=Y(s)}return e&&(e=d.createCallback(e,r,4),(i?Je:li)(t,function(t,r,i){return e(n,t,r,i)})),n}function We(t){for(var e=-1,n=ti(t),r=n.length,i=dr(r);++e<r;)i[e]=t[n[e]];return i}function ze(t){for(var e=arguments,n=-1,r=te(e,!0,!1,1),i=e[2]&&e[2][e[1]]===t?1:r.length,o=dr(i);++n<i;)o[n]=t[r[n]];return o}function Ue(t,e,n){var r=-1,i=le(),o=t?t.length:0,s=!1;return n=(0>n?Ur(0,o+n):n)||0,Gr(t)?s=i(t,e,n)>-1:"number"==typeof o?s=(Me(t)?t.indexOf(e,n):i(t,e,n))>-1:li(t,function(t){return++r>=n?!(s=t===e):void 0}),s}function Xe(t,e,n){var r=!0;e=d.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o&&(r=!!e(t[i],i,t)););else li(t,function(t,n,i){return r=!!e(t,n,i)});return r}function Ve(t,e,n){var r=[];e=d.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o;){var s=t[i];e(s,i,t)&&r.push(s)}else li(t,function(t,n,i){e(t,n,i)&&r.push(t)});return r}function Qe(t,e,n){e=d.createCallback(e,n,3);var r=-1,i=t?t.length:0;if("number"!=typeof i){var o;return li(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}for(;++r<i;){var s=t[r];if(e(s,r,t))return s}}function Ye(t,e,n){var r;return e=d.createCallback(e,n,3),Ke(t,function(t,n,i){return e(t,n,i)?(r=t,!1):void 0}),r}function Je(t,e,n){var r=-1,i=t?t.length:0;if(e=e&&"undefined"==typeof n?e:J(e,n,3),"number"==typeof i)for(;++r<i&&e(t[r],r,t)!==!1;);else li(t,e);return t}function Ke(t,e,n){var r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:J(e,n,3),"number"==typeof r)for(;r--&&e(t[r],r,t)!==!1;);else{var i=ti(t);r=i.length,li(t,function(t,n,o){return n=i?i[--r]:--r,e(o[n],n,o)})}return t}function Ge(t,e){var n=f(arguments,2),r=-1,i="function"==typeof e,o=t?t.length:0,s=dr("number"==typeof o?o:0);return Je(t,function(t){s[++r]=(i?e:t[e]).apply(t,n)}),s}function Ze(t,e,n){var r=-1,i=t?t.length:0;if(e=d.createCallback(e,n,3),"number"==typeof i)for(var o=dr(i);++r<i;)o[r]=e(t[r],r,t);else o=[],li(t,function(t,n,i){o[++r]=e(t,n,i)});return o}function tn(t,e,n){var i=-1/0,o=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Gr(t))for(var s=-1,a=t.length;++s<a;){var l=t[s];l>o&&(o=l)}else e=null==e&&Me(t)?r:d.createCallback(e,n,3),Je(t,function(t,n,r){var s=e(t,n,r);s>i&&(i=s,o=t)});return o}function en(t,e,n){var i=1/0,o=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Gr(t))for(var s=-1,a=t.length;++s<a;){var l=t[s];o>l&&(o=l)}else e=null==e&&Me(t)?r:d.createCallback(e,n,3),Je(t,function(t,n,r){var s=e(t,n,r);i>s&&(i=s,o=t)});return o}function nn(t,e,n,r){if(!t)return n;var i=arguments.length<3;e=d.createCallback(e,r,4);var o=-1,s=t.length;if("number"==typeof s)for(i&&(n=t[++o]);++o<s;)n=e(n,t[o],o,t);else li(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)});return n}function rn(t,e,n,r){var i=arguments.length<3;return e=d.createCallback(e,r,4),Ke(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function on(t,e,n){return e=d.createCallback(e,n,3),Ve(t,function(t,n,r){return!e(t,n,r)})}function sn(t,e,n){if(t&&"number"!=typeof t.length&&(t=We(t)),null==e||n)return t?t[re(0,t.length-1)]:h;var r=an(t);return r.length=Xr(Ur(0,e),r.length),r}function an(t){var e=-1,n=t?t.length:0,r=dr("number"==typeof n?n:0);return Je(t,function(t){var n=re(0,++e);r[e]=r[n],r[n]=t}),r}function ln(t){var e=t?t.length:0;return"number"==typeof e?e:ti(t).length}function un(t,e,n){var r;e=d.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++i<o&&!(r=e(t[i],i,t)););else li(t,function(t,n,i){return!(r=e(t,n,i))});return!!r}function cn(t,e,n){var r=-1,o=Gr(e),s=t?t.length:0,f=dr("number"==typeof s?s:0);for(o||(e=d.createCallback(e,n,3)),Je(t,function(t,n,i){var s=f[++r]=l();o?s.criteria=Ze(e,function(e){return t[e]}):(s.criteria=a())[0]=e(t,n,i),s.index=r,s.value=t}),s=f.length,f.sort(i);s--;){var p=f[s];f[s]=p.value,o||u(p.criteria),c(p)}return f}function fn(t){return t&&"number"==typeof t.length?f(t):We(t)}function pn(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var i=t[e];i&&r.push(i)}return r}function hn(t){return G(t,te(arguments,!0,!0,1))}function dn(t,e,n){var r=-1,i=t?t.length:0;for(e=d.createCallback(e,n,3);++r<i;)if(e(t[r],r,t))return r;return-1}function gn(t,e,n){var r=t?t.length:0;for(e=d.createCallback(e,n,3);r--;)if(e(t[r],r,t))return r;return-1}function mn(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=-1;for(e=d.createCallback(e,n,3);++o<i&&e(t[o],o,t);)r++}else if(r=e,null==r||n)return t?t[0]:h;return f(t,0,Xr(Ur(0,r),i))}function vn(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(t=Ze(t,n,r)),te(t,e)}function yn(e,n,r){if("number"==typeof r){var i=e?e.length:0;r=0>r?Ur(0,i+r):r||0}else if(r){var o=$n(e,n);return e[o]===n?o:-1}return t(e,n,r)}function bn(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=i;for(e=d.createCallback(e,n,3);o--&&e(t[o],o,t);)r++}else r=null==e||n?1:e||r;return f(t,0,Xr(Ur(0,i-r),i))}function wn(){for(var n=[],r=-1,i=arguments.length,s=a(),l=le(),f=l===t,p=a();++r<i;){var h=arguments[r];(Gr(h)||pe(h))&&(n.push(h),s.push(f&&h.length>=y&&o(r?n[r]:p)))}var d=n[0],g=-1,m=d?d.length:0,v=[];t:for(;++g<m;){var b=s[0];if(h=d[g],(b?e(b,h):l(p,h))<0){for(r=i,(b||p).push(h);--r;)if(b=s[r],(b?e(b,h):l(n[r],h))<0)continue t;v.push(h)}}for(;i--;)b=s[i],b&&c(b);return u(s),u(p),v}function xn(t,e,n){var r=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var o=i;for(e=d.createCallback(e,n,3);o--&&e(t[o],o,t);)r++}else if(r=e,null==r||n)return t?t[i-1]:h;return f(t,Ur(0,i-r))}function Cn(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(0>n?Ur(0,r+n):Xr(n,r-1))+1);r--;)if(t[r]===e)return r;return-1}function Tn(t){for(var e=arguments,n=0,r=e.length,i=t?t.length:0;++n<r;)for(var o=-1,s=e[n];++o<i;)t[o]===s&&(Lr.call(t,o--,1),i--);return t}function kn(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var r=-1,i=Ur(0,Nr((e-t)/(n||1))),o=dr(i);++r<i;)o[r]=t,t+=n;return o}function _n(t,e,n){var r=-1,i=t?t.length:0,o=[];for(e=d.createCallback(e,n,3);++r<i;){var s=t[r];e(s,r,t)&&(o.push(s),Lr.call(t,r--,1),i--)}return o}function En(t,e,n){if("number"!=typeof e&&null!=e){var r=0,i=-1,o=t?t.length:0;for(e=d.createCallback(e,n,3);++i<o&&e(t[i],i,t);)r++}else r=null==e||n?1:Ur(0,e);return f(t,r)}function $n(t,e,n,r){var i=0,o=t?t.length:i;for(n=n?d.createCallback(n,r,1):Gn,e=n(e);o>i;){var s=i+o>>>1;n(t[s])<e?i=s+1:o=s}return i}function Sn(){return ie(te(arguments,!0,!0))}function Nn(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(n=d.createCallback(n,r,3)),ie(t,e,n)}function Dn(t){return G(t,f(arguments,1))}function jn(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Gr(n)||pe(n))var r=r?ie(G(r,n).concat(G(n,r))):n}return r||[]}function An(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?tn(hi(t,"length")):0,r=dr(0>n?0:n);++e<n;)r[e]=hi(t,e);return r}function On(t,e){var n=-1,r=t?t.length:0,i={};for(e||!r||Gr(t[0])||(e=[]);++n<r;){var o=t[n];e?i[o]=e[n]:o&&(i[o[0]]=o[1])}return i}function In(t,e){if(!Ne(e))throw new Tr;return function(){return--t<1?e.apply(this,arguments):void 0}}function Mn(t,e){return arguments.length>2?se(t,17,f(arguments,2),null,e):se(t,1,null,null,e)}function Rn(t){for(var e=arguments.length>1?te(arguments,!0,!1,1):we(t),n=-1,r=e.length;++n<r;){var i=e[n];t[i]=se(t[i],1,null,null,t)}return t}function Ln(t,e){return arguments.length>2?se(e,19,f(arguments,2),null,t):se(e,3,null,null,t)}function Pn(){for(var t=arguments,e=t.length;e--;)if(!Ne(t[e]))throw new Tr;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function qn(t,e){return e="number"==typeof e?e:+e||t.length,se(t,4,null,null,null,e)}function Hn(t,e,n){var r,i,o,s,a,l,u,c=0,f=!1,p=!0;if(!Ne(t))throw new Tr;if(e=Ur(0,e)||0,n===!0){var d=!0;p=!1}else De(n)&&(d=n.leading,f="maxWait"in n&&(Ur(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var g=function(){var n=e-(gi()-s);if(0>=n){i&&Dr(i);var f=u;i=l=u=h,f&&(c=gi(),o=t.apply(a,r),l||i||(r=a=null))}else l=Rr(g,n)},m=function(){l&&Dr(l),i=l=u=h,(p||f!==e)&&(c=gi(),o=t.apply(a,r),l||i||(r=a=null))};return function(){if(r=arguments,s=gi(),a=this,u=p&&(l||!d),f===!1)var n=d&&!l;else{i||d||(c=s);var h=f-(s-c),v=0>=h;v?(i&&(i=Dr(i)),c=s,o=t.apply(a,r)):i||(i=Rr(m,h))}return v&&l?l=Dr(l):l||e===f||(l=Rr(g,e)),n&&(v=!0,o=t.apply(a,r)),!v||l||i||(r=a=null),o}}function Fn(t){if(!Ne(t))throw new Tr;var e=f(arguments,1);return Rr(function(){t.apply(h,e)},1)}function Bn(t,e){if(!Ne(t))throw new Tr;var n=f(arguments,2);return Rr(function(){t.apply(h,n)},e)}function Wn(t,e){if(!Ne(t))throw new Tr;var n=function(){var r=n.cache,i=e?e.apply(this,arguments):v+arguments[0];return Ir.call(r,i)?r[i]:r[i]=t.apply(this,arguments)};return n.cache={},n}function zn(t){var e,n;if(!Ne(t))throw new Tr;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Un(t){return se(t,16,f(arguments,1))}function Xn(t){return se(t,32,null,f(arguments,1))}function Vn(t,e,n){var r=!0,i=!0;if(!Ne(t))throw new Tr;return n===!1?r=!1:De(n)&&(r="leading"in n?n.leading:r,i="trailing"in n?n.trailing:i),z.leading=r,z.maxWait=e,z.trailing=i,Hn(t,e,z)}function Qn(t,e){return se(e,16,[t])}function Yn(t){return function(){return t}}function Jn(t,e,n){var r=typeof t;if(null==t||"function"==r)return J(t,e,n);if("object"!=r)return nr(t);var i=ti(t),o=i[0],s=t[o];return 1!=i.length||s!==s||De(s)?function(e){for(var n=i.length,r=!1;n--&&(r=ee(e[i[n]],t[i[n]],null,!0)););return r}:function(t){var e=t[o];return s===e&&(0!==s||1/s==1/e)}}function Kn(t){return null==t?"":Cr(t).replace(ii,ae)}function Gn(t){return t}function Zn(t,e,n){var r=!0,i=e&&we(e);e&&(n||i.length)||(null==n&&(n=e),o=g,e=t,t=d,i=we(e)),n===!1?r=!1:De(n)&&"chain"in n&&(r=n.chain);var o=t,s=Ne(o);Je(i,function(n){var i=t[n]=e[n];s&&(o.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,s=[n];Mr.apply(s,arguments);var a=i.apply(t,s);if(r||e){if(n===a&&De(a))return this;a=new o(a),a.__chain__=e}return a})})}function tr(){return n._=Er,this}function er(){}function nr(t){return function(e){return e[t]}}function rr(t,e,n){var r=null==t,i=null==e;if(null==n&&("boolean"==typeof t&&i?(n=t,t=1):i||"boolean"!=typeof e||(n=e,i=!0)),r&&i&&(e=1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1){var o=Qr();return Xr(t+o*(e-t+parseFloat("1e-"+((o+"").length-1))),e)}return re(t,e)}function ir(t,e){if(t){var n=t[e];return Ne(n)?t[e]():n}}function or(t,e,n){var r=d.templateSettings;t=Cr(t||""),n=si({},n,r);var i,o=si({},n.imports,r.imports),a=ti(o),l=We(o),u=0,c=n.interpolate||N,f="__p += '",p=xr((n.escape||N).source+"|"+c.source+"|"+(c===$?k:N).source+"|"+(n.evaluate||N).source+"|$","g");t.replace(p,function(e,n,r,o,a,l){return r||(r=o),f+=t.slice(u,l).replace(j,s),n&&(f+="' +\n__e("+n+") +\n'"),a&&(i=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),f+="';\n";var g=n.variable,m=g;m||(g="obj",f="with ("+g+") {\n"+f+"\n}\n"),f=(i?f.replace(x,""):f).replace(C,"$1").replace(T,"$1;"),f="function("+g+") {\n"+(m?"":g+" || ("+g+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+O++ +"]")+"\n*/";try{var y=vr(a,"return "+f+v).apply(h,l)}catch(b){throw b.source=f,b}return e?y(e):(y.source=f,y)}function sr(t,e,n){t=(t=+t)>-1?t:0;var r=-1,i=dr(t);for(e=J(e,n,1);++r<t;)i[r]=e(r);return i}function ar(t){return null==t?"":Cr(t).replace(ri,fe)}function lr(t){var e=++m;return Cr(null==t?"":t)+e}function ur(t){return t=new g(t),t.__chain__=!0,t}function cr(t,e){return e(t),t}function fr(){return this.__chain__=!0,this}function pr(){return Cr(this.__wrapped__)}function hr(){return this.__wrapped__}n=n?Z.defaults(Q.Object(),n,Z.pick(Q,A)):Q;var dr=n.Array,gr=n.Boolean,mr=n.Date,vr=n.Function,yr=n.Math,br=n.Number,wr=n.Object,xr=n.RegExp,Cr=n.String,Tr=n.TypeError,kr=[],_r=wr.prototype,Er=n._,$r=_r.toString,Sr=xr("^"+Cr($r).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Nr=yr.ceil,Dr=n.clearTimeout,jr=yr.floor,Ar=vr.prototype.toString,Or=ue(Or=wr.getPrototypeOf)&&Or,Ir=_r.hasOwnProperty,Mr=kr.push,Rr=n.setTimeout,Lr=kr.splice,Pr=kr.unshift,qr=function(){try{var t={},e=ue(e=wr.defineProperty)&&e,n=e(t,t,t)&&e}catch(r){}return n}(),Hr=ue(Hr=wr.create)&&Hr,Fr=ue(Fr=dr.isArray)&&Fr,Br=n.isFinite,Wr=n.isNaN,zr=ue(zr=wr.keys)&&zr,Ur=yr.max,Xr=yr.min,Vr=n.parseInt,Qr=yr.random,Yr={};Yr[M]=dr,Yr[R]=gr,Yr[L]=mr,Yr[P]=vr,Yr[H]=wr,Yr[q]=br,Yr[F]=xr,Yr[B]=Cr,g.prototype=d.prototype;var Jr=d.support={};Jr.funcDecomp=!ue(n.WinRTError)&&D.test(p),Jr.funcNames="string"==typeof vr.name,d.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:$,variable:"",imports:{_:d}},Hr||(Y=function(){function t(){}return function(e){if(De(e)){t.prototype=e;var r=new t;t.prototype=null}return r||n.Object()}}());var Kr=qr?function(t,e){U.value=e,qr(t,"__bindData__",U)}:er,Gr=Fr||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&$r.call(t)==M||!1},Zr=function(t){var e,n=t,r=[];if(!n)return r;if(!X[typeof t])return r;for(e in n)Ir.call(n,e)&&r.push(e);return r},ti=zr?function(t){return De(t)?zr(t):[]}:Zr,ei={"&":"&","<":"<",">":">",'"':""","'":"'"},ni=Ce(ei),ri=xr("("+ti(ni).join("|")+")","g"),ii=xr("["+ti(ei).join("")+"]","g"),oi=function(t,e,n){var r,i=t,o=i;if(!i)return o;var s=arguments,a=0,l="number"==typeof n?2:s.length;if(l>3&&"function"==typeof s[l-2])var u=J(s[--l-1],s[l--],2);else l>2&&"function"==typeof s[l-1]&&(u=s[--l]);for(;++a<l;)if(i=s[a],i&&X[typeof i])for(var c=-1,f=X[typeof i]&&ti(i),p=f?f.length:0;++c<p;)r=f[c],o[r]=u?u(o[r],i[r]):i[r];return o},si=function(t,e,n){var r,i=t,o=i;if(!i)return o;for(var s=arguments,a=0,l="number"==typeof n?2:s.length;++a<l;)if(i=s[a],i&&X[typeof i])for(var u=-1,c=X[typeof i]&&ti(i),f=c?c.length:0;++u<f;)r=c[u],"undefined"==typeof o[r]&&(o[r]=i[r]);return o},ai=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!X[typeof i])return o;e=e&&"undefined"==typeof n?e:J(e,n,3);for(r in i)if(e(i[r],r,t)===!1)return o;return o},li=function(t,e,n){var r,i=t,o=i;if(!i)return o;if(!X[typeof i])return o;e=e&&"undefined"==typeof n?e:J(e,n,3);for(var s=-1,a=X[typeof i]&&ti(i),l=a?a.length:0;++s<l;)if(r=a[s],e(i[r],r,t)===!1)return o;return o},ui=Or?function(t){if(!t||$r.call(t)!=H)return!1;var e=t.valueOf,n=ue(e)&&(n=Or(e))&&Or(n);return n?t==n||Or(t)==n:ce(t)}:ce,ci=oe(function(t,e,n){Ir.call(t,n)?t[n]++:t[n]=1}),fi=oe(function(t,e,n){(Ir.call(t,n)?t[n]:t[n]=[]).push(e)}),pi=oe(function(t,e,n){t[n]=e}),hi=Ze,di=Ve,gi=ue(gi=mr.now)&&gi||function(){return(new mr).getTime()},mi=8==Vr(w+"08")?Vr:function(t,e){return Vr(Me(t)?t.replace(S,""):t,e||0)};return d.after=In,d.assign=oi,d.at=ze,d.bind=Mn,d.bindAll=Rn,d.bindKey=Ln,d.chain=ur,d.compact=pn,d.compose=Pn,d.constant=Yn,d.countBy=ci,d.create=ge,d.createCallback=Jn,d.curry=qn,d.debounce=Hn,d.defaults=si,d.defer=Fn,d.delay=Bn,d.difference=hn,d.filter=Ve,d.flatten=vn,d.forEach=Je,d.forEachRight=Ke,d.forIn=ai,d.forInRight=ye,d.forOwn=li,d.forOwnRight=be,d.functions=we,d.groupBy=fi,d.indexBy=pi,d.initial=bn,d.intersection=wn,d.invert=Ce,d.invoke=Ge,d.keys=ti,d.map=Ze,d.mapValues=Le,d.max=tn,d.memoize=Wn,d.merge=Pe,d.min=en,d.omit=qe,d.once=zn,d.pairs=He,d.partial=Un,d.partialRight=Xn,d.pick=Fe,d.pluck=hi,d.property=nr,d.pull=Tn,d.range=kn,d.reject=on,d.remove=_n,d.rest=En,d.shuffle=an,d.sortBy=cn,d.tap=cr,d.throttle=Vn,d.times=sr,d.toArray=fn,d.transform=Be,d.union=Sn,d.uniq=Nn,d.values=We,d.where=di,d.without=Dn,d.wrap=Qn,d.xor=jn,d.zip=An,d.zipObject=On,d.collect=Ze,d.drop=En,d.each=Je,d.eachRight=Ke,d.extend=oi,d.methods=we,d.object=On,d.select=Ve,d.tail=En,d.unique=Nn,d.unzip=An,Zn(d),d.clone=he,d.cloneDeep=de,d.contains=Ue,d.escape=Kn,d.every=Xe,d.find=Qe,d.findIndex=dn,d.findKey=me,d.findLast=Ye,d.findLastIndex=gn,d.findLastKey=ve,d.has=xe,d.identity=Gn,d.indexOf=yn,d.isArguments=pe,d.isArray=Gr,d.isBoolean=Te,d.isDate=ke,d.isElement=_e,d.isEmpty=Ee,d.isEqual=$e,d.isFinite=Se,d.isFunction=Ne,d.isNaN=je,d.isNull=Ae,d.isNumber=Oe,d.isObject=De,d.isPlainObject=ui,d.isRegExp=Ie,d.isString=Me,d.isUndefined=Re,d.lastIndexOf=Cn,d.mixin=Zn,d.noConflict=tr,d.noop=er,d.now=gi,d.parseInt=mi,d.random=rr,d.reduce=nn,d.reduceRight=rn,d.result=ir,d.runInContext=p,d.size=ln,d.some=un,d.sortedIndex=$n,d.template=or,d.unescape=ar,d.uniqueId=lr,d.all=Xe,d.any=un,d.detect=Qe,d.findWhere=Qe,d.foldl=nn,d.foldr=rn,d.include=Ue,d.inject=nn,Zn(function(){var t={};return li(d,function(e,n){d.prototype[n]||(t[n]=e)}),t}(),!1),d.first=mn,d.last=xn,d.sample=sn,d.take=mn,d.head=mn,li(d,function(t,e){var n="sample"!==e;d.prototype[e]||(d.prototype[e]=function(e,r){var i=this.__chain__,o=t(this.__wrapped__,e,r);return i||null!=e&&(!r||n&&"function"==typeof e)?new g(o,i):o})}),d.VERSION="2.4.1",d.prototype.chain=fr,d.prototype.toString=pr,d.prototype.value=hr,d.prototype.valueOf=hr,Je(["join","pop","shift"],function(t){var e=kr[t];d.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new g(n,t):n}}),Je(["push","reverse","sort","unshift"],function(t){var e=kr[t];d.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Je(["concat","slice","splice"],function(t){var e=kr[t];d.prototype[t]=function(){return new g(e.apply(this.__wrapped__,arguments),this.__chain__)}}),d}var h,d=[],g=[],m=0,v=+new Date+"",y=75,b=40,w=" \f \n\r\u2028\u2029 ",x=/\b__p \+= '';/g,C=/\b(__p \+=) '' \+/g,T=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_=/\w*$/,E=/^\s*function[ \n\r\t]+\w/,$=/<%=([\s\S]+?)%>/g,S=RegExp("^["+w+"]*0+(?=.$)"),N=/($^)/,D=/\bthis\b/,j=/['\n\r\t\u2028\u2029\\]/g,A=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],O=0,I="[object Arguments]",M="[object Array]",R="[object Boolean]",L="[object Date]",P="[object Function]",q="[object Number]",H="[object Object]",F="[object RegExp]",B="[object String]",W={};W[P]=!1,W[I]=W[M]=W[R]=W[L]=W[q]=W[H]=W[F]=W[B]=!0;var z={leading:!1,maxWait:0,trailing:!1},U={configurable:!1,enumerable:!1,value:null,writable:!1},X={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},V={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},Q=X[typeof window]&&window||this,Y=X[typeof exports]&&exports&&!exports.nodeType&&exports,J=X[typeof module]&&module&&!module.nodeType&&module,K=J&&J.exports===Y&&Y,G=X[typeof global]&&global;!G||G.global!==G&&G.window!==G||(Q=G);var Z=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Q._=Z,define(function(){return Z})):Y&&J?K?(J.exports=Z)._=Z:Y._=Z:Q._=Z}.call(this),function(){var t,e=window.Messenger;t=window.Messenger=function(){return t._call.apply(this,arguments)},window.Messenger.noConflict=function(){return window.Messenger=e,t}}(),window.Messenger._=function(){if(window._)return window._;var t=Array.prototype,e=Object.prototype,n=Function.prototype,r=(t.push,t.slice),i=(t.concat,e.toString),o=(e.hasOwnProperty,t.forEach),s=(t.map,t.reduce,t.reduceRight,t.filter),a=(t.every,t.some,t.indexOf,t.lastIndexOf,Array.isArray,Object.keys),l=n.bind,u={},c={},f=u.each=u.forEach=function(t,e,n){if(null!=t)if(o&&t.forEach===o)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t)===c)return}else for(var s in t)if(u.has(t,s)&&e.call(n,t[s],s,t)===c)return};u.result=function(t,e){if(null==t)return null;var n=t[e];return u.isFunction(n)?n.call(t):n},u.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}};var p=0;return u.uniqueId=function(t){var e=++p+"";return t?t+e:e},u.filter=u.select=function(t,e,n){var r=[];return null==t?r:s&&t.filter===s?t.filter(e,n):(f(t,function(t,i,o){e.call(n,t,i,o)&&(r[r.length]=t)}),r)},f(["Arguments","Function","String","Number","Date","RegExp"],function(t){u["is"+t]=function(e){return i.call(e)=="[object "+t+"]"}}),u.defaults=function(t){return f(r.call(arguments,1),function(e){if(e)for(var n in e)null==t[n]&&(t[n]=e[n])}),t},u.extend=function(t){return f(r.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},u.keys=a||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)u.has(t,n)&&(e[e.length]=n);return e},u.bind=function(t,e){if(t.bind===l&&l)return l.apply(t,r.call(arguments,1));var n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}},u.isObject=function(t){return t===Object(t)},u}(),window.Messenger.Events=function(){if(window.Backbone&&Backbone.Events)return Backbone.Events;var t=function(){var t=/\s+/,e=function(e,n,r,i){if(!r)return!0;if("object"==typeof r)for(var o in r)e[n].apply(e,[o,r[o]].concat(i));else{if(!t.test(r))return!0;for(var s=r.split(t),a=0,l=s.length;l>a;a++)e[n].apply(e,[s[a]].concat(i))}},n=function(t,e){var n,r=-1,i=t.length;switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,e[0]);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,e[0],e[1]);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,e[0],e[1],e[2]);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e)}},r={on:function(t,n,r){if(!e(this,"on",t,[n,r])||!n)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:n,context:r,ctx:r||this}),this},once:function(t,n,r){if(!e(this,"once",t,[n,r])||!n)return this;var i=this,o=_.once(function(){i.off(t,o),n.apply(this,arguments)});return o._callback=n,this.on(t,o,r),this},off:function(t,n,r){var i,o,s,a,l,u,c,f;if(!this._events||!e(this,"off",t,[n,r]))return this;if(!t&&!n&&!r)return this._events={},this;for(a=t?[t]:_.keys(this._events),l=0,u=a.length;u>l;l++)if(t=a[l],i=this._events[t]){if(s=[],n||r)for(c=0,f=i.length;f>c;c++)o=i[c],(n&&n!==o.callback&&n!==o.callback._callback||r&&r!==o.context)&&s.push(o);this._events[t]=s}return this},trigger:function(t){if(!this._events)return this;var r=Array.prototype.slice.call(arguments,1);if(!e(this,"trigger",t,r))return this;var i=this._events[t],o=this._events.all;return i&&n(i,r),o&&n(o,arguments),this},listenTo:function(t,e,n){var r=this._listeners||(this._listeners={}),i=t._listenerId||(t._listenerId=_.uniqueId("l"));return r[i]=t,t.on(e,"object"==typeof e?this:n,this),this},stopListening:function(t,e,n){var r=this._listeners;if(r){if(t)t.off(e,"object"==typeof e?this:n,this),e||n||delete r[t._listenerId];else{"object"==typeof e&&(n=this);for(var i in r)r[i].off(e,n,this);this._listeners={}}return this}}};return r.bind=r.on,r.unbind=r.off,r};return t()}(),function(){var t,e,n,r,i,o,s,a,l,u,c,f={}.hasOwnProperty,p=function(t,e){function n(){this.constructor=t}for(var r in e)f.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h=[].slice,d=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=jQuery,o=null!=(l=window._)?l:window.Messenger._,r=null!=(u="undefined"!=typeof Backbone&&null!==Backbone?Backbone.Events:void 0)?u:window.Messenger.Events,n=function(){function e(e){t.extend(this,r),o.isObject(e)&&(e.el&&this.setElement(e.el),this.model=e.model),this.initialize.apply(this,arguments)}return e.prototype.setElement=function(e){return this.$el=t(e),this.el=this.$el[0]},e.prototype.delegateEvents=function(t){var e,n,r,i,s,a,l;if(t||(t=o.result(this,"events"))){this.undelegateEvents(),e=/^(\S+)\s*(.*)$/,l=[];for(r in t){if(s=t[r],o.isFunction(s)||(s=this[t[r]]),!s)throw new Error('Method "'+t[r]+'" does not exist');i=r.match(e),n=i[1],a=i[2],s=o.bind(s,this),n+=".delegateEvents"+this.cid,l.push(""===a?this.jqon(n,s):this.jqon(n,a,s))}return l}},e.prototype.jqon=function(t,e,n){var r;return null!=this.$el.on?(r=this.$el).on.apply(r,arguments):(null==n&&(n=e,e=void 0),null!=e?this.$el.delegate(e,t,n):this.$el.bind(t,n))},e.prototype.jqoff=function(t){var e;return null!=this.$el.off?(e=this.$el).off.apply(e,arguments):(this.$el.undelegate(),this.$el.unbind(t))},e.prototype.undelegateEvents=function(){return this.jqoff(".delegateEvents"+this.cid)},e.prototype.remove=function(){return this.undelegateEvents(),this.$el.remove()},e}(),s=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,e),n.prototype.defaults={hideAfter:10,scroll:!0,closeButtonText:"×"},n.prototype.initialize=function(e){return null==e&&(e={}),this.shown=!1,this.rendered=!1,this.messenger=e.messenger,this.options=t.extend({},this.options,e,this.defaults)},n.prototype.show=function(){var t;return this.rendered||this.render(),this.$message.removeClass("messenger-hidden"),t=this.shown,this.shown=!0,t?void 0:this.trigger("show")},n.prototype.hide=function(){var t;if(this.rendered)return this.$message.addClass("messenger-hidden"),t=this.shown,this.shown=!1,t?this.trigger("hide"):void 0},n.prototype.cancel=function(){return this.hide()},n.prototype.update=function(e){var n,r=this;return o.isString(e)&&(e={message:e}),t.extend(this.options,e),this.lastUpdate=new Date,this.rendered=!1,this.events=null!=(n=this.options.events)?n:{},this.render(),this.actionsToEvents(),this.delegateEvents(),this.checkClickable(),this.options.hideAfter?(this.$message.addClass("messenger-will-hide-after"),null!=this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(function(){return r.hide()},1e3*this.options.hideAfter)):this.$message.removeClass("messenger-will-hide-after"),this.options.hideOnNavigate?(this.$message.addClass("messenger-will-hide-on-navigate"),null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.history:void 0)&&Backbone.history.on("route",function(){return r.hide()})):this.$message.removeClass("messenger-will-hide-on-navigate"),this.trigger("update",this)},n.prototype.scrollTo=function(){return this.options.scroll?t.scrollTo(this.$el,{duration:400,offset:{left:0,top:-20}}):void 0},n.prototype.timeSinceUpdate=function(){return this.lastUpdate?new Date-this.lastUpdate:null},n.prototype.actionsToEvents=function(){var t,e,n,r,i=this;n=this.options.actions,r=[];for(e in n)t=n[e],r.push(this.events['click [data-action="'+e+'"] a']=function(t){return function(n){return n.preventDefault(),n.stopPropagation(),i.trigger("action:"+e,t,n),t.action.call(i,n,i)}}(t));return r},n.prototype.checkClickable=function(){var t,e,n,r;n=this.events,r=[];for(e in n)t=n[e],r.push("click"===e?this.$message.addClass("messenger-clickable"):void 0);return r},n.prototype.undelegateEvents=function(){var t;return n.__super__.undelegateEvents.apply(this,arguments),null!=(t=this.$message)?t.removeClass("messenger-clickable"):void 0},n.prototype.parseActions=function(){var e,n,r,i,o,s;n=[],o=this.options.actions;for(i in o)e=o[i],r=t.extend({},e),r.name=i,null==(s=r.label)&&(r.label=i),n.push(r);return n},n.prototype.template=function(e){var n,r,i,o,s,a,l,u,c,f,p=this;for(s=t("<div class='messenger-message message alert "+e.type+" message-"+e.type+" alert-"+e.type+"'>"),e.showCloseButton&&(i=t('<button type="button" class="messenger-close" data-dismiss="alert">'),i.html(e.closeButtonText),i.click(function(){return p.cancel(),!0}),s.append(i)),a=t('<div class="messenger-message-inner">'+e.message+"</div>"),s.append(a),e.actions.length&&(r=t('<div class="messenger-actions">')),f=e.actions,u=0,c=f.length;c>u;u++)l=f[u],n=t("<span>"),n.attr("data-action",""+l.name),o=t("<a>"),o.html(l.label),n.append(t('<span class="messenger-phrase">')),n.append(o),r.append(n);return s.append(r),s},n.prototype.render=function(){var e;if(!this.rendered)return this._hasSlot||(this.setElement(this.messenger._reserveMessageSlot(this)),this._hasSlot=!0),e=t.extend({},this.options,{actions:this.parseActions()}),this.$message=t(this.template(e)),this.$el.html(this.$message),this.shown=!0,this.rendered=!0,this.trigger("render")},n}(n),i=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this._timers={}},e.prototype.cancel=function(){return this.clearTimers(),this.hide(),null!=this._actionInstance&&null!=this._actionInstance.abort?this._actionInstance.abort():void 0},e.prototype.clearTimers=function(){var t,e,n,r;n=this._timers;for(t in n)e=n[t],clearTimeout(e);return this._timers={},null!=(r=this.$message)?r.removeClass("messenger-retry-soon messenger-retry-later"):void 0},e.prototype.render=function(){var t,n,r,i;e.__super__.render.apply(this,arguments),this.clearTimers(),r=this.options.actions,i=[];for(n in r)t=r[n],i.push(t.auto?this.startCountdown(n,t):void 0);return i},e.prototype.renderPhrase=function(t,e){var n;return n=t.phrase.replace("TIME",this.formatTime(e))},e.prototype.formatTime=function(t){var e;return e=function(t,e){return t=Math.floor(t),1!==t&&(e+="s"),"in "+t+" "+e},0===Math.floor(t)?"now...":60>t?e(t,"second"):(t/=60,60>t?e(t,"minute"):(t/=60,e(t,"hour")))},e.prototype.startCountdown=function(t,e){var n,r,i,o,s=this;if(null==this._timers[t])return n=this.$message.find("[data-action='"+t+"'] .messenger-phrase"),r=null!=(o=e.delay)?o:3,10>=r?(this.$message.removeClass("messenger-retry-later"),this.$message.addClass("messenger-retry-soon")):(this.$message.removeClass("messenger-retry-soon"),this.$message.addClass("messenger-retry-later")),(i=function(){var o;return n.text(s.renderPhrase(e,r)),r>0?(o=Math.min(r,1),r-=o,s._timers[t]=setTimeout(i,1e3*o)):(s.$message.removeClass("messenger-retry-soon messenger-retry-later"),delete s._timers[t],e.action())})()},e}(s),a=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,e),n.prototype.tagName="ul",n.prototype.className="messenger",n.prototype.messageDefaults={type:"info"},n.prototype.initialize=function(e){return this.options=null!=e?e:{},this.history=[],this.messageDefaults=t.extend({},this.messageDefaults,this.options.messageDefaults)},n.prototype.render=function(){return this.updateMessageSlotClasses()},n.prototype.findById=function(t){return o.filter(this.history,function(e){return e.msg.options.id===t})},n.prototype._reserveMessageSlot=function(e){var n,r,i=this;for(n=t("<li>"),n.addClass("messenger-message-slot"),this.$el.prepend(n),this.history.push({msg:e,$slot:n}),this._enforceIdConstraint(e),e.on("update",function(){return i._enforceIdConstraint(e)});this.options.maxMessages&&this.history.length>this.options.maxMessages;)r=this.history.shift(),r.msg.remove(),r.$slot.remove();return n},n.prototype._enforceIdConstraint=function(t){var e,n,r,i,o;if(null!=t.options.id)for(o=this.history,n=0,r=o.length;r>n;n++)if(e=o[n],i=e.msg,null!=i.options.id&&i.options.id===t.options.id&&t!==i){if(t.options.singleton)return void t.hide();i.hide()}},n.prototype.newMessage=function(t){var e,n,r,o,a=this;return null==t&&(t={}),t.messenger=this,s=null!=(n=null!=(r=Messenger.themes[null!=(o=t.theme)?o:this.options.theme])?r.Message:void 0)?n:i,e=new s(t),e.on("show",function(){return t.scrollTo&&"fixed"!==a.$el.css("position")?e.scrollTo():void 0
|
||
}),e.on("hide show render",this.updateMessageSlotClasses,this),e},n.prototype.updateMessageSlotClasses=function(){var t,e,n,r,i,o,s;for(r=!0,e=null,t=!1,s=this.history,i=0,o=s.length;o>i;i++)n=s[i],n.$slot.removeClass("messenger-first messenger-last messenger-shown"),n.msg.shown&&n.msg.rendered&&(n.$slot.addClass("messenger-shown"),t=!0,e=n,r&&(r=!1,n.$slot.addClass("messenger-first")));return null!=e&&e.$slot.addClass("messenger-last"),this.$el[""+(t?"remove":"add")+"Class"]("messenger-empty")},n.prototype.hideAll=function(){var t,e,n,r,i;for(r=this.history,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t.msg.hide());return i},n.prototype.post=function(e){var n;return o.isString(e)&&(e={message:e}),e=t.extend(!0,{},this.messageDefaults,e),n=this.newMessage(e),n.update(e),n},n}(n),e=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,e),n.prototype.doDefaults={progressMessage:null,successMessage:null,errorMessage:"Error connecting to the server.",showSuccessWithoutError:!0,retry:{auto:!0,allow:!0},action:t.ajax},n.prototype.hookBackboneAjax=function(e){var n,r=this;if(null==e&&(e={}),null==window.Backbone)throw"Expected Backbone to be defined";return e=o.defaults(e,{id:"BACKBONE_ACTION",errorMessage:!1,successMessage:"Request completed successfully.",showSuccessWithoutError:!1}),n=function(t){var n;return n=o.extend({},e,t.messenger),r["do"](n,t)},null!=Backbone.ajax?(Backbone.ajax._withoutMessenger&&(Backbone.ajax=Backbone.ajax._withoutMessenger),(null==e.action||e.action===this.doDefaults.action)&&(e.action=Backbone.ajax),n._withoutMessenger=Backbone.ajax,Backbone.ajax=n):Backbone.sync=o.wrap(Backbone.sync,function(){var e,r,i;return i=arguments[0],e=2<=arguments.length?h.call(arguments,1):[],r=t.ajax,t.ajax=n,i.call.apply(i,[this].concat(h.call(e))),t.ajax=r})},n.prototype._getHandlerResponse=function(t){return t===!1?!1:t===!0||null==t?!0:t},n.prototype._parseEvents=function(t){var e,n,r,i,o,s,a;null==t&&(t={}),o={};for(i in t)r=t[i],n=i.indexOf(" "),s=i.substring(0,n),e=i.substring(n+1),null==(a=o[s])&&(o[s]={}),o[s][e]=r;return o},n.prototype._normalizeResponse=function(){var t,e,n,r,i,s,a;for(n=1<=arguments.length?h.call(arguments,0):[],r=null,i=null,t=null,s=0,a=n.length;a>s;s++)e=n[s],"success"===e||"timeout"===e||"abort"===e?r=e:null!=(null!=e?e.readyState:void 0)&&null!=(null!=e?e.responseText:void 0)?i=e:o.isObject(e)&&(t=e);return[r,t,i]},n.prototype.run=function(){var e,n,r,i,s,a,l,u,c,f,p,g=this;if(a=arguments[0],c=arguments[1],e=3<=arguments.length?h.call(arguments,2):[],null==c&&(c={}),a=t.extend(!0,{},this.messageDefaults,this.doDefaults,null!=a?a:{}),n=this._parseEvents(a.events),r=function(t,e){var n;return n=a[t+"Message"],o.isFunction(n)?n.call(g,t,e):n},l=null!=(p=a.messageInstance)?p:this.newMessage(a),null!=a.id&&(l.options.id=a.id),null!=a.progressMessage&&l.update(t.extend({},a,{message:r("progress",null),type:"info"})),s={},o.each(["error","success"],function(i){var u;return u=c[i],s[i]=function(){var s,f,p,m,v,y,b,w,x,C,T,k,_,E,$;return y=1<=arguments.length?h.call(arguments,0):[],x=g._normalizeResponse.apply(g,y),v=x[0],s=x[1],w=x[2],"success"===i&&null==l.errorCount&&a.showSuccessWithoutError===!1&&(a.successMessage=null),"error"===i&&(null==(C=a.errorCount)&&(a.errorCount=0),a.errorCount+=1),p=a.returnsPromise?y[0]:"function"==typeof u?u.apply(null,y):void 0,b=g._getHandlerResponse(p),o.isString(b)&&(b={message:b}),"error"!==i||0!==(null!=w?w.status:void 0)&&"abort"!==v?"error"===i&&null!=a.ignoredErrorCodes&&(T=null!=w?w.status:void 0,d.call(a.ignoredErrorCodes,T)>=0)?void l.hide():(f={message:r(i,w),type:i,events:null!=(k=n[i])?k:{},hideOnNavigate:"success"===i},m=t.extend({},a,f,b),"number"==typeof(null!=(_=m.retry)?_.allow:void 0)&&m.retry.allow--,"error"===i&&(null!=w?w.status:void 0)>=500&&(null!=(E=m.retry)?E.allow:void 0)?(null==m.retry.delay&&(m.retry.delay=m.errorCount<4?10:300),m.hideAfter&&(null==($=m._hideAfter)&&(m._hideAfter=m.hideAfter),m.hideAfter=m._hideAfter+m.retry.delay),m._retryActions=!0,m.actions={retry:{label:"retry now",phrase:"Retrying TIME",auto:m.retry.auto,delay:m.retry.delay,action:function(){return m.messageInstance=l,setTimeout(function(){return g["do"].apply(g,[m,c].concat(h.call(e)))},0)}},cancel:{action:function(){return l.cancel()}}}):m._retryActions&&(delete m.actions.retry,delete m.actions.cancel,delete a._retryActions),l.update(m),b&&m.message?(Messenger(o.extend({},g.options,{instance:g})),l.show()):l.hide()):void l.hide()}}),!a.returnsPromise)for(f in s)i=s[f],u=c[f],c[f]=i;return l._actionInstance=a.action.apply(a,[c].concat(h.call(e))),a.returnsPromise&&l._actionInstance.then(s.success,s.error),l},n.prototype["do"]=n.prototype.run,n.prototype.ajax=function(){var e,n;return n=arguments[0],e=2<=arguments.length?h.call(arguments,1):[],n.action=t.ajax,this.run.apply(this,[n].concat(h.call(e)))},n.prototype.expectPromise=function(t,e){return e=o.extend({},e,{action:t,returnsPromise:!0}),this.run(e)},n.prototype.error=function(t){return null==t&&(t={}),"string"==typeof t&&(t={message:t}),t.type="error",this.post(t)},n.prototype.info=function(t){return null==t&&(t={}),"string"==typeof t&&(t={message:t}),t.type="info",this.post(t)},n.prototype.success=function(t){return null==t&&(t={}),"string"==typeof t&&(t={message:t}),t.type="success",this.post(t)},n}(a),t.fn.messenger=function(){var n,r,i,s,l,u,c,f;return i=arguments[0],r=2<=arguments.length?h.call(arguments,1):[],null==i&&(i={}),n=this,null!=i&&o.isString(i)?(f=n.data("messenger"))[i].apply(f,r):(l=i,null==n.data("messenger")&&(a=null!=(u=null!=(c=Messenger.themes[l.theme])?c.Messenger:void 0)?u:e,n.data("messenger",s=new a(t.extend({el:n},l))),s.render()),n.data("messenger"))},window.Messenger._call=function(e){var n,r,i,o,s,a,l,u,c,f,p;if(a={extraClasses:"messenger-fixed messenger-on-bottom messenger-on-right",theme:"future",maxMessages:9,parentLocations:["body"]},e=t.extend(a,t._messengerDefaults,Messenger.options,e),null!=e.theme&&(e.extraClasses+=" messenger-theme-"+e.theme),l=e.instance||Messenger.instance,null==e.instance){for(c=e.parentLocations,r=null,i=null,f=0,p=c.length;p>f;f++)if(u=c[f],r=t(u),r.length){o=u;break}l?t(l._location).is(t(o))||(l.$el.detach(),r.prepend(l.$el)):(n=t("<ul>"),r.prepend(n),l=n.messenger(e),l._location=o,Messenger.instance=l)}return null!=l._addedClasses&&l.$el.removeClass(l._addedClasses),l.$el.addClass(s=""+l.className+" "+e.extraClasses),l._addedClasses=s,l},t.extend(Messenger,{Message:i,Messenger:e,themes:null!=(c=Messenger.themes)?c:{}}),t.globalMessenger=window.Messenger=Messenger}.call(this),function(t){"use strict";"function"==typeof define&&define.amd?define(t):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=t():"undefined"!=typeof Package?Sortable=t():window.Sortable=t()}(function(){"use strict";function t(t,e){this.el=t,this.options=e=e||{};var r={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",ignore:"a, img",filter:null,animation:0,setData:function(t,e){t.setData("Text",e.textContent)}};for(var i in r)!(i in e)&&(e[i]=r[i]);var s=e.group;s&&"object"==typeof s||(s=e.group={name:s}),["pull","put"].forEach(function(t){t in s||(s[t]=!0)}),R.forEach(function(r){e[r]=n(this,e[r]||L),o(t,r.substr(2).toLowerCase(),e[r])},this),t[N]=s.name+" "+(s.put.join?s.put.join(" "):"");for(var a in this)"_"===a.charAt(0)&&(this[a]=n(this,this[a]));o(t,"mousedown",this._onTapStart),o(t,"touchstart",this._onTapStart),O&&o(t,"selectstart",this._onTapStart),o(t,"dragover",this._onDragOver),o(t,"dragenter",this._onDragOver),H.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function e(t){b&&b.state!==t&&(l(b,"display",t?"none":""),!t&&b.state&&w.insertBefore(b,m),b.state=t)}function n(t,e){var n=q.call(arguments,2);return e.bind?e.bind.apply(e,[t].concat(n)):function(){return e.apply(t,n.concat(q.call(arguments)))}}function r(t,e,n){if(t){n=n||j,e=e.split(".");var r=e.shift().toUpperCase(),i=new RegExp("\\s("+e.join("|")+")\\s","g");do if(">*"===r&&t.parentNode===n||(""===r||t.nodeName==r)&&(!e.length||((" "+t.className+" ").match(i)||[]).length==e.length))return t;while(t!==n&&(t=t.parentNode))}return null}function i(t){t.dataTransfer.dropEffect="move",t.preventDefault()}function o(t,e,n){t.addEventListener(e,n,!1)}function s(t,e,n){t.removeEventListener(e,n,!1)}function a(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(/\s+/g," ").replace(" "+e+" ","");t.className=r+(n?" "+e:"")}}function l(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return j.defaultView&&j.defaultView.getComputedStyle?n=j.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function u(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;o>i;i++)n(r[i],i);return r}return[]}function c(t){t.draggable=!1}function f(){I=!1}function p(t,e){var n=t.lastElementChild,r=n.getBoundingClientRect();return e.clientY-(r.top+r.height)>5&&n}function h(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function d(t){for(var e=0;t&&(t=t.previousElementSibling)&&"TEMPLATE"!==t.nodeName;)e++;return e}function g(t,e){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?t.call(r,n[0]):t.apply(r,n),n=void 0},e))}}var m,v,y,b,w,x,C,T,k,_,E,$,S={},N="Sortable"+(new Date).getTime(),D=window,j=D.document,A=D.parseInt,O=!!j.createElement("div").dragDrop,I=!1,M=function(t,e,n,r,i,o){var s=j.createEvent("Event");s.initEvent(e,!0,!0),s.item=n||t,s.from=r||t,s.oldIndex=i,s.newIndex=o,t.dispatchEvent(s)},R="onAdd onUpdate onRemove onStart onEnd onFilter onSort".split(" "),L=function(){},P=Math.abs,q=[].slice,H=[];return t.prototype={constructor:t,_dragStarted:function(){a(m,this.options.ghostClass,!0),t.active=this,M(w,"start",m,w,v)},_onTapStart:function(t){var e=t.type,n=t.touches&&t.touches[0],i=(n||t).target,s=i,a=this.options,f=this.el,p=a.filter;if(!("mousedown"===e&&0!==t.button||a.disabled)){if(a.handle&&(i=r(i,a.handle,f)),i=r(i,a.draggable,f),v=d(i),"function"==typeof p){if(p.call(this,t,i,this))return M(s,"filter",i,f,v),void t.preventDefault()}else if(p&&(p=p.split(",").some(function(t){return t=r(s,t.trim(),f),t?(M(t,"filter",i,f,v),!0):void 0})))return void t.preventDefault();if(i&&!m&&i.parentNode===f){"selectstart"===e&&i.dragDrop(),E=t,w=this.el,m=i,C=m.nextSibling,_=this.options.group,m.draggable=!0,a.ignore.split(",").forEach(function(t){u(i,t.trim(),c)}),n&&(E={target:i,clientX:n.clientX,clientY:n.clientY},this._onDragStart(E,!0),t.preventDefault()),o(j,"mouseup",this._onDrop),o(j,"touchend",this._onDrop),o(j,"touchcancel",this._onDrop),o(m,"dragend",this),o(w,"dragstart",this._onDragStart),o(j,"dragover",this);try{j.selection?j.selection.empty():window.getSelection().removeAllRanges()}catch(h){}"clone"==_.pull&&(b=m.cloneNode(!0),l(b,"display","none"),w.insertBefore(b,m))}}},_emulateDragOver:function(){if($){l(y,"display","none");var t=j.elementFromPoint($.clientX,$.clientY),e=t,n=this.options.group.name,r=H.length;if(e)do{if((" "+e[N]+" ").indexOf(n)>-1){for(;r--;)H[r]({clientX:$.clientX,clientY:$.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);l(y,"display","")}},_onTouchMove:function(t){if(E){var e=t.touches[0],n=e.clientX-E.clientX,r=e.clientY-E.clientY,i="translate3d("+n+"px,"+r+"px,0)";$=e,l(y,"webkitTransform",i),l(y,"mozTransform",i),l(y,"msTransform",i),l(y,"transform",i),this._onDrag(e),t.preventDefault()}},_onDragStart:function(t,e){var n=t.dataTransfer,r=this.options;if(this._offUpEvents(),e){var i,s=m.getBoundingClientRect(),a=l(m);y=m.cloneNode(!0),l(y,"top",s.top-A(a.marginTop,10)),l(y,"left",s.left-A(a.marginLeft,10)),l(y,"width",s.width),l(y,"height",s.height),l(y,"opacity","0.8"),l(y,"position","fixed"),l(y,"zIndex","100000"),w.appendChild(y),i=y.getBoundingClientRect(),l(y,"width",2*s.width-i.width),l(y,"height",2*s.height-i.height),o(j,"touchmove",this._onTouchMove),o(j,"touchend",this._onDrop),o(j,"touchcancel",this._onDrop),this._loopId=setInterval(this._emulateDragOver,150)}else n.effectAllowed="move",r.setData&&r.setData.call(this,n,m),o(j,"drop",this);if(x=r.scroll,x===!0){x=w;do if(x.offsetWidth<x.scrollWidth||x.offsetHeight<x.scrollHeight)break;while(x=x.parentNode)}setTimeout(this._dragStarted,0)},_onDrag:g(function(t){if(w&&this.options.scroll){var e,n,r=this.options,i=r.scrollSensitivity,o=r.scrollSpeed,s=t.clientX,a=t.clientY,l=window.innerWidth,u=window.innerHeight,c=(i>=l-s)-(i>=s),f=(i>=u-a)-(i>=a);c||f?e=D:x&&(e=x,n=x.getBoundingClientRect(),c=(P(n.right-s)<=i)-(P(n.left-s)<=i),f=(P(n.bottom-a)<=i)-(P(n.top-a)<=i)),(S.vx!==c||S.vy!==f||S.el!==e)&&(S.el=e,S.vx=c,S.vy=f,clearInterval(S.pid),e&&(S.pid=setInterval(function(){e===D?D.scrollTo(D.scrollX+c*o,D.scrollY+f*o):(f&&(e.scrollTop+=f*o),c&&(e.scrollLeft+=c*o))},24)))}},30),_onDragOver:function(t){var n,i,o,s=this.el,a=this.options,u=a.group,c=u.put,h=_===u,d=a.sort;if(void 0!==t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!I&&_&&(h?d||(o=!w.contains(m)):_.pull&&c&&(_.name===u.name||c.indexOf&&~c.indexOf(_.name)))&&(void 0===t.rootEl||t.rootEl===this.el)){if(n=r(t.target,a.draggable,s),i=m.getBoundingClientRect(),o)return e(!0),void(b||C?w.insertBefore(m,b||C):d||w.appendChild(m));if(0===s.children.length||s.children[0]===y||s===t.target&&(n=p(s,t))){if(n){if(n.animated)return;v=n.getBoundingClientRect()}e(h),s.appendChild(m),this._animate(i,m),n&&this._animate(v,n)}else if(n&&!n.animated&&n!==m&&void 0!==n.parentNode[N]){T!==n&&(T=n,k=l(n));var g,v=n.getBoundingClientRect(),x=v.right-v.left,E=v.bottom-v.top,$=/left|right|inline/.test(k.cssFloat+k.display),S=n.offsetWidth>m.offsetWidth,D=n.offsetHeight>m.offsetHeight,j=($?(t.clientX-v.left)/x:(t.clientY-v.top)/E)>.5,A=n.nextElementSibling;I=!0,setTimeout(f,30),e(h),g=$?n.previousElementSibling===m&&!S||j&&S:A!==m&&!D||j&&D,g&&!A?s.appendChild(m):n.parentNode.insertBefore(m,g?A:n),this._animate(i,m),this._animate(v,n)}}},_animate:function(t,e){var n=this.options.animation;if(n){var r=e.getBoundingClientRect();l(e,"transition","none"),l(e,"transform","translate3d("+(t.left-r.left)+"px,"+(t.top-r.top)+"px,0)"),e.offsetWidth,l(e,"transition","all "+n+"ms"),l(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=setTimeout(function(){l(e,"transition",""),e.animated=!1},n)}},_offUpEvents:function(){s(j,"mouseup",this._onDrop),s(j,"touchmove",this._onTouchMove),s(j,"touchend",this._onDrop),s(j,"touchcancel",this._onDrop)},_onDrop:function(e){var n=this.el;if(clearInterval(this._loopId),clearInterval(S.pid),s(j,"drop",this),s(j,"dragover",this),s(n,"dragstart",this._onDragStart),this._offUpEvents(),e){if(e.preventDefault(),e.stopPropagation(),y&&y.parentNode.removeChild(y),m){s(m,"dragend",this);var r=d(m);c(m),a(m,this.options.ghostClass,!1),w!==m.parentNode?(M(m.parentNode,"sort",m,w,v,r),M(w,"sort",m,w,v,r),M(m,"add",m,w,v,r),M(w,"remove",m,w,v,r)):m.nextSibling!==C&&(M(w,"update",m,w,v,r),M(w,"sort",m,w,v,r),b&&b.parentNode.removeChild(b)),t.active&&M(w,"end",m,w,v,r)}w=m=y=C=b=E=$=T=k=_=t.active=null,this.save()}},handleEvent:function(t){var e=t.type;"dragover"===e?(this._onDrag(t),i(t)):("drop"===e||"dragend"===e)&&this._onDrop(t)},toArray:function(){for(var t,e=[],n=this.el.children,i=0,o=n.length;o>i;i++)t=n[i],r(t,this.options.draggable,this.el)&&e.push(t.getAttribute("data-id")||h(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,i){var o=n.children[i];r(o,this.options.draggable,n)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return r(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;return void 0===e?n[t]:void(n[t]=e)},destroy:function(){var t=this.el,e=this.options;R.forEach(function(n){s(t,n.substr(2).toLowerCase(),e[n])}),s(t,"mousedown",this._onTapStart),s(t,"touchstart",this._onTapStart),s(t,"selectstart",this._onTapStart),s(t,"dragover",this._onDragOver),s(t,"dragenter",this._onDragOver),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),H.splice(H.indexOf(this._onDragOver),1),this._onDrop(),this.el=null}},t.utils={on:o,off:s,css:l,find:u,bind:n,is:function(t,e){return!!r(t,e,t)},throttle:g,closest:r,toggleClass:a,dispatchEvent:M,index:d},t.version="1.0.0",t.create=function(e,n){return new t(e,n)},t}),jQuery&&function(t){function e(e,n){var r=t('<div class="minicolors" />'),i=t.minicolors.defaults;e.data("minicolors-initialized")||(n=t.extend(!0,{},i,n),r.addClass("minicolors-theme-"+n.theme).toggleClass("minicolors-with-opacity",n.opacity).toggleClass("minicolors-no-data-uris",n.dataUris!==!0),void 0!==n.position&&t.each(n.position.split(" "),function(){r.addClass("minicolors-position-"+this)}),e.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",n).prop("size",7).wrap(r).after('<div class="minicolors-panel minicolors-slider-'+n.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),n.inline||(e.after('<span class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></span>'),e.next(".minicolors-swatch").on("click",function(t){t.preventDefault(),e.focus()})),e.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end(),n.inline&&e.parent().addClass("minicolors-inline"),a(e,!1),e.data("minicolors-initialized",!0))}function n(t){var e=t.parent();t.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),e.before(t).remove()}function r(t){var e=t.parent(),n=e.find(".minicolors-panel"),r=t.data("minicolors-settings");!t.data("minicolors-initialized")||t.prop("disabled")||e.hasClass("minicolors-inline")||e.hasClass("minicolors-focus")||(i(),e.addClass("minicolors-focus"),n.stop(!0,!0).fadeIn(r.showSpeed,function(){r.show&&r.show.call(t.get(0))}))}function i(){t(".minicolors-focus").each(function(){var e=t(this),n=e.find(".minicolors-input"),r=e.find(".minicolors-panel"),i=n.data("minicolors-settings");r.fadeOut(i.hideSpeed,function(){i.hide&&i.hide.call(n.get(0)),e.removeClass("minicolors-focus")})})}function o(t,e,n){var r,i,o,a,l=t.parents(".minicolors").find(".minicolors-input"),u=l.data("minicolors-settings"),c=t.find("[class$=-picker]"),f=t.offset().left,p=t.offset().top,h=Math.round(e.pageX-f),d=Math.round(e.pageY-p),g=n?u.animationSpeed:0;e.originalEvent.changedTouches&&(h=e.originalEvent.changedTouches[0].pageX-f,d=e.originalEvent.changedTouches[0].pageY-p),0>h&&(h=0),0>d&&(d=0),h>t.width()&&(h=t.width()),d>t.height()&&(d=t.height()),t.parent().is(".minicolors-slider-wheel")&&c.parent().is(".minicolors-grid")&&(r=75-h,i=75-d,o=Math.sqrt(r*r+i*i),a=Math.atan2(i,r),0>a&&(a+=2*Math.PI),o>75&&(o=75,h=75-75*Math.cos(a),d=75-75*Math.sin(a)),h=Math.round(h),d=Math.round(d)),t.is(".minicolors-grid")?c.stop(!0).animate({top:d+"px",left:h+"px"},g,u.animationEasing,function(){s(l,t)}):c.stop(!0).animate({top:d+"px"},g,u.animationEasing,function(){s(l,t)})}function s(t,e){function n(t,e){var n,r;return t.length&&e?(n=t.offset().left,r=t.offset().top,{x:n-e.offset().left+t.outerWidth()/2,y:r-e.offset().top+t.outerHeight()/2}):null}var r,i,o,s,a,u,c,p=t.val(),d=t.attr("data-opacity"),g=t.parent(),v=t.data("minicolors-settings"),y=g.find(".minicolors-swatch"),b=g.find(".minicolors-grid"),w=g.find(".minicolors-slider"),x=g.find(".minicolors-opacity-slider"),C=b.find("[class$=-picker]"),T=w.find("[class$=-picker]"),k=x.find("[class$=-picker]"),_=n(C,b),E=n(T,w),$=n(k,x);if(e.is(".minicolors-grid, .minicolors-slider")){switch(v.control){case"wheel":s=b.width()/2-_.x,a=b.height()/2-_.y,u=Math.sqrt(s*s+a*a),c=Math.atan2(a,s),0>c&&(c+=2*Math.PI),u>75&&(u=75,_.x=69-75*Math.cos(c),_.y=69-75*Math.sin(c)),i=h(u/.75,0,100),r=h(180*c/Math.PI,0,360),o=h(100-Math.floor(E.y*(100/w.height())),0,100),p=m({h:r,s:i,b:o}),w.css("backgroundColor",m({h:r,s:i,b:100}));break;case"saturation":r=h(parseInt(_.x*(360/b.width()),10),0,360),i=h(100-Math.floor(E.y*(100/w.height())),0,100),o=h(100-Math.floor(_.y*(100/b.height())),0,100),p=m({h:r,s:i,b:o}),w.css("backgroundColor",m({h:r,s:100,b:o})),g.find(".minicolors-grid-inner").css("opacity",i/100);break;case"brightness":r=h(parseInt(_.x*(360/b.width()),10),0,360),i=h(100-Math.floor(_.y*(100/b.height())),0,100),o=h(100-Math.floor(E.y*(100/w.height())),0,100),p=m({h:r,s:i,b:o}),w.css("backgroundColor",m({h:r,s:i,b:100})),g.find(".minicolors-grid-inner").css("opacity",1-o/100);break;default:r=h(360-parseInt(E.y*(360/w.height()),10),0,360),i=h(Math.floor(_.x*(100/b.width())),0,100),o=h(100-Math.floor(_.y*(100/b.height())),0,100),p=m({h:r,s:i,b:o}),b.css("backgroundColor",m({h:r,s:100,b:100}))}t.val(f(p,v.letterCase))}e.is(".minicolors-opacity-slider")&&(d=v.opacity?parseFloat(1-$.y/x.height()).toFixed(2):1,v.opacity&&t.attr("data-opacity",d)),y.find("SPAN").css({backgroundColor:p,opacity:d}),l(t,p,d)}function a(t,e){var n,r,i,o,s,a,u,c=t.parent(),d=t.data("minicolors-settings"),g=c.find(".minicolors-swatch"),y=c.find(".minicolors-grid"),b=c.find(".minicolors-slider"),w=c.find(".minicolors-opacity-slider"),x=y.find("[class$=-picker]"),C=b.find("[class$=-picker]"),T=w.find("[class$=-picker]");switch(n=f(p(t.val(),!0),d.letterCase),n||(n=f(p(d.defaultValue,!0),d.letterCase)),r=v(n),e||t.val(n),d.opacity&&(i=""===t.attr("data-opacity")?1:h(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),isNaN(i)&&(i=1),t.attr("data-opacity",i),g.find("SPAN").css("opacity",i),s=h(w.height()-w.height()*i,0,w.height()),T.css("top",s+"px")),g.find("SPAN").css("backgroundColor",n),d.control){case"wheel":a=h(Math.ceil(.75*r.s),0,y.height()/2),u=r.h*Math.PI/180,o=h(75-Math.cos(u)*a,0,y.width()),s=h(75-Math.sin(u)*a,0,y.height()),x.css({top:s+"px",left:o+"px"}),s=150-r.b/(100/y.height()),""===n&&(s=0),C.css("top",s+"px"),b.css("backgroundColor",m({h:r.h,s:r.s,b:100}));break;case"saturation":o=h(5*r.h/12,0,150),s=h(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height()),x.css({top:s+"px",left:o+"px"}),s=h(b.height()-r.s*(b.height()/100),0,b.height()),C.css("top",s+"px"),b.css("backgroundColor",m({h:r.h,s:100,b:r.b})),c.find(".minicolors-grid-inner").css("opacity",r.s/100);break;case"brightness":o=h(5*r.h/12,0,150),s=h(y.height()-Math.ceil(r.s/(100/y.height())),0,y.height()),x.css({top:s+"px",left:o+"px"}),s=h(b.height()-r.b*(b.height()/100),0,b.height()),C.css("top",s+"px"),b.css("backgroundColor",m({h:r.h,s:r.s,b:100})),c.find(".minicolors-grid-inner").css("opacity",1-r.b/100);break;default:o=h(Math.ceil(r.s/(100/y.width())),0,y.width()),s=h(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height()),x.css({top:s+"px",left:o+"px"}),s=h(b.height()-r.h/(360/b.height()),0,b.height()),C.css("top",s+"px"),y.css("backgroundColor",m({h:r.h,s:100,b:100}))}t.data("minicolors-initialized")&&l(t,n,i)}function l(t,e,n){var r=t.data("minicolors-settings"),i=t.data("minicolors-lastChange");i&&i.hex===e&&i.opacity===n||(t.data("minicolors-lastChange",{hex:e,opacity:n}),r.change&&(r.changeDelay?(clearTimeout(t.data("minicolors-changeTimeout")),t.data("minicolors-changeTimeout",setTimeout(function(){r.change.call(t.get(0),e,n)},r.changeDelay))):r.change.call(t.get(0),e,n)),t.trigger("change").trigger("input"))}function u(e){var n=p(t(e).val(),!0),r=b(n),i=t(e).attr("data-opacity");return r?(void 0!==i&&t.extend(r,{a:parseFloat(i)}),r):null}function c(e,n){var r=p(t(e).val(),!0),i=b(r),o=t(e).attr("data-opacity");return i?(void 0===o&&(o=1),n?"rgba("+i.r+", "+i.g+", "+i.b+", "+parseFloat(o)+")":"rgb("+i.r+", "+i.g+", "+i.b+")"):null}function f(t,e){return"uppercase"===e?t.toUpperCase():t.toLowerCase()}function p(t,e){return t=t.replace(/[^A-F0-9]/gi,""),3!==t.length&&6!==t.length?"":(3===t.length&&e&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),"#"+t)}function h(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}function d(t){var e={},n=Math.round(t.h),r=Math.round(255*t.s/100),i=Math.round(255*t.b/100);if(0===r)e.r=e.g=e.b=i;else{var o=i,s=(255-r)*i/255,a=(o-s)*(n%60)/60;360===n&&(n=0),60>n?(e.r=o,e.b=s,e.g=s+a):120>n?(e.g=o,e.b=s,e.r=o-a):180>n?(e.g=o,e.r=s,e.b=s+a):240>n?(e.b=o,e.r=s,e.g=o-a):300>n?(e.b=o,e.g=s,e.r=s+a):360>n?(e.r=o,e.g=s,e.b=o-a):(e.r=0,e.g=0,e.b=0)}return{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}}function g(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return t.each(n,function(t,e){1===e.length&&(n[t]="0"+e)}),"#"+n.join("")}function m(t){return g(d(t))}function v(t){var e=y(b(t));return 0===e.s&&(e.h=360),e}function y(t){var e={h:0,s:0,b:0},n=Math.min(t.r,t.g,t.b),r=Math.max(t.r,t.g,t.b),i=r-n;return e.b=r,e.s=0!==r?255*i/r:0,e.h=0!==e.s?t.r===r?(t.g-t.b)/i:t.g===r?2+(t.b-t.r)/i:4+(t.r-t.g)/i:-1,e.h*=60,e.h<0&&(e.h+=360),e.s*=100/255,e.b*=100/255,e}function b(t){return t=parseInt(t.indexOf("#")>-1?t.substring(1):t,16),{r:t>>16,g:(65280&t)>>8,b:255&t}}t.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",dataUris:!0,defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}},t.extend(t.fn,{minicolors:function(o,s){switch(o){case"destroy":return t(this).each(function(){n(t(this))}),t(this);case"hide":return i(),t(this);case"opacity":return void 0===s?t(this).attr("data-opacity"):(t(this).each(function(){a(t(this).attr("data-opacity",s))}),t(this));case"rgbObject":return u(t(this),"rgbaObject"===o);case"rgbString":case"rgbaString":return c(t(this),"rgbaString"===o);case"settings":return void 0===s?t(this).data("minicolors-settings"):(t(this).each(function(){var e=t(this).data("minicolors-settings")||{};n(t(this)),t(this).minicolors(t.extend(!0,e,s))}),t(this));case"show":return r(t(this).eq(0)),t(this);case"value":return void 0===s?t(this).val():(t(this).each(function(){a(t(this).val(s))}),t(this));default:return"create"!==o&&(s=o),t(this).each(function(){e(t(this),s)}),t(this)}}}),t(document).on("mousedown.minicolors touchstart.minicolors",function(e){t(e.target).parents().add(e.target).hasClass("minicolors")||i()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(e){var n=t(this);e.preventDefault(),t(document).data("minicolors-target",n),o(n,e,!0)}).on("mousemove.minicolors touchmove.minicolors",function(e){var n=t(document).data("minicolors-target");n&&o(n,e)}).on("mouseup.minicolors touchend.minicolors",function(){t(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(e){var n=t(this).parent().find(".minicolors-input");e.preventDefault(),r(n)}).on("focus.minicolors",".minicolors-input",function(){var e=t(this);e.data("minicolors-initialized")&&r(e)}).on("blur.minicolors",".minicolors-input",function(){var e=t(this),n=e.data("minicolors-settings");e.data("minicolors-initialized")&&(e.val(p(e.val(),!0)),""===e.val()&&e.val(p(n.defaultValue,!0)),e.val(f(e.val(),n.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(e){var n=t(this);if(n.data("minicolors-initialized"))switch(e.keyCode){case 9:i();break;case 13:case 27:i(),n.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var e=t(this);e.data("minicolors-initialized")&&a(e,!0)}).on("paste.minicolors",".minicolors-input",function(){var e=t(this);e.data("minicolors-initialized")&&setTimeout(function(){a(e,!0)},1)})}(jQuery),function(t,e){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(t,n){return e(t,n)});else if("undefined"!=typeof exports){var n=require("jquery");e(exports,n)}else e(t,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e){function n(t,n){function i(t,e,n){return t[e]=n,t}function o(t,e){for(var n,o=t.match(r.key);void 0!==(n=o.pop());)if(r.push.test(n)){var a=s(t.replace(/\[\]$/,""));e=i([],a,e)}else r.fixed.test(n)?e=i([],n,e):r.named.test(n)&&(e=i({},n,e));return e}function s(t){return void 0===h[t]&&(h[t]=0),h[t]++}function a(t){switch(e('[name="'+t.name+'"]',n).attr("type")){case"checkbox":return"on"===t.value?!0:t.value;default:return t.value}}function l(e){if(!r.validate.test(e.name))return this;var n=o(e.name,a(e));return p=t.extend(!0,p,n),this}function u(e){if(!t.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var n=0,r=e.length;r>n;n++)this.addPair(e[n]);return this}function c(){return p}function f(){return JSON.stringify(c())}var p={},h={};this.addPair=l,this.addPairs=u,this.serialize=c,this.serializeJSON=f}var r={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};return n.patterns=r,n.serializeObject=function(){return this.length>1?new Error("jquery-serialize-object can only serialize one form at a time"):new n(e,this).addPairs(this.serializeArray()).serialize()},n.serializeJSON=function(){return this.length>1?new Error("jquery-serialize-object can only serialize one form at a time"):new n(e,this).addPairs(this.serializeArray()).serializeJSON()},"undefined"!=typeof e.fn&&(e.fn.serializeObject=n.serializeObject,e.fn.serializeJSON=n.serializeJSON),t.FormSerializer=n,n}),$(function(){$.ajaxPrefilter(function(t,e,n){var r;return!t.crossDomain&&(r=$('meta[name="token"]').attr("content"))?n.setRequestHeader("X-CSRF-Token",r):void 0}),$.ajaxSetup({statusCode:{401:function(){window.location.href="/"},403:function(){window.location.href="/"}}}),$("form").submit(function(){var t=$(this);t.find(":submit").prop("disabled",!0)}),Messenger.options={extraClasses:"messenger-fixed messenger-on-top",theme:"air"},window.CachetHQ={},window.CachetHQ.Notifier=function(){this.notify=function(t,e,n){e="undefined"==typeof e||"error"===e?"error":e;var r={message:t,type:e,showCloseButton:!0};n=_.extend(r,n),Messenger().post(n)}},$(".color-code").minicolors({control:"hue",defaultValue:$(this).val()||"",inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",theme:"bootstrap"}),$('[data-toggle="tooltip"]').tooltip(),$("button.close").on("click",function(){$(this).parents("div.alert").addClass("hide")});var t=document.getElementById("component-list");t&&new Sortable(t,{group:"omega",handle:".drag-handle",onUpdate:function(){var t=$("#component-list .striped-list-item");$.each(t,function(t){$(this).find("input[rel=order]").val(t+1)}),$.ajax({async:!0,url:"/dashboard/api/components/order",type:"POST",data:$("form[name=componentList]").serializeObject(),success:function(){(new CachetHQ.Notifier).notify("Components updated.","success")}})}}),$("form.component-inline").on("click","input[type=radio]",function(){var t=$(this).parents("form"),e=t.serializeObject();$.ajax({async:!0,url:"/dashboard/api/components/"+e.component_id,type:"POST",data:e,success:function(){(new CachetHQ.Notifier).notify(t.data("messenger"),"success")},error:function(){(new CachetHQ.Notifier).notify("Something went wrong updating the component.")}})}),$("#remove-banner").click(function(){$("#banner-view").remove(),$("input[name=remove_banner]").val("1")})}); |