Guest User

Untitled

a guest
May 22nd, 2015
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 316.63 KB | None | 0 0
  1. !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=st.type(e);return"function"===n||st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(st.isFunction(t))return st.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return st.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ft.test(t))return st.filter(t,e,n);t=st.filter(t,e)}return st.grep(e,function(e){return st.inArray(e,t)>=0!==n})}function r(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function s(e){var t=kt[e]={};return st.each(e.match(wt)||[],function(e,n){t[n]=!0}),t}function a(){mt.addEventListener?(mt.removeEventListener("DOMContentLoaded",o,!1),e.removeEventListener("load",o,!1)):(mt.detachEvent("onreadystatechange",o),e.detachEvent("onload",o))}function o(){(mt.addEventListener||"load"===event.type||"complete"===mt.readyState)&&(a(),st.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(St,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:xt.test(n)?st.parseJSON(n):n}catch(r){}st.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!st.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(st.acceptData(e)){var r,s,a=st.expando,o=e.nodeType,l=o?st.cache:e,u=o?e[a]:e[a]&&a;if(u&&l[u]&&(i||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=o?e[a]=Q.pop()||st.guid++:a),l[u]||(l[u]=o?{}:{toJSON:st.noop}),("object"==typeof t||"function"==typeof t)&&(i?l[u]=st.extend(l[u],t):l[u].data=st.extend(l[u].data,t)),s=l[u],i||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[st.camelCase(t)]=n),"string"==typeof t?(r=s[t],null==r&&(r=s[st.camelCase(t)])):r=s,r}}function h(e,t,n){if(st.acceptData(e)){var i,r,s=e.nodeType,a=s?st.cache:e,o=s?e[st.expando]:st.expando;if(a[o]){if(t&&(i=n?a[o]:a[o].data)){st.isArray(t)?t=t.concat(st.map(t,st.camelCase)):t in i?t=[t]:(t=st.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!u(i):!st.isEmptyObject(i))return}(n||(delete a[o].data,u(a[o])))&&(s?st.cleanData([e],!0):it.deleteExpando||a!=a.window?delete a[o]:a[o]=null)}}}function d(){return!0}function f(){return!1}function p(){try{return mt.activeElement}catch(e){}}function m(e){var t=jt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,i,r=0,s=typeof e.getElementsByTagName!==Tt?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Tt?e.querySelectorAll(t||"*"):void 0;if(!s)for(s=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||st.nodeName(i,t)?s.push(i):st.merge(s,g(i,t));return void 0===t||t&&st.nodeName(e,t)?st.merge([e],s):s}function v(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return st.nodeName(e,"table")&&st.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==st.find.attr(e,"type"))+"/"+e.type,e}function w(e){var t=Qt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){for(var n,i=0;null!=(n=e[i]);i++)st._data(n,"globalEval",!t||st._data(t[i],"globalEval"))}function C(e,t){if(1===t.nodeType&&st.hasData(e)){var n,i,r,s=st._data(e),a=st._data(t,s),o=s.events;if(o){delete a.handle,a.events={};for(n in o)for(i=0,r=o[n].length;r>i;i++)st.event.add(t,n,o[n][i])}a.data&&(a.data=st.extend({},a.data))}}function _(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!it.noCloneEvent&&t[st.expando]){r=st._data(t);for(i in r.events)st.removeEvent(t,i,r.handle);t.removeAttribute(st.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,w(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),it.html5Clone&&e.innerHTML&&!st.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function T(t,n){var i=st(n.createElement(t)).appendTo(n.body),r=e.getDefaultComputedStyle?e.getDefaultComputedStyle(i[0]).display:st.css(i[0],"display");return i.detach(),r}function x(e){var t=mt,n=en[e];return n||(n=T(e,t),"none"!==n&&n||(Zt=(Zt||st("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Zt[0].contentWindow||Zt[0].contentDocument).document,t.write(),t.close(),n=T(e,t),Zt.detach()),en[e]=n),n}function S(e,t){return{get:function(){var n=e();if(null!=n)return n?(delete this.get,void 0):(this.get=t).apply(this,arguments)}}}function D(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=pn.length;r--;)if(t=pn[r]+n,t in e)return t;return i}function E(e,t){for(var n,i,r,s=[],a=0,o=e.length;o>a;a++)i=e[a],i.style&&(s[a]=st._data(i,"olddisplay"),n=i.style.display,t?(s[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Mt(i)&&(s[a]=st._data(i,"olddisplay",x(i.nodeName)))):s[a]||(r=Mt(i),(n&&"none"!==n||!r)&&st._data(i,"olddisplay",r?n:st.css(i,"display"))));for(a=0;o>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?s[a]||"":"none"));return e}function M(e,t,n){var i=cn.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function A(e,t,n,i,r){for(var s=n===(i?"border":"content")?4:"width"===t?1:0,a=0;4>s;s+=2)"margin"===n&&(a+=st.css(e,n+Et[s],!0,r)),i?("content"===n&&(a-=st.css(e,"padding"+Et[s],!0,r)),"margin"!==n&&(a-=st.css(e,"border"+Et[s]+"Width",!0,r))):(a+=st.css(e,"padding"+Et[s],!0,r),"padding"!==n&&(a+=st.css(e,"border"+Et[s]+"Width",!0,r)));return a}function N(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,s=tn(e),a=it.boxSizing()&&"border-box"===st.css(e,"boxSizing",!1,s);if(0>=r||null==r){if(r=nn(e,t,s),(0>r||null==r)&&(r=e.style[t]),sn.test(r))return r;i=a&&(it.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+A(e,t,n||(a?"border":"content"),i,s)+"px"}function $(e,t,n,i,r){return new $.prototype.init(e,t,n,i,r)}function F(){return setTimeout(function(){mn=void 0}),mn=st.now()}function O(e,t){var n,i={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n=Et[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function P(e,t,n){for(var i,r=(kn[t]||[]).concat(kn["*"]),s=0,a=r.length;a>s;s++)if(i=r[s].call(n,t,e))return i}function L(e,t,n){var i,r,s,a,o,l,u,c,h=this,d={},f=e.style,p=e.nodeType&&Mt(e),m=st._data(e,"fxshow");n.queue||(o=st._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,st.queue(e,"fx").length||o.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=st.css(e,"display"),c=x(e.nodeName),"none"===u&&(u=c),"inline"===u&&"none"===st.css(e,"float")&&(it.inlineBlockNeedsLayout&&"inline"!==c?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",it.shrinkWrapBlocks()||h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],vn.exec(r)){if(delete t[i],s=s||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;p=!0}d[i]=m&&m[i]||st.style(e,i)}if(!st.isEmptyObject(d)){m?"hidden"in m&&(p=m.hidden):m=st._data(e,"fxshow",{}),s&&(m.hidden=!p),p?st(e).show():h.done(function(){st(e).hide()}),h.done(function(){var t;st._removeData(e,"fxshow");for(t in d)st.style(e,t,d[t])});for(i in d)a=P(p?m[i]:0,i,h),i in m||(m[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function j(e,t){var n,i,r,s,a;for(n in e)if(i=st.camelCase(n),r=t[i],s=e[n],st.isArray(s)&&(r=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),a=st.cssHooks[i],a&&"expand"in a){s=a.expand(s),delete e[i];for(n in s)n in e||(e[n]=s[n],t[n]=r)}else t[i]=r}function I(e,t,n){var i,r,s=0,a=wn.length,o=st.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=mn||F(),n=Math.max(0,u.startTime+u.duration-t),i=n/u.duration||0,s=1-i,a=0,l=u.tweens.length;l>a;a++)u.tweens[a].run(s);return o.notifyWith(e,[u,s,n]),1>s&&l?n:(o.resolveWith(e,[u]),!1)},u=o.promise({elem:e,props:st.extend({},t),opts:st.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:mn||F(),duration:n.duration,tweens:[],createTween:function(t,n){var i=st.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)u.tweens[n].run(1);return t?o.resolveWith(e,[u,t]):o.rejectWith(e,[u,t]),this}}),c=u.props;for(j(c,u.opts.specialEasing);a>s;s++)if(i=wn[s].call(u,e,c,u.opts))return i;return st.map(c,P,u),st.isFunction(u.opts.start)&&u.opts.start.call(e,u),st.fx.timer(st.extend(l,{elem:e,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 B(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(wt)||[];if(st.isFunction(n))for(;i=s[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function R(e,t,n,i){function r(o){var l;return s[o]=!0,st.each(e[o]||[],function(e,o){var u=o(t,n,i);return"string"!=typeof u||a||s[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),r(u),!1)}),l}var s={},a=e===Vn;return r(t.dataTypes[0])||!s["*"]&&r("*")}function H(e,t){var n,i,r=st.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&st.extend(!0,e,n),e}function z(e,t,n){for(var i,r,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in o)if(o[a]&&o[a].test(r)){l.unshift(a);break}if(l[0]in n)s=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){s=a;break}i||(i=a)}s=s||i}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}function U(e,t,n,i){var r,s,a,o,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(s=c.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(a=u[l+" "+s]||u["* "+s],!a)for(r in u)if(o=r.split(" "),o[1]===s&&(a=u[l+" "+o[0]]||u["* "+o[0]])){a===!0?a=u[r]:u[r]!==!0&&(s=o[0],c.unshift(o[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(h){return{state:"parsererror",error:a?h:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}function q(e,t,n,i){var r;if(st.isArray(t))st.each(t,function(t,r){n||Gn.test(e)?i(e,r):q(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==st.type(t))i(e,t);else for(r in t)q(e+"["+r+"]",t[r],n,i)}function V(){try{return new e.XMLHttpRequest}catch(t){}}function J(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function W(e){return st.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var Q=[],G=Q.slice,Y=Q.concat,K=Q.push,X=Q.indexOf,Z={},et=Z.toString,tt=Z.hasOwnProperty,nt="".trim,it={},rt="1.11.0",st=function(e,t){return new st.fn.init(e,t)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ot=/^-ms-/,lt=/-([\da-z])/gi,ut=function(e,t){return t.toUpperCase()};st.fn=st.prototype={jquery:rt,constructor:st,selector:"",length:0,toArray:function(){return G.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:G.call(this)},pushStack:function(e){var t=st.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return st.each(this,e,t)},map:function(e){return this.pushStack(st.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:Q.sort,splice:Q.splice},st.extend=st.fn.extend=function(){var e,t,n,i,r,s,a=arguments[0]||{},o=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[o]||{},o++),"object"==typeof a||st.isFunction(a)||(a={}),o===l&&(a=this,o--);l>o;o++)if(null!=(r=arguments[o]))for(i in r)e=a[i],n=r[i],a!==n&&(u&&n&&(st.isPlainObject(n)||(t=st.isArray(n)))?(t?(t=!1,s=e&&st.isArray(e)?e:[]):s=e&&st.isPlainObject(e)?e:{},a[i]=st.extend(u,s,n)):void 0!==n&&(a[i]=n));return a},st.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===st.type(e)},isArray:Array.isArray||function(e){return"array"===st.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==st.type(e)||e.nodeType||st.isWindow(e))return!1;try{if(e.constructor&&!tt.call(e,"constructor")&&!tt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(it.ownLast)for(t in e)return tt.call(e,t);for(t in e);return void 0===t||tt.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[et.call(e)]||"object":typeof e},globalEval:function(t){t&&st.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ot,"ms-").replace(lt,ut)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,s=0,a=e.length,o=n(e);if(i){if(o)for(;a>s&&(r=t.apply(e[s],i),r!==!1);s++);else for(s in e)if(r=t.apply(e[s],i),r===!1)break}else if(o)for(;a>s&&(r=t.call(e[s],s,e[s]),r!==!1);s++);else for(s in e)if(r=t.call(e[s],s,e[s]),r===!1)break;return e},trim:nt&&!nt.call("ÿ ")?function(e){return null==e?"":nt.call(e)}:function(e){return null==e?"":(e+"").replace(at,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?st.merge(i,"string"==typeof e?[e]:e):K.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(X)return X.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;)e[r++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],s=0,a=e.length,o=!n;a>s;s++)i=!t(e[s],s),i!==o&&r.push(e[s]);return r},map:function(e,t,i){var r,s=0,a=e.length,o=n(e),l=[];if(o)for(;a>s;s++)r=t(e[s],s,i),null!=r&&l.push(r);else for(s in e)r=t(e[s],s,i),null!=r&&l.push(r);return Y.apply([],l)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),st.isFunction(e)?(n=G.call(arguments,2),i=function(){return e.apply(t||this,n.concat(G.call(arguments)))},i.guid=e.guid=e.guid||st.guid++,i):void 0},now:function(){return+new Date},support:it}),st.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ct=function(e){function t(e,t,n,i){var r,s,a,o,l,u,h,p,m,g;if((t?t.ownerDocument||t:R)!==$&&N(t),t=t||$,n=n||[],!e||"string"!=typeof e)return n;if(1!==(o=t.nodeType)&&9!==o)return[];if(O&&!i){if(r=yt.exec(e))if(a=r[1]){if(9===o){if(s=t.getElementById(a),!s||!s.parentNode)return n;if(s.id===a)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&I(t,s)&&s.id===a)return n.push(s),n}else{if(r[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&_.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(a)),n}if(_.qsa&&(!P||!P.test(e))){if(p=h=B,m=t,g=9===o&&e,1===o&&"object"!==t.nodeName.toLowerCase()){for(u=d(e),(h=t.getAttribute("id"))?p=h.replace(wt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+f(u[l]);m=bt.test(e)&&c(t.parentNode)||t,g=u.join(",")}if(g)try{return Z.apply(n,m.querySelectorAll(g)),n}catch(v){}finally{h||t.removeAttribute("id")}}}return k(e.replace(lt,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[B]=!0,e}function r(e){var t=$.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),i=e.length;i--;)T.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Q)-(~e.sourceIndex||Q);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return i(function(t){return t=+t,i(function(n,i){for(var r,s=e([],n.length,t),a=s.length;a--;)n[r=s[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&typeof e.getElementsByTagName!==W&&e}function h(){}function d(e,n){var i,r,s,a,o,l,u,c=q[e+" "];if(c)return n?0:c.slice(0);for(o=e,l=[],u=T.preFilter;o;){(!i||(r=ut.exec(o)))&&(r&&(o=o.slice(r[0].length)||o),l.push(s=[])),i=!1,(r=ct.exec(o))&&(i=r.shift(),s.push({value:i,type:r[0].replace(lt," ")}),o=o.slice(i.length));for(a in T.filter)!(r=pt[a].exec(o))||u[a]&&!(r=u[a](r))||(i=r.shift(),s.push({value:i,type:a,matches:r}),o=o.slice(i.length));if(!i)break}return n?o.length:o?t.error(e):q(e,l).slice(0)}function f(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,r=n&&"parentNode"===i,s=z++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,s)}:function(t,n,a){var o,l,u=[H,s];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[B]||(t[B]={}),(o=l[i])&&o[0]===H&&o[1]===s)return u[2]=o[2];if(l[i]=u,u[2]=e(t,n,a))return!0}}}function m(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,t,n,i,r){for(var s,a=[],o=0,l=e.length,u=null!=t;l>o;o++)(s=e[o])&&(!n||n(s,i,r))&&(a.push(s),u&&t.push(o));return a}function v(e,t,n,r,s,a){return r&&!r[B]&&(r=v(r)),s&&!s[B]&&(s=v(s,a)),i(function(i,a,o,l){var u,c,h,d=[],f=[],p=a.length,m=i||w(t||"*",o.nodeType?[o]:o,[]),v=!e||!i&&t?m:g(m,d,e,o,l),y=n?s||(i?e:p||r)?[]:a:v;if(n&&n(v,y,o,l),r)for(u=g(y,f),r(u,[],o,l),c=u.length;c--;)(h=u[c])&&(y[f[c]]=!(v[f[c]]=h));if(i){if(s||e){if(s){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(v[c]=h);s(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=s?tt.call(i,h):d[c])>-1&&(i[u]=!(a[u]=h))}}else y=g(y===a?y.splice(p,y.length):y),s?s(null,a,y,l):Z.apply(a,y)})}function y(e){for(var t,n,i,r=e.length,s=T.relative[e[0].type],a=s||T.relative[" "],o=s?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return tt.call(t,e)>-1},a,!0),c=[function(e,n,i){return!s&&(i||n!==E)||((t=n).nodeType?l(e,n,i):u(e,n,i))}];r>o;o++)if(n=T.relative[e[o].type])c=[p(m(c),n)];else{if(n=T.filter[e[o].type].apply(null,e[o].matches),n[B]){for(i=++o;r>i&&!T.relative[e[i].type];i++);return v(o>1&&m(c),o>1&&f(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(lt,"$1"),n,i>o&&y(e.slice(o,i)),r>i&&y(e=e.slice(i)),r>i&&f(e))}c.push(n)}return m(c)}function b(e,n){var r=n.length>0,s=e.length>0,a=function(i,a,o,l,u){var c,h,d,f=0,p="0",m=i&&[],v=[],y=E,b=i||s&&T.find.TAG("*",u),w=H+=null==y?1:Math.random()||.1,k=b.length;for(u&&(E=a!==$&&a);p!==k&&null!=(c=b[p]);p++){if(s&&c){for(h=0;d=e[h++];)if(d(c,a,o)){l.push(c);break}u&&(H=w)}r&&((c=!d&&c)&&f--,i&&m.push(c))}if(f+=p,r&&p!==f){for(h=0;d=n[h++];)d(m,v,a,o);if(i){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=K.call(l));v=g(v)}Z.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return u&&(H=w,E=y),m};return r?i(a):a}function w(e,n,i){for(var r=0,s=n.length;s>r;r++)t(e,n[r],i);return i}function k(e,t,n,i){var r,s,a,o,l,u=d(e);if(!i&&1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&"ID"===(a=s[0]).type&&_.getById&&9===t.nodeType&&O&&T.relative[s[1].type]){if(t=(T.find.ID(a.matches[0].replace(kt,Ct),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}for(r=pt.needsContext.test(e)?0:s.length;r--&&(a=s[r],!T.relative[o=a.type]);)if((l=T.find[o])&&(i=l(a.matches[0].replace(kt,Ct),bt.test(s[0].type)&&c(t.parentNode)||t))){if(s.splice(r,1),e=i.length&&f(s),!e)return Z.apply(n,i),n;break}}return D(e,u)(i,t,!O,n,bt.test(e)&&c(t.parentNode)||t),n}var C,_,T,x,S,D,E,M,A,N,$,F,O,P,L,j,I,B="sizzle"+-new Date,R=e.document,H=0,z=0,U=n(),q=n(),V=n(),J=function(e,t){return e===t&&(A=!0),0},W="undefined",Q=1<<31,G={}.hasOwnProperty,Y=[],K=Y.pop,X=Y.push,Z=Y.push,et=Y.slice,tt=Y.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=rt.replace("w","w#"),at="\\["+it+"*("+rt+")"+it+"*(?:([*^$|!~]?=)"+it+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+st+")|)|)"+it+"*\\]",ot=":("+rt+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+at.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ut=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),dt=new RegExp(ot),ft=new RegExp("^"+st+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,kt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),Ct=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(Y=et.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(_t){Z={apply:Y.length?function(e,t){X.apply(e,et.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}_=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},N=t.setDocument=function(e){var t,n=e?e.ownerDocument||e:R,i=n.defaultView;return n!==$&&9===n.nodeType&&n.documentElement?($=n,F=n.documentElement,O=!S(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){N()},!1):i.attachEvent&&i.attachEvent("onunload",function(){N()})),_.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=r(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=vt.test(n.getElementsByClassName)&&r(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),_.getById=r(function(e){return F.appendChild(e).id=B,!n.getElementsByName||!n.getElementsByName(B).length}),_.getById?(T.find.ID=function(e,t){if(typeof t.getElementById!==W&&O){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(kt,Ct);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(kt,Ct);return function(e){var n=typeof e.getAttributeNode!==W&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=_.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==W?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},T.find.CLASS=_.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==W&&O?t.getElementsByClassName(e):void 0},L=[],P=[],(_.qsa=vt.test(n.querySelectorAll))&&(r(function(e){e.innerHTML="<select t=''><option selected=''></option></select>",e.querySelectorAll("[t^='']").length&&P.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+it+"*(?:value|"+nt+")"),e.querySelectorAll(":checked").length||P.push(":checked")}),r(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&P.push("name"+it+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(_.matchesSelector=vt.test(j=F.webkitMatchesSelector||F.mozMatchesSelector||F.oMatchesSelector||F.msMatchesSelector))&&r(function(e){_.disconnectedMatch=j.call(e,"div"),j.call(e,"[s!='']:x"),L.push("!=",ot)}),P=P.length&&new RegExp(P.join("|")),L=L.length&&new RegExp(L.join("|")),t=vt.test(F.compareDocumentPosition),I=t||vt.test(F.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},J=t?function(e,t){if(e===t)return A=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!_.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===R&&I(R,e)?-1:t===n||t.ownerDocument===R&&I(R,t)?1:M?tt.call(M,e)-tt.call(M,t):0:4&i?-1:1)}:function(e,t){if(e===t)return A=!0,0;var i,r=0,s=e.parentNode,o=t.parentNode,l=[e],u=[t];if(!s||!o)return e===n?-1:t===n?1:s?-1:o?1:M?tt.call(M,e)-tt.call(M,t):0;if(s===o)return a(e,t);for(i=e;i=i.parentNode;)l.unshift(i);for(i=t;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?a(l[r],u[r]):l[r]===R?-1:u[r]===R?1:0},n):$},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==$&&N(e),n=n.replace(ht,"='$1']"),!(!_.matchesSelector||!O||L&&L.test(n)||P&&P.test(n)))try{var i=j.call(e,n);if(i||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,$,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==$&&N(e),I(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==$&&N(e);var n=T.attrHandle[t.toLowerCase()],i=n&&G.call(T.attrHandle,t.toLowerCase())?n(e,t,!O):void 0;return void 0!==i?i:_.attributes||!O?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(A=!_.detectDuplicates,M=!_.sortStable&&e.slice(0),e.sort(J),A){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return M=null,e},x=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=x(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=x(t);return n},T=t.selectors={cacheLength:50,createPseudo:i,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(kt,Ct),e[3]=(e[4]||e[5]||"").replace(kt,Ct),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return pt.CHILD.test(e[0])?null:(e[3]&&void 0!==e[4]?e[2]=e[4]:n&&dt.test(n)&&(t=d(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(kt,Ct).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==W&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var s=t.attr(r,e);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,h,d,f,p,m=s!==a?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!l&&!o;if(g){if(s){for(;m;){for(h=t;h=h[m];)if(o?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(c=g[B]||(g[B]={}),u=c[e]||[],f=u[0]===H&&u[1],d=u[0]===H&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(d=f=0)||p.pop();)if(1===h.nodeType&&++d&&h===t){c[e]=[H,f,d];break}}else if(y&&(u=(t[B]||(t[B]={}))[e])&&u[0]===H)d=u[1];else for(;(h=++f&&h&&h[m]||(d=f=0)||p.pop())&&((o?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++d||(y&&((h[B]||(h[B]={}))[e]=[H,d]),h!==t)););return d-=r,d===i||d%i===0&&d/i>=0}}},PSEUDO:function(e,n){var r,s=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[B]?s(n):s.length>1?(r=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=s(e,n),a=r.length;a--;)i=tt.call(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return s(e,0,r)}):s}},pseudos:{not:i(function(e){var t=[],n=[],r=D(e.replace(lt,"$1"));return r[B]?i(function(e,t,n,i){for(var s,a=r(e,null,i,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||x(t)).indexOf(e)>-1}}),lang:i(function(e){return ft.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(kt,Ct).toLowerCase(),function(t){var n;do if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===F},focus:function(e){return e===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return gt.test(e.nodeName)},input:function(e){return mt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[0>n?n+t:n]}),even:u(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:u(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},T.pseudos.nth=T.pseudos.eq;for(C in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[C]=o(C);for(C in{submit:!0,reset:!0})T.pseudos[C]=l(C);return h.prototype=T.filters=T.pseudos,T.setFilters=new h,D=t.compile=function(e,t){var n,i=[],r=[],s=V[e+" "];if(!s){for(t||(t=d(e)),n=t.length;n--;)s=y(t[n]),s[B]?i.push(s):r.push(s);s=V(e,b(r,i))}return s},_.sortStable=B.split("").sort(J).join("")===B,_.detectDuplicates=!!A,N(),_.sortDetached=r(function(e){return 1&e.compareDocumentPosition($.createElement("div"))
  2. }),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||s(nt,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);st.find=ct,st.expr=ct.selectors,st.expr[":"]=st.expr.pseudos,st.unique=ct.uniqueSort,st.text=ct.getText,st.isXMLDoc=ct.isXML,st.contains=ct.contains;var ht=st.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;st.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?st.find.matchesSelector(i,e)?[i]:[]:st.find.matches(e,st.grep(t,function(e){return 1===e.nodeType}))},st.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(st(e).filter(function(){for(t=0;r>t;t++)if(st.contains(i[t],this))return!0}));for(t=0;r>t;t++)st.find(e,i[t],n);return n=this.pushStack(r>1?st.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&ht.test(e)?st(e):e||[],!1).length}});var pt,mt=e.document,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,vt=st.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:gt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pt).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof st?t[0]:t,st.merge(this,st.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:mt,!0)),dt.test(n[1])&&st.isPlainObject(t))for(n in t)st.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=mt.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return pt.find(e);this.length=1,this[0]=i}return this.context=mt,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):st.isFunction(e)?"undefined"!=typeof pt.ready?pt.ready(e):e(st):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),st.makeArray(e,this))};vt.prototype=st.fn,pt=st(mt);var yt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};st.extend({dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!st(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),st.fn.extend({has:function(e){var t,n=st(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(st.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,s=[],a=ht.test(e)||"string"!=typeof e?st(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&st.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?st.unique(s):s)},index:function(e){return e?"string"==typeof e?st.inArray(this[0],st(e)):st.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(st.unique(st.merge(this.get(),st(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),st.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return st.dir(e,"parentNode")},parentsUntil:function(e,t,n){return st.dir(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return st.dir(e,"nextSibling")},prevAll:function(e){return st.dir(e,"previousSibling")},nextUntil:function(e,t,n){return st.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return st.dir(e,"previousSibling",n)},siblings:function(e){return st.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return st.sibling(e.firstChild)},contents:function(e){return st.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:st.merge([],e.childNodes)}},function(e,t){st.fn[e]=function(n,i){var r=st.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=st.filter(i,r)),this.length>1&&(bt[e]||(r=st.unique(r)),yt.test(e)&&(r=r.reverse())),this.pushStack(r)}});var wt=/\S+/g,kt={};st.Callbacks=function(e){e="string"==typeof e?kt[e]||s(e):st.extend({},e);var t,n,i,r,a,o,l=[],u=!e.once&&[],c=function(s){for(n=e.memory&&s,i=!0,a=o||0,o=0,r=l.length,t=!0;l&&r>a;a++)if(l[a].apply(s[0],s[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:h.disable())},h={add:function(){if(l){var i=l.length;!function s(t){st.each(t,function(t,n){var i=st.type(n);"function"===i?e.unique&&h.has(n)||l.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),t?r=l.length:n&&(o=i,c(n))}return this},remove:function(){return l&&st.each(arguments,function(e,n){for(var i;(i=st.inArray(n,l,i))>-1;)l.splice(i,1),t&&(r>=i&&r--,a>=i&&a--)}),this},has:function(e){return e?st.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||h.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||i&&!u||(n=n||[],n=[e,n.slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},st.extend({Deferred:function(e){var t=[["resolve","done",st.Callbacks("once memory"),"resolved"],["reject","fail",st.Callbacks("once memory"),"rejected"],["notify","progress",st.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return st.Deferred(function(n){st.each(t,function(t,s){var a=st.isFunction(e[t])&&e[t];r[s[1]](function(){var e=a&&a.apply(this,arguments);e&&st.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?st.extend(e,i):i}},r={};return i.pipe=i.then,st.each(t,function(e,s){var a=s[2],o=s[3];i[s[1]]=a.add,o&&a.add(function(){n=o},t[1^e][2].disable,t[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?i:this,arguments),this},r[s[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,s=G.call(arguments),a=s.length,o=1!==a||e&&st.isFunction(e.promise)?a:0,l=1===o?e:st.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?G.call(arguments):r,i===t?l.notifyWith(n,i):--o||l.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);a>r;r++)s[r]&&st.isFunction(s[r].promise)?s[r].promise().done(u(r,i,s)).fail(l.reject).progress(u(r,n,t)):--o;return o||l.resolveWith(i,s),l.promise()}});var Ct;st.fn.ready=function(e){return st.ready.promise().done(e),this},st.extend({isReady:!1,readyWait:1,holdReady:function(e){e?st.readyWait++:st.ready(!0)},ready:function(e){if(e===!0?!--st.readyWait:!st.isReady){if(!mt.body)return setTimeout(st.ready);st.isReady=!0,e!==!0&&--st.readyWait>0||(Ct.resolveWith(mt,[st]),st.fn.trigger&&st(mt).trigger("ready").off("ready"))}}}),st.ready.promise=function(t){if(!Ct)if(Ct=st.Deferred(),"complete"===mt.readyState)setTimeout(st.ready);else if(mt.addEventListener)mt.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",o,!1);else{mt.attachEvent("onreadystatechange",o),e.attachEvent("onload",o);var n=!1;try{n=null==e.frameElement&&mt.documentElement}catch(i){}n&&n.doScroll&&!function r(){if(!st.isReady){try{n.doScroll("left")}catch(e){return setTimeout(r,50)}a(),st.ready()}}()}return Ct.promise(t)};var _t,Tt="undefined";for(_t in st(it))break;it.ownLast="0"!==_t,it.inlineBlockNeedsLayout=!1,st(function(){var e,t,n=mt.getElementsByTagName("body")[0];n&&(e=mt.createElement("div"),e.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",t=mt.createElement("div"),n.appendChild(e).appendChild(t),typeof t.style.zoom!==Tt&&(t.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(it.inlineBlockNeedsLayout=3===t.offsetWidth)&&(n.style.zoom=1)),n.removeChild(e),e=t=null)}),function(){var e=mt.createElement("div");if(null==it.deleteExpando){it.deleteExpando=!0;try{delete e.test}catch(t){it.deleteExpando=!1}}e=null}(),st.acceptData=function(e){var t=st.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,St=/([A-Z])/g;st.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?st.cache[e[st.expando]]:e[st.expando],!!e&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return h(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return h(e,t,!0)}}),st.fn.extend({data:function(e,t){var n,i,r,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(r=st.data(s),1===s.nodeType&&!st._data(s,"parsedAttrs"))){for(n=a.length;n--;)i=a[n].name,0===i.indexOf("data-")&&(i=st.camelCase(i.slice(5)),l(s,i,r[i]));st._data(s,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){st.data(this,e)}):arguments.length>1?this.each(function(){st.data(this,e,t)}):s?l(s,e,st.data(s,e)):void 0},removeData:function(e){return this.each(function(){st.removeData(this,e)})}}),st.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=st._data(e,t),n&&(!i||st.isArray(n)?i=st._data(e,t,st.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=st.queue(e,t),i=n.length,r=n.shift(),s=st._queueHooks(e,t),a=function(){st.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,a,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return st._data(e,n)||st._data(e,n,{empty:st.Callbacks("once memory").add(function(){st._removeData(e,t+"queue"),st._removeData(e,n)})})}}),st.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?st.queue(this[0],e):void 0===t?this:this.each(function(){var n=st.queue(this,e,t);st._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&st.dequeue(this,e)})},dequeue:function(e){return this.each(function(){st.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=st.Deferred(),s=this,a=this.length,o=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=st._data(s[a],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(o));return o(),r.promise(t)}});var Dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=["Top","Right","Bottom","Left"],Mt=function(e,t){return e=t||e,"none"===st.css(e,"display")||!st.contains(e.ownerDocument,e)},At=st.access=function(e,t,n,i,r,s,a){var o=0,l=e.length,u=null==n;if("object"===st.type(n)){r=!0;for(o in n)st.access(e,t,o,n[o],!0,s,a)}else if(void 0!==i&&(r=!0,st.isFunction(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(st(e),n)})),t))for(;l>o;o++)t(e[o],n,a?i:i.call(e[o],o,t(e[o],n)));return r?e:u?t.call(e):l?t(e[0],n):s},Nt=/^(?:checkbox|radio)$/i;!function(){var e=mt.createDocumentFragment(),t=mt.createElement("div"),n=mt.createElement("input");if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a>",it.leadingWhitespace=3===t.firstChild.nodeType,it.tbody=!t.getElementsByTagName("tbody").length,it.htmlSerialize=!!t.getElementsByTagName("link").length,it.html5Clone="<:nav></:nav>"!==mt.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),it.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",it.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,it.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){it.noCloneEvent=!1}),t.cloneNode(!0).click()),null==it.deleteExpando){it.deleteExpando=!0;try{delete t.test}catch(i){it.deleteExpando=!1}}e=t=n=null}(),function(){var t,n,i=mt.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(it[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),it[t+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var $t=/^(?:input|select|textarea)$/i,Ft=/^key/,Ot=/^(?:mouse|contextmenu)|click/,Pt=/^(?:focusinfocus|focusoutblur)$/,Lt=/^([^.]*)(?:\.(.+)|)$/;st.event={global:{},add:function(e,t,n,i,r){var s,a,o,l,u,c,h,d,f,p,m,g=st._data(e);if(g){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=st.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof st===Tt||e&&st.event.triggered===e.type?void 0:st.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(wt)||[""],o=t.length;o--;)s=Lt.exec(t[o])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f&&(u=st.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=st.event.special[f]||{},h=st.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&st.expr.match.needsContext.test(r),namespace:p.join(".")},l),(d=a[f])||(d=a[f]=[],d.delegateCount=0,u.setup&&u.setup.call(e,i,p,c)!==!1||(e.addEventListener?e.addEventListener(f,c,!1):e.attachEvent&&e.attachEvent("on"+f,c))),u.add&&(u.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,h):d.push(h),st.event.global[f]=!0);e=null}},remove:function(e,t,n,i,r){var s,a,o,l,u,c,h,d,f,p,m,g=st.hasData(e)&&st._data(e);if(g&&(c=g.events)){for(t=(t||"").match(wt)||[""],u=t.length;u--;)if(o=Lt.exec(t[u])||[],f=m=o[1],p=(o[2]||"").split(".").sort(),f){for(h=st.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,d=c[f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=d.length;s--;)a=d[s],!r&&m!==a.origType||n&&n.guid!==a.guid||o&&!o.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(d.splice(s,1),a.selector&&d.delegateCount--,h.remove&&h.remove.call(e,a));l&&!d.length&&(h.teardown&&h.teardown.call(e,p,g.handle)!==!1||st.removeEvent(e,f,g.handle),delete c[f])}else for(f in c)st.event.remove(e,f+t[u],n,i,!0);st.isEmptyObject(c)&&(delete g.handle,st._removeData(e,"events"))}},trigger:function(t,n,i,r){var s,a,o,l,u,c,h,d=[i||mt],f=tt.call(t,"type")?t.type:t,p=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=c=i=i||mt,3!==i.nodeType&&8!==i.nodeType&&!Pt.test(f+st.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),a=f.indexOf(":")<0&&"on"+f,t=t[st.expando]?t:new st.Event(f,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:st.makeArray(n,[t]),u=st.event.special[f]||{},r||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!r&&!u.noBubble&&!st.isWindow(i)){for(l=u.delegateType||f,Pt.test(l+f)||(o=o.parentNode);o;o=o.parentNode)d.push(o),c=o;c===(i.ownerDocument||mt)&&d.push(c.defaultView||c.parentWindow||e)}for(h=0;(o=d[h++])&&!t.isPropagationStopped();)t.type=h>1?l:u.bindType||f,s=(st._data(o,"events")||{})[t.type]&&st._data(o,"handle"),s&&s.apply(o,n),s=a&&o[a],s&&s.apply&&st.acceptData(o)&&(t.result=s.apply(o,n),t.result===!1&&t.preventDefault());if(t.type=f,!r&&!t.isDefaultPrevented()&&(!u._default||u._default.apply(d.pop(),n)===!1)&&st.acceptData(i)&&a&&i[f]&&!st.isWindow(i)){c=i[a],c&&(i[a]=null),st.event.triggered=f;try{i[f]()}catch(m){}st.event.triggered=void 0,c&&(i[a]=c)}return t.result}},dispatch:function(e){e=st.event.fix(e);var t,n,i,r,s,a=[],o=G.call(arguments),l=(st._data(this,"events")||{})[e.type]||[],u=st.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=st.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,s=0;(i=r.handlers[s++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,n=((st.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,o),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,s,a=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(r=[],s=0;o>s;s++)i=t[s],n=i.selector+" ",void 0===r[n]&&(r[n]=i.needsContext?st(n,this).index(l)>=0:st.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&a.push({elem:l,handlers:r})}return o<t.length&&a.push({elem:this,handlers:t.slice(o)}),a},fix:function(e){if(e[st.expando])return e;var t,n,i,r=e.type,s=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Ot.test(r)?this.mouseHooks:Ft.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new st.Event(s),t=i.length;t--;)n=i[t],e[n]=s[n];return e.target||(e.target=s.srcElement||mt),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,s):e},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,s=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||mt,r=i.documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return st.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return st.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=st.extend(new st.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?st.event.trigger(r,null,t):st.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},st.removeEvent=mt.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===Tt&&(e[i]=null),e.detachEvent(i,n))},st.Event=function(e,t){return this instanceof st.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&(e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault())?d:f):this.type=e,t&&st.extend(this,t),this.timeStamp=e&&e.timeStamp||st.now(),this[st.expando]=!0,void 0):new st.Event(e,t)},st.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d,this.stopPropagation()}},st.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){st.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,s=e.handleObj;return(!r||r!==i&&!st.contains(i,r))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),it.submitBubbles||(st.event.special.submit={setup:function(){return st.nodeName(this,"form")?!1:(st.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=st.nodeName(t,"input")||st.nodeName(t,"button")?t.form:void 0;n&&!st._data(n,"submitBubbles")&&(st.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),st._data(n,"submitBubbles",!0))}),void 0)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&st.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return st.nodeName(this,"form")?!1:(st.event.remove(this,"._submit"),void 0)}}),it.changeBubbles||(st.event.special.change={setup:function(){return $t.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(st.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),st.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),st.event.simulate("change",this,e,!0)})),!1):(st.event.add(this,"beforeactivate._change",function(e){var t=e.target;$t.test(t.nodeName)&&!st._data(t,"changeBubbles")&&(st.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||st.event.simulate("change",this.parentNode,e,!0)}),st._data(t,"changeBubbles",!0))}),void 0)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return st.event.remove(this,"._change"),!$t.test(this.nodeName)}}),it.focusinBubbles||st.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){st.event.simulate(t,e.target,st.event.fix(e),!0)};st.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=st._data(i,t);r||i.addEventListener(e,n,!0),st._data(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=st._data(i,t)-1;r?st._data(i,t,r):(i.removeEventListener(e,n,!0),st._removeData(i,t))}}}),st.fn.extend({on:function(e,t,n,i,r){var s,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(s in e)this.on(s,t,n,e[s],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=f;else if(!i)return this;return 1===r&&(a=i,i=function(e){return st().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=st.guid++)),this.each(function(){st.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,st(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=f),this.each(function(){st.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){st.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?st.event.trigger(e,t,n,!0):void 0}});var jt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",It=/ jQuery\d+="(?:null|\d+)"/g,Bt=new RegExp("<(?:"+jt+")[\\s/>]","i"),Rt=/^\s+/,Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zt=/<([\w:]+)/,Ut=/<tbody/i,qt=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^$|\/(?:java|ecma)script/i,Qt=/^true\/(.*)/,Gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:it.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Kt=m(mt),Xt=Kt.appendChild(mt.createElement("div"));Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,st.extend({clone:function(e,t,n){var i,r,s,a,o,l=st.contains(e.ownerDocument,e);if(it.html5Clone||st.isXMLDoc(e)||!Bt.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(Xt.innerHTML=e.outerHTML,Xt.removeChild(s=Xt.firstChild)),!(it.noCloneEvent&&it.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||st.isXMLDoc(e)))for(i=g(s),o=g(e),a=0;null!=(r=o[a]);++a)i[a]&&_(r,i[a]);if(t)if(n)for(o=o||g(e),i=i||g(s),a=0;null!=(r=o[a]);a++)C(r,i[a]);else C(e,s);return i=g(s,"script"),i.length>0&&k(i,!l&&g(e,"script")),i=o=r=null,s},buildFragment:function(e,t,n,i){for(var r,s,a,o,l,u,c,h=e.length,d=m(t),f=[],p=0;h>p;p++)if(s=e[p],s||0===s)if("object"===st.type(s))st.merge(f,s.nodeType?[s]:s);else if(qt.test(s)){for(o=o||d.appendChild(t.createElement("div")),l=(zt.exec(s)||["",""])[1].toLowerCase(),c=Yt[l]||Yt._default,o.innerHTML=c[1]+s.replace(Ht,"<$1></$2>")+c[2],r=c[0];r--;)o=o.lastChild;if(!it.leadingWhitespace&&Rt.test(s)&&f.push(t.createTextNode(Rt.exec(s)[0])),!it.tbody)for(s="table"!==l||Ut.test(s)?"<table>"!==c[1]||Ut.test(s)?0:o:o.firstChild,r=s&&s.childNodes.length;r--;)st.nodeName(u=s.childNodes[r],"tbody")&&!u.childNodes.length&&s.removeChild(u);for(st.merge(f,o.childNodes),o.textContent="";o.firstChild;)o.removeChild(o.firstChild);o=d.lastChild}else f.push(t.createTextNode(s));for(o&&d.removeChild(o),it.appendChecked||st.grep(g(f,"input"),v),p=0;s=f[p++];)if((!i||-1===st.inArray(s,i))&&(a=st.contains(s.ownerDocument,s),o=g(d.appendChild(s),"script"),a&&k(o),n))for(r=0;s=o[r++];)Wt.test(s.type||"")&&n.push(s);return o=null,d},cleanData:function(e,t){for(var n,i,r,s,a=0,o=st.expando,l=st.cache,u=it.deleteExpando,c=st.event.special;null!=(n=e[a]);a++)if((t||st.acceptData(n))&&(r=n[o],s=r&&l[r])){if(s.events)for(i in s.events)c[i]?st.event.remove(n,i):st.removeEvent(n,i,s.handle);l[r]&&(delete l[r],u?delete n[o]:typeof n.removeAttribute!==Tt?n.removeAttribute(o):n[o]=null,Q.push(r))}}}),st.fn.extend({text:function(e){return At(this,function(e){return void 0===e?st.text(this):this.empty().append((this[0]&&this[0].ownerDocument||mt).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?st.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||st.cleanData(g(n)),n.parentNode&&(t&&st.contains(n.ownerDocument,n)&&k(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&st.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&st.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return st.clone(this,e,t)})},html:function(e){return At(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(It,""):void 0;if(!("string"!=typeof e||Vt.test(e)||!it.htmlSerialize&&Bt.test(e)||!it.leadingWhitespace&&Rt.test(e)||Yt[(zt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Ht,"<$1></$2>");try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(st.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,st.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=Y.apply([],e);var n,i,r,s,a,o,l=0,u=this.length,c=this,h=u-1,d=e[0],f=st.isFunction(d);if(f||u>1&&"string"==typeof d&&!it.checkClone&&Jt.test(d))return this.each(function(n){var i=c.eq(n);f&&(e[0]=d.call(this,n,i.html())),i.domManip(e,t)});if(u&&(o=st.buildFragment(e,this[0].ownerDocument,!1,this),n=o.firstChild,1===o.childNodes.length&&(o=n),n)){for(s=st.map(g(o,"script"),b),r=s.length;u>l;l++)i=o,l!==h&&(i=st.clone(i,!0,!0),r&&st.merge(s,g(i,"script"))),t.call(this[l],i,l);if(r)for(a=s[s.length-1].ownerDocument,st.map(s,w),l=0;r>l;l++)i=s[l],Wt.test(i.type||"")&&!st._data(i,"globalEval")&&st.contains(a,i)&&(i.src?st._evalUrl&&st._evalUrl(i.src):st.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Gt,"")));o=n=null}return this}}),st.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){st.fn[e]=function(e){for(var n,i=0,r=[],s=st(e),a=s.length-1;a>=i;i++)n=i===a?this:this.clone(!0),st(s[i])[t](n),K.apply(r,n.get());return this.pushStack(r)}});var Zt,en={};!function(){var e,t,n=mt.createElement("div"),i="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],e.style.cssText="float:left;opacity:.5",it.opacity=/^0.5/.test(e.style.opacity),it.cssFloat=!!e.style.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===n.style.backgroundClip,e=n=null,it.shrinkWrapBlocks=function(){var e,n,r,s;if(null==t){if(e=mt.getElementsByTagName("body")[0],!e)return;s="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",n=mt.createElement("div"),r=mt.createElement("div"),e.appendChild(n).appendChild(r),t=!1,typeof r.style.zoom!==Tt&&(r.style.cssText=i+";width:1px;padding:1px;zoom:1",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t=3!==r.offsetWidth),e.removeChild(n),e=n=r=null}return t}}();var tn,nn,rn=/^margin/,sn=new RegExp("^("+Dt+")(?!px)[a-z%]+$","i"),an=/^(top|right|bottom|left)$/;e.getComputedStyle?(tn=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},nn=function(e,t,n){var i,r,s,a,o=e.style;return n=n||tn(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||st.contains(e.ownerDocument,e)||(a=st.style(e,t)),sn.test(a)&&rn.test(t)&&(i=o.width,r=o.minWidth,s=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=i,o.minWidth=r,o.maxWidth=s)),void 0===a?a:a+""}):mt.documentElement.currentStyle&&(tn=function(e){return e.currentStyle},nn=function(e,t,n){var i,r,s,a,o=e.style;return n=n||tn(e),a=n?n[t]:void 0,null==a&&o&&o[t]&&(a=o[t]),sn.test(a)&&!an.test(t)&&(i=o.left,r=e.runtimeStyle,s=r&&r.left,s&&(r.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=i,s&&(r.left=s)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,i=mt.getElementsByTagName("body")[0];i&&(t=mt.createElement("div"),n=mt.createElement("div"),t.style.cssText=u,i.appendChild(t).appendChild(n),n.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",st.swap(i,null!=i.style.zoom?{zoom:1}:{},function(){r=4===n.offsetWidth}),s=!0,a=!1,o=!0,e.getComputedStyle&&(a="1%"!==(e.getComputedStyle(n,null)||{}).top,s="4px"===(e.getComputedStyle(n,null)||{width:"4px"}).width),i.removeChild(t),n=i=null)}var n,i,r,s,a,o,l=mt.createElement("div"),u="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";l.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=l.getElementsByTagName("a")[0],n.style.cssText="float:left;opacity:.5",it.opacity=/^0.5/.test(n.style.opacity),it.cssFloat=!!n.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===l.style.backgroundClip,n=l=null,st.extend(it,{reliableHiddenOffsets:function(){if(null!=i)return i;
  3. var e,t,n,r=mt.createElement("div"),s=mt.getElementsByTagName("body")[0];if(s)return r.setAttribute("className","t"),r.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=mt.createElement("div"),e.style.cssText=u,s.appendChild(e).appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",t=r.getElementsByTagName("td"),t[0].style.cssText="padding:0;margin:0;border:0;display:none",n=0===t[0].offsetHeight,t[0].style.display="",t[1].style.display="none",i=n&&0===t[0].offsetHeight,s.removeChild(e),r=s=null,i},boxSizing:function(){return null==r&&t(),r},boxSizingReliable:function(){return null==s&&t(),s},pixelPosition:function(){return null==a&&t(),a},reliableMarginRight:function(){var t,n,i,r;if(null==o&&e.getComputedStyle){if(t=mt.getElementsByTagName("body")[0],!t)return;n=mt.createElement("div"),i=mt.createElement("div"),n.style.cssText=u,t.appendChild(n).appendChild(i),r=i.appendChild(mt.createElement("div")),r.style.cssText=i.style.cssText=c,r.style.marginRight=r.style.width="0",i.style.width="1px",o=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight),t.removeChild(n)}return o}})}(),st.swap=function(e,t,n,i){var r,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];r=n.apply(e,i||[]);for(s in t)e.style[s]=a[s];return r};var on=/alpha\([^)]*\)/i,ln=/opacity\s*=\s*([^)]*)/,un=/^(none|table(?!-c[ea]).+)/,cn=new RegExp("^("+Dt+")(.*)$","i"),hn=new RegExp("^([+-])=("+Dt+")","i"),dn={position:"absolute",visibility:"hidden",display:"block"},fn={letterSpacing:0,fontWeight:400},pn=["Webkit","O","Moz","ms"];st.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=nn(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":it.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,o=st.camelCase(t),l=e.style;if(t=st.cssProps[o]||(st.cssProps[o]=D(l,o)),a=st.cssHooks[t]||st.cssHooks[o],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t];if(s=typeof n,"string"===s&&(r=hn.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(st.css(e,t)),s="number"),null!=n&&n===n&&("number"!==s||st.cssNumber[o]||(n+="px"),it.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]="",l[t]=n}catch(u){}}},css:function(e,t,n,i){var r,s,a,o=st.camelCase(t);return t=st.cssProps[o]||(st.cssProps[o]=D(e.style,o)),a=st.cssHooks[t]||st.cssHooks[o],a&&"get"in a&&(s=a.get(e,!0,n)),void 0===s&&(s=nn(e,t,i)),"normal"===s&&t in fn&&(s=fn[t]),""===n||n?(r=parseFloat(s),n===!0||st.isNumeric(r)?r||0:s):s}}),st.each(["height","width"],function(e,t){st.cssHooks[t]={get:function(e,n,i){return n?0===e.offsetWidth&&un.test(st.css(e,"display"))?st.swap(e,dn,function(){return N(e,t,i)}):N(e,t,i):void 0},set:function(e,n,i){var r=i&&tn(e);return M(e,n,i?A(e,t,i,it.boxSizing()&&"border-box"===st.css(e,"boxSizing",!1,r),r):0)}}}),it.opacity||(st.cssHooks.opacity={get:function(e,t){return ln.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=st.isNumeric(t)?"alpha(opacity="+100*t+")":"",s=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===st.trim(s.replace(on,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=on.test(s)?s.replace(on,r):s+" "+r)}}),st.cssHooks.marginRight=S(it.reliableMarginRight,function(e,t){return t?st.swap(e,{display:"inline-block"},nn,[e,"marginRight"]):void 0}),st.each({margin:"",padding:"",border:"Width"},function(e,t){st.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+Et[i]+t]=s[i]||s[i-2]||s[0];return r}},rn.test(e)||(st.cssHooks[e+t].set=M)}),st.fn.extend({css:function(e,t){return At(this,function(e,t,n){var i,r,s={},a=0;if(st.isArray(t)){for(i=tn(e),r=t.length;r>a;a++)s[t[a]]=st.css(e,t[a],!1,i);return s}return void 0!==n?st.style(e,t,n):st.css(e,t)},e,t,arguments.length>1)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Mt(this)?st(this).show():st(this).hide()})}}),st.Tween=$,$.prototype={constructor:$,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(st.cssNumber[n]?"":"px")},cur:function(){var e=$.propHooks[this.prop];return e&&e.get?e.get(this):$.propHooks._default.get(this)},run:function(e){var t,n=$.propHooks[this.prop];return this.pos=t=this.options.duration?st.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=st.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){st.fx.step[e.prop]?st.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[st.cssProps[e.prop]]||st.cssHooks[e.prop])?st.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},st.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},st.fx=$.prototype.init,st.fx.step={};var mn,gn,vn=/^(?:toggle|show|hide)$/,yn=new RegExp("^(?:([+-])=|)("+Dt+")([a-z%]*)$","i"),bn=/queueHooks$/,wn=[L],kn={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),r=yn.exec(t),s=r&&r[3]||(st.cssNumber[e]?"":"px"),a=(st.cssNumber[e]||"px"!==s&&+i)&&yn.exec(st.css(n.elem,e)),o=1,l=20;if(a&&a[3]!==s){s=s||a[3],r=r||[],a=+i||1;do o=o||".5",a/=o,st.style(n.elem,e,a+s);while(o!==(o=n.cur()/i)&&1!==o&&--l)}return r&&(a=n.start=+a||+i||0,n.unit=s,n.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),n}]};st.Animation=st.extend(I,{tweener:function(e,t){st.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;r>i;i++)n=e[i],kn[n]=kn[n]||[],kn[n].unshift(t)},prefilter:function(e,t){t?wn.unshift(e):wn.push(e)}}),st.speed=function(e,t,n){var i=e&&"object"==typeof e?st.extend({},e):{complete:n||!n&&t||st.isFunction(e)&&e,duration:e,easing:n&&t||t&&!st.isFunction(t)&&t};return i.duration=st.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in st.fx.speeds?st.fx.speeds[i.duration]:st.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){st.isFunction(i.old)&&i.old.call(this),i.queue&&st.dequeue(this,i.queue)},i},st.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Mt).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=st.isEmptyObject(e),s=st.speed(t,n,i),a=function(){var t=I(this,st.extend({},e),s);(r||st._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",s=st.timers,a=st._data(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&bn.test(r)&&i(a[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(n),t=!1,s.splice(r,1));(t||!n)&&st.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=st._data(this),i=n[e+"queue"],r=n[e+"queueHooks"],s=st.timers,a=i?i.length:0;for(n.finish=!0,st.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),st.each(["toggle","show","hide"],function(e,t){var n=st.fn[t];st.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(O(t,!0),e,i,r)}}),st.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){st.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),st.timers=[],st.fx.tick=function(){var e,t=st.timers,n=0;for(mn=st.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||st.fx.stop(),mn=void 0},st.fx.timer=function(e){st.timers.push(e),e()?st.fx.start():st.timers.pop()},st.fx.interval=13,st.fx.start=function(){gn||(gn=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(gn),gn=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fn.delay=function(e,t){return e=st.fx?st.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e,t,n,i,r=mt.createElement("div");r.setAttribute("className","t"),r.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=r.getElementsByTagName("a")[0],n=mt.createElement("select"),i=n.appendChild(mt.createElement("option")),t=r.getElementsByTagName("input")[0],e.style.cssText="top:1px",it.getSetAttribute="t"!==r.className,it.style=/top/.test(e.getAttribute("style")),it.hrefNormalized="/a"===e.getAttribute("href"),it.checkOn=!!t.value,it.optSelected=i.selected,it.enctype=!!mt.createElement("form").enctype,n.disabled=!0,it.optDisabled=!i.disabled,t=mt.createElement("input"),t.setAttribute("value",""),it.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),it.radioValue="t"===t.value,e=t=n=i=r=null}();var Cn=/\r/g;st.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=st.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,st(this).val()):e,null==r?r="":"number"==typeof r?r+="":st.isArray(r)&&(r=st.map(r,function(e){return null==e?"":e+""})),t=st.valHooks[this.type]||st.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=st.valHooks[r.type]||st.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Cn,""):null==n?"":n)}}}),st.extend({valHooks:{option:{get:function(e){var t=st.find.attr(e,"value");return null!=t?t:st.text(e)}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,s="select-one"===e.type||0>r,a=s?null:[],o=s?r+1:i.length,l=0>r?o:s?r:0;o>l;l++)if(n=i[l],!(!n.selected&&l!==r||(it.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&st.nodeName(n.parentNode,"optgroup"))){if(t=st(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,s=st.makeArray(t),a=r.length;a--;)if(i=r[a],st.inArray(st.valHooks.option.get(i),s)>=0)try{i.selected=n=!0}catch(o){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),st.each(["radio","checkbox"],function(){st.valHooks[this]={set:function(e,t){return st.isArray(t)?e.checked=st.inArray(st(e).val(),t)>=0:void 0}},it.checkOn||(st.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _n,Tn,xn=st.expr.attrHandle,Sn=/^(?:checked|selected)$/i,Dn=it.getSetAttribute,En=it.input;st.fn.extend({attr:function(e,t){return At(this,st.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){st.removeAttr(this,e)})}}),st.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===Tt?st.prop(e,t,n):(1===s&&st.isXMLDoc(e)||(t=t.toLowerCase(),i=st.attrHooks[t]||(st.expr.match.bool.test(t)?Tn:_n)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=st.find.attr(e,t),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):(st.removeAttr(e,t),void 0))},removeAttr:function(e,t){var n,i,r=0,s=t&&t.match(wt);if(s&&1===e.nodeType)for(;n=s[r++];)i=st.propFix[n]||n,st.expr.match.bool.test(n)?En&&Dn||!Sn.test(n)?e[i]=!1:e[st.camelCase("default-"+n)]=e[i]=!1:st.attr(e,n,""),e.removeAttribute(Dn?n:i)},attrHooks:{type:{set:function(e,t){if(!it.radioValue&&"radio"===t&&st.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Tn={set:function(e,t,n){return t===!1?st.removeAttr(e,n):En&&Dn||!Sn.test(n)?e.setAttribute(!Dn&&st.propFix[n]||n,n):e[st.camelCase("default-"+n)]=e[n]=!0,n}},st.each(st.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xn[t]||st.find.attr;xn[t]=En&&Dn||!Sn.test(t)?function(e,t,i){var r,s;return i||(s=xn[t],xn[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,xn[t]=s),r}:function(e,t,n){return n?void 0:e[st.camelCase("default-"+t)]?t.toLowerCase():null}}),En&&Dn||(st.attrHooks.value={set:function(e,t,n){return st.nodeName(e,"input")?(e.defaultValue=t,void 0):_n&&_n.set(e,t,n)}}),Dn||(_n={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},xn.id=xn.name=xn.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},st.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:_n.set},st.attrHooks.contenteditable={set:function(e,t,n){_n.set(e,""===t?!1:t,n)}},st.each(["width","height"],function(e,t){st.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),it.style||(st.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Mn=/^(?:input|select|textarea|button|object)$/i,An=/^(?:a|area)$/i;st.fn.extend({prop:function(e,t){return At(this,st.prop,e,t,arguments.length>1)},removeProp:function(e){return e=st.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),st.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var i,r,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return s=1!==a||!st.isXMLDoc(e),s&&(t=st.propFix[t]||t,r=st.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=st.find.attr(e,"tabindex");return t?parseInt(t,10):Mn.test(e.nodeName)||An.test(e.nodeName)&&e.href?0:-1}}}}),it.hrefNormalized||st.each(["href","src"],function(e,t){st.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),it.optSelected||(st.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),st.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){st.propFix[this.toLowerCase()]=this}),it.enctype||(st.propFix.enctype="encoding");var Nn=/[\t\r\n\f]/g;st.fn.extend({addClass:function(e){var t,n,i,r,s,a,o=0,l=this.length,u="string"==typeof e&&e;if(st.isFunction(e))return this.each(function(t){st(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(wt)||[];l>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Nn," "):" ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=st.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,i,r,s,a,o=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(st.isFunction(e))return this.each(function(t){st(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(wt)||[];l>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Nn," "):"")){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");a=e?st.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):st.isFunction(e)?this.each(function(n){st(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,i=0,r=st(this),s=e.match(wt)||[];t=s[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(n===Tt||"boolean"===n)&&(this.className&&st._data(this,"__className__",this.className),this.className=this.className||e===!1?"":st._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Nn," ").indexOf(t)>=0)return!0;return!1}}),st.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(e,t){st.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),st.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var $n=st.now(),Fn=/\?/,On=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;st.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,r=st.trim(t+"");return r&&!st.trim(r.replace(On,function(e,t,r,s){return n&&t&&(i=0),0===i?e:(n=r||t,i+=!s-!r,"")}))?Function("return "+r)():st.error("Invalid JSON: "+t)},st.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new DOMParser,n=i.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(r){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||st.error("Invalid XML: "+t),n};var Pn,Ln,jn=/#.*$/,In=/([?&])_=[^&]*/,Bn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Rn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Hn=/^(?:GET|HEAD)$/,zn=/^\/\//,Un=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qn={},Vn={},Jn="*/".concat("*");try{Ln=location.href}catch(Wn){Ln=mt.createElement("a"),Ln.href="",Ln=Ln.href}Pn=Un.exec(Ln.toLowerCase())||[],st.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ln,type:"GET",isLocal:Rn.test(Pn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jn,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":st.parseJSON,"text xml":st.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,st.ajaxSettings),t):H(st.ajaxSettings,e)},ajaxPrefilter:B(qn),ajaxTransport:B(Vn),ajax:function(e,t){function n(e,t,n,i){var r,c,v,y,w,C=t;2!==b&&(b=2,o&&clearTimeout(o),u=void 0,a=i||"",k.readyState=e>0?4:0,r=e>=200&&300>e||304===e,n&&(y=z(h,k,n)),y=U(h,y,k,r),r?(h.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(st.lastModified[s]=w),w=k.getResponseHeader("etag"),w&&(st.etag[s]=w)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=y.state,c=y.data,v=y.error,r=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),k.status=e,k.statusText=(t||C)+"",r?p.resolveWith(d,[c,C,k]):p.rejectWith(d,[k,C,v]),k.statusCode(g),g=void 0,l&&f.trigger(r?"ajaxSuccess":"ajaxError",[k,h,r?c:v]),m.fireWith(d,[k,C]),l&&(f.trigger("ajaxComplete",[k,h]),--st.active||st.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,s,a,o,l,u,c,h=st.ajaxSetup({},t),d=h.context||h,f=h.context&&(d.nodeType||d.jquery)?st(d):st.event,p=st.Deferred(),m=st.Callbacks("once memory"),g=h.statusCode||{},v={},y={},b=0,w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Bn.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),n(0,t),this}};if(p.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,h.url=((e||h.url||Ln)+"").replace(jn,"").replace(zn,Pn[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=st.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain&&(i=Un.exec(h.url.toLowerCase()),h.crossDomain=!(!i||i[1]===Pn[1]&&i[2]===Pn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Pn[3]||("http:"===Pn[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=st.param(h.data,h.traditional)),R(qn,h,t,k),2===b)return k;l=h.global,l&&0===st.active++&&st.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Hn.test(h.type),s=h.url,h.hasContent||(h.data&&(s=h.url+=(Fn.test(s)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=In.test(s)?s.replace(In,"$1_="+$n++):s+(Fn.test(s)?"&":"?")+"_="+$n++)),h.ifModified&&(st.lastModified[s]&&k.setRequestHeader("If-Modified-Since",st.lastModified[s]),st.etag[s]&&k.setRequestHeader("If-None-Match",st.etag[s])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Jn+"; q=0.01":""):h.accepts["*"]);for(r in h.headers)k.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(h.beforeSend.call(d,k,h)===!1||2===b))return k.abort();w="abort";for(r in{success:1,error:1,complete:1})k[r](h[r]);if(u=R(Vn,h,t,k)){k.readyState=1,l&&f.trigger("ajaxSend",[k,h]),h.async&&h.timeout>0&&(o=setTimeout(function(){k.abort("timeout")},h.timeout));try{b=1,u.send(v,n)}catch(C){if(!(2>b))throw C;n(-1,C)}}else n(-1,"No Transport");return k},getJSON:function(e,t,n){return st.get(e,t,n,"json")},getScript:function(e,t){return st.get(e,void 0,t,"script")}}),st.each(["get","post"],function(e,t){st[t]=function(e,n,i,r){return st.isFunction(n)&&(r=r||i,i=n,n=void 0),st.ajax({url:e,type:t,dataType:r,data:n,success:i})}}),st.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){st.fn[t]=function(e){return this.on(t,e)}}),st._evalUrl=function(e){return st.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},st.fn.extend({wrapAll:function(e){if(st.isFunction(e))return this.each(function(t){st(this).wrapAll(e.call(this,t))});if(this[0]){var t=st(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return st.isFunction(e)?this.each(function(t){st(this).wrapInner(e.call(this,t))}):this.each(function(){var t=st(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=st.isFunction(e);return this.each(function(n){st(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){st.nodeName(this,"body")||st(this).replaceWith(this.childNodes)}).end()}}),st.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!it.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||st.css(e,"display"))},st.expr.filters.visible=function(e){return!st.expr.filters.hidden(e)};var Qn=/%20/g,Gn=/\[\]$/,Yn=/\r?\n/g,Kn=/^(?:submit|button|image|reset|file)$/i,Xn=/^(?:input|select|textarea|keygen)/i;st.param=function(e,t){var n,i=[],r=function(e,t){t=st.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=st.ajaxSettings&&st.ajaxSettings.traditional),st.isArray(e)||e.jquery&&!st.isPlainObject(e))st.each(e,function(){r(this.name,this.value)});else for(n in e)q(n,e[n],t,r);return i.join("&").replace(Qn,"+")},st.fn.extend({serialize:function(){return st.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=st.prop(this,"elements");return e?st.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!st(this).is(":disabled")&&Xn.test(this.nodeName)&&!Kn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=st(this).val();return null==n?null:st.isArray(n)?st.map(n,function(e){return{name:t.name,value:e.replace(Yn,"\r\n")}}):{name:t.name,value:n.replace(Yn,"\r\n")}}).get()}}),st.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&V()||J()}:V;var Zn=0,ei={},ti=st.ajaxSettings.xhr();e.ActiveXObject&&st(e).on("unload",function(){for(var e in ei)ei[e](void 0,!0)}),it.cors=!!ti&&"withCredentials"in ti,ti=it.ajax=!!ti,ti&&st.ajaxTransport(function(e){if(!e.crossDomain||it.cors){var t;return{send:function(n,i){var r,s=e.xhr(),a=++Zn;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)s[r]=e.xhrFields[r];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)void 0!==n[r]&&s.setRequestHeader(r,n[r]+"");s.send(e.hasContent&&e.data||null),t=function(n,r){var o,l,u;if(t&&(r||4===s.readyState))if(delete ei[a],t=void 0,s.onreadystatechange=st.noop,r)4!==s.readyState&&s.abort();else{u={},o=s.status,"string"==typeof s.responseText&&(u.text=s.responseText);try{l=s.statusText}catch(c){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&i(o,l,u,s.getAllResponseHeaders())},e.async?4===s.readyState?setTimeout(t):s.onreadystatechange=ei[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),st.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return st.globalEval(e),e}}}),st.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),st.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=mt.head||st("head")[0]||mt.documentElement;return{send:function(i,r){t=mt.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ni=[],ii=/(=)\?(?=&|$)|\?\?/;st.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ni.pop()||st.expando+"_"+$n++;return this[e]=!0,e}}),st.ajaxPrefilter("json jsonp",function(t,n,i){var r,s,a,o=t.jsonp!==!1&&(ii.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(t.data)&&"data");return o||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=st.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(ii,"$1"+r):t.jsonp!==!1&&(t.url+=(Fn.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||st.error(r+" was not called"),a[0]},t.dataTypes[0]="json",s=e[r],e[r]=function(){a=arguments},i.always(function(){e[r]=s,t[r]&&(t.jsonpCallback=n.jsonpCallback,ni.push(r)),a&&st.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),st.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||mt;var i=dt.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=st.buildFragment([e],t,r),r&&r.length&&st(r).remove(),st.merge([],i.childNodes))};var ri=st.fn.load;st.fn.load=function(e,t,n){if("string"!=typeof e&&ri)return ri.apply(this,arguments);var i,r,s,a=this,o=e.indexOf(" ");return o>=0&&(i=e.slice(o,e.length),e=e.slice(0,o)),st.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),a.length>0&&st.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?st("<div>").append(st.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this},st.expr.filters.animated=function(e){return st.grep(st.timers,function(t){return e===t.elem}).length};var si=e.document.documentElement;st.offset={setOffset:function(e,t,n){var i,r,s,a,o,l,u,c=st.css(e,"position"),h=st(e),d={};"static"===c&&(e.style.position="relative"),o=h.offset(),s=st.css(e,"top"),l=st.css(e,"left"),u=("absolute"===c||"fixed"===c)&&st.inArray("auto",[s,l])>-1,u?(i=h.position(),a=i.top,r=i.left):(a=parseFloat(s)||0,r=parseFloat(l)||0),st.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(d.top=t.top-o.top+a),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):h.css(d)}},st.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){st.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},r=this[0],s=r&&r.ownerDocument;if(s)return t=s.documentElement,st.contains(t,r)?(typeof r.getBoundingClientRect!==Tt&&(i=r.getBoundingClientRect()),n=W(s),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===st.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),st.nodeName(e[0],"html")||(n=e.offset()),n.top+=st.css(e[0],"borderTopWidth",!0),n.left+=st.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-st.css(i,"marginTop",!0),left:t.left-n.left-st.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||si;e&&!st.nodeName(e,"html")&&"static"===st.css(e,"position");)e=e.offsetParent;return e||si})}}),st.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);st.fn[e]=function(i){return At(this,function(e,i,r){var s=W(e);return void 0===r?s?t in s?s[t]:s.document.documentElement[i]:e[i]:(s?s.scrollTo(n?st(s).scrollLeft():r,n?r:st(s).scrollTop()):e[i]=r,void 0)},e,i,arguments.length,null)}}),st.each(["top","left"],function(e,t){st.cssHooks[t]=S(it.pixelPosition,function(e,n){return n?(n=nn(e,t),sn.test(n)?st(e).position()[t]+"px":n):void 0})}),st.each({Height:"height",Width:"width"},function(e,t){st.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){st.fn[i]=function(i,r){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return At(this,function(t,n,i){var r;return st.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?st.css(t,n,a):st.style(t,n,i,a)},t,s?i:void 0,s,null)}})}),st.fn.size=function(){return this.length},st.fn.andSelf=st.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return st});var ai=e.jQuery,oi=e.$;return st.noConflict=function(t){return e.$===st&&(e.$=oi),t&&e.jQuery===st&&(e.jQuery=ai),st},typeof t===Tt&&(e.jQuery=e.$=st),st}),function(e,t){e.rails!==t&&e.error("jquery-ujs has already been loaded!");var n,i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",buttonClickSelector:"button[data-remote]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input[type=file]",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(t){var n=e('meta[name="csrf-token"]').attr("content");n&&t.setRequestHeader("X-CSRF-Token",n)},refreshCSRFTokens:function(){var t=e("meta[name=csrf-token]").attr("content"),n=e("meta[name=csrf-param]").attr("content");e('form input[name="'+n+'"]').val(t)},fire:function(t,n,i){var r=e.Event(n);return t.trigger(r,i),r.result!==!1},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e.attr("href")},handleRemote:function(i){var r,s,a,o,l,u,c,h;if(n.fire(i,"ajax:before")){if(o=i.data("cross-domain"),l=o===t?null:o,u=i.data("with-credentials")||null,c=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){r=i.attr("method"),s=i.attr("action"),a=i.serializeArray();
  4. var d=i.data("ujs:submit-button");d&&(a.push(d),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(r=i.data("method"),s=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(r=i.data("method")||"get",s=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(r=i.data("method"),s=n.href(i),a=i.data("params")||null);h={type:r||"GET",data:a,dataType:c,beforeSend:function(e,r){return r.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+r.accepts.script),n.fire(i,"ajax:beforeSend",[e,r])},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:l},u&&(h.xhrFields={withCredentials:u}),s&&(h.url=s);var f=n.ajax(h);return i.trigger("ajax:send",f),f}return!1},handleMethod:function(i){var r=n.href(i),s=i.data("method"),a=i.attr("target"),o=e("meta[name=csrf-token]").attr("content"),l=e("meta[name=csrf-param]").attr("content"),u=e('<form method="post" action="'+r+'"></form>'),c='<input name="_method" value="'+s+'" type="hidden" />';l!==t&&o!==t&&(c+='<input name="'+l+'" value="'+o+'" type="hidden" />'),a&&u.attr("target",a),u.hide().append(c).appendTo("body"),u.submit()},disableFormElements:function(t){t.find(n.disableSelector).each(function(){var t=e(this),n=t.is("button")?"html":"val";t.data("ujs:enable-with",t[n]()),t[n](t.data("disable-with")),t.prop("disabled",!0)})},enableFormElements:function(t){t.find(n.enableSelector).each(function(){var t=e(this),n=t.is("button")?"html":"val";t.data("ujs:enable-with")&&t[n](t.data("ujs:enable-with")),t.prop("disabled",!1)})},allowAction:function(e){var t,i=e.data("confirm"),r=!1;return i?(n.fire(e,"confirm")&&(r=n.confirm(i),t=n.fire(e,"confirm:complete",[r])),r&&t):!0},blankInputs:function(t,n,i){var r,s,a=e(),o=n||"input,textarea",l=t.find(o);return l.each(function(){if(r=e(this),s=r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):r.val(),!s==!i){if(r.is("input[type=radio]")&&l.filter('input[type=radio]:checked[name="'+r.attr("name")+'"]').length)return!0;a=a.add(r)}}),a.length?a:!1},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){e.data("ujs:enable-with",e.html()),e.html(e.data("disable-with")),e.bind("click.railsDisable",function(e){return n.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),i.delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(e(this))}),i.delegate(n.linkClickSelector,"click.rails",function(i){var r=e(this),s=r.data("method"),a=r.data("params"),o=i.metaKey||i.ctrlKey;if(!n.allowAction(r))return n.stopEverything(i);if(!o&&r.is(n.linkDisableSelector)&&n.disableElement(r),r.data("remote")!==t){if(o&&(!s||"GET"===s)&&!a)return!0;var l=n.handleRemote(r);return l===!1?n.enableElement(r):l.error(function(){n.enableElement(r)}),!1}return r.data("method")?(n.handleMethod(r),!1):void 0}),i.delegate(n.buttonClickSelector,"click.rails",function(t){var i=e(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),i.delegate(n.inputChangeSelector,"change.rails",function(t){var i=e(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),i.delegate(n.formSubmitSelector,"submit.rails",function(i){var r=e(this),s=r.data("remote")!==t,a=n.blankInputs(r,n.requiredInputSelector),o=n.nonBlankInputs(r,n.fileInputSelector);if(!n.allowAction(r))return n.stopEverything(i);if(a&&r.attr("novalidate")==t&&n.fire(r,"ajax:aborted:required",[a]))return n.stopEverything(i);if(s){if(o){setTimeout(function(){n.disableFormElements(r)},13);var l=n.fire(r,"ajax:aborted:file",[o]);return l||setTimeout(function(){n.enableFormElements(r)},13),l}return n.handleRemote(r),!1}setTimeout(function(){n.disableFormElements(r)},13)}),i.delegate(n.formInputClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var r=i.attr("name"),s=r?{name:r,value:i.val()}:null;i.closest("form").data("ujs:submit-button",s)}),i.delegate(n.formSubmitSelector,"ajax:beforeSend.rails",function(t){this==t.target&&n.disableFormElements(e(this))}),i.delegate(n.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&n.enableFormElements(e(this))}),e(function(){n.refreshCSRFTokens()}))}(jQuery),function(e){function t(e){e.data("stuck",!1),e.removeClass("stuck"),e.attr("style","");var t=e.data("scrollstick:clone");t&&t.remove()}e.fn.scrollstick=function(n){var i,r,s=this;if(s.length){s.is(".stuck")&&t(s),s.data("stuck",!1);var a={min:this.offset().top,parent:null,offset:0,zIndex:10,exitZIndex:10,tag:null};n=e.extend({},a,n);var o=".scrollstick";n.tag&&(o=o+"."+n.tag);var l;e(window).on("resize"+o,i=function(){if(n.min=s.offset().top,l&&s.data("stuck")){var e="border-box"===l.css("box-sizing");if(s.css({position:"fixed",zIndex:n.zIndex,margin:0}),l[0].outerWidth,n.parent){var t=s.closest(n.parent),i=t.offset().top+t.outerHeight()-parseInt(t.css("padding-bottom"),10)-s.outerHeight();s.data("scrollstick:max",i)}s.css({top:n.offset,left:l.offset().left,width:e?l.outerWidth():l.innerWidth()})}}),e(window).on("scroll"+o,r=function(){var r=e(window).scrollTop(),a=r>n.min-n.offset,o=s.data("stuck"),u=s.data("scrollstick:max");if(!o&&a&&(o=!0,s.data("stuck",!0),s.addClass("stuck"),l=s.clone(),l.addClass("scrollstick-placeholder"),l.css({visibility:"hidden"}),l.insertAfter(s),s.data("scrollstick:clone",l),i()),"number"==typeof u&&o){var c=r+n.offset>u;c&&"absolute"!==s.css("position")&&s.addClass("exited").css({position:"absolute",top:u-l.offsetParent().offset().top,left:l.offset().left-l.offsetParent().offset().left,zIndex:n.exitZIndex}),c||"fixed"===s.css("position")||s.removeClass("exited").css({position:"fixed",top:n.offset,left:l.offset().left,zIndex:n.zIndex})}o&&!a&&t(s)}),r()}},e.unscrollstick=function(n,i){var r=e(n);r.data("stuck")&&t(r),i&&e(window).off(i)}}(jQuery),function(e){e.fn.selecttrap=function(t){t||(t={}),e(this).each(function(){var n=e(this);if(!n.parent().is(".selecttrap")){var i=n.wrap('<div class="selecttrap">').closest("div").addClass(t["class"]).addClass(n.attr("class")),r=e('<div class="st-text"></div>').appendTo(i).after('<div class="st-arrow">');n.on("change.selecttrap selecttrap:update",function(){var e=n.val()||"",t=n.find('[value="'+e.replace(/"/,'\\"')+'"]');r.text(t.length?t.text():e)}).trigger("change.selecttrap"),n.is(":disabled")&&i.addClass("disabled"),n.on("hover.selecttrap",function(){i.addClass("hover")}).on("mouseout.selecttrap",function(){i.removeClass("hover")}).on("focus.selecttrap",function(){i.addClass("focus")}).on("blur.selecttrap",function(){i.removeClass("focus")})}})}}(jQuery),function(){var e,t;this.Harvey=function(){function n(){}return n.states={},n.attach=function(t,n){var i;return this.states.hasOwnProperty(t)||(this.states[t]=[],this._add_css_for(t)),i=new e(t,null!=n?n.setup:void 0,null!=n?n.on:void 0,null!=n?n.off:void 0),this.states[t].length||this._watch_query(t),this.states[t].push(i),this._window_matchmedia(t).matches&&this._update_states([i],!0),i},n.detach=function(e){var t,n,i,r,s,a;for(s=this.states[e.condition],a=[],t=i=0,r=s.length;r>i;t=++i)n=s[t],e===n?a.push(this.states[n.condition][t]=void 0):a.push(void 0);return a},n._watch_query=function(e){var t=this;return this._window_matchmedia(e).addListener(function(n){return t._update_states(t.states[e],n.matches)})},n._update_states=function(e,t){var n,i,r,s;for(s=[],i=0,r=e.length;r>i;i++)n=e[i],t?s.push(n.activate()):s.push(n.deactivate());return s},n._mediaList={},n._window_matchmedia=function(e){return window.matchMedia&&"addListener"in window.matchMedia("all")?(e in this._mediaList||(this._mediaList[e]=window.matchMedia(e)),this._mediaList[e]):(this._listening||this._listen(),e in this._mediaList||(this._mediaList[e]=new t(e)),this._mediaList[e])},n._listen=function(){var e,t=this;return e=window.addEventListener||window.attachEvent,e("resize",function(){var e,n,i,r;i=t._mediaList,r=[];for(n in i)e=i[n],r.push(e._process());return r}),e("orientationChange",function(){var e,n,i,r;i=t._mediaList,r=[];for(n in i)e=i[n],r.push(e._process());return r}),this._listening=!0},n._add_css_for=function(e){return this.style||(this.style=document.createElement("style"),this.style.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(this.style)),e="@media "+e+" {.harvey-test{}}",this.style.styleSheet?void 0:this.style.appendChild(document.createTextNode(e))},n}(),e=function(){function e(e,t,n,i){this.condition=e,this.setup=t,this.on=n,this.off=i}return e.prototype.active=!1,e.prototype.is_setup=!1,e.prototype.activate=function(){return this.active?void 0:(this.is_setup||("function"==typeof this.setup&&this.setup(),this.is_setup=!0),"function"==typeof this.on&&this.on(),this.active=!0)},e.prototype.deactivate=function(){return this.active?("function"==typeof this.off&&this.off(),this.active=!1):void 0},e}(),t=function(){function e(e){this.media=e,this._listeners=[],this.matches=this._matches()}return e.prototype.addListener=function(e){return this._listeners.push(e),void 0},e.prototype._process=function(){var e,t,n,i,r,s;if(t=this._matches(),this.matches!==t){for(this.matches=t,r=this._listeners,s=[],n=0,i=r.length;i>n;n++)e=r[n],s.push(e(this));return s}},e.prototype._matches=function(){return this._tester||this._get_tester(),this._tester.innerHTML='&shy;<style media="'+this.media+'">#harvey-mq-test{width:42px;}</style>',this._tester.removeChild(this._tester.firstChild),42===this._tester.offsetWidth},e.prototype._get_tester=function(){return this._tester=document.getElementById("harvey-mq-test"),this._tester?void 0:this._build_tester()},e.prototype._build_tester=function(){return this._tester=document.createElement("div"),this._tester.id="harvey-mq-test",this._tester.style.cssText="position:absolute;top:-100em",document.body.insertBefore(this._tester,document.body.firstChild)},e}()}.call(this),+function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function n(){s.trigger("closed.bs.alert").remove()}var i=e(this),r=i.attr("data-target");r||(r=i.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var s=e(r);t&&t.preventDefault(),s.length||(s=i.hasClass("alert")?i:i.parent()),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one(e.support.transition.end,n).emulateTransitionEnd(150):n())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof t&&r[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]}}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one(e.support.transition.end,function(){n=!0});var r=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t()})}(jQuery),+function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this[this.isShown?"hide":"show"](e)},t.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$element.find(".modal-dialog").one(e.support.transition.end,function(){n.$element.focus().trigger(r)}).emulateTransitionEnd(300):n.$element.focus().trigger(r)}))},t.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.focus()},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(t){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var n=e.fn.modal;e.fn.modal=function(n,i){return this.each(function(){var r=e(this),s=r.data("bs.modal"),a=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);s||r.data("bs.modal",s=new t(this,a)),"string"==typeof n?s[n](i):a.show&&s.show(i)})},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),i=n.attr("href"),r=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},r.data(),n.data());t.preventDefault(),r.modal(s,this).one("hide",function(){n.is(":visible")&&n.focus()})}),e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(jQuery),+function(e){"use strict";var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=e.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var i=n.data("bs.collapse");if(i&&i.transitioning)return;n.collapse("hide"),i||n.data("bs.collapse",null)}var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("in")[r]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var a=e.camelCase(["scroll",r].join("-"));this.$element.one(e.support.transition.end,e.proxy(s,this)).emulateTransitionEnd(350)[r](this.$element[0][a])}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return e.support.transition?(this.$element[n](0).one(e.support.transition.end,e.proxy(i,this)).emulateTransitionEnd(350),void 0):i.call(this)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var i=e(this),r=i.data("bs.collapse"),s=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n);r||i.data("bs.collapse",r=new t(this,s)),"string"==typeof n&&r[n]()})},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var n,i=e(this),r=i.attr("data-target")||t.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),s=e(r),a=s.data("bs.collapse"),o=a?"toggle":i.data(),l=i.attr("data-parent"),u=l&&e(l);a&&a.transitioning||(u&&u.find('[data-toggle=collapse][data-parent="'+l+'"]').not(i).addClass("collapsed"),i[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),s.collapse(o)})}(jQuery),function(e){function t(e){var t=parseInt(e,10);return isNaN(t)?null:t}function n(e,t){return t&&window._&&window._.throttle?window._.throttle(e,t):e}function i(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n$/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(e){return r("&nbsp;",e.length-1)+" "})}function r(e,t){for(var n="",i=0;t>i;i++)n+=e;return n}function s(e,t){var n=e.css("transition");return n.length&&(n+=", "),n+=t,e.css({transition:n})}var a;e.fn.autoexpand=function(o){var l=this;o=e.extend({},{extraLines:0,preempt:!0,preemptLength:4,throttle:50,speed:0},o||{}),o.speed>0&&0===o.extraLines&&(o.speed=0);var u=function(){var n=e(this);if(n.length){a&&0!==a.closest(document.documentElement).length||(a=e('<div class="autoexpand-shadow">').appendTo(document.body)),n.data("autoexpand")||c(n);var i="border-box"===n.css("box-sizing"),r=i?n.outerHeight():n.css("height"),s=Math.max(s,t(r));a.css({position:"absolute",top:-1e4,left:-1e4,zIndex:-100,width:i?n.outerWidth():n.css("width"),minHeight:s,visibility:"hidden",resize:"none",borderColor:"red",borderStyle:"solid"});for(var o=["fontFamily","fontSize","lineHeight","boxSizing","paddingTop","paddingBottom","paddingLeft","paddingRight","wordWrap","whiteSpace","textWrap","borderWidth"],l=0;l<o.length;l++){var u=o[l];a.css(u,n.css(u))}return a.textarea=n,a}},c=function(e){e.data("autoexpand",!0),e.css({resize:"none",overflow:"hidden"}),o.speed&&s(e,"height "+o.speed+"ms ease-in")},h=function(){var n=e(this);if(n.length){a&&a.textarea.is(n)||u.apply(this);var s=i(n.val());o.preempt&&(s+=" "+r("w",o.preemptLength)),o.extraLines>0&&(s+=r("<br/>&nbsp;",o.extraLines)),a.html(s);var l="border-box"===n.css("box-sizing"),c=l?a.outerHeight():a.css("height"),h=t(n.css("max-height"));h&&c>=h&&(c=h),n.css("height",c),null!==h&&(c===h?n.css({"overflow-y":"auto"}):n.css({"overflow-y":"hidden"}))}},d=function(){u.apply(this),h.apply(this)};return e(document).on("focus",this.selector,d),e(document).on("input change",this.selector,n(h,o.throttle)),e(window).on("resize",function(){l.each(d)}),e(document).on("autoexpand",this.selector,d),e(function(){l.each(d)}),this}}(jQuery),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Events=window.TicketBase.Events||{},$(function(){var e;return TicketBase.Events.prefillEventDates=function(){var e,t,n;return n=$("#event_starts_at"),e=$("#event_ends_at"),t=function(e,t){return""===e.val()?e.datepicker("setDate",t):e.datepicker("setUTCDate",new Date(e.val()))},t(n,new Date),t(e,new Date),n.change(function(){return""===n.val()||new Date(n.val())>new Date(e.val())?e.datepicker("setDate",new Date(n.val())):void 0}),e.change(function(){return""===e.val()||new Date(n.val())>new Date(e.val())?e.datepicker("setDate",new Date(n.val())):void 0})},TicketBase.Events.constructTheme=function(e){return"undefined"!=typeof less&&null!==less?less.modifyVars(e):void 0},TicketBase.Events.addLocationManually=function(){return""!==$("#event_location_attributes_title").val()&&$(".location").show(),$(".manual-location").click(function(e){return e.preventDefault(),$(".location").show(),$(".clear-location-toggle").removeClass("hide")})},TicketBase.Events.clearLocation=function(){return $(".clear-location").click(function(e){return e.preventDefault(),$(".location").hide(),$(".map").hide(),$(".clear-location-toggle").addClass("hide"),$(".location input").each(function(){return $(this).val("")}),TicketBase.Maps.reset()})},TicketBase.Events.locationViaFoursquare=function(){var t;return t=[],$("input#event_venue_id, input#venue_location_id").select2({placeholder:"Search for a venue",allowClear:!0,minimumInputLength:3,formatResult:e,ajax:{url:"/venues/search",dataType:"json",data:function(e){return{query:e}},results:function(e){var n;return n=[],t=[],$.each(e.response.venues,function(e,i){return n.push({id:i.id,text:i.name,address:""+i.location.address+" "+i.location.city+" "+i.location.state}),t.push([i.id,i.name,i.location])}),{results:n}}}}),$("input#event_venue_id, input#venue_location_id").on("change",function(e){var n,i,r,s,a;for($(".map").hide(),$(".location").show(),n=e.val,""===n&&($(".location").hide(),$(".map").hide()),TicketBase.Maps.reset(),$(".location input").each(function(){return $(this).val("")}),a=[],r=0,s=t.length;s>r;r++)i=t[r],i[0]===n?a.push(TicketBase.Events.setLocation(i)):a.push(void 0);return a})},e=function(e){return"<li>"+e.text+" - <span>"+e.address.replace(/\bundefined\b\s*(?=[^"]*(?:"[^"]*"[^"]*)*$)/g,"")+"</span></li>"},TicketBase.Events.setLocation=function(e){return $("input[id*='location_attributes_foursquare_id']").val(e[0]),$("input[id*='location_attributes_title']").val(e[1]),$("input[id*='location_attributes_address']").val(e[2].address),$("input[id*='location_attributes_city']").val(e[2].city),$("input[id*='location_attributes_state']").val(e[2].state),$("input[id*='location_attributes_country']").val(e[2].country),$("input[id*='location_attributes_lat']").val(e[2].lat),$("input[id*='location_attributes_lng']").val(e[2].lng),$("input[id*='location_attributes_zip_code']").val(e[2].postalCode),"x"!==$("input[id*='location_attributes_foursquare_id']").val()?($(".map").show(),TicketBase.Maps.renderStaticMap(e[2].lat,e[2].lng)):void 0},TicketBase.Events.displayLocation=function(){return""!==$("#event_venue_id").val()?(TicketBase.Maps.renderDraggableMap($("input[id*='location_attributes_lat']").val(),$("input[id*='location_attributes_lng']").val()),$(".location").show(),$(".map").show()):void 0},TicketBase.Events.selectOverrides=function(){return $(".control select:not([data-selecttrap-on])").each(function(){return $(this).attr("data-selecttrap-on",!0).selecttrap()})},TicketBase.Events.autoexpandOverrides=function(){return $("textarea[role~='autoexpand']:not([rows='1']):not([data-autoexpand-on])").attr("data-autoexpand-on",!0).autoexpand({extraLines:1,speed:100}).trigger("input"),$("textarea[role~='autoexpand'][rows='1']:not([data-autoexpand-on])").attr("data-autoexpand-on",!0).autoexpand().trigger("input")},TicketBase.Events.ensureTicketsArePresent=function(){var e;return e=!1,$("button[value='order']").click(function(t){return $(".quantity-box input").each(function(){return 0!==+$(this).val()?e=!0:void 0}),e?void 0:(t.preventDefault(),alert("You have to order at least one ticket."))})},TicketBase.Events.ensureLocation=function(){return $("button[type='submit']").click(function(){return $(".clear-location-toggle").removeClass("hide")})},TicketBase.Events.showFaqs=function(){return $("[id^=helpdesk_article_body_]").hide(),$("#helpdesk_article_title").change(function(){return $("[id^=helpdesk_article_body_]").hide(),$(this).val()?$("#helpdesk_article_body_"+$(this).val()).show():void 0})},TicketBase.Events.toggleOrganization=function(){var e;return e=$("#event_organization_id :selected").text(),e&&"None"!==e&&$(".org-info").hide(),$("#event_organization_id").on("change",function(){return $("#event_host, #event_host_description").val(""),$(".org-info").slideToggle()})},TicketBase.Events.initializeQuantityBox=function(){return $('[role~="quantity_box"]').each(function(){var e,t,n,i,r,s,a,o,l,u,c,h;return n=$(this),t=$("input",this),e=$(".field",this),i="webkitAnimationEnd oanimationend msAnimationEnd animationend",o=$(this).data("max"),l=null!=(h=$(this).data("min"))?h:1,s=function(){var e,n;return e=+(null!=(n=t.val())?n:0),isNaN(e)&&(e=0),e},a=function(e,n){var i,r;return r=s()+e,0>r?r=l:l>1&&l>r&&r>0?r=e>0?l:0:r>o&&(c("Maximum","up err"),r=o),i=t.val(),t.val(r),n?void 0:t.trigger("change")},r=function(t){return e.removeClass("bounce up down err"),setTimeout(function(){return e.addClass("bounce "+t)},0)},c=function(e,t){var r;return r=$("<span class='tip "+t+"'>"+e+"</span>").appendTo(n).one(i,function(){return $(this).remove()}),setTimeout(function(){return r.trigger("animationend")},500)},u=function(){return n.toggleClass("buying",0!==s()).toggleClass("default",0===s())},t.on("change",function(){return a(0,!0)}),$(".decrement",n).on("click",function(e){return e.preventDefault(),a(-1),u(),r("down")}),$(".buy.btn",n).on("click",function(e){return e.preventDefault(),a(1),u(),r("up")}),$(".increment",n).on("click",function(e){return e.preventDefault(),a(1),u(),r("up")}),$(function(){return u()})})},TicketBase.Events.initializeOrderButton=function(){var e,t,n,i,r,s;return n=$('[role~="quantity_box"] input'),e=$('[role~="amount_box"] input'),t=$(".checkout .btn"),s=function(){var e;return e=0,n.each(function(t,n){return e+=+($(n).val()||0)}),e},r=function(){var t;return t=0,e.each(function(e,n){return t+=+($(n).val()||0)}),t},i=function(){var n;return n=0===s(),e.length>0&&r()>0&&(n=!1),t.prop("disabled",n).toggleClass("disabled",n).toggleClass("enabled",!n)},$(function(){return i()}),n.on("input change",i),e.on("input change",i)},TicketBase.Events.initializePrivacyOptions=function(){return $("[name~='event[private_event]']").on("change",function(){return $(".password").slideToggle()})},$("#remove-event-logo").on("click",function(e){return e.preventDefault(),$("input[name='event[logo]']").val(""),$(".image-upload-preview").html("")})})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Maps=window.TicketBase.Maps||{},$(function(){var e;return e=[{featureType:"all",stylers:[{saturation:0},{hue:"#e7ecf0"}]},{featureType:"road",stylers:[{saturation:-70}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{visibility:"simplified"},{saturation:-60}]}],TicketBase.Maps.renderStaticMap=function(t,n){var i,r,s,a;try{return s={zoom:14,scrollwheel:!1,mapTypeControl:!1,streetViewControl:!1,disableDoubleClickZoom:!0,center:new google.maps.LatLng(t,n),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:e},r=new google.maps.Map($("#map-canvas")[0],s),a=new google.maps.Marker({position:new google.maps.LatLng(t,n),map:r})}catch(o){return i=o,console.error(i)}},TicketBase.Maps.renderDraggableMap=function(t,n){var i,r,s,a,o;try{return o=[],s={zoom:14,scrollwheel:!0,mapTypeControl:!0,streetViewControl:!0,disableDoubleClickZoom:!1,center:new google.maps.LatLng(t,n),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:e},r=new google.maps.Map($("#map-canvas")[0],s),a=new google.maps.Marker({position:new google.maps.LatLng(t,n),map:r}),o.push(a),google.maps.event.addListener(r,"dragend",function(){var e,t,n;for(e=r.getCenter(),t=0,n=o.length;n>t;t++)a=o[t],a.setMap(null);return a=new google.maps.Marker({position:new google.maps.LatLng(e.lat(),e.lng()),map:r}),o.push(a),$("input[id*='location_attributes_lat']").val(e.lat()),$("input[id*='location_attributes_lng']").val(e.lng())})}catch(l){return i=l,console.error(i)}},TicketBase.Maps.reset=function(){return $("#map-canvas").html("")}})}.call(this);var QRCode;!function(){function e(e){this.mode=u.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;n>t;t++){var i=[],r=this.data.charCodeAt(t);r>65536?(i[0]=240|(1835008&r)>>>18,i[1]=128|(258048&r)>>>12,i[2]=128|(4032&r)>>>6,i[3]=128|63&r):r>2048?(i[0]=224|(61440&r)>>>12,i[1]=128|(4032&r)>>>6,i[2]=128|63&r):r>128?(i[0]=192|(1984&r)>>>6,i[1]=128|63&r):i[0]=r,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function n(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}function i(e,t){this.totalCount=e,this.dataCount=t}function r(){this.buffer=[],this.length=0}function s(){return"undefined"!=typeof CanvasRenderingContext2D}function a(){var e=!1,t=navigator.userAgent;return/android/i.test(t)&&(e=!0,aMat=t.toString().match(/android ([0-9]\.[0-9])/i),aMat&&aMat[1]&&(e=parseFloat(aMat[1]))),e}function o(e,t){for(var n=1,i=l(e),r=0,s=m.length;s>=r;r++){var a=0;switch(t){case c.L:a=m[r][0];break;case c.M:a=m[r][1];break;case c.Q:a=m[r][2];break;case c.H:a=m[r][3]}if(a>=i)break;n++}if(n>m.length)throw new Error("Too long data");return n}function l(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}e.prototype={getLength:function(){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;n>t;t++)e.put(this.parsedData[t],8)}},t.prototype={addData:function(t){var n=new e(t);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(0>e||this.moduleCount<=e||0>t||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(e,t){for(var n=-1;7>=n;n++)if(!(-1>=e+n||this.moduleCount<=e+n))for(var i=-1;7>=i;i++)-1>=t+i||this.moduleCount<=t+i||(this.modules[e+n][t+i]=n>=0&&6>=n&&(0==i||6==i)||i>=0&&6>=i&&(0==n||6==n)||n>=2&&4>=n&&i>=2&&4>=i?!0:!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;8>n;n++){this.makeImpl(!0,n);var i=d.getLostPoint(this);(0==n||e>i)&&(e=i,t=n)}return t},createMovieClip:function(e,t,n){var i=e.createEmptyMovieClip(t,n),r=1;this.make();for(var s=0;s<this.modules.length;s++)for(var a=s*r,o=0;o<this.modules[s].length;o++){var l=o*r,u=this.modules[s][o];u&&(i.beginFill(0,100),i.moveTo(l,a),i.lineTo(l+r,a),i.lineTo(l+r,a+r),i.lineTo(l,a+r),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=d.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],r=e[n];
  5. if(null==this.modules[i][r])for(var s=-2;2>=s;s++)for(var a=-2;2>=a;a++)this.modules[i+s][r+a]=-2==s||2==s||-2==a||2==a||0==s&&0==a?!0:!1}},setupTypeNumber:function(e){for(var t=d.getBCHTypeNumber(this.typeNumber),n=0;18>n;n++){var i=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;18>n;n++){var i=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,i=d.getBCHTypeInfo(n),r=0;15>r;r++){var s=!e&&1==(i>>r&1);6>r?this.modules[r][8]=s:8>r?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s}for(var r=0;15>r;r++){var s=!e&&1==(i>>r&1);8>r?this.modules[8][this.moduleCount-r-1]=s:9>r?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,r=7,s=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var o=0;2>o;o++)if(null==this.modules[i][a-o]){var l=!1;s<e.length&&(l=1==(e[s]>>>r&1));var u=d.getMask(t,i,a-o);u&&(l=!l),this.modules[i][a-o]=l,r--,-1==r&&(s++,r=7)}if(i+=n,0>i||this.moduleCount<=i){i-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,n,s){for(var a=i.getRSBlocks(e,n),o=new r,l=0;l<s.length;l++){var u=s[l];o.put(u.mode,4),o.put(u.getLength(),d.getLengthInBits(u.mode,e)),u.write(o)}for(var c=0,l=0;l<a.length;l++)c+=a[l].dataCount;if(o.getLengthInBits()>8*c)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;;){if(o.getLengthInBits()>=8*c)break;if(o.put(t.PAD0,8),o.getLengthInBits()>=8*c)break;o.put(t.PAD1,8)}return t.createBytes(o,a)},t.createBytes=function(e,t){for(var i=0,r=0,s=0,a=new Array(t.length),o=new Array(t.length),l=0;l<t.length;l++){var u=t[l].dataCount,c=t[l].totalCount-u;r=Math.max(r,u),s=Math.max(s,c),a[l]=new Array(u);for(var h=0;h<a[l].length;h++)a[l][h]=255&e.buffer[h+i];i+=u;var f=d.getErrorCorrectPolynomial(c),p=new n(a[l],f.getLength()-1),m=p.mod(f);o[l]=new Array(f.getLength()-1);for(var h=0;h<o[l].length;h++){var g=h+m.getLength()-o[l].length;o[l][h]=g>=0?m.get(g):0}}for(var v=0,h=0;h<t.length;h++)v+=t[h].totalCount;for(var y=new Array(v),b=0,h=0;r>h;h++)for(var l=0;l<t.length;l++)h<a[l].length&&(y[b++]=a[l][h]);for(var h=0;s>h;h++)for(var l=0;l<t.length;l++)h<o[l].length&&(y[b++]=o[l][h]);return y};for(var u={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},c={L:1,M:0,Q:3,H:2},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;d.getBCHDigit(t)-d.getBCHDigit(d.G15)>=0;)t^=d.G15<<d.getBCHDigit(t)-d.getBCHDigit(d.G15);return(e<<10|t)^d.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;d.getBCHDigit(t)-d.getBCHDigit(d.G18)>=0;)t^=d.G18<<d.getBCHDigit(t)-d.getBCHDigit(d.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case h.PATTERN000:return(t+n)%2==0;case h.PATTERN001:return t%2==0;case h.PATTERN010:return n%3==0;case h.PATTERN011:return(t+n)%3==0;case h.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case h.PATTERN101:return t*n%2+t*n%3==0;case h.PATTERN110:return(t*n%2+t*n%3)%2==0;case h.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),i=0;e>i;i++)t=t.multiply(new n([1,f.gexp(i)],0));return t},getLengthInBits:function(e,t){if(t>=1&&10>t)switch(e){case u.MODE_NUMBER:return 10;case u.MODE_ALPHA_NUM:return 9;case u.MODE_8BIT_BYTE:return 8;case u.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(27>t)switch(e){case u.MODE_NUMBER:return 12;case u.MODE_ALPHA_NUM:return 11;case u.MODE_8BIT_BYTE:return 16;case u.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(41>t))throw new Error("type:"+t);switch(e){case u.MODE_NUMBER:return 14;case u.MODE_ALPHA_NUM:return 13;case u.MODE_8BIT_BYTE:return 16;case u.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,i=0;t>i;i++)for(var r=0;t>r;r++){for(var s=0,a=e.isDark(i,r),o=-1;1>=o;o++)if(!(0>i+o||i+o>=t))for(var l=-1;1>=l;l++)0>r+l||r+l>=t||(0!=o||0!=l)&&a==e.isDark(i+o,r+l)&&s++;s>5&&(n+=3+s-5)}for(var i=0;t-1>i;i++)for(var r=0;t-1>r;r++){var u=0;e.isDark(i,r)&&u++,e.isDark(i+1,r)&&u++,e.isDark(i,r+1)&&u++,e.isDark(i+1,r+1)&&u++,(0==u||4==u)&&(n+=3)}for(var i=0;t>i;i++)for(var r=0;t-6>r;r++)e.isDark(i,r)&&!e.isDark(i,r+1)&&e.isDark(i,r+2)&&e.isDark(i,r+3)&&e.isDark(i,r+4)&&!e.isDark(i,r+5)&&e.isDark(i,r+6)&&(n+=40);for(var r=0;t>r;r++)for(var i=0;t-6>i;i++)e.isDark(i,r)&&!e.isDark(i+1,r)&&e.isDark(i+2,r)&&e.isDark(i+3,r)&&e.isDark(i+4,r)&&!e.isDark(i+5,r)&&e.isDark(i+6,r)&&(n+=40);for(var c=0,r=0;t>r;r++)for(var i=0;t>i;i++)e.isDark(i,r)&&c++;var h=Math.abs(100*c/t/t-50)/5;return n+=10*h}},f={glog:function(e){if(1>e)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;e>=256;)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;8>p;p++)f.EXP_TABLE[p]=1<<p;for(var p=8;256>p;p++)f.EXP_TABLE[p]=f.EXP_TABLE[p-4]^f.EXP_TABLE[p-5]^f.EXP_TABLE[p-6]^f.EXP_TABLE[p-8];for(var p=0;255>p;p++)f.LOG_TABLE[f.EXP_TABLE[p]]=p;n.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<e.getLength();r++)t[i+r]^=f.gexp(f.glog(this.get(i))+f.glog(e.get(r)));return new n(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=f.glog(this.get(0))-f.glog(e.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<e.getLength();r++)i[r]^=f.gexp(f.glog(e.get(r))+t);return new n(i,0).mod(e)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var n=i.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,s=[],a=0;r>a;a++)for(var o=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;o>c;c++)s.push(new i(l,u));return s},i.getRsBlockTable=function(e,t){switch(t){case c.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case c.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case c.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case c.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return void 0}},r.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;t>n;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var m=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],g=function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){function t(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var i in t)t.hasOwnProperty(i)&&n.setAttribute(i,t[i]);return n}{var n=this._htOption,i=this._el,r=e.getModuleCount();Math.floor(n.width/r),Math.floor(n.height/r)}this.clear();var s=t("svg",{viewBox:"0 0 "+String(r)+" "+String(r),width:"100%",height:"100%",fill:n.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(s),s.appendChild(t("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;r>a;a++)for(var o=0;r>o;o++)if(e.isDark(a,o)){var l=t("use",{x:String(a),y:String(o)});l.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),s.appendChild(l)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),v="svg"===document.documentElement.tagName.toLowerCase(),y=v?g:s()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function t(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI){var i=document.createElement("img"),r=function(){n._bSupportDataURI=!1,n._fFail&&_fFail.call(n)},s=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)};return i.onabort=r,i.onerror=r,i.onload=s,i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",void 0}n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)}if(this._android&&this._android<=2.1){var n=1/window.devicePixelRatio,i=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,t,r,s,a,o,l,u){if("nodeName"in e&&/img/i.test(e.nodeName))for(var c=arguments.length-1;c>=1;c--)arguments[c]=arguments[c]*n;else"undefined"==typeof u&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);i.apply(this,arguments)}}var r=function(e,t){this._bIsPainted=!1,this._android=a(),this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return r.prototype.draw=function(e){var t=this._elImage,n=this._oContext,i=this._htOption,r=e.getModuleCount(),s=i.width/r,a=i.height/r,o=Math.round(s),l=Math.round(a);t.style.display="none",this.clear();for(var u=0;r>u;u++)for(var c=0;r>c;c++){var h=e.isDark(u,c),d=c*s,f=u*a;n.strokeStyle=h?i.colorDark:i.colorLight,n.lineWidth=1,n.fillStyle=h?i.colorDark:i.colorLight,n.fillRect(d,f,s,a),n.strokeRect(Math.floor(d)+.5,Math.floor(f)+.5,o,l),n.strokeRect(Math.ceil(d)-.5,Math.ceil(f)-.5,o,l)}this._bIsPainted=!0},r.prototype.makeImage=function(){this._bIsPainted&&t.call(this,e)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.round=function(e){return e?Math.floor(1e3*e)/1e3:e},r}():function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,i=e.getModuleCount(),r=Math.floor(t.width/i),s=Math.floor(t.height/i),a=['<table style="border:0;border-collapse:collapse;">'],o=0;i>o;o++){a.push("<tr>");for(var l=0;i>l;l++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+s+"px;background-color:"+(e.isDark(o,l)?t.colorDark:t.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),n.innerHTML=a.join("");var u=n.childNodes[0],c=(t.width-u.offsetWidth)/2,h=(t.height-u.offsetHeight)/2;c>0&&h>0&&(u.style.margin=h+"px "+c+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();QRCode=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.H},"string"==typeof t&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];"string"==typeof e&&(e=document.getElementById(e)),this._android=a(),this._el=e,this._oQRCode=null,this._oDrawing=new y(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},QRCode.prototype.makeCode=function(e){this._oQRCode=new t(o(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},QRCode.prototype.clear=function(){this._oDrawing.clear()},QRCode.CorrectLevel=c}(),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.ScrollStick=window.TicketBase.ScrollStick||{},$(function(){return TicketBase.ScrollStick.initialize=function(e,t){return setTimeout(function(){return function(){var n;try{return $(e).scrollstick(t)}catch(i){n=i}}}(this),2)}})}.call(this),function(e){"undefined"==typeof e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var n=e([0]),i=-1,r=this.length;++i<r&&(n.context=n[0]=this[i])&&t.call(n[0],i,n)!==!1;);return this}})}(jQuery),function(e,t){"use strict";function n(e){var t,n,i,r;if(!e||e.length<1)return e;for(t="",n=0,i=e.length;i>n;n++)r=e.charAt(n),t+=B[r]||r;return t}function i(e,t){for(var n=0,i=t.length;i>n;n+=1)if(s(e,t[n]))return n;return-1}function r(){var t=e(I);t.appendTo("body");var n={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),n}function s(e,n){return e===n?!0:e===t||n===t?!1:null===e||null===n?!1:e.constructor===String?e+""==n+"":n.constructor===String?n+""==e+"":!1}function a(t,n){var i,r,s;if(null===t||t.length<1)return[];for(i=t.split(n),r=0,s=i.length;s>r;r+=1)i[r]=e.trim(i[r]);return i}function o(e){return e.outerWidth(!1)-e.width()}function l(n){var i="keyup-change-value";n.on("keydown",function(){e.data(n,i)===t&&e.data(n,i,n.val())}),n.on("keyup",function(){var r=e.data(n,i);r!==t&&n.val()!==r&&(e.removeData(n,i),n.trigger("keyup-change"))})}function u(n){n.on("mousemove",function(n){var i=j;(i===t||i.x!==n.pageX||i.y!==n.pageY)&&e(n.target).trigger("mousemove-filtered",n)})}function c(e,n,i){i=i||t;var r;return function(){var t=arguments;window.clearTimeout(r),r=window.setTimeout(function(){n.apply(i,t)},e)}}function h(e){var t,n=!1;return function(){return n===!1&&(t=e(),n=!0),t}}function d(e,t){var n=c(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){i(e.target,t.get())>=0&&n(e)})}function f(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,n=e[0],i=e.val().length;e.focus(),e.is(":visible")&&n===document.activeElement&&(n.setSelectionRange?n.setSelectionRange(i,i):n.createTextRange&&(t=n.createTextRange(),t.collapse(!1),t.select()))},0)}function p(t){t=e(t)[0];var n=0,i=0;if("selectionStart"in t)n=t.selectionStart,i=t.selectionEnd-n;else if("selection"in document){t.focus();var r=document.selection.createRange();i=document.selection.createRange().text.length,r.moveStart("character",-t.value.length),n=r.text.length-i}return{offset:n,length:i}}function m(e){e.preventDefault(),e.stopPropagation()}function g(e){e.preventDefault(),e.stopImmediatePropagation()}function v(t){if(!O){var n=t[0].currentStyle||window.getComputedStyle(t[0],null);O=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"}),O.attr("class","select2-sizer"),e("body").append(O)}return O.text(t.val()),O.width()}function y(t,n,i){var r,s,a=[];r=t.attr("class"),r&&(r=""+r,e(r.split(" ")).each2(function(){0===this.indexOf("select2-")&&a.push(this)})),r=n.attr("class"),r&&(r=""+r,e(r.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(s=i(this),s&&a.push(s))})),t.attr("class",a.join(" "))}function b(e,t,i,r){var s=n(e.toUpperCase()).indexOf(n(t.toUpperCase())),a=t.length;return 0>s?(i.push(r(e)),void 0):(i.push(r(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(r(e.substring(s,s+a))),i.push("</span>"),i.push(r(e.substring(s+a,e.length))),void 0)}function w(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function k(n){var i,r=null,s=n.quietMillis||100,a=n.url,o=this;return function(l){window.clearTimeout(i),i=window.setTimeout(function(){var i=n.data,s=a,u=n.transport||e.fn.select2.ajaxDefaults.transport,c={type:n.type||"GET",cache:n.cache||!1,jsonpCallback:n.jsonpCallback||t,dataType:n.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,c);i=i?i.call(o,l.term,l.page,l.context):null,s="function"==typeof s?s.call(o,l.term,l.page,l.context):s,r&&r.abort(),n.params&&(e.isFunction(n.params)?e.extend(h,n.params.call(o)):e.extend(h,n.params)),e.extend(h,{url:s,dataType:n.dataType,data:i,success:function(e){var t=n.results(e,l.page);l.callback(t)}}),r=u.call(o,h)},s)}}function C(t){var n,i,r=t,s=function(e){return""+e.text};e.isArray(r)&&(i=r,r={results:i}),e.isFunction(r)===!1&&(i=r,r=function(){return i});var a=r();return a.text&&(s=a.text,e.isFunction(s)||(n=a.text,s=function(e){return e[n]})),function(t){var n,i=t.term,a={results:[]};return""===i?(t.callback(r()),void 0):(n=function(r,a){var o,l;if(r=r[0],r.children){o={};for(l in r)r.hasOwnProperty(l)&&(o[l]=r[l]);o.children=[],e(r.children).each2(function(e,t){n(t,o.children)}),(o.children.length||t.matcher(i,s(o),r))&&a.push(o)}else t.matcher(i,s(r),r)&&a.push(r)},e(r().results).each2(function(e,t){n(t,a.results)}),t.callback(a),void 0)}}function _(n){var i=e.isFunction(n);return function(r){var s=r.term,a={results:[]};e(i?n():n).each(function(){var e=this.text!==t,n=e?this.text:this;(""===s||r.matcher(s,n))&&a.results.push(e?this:{id:this,text:this})}),r.callback(a)}}function T(t,n){if(e.isFunction(t))return!0;if(!t)return!1;throw new Error(n+" must be a function or a falsy value")}function x(t){return e.isFunction(t)?t():t}function S(t){var n=0;return e.each(t,function(e,t){t.children?n+=S(t.children):n++}),n}function D(e,n,i,r){var a,o,l,u,c,h=e,d=!1;if(!r.createSearchChoice||!r.tokenSeparators||r.tokenSeparators.length<1)return t;for(;;){for(o=-1,l=0,u=r.tokenSeparators.length;u>l&&(c=r.tokenSeparators[l],o=e.indexOf(c),!(o>=0));l++);if(0>o)break;if(a=e.substring(0,o),e=e.substring(o+c.length),a.length>0&&(a=r.createSearchChoice.call(this,a,n),a!==t&&null!==a&&r.id(a)!==t&&null!==r.id(a))){for(d=!1,l=0,u=n.length;u>l;l++)if(s(r.id(a),r.id(n[l]))){d=!0;break}d||i(a)}}return h!==e?e:void 0}function E(t,n){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,n),i}if(window.Select2===t){var M,A,N,$,F,O,P,L,j={x:0,y:0},M={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case M.LEFT:case M.RIGHT:case M.UP:case M.DOWN:return!0}return!1},isControl:function(e){var t=e.which;switch(t){case M.SHIFT:case M.CTRL:case M.ALT:return!0}return e.metaKey?!0:!1},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e}},I="<div class='select2-measure-scrollbar'></div>",B={"¶":"A",!:"A",À:"A",Á:"A",Â:"A",¦:"A",¤:"A",ª:"A",¨:"A",Ã:"A",�:"A",:"A",°:"A",®:"A",´:"A",²:"A",&:"A",à:"A",Ä:"A",Þ:"A",¢:"A",Å:"A",ú:"A",Í:"A",�:"A",:"A", :"A",¬:"A",¶:"A",�:"A",:"A",::"A",o:"A",2:"AA",Æ:"AE",ü:"AE",â:"AE",4:"AO",6:"AU",8:"AV",::"AV",<:"AY","·":"B",":"B",:"B",:"B",:"B",C:"B",‚:"B",:"B","¸":"C",#:"C",:"C",:"C",
  6. :"C", :"C",Ç:"C",:"C",‡:"C",;:"C",>:"C","¹":"D",$:"D",
  7. :"D",:"D", :"D",:"D",:"D",:"D",:"D",‹:"D",Š:"D",‰:"D",y:"D",ñ:"DZ",Ä:"DZ",ò:"Dz",Å:"Dz","º":"E",%:"E",È:"E",É:"E",Ê:"E",À:"E",¾:"E",Ä:"E",Â:"E",¼:"E",:"E",:"E",:"E",:"E",:"E",Ë:"E",º:"E",:"E",:"E",:"E",¸:"E",Æ:"E",(:"E",:"E",:"E",:"E",:"E",:"E",Ž:"E","»":"F",&:"F",:"F",‘:"F",{:"F","¼":"G",':"G",ô:"G",:"G", :"G",:"G", :"G",æ:"G",":"G",ä:"G",“:"G"," ":"G",}:"G",~:"G","½":"H",(:"H",$:"H",":"H",&:"H",:"H",$:"H",(:"H",*:"H",&:"H",g:"H",u:"H","":"H","¾":"I",):"I",Ì:"I",Í:"I",Î:"I",(:"I",*:"I",,:"I",0:"I",Ï:"I",.:"I",È:"I",Ï:"I",:"I",
  8. :"I",Ê:"I",.:"I",,:"I",—:"I","¿":"J",*:"J",4:"J",H:"J","À":"K",+:"K",0:"K",è:"K",2:"K",6:"K",4:"K",˜:"K",i:"K",@:"K",B:"K",D:"K","¢":"K","Á":"L",,:"L",?:"L",9:"L",=:"L",6:"L",8:"L",;:"L",<:"L",::"L",A:"L",=:"L",b:"L",`:"L",H:"L",F:"L",€:"L",Ç:"LJ",È:"Lj","Â":"M",-:"M",>:"M",@:"M",B:"M",n:"M",œ:"M","Ã":"N",.:"N",ø:"N",C:"N",Ñ:"N",D:"N",G:"N",F:"N",E:"N",J:"N",H:"N", :"N",:"N","":"N","¤":"N",Ê:"NJ",Ë:"Nj","Ä":"O",/:"O",Ò:"O",Ó:"O",Ô:"O",Ò:"O",Ð:"O",Ö:"O",Ô:"O",Õ:"O",L:"O",,:"O",N:"O",L:"O",P:"O",R:"O",N:"O",.:"O",0:"O",Ö:"O",*:"O",Î:"O",P:"O",Ñ:"O", :"O",:"O", :"O",Ü:"O",Ú:"O",à:"O",Þ:"O",â:"O",Ì:"O",Ø:"O",ê:"O",ì:"O",Ø:"O",þ:"O",†:"O",Ÿ:"O",J:"O",L:"O",¢:"OI",N:"OO",":"OU","Å":"P",0:"P",T:"P",V:"P",¤:"P",c:"P",P:"P",R:"P",T:"P","Æ":"Q",1:"Q",V:"Q",X:"Q",J:"Q","Ç":"R",2:"R",T:"R",X:"R",X:"R",:"R",:"R",Z:"R",\:"R",V:"R",^:"R",L:"R",d:"R",Z:"R","¦":"R",‚:"R","È":"S",3:"S",ž:"S",Z:"S",d:"S",\:"S",`:"S",`:"S",f:"S",b:"S",h:"S",:"S",^:"S","~":"S","¨":"S",„:"S","É":"T",4:"T",j:"T",d:"T",l:"T",:"T",b:"T",p:"T",n:"T",f:"T",¬:"T",®:"T",>:"T",†:"T",(:"TZ","Ê":"U",5:"U",Ù:"U",Ú:"U",Û:"U",h:"U",x:"U",j:"U",z:"U",l:"U",Ü:"U",Û:"U",×:"U",Õ:"U",Ù:"U",æ:"U",n:"U",p:"U",Ó:"U",:"U",:"U",¯:"U",ê:"U",è:"U",î:"U",ì:"U",ð:"U",ä:"U",r:"U",r:"U",v:"U",t:"U",D:"U","Ë":"V",6:"V",|:"V",~:"V",²:"V",^:"V",E:"V",`:"VY","Ì":"W",7:"W",€:"W",‚:"W",t:"W",†:"W",„:"W",ˆ:"W",r:"W","Í":"X",8:"X",Š:"X",Œ:"X","Î":"Y",9:"Y",ò:"Y",Ý:"Y",v:"Y",ø:"Y",2:"Y",Ž:"Y",x:"Y",ö:"Y",ô:"Y",³:"Y",N:"Y",þ:"Y","Ï":"Z",::"Z",y:"Z",:"Z",{:"Z",}:"Z",’:"Z",”:"Z",µ:"Z",$:"Z","":"Z",k:"Z",b:"Z","Ð":"a",A:"a",š:"a",à:"a",á:"a",â:"a",§:"a",¥:"a",«:"a",©:"a",ã:"a",:"a",:"a",±:"a",¯:"a",µ:"a",³:"a",':"a",á:"a",ä:"a",ß:"a",£:"a",å:"a",û:"a",Î:"a",:"a",:"a",¡:"a",­:"a",·:"a",:"a",:"a",e:"a",P:"a",3:"aa",æ:"ae",ý:"ae",ã:"ae",5:"ao",7:"au",9:"av",;:"av",=:"ay","Ñ":"b",B:"b",:"b",:"b",:"b",€:"b",ƒ:"b",S:"b","Ò":"c",C:"c",:"c", :"c", :"c",
  9. :"c",ç:"c", :"c",ˆ:"c",<:"c",?:"c",„:"c","Ó":"d",D:"d", :"d",:"d",
  10. :"d",:"d",:"d",:"d",:"d",Œ:"d",V:"d",W:"d",z:"d",ó:"dz",Æ:"dz","Ô":"e",E:"e",è:"e",é:"e",ê:"e",Á:"e",¿:"e",Å:"e",Ã:"e",½:"e",:"e",:"e",:"e",:"e",:"e",ë:"e",»:"e",:"e",:"e",:"e",¹:"e",Ç:"e",):"e",:"e",:"e",:"e",:"e",G:"e",[:"e",Ý:"e","Õ":"f",F:"f",:"f",’:"f",|:"f","Ö":"g",G:"g",õ:"g",:"g",!:"g",:"g",!:"g",ç:"g",#:"g",å:"g",`:"g","¡":"g",y:"g",:"g","×":"h",H:"h",%:"h",#:"h",':"h",:"h",%:"h",):"h",+:"h",–:"h",':"h",h:"h",v:"h",e:"h",•:"hv","Ø":"i",I:"i",ì:"i",í:"i",î:"i",):"i",+:"i",-:"i",ï:"i",/:"i",É:"i",Ð:"i", :"i", :"i",Ë:"i",/:"i",-:"i",h:"i",1:"i","Ù":"j",J:"j",5:"j",ð:"j",I:"j","Ú":"k",K:"k",1:"k",é:"k",3:"k",7:"k",5:"k",™:"k",j:"k",A:"k",C:"k",E:"k","£":"k","Û":"l",L:"l",@:"l",::"l",>:"l",7:"l",9:"l",<:"l",=:"l",;:"l",:"l",B:"l",š:"l",k:"l",a:"l",I:"l",:"l",G:"l",É:"lj","Ü":"m",M:"m",?:"m",A:"m",C:"m",q:"m",o:"m","Ý":"n",N:"n",ù:"n",D:"n",ñ:"n",E:"n",H:"n",G:"n",F:"n",K:"n",I:"n",ž:"n",r:"n",I:"n","‘":"n","¥":"n",Ì:"nj","Þ":"o",O:"o",ò:"o",ó:"o",ô:"o",Ó:"o",Ñ:"o",×:"o",Õ:"o",õ:"o",M:"o",-:"o",O:"o",M:"o",Q:"o",S:"o",O:"o",/:"o",1:"o",ö:"o",+:"o",Ï:"o",Q:"o",Ò:"o",
  11. :"o",:"o",¡:"o",Ý:"o",Û:"o",á:"o",ß:"o",ã:"o",Í:"o",Ù:"o",ë:"o",í:"o",ø:"o",ÿ:"o",T:"o",K:"o",M:"o",u:"o",£:"oi",#:"ou",O:"oo","ß":"p",P:"p",U:"p",W:"p",¥:"p",}:"p",Q:"p",S:"p",U:"p","à":"q",Q:"q",K:"q",W:"q",Y:"q","á":"r",R:"r",U:"r",Y:"r",Y:"r",:"r",:"r",[:"r",]:"r",W:"r",_:"r",M:"r",}:"r",[:"r","§":"r",ƒ:"r","â":"s",S:"s",ß:"s",[:"s",e:"s",]:"s",a:"s",a:"s",g:"s",c:"s",i:"s",:"s",_:"s",?:"s","©":"s",…:"s",›:"s","ã":"t",T:"t",k:"t",—:"t",e:"t",m:"t",:"t",c:"t",q:"t",o:"t",g:"t",­:"t",ˆ:"t",f:"t",‡:"t",):"tz","ä":"u",U:"u",ù:"u",ú:"u",û:"u",i:"u",y:"u",k:"u",{:"u",m:"u",ü:"u",Ü:"u",Ø:"u",Ö:"u",Ú:"u",ç:"u",o:"u",q:"u",Ô:"u",:"u",:"u",°:"u",ë:"u",é:"u",ï:"u",í:"u",ñ:"u",å:"u",s:"u",s:"u",w:"u",u:"u",‰:"u","å":"v",V:"v",}:"v",:"v",‹:"v",_:"v",Œ:"v",a:"vy","æ":"w",W:"w",:"w",ƒ:"w",u:"w",‡:"w",…:"w",˜:"w",‰:"w",s:"w","ç":"x",X:"x",‹:"x",:"x","è":"y",Y:"y",ó:"y",ý:"y",w:"y",ù:"y",3:"y",:"y",ÿ:"y",÷:"y",™:"y",õ:"y",´:"y",O:"y",ÿ:"y","é":"z",Z:"z",z:"z",‘:"z",|:"z",~:"z",“:"z",•:"z",¶:"z",%:"z",@:"z",l:"z",c:"z"};P=e(document),F=function(){var e=1;return function(){return e++}}(),P.on("mousemove",function(e){j.x=e.pageX,j.y=e.pageY}),A=E(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(n){var i,s,a=".select2-results";this.opts=n=this.prepareOpts(n),this.id=n.id,n.element.data("select2")!==t&&null!==n.element.data("select2")&&n.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(n.element.attr("id")||"autogen"+F()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=h(function(){return n.element.closest("body")}),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",n.element.attr("style")),this.container.css(x(n.containerCss)),this.container.addClass(x(n.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",m),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(x(n.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",m),this.results=i=this.container.find(a),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",m),u(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",a,this.bind(this.highlightUnderEvent)),d(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&i.mousewheel(function(e,t,n,r){var s=i.scrollTop();r>0&&0>=s-r?(i.scrollTop(0),m(e)):0>r&&i.get(0).scrollHeight-i.scrollTop()+r<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),m(e))}),l(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==n.maximumInputLength&&this.search.attr("maxlength",n.maximumInputLength);var o=n.element.prop("disabled");o===t&&(o=!1),this.enable(!o);var c=n.element.prop("readonly");c===t&&(c=!1),this.readonly(c),L=L||r(),this.autofocus=n.element.prop("autofocus"),n.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=t},destroy:function(){var e=this.opts.element,n=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),n!==t&&(n.container.remove(),n.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:s(e.attr("locked"),"locked")||s(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(n){var i,r,o,l,u=this;if(i=n.element,"select"===i.get(0).tagName.toLowerCase()&&(this.select=r=n.element),r&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in n)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),n=e.extend({},{populateResults:function(i,r,s){var a,o=this.opts.id;(a=function(i,r,l){var c,h,d,f,p,m,g,v,y,b;for(i=n.sortResults(i,r,s),c=0,h=i.length;h>c;c+=1)d=i[c],p=d.disabled===!0,f=!p&&o(d)!==t,m=d.children&&d.children.length>0,g=e("<li></li>"),g.addClass("select2-results-dept-"+l),g.addClass("select2-result"),g.addClass(f?"select2-result-selectable":"select2-result-unselectable"),p&&g.addClass("select2-disabled"),m&&g.addClass("select2-result-with-children"),g.addClass(u.opts.formatResultCssClass(d)),v=e(document.createElement("div")),v.addClass("select2-result-label"),b=n.formatResult(d,v,s,u.opts.escapeMarkup),b!==t&&v.html(b),g.append(v),m&&(y=e("<ul></ul>"),y.addClass("select2-result-sub"),a(d.children,y,l+1),g.append(y)),g.data("select2-data",d),r.append(g)
  12. })(r,i,0)}},e.fn.select2.defaults,n),"function"!=typeof n.id&&(o=n.id,n.id=function(e){return e[o]}),e.isArray(n.element.data("select2Tags"))){if("tags"in n)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+n.element.attr("id");n.tags=n.element.data("select2Tags")}if(r?(n.query=this.bind(function(e){var n,r,s,a={results:[],more:!1},o=e.term;s=function(t,n){var i;t.is("option")?e.matcher(o,t.text(),t)&&n.push(u.optionToData(t)):t.is("optgroup")&&(i=u.optionToData(t),t.children().each2(function(e,t){s(t,i.children)}),i.children.length>0&&n.push(i))},n=i.children(),this.getPlaceholder()!==t&&n.length>0&&(r=this.getPlaceholderOption(),r&&(n=n.not(r))),n.each2(function(e,t){s(t,a.results)}),e.callback(a)}),n.id=function(e){return e.id},n.formatResultCssClass=function(e){return e.css}):"query"in n||("ajax"in n?(l=n.element.data("ajax-url"),l&&l.length>0&&(n.ajax.url=l),n.query=k.call(n.element,n.ajax)):"data"in n?n.query=C(n.data):"tags"in n&&(n.query=_(n.tags),n.createSearchChoice===t&&(n.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),n.initSelection===t&&(n.initSelection=function(t,i){var r=[];e(a(t.val(),n.separator)).each(function(){var t={id:this,text:this},i=n.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){return s(this.id,t.id)?(t=this,!1):void 0}),r.push(t)}),i(r)}))),"function"!=typeof n.query)throw"query function not defined for Select2 "+n.element.attr("id");return n},monitorSource:function(){var e,n,i=this.opts.element;i.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),e=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var n=i.prop("readonly");n===t&&(n=!1),this.readonly(n),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(x(this.opts.containerCssClass)),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(x(this.opts.dropdownCssClass))}),i.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new n(this.mutationCallback),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var n=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(n),!n.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return e===t&&(e=!1),this._readonly===e?!1:(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,n,i,r,s,a=this.dropdown,o=this.container.offset(),l=this.container.outerHeight(!1),u=this.container.outerWidth(!1),c=a.outerHeight(!1),h=e(window),d=h.width(),f=h.height(),p=h.scrollLeft()+d,m=h.scrollTop()+f,g=o.top+l,v=o.left,y=m>=g+c,b=o.top-c>=this.body().scrollTop(),w=a.outerWidth(!1),k=p>=v+w,C=a.hasClass("select2-drop-above");C?(n=!0,!b&&y&&(i=!0,n=!1)):(n=!1,!y&&b&&(i=!0,n=!0)),i&&(a.hide(),o=this.container.offset(),l=this.container.outerHeight(!1),u=this.container.outerWidth(!1),c=a.outerHeight(!1),p=h.scrollLeft()+d,m=h.scrollTop()+f,g=o.top+l,v=o.left,w=a.outerWidth(!1),k=p>=v+w,a.show()),this.opts.dropdownAutoWidth?(s=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),w=a.outerWidth(!1)+(s.scrollHeight===s.clientHeight?0:L.width),w>u?u=w:w=u,k=p>=v+w):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(t=this.body().offset(),g-=t.top,v-=t.left),k||(v=o.left+u-w),r={left:v,width:u},n?(r.bottom=f-o.top,r.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(r.top=g,r.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),r=e.extend(r,x(this.opts.dropdownCss)),a.css(r)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),!0):!1},opening:function(){var t,n=this.containerId,i="scroll."+n,r="resize."+n,s="orientationchange."+n;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),t=e("#select2-drop-mask"),0==t.length&&(t=e(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(t){var n,i=e("#select2-drop");i.length>0&&(n=i.data("select2"),n.opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close({focus:!0}),t.preventDefault(),t.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){e(this).on(r+" "+i+" "+s,function(){a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,n="scroll."+t,i="resize."+t,r="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(n).off(i).off(r)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return x(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,n,i,r,s,a,o,l=this.results;if(n=this.highlight(),!(0>n)){if(0==n)return l.scrollTop(0),void 0;t=this.findHighlightableChoices().find(".select2-result-label"),i=e(t[n]),r=i.offset().top+i.outerHeight(!0),n===t.length-1&&(o=l.find("li.select2-more-results"),o.length>0&&(r=o.offset().top+o.outerHeight(!0))),s=l.offset().top+l.outerHeight(!0),r>s&&l.scrollTop(l.scrollTop()+(r-s)),a=i.offset().top-l.offset().top,0>a&&"none"!=i.css("display")&&l.scrollTop(l.scrollTop()+a)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(t){for(var n=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<n.length;){i+=t;var r=e(n[i]);if(r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var n,r,s=this.findHighlightableChoices();return 0===arguments.length?i(s.filter(".select2-highlighted")[0],s.get()):(t>=s.length&&(t=s.length-1),0>t&&(t=0),this.removeHighlight(),n=e(s[t]),n.addClass("select2-highlighted"),this.ensureHighlightVisible(),r=n.data("select2-data"),r&&this.opts.element.trigger({type:"select2-highlight",val:this.id(r),choice:r}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var n=e(t.target).closest(".select2-result-selectable");if(n.length>0&&!n.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(n))}else 0==n.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e,t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,r=this,s=this.search.val(),a=this.context;0!==n.length&&(e=n.offset().top-t.offset().top-t.height(),e<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){r.opened()&&(r.opts.populateResults.call(this,t,e.results,{term:s,page:i,context:a}),r.postprocessResults(e,!1,!1),e.more===!0?(n.detach().appendTo(t).text(r.opts.formatLoadMore(i+1)),window.setTimeout(function(){r.loadMoreIfNeeded()},10)):n.remove(),r.positionDropdown(),r.resultsPage=i,r.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})})))},tokenize:function(){},updateResults:function(n){function i(){u.removeClass("select2-active"),d.positionDropdown()}function r(e){c.html(e),i()}var a,o,l,u=this.search,c=this.results,h=this.opts,d=this,f=u.val(),p=e.data(this.container,"select2-last-term");if((n===!0||!p||!s(f,p))&&(e.data(this.container,"select2-last-term",f),n===!0||this.showSearchInput!==!1&&this.opened())){l=++this.queryCount;var m=this.getMaximumSelectionSize();if(m>=1&&(a=this.data(),e.isArray(a)&&a.length>=m&&T(h.formatSelectionTooBig,"formatSelectionTooBig")))return r("<li class='select2-selection-limit'>"+h.formatSelectionTooBig(m)+"</li>"),void 0;if(u.val().length<h.minimumInputLength)return T(h.formatInputTooShort,"formatInputTooShort")?r("<li class='select2-no-results'>"+h.formatInputTooShort(u.val(),h.minimumInputLength)+"</li>"):r(""),n&&this.showSearch&&this.showSearch(!0),void 0;if(h.maximumInputLength&&u.val().length>h.maximumInputLength)return T(h.formatInputTooLong,"formatInputTooLong")?r("<li class='select2-no-results'>"+h.formatInputTooLong(u.val(),h.maximumInputLength)+"</li>"):r(""),void 0;h.formatSearching&&0===this.findHighlightableChoices().length&&r("<li class='select2-searching'>"+h.formatSearching()+"</li>"),u.addClass("select2-active"),this.removeHighlight(),o=this.tokenize(),o!=t&&null!=o&&u.val(o),this.resultsPage=1,h.query({element:h.element,term:u.val(),page:this.resultsPage,context:null,matcher:h.matcher,callback:this.bind(function(a){var o;if(l==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(this.context=a.context===t?null:a.context,this.opts.createSearchChoice&&""!==u.val()&&(o=this.opts.createSearchChoice.call(d,u.val(),a.results),o!==t&&null!==o&&d.id(o)!==t&&null!==d.id(o)&&0===e(a.results).filter(function(){return s(d.id(this),d.id(o))}).length&&a.results.unshift(o)),0===a.results.length&&T(h.formatNoMatches,"formatNoMatches"))return r("<li class='select2-no-results'>"+h.formatNoMatches(u.val())+"</li>"),void 0;c.empty(),d.opts.populateResults.call(this,c,a.results,{term:u.val(),page:this.resultsPage,context:null}),a.more===!0&&T(h.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+d.opts.escapeMarkup(h.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(a,n),i(),this.opts.element.trigger({type:"select2-loaded",items:a})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){f(this.search)},selectHighlighted:function(e){var t=this.highlight(),n=this.results.find(".select2-highlighted"),i=n.closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.text()&&""===e.val())return e}},initContainerWidth:function(){function n(){var n,i,r,s,a,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(n=this.opts.element.attr("style"),n!==t)for(i=n.split(";"),s=0,a=i.length;a>s;s+=1)if(o=i[s].replace(/\s/g,""),r=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==r&&r.length>=1)return r[1];return"resolve"===this.opts.width?(n=this.opts.element.css("width"),n.indexOf("%")>0?n:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=n.call(this);null!==i&&this.container.css("width",i)}}),N=E(A,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return t},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var n,i,r;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.search.focus(),n=this.search.get(0),n.createTextRange?(i=n.createTextRange(),i.collapse(!1),i.select()):n.setSelectionRange&&(r=this.search.val().length,n.setSelectionRange(r,r)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(e){this.opened()&&(this.parent.close.apply(this,arguments),e=e||{focus:!0},this.focusser.removeAttr("disabled"),e.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,n=this.container,i=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+F()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){if(e.which===M.PAGE_UP||e.which===M.PAGE_DOWN)return m(e),void 0;switch(e.which){case M.UP:case M.DOWN:return this.moveHighlight(e.which===M.UP?-1:1),m(e),void 0;case M.ENTER:return this.selectHighlighted(),m(e),void 0;case M.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case M.ESC:return this.cancel(e),m(e),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==M.TAB&&!M.isControl(e)&&!M.isFunctionKey(e)&&e.which!==M.ESC){if(this.opts.openOnEnter===!1&&e.which===M.ENTER)return m(e),void 0;if(e.which==M.DOWN||e.which==M.UP||e.which==M.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),m(e),void 0}return e.which==M.DELETE||e.which==M.BACKSPACE?(this.opts.allowClear&&this.clear(),m(e),void 0):void 0}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),g(e),this.close(),this.selection.focus())})),t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),m(t)})),i.on("mousedown",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){m(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var n=this.selection.data("select2-data");if(n){var i=e.Event("select2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var r=this.getPlaceholderOption();this.opts.element.val(r?r.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()?(e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val():!1},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected});t(n.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var r=n.val(),a=null;t.query({matcher:function(e,n,i){var o=s(r,t.id(i));return o&&(a=i),o},callback:e.isFunction(i)?function(){i(a)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,n){var i=0,r=this;if(this.findHighlightableChoices().each2(function(e,t){return s(r.id(t.data("select2-data")),r.opts.element.val())?(i=e,!1):void 0}),n!==!1&&(t===!0&&i>=0?this.highlight(i):this.highlight(0)),t===!0){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(S(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var n=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||this.focusser.focus(),s(n,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var n,i,r=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),r.empty(),null!==e&&(n=this.opts.formatSelection(e,r,this.opts.escapeMarkup)),n!==t&&r.append(n),i=this.opts.formatSelectionCssClass(e,r),i!==t&&r.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,n=!1,i=null,r=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(n=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=r.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),n&&this.triggerChange({added:i,removed:s});else{if(!e&&0!==e)return this.clear(n),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){r.opts.element.val(e?r.id(e):""),r.updateSelection(e),r.setPlaceholder(),n&&r.triggerChange({added:e,removed:s})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var n,i=!1;return 0===arguments.length?(n=this.selection.data("select2-data"),n==t&&(n=null),n):(arguments.length>1&&(i=arguments[1]),e?(n=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:n})):this.clear(i),void 0)}}),$=E(A,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return t},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected}).each2(function(e,t){i.push(n.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var r=a(n.val(),t.separator),o=[];t.query({matcher:function(n,i,a){var l=e.grep(r,function(e){return s(e,t.id(a))}).length;return l&&o.push(a),l},callback:e.isFunction(i)?function(){for(var e=[],n=0;n<r.length;n++)for(var a=r[n],l=0;l<o.length;l++){var u=o[l];if(s(a,t.id(u))){e.push(u),o.splice(l,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,n=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(n);var i=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+F()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),i=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),s=p(this.search);if(n.length&&(e.which==M.LEFT||e.which==M.RIGHT||e.which==M.BACKSPACE||e.which==M.DELETE||e.which==M.ENTER)){var a=n;return e.which==M.LEFT&&i.length?a=i:e.which==M.RIGHT?a=r.length?r:null:e.which===M.BACKSPACE?(this.unselect(n.first()),this.search.width(10),a=i.length?i:r):e.which==M.DELETE?(this.unselect(n.first()),this.search.width(10),a=r.length?r:null):e.which==M.ENTER&&(a=null),this.selectChoice(a),m(e),a&&a.length||this.open(),void 0}if((e.which===M.BACKSPACE&&1==this.keydowns||e.which==M.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),m(e),void 0;if(this.selectChoice(null),this.opened())switch(e.which){case M.UP:case M.DOWN:return this.moveHighlight(e.which===M.UP?-1:1),m(e),void 0;case M.ENTER:return this.selectHighlighted(),m(e),void 0;case M.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case M.ESC:return this.cancel(e),m(e),void 0}if(e.which!==M.TAB&&!M.isControl(e)&&!M.isFunctionKey(e)&&e.which!==M.BACKSPACE&&e.which!==M.ESC){if(e.which===M.ENTER){if(this.opts.openOnEnter===!1)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),(e.which===M.PAGE_UP||e.which===M.PAGE_DOWN)&&m(e),e.which===M.ENTER&&m(e)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",n,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",n,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),n=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(e).addClass("select2-default"),this.search.width(n>0?n:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var n=[],r=[],s=this;e(t).each(function(){i(s.id(this),n)<0&&(n.push(s.id(this)),r.push(this))}),t=r,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){s.addSelectedChoice(this)}),s.postprocessResults()},tokenize:function(){var e=this.search.val();e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts),null!=e&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(n){var i,r,s=!n.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=s?a:o,u=this.id(n),c=this.getVal();i=this.opts.formatSelection(n,l.find("div"),this.opts.escapeMarkup),i!=t&&l.find("div").replaceWith("<div>"+i+"</div>"),r=this.opts.formatSelectionCssClass(n,l.find("div")),r!=t&&l.addClass(r),s&&l.find(".select2-search-choice-close").on("mousedown",m).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),m(t))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",n),l.insertBefore(this.searchContainer),c.push(u),this.setVal(c)},unselect:function(t){var n,r,s=this.getVal();if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(n=t.data("select2-data")){for(;(r=i(this.id(n),s))>=0;)s.splice(r,1),this.setVal(s),this.select&&this.postprocessResults();var a=e.Event("select2-removing");a.val=this.id(n),a.choice=n,this.opts.element.trigger(a),a.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))}},postprocessResults:function(e,t,n){var r=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),o=this;s.each2(function(e,t){var n=o.id(t.data("select2-data"));i(n,r)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&n!==!1&&o.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(o.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+o.opts.formatNoMatches(o.search.val())+"</li>")
  13. },getMaxSearchWidth:function(){return this.selection.width()-o(this.search)},resizeSearch:function(){var e,t,n,i,r,s=o(this.search);e=v(this.search)+10,t=this.search.offset().left,n=this.selection.width(),i=this.selection.offset().left,r=n-(t-i)-s,e>r&&(r=n-s),40>r&&(r=n-s),0>=r&&(r=e),this.search.width(Math.floor(r))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),a(e,this.opts.separator))},setVal:function(t){var n;this.select?this.select.val(t):(n=[],e(t).each(function(){i(this,n)<0&&n.push(this)}),this.opts.element.val(0===n.length?"":n.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)s(this.opts.id(t[n]),this.opts.id(e[i]))&&(t.splice(n,1),n>0&&n--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(n,i){var r,s=this;if(0===arguments.length)return this.getVal();if(r=this.data(),r.length||(r=[]),!n&&0!==n)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),i&&this.triggerChange({added:this.data(),removed:r}),void 0;if(this.setVal(n),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(r,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var n=e.map(t,s.id);s.setVal(n),s.updateSelection(t),s.clearSearch(),i&&s.triggerChange(s.buildChangeDetails(r,s.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],n=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(n.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,n){var i,r,s=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get():(r=this.data(),t||(t=[]),i=e.map(t,function(e){return s.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),n&&this.triggerChange(this.buildChangeDetails(r,this.data())),void 0)}}),e.fn.select2=function(){var n,r,s,a,o,l=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],h=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===l.length||"object"==typeof l[0])n=0===l.length?{}:e.extend({},l[0]),n.element=e(this),"select"===n.element.get(0).tagName.toLowerCase()?o=n.element.prop("multiple"):(o=n.multiple||!1,"tags"in n&&(n.multiple=o=!0)),r=o?new $:new N,r.init(n);else{if("string"!=typeof l[0])throw"Invalid arguments to select2 plugin: "+l;if(i(l[0],u)<0)throw"Unknown method: "+l[0];if(a=t,r=e(this).data("select2"),r===t)return;if(s=l[0],"container"===s?a=r.container:"dropdown"===s?a=r.dropdown:(d[s]&&(s=d[s]),a=r[s].apply(r,l.slice(1))),i(l[0],c)>=0||i(l[0],h)&&1==l.length)return!1}}),a===t?this:a},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var r=[];return b(e.text,n.term,r,i),r.join("")},formatSelection:function(e,n,i){return e?i(e.text):t},sortResults:function(e){return e},formatResultCssClass:function(){return t},formatSelectionCssClass:function(){return t},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){var n=t-e.length;return"Please enter "+n+" more character"+(1==n?"":"s")},formatInputTooLong:function(e,t){var n=e.length-t;return"Please delete "+n+" character"+(1==n?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e.id},matcher:function(e,t){return n(""+t).toUpperCase().indexOf(n(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:D,escapeMarkup:w,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:C,tags:_},util:{debounce:c,markMatch:b,escapeMarkup:w,stripDiacritics:n},"class":{"abstract":A,single:N,multi:$}}}}(jQuery),function(){var e,t,n,i,r,s,a,o,l,u,c,h,d,f,p,m,g,v,y,b=[].slice,w=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=jQuery,e.payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?b.call(arguments,1):[],e.payment.fn[n].apply(this,t)},r=/(\d{1,4})/g,i=[{type:"maestro",pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,format:r,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:r,length:[14],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:r,length:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^35/,format:r,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:r,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:r,length:[16],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^5[1-5]/,format:r,length:[16],cvcLength:[3],luhn:!0},{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"visa",pattern:/^4/,format:r,length:[13,14,15,16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,r;for(e=(e+"").replace(/\D/g,""),n=0,r=i.length;r>n;n++)if(t=i[n],t.pattern.test(e))return t},n=function(e){var t,n,r;for(n=0,r=i.length;r>n;n++)if(t=i[n],t.type===e)return t},d=function(e){var t,n,i,r,s,a;for(i=!0,r=0,n=(e+"").split("").reverse(),s=0,a=n.length;a>s;s++)t=n[s],t=parseInt(t,10),(i=!i)&&(t*=2),t>9&&(t-=9),r+=t;return r%10===0},h=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")?!0:("undefined"!=typeof document&&null!==document?null!=(t=document.selection)?"function"==typeof t.createRange?t.createRange().text:void 0:void 0:void 0)?!0:!1},f=function(t){return setTimeout(function(){var n,i;return n=e(t.currentTarget),i=n.val(),i=e.payment.formatCardNumber(i),n.val(i)})},o=function(n){var i,r,s,a,o,l,u;return s=String.fromCharCode(n.which),!/^\d+$/.test(s)||(i=e(n.currentTarget),u=i.val(),r=t(u+s),a=(u.replace(/\D/g,"")+s).length,l=16,r&&(l=r.length[r.length.length-1]),a>=l||null!=i.prop("selectionStart")&&i.prop("selectionStart")!==u.length)?void 0:(o=r&&"amex"===r.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,o.test(u)?(n.preventDefault(),i.val(u+" "+s)):o.test(u+s)?(n.preventDefault(),i.val(u+s+" ")):void 0)},s=function(t){var n,i;return n=e(t.currentTarget),i=n.val(),t.meta||8!==t.which||null!=n.prop("selectionStart")&&n.prop("selectionStart")!==i.length?void 0:/\d\s$/.test(i)?(t.preventDefault(),n.val(i.replace(/\d\s$/,""))):/\s\d?$/.test(i)?(t.preventDefault(),n.val(i.replace(/\s\d?$/,""))):void 0},l=function(t){var n,i,r;return i=String.fromCharCode(t.which),/^\d+$/.test(i)?(n=e(t.currentTarget),r=n.val()+i,/^\d$/.test(r)&&"0"!==r&&"1"!==r?(t.preventDefault(),n.val("0"+r+" / ")):/^\d\d$/.test(r)?(t.preventDefault(),n.val(""+r+" / ")):void 0):void 0},u=function(t){var n,i,r;return i=String.fromCharCode(t.which),/^\d+$/.test(i)?(n=e(t.currentTarget),r=n.val(),/^\d\d$/.test(r)?n.val(""+r+" / "):void 0):void 0},c=function(t){var n,i,r;return i=String.fromCharCode(t.which),"/"===i?(n=e(t.currentTarget),r=n.val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0):void 0},a=function(t){var n,i;if(!t.meta&&(n=e(t.currentTarget),i=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===i.length)))return/\d(\s|\/)+$/.test(i)?(t.preventDefault(),n.val(i.replace(/\d(\s|\/)*$/,""))):/\s\/\s?\d?$/.test(i)?(t.preventDefault(),n.val(i.replace(/\s\/\s?\d?$/,""))):void 0},v=function(e){var t;return e.metaKey||e.ctrlKey?!0:32===e.which?!1:0===e.which?!0:e.which<33?!0:(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))},m=function(n){var i,r,s,a;return i=e(n.currentTarget),s=String.fromCharCode(n.which),/^\d+$/.test(s)&&!h(i)?(a=(i.val()+s).replace(/\D/g,""),r=t(a),r?a.length<=r.length[r.length.length-1]:a.length<=16):void 0},g=function(t){var n,i,r;return n=e(t.currentTarget),i=String.fromCharCode(t.which),/^\d+$/.test(i)&&!h(n)?(r=n.val()+i,r=r.replace(/\D/g,""),r.length>6?!1:void 0):void 0},p=function(t){var n,i,r;return n=e(t.currentTarget),i=String.fromCharCode(t.which),/^\d+$/.test(i)?(r=n.val()+i,r.length<=4):void 0},y=function(t){var n,r,s,a,o;return n=e(t.currentTarget),o=n.val(),a=e.payment.cardType(o)||"unknown",n.hasClass(a)?void 0:(r=function(){var e,t,n;for(n=[],e=0,t=i.length;t>e;e++)s=i[e],n.push(s.type);return n}(),n.removeClass("unknown"),n.removeClass(r.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a))},e.payment.fn.formatCardCVC=function(){return this.payment("restrictNumeric"),this.on("keypress",p),this},e.payment.fn.formatCardExpiry=function(){return this.payment("restrictNumeric"),this.on("keypress",g),this.on("keypress",l),this.on("keypress",c),this.on("keypress",u),this.on("keydown",a),this},e.payment.fn.formatCardNumber=function(){return this.payment("restrictNumeric"),this.on("keypress",m),this.on("keypress",o),this.on("keydown",s),this.on("keyup",y),this.on("paste",f),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",v),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,i,r;return e=e.replace(/\s/g,""),r=e.split("/",2),t=r[0],i=r[1],2===(null!=i?i.length:void 0)&&/^\d+$/.test(i)&&(n=(new Date).getFullYear(),n=n.toString().slice(0,2),i=n+i),t=parseInt(t,10),i=parseInt(i,10),{month:t,year:i}},e.payment.validateCardNumber=function(e){var n,i;return e=(e+"").replace(/\s+|-/g,""),/^\d+$/.test(e)?(n=t(e),n?(i=e.length,w.call(n.length,i)>=0&&(n.luhn===!1||d(e))):!1):!1},e.payment.validateCardExpiry=function(t,n){var i,r,s,a;return"object"==typeof t&&"month"in t&&(a=t,t=a.month,n=a.year),t&&n?(t=e.trim(t),n=e.trim(n),/^\d+$/.test(t)?/^\d+$/.test(n)?parseInt(t,10)<=12?(2===n.length&&(s=(new Date).getFullYear(),s=s.toString().slice(0,2),n=s+n),r=new Date(n,t),i=new Date,r.setMonth(r.getMonth()-1),r.setMonth(r.getMonth()+1,1),r>i):!1:!1:!1):!1},e.payment.validateCardCVC=function(t,i){var r,s;return t=e.trim(t),/^\d+$/.test(t)?i?(r=t.length,w.call(null!=(s=n(i))?s.cvcLength:void 0,r)>=0):t.length>=3&&t.length<=4:!1},e.payment.cardType=function(e){var n;return e?(null!=(n=t(e))?n.type:void 0)||null:null},e.payment.formatCardNumber=function(e){var n,i,r,s;return(n=t(e))?(r=n.length[n.length.length-1],e=e.replace(/\D/g,""),e=e.slice(0,+r+1||9e9),n.format.global?null!=(s=e.match(n.format))?s.join(" "):void 0:(i=n.format.exec(e),null!=i&&i.shift(),null!=i?i.join(" "):void 0)):e}}.call(this),function(e){function t(e,t){this.constructor(e,t)}function n(e){return e+e+e+e+" "+e+e+e+e+" "+e+e+e+e+" "+e+e+e+e}function i(e,t){0!==e.length&&(r(e,/^cc-type-/),t?e.addClass("cc-type-known cc-type-"+t):e.addClass("cc-type-unknown"))}function r(e,t){for(var n=e.attr("class").split(" "),i=[],r=0;r<n.length;++r){var s=n[r];s.match(t)||i.push(s)}e.attr("class",i.join(" "))}var s={bullet:String.fromCharCode(8226),validate:!1};t.prototype={constructor:function(t,n){this.options=e.extend({},s,n||{}),this.options.onerror&&(this.onerror=this.options.onerror),this.options.onvalid&&(this.onvalid=this.options.onvalid),this.$form=e(t),this.$type=this.$form.find(".cc-type"),this.$ccNumber=this.$form.find('[autocompletetype="cc-number"]'),this.$ccName=this.$form.find('[autocompletetype="cc-name"]'),this.$ccCsc=this.$form.find('[autocompletetype="cc-csc"]'),this.$ccExp=this.$form.find('[autocompletetype="cc-exp"]'),this.$inputs=this.$form.find('[autocompletetype^="cc-"]'),this.$form.attr("autocomplete","on"),this.updateInputs(),this.options.validate&&this.registerValidation()},updateInputs:function(){this.updateExpInput(this.$ccExp),this.updateCscInput(this.$ccCsc),this.updateNameInput(this.$ccName),this.updateNumberInput(this.$ccNumber)},registerValidation:function(){function t(t,i){return function(){var r=e(this),s=r.val();if(0!==s.length){var a=i(s);n(r,a,t)}}}function n(e,t,n){t?(i.onerror(e,null),i.onvalid(e)):i.onerror(e,n)}var i=this;i.$inputs.on("input focus",function(){i.onerror(e(this),null)}).on("blur",function(){e(this).trigger("payment:validate")}),i.$ccNumber.on("payment:validate",t("invalid card number",e.payment.validateCardNumber)),i.$ccName.on("payment:validate",t("invalid card number",function(e){return e.length>0})),i.$ccExp.on("payment:validate",t("invalid card expiry",function(t){var n=e.payment.cardExpiryVal(t);return e.payment.validateCardExpiry(n.month,n.year)})),i.$ccCsc.on("payment:validate",t("invalid",function(t){var n=e.payment.cardType(i.$ccNumber.val());return e.payment.validateCardCVC(t,n)}))},onerror:function(e,t){t?e.removeClass("valid").addClass("error"):e.removeClass("valid error")},onvalid:function(e){e.addClass("valid")},updateNumberInput:function(t){t.on("input",e.proxy(this.updateCardTypeElement,this)).payment("formatCardNumber").attr({placeholder:n(this.options.bullet),autocomplete:"on"})},updateExpInput:function(e){e.payment("formatCardExpiry").attr({placeholder:"MM / YY",autocomplete:"on"})},updateCscInput:function(e){e.payment("formatCardCVC").attr({placeholder:"CVC",autocomplete:"on",autocompletetype:"cc-csc",pattern:"\\d*"})},updateNameInput:function(e){e.attr({autocomplete:"on"})},updateCardTypeElement:function(){var t=e.payment.cardType(this.$ccNumber.val());i(this.$type,t)}},e.fn.paymentform=function(e){new t(this,e)}}(jQuery),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};null==window.TicketBase&&(window.TicketBase={}),TicketBase.FixedHeader=function(){function t(t,n){this.$el=t,this.offset=n,this.onScroll=e(this.onScroll,this),this.visible=!0,this.$window=$(window),this.bindEvents()}return t.prototype.hiddenClass="-hidden",t.prototype.visibleClass="-shown",t.prototype.offset=0,t.prototype.grace=20,t.prototype.bindEvents=function(){return this.$window.on("scroll.fixheader resize.fixheader",this.onScroll),this.onScroll()},t.prototype.onScroll=function(){var e,t,n;if(n=this.scrollTop(),t=n>this.offset,e=n<this.offset-this.grace,null==this.visible)this.visible=t;else if(t&&!this.visible)this.visible=!0;else{if(!e||!this.visible)return;this.visible=!1}return this.$el.toggleClass(this.visibleClass,this.visible).toggleClass(this.hiddenClass,!this.visible)},t.prototype.scrollTop=function(){return this.$window.scrollTop()},t}()}.call(this),function(){var e,t;null==window.TicketBase&&(window.TicketBase={}),e=null!=window.pageYOffset?function(){return window.pageYOffset}:null!=(null!=(t=document.documentElement)?t.clientHeight:void 0)?function(){return document.documentElement.scrollTop}:function(){return document.body.scrollTop},TicketBase.ParallaxBackground=function(t,n){var i,r,s,a,o,l,u,c,h;return null==n&&(n={}),r=null!=(c=t[0])?c:t,i=null!=(h=n.coef)?h:.2,a=r.getBoundingClientRect(),u=a.top+e(),s=function(){var t,n;return t=e()-u,n=t*i,r.style.backgroundPosition="0 "+n+"px"},o=function(){return $(window).on("scroll.parallax",s),$(s)},l=function(){return r.style.backgroundPosition=null,$(window).off("scroll.parallax",s)},o(),{teardown:l}}}.call(this),function(){var e;null==window.TicketBase&&(window.TicketBase={}),null==(e=window.TicketBase).Home&&(e.Home={}),$(function(){var e,t,n,i;return n=$('[role~="tab"]'),t=$('[role~="slides_container"]'),e=$(".overlay-nav.-fixed"),i=$(window),$.extend(TicketBase.Home,{initialize:function(){return this.initializeWow(),this.initializeSplashTabs(),this.initializeFixedHeader(),this.initializeParallax(),this.selectFirstTab()},initializeParallax:function(){return t.children().each(function(){return new TicketBase.ParallaxBackground($(this),{coef:.4})}),new TicketBase.ParallaxBackground($(".they-trust-us .image"),{coef:.4})},initializeFixedHeader:function(){return new TicketBase.FixedHeader(e,500)},initializeSplashTabs:function(){return n.on("click.tabs",function(){var e,t,n;return n=$(this).data("tab"),e=$(".slide."+n),t=e.index(),TicketBase.Home.switchToSlide(t+1)})},selectFirstTab:function(){return n.eq(0).trigger("click.tabs")},initializeWow:function(){return(new WOW).init()},switchToSlide:function(e){return t.attr("class","slides -s"+e),n.removeClass("selected"),n.eq(e-1).addClass("selected")}})})}.call(this),function(e){var t=function(e){return t.showMessage(e)};e.extend(t,{id:"growl",timeout:5e3,id_prefix:"growl-notification-",parentClass:"growl-container","class":"growl-item",$notifs:null,buildHtml:function(e){var n,i=(e["class"]||"")+" "+t["class"];return n=e.html?""+e.html:e.message&&e.title?"<h3>"+e.title+"</h3><p>"+e.message+"</p>":"<p>"+e.message+"</p>","<div class='"+i+"'>"+n+"<button role='close' class='growl-close'></button></div>"},showMessage:function(n){if("string"==typeof n)return t.showMessage({message:n});if("object"==typeof n){var i=(n.message,this);i.$notifs||(i.$notifs=e("<div id='"+i.id+"' class='"+i.parentClass+"'><div class='items'></div></div>"),e(document.body).append(i.$notifs));var r=t.buildHtml(n),s=e(r);n.classname&&s.addClass(n.classname),s.on("click",function(t){var n=e(t.target);(n.closest('[role~="close"]').length||0===n.closest("a, button").length)&&i._killItem(s)});var a=n.id?this.id_prefix+n.id:null,o=n.id?e("#"+a):[];o.length>0?(o.html(s.html()),o.attr("class",s.attr("class")),s=o):(s.attr("id",a),i.$notifs.find(".items").prepend(s)),i.addTimer(s,n)}},addTimer:function(e,t){var n=this,i=e.data("growl-timer");i&&window.clearTimeout(i),t.sticky!==!0&&(i=window.setTimeout(function(){n._killItem(e)},t.timeout||n.timeout),e.data("growl-timer",i))},kill:function(){var t=this;t.$notifs.find(".items > *").each(function(){t._killItem(e(this))})},_killItem:function(t){t=e(t),t.one("transitionend oTransitionEnd webkitTransitionEnd MSTransitionEnd",function(){t.remove()}).addClass("-exit")}}),e.growl=t}(jQuery),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"undefined"==typeof e&&"undefined"!=typeof window.jQuery&&(e=window.jQuery);var t={attr:function(e,t,n){var i,r={},s=this.msieversion(),a=new RegExp("^"+t,"i");if("undefined"==typeof e||"undefined"==typeof e[0])return{};for(var o in e[0].attributes)if(i=e[0].attributes[o],"undefined"!=typeof i&&null!==i&&(!s||s>=8||i.specified)&&a.test(i.name)){if("undefined"!=typeof n&&new RegExp(n+"$","i").test(i.name))return!0;r[this.camelize(i.name.replace(t,""))]=this.deserializeValue(i.value)}return"undefined"==typeof n?r:!1},setAttr:function(e,t,n,i){e[0].setAttribute(this.dasherize(t+n),String(i))},get:function(e,t){for(var n=0,i=(t||"").split(".");this.isObject(e)||this.isArray(e);)if(e=e[i[n++]],n===i.length)return e;return void 0},hash:function(e){return String(Math.random()).substring(2,e?e+2:9)},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return e===Object(e)},deserializeValue:function(t){var n;try{return t?"true"==t||("false"==t?!1:"null"==t?null:isNaN(n=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:n):t}catch(i){return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},msieversion:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");return t>0||navigator.userAgent.match(/Trident.*rv\:11\./)?parseInt(e.substring(t+5,e.indexOf(".",t)),10):0}},n={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(){},errorsContainer:function(){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},i=function(){};i.prototype={asyncSupport:!1,actualizeOptions:function(){return this.options=this.OptionsFactory.get(this),this},validateThroughValidator:function(e,t,n){return window.ParsleyValidator.validate.apply(window.ParsleyValidator,[e,t,n])},subscribe:function(t,n){return e.listenTo(this,t.toLowerCase(),n),this},unsubscribe:function(t){return e.unsubscribeTo(this,t.toLowerCase()),this},reset:function(){if("ParsleyForm"!==this.__class__)return e.emit("parsley:field:reset",this);for(var t=0;t<this.fields.length;t++)e.emit("parsley:field:reset",this.fields[t]);e.emit("parsley:form:reset",this)},destroy:function(){if("ParsleyForm"!==this.__class__)return this.$element.removeData("Parsley"),this.$element.removeData("ParsleyFieldMultiple"),e.emit("parsley:field:destroy",this),void 0;for(var t=0;t<this.fields.length;t++)this.fields[t].destroy();this.$element.removeData("Parsley"),e.emit("parsley:form:destroy",this)}};var r=function(){var e={},t=function(e){this.__class__="Validator",this.__version__="1.0.0",this.options=e||{},this.bindingKey=this.options.bindingKey||"_validatorjsConstraint"};t.prototype={constructor:t,validate:function(e,t,n){if("string"!=typeof e&&"object"!=typeof e)throw new Error("You must validate an object or a string");return"string"==typeof e||a(e)?this._validateString(e,t,n):this.isBinded(e)?this._validateBindedObject(e,t):this._validateObject(e,t,n)},bind:function(e,t){if("object"!=typeof e)throw new Error("Must bind a Constraint to an object");return e[this.bindingKey]=new n(t),this},unbind:function(e){return"undefined"==typeof e._validatorjsConstraint?this:(delete e[this.bindingKey],this)},isBinded:function(e){return"undefined"!=typeof e[this.bindingKey]},getBinded:function(e){return this.isBinded(e)?e[this.bindingKey]:null},_validateString:function(e,t,n){var s,o=[];a(t)||(t=[t]);for(var l=0;l<t.length;l++){if(!(t[l]instanceof r))throw new Error("You must give an Assert or an Asserts array to validate a string");s=t[l].check(e,n),s instanceof i&&o.push(s)}return o.length?o:!0},_validateObject:function(e,t,i){if("object"!=typeof t)throw new Error("You must give a constraint to validate an object");return t instanceof n?t.check(e,i):new n(t).check(e,i)},_validateBindedObject:function(e,t){return e[this.bindingKey].check(e,t)}},t.errorCode={must_be_a_string:"must_be_a_string",must_be_an_array:"must_be_an_array",must_be_a_number:"must_be_a_number",must_be_a_string_or_array:"must_be_a_string_or_array"};var n=function(e,t){if(this.__class__="Constraint",this.options=t||{},this.nodes={},e)try{this._bootstrap(e)}catch(n){throw new Error("Should give a valid mapping object to Constraint",n,e)}};n.prototype={constructor:n,check:function(e,t){var n,i={};for(var o in this.nodes){for(var l=!1,u=this.get(o),c=a(u)?u:[u],h=c.length-1;h>=0;h--)"Required"!==c[h].__class__||(l=c[h].requiresValidation(t));if(this.has(o,e)||this.options.strict||l)try{this.has(o,this.options.strict||l?e:void 0)||(new r).HaveProperty(o).validate(e),n=this._check(o,e[o],t),(a(n)&&n.length>0||!a(n)&&!s(n))&&(i[o]=n)}catch(d){i[o]=d}}return s(i)?!0:i},add:function(e,t){if(t instanceof r||a(t)&&t[0]instanceof r)return this.nodes[e]=t,this;if("object"==typeof t&&!a(t))return this.nodes[e]=t instanceof n?t:new n(t),this;throw new Error("Should give an Assert, an Asserts array, a Constraint",t)},has:function(e,t){return t="undefined"!=typeof t?t:this.nodes,"undefined"!=typeof t[e]},get:function(e,t){return this.has(e)?this.nodes[e]:t||null},remove:function(e){var t=[];for(var n in this.nodes)n!==e&&(t[n]=this.nodes[n]);return this.nodes=t,this},_bootstrap:function(e){if(e instanceof n)return this.nodes=e.nodes;for(var t in e)this.add(t,e[t])},_check:function(e,t,i){if(this.nodes[e]instanceof r)return this._checkAsserts(t,[this.nodes[e]],i);if(a(this.nodes[e]))return this._checkAsserts(t,this.nodes[e],i);if(this.nodes[e]instanceof n)return this.nodes[e].check(t,i);throw new Error("Invalid node",this.nodes[e])},_checkAsserts:function(e,t,n){for(var i,r=[],s=0;s<t.length;s++)i=t[s].check(e,n),"undefined"!=typeof i&&!0!==i&&r.push(i);return r}};var i=function(e,t,n){if(this.__class__="Violation",!(e instanceof r))throw new Error("Should give an assertion implementing the Assert interface");this.assert=e,this.value=t,"undefined"!=typeof n&&(this.violation=n)};i.prototype={show:function(){var e={assert:this.assert.__class__,value:this.value};return this.violation&&(e.violation=this.violation),e},__toString:function(){return"undefined"!=typeof this.violation&&(this.violation='", '+this.getViolation().constraint+" expected was "+this.getViolation().expected),this.assert.__class__+' assert failed for "'+this.value+this.violation||""},getViolation:function(){var e,t;for(e in this.violation)t=this.violation[e];return{constraint:e,expected:t}}};var r=function(e){this.__class__="Assert",this.__parentClass__=this.__class__,this.groups=[],"undefined"!=typeof e&&this.addGroup(e)};r.prototype={construct:r,requiresValidation:function(e){return e&&!this.hasGroup(e)?!1:!e&&this.hasGroups()?!1:!0},check:function(e,t){if(this.requiresValidation(t))try{return this.validate(e,t)}catch(n){return n}},hasGroup:function(e){return a(e)?this.hasOneOf(e):"Any"===e?!0:this.hasGroups()?-1!==this.groups.indexOf(e):"Default"===e},hasOneOf:function(e){for(var t=0;t<e.length;t++)if(this.hasGroup(e[t]))return!0;return!1},hasGroups:function(){return this.groups.length>0},addGroup:function(e){return a(e)?this.addGroups(e):(this.hasGroup(e)||this.groups.push(e),this)},removeGroup:function(e){for(var t=[],n=0;n<this.groups.length;n++)e!==this.groups[n]&&t.push(this.groups[n]);return this.groups=t,this},addGroups:function(e){for(var t=0;t<e.length;t++)this.addGroup(e[t]);return this},HaveProperty:function(e){return this.__class__="HaveProperty",this.node=e,this.validate=function(e){if("undefined"==typeof e[this.node])throw new i(this,e,{value:this.node});return!0},this},Blank:function(){return this.__class__="Blank",this.validate=function(e){if("string"!=typeof e)throw new i(this,e,{value:t.errorCode.must_be_a_string});if(""!==e.replace(/^\s+/g,"").replace(/\s+$/g,""))throw new i(this,e);return!0},this},Callback:function(e){if(this.__class__="Callback",this.arguments=Array.prototype.slice.call(arguments),1===this.arguments.length?this.arguments=[]:this.arguments.splice(0,1),"function"!=typeof e)throw new Error("Callback must be instanciated with a function");return this.fn=e,this.validate=function(e){var t=this.fn.apply(this,[e].concat(this.arguments));if(!0!==t)throw new i(this,e,{result:t});return!0},this},Choice:function(e){if(this.__class__="Choice",!a(e)&&"function"!=typeof e)throw new Error("Choice must be instanciated with an array or a function");return this.list=e,this.validate=function(e){for(var t="function"==typeof this.list?this.list():this.list,n=0;n<t.length;n++)if(e===t[n])return!0;throw new i(this,e,{choices:t})},this},Collection:function(e){return this.__class__="Collection",this.constraint="undefined"!=typeof e?e instanceof r?e:new n(e):!1,this.validate=function(e,n){var r,o=new t,l=0,u={},c=this.groups.length?this.groups:n;if(!a(e))throw new i(this,array,{value:t.errorCode.must_be_an_array});for(var h=0;h<e.length;h++)r=this.constraint?o.validate(e[h],this.constraint,c):o.validate(e[h],c),s(r)||(u[l]=r),l++;return s(u)?!0:u},this},Count:function(e){return this.__class__="Count",this.count=e,this.validate=function(e){if(!a(e))throw new i(this,e,{value:t.errorCode.must_be_an_array});var n="function"==typeof this.count?this.count(e):this.count;if(isNaN(Number(n)))throw new Error("Count must be a valid interger",n);if(n!==e.length)throw new i(this,e,{count:n});return!0},this},Email:function(){return this.__class__="Email",this.validate=function(e){var n=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;if("string"!=typeof e)throw new i(this,e,{value:t.errorCode.must_be_a_string});if(!n.test(e))throw new i(this,e);return!0},this},EqualTo:function(e){if(this.__class__="EqualTo","undefined"==typeof e)throw new Error("EqualTo must be instanciated with a value or a function");return this.reference=e,this.validate=function(e){var t="function"==typeof this.reference?this.reference(e):this.reference;if(t!==e)throw new i(this,e,{value:t});return!0},this},GreaterThan:function(e){if(this.__class__="GreaterThan","undefined"==typeof e)throw new Error("Should give a threshold value");return this.threshold=e,this.validate=function(e){if(""===e||isNaN(Number(e)))throw new i(this,e,{value:t.errorCode.must_be_a_number});if(this.threshold>=e)throw new i(this,e,{threshold:this.threshold});return!0},this},GreaterThanOrEqual:function(e){if(this.__class__="GreaterThanOrEqual","undefined"==typeof e)throw new Error("Should give a threshold value");return this.threshold=e,this.validate=function(e){if(""===e||isNaN(Number(e)))throw new i(this,e,{value:t.errorCode.must_be_a_number});if(this.threshold>e)throw new i(this,e,{threshold:this.threshold});return!0},this},InstanceOf:function(e){if(this.__class__="InstanceOf","undefined"==typeof e)throw new Error("InstanceOf must be instanciated with a value");return this.classRef=e,this.validate=function(e){if(!0!=e instanceof this.classRef)throw new i(this,e,{classRef:this.classRef});return!0},this},Length:function(e){if(this.__class__="Length",!e.min&&!e.max)throw new Error("Lenth assert must be instanciated with a { min: x, max: y } object");return this.min=e.min,this.max=e.max,this.validate=function(e){if("string"!=typeof e&&!a(e))throw new i(this,e,{value:t.errorCode.must_be_a_string_or_array});if("undefined"!=typeof this.min&&this.min===this.max&&e.length!==this.min)throw new i(this,e,{min:this.min,max:this.max});if("undefined"!=typeof this.max&&e.length>this.max)throw new i(this,e,{max:this.max});if("undefined"!=typeof this.min&&e.length<this.min)throw new i(this,e,{min:this.min});return!0},this},LessThan:function(e){if(this.__class__="LessThan","undefined"==typeof e)throw new Error("Should give a threshold value");return this.threshold=e,this.validate=function(e){if(""===e||isNaN(Number(e)))throw new i(this,e,{value:t.errorCode.must_be_a_number});if(this.threshold<=e)throw new i(this,e,{threshold:this.threshold});return!0},this},LessThanOrEqual:function(e){if(this.__class__="LessThanOrEqual","undefined"==typeof e)throw new Error("Should give a threshold value");return this.threshold=e,this.validate=function(e){if(""===e||isNaN(Number(e)))throw new i(this,e,{value:t.errorCode.must_be_a_number});if(this.threshold<e)throw new i(this,e,{threshold:this.threshold});return!0},this},NotNull:function(){return this.__class__="NotNull",this.validate=function(e){if(null===e||"undefined"==typeof e)throw new i(this,e);return!0},this},NotBlank:function(){return this.__class__="NotBlank",this.validate=function(e){if("string"!=typeof e)throw new i(this,e,{value:t.errorCode.must_be_a_string});if(""===e.replace(/^\s+/g,"").replace(/\s+$/g,""))throw new i(this,e);return!0},this},Null:function(){return this.__class__="Null",this.validate=function(e){if(null!==e)throw new i(this,e);return!0},this
  14. },Range:function(e,t){if(this.__class__="Range","undefined"==typeof e||"undefined"==typeof t)throw new Error("Range assert expects min and max values");return this.min=e,this.max=t,this.validate=function(e){try{return"string"==typeof e&&isNaN(Number(e))||a(e)?(new r).Length({min:this.min,max:this.max}).validate(e):(new r).GreaterThanOrEqual(this.min).validate(e)&&(new r).LessThanOrEqual(this.max).validate(e),!0}catch(t){throw new i(this,e,t.violation)}return!0},this},Regexp:function(e,n){if(this.__class__="Regexp","undefined"==typeof e)throw new Error("You must give a regexp");return this.regexp=e,this.flag=n||"",this.validate=function(e){if("string"!=typeof e)throw new i(this,e,{value:t.errorCode.must_be_a_string});if(!new RegExp(this.regexp,this.flag).test(e))throw new i(this,e,{regexp:this.regexp,flag:this.flag});return!0},this},Required:function(){return this.__class__="Required",this.validate=function(e){if("undefined"==typeof e)throw new i(this,e);try{"string"==typeof e?(new r).NotNull().validate(e)&&(new r).NotBlank().validate(e):!0===a(e)&&(new r).Length({min:1}).validate(e)}catch(t){throw new i(this,e)}return!0},this},Unique:function(e){return this.__class__="Unique","object"==typeof e&&(this.key=e.key),this.validate=function(e){var n,r=[];if(!a(e))throw new i(this,e,{value:t.errorCode.must_be_an_array});for(var s=0;s<e.length;s++)if(n="object"==typeof e[s]?e[s][this.key]:e[s],"undefined"!=typeof n){if(-1!==r.indexOf(n))throw new i(this,e,{value:n});r.push(n)}return!0},this}},e.Assert=r,e.Validator=t,e.Violation=i,e.Constraint=n,Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var i=0;if(arguments.length>1&&(i=Number(arguments[1]),i!=i?i=0:0!==i&&1/0!=i&&i!=-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);n>r;r++)if(r in t&&t[r]===e)return r;return-1});var s=function(e){for(var t in e)return!1;return!0},a=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return"function"==typeof define&&define.amd?define("vendors/validator.js/dist/validator",[],function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:window["undefined"!=typeof validatorjs_ns?validatorjs_ns:"Validator"]=e,e}();r="undefined"!=typeof r?r:"undefined"!=typeof module?module.exports:null;var s=function(e,t){this.__class__="ParsleyValidator",this.Validator=r,this.locale="en",this.init(e||{},t||{})};s.prototype={init:function(t,n){this.catalog=n;for(var i in t)this.addValidator(i,t[i].fn,t[i].priority,t[i].requirementsTransformer);e.emit("parsley:validator:init")},setLocale:function(e){if("undefined"==typeof this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,n){return"object"==typeof t&&(this.catalog[e]=t),!0===n?this.setLocale(e):this},addMessage:function(e,t,n){return"undefined"==typeof this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t.toLowerCase()]=n,this},validate:function(){return(new this.Validator.Validator).validate.apply(new r.Validator,arguments)},addValidator:function(t,n,i,s){return this.validators[t.toLowerCase()]=function(t){return e.extend((new r.Assert).Callback(n,t),{priority:i,requirementsTransformer:s})},this},updateValidator:function(e,t,n,i){return this.addValidator(e,t,n,i)},removeValidator:function(e){return delete this.validators[e],this},getErrorMessage:function(e){var t;return t="type"===e.name?this.catalog[this.locale][e.name][e.requirements]:this.formatMessage(this.catalog[this.locale][e.name],e.requirements),""!==t?t:this.catalog[this.locale].defaultMessage},formatMessage:function(e,t){if("object"==typeof t){for(var n in t)e=this.formatMessage(e,t[n]);return e}return"string"==typeof e?e.replace(new RegExp("%s","i"),t):""},validators:{notblank:function(){return e.extend((new r.Assert).NotBlank(),{priority:2})},required:function(){return e.extend((new r.Assert).Required(),{priority:512})},type:function(t){var n;switch(t){case"email":n=(new r.Assert).Email();break;case"range":case"number":n=(new r.Assert).Regexp("^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)?(?:\\.\\d+)?$");break;case"integer":n=(new r.Assert).Regexp("^-?\\d+$");break;case"digits":n=(new r.Assert).Regexp("^\\d+$");break;case"alphanum":n=(new r.Assert).Regexp("^\\w+$","i");break;case"url":n=(new r.Assert).Regexp("(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,4}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)","i");break;default:throw new Error("validator type `"+t+"` is not supported")}return e.extend(n,{priority:256})},pattern:function(t){var n="";return/^\/.*\/(?:[gimy]*)$/.test(t)&&(n=t.replace(/.*\/([gimy]*)$/,"$1"),t=t.replace(new RegExp("^/(.*?)/"+n+"$"),"$1")),e.extend((new r.Assert).Regexp(t,n),{priority:64})},minlength:function(t){return e.extend((new r.Assert).Length({min:t}),{priority:30,requirementsTransformer:function(){return"string"!=typeof t||isNaN(t)?t:parseInt(t,10)}})},maxlength:function(t){return e.extend((new r.Assert).Length({max:t}),{priority:30,requirementsTransformer:function(){return"string"!=typeof t||isNaN(t)?t:parseInt(t,10)}})},length:function(t){return e.extend((new r.Assert).Length({min:t[0],max:t[1]}),{priority:32})},mincheck:function(e){return this.minlength(e)},maxcheck:function(e){return this.maxlength(e)},check:function(e){return this.length(e)},min:function(t){return e.extend((new r.Assert).GreaterThanOrEqual(t),{priority:30,requirementsTransformer:function(){return"string"!=typeof t||isNaN(t)?t:parseInt(t,10)}})},max:function(t){return e.extend((new r.Assert).LessThanOrEqual(t),{priority:30,requirementsTransformer:function(){return"string"!=typeof t||isNaN(t)?t:parseInt(t,10)}})},range:function(t){return e.extend((new r.Assert).Range(t[0],t[1]),{priority:32,requirementsTransformer:function(){for(var e=0;e<t.length;e++)t[e]="string"!=typeof t[e]||isNaN(t[e])?t[e]:parseInt(t[e],10);return t}})},equalto:function(t){return e.extend((new r.Assert).EqualTo(t),{priority:256,requirementsTransformer:function(){return e(t).length?e(t).val():t}})}}};var a=function(){this.__class__="ParsleyUI"};a.prototype={listen:function(){return e.listen("parsley:form:init",this,this.setupForm),e.listen("parsley:field:init",this,this.setupField),e.listen("parsley:field:validated",this,this.reflow),e.listen("parsley:form:validated",this,this.focus),e.listen("parsley:field:reset",this,this.reset),e.listen("parsley:form:destroy",this,this.destroy),e.listen("parsley:field:destroy",this,this.destroy),this},reflow:function(e){if("undefined"!=typeof e._ui&&!1!==e._ui.active){var t=this._diff(e.validationResult,e._ui.lastValidationResult);e._ui.lastValidationResult=e.validationResult,e._ui.validatedOnce=!0,this.manageStatusClass(e),this.manageErrorsMessages(e,t),this.actualizeTriggers(e),(t.kept.length||t.added.length)&&"undefined"==typeof e._ui.failedOnce&&this.manageFailingFieldTrigger(e)}},getErrorsMessages:function(e){if(!0===e.validationResult)return[];for(var t=[],n=0;n<e.validationResult.length;n++)t.push(this._getErrorMessage(e,e.validationResult[n].assert));return t},manageStatusClass:function(e){!0===e.validationResult?this._successClass(e):e.validationResult.length>0?this._errorClass(e):this._resetClass(e)},manageErrorsMessages:function(t,n){if("undefined"==typeof t.options.errorsMessagesDisabled){if("undefined"!=typeof t.options.errorMessage)return n.added.length||n.kept.length?(0===t._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&t._ui.$errorsWrapper.append(e(t.options.errorTemplate).addClass("parsley-custom-error-message")),t._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(t.options.errorMessage)):t._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var i=0;i<n.removed.length;i++)this.removeError(t,n.removed[i].assert.name,!0);for(i=0;i<n.added.length;i++)this.addError(t,n.added[i].assert.name,void 0,n.added[i].assert,!0);for(i=0;i<n.kept.length;i++)this.updateError(t,n.kept[i].assert.name,void 0,n.kept[i].assert,!0)}},addError:function(t,n,i,r,s){t._ui.$errorsWrapper.addClass("filled").append(e(t.options.errorTemplate).addClass("parsley-"+n).html(i||this._getErrorMessage(t,r))),!0!==s&&this._errorClass(t)},updateError:function(e,t,n,i,r){e._ui.$errorsWrapper.addClass("filled").find(".parsley-"+t).html(n||this._getErrorMessage(e,i)),!0!==r&&this._errorClass(e)},removeError:function(e,t,n){e._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+t).remove(),!0!==n&&this.manageStatusClass(e)},focus:function(e){if(!0===e.validationResult||"none"===e.options.focus)return e._focusedField=null;e._focusedField=null;for(var t=0;t<e.fields.length;t++)if(!0!==e.fields[t].validationResult&&e.fields[t].validationResult.length>0&&"undefined"==typeof e.fields[t].options.noFocus){if("first"===e.options.focus)return e._focusedField=e.fields[t].$element,e._focusedField.focus();e._focusedField=e.fields[t].$element}return null===e._focusedField?null:e._focusedField.focus()},_getErrorMessage:function(e,t){var n=t.name+"Message";return"undefined"!=typeof e.options[n]?window.ParsleyValidator.formatMessage(e.options[n],t.requirements):window.ParsleyValidator.getErrorMessage(t)},_diff:function(e,t,n){for(var i=[],r=[],s=0;s<e.length;s++){for(var a=!1,o=0;o<t.length;o++)if(e[s].assert.name===t[o].assert.name){a=!0;break}a?r.push(e[s]):i.push(e[s])}return{kept:r,added:i,removed:n?[]:this._diff(t,e,!0).added}},setupForm:function(t){t.$element.on("submit.Parsley",!1,e.proxy(t.onSubmitValidate,t)),!1!==t.options.uiEnabled&&t.$element.attr("novalidate","")},setupField:function(t){var n={active:!1};!1!==t.options.uiEnabled&&(n.active=!0,t.$element.attr(t.options.namespace+"id",t.__id__),n.$errorClassHandler=this._manageClassHandler(t),n.errorsWrapperId="parsley-id-"+("undefined"!=typeof t.options.multiple?"multiple-"+t.options.multiple:t.__id__),n.$errorsWrapper=e(t.options.errorsWrapper).attr("id",n.errorsWrapperId),n.lastValidationResult=[],n.validatedOnce=!1,n.validationInformationVisible=!1,t._ui=n,t.$element.is(t.options.excluded)||this._insertErrorWrapper(t),this.actualizeTriggers(t))},_manageClassHandler:function(t){if("string"==typeof t.options.classHandler&&e(t.options.classHandler).length)return e(t.options.classHandler);var n=t.options.classHandler(t);return"undefined"!=typeof n&&n.length?n:"undefined"==typeof t.options.multiple||t.$element.is("select")?t.$element:t.$element.parent()},_insertErrorWrapper:function(t){var n;if("string"==typeof t.options.errorsContainer){if(e(t.options.errorsContainer).length)return e(t.options.errorsContainer).append(t._ui.$errorsWrapper);window.console&&window.console.warn&&window.console.warn("The errors container `"+t.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof t.options.errorsContainer&&(n=t.options.errorsContainer(t));return"undefined"!=typeof n&&n.length?n.append(t._ui.$errorsWrapper):"undefined"==typeof t.options.multiple?t.$element.after(t._ui.$errorsWrapper):t.$element.parent().after(t._ui.$errorsWrapper)},actualizeTriggers:function(t){var n=this;if(t.options.multiple?e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]').each(function(){e(this).off(".Parsley")}):t.$element.off(".Parsley"),!1!==t.options.trigger){var i=t.options.trigger.replace(/^\s+/g,"").replace(/\s+$/g,"");""!==i&&(t.options.multiple?e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]').each(function(){e(this).on(i.split(" ").join(".Parsley ")+".Parsley",!1,e.proxy("function"==typeof t.eventValidate?t.eventValidate:n.eventValidate,t))}):t.$element.on(i.split(" ").join(".Parsley ")+".Parsley",!1,e.proxy("function"==typeof t.eventValidate?t.eventValidate:this.eventValidate,t)))}},eventValidate:function(e){new RegExp("key").test(e.type)&&!this._ui.validationInformationVisible&&this.getValue().length<=this.options.validationThreshold||(this._ui.validatedOnce=!0,this.validate())},manageFailingFieldTrigger:function(t){return t._ui.failedOnce=!0,t.options.multiple&&e("["+t.options.namespace+'multiple="'+t.options.multiple+'"]').each(function(){return new RegExp("change","i").test(e(this).parsley().options.trigger||"")?void 0:e(this).on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t))}),t.$element.is("select")&&!new RegExp("change","i").test(t.options.trigger||"")?t.$element.on("change.ParsleyFailedOnce",!1,e.proxy(t.validate,t)):new RegExp("keyup","i").test(t.options.trigger||"")?void 0:t.$element.on("keyup.ParsleyFailedOnce",!1,e.proxy(t.validate,t))},reset:function(t){t.$element.off(".Parsley"),t.$element.off(".ParsleyFailedOnce"),"undefined"!=typeof t._ui&&"ParsleyForm"!==t.__class__&&(t._ui.$errorsWrapper.children().each(function(){e(this).remove()}),this._resetClass(t),t._ui.validatedOnce=!1,t._ui.lastValidationResult=[],t._ui.validationInformationVisible=!1)},destroy:function(e){this.reset(e),"ParsleyForm"!==e.__class__&&("undefined"!=typeof e._ui&&e._ui.$errorsWrapper.remove(),delete e._ui)},_successClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.errorClass).addClass(e.options.successClass)},_errorClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.successClass).addClass(e.options.errorClass)},_resetClass:function(e){e._ui.$errorClassHandler.removeClass(e.options.successClass).removeClass(e.options.errorClass)}};var o=function(n,i,r,s){this.__class__="OptionsFactory",this.__id__=t.hash(4),this.formOptions=null,this.fieldOptions=null,this.staticOptions=e.extend(!0,{},n,i,r,{namespace:s})};o.prototype={get:function(e){if("undefined"==typeof e.__class__)throw new Error("Parsley Instance expected");switch(e.__class__){case"Parsley":return this.staticOptions;case"ParsleyForm":return this.getFormOptions(e);case"ParsleyField":case"ParsleyFieldMultiple":return this.getFieldOptions(e);default:throw new Error("Instance "+e.__class__+" is not supported")}},getFormOptions:function(n){return this.formOptions=t.attr(n.$element,this.staticOptions.namespace),e.extend({},this.staticOptions,this.formOptions)},getFieldOptions:function(n){return this.fieldOptions=t.attr(n.$element,this.staticOptions.namespace),null===this.formOptions&&"undefined"!=typeof n.parent&&(this.formOptions=this.getFormOptions(n.parent)),e.extend({},this.staticOptions,this.formOptions,this.fieldOptions)}};var l=function(n,i){if(this.__class__="ParsleyForm",this.__id__=t.hash(4),"OptionsFactory"!==t.get(i,"__class__"))throw new Error("You must give an OptionsFactory instance");this.OptionsFactory=i,this.$element=e(n),this.validationResult=null,this.options=this.OptionsFactory.get(this)};l.prototype={onSubmitValidate:function(t){return this.validate(void 0,void 0,t),!1===this.validationResult&&t instanceof e.Event&&(t.stopImmediatePropagation(),t.preventDefault()),this},validate:function(t,n,i){this.submitEvent=i,this.validationResult=!0;var r=[];this._refreshFields(),e.emit("parsley:form:validate",this);for(var s=0;s<this.fields.length;s++)(!t||this._isFieldInGroup(this.fields[s],t))&&(r=this.fields[s].validate(n),!0!==r&&r.length>0&&this.validationResult&&(this.validationResult=!1));return e.emit("parsley:form:validated",this),this.validationResult},isValid:function(e,t){this._refreshFields();for(var n=0;n<this.fields.length;n++)if((!e||this._isFieldInGroup(this.fields[n],e))&&!1===this.fields[n].isValid(t))return!1;return!0},_isFieldInGroup:function(n,i){return t.isArray(n.options.group)?-1!==e.inArray(n.options.group,i):n.options.group===i},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var e=this;return this.fields=[],this.fieldsMappedById={},this.$element.find(this.options.inputs).each(function(){var t=new window.Parsley(this,{},e);"ParsleyField"!==t.__class__&&"ParsleyFieldMultiple"!==t.__class__||t.$element.is(t.options.excluded)||"undefined"==typeof e.fieldsMappedById[t.__class__+"-"+t.__id__]&&(e.fieldsMappedById[t.__class__+"-"+t.__id__]=t,e.fields.push(t))}),this}};var u=function(n,i,r,s,a){if(!new RegExp("ParsleyField").test(t.get(n,"__class__")))throw new Error("ParsleyField or ParsleyFieldMultiple instance expected");if("function"!=typeof window.ParsleyValidator.validators[i]&&"Assert"!==window.ParsleyValidator.validators[i](r).__parentClass__)throw new Error("Valid validator expected");var o=function(e,n){return"undefined"!=typeof e.options[n+"Priority"]?e.options[n+"Priority"]:t.get(window.ParsleyValidator.validators[n](r),"priority")||2};return s=s||o(n,i),"function"==typeof window.ParsleyValidator.validators[i](r).requirementsTransformer&&(r=window.ParsleyValidator.validators[i](r).requirementsTransformer()),e.extend(window.ParsleyValidator.validators[i](r),{name:i,requirements:r,priority:s,groups:[s],isDomConstraint:a||t.attr(n.$element,n.options.namespace,i)})},c=function(n,i,r){this.__class__="ParsleyField",this.__id__=t.hash(4),this.$element=e(n),"undefined"!=typeof r?(this.parent=r,this.OptionsFactory=this.parent.OptionsFactory,this.options=this.OptionsFactory.get(this)):(this.OptionsFactory=i,this.options=this.OptionsFactory.get(this)),this.constraints=[],this.constraintsByName={},this.validationResult=[],this._bindConstraints()};c.prototype={validate:function(t){return this.value=this.getValue(),e.emit("parsley:field:validate",this),e.emit("parsley:field:"+(this.isValid(t,this.value)?"success":"error"),this),e.emit("parsley:field:validated",this),this.validationResult},isValid:function(e,t){this.refreshConstraints();var n=this._getConstraintsSortedPriorities();if(t=t||this.getValue(),0===t.length&&!this._isRequired()&&"undefined"==typeof this.options.validateIfEmpty&&!0!==e)return this.validationResult=[];if(!1===this.options.priorityEnabled)return!0===(this.validationResult=this.validateThroughValidator(t,this.constraints,"Any"));for(var i=0;i<n.length;i++)if(!0!==(this.validationResult=this.validateThroughValidator(t,this.constraints,n[i])))return!1;return!0},getValue:function(){var e;return e="undefined"!=typeof this.options.value?this.options.value:this.$element.val(),"undefined"==typeof e||null===e?"":!0===this.options.trimValue?e.replace(/^\s+|\s+$/g,""):e},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,n,i){if(e=e.toLowerCase(),"function"==typeof window.ParsleyValidator.validators[e]){var r=new u(this,e,t,n,i);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return this},updateConstraint:function(e,t,n){return this.removeConstraint(e).addConstraint(e,t,n)},_bindConstraints:function(){for(var e=[],t=0;t<this.constraints.length;t++)!1===this.constraints[t].isDomConstraint&&e.push(this.constraints[t]);this.constraints=e;for(var n in this.options)this.addConstraint(n,this.options[n]);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){(this.$element.hasClass("required")||this.$element.attr("required"))&&this.addConstraint("required",!0,void 0,!0),"string"==typeof this.$element.attr("pattern")&&this.addConstraint("pattern",this.$element.attr("pattern"),void 0,!0),"undefined"!=typeof this.$element.attr("min")&&"undefined"!=typeof this.$element.attr("max")?this.addConstraint("range",[this.$element.attr("min"),this.$element.attr("max")],void 0,!0):"undefined"!=typeof this.$element.attr("min")?this.addConstraint("min",this.$element.attr("min"),void 0,!0):"undefined"!=typeof this.$element.attr("max")&&this.addConstraint("max",this.$element.attr("max"),void 0,!0);var e=this.$element.attr("type");return"undefined"==typeof e?this:"number"===e?this.addConstraint("type","integer",void 0,!0):new RegExp(e,"i").test("email url range")?this.addConstraint("type",e,void 0,!0):this},_isRequired:function(){return"undefined"==typeof this.constraintsByName.required?!1:!1!==this.constraintsByName.required.requirements},_getConstraintsSortedPriorities:function(){for(var e=[],t=0;t<this.constraints.length;t++)-1===e.indexOf(this.constraints[t].priority)&&e.push(this.constraints[t].priority);return e.sort(function(e,t){return t-e}),e}};var h=function(){this.__class__="ParsleyFieldMultiple"};h.prototype={addElement:function(e){return this.$elements.push(e),this},refreshConstraints:function(){var t;if(this.constraints=[],this.$element.is("select"))return this.actualizeOptions()._bindConstraints(),this;for(var n=0;n<this.$elements.length;n++)if(e("html").has(this.$elements[n]).length){t=this.$elements[n].data("ParsleyFieldMultiple").refreshConstraints().constraints;for(var i=0;i<t.length;i++)this.addConstraint(t[i].name,t[i].requirements,t[i].priority,t[i].isDomConstraint)}else this.$elements.splice(n,1);return this},getValue:function(){if("undefined"!=typeof this.options.value)return this.options.value;if(this.$element.is("input[type=radio]"))return e("["+this.options.namespace+'multiple="'+this.options.multiple+'"]:checked').val()||"";if(this.$element.is("input[type=checkbox]")){var t=[];return e("["+this.options.namespace+'multiple="'+this.options.multiple+'"]:checked').each(function(){t.push(e(this).val())}),t.length?t:[]}return this.$element.is("select")&&null===this.$element.val()?[]:this.$element.val()},_init:function(e){return this.$elements=[this.$element],this.options.multiple=e,this}};var d=e({}),f={};e.listen=function(e){if("undefined"==typeof f[e]&&(f[e]=[]),"function"==typeof arguments[1])return f[e].push({fn:arguments[1]});if("object"==typeof arguments[1]&&"function"==typeof arguments[2])return f[e].push({fn:arguments[2],ctxt:arguments[1]});throw new Error("Wrong parameters")},e.listenTo=function(e,t,n){if("undefined"==typeof f[t]&&(f[t]=[]),!(e instanceof c||e instanceof l))throw new Error("Must give Parsley instance");if("string"!=typeof t||"function"!=typeof n)throw new Error("Wrong parameters");f[t].push({instance:e,fn:n})},e.unsubscribe=function(e,t){if("undefined"!=typeof f[e]){if("string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");for(var n=0;n<f[e].length;n++)if(f[e][n].fn===t)return f[e].splice(n,1)}},e.unsubscribeTo=function(e,t){if("undefined"!=typeof f[t]){if(!(e instanceof c||e instanceof l))throw new Error("Must give Parsley instance");for(var n=0;n<f[t].length;n++)if("undefined"!=typeof f[t][n].instance&&f[t][n].instance.__id__===e.__id__)return f[t].splice(n,1)}},e.unsubscribeAll=function(e){"undefined"!=typeof f[e]&&delete f[e]},e.emit=function(e,t){if("undefined"!=typeof f[e])for(var n=0;n<f[e].length;n++)if("undefined"!=typeof f[e][n].instance){if(t instanceof c||t instanceof l)if(f[e][n].instance.__id__!==t.__id__){if(f[e][n].instance instanceof l&&t instanceof c)for(var i=0;i<f[e][n].instance.fields.length;i++)if(f[e][n].instance.fields[i].__id__===t.__id__){f[e][n].fn.apply(d,Array.prototype.slice.call(arguments,1));continue}}else f[e][n].fn.apply(d,Array.prototype.slice.call(arguments,1))}else f[e][n].fn.apply("undefined"!=typeof f[e][n].ctxt?f[e][n].ctxt:d,Array.prototype.slice.call(arguments,1))},e.subscribed=function(){return f},window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.en=e.extend(window.ParsleyConfig.i18n.en||{},{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),"undefined"!=typeof window.ParsleyValidator&&window.ParsleyValidator.addCatalog("en",window.ParsleyConfig.i18n.en,!0);var p=function(n,i,r){if(this.__class__="Parsley",this.__version__="2.0.5",this.__id__=t.hash(4),"undefined"==typeof n)throw new Error("You must give an element");if("undefined"!=typeof r&&"ParsleyForm"!==r.__class__)throw new Error("Parent instance must be a ParsleyForm instance");return this.init(e(n),i,r)};p.prototype={init:function(e,i,r){if(!e.length)throw new Error("You must bind Parsley on an existing element.");if(this.$element=e,this.$element.data("Parsley")){var s=this.$element.data("Parsley");return"undefined"!=typeof r&&(s.parent=r),s}return this.OptionsFactory=new o(n,t.get(window,"ParsleyConfig")||{},i,this.getNamespace(i)),this.options=this.OptionsFactory.get(this),this.$element.is("form")||t.attr(this.$element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.$element.is(this.options.inputs)&&!this.$element.is(this.options.excluded)?this.isMultiple()?this.handleMultiple(r):this.bind("parsleyField",r):this},isMultiple:function(){return this.$element.is("input[type=radio], input[type=checkbox]")&&"undefined"==typeof this.options.multiple||this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple")},handleMultiple:function(n){var i,r,s,a=this;if(this.options=e.extend(this.options,n?n.OptionsFactory.get(n):{},t.attr(this.$element,this.options.namespace)),this.options.multiple?r=this.options.multiple:"undefined"!=typeof this.$element.attr("name")&&this.$element.attr("name").length?r=i=this.$element.attr("name"):"undefined"!=typeof this.$element.attr("id")&&this.$element.attr("id").length&&(r=this.$element.attr("id")),this.$element.is("select")&&"undefined"!=typeof this.$element.attr("multiple"))return this.bind("parsleyFieldMultiple",n,r||this.__id__);if("undefined"==typeof r)return window.console&&window.console.warn&&window.console.warn("To be binded by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;if(r=r.replace(/(:|\.|\[|\]|\$)/g,""),"undefined"!=typeof i&&e('input[name="'+i+'"]').each(function(){e(this).is("input[type=radio], input[type=checkbox]")&&e(this).attr(a.options.namespace+"multiple",r)}),e("["+this.options.namespace+"multiple="+r+"]").length)for(var o=0;o<e("["+this.options.namespace+"multiple="+r+"]").length;o++)if("undefined"!=typeof e(e("["+this.options.namespace+"multiple="+r+"]").get(o)).data("Parsley")){s=e(e("["+this.options.namespace+"multiple="+r+"]").get(o)).data("Parsley"),this.$element.data("ParsleyFieldMultiple")||(s.addElement(this.$element),this.$element.attr(this.options.namespace+"id",s.__id__));break}return this.bind("parsleyField",n,r,!0),s||this.bind("parsleyFieldMultiple",n,r)},getNamespace:function(e){return"undefined"!=typeof this.$element.data("parsleyNamespace")?this.$element.data("parsleyNamespace"):"undefined"!=typeof t.get(e,"namespace")?e.namespace:"undefined"!=typeof t.get(window,"ParsleyConfig.namespace")?window.ParsleyConfig.namespace:n.namespace},bind:function(n,r,s,a){var o;switch(n){case"parsleyForm":o=e.extend(new l(this.$element,this.OptionsFactory),new i,window.ParsleyExtend)._bindFields();break;case"parsleyField":o=e.extend(new c(this.$element,this.OptionsFactory,r),new i,window.ParsleyExtend);break;case"parsleyFieldMultiple":o=e.extend(new c(this.$element,this.OptionsFactory,r),new i,new h,window.ParsleyExtend)._init(s);break;default:throw new Error(n+"is not a supported Parsley type")}return"undefined"!=typeof s&&t.setAttr(this.$element,this.options.namespace,"multiple",s),"undefined"!=typeof a?(this.$element.data("ParsleyFieldMultiple",o),o):(new RegExp("ParsleyF","i").test(o.__class__)&&(this.$element.data("Parsley",o),e.emit("parsley:"+("parsleyForm"===n?"form":"field")+":init",o)),o)}},e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var n=[];return this.each(function(){n.push(e(this).parsley(t))}),n}return e(this).length?new p(this,t):(window.console&&window.console.warn&&window.console.warn("You must bind Parsley on an existing element."),void 0)},window.ParsleyUI="function"==typeof t.get(window,"ParsleyConfig.ParsleyUI")?(new window.ParsleyConfig.ParsleyUI).listen():(new a).listen(),"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={}),"undefined"==typeof window.ParsleyConfig&&(window.ParsleyConfig={}),window.Parsley=window.psly=p,window.ParsleyUtils=t,window.ParsleyValidator=new s(window.ParsleyConfig.validators,window.ParsleyConfig.i18n),!1!==t.get(window,"ParsleyConfig.autoBind")&&e(document).ready(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()})}),function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function r(e){return function(){return this[e].apply(this,arguments)}}function s(t,n){function i(e,t){return t.toLowerCase()}var r,s=e(t).data(),a={},o=new RegExp("^"+n.toLowerCase()+"([A-Z])");n=new RegExp("^"+n.toLowerCase());for(var l in s)n.test(l)&&(r=l.replace(o,i),a[r]=s[l]);return a}function a(t){var n={};if(p[t]||(t=t.split("-")[0],p[t])){var i=p[t];return e.each(f,function(e,t){t in i&&(n[t]=i[t])}),n}}var o=e(window),l=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,i=this.length;i>n;n++)if(this[n].valueOf()===t)return n;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.splice(0)},copy:function(){var e=new l;return e.replace(this),e}};return function(){var n=[];return n.push.apply(n,arguments),e.extend(n,t),n}}(),u=function(t,n){this.dates=new l,this.viewDate=i(),this.focusDate=null,this._process_options(n),this.element=e(t),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.is(".date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=e(m.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(e,t){return parseInt(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};u.prototype={constructor:u,_process_options:function(t){this._o=e.extend({},this._o,t);var n=this.o=e.extend({},this._o),i=n.language;switch(p[i]||(i=i.split("-")[0],p[i]||(i=d.language)),n.language=i,n.startView){case 2:case"decade":n.startView=2;break;case 1:case"year":n.startView=1;break;default:n.startView=0}switch(n.minViewMode){case 1:case"months":n.minViewMode=1;break;case 2:case"years":n.minViewMode=2;break;default:n.minViewMode=0}n.startView=Math.max(n.startView,n.minViewMode),n.multidate!==!0&&(n.multidate=Number(n.multidate)||!1,n.multidate=n.multidate!==!1?Math.max(0,n.multidate):1),n.multidateSeparator=String(n.multidateSeparator),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var r=m.parseFormat(n.format);n.startDate!==-1/0&&(n.startDate=n.startDate?n.startDate instanceof Date?this._local_to_utc(this._zero_time(n.startDate)):m.parseDate(n.startDate,r,n.language):-1/0),1/0!==n.endDate&&(n.endDate=n.endDate?n.endDate instanceof Date?this._local_to_utc(this._zero_time(n.endDate)):m.parseDate(n.endDate,r,n.language):1/0),n.daysOfWeekDisabled=n.daysOfWeekDisabled||[],e.isArray(n.daysOfWeekDisabled)||(n.daysOfWeekDisabled=n.daysOfWeekDisabled.split(/[,\s]*/)),n.daysOfWeekDisabled=e.map(n.daysOfWeekDisabled,function(e){return parseInt(e,10)});var s=String(n.orientation).toLowerCase().split(/\s+/g),a=n.orientation.toLowerCase();if(s=e.grep(s,function(e){return/^auto|left|right|top|bottom$/.test(e)}),n.orientation={x:"auto",y:"auto"},a&&"auto"!==a)if(1===s.length)switch(s[0]){case"top":case"bottom":n.orientation.y=s[0];
  15. break;case"left":case"right":n.orientation.x=s[0]}else a=e.grep(s,function(e){return/^left|right$/.test(e)}),n.orientation.x=a[0]||"auto",a=e.grep(s,function(e){return/^top|bottom$/.test(e)}),n.orientation.y=a[0]||"auto";else;},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var n,i,r,s=0;s<e.length;s++)n=e[s][0],2===e[s].length?(i=t,r=e[s][1]):3===e[s].length&&(i=e[s][1],r=e[s][2]),n.on(r,i)},_unapplyEvents:function(e){for(var n,i,r,s=0;s<e.length;s++)n=e[s][0],2===e[s].length?(r=t,i=e[s][1]):3===e[s].length&&(r=e[s][1],i=e[s][2]),n.off(i,r)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:e.proxy(this.show,this),keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:e.proxy(this.show,this),keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this)}],[this.component,{click:e.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:e.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:e.proxy(function(e){this._focused_from=e.target},this)}],[this.element,{blur:e.proxy(function(e){this._focused_from=e.target},this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,n){var i=n||this.dates.get(-1),r=this._utc_to_local(i);this.element.trigger({type:t,date:r,dates:e.map(this.dates,this._utc_to_local),format:e.proxy(function(e,t){0===arguments.length?(e=this.dates.length-1,t=this.o.format):"string"==typeof e&&(t=e,e=this.dates.length-1),t=t||this.o.format;var n=this.dates.get(e);return m.formatDate(n,t,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.place(),this._attachSecondaryEvents(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(e){return e&&new Date(e.getTime()+6e4*e.getTimezoneOffset())},_local_to_utc:function(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset())},_zero_time:function(e){return e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return e&&new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,function(e){return new Date(e)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,t),this._trigger("changeDate"),this.setValue()},setUTCDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,e.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue()},setDate:r("setDates"),setUTCDate:r("setUTCDates"),setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e).change():this.component&&this.element.find("input").val(e).change()},getFormattedDate:function(n){n===t&&(n=this.o.format);var i=this.o.language;return e.map(this.dates,function(e){return m.formatDate(e,n,i)}).join(this.o.multidateSeparator)},setStartDate:function(e){this._process_options({startDate:e}),this.update(),this.updateNavArrows()},setEndDate:function(e){this._process_options({endDate:e}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(e){this._process_options({daysOfWeekDisabled:e}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var t=this.picker.outerWidth(),n=this.picker.outerHeight(),i=10,r=o.width(),s=o.height(),a=o.scrollTop(),l=parseInt(this.element.parents().filter(function(){return"auto"!==e(this).css("z-index")}).first().css("z-index"))+10,u=this.component?this.component.parent().offset():this.element.offset(),c=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),d=u.left,f=u.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(d-=t-h)):(this.picker.addClass("datepicker-orient-left"),u.left<0?d-=u.left-i:u.left+t>r&&(d=r-t-i));var p,m,g=this.o.orientation.y;"auto"===g&&(p=-a+u.top-n,m=a+s-(u.top+c+n),g=Math.max(p,m)===m?"top":"bottom"),this.picker.addClass("datepicker-orient-"+g),"top"===g?f+=c:f-=n+parseInt(this.picker.css("padding-top")),this.picker.css({top:f,left:d,zIndex:l})}},_allow_update:!0,update:function(){if(this._allow_update){var t=this.dates.copy(),n=[],i=!1;arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),i=!0):(n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),n=n&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return m.parseDate(e,this.o.format,this.o.language)},this)),n=e.grep(n,e.proxy(function(e){return e<this.o.startDate||e>this.o.endDate||!e},this),!0),this.dates.replace(n),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),i?this.setValue():n.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill()}},fillDow:function(){var e=this.o.weekStart,t="<tr>";if(this.o.calendarWeeks){var n='<th class="cw">&nbsp;</th>';t+=n,this.picker.find(".datepicker-days thead tr:first-child").prepend(n)}for(;e<this.o.weekStart+7;)t+='<th class="dow">'+p[this.o.language].daysMin[e++%7]+"</th>";t+="</tr>",this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){for(var e="",t=0;12>t;)e+='<span class="month">'+p[this.o.language].monthsShort[t++]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),s=new Date;return t.getUTCFullYear()<i||t.getUTCFullYear()===i&&t.getUTCMonth()<r?n.push("old"):(t.getUTCFullYear()>i||t.getUTCFullYear()===i&&t.getUTCMonth()>r)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===s.getFullYear()&&t.getUTCMonth()===s.getMonth()&&t.getUTCDate()===s.getDate()&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&n.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&n.push("range"),-1!==e.inArray(t.valueOf(),this.range)&&n.push("selected")),n},fill:function(){var i,r=new Date(this.viewDate),s=r.getUTCFullYear(),a=r.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,l=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=1/0!==this.o.endDate?this.o.endDate.getUTCFullYear():1/0,c=1/0!==this.o.endDate?this.o.endDate.getUTCMonth():1/0,h=p[this.o.language].today||p.en.today||"",d=p[this.o.language].clear||p.en.clear||"";this.picker.find(".datepicker-days thead th.datepicker-switch").text(p[this.o.language].months[a]+" "+s),this.picker.find("tfoot th.today").text(h).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(d).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var f=n(s,a-1,28),g=m.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth());f.setUTCDate(g),f.setUTCDate(g-(f.getUTCDay()-this.o.weekStart+7)%7);var v=new Date(f);v.setUTCDate(v.getUTCDate()+42),v=v.valueOf();for(var y,b=[];f.valueOf()<v;){if(f.getUTCDay()===this.o.weekStart&&(b.push("<tr>"),this.o.calendarWeeks)){var w=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),k=new Date(Number(w)+(11-w.getUTCDay())%7*864e5),C=new Date(Number(C=n(k.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),_=(k-C)/864e5/7+1;b.push('<td class="cw">'+_+"</td>")}if(y=this.getClassNames(f),y.push("day"),this.o.beforeShowDay!==e.noop){var T=this.o.beforeShowDay(this._utc_to_local(f));T===t?T={}:"boolean"==typeof T?T={enabled:T}:"string"==typeof T&&(T={classes:T}),T.enabled===!1&&y.push("disabled"),T.classes&&(y=y.concat(T.classes.split(/\s+/))),T.tooltip&&(i=T.tooltip)}y=e.unique(y),b.push('<td class="'+y.join(" ")+'"'+(i?' title="'+i+'"':"")+">"+f.getUTCDate()+"</td>"),f.getUTCDay()===this.o.weekEnd&&b.push("</tr>"),f.setUTCDate(f.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(b.join(""));var x=this.picker.find(".datepicker-months").find("th:eq(1)").text(s).end().find("span").removeClass("active");e.each(this.dates,function(e,t){t.getUTCFullYear()===s&&x.eq(t.getUTCMonth()).addClass("active")}),(o>s||s>u)&&x.addClass("disabled"),s===o&&x.slice(0,l).addClass("disabled"),s===u&&x.slice(c+1).addClass("disabled"),b="",s=10*parseInt(s/10,10);var S=this.picker.find(".datepicker-years").find("th:eq(1)").text(s+"-"+(s+9)).end().find("td");s-=1;for(var D,E=e.map(this.dates,function(e){return e.getUTCFullYear()}),M=-1;11>M;M++)D=["year"],-1===M?D.push("old"):10===M&&D.push("new"),-1!==e.inArray(s,E)&&D.push("active"),(o>s||s>u)&&D.push("disabled"),b+='<span class="'+D.join(" ")+'">'+s+"</span>",s+=1;S.html(b)},updateNavArrows:function(){if(this._allow_update){var e=new Date(this.viewDate),t=e.getUTCFullYear(),n=e.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&t<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),1/0!==this.o.endDate&&t>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&t<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),1/0!==this.o.endDate&&t>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault();var i,r,s,a=e(t.target).closest("span, td, th");if(1===a.length)switch(a[0].nodeName.toLowerCase()){case"th":switch(a[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var o=m.modes[this.viewMode].navStep*("prev"===a[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,o),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,o),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var l=new Date;l=n(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0),this.showMode(-2);var u="linked"===this.o.todayBtn?null:"view";this._setDate(l,u);break;case"clear":var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()}break;case"span":a.is(".disabled")||(this.viewDate.setUTCDate(1),a.is(".month")?(s=1,r=a.parent().find("span").index(a),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(n(i,r,s))):(s=1,r=0,i=parseInt(a.text(),10)||0,this.viewDate.setUTCFullYear(i),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(n(i,r,s))),this.showMode(-1),this.fill());break;case"td":a.is(".day")&&!a.is(".disabled")&&(s=parseInt(a.text(),10)||1,i=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a.is(".old")?0===r?(r=11,i-=1):r-=1:a.is(".new")&&(11===r?(r=0,i+=1):r+=1),this._setDate(n(i,r,s)))}this.picker.is(":visible")&&this._focused_from&&e(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e?-1!==t?this.dates.remove(t):this.dates.push(e):this.dates.clear(),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),this._trigger("changeDate");var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),!this.o.autoclose||t&&"date"!==t||this.hide()},moveMonth:function(e,n){if(!e)return t;if(!n)return e;var i,r,s=new Date(e.valueOf()),a=s.getUTCDate(),o=s.getUTCMonth(),l=Math.abs(n);if(n=n>0?1:-1,1===l)r=-1===n?function(){return s.getUTCMonth()===o}:function(){return s.getUTCMonth()!==i},i=o+n,s.setUTCMonth(i),(0>i||i>11)&&(i=(i+12)%12);else{for(var u=0;l>u;u++)s=this.moveMonth(s,n);i=s.getUTCMonth(),s.setUTCDate(a),r=function(){return i!==s.getUTCMonth()}}for(;r();)s.setUTCDate(--a),s.setUTCMonth(i);return s},moveYear:function(e,t){return this.moveMonth(e,12*t)},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":not(:visible)"))return 27===e.keyCode&&this.show(),void 0;var t,n,r,s=!1,a=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=37===e.keyCode?-1:1,e.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),t),r=this.moveYear(a,t),this._trigger("changeYear",this.viewDate)):e.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),t),r=this.moveMonth(a,t),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||i()),n.setUTCDate(n.getUTCDate()+t),r=new Date(a),r.setUTCDate(a.getUTCDate()+t)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=r,this.setValue(),this.fill(),e.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38===e.keyCode?-1:1,e.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),t),r=this.moveYear(a,t),this._trigger("changeYear",this.viewDate)):e.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),t),r=this.moveMonth(a,t),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||i()),n.setUTCDate(n.getUTCDate()+7*t),r=new Date(a),r.setUTCDate(a.getUTCDate()+7*t)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=r,this.setValue(),this.fill(),e.preventDefault());break;case 32:break;case 13:a=this.focusDate||this.dates.get(-1)||this.viewDate,this._toggle_multidate(a),s=!0,this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(s){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var o;this.isInput?o=this.element:this.component&&(o=this.element.find("input")),o&&o.change()}},showMode:function(e){e&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+e))),this.picker.find(">div").hide().filter(".datepicker-"+m.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var c=function(t,n){this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,e(this.inputs).datepicker(n).bind("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=e(t.target).data("datepicker"),i=n.getUTCDate(),r=e.inArray(t.target,this.inputs),s=this.inputs.length;if(-1!==r){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[r])for(;s>r&&i>this.dates[r];)this.pickers[r++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){e.map(this.pickers,function(e){e.remove()}),delete this.element.data().datepicker}};var h=e.fn.datepicker;e.fn.datepicker=function(n){var i=Array.apply(null,arguments);i.shift();var r;return this.each(function(){var o=e(this),l=o.data("datepicker"),h="object"==typeof n&&n;if(!l){var f=s(this,"date"),p=e.extend({},d,f,h),m=a(p.language),g=e.extend({},d,m,f,h);if(o.is(".input-daterange")||g.inputs){var v={inputs:g.inputs||o.find("input").toArray()};o.data("datepicker",l=new c(this,e.extend(g,v)))}else o.data("datepicker",l=new u(this,g))}return"string"==typeof n&&"function"==typeof l[n]&&(r=l[n].apply(l,i),r!==t)?!1:void 0}),r!==t?r:this};var d=e.fn.datepicker.defaults={autoclose:!1,beforeShowDay:e.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},f=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=u;var p=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},m={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4===0&&e%100!==0||e%400===0},getDaysInMonth:function(e,t){return[31,m.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(e){var t=e.replace(this.validParts,"\x00").split("\x00"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(i,r,s){function a(){var e=this.slice(0,d[c].length),t=d[c].slice(0,e.length);return e===t}if(!i)return t;if(i instanceof Date)return i;"string"==typeof r&&(r=m.parseFormat(r));var o,l,c,h=/([\-+]\d+)([dmwy])/,d=i.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(i)){for(i=new Date,c=0;c<d.length;c++)switch(o=h.exec(d[c]),l=parseInt(o[1]),o[2]){case"d":i.setUTCDate(i.getUTCDate()+l);break;case"m":i=u.prototype.moveMonth.call(u.prototype,i,l);break;case"w":i.setUTCDate(i.getUTCDate()+7*l);break;case"y":i=u.prototype.moveYear.call(u.prototype,i,l)}return n(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),0,0,0)}d=i&&i.match(this.nonpunctuation)||[],i=new Date;var f,g,v={},y=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(e,t){return e.setUTCFullYear(t)},yy:function(e,t){return e.setUTCFullYear(2e3+t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;0>t;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};b.M=b.MM=b.mm=b.m,b.dd=b.d,i=n(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0);var w=r.parts.slice();if(d.length!==w.length&&(w=e(w).filter(function(t,n){return-1!==e.inArray(n,y)}).toArray()),d.length===w.length){var k;for(c=0,k=w.length;k>c;c++){if(f=parseInt(d[c],10),o=w[c],isNaN(f))switch(o){case"MM":g=e(p[s].months).filter(a),f=e.inArray(g[0],p[s].months)+1;break;case"M":g=e(p[s].monthsShort).filter(a),f=e.inArray(g[0],p[s].monthsShort)+1}v[o]=f}var C,_;for(c=0;c<y.length;c++)_=y[c],_ in v&&!isNaN(v[_])&&(C=new Date(i),b[_](C,v[_]),isNaN(C)||(i=C))}return i},formatDate:function(t,n,i){if(!t)return"";"string"==typeof n&&(n=m.parseFormat(n));var r={d:t.getUTCDate(),D:p[i].daysShort[t.getUTCDay()],DD:p[i].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:p[i].monthsShort[t.getUTCMonth()],MM:p[i].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};r.dd=(r.d<10?"0":"")+r.d,r.mm=(r.m<10?"0":"")+r.m,t=[];for(var s=e.extend([],n.separators),a=0,o=n.parts.length;o>=a;a++)s.length&&t.push(s.shift()),t.push(r[n.parts[a]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&laquo;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};m.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+m.headTemplate+"<tbody></tbody>"+m.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=m,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=h,this},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),n.datepicker("show"))}),e(function(){e('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),function(e){e.fn.datepicker.dates.ar={days:["'D#-/","'D'+FJF","'D+D'+'!","'D#1(9'!","'D.EJ3","'D,E9)","'D3(*","'D#-/"],daysShort:["#-/","'+FJF","+D'+'!","#1(9'!",".EJ3",",E9)","3(*","#-/"],daysMin:["-","F","+","9",".",",","3","-"],months:["JF'J1","A(1'J1","E'13","#(1JD","E'JH","JHFJH","JHDJH","#:373","3(*E(1","#C*H(1","FHAE(1","/J3E(1"],monthsShort:["JF'J1","A(1'J1","E'13","#(1JD","E'JH","JHFJH","JHDJH","#:373","3(*E(1","#C*H(1","FHAE(1","/J3E(1"],today:"G0' 'DJHE",rtl:!0}}(jQuery),function(e){e.fn.datepicker.dates.az={days:["Bazar","Bazar ertYsi","ÇYr_YnbY ax_am1","ÇYr_YnbY","CümY ax_am1","CümY","^YnbY","Bazar"],daysShort:["B.","B.e","Ç.a","Ç.","C.a","C.","^.","B."],daysMin:["B.","B.e","Ç.a","Ç.","C.a","C.","^.","B."],months:["Yanvar","Fevral","Mart","Aprel","May","0yun","0yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],monthsShort:["Yan","Fev","Mar","Apr","May","0yun","0yul","Avq","Sen","Okt","Noy","Dek"],today:"Bu gün",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.bg={days:["545;O",">=545;=8:","B>@=8:","!@O40","'5B2J@BJ:","5BJ:","!J1>B0","545;O"],daysShort:["54",">=","B>","!@O","'5B","5B","!J1","54"],daysMin:["","","","!","'","","!",""],months:["/=C0@8","$52@C0@8","0@B","?@8;","09",".=8",".;8","23CAB","!5?B5<2@8",":B><2@8",">5<2@8","5:5<2@8"],monthsShort:["/=","$52","0@","?@","09",".=8",".;8","23","!5?",":B",">5","5:"],today:"4=5A"}}(jQuery),function(e){e.fn.datepicker.dates.ca={days:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte","Diumenge"],daysShort:["Diu","Dil","Dmt","Dmc","Dij","Div","Dis","Diu"],daysMin:["dg","dl","dt","dc","dj","dv","ds","dg"],months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthsShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],today:"Avui"}}(jQuery),function(e){e.fn.datepicker.dates.cs={days:["Nedle","Pondlí","Úterý","StYeda"," tvrtek","Pátek","Sobota","Nedle"],daysShort:["Ned","Pon","Úte","StY"," tv","Pát","Sob","Ned"],daysMin:["Ne","Po","Út","St"," t","Pá","So","Ne"],months:["Leden","Únor","BYezen","Duben","Kvten"," erven"," ervenec","Srpen","ZáYí","Xíjen","Listopad","Prosinec"],monthsShort:["Led","Úno","BYe","Dub","Kv"," er"," nc","Srp","ZáY","Xíj","Lis","Pro"],today:"Dnes"}}(jQuery),function(e){e.fn.datepicker.dates.cy={days:["Sul","Llun","Mawrth","Mercher","Iau","Gwener","Sadwrn","Sul"],daysShort:["Sul","Llu","Maw","Mer","Iau","Gwe","Sad","Sul"],daysMin:["Su","Ll","Ma","Me","Ia","Gwe","Sa","Su"],months:["Ionawr","Chewfror","Mawrth","Ebrill","Mai","Mehefin","Gorfennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"],monthsShort:["Ion","Chw","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rha"],today:"Heddiw"}}(jQuery),function(e){e.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",clear:"Nulstil"}}(jQuery),function(e){e.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.el={days:["šÅÁ¹±º®","”µÅÄ­Á±","¤Á¯Ä·","¤µÄ¬ÁÄ·"," ­¼ÀÄ·"," ±Á±ÃºµÅ®","£¬²²±Ä¿","šÅÁ¹±º®"],daysShort:["šÅÁ","”µÅ","¤Á¹","¤µÄ"," µ¼"," ±Á","£±²","šÅÁ"],daysMin:["šÅ","”µ","¤Á","¤µ"," µ"," ±","£±","šÅ"],months:["™±½¿Å¬Á¹¿Â","¦µ²Á¿Å¬Á¹¿Â","œ¬ÁĹ¿Â","‘ÀÁ¯»¹¿Â","œ¬¹¿Â","™¿Í½¹¿Â","™¿Í»¹¿Â","‘ͳ¿ÅÃÄ¿Â","£µÀÄ­¼²Á¹¿Â","ŸºÄβÁ¹¿Â","¿­¼²Á¹¿Â","”µº­¼²Á¹¿Â"],monthsShort:["™±½","¦µ²","œ±Á","‘ÀÁ","œ¬¹","™¿Å½","™¿Å»","‘ų","£µÀ","ŸºÄ","¿µ","”µº"],today:"£®¼µÁ±"}}(jQuery),function(e){e.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy"}}(jQuery),function(e){e.fn.datepicker.dates.et={days:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev","Pühapäev"],daysShort:["Pühap","Esmasp","Teisip","Kolmap","Neljap","Reede","Laup","Pühap"],daysMin:["P","E","T","K","N","R","L","P"],months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],monthsShort:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],today:"Täna",clear:"Tühjenda",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.fa={days:["Ì© 4F(G","/H4F(G","3G 4F(G","†G'14F(G","~F, 4F(G",",E9G","4F(G","Ì© 4F(G"],daysShort:["Ì©","/H","3G","†G'1","~F,",",E9G","4F(G","Ì©"],daysMin:["Ì","/","3","†","~",",","4","Ì"],months:["˜'FHÌG","AH1ÌG","E'13",""H1ÌD","EG","˜H&F","˜H&ÌG","'H*","3~*'E(1","'©*(1","FH'E(1","/3'E(1"],monthsShort:["˜'F","AH1","E'1",""H1","EG","˜HF","˜HÌ","'H*","3~*","'©*","FH'","/3'"],today:"'E1H2",clear:"~'© ©F",weekStart:1,format:"yyyy/mm/dd"}}(jQuery),function(e){e.fn.datepicker.dates.fi={days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai","sunnuntai"],daysShort:["sun","maa","tii","kes","tor","per","lau","sun"],daysMin:["su","ma","ti","ke","to","pe","la","su"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],monthsShort:["tam","hel","maa","huh","tou","kes","hei","elo","syy","lok","mar","jou"],today:"tänään",weekStart:1,format:"d.m.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.fr={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["D","L","Ma","Me","J","V","S","D"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fév","Mar","Avr","Mai","Jui","Jul","Aou","Sep","Oct","Nov","Déc"],today:"Aujourd'hui",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.gl={days:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mér","Xov","Ven","Sáb","Dom"],daysMin:["Do","Lu","Ma","Me","Xo","Ve","Sa","Do"],months:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],monthsShort:["Xan","Feb","Mar","Abr","Mai","Xun","Xul","Ago","Sep","Out","Nov","Dec"],today:"Hoxe",clear:"Limpar"}}(jQuery),function(e){e.fn.datepicker.dates.he={days:["èÐéÕß","éàÙ","éÜÙéÙ","èÑÙâÙ","×ÞÙéÙ","éÙéÙ","éÑê","èÐéÕß"],daysShort:["Ð","Ñ","Ò","Ó","Ô","Õ","é","Ð"],daysMin:["Ð","Ñ","Ò","Ó","Ô","Õ","é","Ð"],months:["ÙàÕÐè","äÑèÕÐè","Þèå","ÐäèÙÜ","ÞÐÙ","ÙÕàÙ","ÙÕÜÙ","ÐÕÒÕáØ","áäØÞÑè","ÐÕçØÕÑè","àÕÑÞÑè","ÓæÞÑè"],monthsShort:["ÙàÕ","äÑè","Þèå","Ðäè","ÞÐÙ","ÙÕà","ÙÕÜ","ÐÕÒ","áäØ","ÐÕç","àÕÑ","ÓæÞ"],today:"ÔÙÕÝ",rtl:!0}}(jQuery),function(e){e.fn.datepicker.dates.hr={days:["Nedjelja","Ponedjeljak","Utorak","Srijeda"," etvrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Sri"," et","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr"," e","Pe","Su","Ne"],months:["Sije
  16. anj","Velja
  17. a","O~ujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sij","Velj","O~u","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],today:"Danas"}}(jQuery),function(e){e.fn.datepicker.dates.hu={days:["Vasárnap","HétfQ","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo","Vas"],daysMin:["Va","Hé","Ke","Sz","Cs","Pé","Sz","Va"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Sze","Okt","Nov","Dec"],today:"Ma",weekStart:1,format:"yyyy.mm.dd"}}(jQuery),function(e){e.fn.datepicker.dates.id={days:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],daysShort:["Mgu","Sen","Sel","Rab","Kam","Jum","Sab","Mgu"],daysMin:["Mg","Sn","Sl","Ra","Ka","Ju","Sa","Mg"],months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"],today:"Hari Ini",clear:"Kosongkan"}}(jQuery),function(e){e.fn.datepicker.dates.is={days:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur","Sunnudagur"],daysShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau","Sun"],daysMin:["Su","Má","Þr","Mi","Fi","Fö","La","Su"],months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],today:"Í Dag"}}(jQuery),function(e){e.fn.datepicker.dates.it={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi",clear:"Cancella",weekStart:1,format:"dd/mm/yyyy"}
  18. }(jQuery),function(e){e.fn.datepicker.dates.ja={days:["åÜ","Ü","kÜ","4Ü","(Ü","ÑÜ","Ü","åÜ"],daysShort:["å","","k","4","(","Ñ","","å"],daysMin:["å","","k","4","(","Ñ","","å"],months:["1","2","3","4","5","6","7","8","9","10","11","12"],monthsShort:["1","2","3","4","5","6","7","8","9","10","11","12"],today:"Êå",format:"yyyy/mm/dd"}}(jQuery),function(e){e.fn.datepicker.dates.ka={days:["ÙÕØàÐ","ÝàèÐÑÐ×Ø","áÐÛèÐÑÐ×Ø","Ý×îèÐÑÐ×Ø","îã×èÐÑÐ×Ø","ÞÐàÐáÙÔÕØ","èÐÑÐ×Ø","ÙÕØàÐ"],daysShort:["ÙÕØ","Ýàè","áÐÛ","Ý×î","îã×","ÞÐà","èÐÑ","ÙÕØ"],daysMin:["ÙÕ","Ýà","áÐ","Ý×","îã","ÞÐ","èÐ","ÙÕ"],months:["ØÐÜÕÐàØ","×ÔÑÔàÕÐÚØ","ÛÐàâØ","ÐÞàØÚØ","ÛÐØáØ","ØÕÜØáØ","ØÕÚØáØ","ÐÒÕØáâÝ","áÔåâÔÛÑÔàØ","ÝåâÝÛÔÑØ","ÜÝÔÛÑÔàØ","ÓÔÙÔÛÑÔàØ"],monthsShort:["ØÐÜ","×ÔÑ","ÛÐà","ÐÞà","ÛÐØ","ØÕÜ","ØÕÚ","ÐÒÕ","áÔå","Ýåâ","ÜÝÔ","ÓÔÙ"],today:"ÓæÔá",clear:"ÒÐáãä×ÐÕÔÑÐ",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.kk={days:["5:A5=1V","¯9A5=1V","!59A5=1V","!Ù@A5=1V","59A5=1V","±<0","!5=1V","5:A5=1V"],daysShort:["5:","¯9","!59","!Ù@","59","±<","!5=","5:"],daysMin:[":","A","!A","!@","A","<","!=",":"],months:["š0£B0@","›?0=","0C@K7","!ÙCV@","0<K@","0CAK<","(V;45",""0<K7","šK@:¯95:","š070=","š0@0H0","5;B>›A0="],monthsShort:["š0£","›?","0C","!ÙC","0<K@","0C","(;4",""<7","šK@","š7=","š0@","5;"],today:"¯3V=",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.kr={days:["|”|","Ô”|","T”|","”|","©”|","”|"," ”|","|”|"],daysShort:["|","Ô","T","","©",""," ","|"],daysMin:["|","Ô","T","","©",""," ","|"],months:["1Ô","2Ô","3Ô","4Ô","5Ô","6Ô","7Ô","8Ô","9Ô","10Ô","11Ô","12Ô"],monthsShort:["1Ô","2Ô","3Ô","4Ô","5Ô","6Ô","7Ô","8Ô","9Ô","10Ô","11Ô","12Ô"]}}(jQuery),function(e){e.fn.datepicker.dates.lt={days:["Sekmadienis","Pirmadienis","Antradienis","Tre
  19. iadienis","Ketvirtadienis","Penktadienis","`eatadienis","Sekmadienis"],daysShort:["S","Pr","A","T","K","Pn","`","S"],daysMin:["Sk","Pr","An","Tr","Ke","Pn","`t","Sk"],months:["Sausis","Vasaris","Kovas","Balandis","Gegu~","Bir~elis","Liepa","Rugpjktis","Rugsjis","Spalis","Lapkritis","Gruodis"],monthsShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],today:"`iandien",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.lv={days:["Svtdiena","Pirmdiena","Otrdiena","Treadiena","Ceturtdiena","Piektdiena","Sestdiena","Svtdiena"],daysShort:["Sv","P","O","T","C","Pk","S","Sv"],daysMin:["Sv","Pr","Ot","Tr","Ce","Pk","Se","Sv"],months:["Janvris","Februris","Marts","Apr+lis","Maijs","Jknijs","Jklijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jkn","Jkl","Aug","Sep","Okt","Nov","Dec"],today:"`odien",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.mk={days:["545;0",">=545;=8:","B>@=8:","!@540","'5B2@B>:","5B>:","!01>B0","545;0"],daysShort:["54",">=","B>","!@5","'5B","5B","!01","54"],daysMin:["5",">","B","!@","'5","5","!0","5"],months:["0=C0@8","$52@C0@8","0@B","?@8;","0X","C=8","C;8","23CAB","!5?B5<2@8",":B><2@8",">5<2@8","5:5<2@8"],monthsShort:["0=","$52","0@","?@","0X","C=","C;","23","!5?",":B",">5","5:"],today:"5=5A",format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.ms={days:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu","Ahad"],daysShort:["Aha","Isn","Sel","Rab","Kha","Jum","Sab","Aha"],daysMin:["Ah","Is","Se","Ra","Kh","Ju","Sa","Ah"],months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],today:"Hari Ini"}}(jQuery),function(e){e.fn.datepicker.dates.nb={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I Dag"}}(jQuery),function(e){e.fn.datepicker.dates["nl-BE"]={days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Vandaag",clear:"Leegmaken",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.nl={days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Vandaag"}}(jQuery),function(e){e.fn.datepicker.dates.no={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I dag",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.pl={days:["Niedziela","PoniedziaBek","Wtorek","Zroda","Czwartek","Pitek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","Zr","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","Zr","Cz","Pt","So","N"],months:["StyczeD","Luty","Marzec","KwiecieD","Maj","Czerwiec","Lipiec","SierpieD","WrzesieD","Pazdziernik","Listopad","GrudzieD"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],today:"Dzisiaj",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates["pt-BR"]={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",clear:"Limpar"}}(jQuery),function(e){e.fn.datepicker.dates.pt={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",clear:"Limpar"}}(jQuery),function(e){e.fn.datepicker.dates.ro={days:["Duminic","Luni","Marci","Miercuri","Joi","Vineri","Sâmbt","Duminic"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],today:"Astzi",clear:"terge",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates["rs-latin"]={days:["Nedelja","Ponedeljak","Utorak","Sreda"," etvrtak","Petak","Subota","Nedelja"],daysShort:["Ned","Pon","Uto","Sre"," et","Pet","Sub","Ned"],daysMin:["N","Po","U","Sr"," ","Pe","Su","N"],months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],today:"Danas"}}(jQuery),function(e){e.fn.datepicker.dates.rs={days:["545Y0",">=545Y0:","#B>@0:","!@540","'5B2@B0:","5B0:","!C1>B0","545Y0"],daysShort:["54",">=","#B>","!@5","'5B","5B","!C1","54"],daysMin:["",">","#","!@","'","5","!C",""],months:["0=C0@","$51@C0@","0@B","?@8;","0X","C=","C;","23CAB","!5?B5<10@",":B>10@",">25<10@","5F5<10@"],monthsShort:["0=","$51","0@","?@","0X","C=","C;","23","!5?",":B",">2","5F"],today:"0=0A"}}(jQuery),function(e){e.fn.datepicker.dates.ru={days:[">A:@5A5=L5",">=545;L=8:","B>@=8:","!@540","'5B25@3","OB=8F0","!C11>B0",">A:@5A5=L5"],daysShort:["A:","=4","B@","!@4","'B2","B=","!C1","A:"],daysMin:["A","=","B","!@","'B","B","!1","A"],months:["/=20@L","$52@0;L","0@B","?@5;L","09","N=L","N;L","23CAB","!5=BO1@L",":BO1@L",">O1@L","5:01@L"],monthsShort:["/=2","$52","0@","?@","09","N=","N;","23","!5=",":B",">O","5:"],today:"!53>4=O",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.sk={days:["Nede>a","Pondelok","Utorok","Streda","`tvrtok","Piatok","Sobota","Nede>a"],daysShort:["Ned","Pon","Uto","Str","`tv","Pia","Sob","Ned"],daysMin:["Ne","Po","Ut","St","`t","Pia","So","Ne"],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],today:"Dnes"}}(jQuery),function(e){e.fn.datepicker.dates.sl={days:["Nedelja","Ponedeljek","Torek","Sreda"," etrtek","Petek","Sobota","Nedelja"],daysShort:["Ned","Pon","Tor","Sre"," et","Pet","Sob","Ned"],daysMin:["Ne","Po","To","Sr"," e","Pe","So","Ne"],months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],today:"Danes"}}(jQuery),function(e){e.fn.datepicker.dates.sq={days:["E Diel","E Hënë","E mart","E mërkurë","E Enjte","E Premte","E Shtunë","E Diel"],daysShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu","Die"],daysMin:["Di","Hë","Ma","Më","En","Pr","Sht","Di"],months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthsShort:["Jan","Shk","Mar","Pri","Maj","Qer","Korr","Gu","Sht","Tet","Nën","Dhjet"],today:"Sot"}}(jQuery),function(e){e.fn.datepicker.dates.sv={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Idag",format:"yyyy-mm-dd",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.sw={days:["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi","Jumapili"],daysShort:["J2","J3","J4","J5","Alh","Ij","J1","J2"],daysMin:["2","3","4","5","A","I","1","2"],months:["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"],monthsShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Des"],today:"Leo"}}(jQuery),function(e){e.fn.datepicker.dates.th={days:["-24"L","1#L","-12#","8","$+1*","(8#L","@*2#L","-24"L"],daysShort:["-2","","-","","$","(","*","-2"],daysMin:["-2","","-","","$","(","*","-2"],months:["!#2!","8! 21L","!52!","@!)2"","$) 2!","!482"","#2!","*4+2!","1"2"","8%2!","$(42"","1'2!"],monthsShort:["!..","..","!5..","@!.".","..","!4.".","..","*..",".".","..",".".",".."],today:"'15I"}}(jQuery),function(e){e.fn.datepicker.dates.tr={days:["Pazar","Pazartesi","Sal1","Çar_amba","Per_embe","Cuma","Cumartesi","Pazar"],daysShort:["Pz","Pzt","Sal","Çr_","Pr_","Cu","Cts","Pz"],daysMin:["Pz","Pzt","Sa","Çr","Pr","Cu","Ct","Pz"],months:["Ocak","^ubat","Mart","Nisan","May1s","Haziran","Temmuz","Austos","Eylül","Ekim","Kas1m","Aral1k"],monthsShort:["Oca","^ub","Mar","Nis","May","Haz","Tem","Au","Eyl","Eki","Kas","Ara"],today:"Bugün",format:"dd.mm.yyyy"}}(jQuery),function(e){e.fn.datepicker.dates.ua={days:["54V;O",">=54V;>:","V2B>@>:","!5@540","'5B25@","'OB=8F0","!C1>B0","54V;O"],daysShort:["54","=4","B@","!@4","'B2","B=","!C1","54"],daysMin:["4","=","B","!@","'B","B","!1","4"],months:["CVG5=L","NB89","5@575=L","2VB5=L",""@025=L","'5@25=L","8?5=L","!5@?5=L","5@5A5=L",">2B5=L","8AB>?04","@C45=L"],monthsShort:["!VG","NB","5@","2V",""@0","'5@","8?","!5@","5@",">2","8A","@C"],today:"!L>3>4=V",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates.uk={days:["54V;O",">=54V;>:","V2B>@>:","!5@540","'5B25@","'OB=8FO","!C1>B0","54V;O"],daysShort:["54","=4","B@","!@4","'B2","B=","!C1","54"],daysMin:["4","=","B","!@","'B","B","!1","4"],months:["!VG5=L","NB89","5@575=L","2VB5=L",""@025=L","'5@25=L","8?5=L","!5@?5=L","5@5A5=L",">2B5=L","8AB>?04","@C45=L"],monthsShort:["!VG","NB","5@","2V",""@0","'5@","8?","!5@","5@",">2","8A","@C"],today:"!L>3>4=V"}}(jQuery),function(e){e.fn.datepicker.dates.vi={days:["Chç nh­t","Thé hai","Thé ba","Thé t°","Thé nm","Thé sáu","Thé b£y","Chç nh­t"],daysShort:["CN","Thé 2","Thé 3","Thé 4","Thé 5","Thé 6","Thé 7","CN"],daysMin:["CN","T2","T3","T4","T5","T6","T7","CN"],months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],monthsShort:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],today:"Hôm nay",clear:"Xóa",format:"dd/mm/yyyy"}}(jQuery),function(e){e.fn.datepicker.dates["zh-CN"]={days:["å","�","Œ"," ","Û","”","m","å"],daysShort:["hå","h�","hŒ","h ","hÛ","h”","hm","hå"],daysMin:["å","�","Œ"," ","Û","”","m","å"],months:["�","Œ"," ","Û","”","m","","k","]","A","A�","AŒ"],monthsShort:["�","Œ"," ","Û","”","m","","k","]","A","A�","AŒ"],today:"Êå",format:"yyyytmmddå",weekStart:1}}(jQuery),function(e){e.fn.datepicker.dates["zh-TW"]={days:["å","�","Œ"," ","Û","”","m","å"],daysShort:["1å","1�","1Œ","1 ","1Û","1”","1m","1å"],daysMin:["å","�","Œ"," ","Û","”","m","å"],months:["�","Œ"," ","Û","”","m","","k","]","A","A�","AŒ"],monthsShort:["�","Œ"," ","Û","”","m","","k","]","A","A�","AŒ"],today:"Ê)",format:"yyyytmmddå",weekStart:1}}(jQuery),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Datepickers=window.TicketBase.Datepickers||{},$(function(){return TicketBase.Datepickers.initialize=function(){return this.initializePicker()},TicketBase.Datepickers.initializePicker=function(){return $("[data-behaviour~=datepicker]").datepicker({startDate:"d",autoclose:!0})},TicketBase.Datepickers.produceAttribute=function(e,t){return $('input[type="submit"]').mouseover(function(n){return function(){var i,r,s,a;return r=$("#"+e+"_"+t+"_date").val(),s=$("#"+e+"_"+t+"_time_4i").val(),a=$("#"+e+"_"+t+"_time_5i").val(),i=n.setAttribute(r,""+s+":"+a),$("#"+e+"_"+t).val(i)}}(this))},TicketBase.Datepickers.setAttribute=function(e,t){return e?""+e+" "+t:""},TicketBase.Datepickers.loadAttribute=function(e,t){var n,i,r,s,a,o,l;return n=$("#"+e+"_"+t).val(),a=n.split(" "),i=a[0],a.length>1?($("#"+e+"_"+t+"_date").val(i),l=a[1].split(":"),o=(5*parseInt(l[1]/5)).toString(),1===o.length&&(o="0"+o),r=l[0],s=o,$("#"+e+"_"+t+"_time_4i").val(r),$("#"+e+"_"+t+"_time_4i").trigger("change"),$("#"+e+"_"+t+"_time_5i").val(s),$("#"+e+"_"+t+"_time_5i").trigger("change")):void 0},TicketBase.Datepickers.birthDatePicker=function(){var e,t;return t=new Date,e=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0),$("[data-behaviour~=datepicker]").datepicker({autoclose:!0,startView:2,beforeShowDay:function(t){var n;return null!=(n=t.valueOf()<e.valueOf())?n:{disabled:""}}})}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Orders=window.TicketBase.Orders||{},$(function(){var e,t;return TicketBase.Orders.startCountdownTimer=function(t,n){var i,r,s,a;return i=1e3*t,r=i,s=1e3,(a=function(){var t;return i-=s,t=i/r,n(e(i),t),0>=i?n(!1):setTimeout(a,s)})()},e=function(e){var n,i,r,s;return r={hour:36e5,min:6e4,sec:1e3},n=Math.floor(e/r.hour),e-=n*r.hour,i=Math.floor(e/r.min),e-=i*r.min,s=Math.floor(e/r.sec),n>0?""+n+"h":i>0?""+i+":"+t(s):":"+t(s)},t=function(e,t,n){var i;return null==t&&(t=2),null==n&&(n="0"),i=t-e.toString().length,i>0?Array(i+1).join(n)+e:e},TicketBase.Orders.enableSelect2TagList=function(){var e,t,n,i,r;for(i=["#order_tag_list","#tags_name_in"],r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(function(e){return $(e).select2({width:"resolve",tags:$(e).data("tags")})}(e));return r},TicketBase.Orders.displayGroupForms=function(){return $("#group-registration").find(".trigger").click(function(e){return e.preventDefault(),$("#group-registration .forms").each(function(){return $(this).addClass("hide")}),$("."+$(this).attr("role")).removeClass("hide")})}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Messages=window.TicketBase.Messages||{},$(function(){return TicketBase.Messages.notice=function(e){return $.growl({html:"<p>"+e+"</p>"})},TicketBase.Messages.error=function(e){return $.growl({html:"<p>"+e+"</p>","class":"error"})}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Public=window.TicketBase.Public||{},window.TicketBase.Public.Questions=window.TicketBase.Public.Questions||{},$(function(){return TicketBase.Public.Questions.checkboxGroup=function(){return $(".checkbox-group").change(function(){var e,t;if(void 0!==$(this).attr("role")){if(t=$(this).attr("name"),$(this).prop("checked"))return $("[name='"+t+"']").each(function(){return $(this).removeAttr("required")});if(e=!1,$("[name='"+t+"']").each(function(){return $(this).prop("checked")?e:void 0}),!e)return $("[name='"+t+"']").each(function(){return $(this).attr("required","required")})}})}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Groups=window.TicketBase.Groups||{},$(function(){return String.prototype.titleize=function(){return(this.charAt(0).toUpperCase()+this.slice(1)).replace("_"," ")},TicketBase.Groups.reloadPartial=function(e,t){return $("#order_group_id").val(t),this.orderId=$("#order_id").val(),$("#group-registration").load("/events/"+e+"/groups/"+t+"?order_id="+this.orderId,function(){return TicketBase.Orders.displayGroupForms()})},TicketBase.Groups.searchGroups=function(e){var t;return $("input#group_id").select2({placeholder:"Search for a group",allowCLear:!0,minimumInputLength:3,formatResult:t,ajax:{url:"/events/"+e+"/groups/search",dataType:"json",data:function(e){return{query:e}},results:function(e){var t;return t=[],$.each(e,function(e,n){return t.push({id:n.id,text:n.name})}),{results:t}}}}),t=function(e){return"<li> Group name: "+e.text+" </li>"}},TicketBase.Groups.renderError=function(e){var t,n;n=[];for(t in e)$("#group_"+t).parent().addClass("field-with-error"),n.push($("#group_"+t).parent().prepend(" <span class='field-error'>"+t.titleize()+" "+e[t]+"</span> "));return n},TicketBase.Groups.inviteSuccess=function(){return $("div.text-center.notify").remove(),$("form").prepend(" <div class='text-center notify'>Successfully sent invites.</div> ")},TicketBase.Groups.inviteFailed=function(){return $("div.text-center.notify").remove(),$("form").prepend(" <div class='text-center notify'>There was an error in the invite form.</div> ")},TicketBase.Groups.emptySearch=function(){return $("div.text-center.notify").remove(),$(".error-message").prepend(" <div class='text-center notify'>Please search for a group to join </div> ")}})}.call(this),$(function(){var e=function(e,t){var n=this;this.baseIndex=t,this.startingIndex=t,this.domObj=null;var i=function(){var t=$(e);n.domObj=$(t[t.length-1]).remove(),0===n.domObj.length};i()};e.prototype.clone=function(e){var t=this,n=this.domObj.clone(),i=function(e){if(!e)return!1;var n="["+t.baseIndex+"]",i="["+(t.startingIndex+1)+"]",r=e.replace(n,i);return r!==e?r:!1},r=function(e){if(!e)return!1;var n="_"+t.baseIndex+"_",i="_"+(t.startingIndex+1)+"_",r=e.replace(n,i);return r!==e?r:!1},s=function(e){"paid"!==e&&("free"===e?n.find("input.price").each(function(e,t){t=$(t),t.attr("value",0),t.attr("type","hidden"),t.after("<span>Free</span>")}):"donation"===e&&n.find("input.price").each(function(e,t){t=$(t),t.attr("value",0),t.attr("type","hidden"),t.after("<span>Donation</span>")}))},a=function(e,t){n.find("[for="+e+"]").each(function(e,n){$(n).attr("for",t)})};return n.find("*").each(function(e,t){var n=$(t),s=n.attr("name"),o=i(s);if(o){n.attr("name",o);var l=n.attr("id"),u=r(l);u&&n.attr("id",u),a(l,u)}}),this.startingIndex=this.startingIndex+1,n.find("#event_ticket_types_attributes_"+this.startingIndex+"_ticket_type").attr("value",e),s(e),n};var t=function(){this.forValidation=[],window.aa=this.forValidation,this.withErrors=[],this.VALIDATION={REQUIRED:"required",TYPE_STRING:"type_string",TYPE_INT:"type_int"}};t.prototype.validate=function(e){var t=this,n=this.withErrors.length;if(n>0)for(var i=0;n>i;i++)this.withErrors[i].domObj.removeClass("error");this.withErrors=[];for(var i=0;i<this.forValidation.length;i++){var r=this.forValidation[i].validation,s=this.forValidation[i].domObj,a=s.val();if(r===t.VALIDATION.REQUIRED){var o={domObj:s,error:"Required Field"};""==a&&this.withErrors.push(o)}else if(r===t.VALIDATION.TYPE_STRING);else if(r===t.VALIDATION.TYPE_INT){var o={domObj:s,error:"Invalid Input"};isNaN(a)&&this.withErrors.push(o)}}e(this.withErrors)},t.prototype.removeValidation=function(e){for(var t=0;t<this.forValidation.length;t++)if(this.forValidation[t].domObj[0].id===e)return this.forValidation.splice(t,1)},t.prototype.addValidation=function(e,t){if(e.length>0){var n={domObj:e,validation:t};this.forValidation.push(n)}};var n=function(n){var i=this;this.domObj=$(n);var r=function(e){var t=e.find(".delete-ticket");t.click(function(){e.hasClass("persisted")?(e.find(".destroy-flag").attr("value",1),e.hide()):e.remove(),e.find(".title")[0]&&i.validator.removeValidation(e.find(".title")[0].id),e.find(".price")[0]&&i.validator.removeValidation(e.find(".price")[0].id)});var n=e.find(".toggle-details");n.click(function(){e.find(".secondary-details").toggle()}),i.domObj.find(".add-ticket-buttons").css("display","block"),i.domObj.find(".add-ticket-buttons").before(e)},s=function(e){var t=i.domObj.find(".add-ticket");t.click(function(t){t.preventDefault();var n=$(t.target).attr("data-type");r(e.clone(n))})},a=function(e){e.each(function(e,t){r($(t))})},o=function(){var n=$(".ticket-form").length-1,r=new e(".new-ticket-form",n),o=$(".ticket-form"),l=$("[name='commit']");i.validator=new t,l.click(function(e){var t;i.validator.validate(function(n){if(n.length>0){e.preventDefault();for(var i=0;i<n.length;i++){var r=n[i].domObj;t=t||r,r.addClass("error"),$("html,body").animate({scrollTop:t.offset().top},300)}}})}),s(r),a(o)};o()};new n(".tickets")}),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.TicketTypes=window.TicketBase.TicketTypes||{},$(function(){return TicketBase.TicketTypes.disablePriceWhenFree=function(){return $("#ticket_type_ticket_type").change(function(){return"free"===$(this).val()?($("#ticket_type_price").attr("disabled","disabled"),$("#ticket_type_tax_deductible_amount").attr("disabled","disabled")):($("#ticket_type_price").removeAttr("disabled"),$("#ticket_type_tax_deductible_amount").removeAttr("disabled"))}),$("#ticket_type_ticket_type").trigger("change")}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Socials=window.TicketBase.Socials||{},$(function(){return TicketBase.Socials.FacebookShareButton=function(e,t,n){return $("#"+e).click(function(e){return e.preventDefault(),FB.ui({method:"share",href:t},function(e){return n?n(e):void 0})})}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Incentives=window.TicketBase.Incentives||{},$(function(){return TicketBase.Incentives.initFacebookShare=function(e,t,n,i,r){var s,a;return a=function(e){return $.get(n,{"incentive[order_id]":i.orderId,"incentive[event_id]":i.eventId,"incentive[reference_id]":e,"incentive[incentive_type]":"facebook_share"},function(e,t,n){return r(e,t,n)})},s=function(e){var t;return e.error_message?r(null,"failed"):(t=e.e2e?JSON.parse(e.e2e):null,a(null!=t?t.submit_0:void 0))},new TicketBase.Socials.FacebookShareButton(e,t,s)}})}.call(this),function(){window.TicketBase=window.TicketBase||{},window.TicketBase.Review=window.TicketBase.Review||{},$(function(){return TicketBase.Review.initFacebookIncentive=function(e,t,n,i,r,s){var a,o,l,u,c,h,d,f,p,m,g;return a=function(e,t){var n;return n="<tr class='article'> <td class='main'> <div class='pair'> <strong>"+e+"</strong> </div> </td> <td colspan='3'></td> <td><strong> -"+t+" </strong></td> </tr>",$("#order-summary tbody tr").last().after(n)},f=function(e){return $(".total-price").html(e)},h=function(){return $("#fb-incentive-banner").remove()},d=function(){return $("#credit-card").remove()},u=function(){return $("[name='commit']").val(r)},g=function(){return d(),u()},m=function(e){return TicketBase.Messages.notice(e),window.scrollTo(0,0)},p=function(e){var t;return t=TicketBase.Messages.error(e),window.scrollTo(0,0)},o="share",c={orderId:e,eventId:t},l=function(e,t){return"success"!==t?(p("Failed to apply incentive."),TicketBase.Messages.dismissOnScroll()):(a(e.incentive_type,e.incentive_amount),f(e.total_amount),m("Incentive discount applied."),h(),e.total_amount===s?g():void 0)},TicketBase.Incentives.initFacebookShare(o,n,i,c,l)}})}.call(this),window.TicketBase=window.TicketBase||{},window.reTheme=function(e){less.modifyVars(e)},$(function(){$(".tickets-section .subcontainer").each(function(){var e=$(this),t=parseInt(e.data("order-item-count"));7>t&&Harvey.attach("(min-width: 768px)",{on:function(){e.scrollstick({offset:20,tag:".tickets"})},off:function(){$.unscrollstick(e,".tickets")}})}),$("form select").each(function(){$(this).selecttrap()})}),$(function(){var e={offset:-30,panel:".panel"},t=$("#accordion"),n=t.is(".-wide");t.on("shown.bs.collapse",function(){var t=$(this).find(".panel-collapse.in").closest(e.panel),i=t.offset().top+e.offset;n&&$("html, body").animate({scrollTop:i},250),t.addClass("expanded")}).on("hide.bs.collapse",function(){var t=$(this).find(".panel-collapse.in").closest(e.panel);t.removeClass("expanded")})});
Add Comment
Please, Sign In to add comment