!function(e,t){"use strict";"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){"use strict";function Ce(e,t){var n=(t=t||o).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function se(e){var t=!!e&&"length"in e&&e.length,s=n.type(e);return"function"!==s&&!n.isWindow(e)&&("array"===s||0===t||"number"==typeof t&&t>0&&t-1 in e)}function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function te(e,t,s){return n.isFunction(t)?n.grep(e,function(e,n){return!!t.call(e,n,e)!==s}):t.nodeType?n.grep(e,function(e){return e===t!==s}):"string"!=typeof t?n.grep(e,function(e){return M.call(t,e)>-1!==s}):lt.test(t)?n.filter(t,e,s):(t=n.filter(t,e),n.grep(e,function(e){return M.call(t,e)>-1!==s&&1===e.nodeType}))}function he(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function $t(e){var t={};return n.each(e.match(l)||[],function(e,n){t[n]=!0}),t}function x(e){return e}function I(e){throw e}function fe(e,t,s,o){var i;try{e&&n.isFunction(i=e.promise)?i.call(e).done(t).fail(s):e&&n.isFunction(i=e.then)?i.call(e,t,s):t.apply(void 0,[e].slice(o))}catch(e){s.apply(void 0,[e])}}function N(){o.removeEventListener("DOMContentLoaded",N),e.removeEventListener("load",N),n.ready()}function A(){this.expando=n.expando+A.uid++}function It(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:xt.test(e)?JSON.parse(e):e)}function ve(e,t,n){var s;if(void 0===n&&1===e.nodeType)if(s="data-"+t.replace(wt,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(s))){try{n=It(n)}catch{}r.set(e,t,n)}else n=void 0;return n}function Se(e,t,s,o){var l,a=1,u=20,d=o?function(){return o.cur()}:function(){return n.css(e,t,"")},c=d(),r=s&&s[3]||(n.cssNumber[t]?"":"px"),i=(n.cssNumber[t]||"px"!==r&&+c)&&z.exec(n.css(e,t));if(i&&i[3]!==r){r=r||i[3],s=s||[],i=+c||1;do a=a||".5",i/=a,n.style(e,t,i+r);while(a!==(a=d()/c)&&1!==a&&--u)}return s&&(i=+i||+c||0,l=s[1]?i+(s[1]+1)*s[2]:+s[2],o&&(o.unit=r,o.start=i,o.end=l)),l}function Ot(e){var s,i=e.ownerDocument,o=e.nodeName,t=$e[o];return t||(s=i.body.appendChild(i.createElement(o)),t=n.css(s,"display"),s.parentNode.removeChild(s),"none"===t&&(t="block"),$e[o]=t,t)}function _(e,t){for(var o,a,i=[],n=0,r=e.length;n<r;n++)(o=e[n]).style&&(a=o.style.display,t?("none"===a&&(i[n]=s.get(o,"display")||null,i[n]||(o.style.display="")),""===o.style.display&&D(o)&&(i[n]=Ot(o))):"none"!==a&&(i[n]="none",s.set(o,"display",a)));for(n=0;n<r;n++)null!=i[n]&&(e[n].style.display=i[n]);return e}function a(e,t){var s;return s=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&u(e,t)?n.merge([e],s):s}function Z(e,t){for(var n=0,o=e.length;n<o;n++)s.set(e[n],"globalEval",!t||s.get(t[n],"globalEval"))}function re(e,t,s,o,i){for(var r,c,h,m,p,g,l=t.createDocumentFragment(),f=[],u=0,v=e.length;u<v;u++)if((r=e[u])||0===r)if("object"===n.type(r))n.merge(f,r.nodeType?[r]:r);else if(Ye.test(r)){for(c=c||l.appendChild(t.createElement("div")),p=(Ue.exec(r)||["",""])[1].toLowerCase(),h=d[p]||d._default,c.innerHTML=h[1]+n.htmlPrefilter(r)+h[2],m=h[0];m--;)c=c.lastChild;n.merge(f,c.childNodes),(c=l.firstChild).textContent=""}else f.push(t.createTextNode(r));for(l.textContent="",u=0;r=f[u++];)if(o&&n.inArray(r,o)>-1)i&&i.push(r);else if(g=n.contains(r.ownerDocument,r),c=a(l.appendChild(r),"script"),g&&Z(c),s)for(m=0;r=c[m++];)Ke.test(r.type||"")&&s.push(r);return l}function H(){return!0}function w(){return!1}function Qe(){try{return o.activeElement}catch{}}function oe(e,t,s,o,i,a){var r,c;if("object"==typeof t){"string"!=typeof s&&(o=o||s,s=void 0);for(c in t)oe(e,c,s,o,t[c],a);return e}if(o==null&&i==null?(i=s,o=s=void 0):i==null&&("string"==typeof s?(i=o,o=void 0):(i=o,o=s,s=void 0)),!1===i)i=w;else if(!i)return e;return 1===a&&(r=i,i=function(e){return n().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=n.guid++)),e.each(function(){n.event.add(this,t,i,o,s)})}function nt(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")?n(">tbody",e)[0]||e:e}function mt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ut(e){var t=ft.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function it(e,t){var o,i,a,c,l,d,u,h;if(1===t.nodeType){if(s.hasData(e)&&(c=s.access(e),l=s.set(t,c),a=c.events)){delete l.handle,l.events={};for(i in a)for(o=0,d=a[i].length;o<d;o++)n.event.add(t,i,a[i][o])}r.hasData(e)&&(u=r.access(e),h=n.extend({},u),r.set(t,h))}}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&We.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function y(e,t,o,r){t=Re.apply([],t);var c,d,u,h,p,g,l=0,m=e.length,b=m-1,f=t[0],v=n.isFunction(f);if(v||m>1&&"string"==typeof f&&!i.checkClone&&pt.test(f))return e.each(function(n){var s=e.eq(n);v&&(t[0]=f.call(this,n,s.html())),y(s,t,o,r)});if(m&&(d=re(t,e[0].ownerDocument,!1,e,r),p=d.firstChild,1===d.childNodes.length&&(d=p),p||r)){for(h=(u=n.map(a(d,"script"),mt)).length;l<m;l++)c=d,l!==b&&(c=n.clone(c,!0,!0),h&&n.merge(u,a(c,"script"))),o.call(e[l],c,l);if(h)for(g=u[u.length-1].ownerDocument,n.map(u,ut),l=0;l<h;l++)c=u[l],Ke.test(c.type||"")&&!s.access(c,"globalEval")&&n.contains(g,c)&&(c.src?n._evalUrl&&n._evalUrl(c.src):Ce(c.textContent.replace(ht,""),g))}return e}function qe(e,t,s){for(var o,r=t?n.filter(t,e):e,i=0;null!=(o=r[i]);i++)s||1!==o.nodeType||n.cleanData(a(o)),o.parentNode&&(s&&n.contains(o.ownerDocument,o)&&Z(a(o,"script")),o.parentNode.removeChild(o));return e}function T(e,t,s){var a,r,c,l,o=e.style;return(s=s||B(e))&&(""!==(a=s.getPropertyValue(t)||s[t])||n.contains(e.ownerDocument,e)||(a=n.style(e,t)),!i.pixelMarginRight()&&ne.test(a)&&ot.test(t)&&(r=o.width,c=o.minWidth,l=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=s.width,o.width=r,o.minWidth=c,o.maxWidth=l)),void 0!==a?a+"":a}function Be(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function _t(e){if(e in st)return e;for(var n=e[0].toUpperCase()+e.slice(1),t=at.length;t--;)if((e=at[t]+n)in st)return e}function He(e){var t=n.cssProps[e];return t||(t=n.cssProps[e]=_t(e)||e),t}function Ne(e,t,n){var s=z.exec(t);return s?Math.max(0,s[2]-(n||0))+(s[3]||"px"):t}function De(e,t,s,o,i){var a,r=0;for(a=s===(o?"border":"content")?4:"width"===t?1:0;a<4;a+=2)"margin"===s&&(r+=n.css(e,s+j[a],!0,i)),o?("content"===s&&(r-=n.css(e,"padding"+j[a],!0,i)),"margin"!==s&&(r-=n.css(e,"border"+j[a]+"Width",!0,i))):(r+=n.css(e,"padding"+j[a],!0,i),"padding"!==s&&(r+=n.css(e,"border"+j[a]+"Width",!0,i)));return r}function ze(e,t,s){var r,a=B(e),o=T(e,t,a),c="border-box"===n.css(e,"boxSizing",!1,a);return ne.test(o)?o:(r=c&&(i.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+De(e,t,s||(c?"border":"content"),r,a)+"px")}function c(e,t,n,s,o){return new c.prototype.init(e,t,n,s,o)}function X(){W&&(!1===o.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(X):e.setTimeout(X,n.fx.interval),n.fx.tick())}function Te(){return e.setTimeout(function(){E=void 0}),E=n.now()}function V(e,t){var s,o=0,n={height:e};for(t=t?1:0;o<4;o+=2-t)s=j[o],n["margin"+s]=n["padding"+s]=e;return t&&(n.opacity=n.width=e),n}function Fe(e,t,n){for(var o,i=(h.tweeners[t]||[]).concat(h.tweeners["*"]),s=0,a=i.length;s<a;s++)if(o=i[s].call(n,t,e))return o}function Ct(e,t){var s,o,i,a,r;for(s in e)if(i=n.camelCase(s),a=t[i],o=e[s],Array.isArray(o)&&(a=o[1],o=e[s]=o[0]),s!==i&&(e[i]=o,delete e[s]),(r=n.cssHooks[i])&&"expand"in r){o=r.expand(o),delete e[i];for(s in o)s in e||(e[s]=o[s],t[s]=a)}else t[i]=a}function h(e,t,s){var a,r,c=0,u=h.prefilters.length,i=n.Deferred().always(function(){delete d.elem}),d=function(){if(r)return!1;for(var c=E||Te(),t=Math.max(0,o.startTime+o.duration-c),n=1-(t/o.duration||0),s=0,a=o.tweens.length;s<a;s++)o.tweens[s].run(n);return i.notifyWith(e,[o,n,t]),n<1&&a?t:(a||i.notifyWith(e,[o,1,0]),i.resolveWith(e,[o]),!1)},o=i.promise({elem:e,props:n.extend({},t),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},s),originalProperties:t,originalOptions:s,startTime:E||Te(),duration:s.duration,tweens:[],createTween:function(t,s){var i=n.Tween(e,o.opts,t,s,o.opts.specialEasing[t]||o.opts.easing);return o.tweens.push(i),i},stop:function(t){var n=0,s=t?o.tweens.length:0;if(r)return this;for(r=!0;n<s;n++)o.tweens[n].run(1);return t?(i.notifyWith(e,[o,1,0]),i.resolveWith(e,[o,t])):i.rejectWith(e,[o,t]),this}}),l=o.props;for(Ct(l,o.opts.specialEasing);c<u;c++)if(a=h.prefilters[c].call(o,e,l,o.opts))return n.isFunction(a.stop)&&(n._queueHooks(o.elem,o.opts.queue).stop=n.proxy(a.stop,a)),a;return n.map(l,Fe,o),n.isFunction(o.opts.start)&&o.opts.start.call(e,o),o.progress(o.opts.progress).done(o.opts.done,o.opts.complete).fail(o.opts.fail).always(o.opts.always),n.fx.timer(n.extend(d,{elem:e,anim:o,queue:o.opts.queue})),o}function g(e){return(e.match(l)||[]).join(" ")}function v(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,s,o){var i;if(Array.isArray(t))n.each(t,function(t,n){s||Et.test(e)?o(e,n):Y(e+"["+("object"==typeof n&&n!=null?t:"")+"]",n,s,o)});else if(s||"object"!==n.type(t))o(e,t);else for(i in t)Y(e+"["+i+"]",t[i],s,o)}function ye(e){return function(t,s){"string"!=typeof t&&(s=t,t="*");var o,i=0,a=t.toLowerCase().match(l)||[];if(n.isFunction(s))for(;o=a[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(s)):(e[o]=e[o]||[]).push(s)}}function je(e,t,s,o){function i(c){var l;return a[c]=!0,n.each(e[c]||[],function(e,n){var c=n(t,s,o);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),l}var a={},r=e===G;return i(t.dataTypes[0])||!a["*"]&&i("*")}function Q(e,t){var s,o,i=n.ajaxSettings.flatOptions||{};for(s in t)void 0!==t[s]&&((i[s]?e:o||(o={}))[s]=t[s]);return o&&n.extend(!0,e,o),e}function Vt(e,t,n){for(var o,i,a,r,c=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(o in c)if(c[o]&&c[o].test(a)){s.unshift(o);break}if(s[0]in n)i=s[0];else{for(o in n){if(!s[0]||e.converters[o+" "+s[0]]){i=o;break}r||(r=o)}i=i||r}if(i)return i!==s[0]&&s.unshift(i),n[i]}function Wt(e,t,n,s){var o,i,a,c,l,r={},d=e.dataTypes.slice();if(d[1])for(i in e.converters)r[i.toLowerCase()]=e.converters[i];for(o=d.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!a&&s&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=o,o=d.shift())if("*"===o)o=a;else if("*"!==a&&a!==o){if(!(i=r[a+" "+o]||r["* "+o]))for(l in r)if((c=l.split(" "))[1]===o&&(i=r[a+" "+c[0]]||r["* "+c[0]])){!0===i?i=r[l]:!0!==r[l]&&(o=c[0],d.unshift(c[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+a+" to "+o}}}return{state:"success",data:t}}var ae,Ee,ke,Ae,l,Me,m,f,F,$,Ye,E,W,tt,et,Je,O,Xe,Ge,Ie,ee,pe,C,L,J,ue,le,p=[],o=e.document,Kt=Object.getPrototypeOf,b=p.slice,Re=p.concat,ie=p.push,M=p.indexOf,U={},ce=U.toString,P=U.hasOwnProperty,de=P.toString,dt=de.call(Object),i={},me="3.2.1",n=function(e,t){return new n.fn.init(e,t)},Bt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Ht=/^-ms-/,Pt=/-([a-z])/g,Rt=function(e,t){return t.toUpperCase()};n.fn=n.prototype={jquery:me,constructor:n,length:0,toArray:function(){return b.call(this)},get:function(e){return e==null?b.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=n.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return n.each(this,e)},map:function(e){return this.pushStack(n.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var n=this.length,t=+e+(e<0?n:0);return this.pushStack(t>=0&&t<n?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ie,sort:p.sort,splice:p.splice},n.extend=n.fn.extend=function(){var t,s,i,a,r,c,e=arguments[0]||{},o=1,d=arguments.length,l=!1;for("boolean"==typeof e&&(l=e,e=arguments[o]||{},o++),"object"==typeof e||n.isFunction(e)||(e={}),o===d&&(e=this,o--);o<d;o++)if(null!=(a=arguments[o]))for(i in a)s=e[i],t=a[i],e!==t&&(l&&t&&(n.isPlainObject(t)||(r=Array.isArray(t)))?(r?(r=!1,c=s&&Array.isArray(s)?s:[]):c=s&&n.isPlainObject(s)?s:{},e[i]=n.extend(l,c,t)):void 0!==t&&(e[i]=t));return e},n.extend({expando:"jQuery"+(me+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===n.type(e)},isWindow:function(e){return e!=null&&e===e.window},isNumeric:function(e){var t=n.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e)||(t=Kt(e))&&("function"!=typeof(n=P.call(t,"constructor")&&t.constructor)||de.call(n)!==dt))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return e==null?e+"":"object"==typeof e||"function"==typeof e?U[ce.call(e)]||"object":typeof e},globalEval:function(e){Ce(e)},camelCase:function(e){return e.replace(Ht,"ms-").replace(Pt,Rt)},each:function(e,t){var s,n=0;if(se(e))for(s=e.length;n<s&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return e==null?"":(e+"").replace(Bt,"")},makeArray:function(e,t){var s=t||[];return e!=null&&(se(Object(e))?n.merge(s,"string"==typeof e?[e]:e):ie.call(s,e)),s},inArray:function(e,t,n){return t==null?-1:M.call(t,e,n)},merge:function(e,t){for(var o=+t.length,n=0,s=e.length;n<o;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,n){for(var o=[],s=0,i=e.length,a=!n;s<i;s++)!t(e[s],s)!==a&&o.push(e[s]);return o},map:function(e,t,n){var o,a,s=0,i=[];if(se(e))for(a=e.length;s<a;s++)null!=(o=t(e[s],s,n))&&i.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&i.push(o);return Re.apply([],i)},guid:1,proxy:function(e,t){var s,o,i;if("string"==typeof t&&(o=e[t],t=e,e=o),n.isFunction(e))return i=b.call(arguments,2),s=function(){return e.apply(t||this,i.concat(b.call(arguments)))},s.guid=e.guid=e.guid||n.guid++,s},now:Date.now,support:i}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=p[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){U["[object "+t+"]"]=t.toLowerCase()}),f=function(e){function o(e,t,s,o){var d,u,h,p,v,j,y,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(s=s||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return s;if(!o&&((t?t.ownerDocument||t:c)!==n&&g(t),t=t||n,l)){if(11!==m&&(v=pe.exec(e)))if(d=v[1]){if(9===m){{if(!(u=t.getElementById(d)))return s;if(u.id===d)return s.push(u),s}}else if(f&&(u=f.getElementById(d))&&A(t,u)&&u.id===d)return s.push(u),s}else{if(v[2])return b.apply(s,t.getElementsByTagName(e)),s;if((d=v[3])&&a.getElementsByClassName&&t.getElementsByClassName)return b.apply(s,t.getElementsByClassName(d)),s}if(a.qsa&&!M[e+" "]&&(!r||!r.test(e))){if(1!==m)f=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((h=t.getAttribute("id"))?h=h.replace(ee,J):t.setAttribute("id",h=i),p=(j=k(e)).length;p--;)j[p]="#"+h+" "+N(j[p]);y=j.join(","),f=I.test(e)&&W(t.parentNode)||t}if(y)try{return b.apply(s,f.querySelectorAll(y)),s}catch{}finally{h===i&&t.removeAttribute("id")}}}return X(e.replace(F,"$1"),t,s,o)}function H(){function e(s,o){return n.push(s+" ")>t.cacheLength&&delete e[n.shift()],e[s+" "]=o}var n=[];return e}function u(e){return e[i]=!0,e}function h(e){var t=n.createElement("fieldset");try{return!!e(t)}catch{return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function Y(e,n){for(var s=e.split("|"),o=s.length;o--;)t.attrHandle[s[o]]=n}function ae(e,t){var n=t&&e,s=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(s)return s;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function te(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&we(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function O(e){return u(function(t){return t=+t,u(function(n,s){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(s[o]=n[o]))})})}function W(e){return e&&void 0!==e.getElementsByTagName&&e}function oe(){}function N(e){for(var t=0,s=e.length,n="";t<s;t++)n+=e[t].value;return n}function D(e,t,n){var s=t.dir,o=t.next,a=o||s,r=n&&"parentNode"===a,c=_e++;return t.first?function(t,n,o){for(;t=t[s];)if(1===t.nodeType||r)return e(t,n,o);return!1}:function(t,n,l){var d,u,h,m=[p,c];if(l){for(;t=t[s];)if((1===t.nodeType||r)&&e(t,n,l))return!0}else for(;t=t[s];)if(1===t.nodeType||r)if(h=t[i]||(t[i]={}),u=h[t.uniqueID]||(h[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[s]||t;else{if((d=u[a])&&d[0]===p&&d[1]===c)return m[2]=d[2];if(u[a]=m,m[2]=e(t,n,l))return!0}return!1}}function $(e){return e.length>1?function(t,n,s){for(var o=e.length;o--;)if(!e[o](t,n,s))return!1;return!0}:e[0]}function fe(e,t,n){for(var s=0,i=t.length;s<i;s++)o(e,t[s],n);return n}function z(e,t,n,s,o){for(var a,r=[],i=0,c=e.length,l=t!=null;i<c;i++)(a=e[i])&&(n&&!n(a,s,o)||(r.push(a),l&&t.push(i)));return r}function V(e,t,n,s,o,a){return s&&!s[i]&&(s=V(s)),o&&!o[i]&&(o=V(o,a)),u(function(i,a,r,c){var d,u,h,p=[],f=[],g=a.length,v=i||fe(t||"*",r.nodeType?[r]:r,[]),m=!e||!i&&t?v:z(v,p,e,r,c),l=n?o||(i?e:g||s)?[]:a:m;if(n&&n(m,l,r,c),s)for(u=z(l,f),s(u,[],r,c),d=u.length;d--;)(h=u[d])&&(l[f[d]]=!(m[f[d]]=h));if(i){if(o||e){if(o){for(u=[],d=l.length;d--;)(h=l[d])&&u.push(m[d]=h);o(null,l=[],u,c)}for(d=l.length;d--;)(h=l[d])&&(u=o?j(i,h):p[d])>-1&&(i[u]=!(a[u]=h))}}else l=z(l===a?l.splice(g,l.length):l),o?o(null,a,l,c):b.apply(a,l)})}function P(e){for(var s,o,r,c=e.length,l=t.relative[e[0].type],d=l||t.relative[" "],n=l?1:0,u=D(function(e){return e===r},d,!0),h=D(function(e){return j(r,e)>-1},d,!0),a=[function(e,t,n){var s=!l&&(n||t!==S)||((r=t).nodeType?u(e,t,n):h(e,t,n));return r=null,s}];n<c;n++)if(o=t.relative[e[n].type])a=[D($(a),o)];else{if((o=t.filter[e[n].type].apply(null,e[n].matches))[i]){for(s=++n;s<c&&!t.relative[e[s].type];s++);return V(n>1&&$(a),n>1&&N(e.slice(0,n-1).concat({value:" "===e[n-2].type?"*":""})).replace(F,"$1"),o,n<s&&P(e.slice(n,s)),s<c&&P(e=e.slice(s)),s<c&&N(e))}a.push(o)}return $(a)}function ve(e,s){var i=s.length>0,a=e.length>0,r=function(r,c,d,u,h){var m,j,_,y=0,f="0",w=r&&[],v=[],O=S,x=r||a&&t.find.TAG("*",h),C=p+=O==null?1:Math.random()||.1,E=x.length;for(h&&(S=c===n||c||h);f!==E&&null!=(m=x[f]);f++){if(a&&m){for(_=0,c||m.ownerDocument===n||(g(m),d=!l);j=e[_++];)if(j(m,c||n,d)){u.push(m);break}h&&(p=C)}i&&((m=!j&&m)&&y--,r&&w.push(m))}if(y+=f,i&&f!==y){for(_=0;j=s[_++];)j(w,v,c,d);if(r){if(y>0)for(;f--;)w[f]||v[f]||(v[f]=re.call(u));v=z(v)}b.apply(u,v),h&&!r&&v.length>0&&y+s.length>1&&o.uniqueSort(u)}return h&&(p=C,S=O),w};return i?u(r):r}var t,n,a,r,l,d,g,v,w,x,C,k,A,S,L,R,q,X,Z,i="sizzle"+1*new Date,c=e.document,p=0,_e=0,G=H(),ie=H(),M=H(),U=function(e,t){return e===t&&(C=!0),0},ye={}.hasOwnProperty,y=[],re=y.pop,je=y.push,b=y.push,Q=y.slice,j=function(e,t){for(var n=0,s=e.length;n<s;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s=`[\\x20\\t\\r\\n\\f]`,_="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+s+"*("+_+")(?:"+s+"*([*^$|!~]?=)"+s+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+_+"))|)"+s+"*\\]",B=":("+_+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ne+")*)|.*)\\)|)",be=new RegExp(s+"+","g"),F=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),ge=new RegExp("^"+s+"*,"+s+"*"),ue=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),ce=new RegExp("="+s+`*([^\\]'"]*?)`+s+"*\\]","g"),le=new RegExp(B),de=new RegExp("^"+_+"$"),T={ID:new RegExp("^#("+_+")"),CLASS:new RegExp("^\\.("+_+")"),TAG:new RegExp("^("+_+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,pe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,I=/[+~]/,f=new RegExp("\\\\([\\da-f]{1,6}"+s+"?|("+s+")|.)","ig"),m=function(e,t,n){var s="0x"+t-65536;return s!==s||n?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},ee=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,J=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){g()},we=D(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{b.apply(y=Q.call(c.childNodes),c.childNodes),y[c.childNodes.length].nodeType}catch{b={apply:y.length?function(e,t){je.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,s=0;e[n++]=t[s++];);e.length=n-1}}}a=o.support={},Z=o.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},g=o.setDocument=function(e){var o,p,u=e?e.ownerDocument||e:c;return u!==n&&9===u.nodeType&&u.documentElement?(n=u,d=n.documentElement,l=!Z(n),c!==n&&(o=n.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",se,!1):o.attachEvent&&o.attachEvent("onunload",se)),a.attributes=h(function(e){return e.className="i",!e.getAttribute("className")}),a.getElementsByTagName=h(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),a.getElementsByClassName=E.test(n.getElementsByClassName),a.getById=h(function(e){return d.appendChild(e).id=i,!n.getElementsByName||!n.getElementsByName(i).length}),a.getById?(t.filter.ID=function(e){var t=e.replace(f,m);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&l){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(f,m);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&l){var s,o,i,n=t.getElementById(e);if(n){if((s=n.getAttributeNode("id"))&&s.value===e)return[n];for(i=t.getElementsByName(e),o=0;n=i[o++];)if((s=n.getAttributeNode("id"))&&s.value===e)return[n]}return[]}}),t.find.TAG=a.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):a.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,s=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&s.push(n);return s}return o},t.find.CLASS=a.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&l)return t.getElementsByClassName(e)},w=[],r=[],(a.qsa=E.test(n.querySelectorAll))&&(h(function(e){d.appendChild(e).innerHTML="<a id='"+i+"'></a><select id='"+i+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&r.push("[*^$]="+s+`*(?:''|"")`),e.querySelectorAll("[selected]").length||r.push("\\["+s+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+i+"-]").length||r.push("~="),e.querySelectorAll(":checked").length||r.push(":checked"),e.querySelectorAll("a#"+i+"+*").length||r.push(".#.+[+~]")}),h(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&r.push("name"+s+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&r.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&r.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),r.push(",.*:")})),(a.matchesSelector=E.test(R=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&h(function(e){a.disconnectedMatch=R.call(e,"*"),R.call(e,"[s!='']:x"),w.push("!=",B)}),r=r.length&&new RegExp(r.join("|")),w=w.length&&new RegExp(w.join("|")),p=E.test(d.compareDocumentPosition),A=p||E.test(d.contains)?function(e,t){var s=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(s.contains?s.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=p?function(e,t){if(e===t)return C=!0,0;var s=!e.compareDocumentPosition-!t.compareDocumentPosition;return s||(s=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&s||!a.sortDetached&&t.compareDocumentPosition(e)===s?e===n||e.ownerDocument===c&&A(c,e)?-1:t===n||t.ownerDocument===c&&A(c,t)?1:v?j(v,e)-j(v,t):0:4&s?-1:1)}:function(e,t){if(e===t)return C=!0,0;var s,o=0,r=e.parentNode,l=t.parentNode,i=[e],a=[t];if(!r||!l)return e===n?-1:t===n?1:r?-1:l?1:v?j(v,e)-j(v,t):0;if(r===l)return ae(e,t);for(s=e;s=s.parentNode;)i.unshift(s);for(s=t;s=s.parentNode;)a.unshift(s);for(;i[o]===a[o];)o++;return o?ae(i[o],a[o]):i[o]===c?-1:a[o]===c?1:0},n):n},o.matches=function(e,t){return o(e,null,null,t)},o.matchesSelector=function(e,t){if((e.ownerDocument||e)!==n&&g(e),t=t.replace(ce,"='$1']"),a.matchesSelector&&l&&!M[t+" "]&&(!w||!w.test(t))&&(!r||!r.test(t)))try{var s=R.call(e,t);if(s||a.disconnectedMatch||e.document&&11!==e.document.nodeType)return s}catch{}return o(t,n,null,[e]).length>0},o.contains=function(e,t){return(e.ownerDocument||e)!==n&&g(e),A(e,t)},o.attr=function(e,s){(e.ownerDocument||e)!==n&&g(e);var i=t.attrHandle[s.toLowerCase()],o=i&&ye.call(t.attrHandle,s.toLowerCase())?i(e,s,!l):void 0;return void 0!==o?o:a.attributes||!l?e.getAttribute(s):(o=e.getAttributeNode(s))&&o.specified?o.value:null},o.escape=function(e){return(e+"").replace(ee,J)},o.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},o.uniqueSort=function(e){var s,o=[],t=0,n=0;if(C=!a.detectDuplicates,v=!a.sortStable&&e.slice(0),e.sort(U),C){for(;s=e[n++];)s===e[n]&&(t=o.push(n));for(;t--;)e.splice(o[t],1)}return v=null,e},L=o.getText=function(e){var s,n="",o=0,t=e.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=L(e)}else if(3===t||4===t)return e.nodeValue}else for(;s=e[o++];)n+=L(s);return n},(t=o.selectors={cacheLength:50,createPseudo:u,match:T,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(f,m),e[3]=(e[3]||e[4]||e[5]||"").replace(f,m),"~="===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]||o.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]&&o.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return T.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&le.test(t)&&(n=k(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(f,m).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=G[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&G(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(s){var i=o.attr(s,e);return i==null?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(be," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,s,o){var c="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===s&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var d,h,m,f,g,v,b=c!==r?"nextSibling":"previousSibling",j=t.parentNode,_=a&&t.nodeName.toLowerCase(),y=!l&&!a,u=!1;if(j){if(c){for(;b;){for(d=t;d=d[b];)if(a?d.nodeName.toLowerCase()===_:1===d.nodeType)return!1;v=b="only"===e&&!v&&"nextSibling"}return!0}if(v=[r?j.firstChild:j.lastChild],r&&y){for(u=(h=(f=(g=(m=(d=j)[i]||(d[i]={}))[d.uniqueID]||(m[d.uniqueID]={}))[e]||[])[0]===p&&f[1])&&f[2],d=h&&j.childNodes[h];d=++h&&d&&d[b]||(u=h=0)||v.pop();)if(1===d.nodeType&&++u&&d===t){g[e]=[p,h,u];break}}else if(y&&(d=t,m=d[i]||(d[i]={}),g=m[d.uniqueID]||(m[d.uniqueID]={}),f=g[e]||[],h=f[0]===p&&f[1],u=h),!1===u)for(;(d=++h&&d&&d[b]||(u=h=0)||v.pop())&&((a?d.nodeName.toLowerCase()!==_:1!==d.nodeType)||!++u||(y&&(m=d[i]||(d[i]={}),g=m[d.uniqueID]||(m[d.uniqueID]={}),g[e]=[p,u]),d!==t)););return(u-=o)===s||u%s==0&&u/s>=0}}},PSEUDO:function(e,n){var a,s=t.pseudos[e]||t.setFilters[e.toLowerCase()]||o.error("unsupported pseudo: "+e);return s[i]?s(n):s.length>1?(a=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?u(function(e,t){for(var o,i=s(e,n),a=i.length;a--;)o=j(e,i[a]),e[o]=!(t[o]=i[a])}):function(e){return s(e,0,a)}):s}},pseudos:{not:u(function(e){var t=[],s=[],n=q(e.replace(F,"$1"));return n[i]?u(function(e,t,s,o){for(var a,r=n(e,null,o,[]),i=e.length;i--;)(a=r[i])&&(e[i]=!(t[i]=a))}):function(e,o,i){return t[0]=e,n(t,null,i,s),t[0]=null,!s.pop()}}),has:u(function(e){return function(t){return o(e,t).length>0}}),contains:u(function(e){return e=e.replace(f,m),function(t){return(t.textContent||t.innerText||L(t)).indexOf(e)>-1}}),lang:u(function(e){return de.test(e||"")||o.error("unsupported lang: "+e),e=e.replace(f,m).toLowerCase(),function(t){var n;do if(n=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===d},focus:function(e){return e===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:te(!1),disabled:te(!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,!0===e.selected},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 me.test(e.nodeName)},input:function(e){return he.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:O(function(){return[0]}),last:O(function(e,t){return[t-1]}),eq:O(function(e,t,n){return[n<0?n+t:n]}),even:O(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:O(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:O(function(e,t,n){for(var s=n<0?n+t:n;--s>=0;)e.push(s);return e}),gt:O(function(e,t,n){for(var s=n<0?n+t:n;++s<t;)e.push(s);return e})}}).pseudos.nth=t.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})t.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return oe.prototype=t.filters=t.pseudos,t.setFilters=new oe,k=o.tokenize=function(e,n){var s,i,a,r,c,l,d,u=ie[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],d=t.preFilter;s;){a&&!(i=ge.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(c=[])),a=!1,(i=ue.exec(s))&&(a=i.shift(),c.push({value:a,type:i[0].replace(F," ")}),s=s.slice(a.length));for(r in t.filter)!(i=T[r].exec(s))||d[r]&&!(i=d[r](i))||(a=i.shift(),c.push({value:a,type:r,matches:i}),s=s.slice(a.length));if(!a)break}return n?s.length:s?o.error(e):ie(e,l).slice(0)},q=o.compile=function(e,t){var s,o=[],a=[],n=M[e+" "];if(!n){for(t||(t=k(e)),s=t.length;s--;)n=P(t[s]),n[i]?o.push(n):a.push(n);(n=M(e,ve(a,o))).selector=e}return n},X=o.select=function(e,n,s,o){var i,a,r,u,h,d="function"==typeof e&&e,c=!o&&k(e=d.selector||e);if(s=s||[],1===c.length){if((i=c[0]=c[0].slice(0)).length>2&&"ID"===(a=i[0]).type&&9===n.nodeType&&l&&t.relative[i[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(f,m),n)||[])[0]))return s;d&&(n=n.parentNode),e=e.slice(i.shift().value.length)}for(r=T.needsContext.test(e)?0:i.length;r--&&(a=i[r],!t.relative[u=a.type]);)if((h=t.find[u])&&(o=h(a.matches[0].replace(f,m),I.test(i[0].type)&&W(n.parentNode)||n))){if(i.splice(r,1),!(e=o.length&&N(i)))return b.apply(s,o),s;break}}return(d||q(e,c))(o,n,!l,s,!n||I.test(e)&&W(n.parentNode)||n),s},a.sortStable=i.split("").sort(U).join("")===i,a.detectDuplicates=!!C,g(),a.sortDetached=h(function(e){return 1&e.compareDocumentPosition(n.createElement("fieldset"))}),h(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||Y("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),a.attributes&&h(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Y("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),h(function(e){return null==e.getAttribute("disabled")})||Y(K,function(e,t,n){var s;if(!n)return!0===e[t]?t.toLowerCase():(s=e.getAttributeNode(t))&&s.specified?s.value:null}),o}(e),n.find=f,n.expr=f.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=f.uniqueSort,n.text=f.getText,n.isXMLDoc=f.isXML,n.contains=f.contains,n.escapeSelector=f.escape;var k=function(e,t,s){for(var o=[],i=void 0!==s;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&n(e).is(s))break;o.push(e)}return o},_e=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=n.expr.match.needsContext,Oe=/^<([a-z][^/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,lt=/^.[^:#[.,]*$/;n.filter=function(e,t,s){var o=t[0];return s&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?n.find.matchesSelector(o,e)?[o]:[]:n.find.matches(e,n.grep(t,function(e){return 1===e.nodeType}))},n.fn.extend({find:function(e){var t,s,o=this.length,i=this;if("string"!=typeof e)return this.pushStack(n(e).filter(function(){for(t=0;t<o;t++)if(n.contains(i[t],this))return!0}));for(s=this.pushStack([]),t=0;t<o;t++)n.find(e,i[t],s);return o>1?n.uniqueSort(s):s},filter:function(e){return this.pushStack(te(this,e||[],!1))},not:function(e){return this.pushStack(te(this,e||[],!0))},is:function(e){return!!te(this,"string"==typeof e&&we.test(e)?n(e):e||[],!1).length}}),Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,(n.fn.init=function(e,t,s){var i,a;if(!e)return this;if(s=s||ae,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ee.exec(e))||!i[1]&&t)return!t||t.jquery?(t||s).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),Oe.test(i[1])&&n.isPlainObject(t))for(i in t)n.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=o.getElementById(i[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):n.isFunction(e)?void 0!==s.ready?s.ready(e):e(n):n.makeArray(e,this)}).prototype=n.fn,ae=n(o),ke=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0},n.fn.extend({has:function(e){var t=n(e,this),s=t.length;return this.filter(function(){for(var e=0;e<s;e++)if(n.contains(this,t[e]))return!0})},closest:function(e,t){var s,i=0,r=this.length,o=[],a="string"!=typeof e&&n(e);if(!we.test(e))for(;i<r;i++)for(s=this[i];s&&s!==t;s=s.parentNode)if(s.nodeType<11&&(a?a.index(s)>-1:1===s.nodeType&&n.find.matchesSelector(s,e))){o.push(s);break}return this.pushStack(o.length>1?n.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?M.call(n(e),this[0]):M.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),n.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return he(e,"nextSibling")},prev:function(e){return he(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return _e((e.parentNode||{}).firstChild,e)},children:function(e){return _e(e.firstChild)},contents:function(e){return u(e,"iframe")?e.contentDocument:(u(e,"template")&&(e=e.content||e),n.merge([],e.childNodes))}},function(e,t){n.fn[e]=function(s,o){var i=n.map(this,t,s);return"Until"!==e.slice(-5)&&(o=s),o&&"string"==typeof o&&(i=n.filter(o,i)),this.length>1&&(Ae[e]||n.uniqueSort(i),ke.test(e)&&i.reverse()),this.pushStack(i)}}),l=/[^\x20\t\r\n\f]+/g,n.Callbacks=function(e){e="string"==typeof e?$t(e):n.extend({},e);var s,o,a,l,t=[],r=[],i=-1,d=function(){for(o=o||e.once,l=a=!0;r.length;i=-1)for(s=r.shift();++i<t.length;)!1===t[i].apply(s[0],s[1])&&e.stopOnFalse&&(i=t.length,s=!1);e.memory||(s=!1),a=!1,o&&(t=s?[]:"")},c={add:function(){return t&&(s&&!a&&(i=t.length-1,r.push(s)),function s(o){n.each(o,function(o,i){n.isFunction(i)?e.unique&&c.has(i)||t.push(i):i&&i.length&&"string"!==n.type(i)&&s(i)})}(arguments),s&&!a&&d()),this},remove:function(){return n.each(arguments,function(e,s){for(var o;(o=n.inArray(s,t,o))>-1;)t.splice(o,1),o<=i&&i--}),this},has:function(e){return e?n.inArray(e,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return o=r=[],t=s="",this},disabled:function(){return!t},lock:function(){return o=r=[],s||a||(t=s=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=t||[],t=[e,t.slice?t.slice():t],r.push(t),a||d()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!l}};return c},n.extend({Deferred:function(t){var o=[["notify","progress",n.Callbacks("memory"),n.Callbacks("memory"),2],["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),0,"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),1,"rejected"]],a="pending",i={state:function(){return a},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return n.Deferred(function(t){n.each(o,function(o,i){var a=n.isFunction(e[i[4]])&&e[i[4]];s[i[1]](function(){var e=a&&a.apply(this,arguments);e&&n.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(t,s,i){function a(t,s,o,i){return function(){var c=this,l=arguments,u=function(){var e,d;if(!(t<r)){if((e=o.apply(c,l))===s.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,n.isFunction(d)?i?d.call(e,a(r,s,x,i),a(r,s,I,i)):(r++,d.call(e,a(r,s,x,i),a(r,s,I,i),a(r,s,x,s.notifyWith))):(o!==x&&(c=void 0,l=[e]),(i||s.resolveWith)(c,l))}},d=i?u:function(){try{u()}catch(e){n.Deferred.exceptionHook&&n.Deferred.exceptionHook(e,d.stackTrace),t+1>=r&&(o!==I&&(c=void 0,l=[e]),s.rejectWith(c,l))}};t?d():(n.Deferred.getStackHook&&(d.stackTrace=n.Deferred.getStackHook()),e.setTimeout(d))}}var r=0;return n.Deferred(function(e){o[0][3].add(a(0,e,n.isFunction(i)?i:x,e.notifyWith)),o[1][3].add(a(0,e,n.isFunction(t)?t:x)),o[2][3].add(a(0,e,n.isFunction(s)?s:I))}).promise()},promise:function(e){return e!=null?n.extend(e,i):i}},s={};return n.each(o,function(e,t){var n=t[2],r=t[5];i[t[1]]=n.add,r&&n.add(function(){a=r},o[3-e][2].disable,o[0][2].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(e){var i=arguments.length,t=i,a=Array(t),o=b.call(arguments),s=n.Deferred(),r=function(e){return function(t){a[e]=this,o[e]=arguments.length>1?b.call(arguments):t,--i||s.resolveWith(a,o)}};if(i<=1&&(fe(e,s.done(r(t)).resolve,s.reject,!i),"pending"===s.state()||n.isFunction(o[t]&&o[t].then)))return s.then();for(;t--;)fe(o[t],r(t),s.reject);return s.promise()}}),Me=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,n.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Me.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},n.readyException=function(t){e.setTimeout(function(){throw t})},$=n.Deferred(),n.fn.ready=function(e){return $.then(e).catch(function(e){n.readyException(e)}),this},n.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--n.readyWait:n.isReady)||(n.isReady=!0,!0!==e&&--n.readyWait>0||$.resolveWith(o,[n]))}}),n.ready.then=$.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?e.setTimeout(n.ready):(o.addEventListener("DOMContentLoaded",N),e.addEventListener("load",N)),m=function(e,t,s,o,i,a,r){var c=0,d=e.length,l=s==null;if("object"===n.type(s)){i=!0;for(c in s)m(e,t,c,s[c],!0,a,r)}else if(void 0!==o&&(i=!0,n.isFunction(o)||(r=!0),l&&(r?(t.call(e,o),t=null):(l=t,t=function(e,t,s){return l.call(n(e),s)})),t))for(;c<d;c++)t(e[c],s,r?o:o.call(e[c],c,t(e[c],s)));return i?e:l?t.call(e):d?t(e[0],s):a},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},A.uid=1,A.prototype={cache:function(e){var t=e[this.expando];return t||(t={},F(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,s){var o,i=this.cache(e);if("string"==typeof t)i[n.camelCase(t)]=s;else for(o in t)i[n.camelCase(o)]=t[o];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][n.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var o,s=e[this.expando];if(void 0!==s){if(void 0!==t)for(Array.isArray(t)?t=t.map(n.camelCase):(t=n.camelCase(t),t=t in s?[t]:t.match(l)||[]),o=t.length;o--;)delete s[t[o]];(void 0===t||n.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!n.isEmptyObject(t)}};var s=new A,r=new A,xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,wt=/[A-Z]/g;n.extend({hasData:function(e){return r.hasData(e)||s.hasData(e)},data:function(e,t,n){return r.access(e,t,n)},removeData:function(e,t){r.remove(e,t)},_data:function(e,t,n){return s.access(e,t,n)},_removeData:function(e,t){s.remove(e,t)}}),n.fn.extend({data:function(e,t){var i,a,c,o=this[0],l=o&&o.attributes;if(void 0===e){if(this.length&&(c=r.get(o),1===o.nodeType&&!s.get(o,"hasDataAttrs"))){for(a=l.length;a--;)l[a]&&0===(i=l[a].name).indexOf("data-")&&(i=n.camelCase(i.slice(5)),ve(o,i,c[i]));s.set(o,"hasDataAttrs",!0)}return c}return"object"==typeof e?this.each(function(){r.set(this,e)}):m(this,function(t){var n;if(o&&void 0===t){{if(void 0!==(n=r.get(o,e)))return n;if(void 0!==(n=ve(o,e)))return n}}else this.each(function(){r.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){r.remove(this,e)})}}),n.extend({queue:function(e,t,o){var i;if(e)return t=(t||"fx")+"queue",i=s.get(e,t),o&&(!i||Array.isArray(o)?i=s.access(e,t,n.makeArray(o)):i.push(o)),i||[]},dequeue:function(e,t){t=t||"fx";var s=n.queue(e,t),a=s.length,o=s.shift(),i=n._queueHooks(e,t);"inprogress"===o&&(o=s.shift(),a--),o&&("fx"===t&&s.unshift("inprogress"),delete i.stop,o.call(e,function(){n.dequeue(e,t)},i)),!a&&i&&i.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return s.get(e,o)||s.access(e,o,{empty:n.Callbacks("once memory").add(function(){s.remove(e,[t+"queue",o])})})}}),n.fn.extend({queue:function(e,t){var s=2;return"string"!=typeof e&&(t=e,e="fx",s--),arguments.length<s?n.queue(this[0],e):void 0===t?this:this.each(function(){var s=n.queue(this,e,t);n._queueHooks(this,e),"fx"===e&&"inprogress"!==s[0]&&n.dequeue(this,e)})},dequeue:function(e){return this.each(function(){n.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var o,a=1,r=n.Deferred(),i=this,c=this.length,l=function(){--a||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";c--;)(o=s.get(i[c],e+"queueHooks"))&&o.empty&&(a++,o.empty.add(l));return l(),r.promise(t)}});var Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,z=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),j=["Top","Right","Bottom","Left"],D=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&n.contains(e.ownerDocument,e)&&"none"===n.css(e,"display")},Ve=function(e,t,n,s){var o,i,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,s||[]);for(o in t)e.style[o]=a[o];return i},$e={};n.fn.extend({show:function(){return _(this,!0)},hide:function(){return _(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){D(this)?n(this).show():n(this).hide()})}});var We=/^(?:checkbox|radio)$/i,Ue=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,Ke=/^$|\/(?:java|ecma)script/i,d={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};d.optgroup=d.option,d.tbody=d.tfoot=d.colgroup=d.caption=d.thead,d.th=d.td,Ye=/<|&#?\w+;/,!function(){var e=o.createDocumentFragment().appendChild(o.createElement("div")),t=o.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),i.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",i.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var R=o.documentElement,jt=/^key/,bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ze=/^([^.]*)(?:\.(.+)|)/;n.event={global:{},add:function(e,t,o,i,a){var r,c,d,u,m,f,p,g,v,b,j,h=s.get(e);if(h)for(o.handler&&(m=o,o=m.handler,a=m.selector),a&&n.find.matchesSelector(R,a),o.guid||(o.guid=n.guid++),(p=h.events)||(p=h.events={}),(f=h.handle)||(f=h.handle=function(t){return void 0!==n&&n.event.triggered!==t.type?n.event.dispatch.apply(e,arguments):void 0}),v=(t=(t||"").match(l)||[""]).length;v--;)g=Ze.exec(t[v])||[],r=j=g[1],b=(g[2]||"").split(".").sort(),r&&(c=n.event.special[r]||{},r=(a?c.delegateType:c.bindType)||r,c=n.event.special[r]||{},d=n.extend({type:r,origType:j,data:i,handler:o,guid:o.guid,selector:a,needsContext:a&&n.expr.match.needsContext.test(a),namespace:b.join(".")},m),(u=p[r])||(u=p[r]=[],u.delegateCount=0,c.setup&&!1!==c.setup.call(e,i,b,f)||e.addEventListener&&e.addEventListener(r,f)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=o.guid)),a?u.splice(u.delegateCount++,0,d):u.push(d),n.event.global[r]=!0)},remove:function(e,t,o,i,a){var r,c,d,u,h,m,f,p,v,b,j,g=s.hasData(e)&&s.get(e);if(g&&(m=g.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(d=Ze.exec(t[p])||[],r=j=d[1],v=(d[2]||"").split(".").sort(),r){for(u=n.event.special[r]||{},h=m[r=(i?u.delegateType:u.bindType)||r]||[],d=d[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=f=h.length;f--;)c=h[f],!a&&j!==c.origType||o&&o.guid!==c.guid||d&&!d.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(f,1),c.selector&&h.delegateCount--,u.remove&&u.remove.call(e,c));b&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,v,g.handle)||n.removeEvent(e,r,g.handle),delete m[r])}else for(r in m)n.event.remove(e,r+t[p],o,i,!0);n.isEmptyObject(m)&&s.remove(e,"handle events")}},dispatch:function(e){var o,i,a,l,d,u,t=n.event.fix(e),c=new Array(arguments.length),h=(s.get(this,"events")||{})[t.type]||[],r=n.event.special[t.type]||{};for(c[0]=t,o=1;o<arguments.length;o++)c[o]=arguments[o];if(t.delegateTarget=this,!r.preDispatch||!1!==r.preDispatch.call(this,t)){for(u=n.event.handlers.call(this,t,h),o=0;(a=u[o++])&&!t.isPropagationStopped();)for(t.currentTarget=a.elem,l=0;(i=a.handlers[l++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(i.namespace)||(t.handleObj=i,t.data=i.data,void 0!==(d=((n.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,c))&&!1===(t.result=d)&&(t.preventDefault(),t.stopPropagation()));return r.postDispatch&&r.postDispatch.call(this,t),t.result}},handlers:function(e,t){var o,i,a,r,c,d=[],l=t.delegateCount,s=e.target;if(l&&s.nodeType&&!("click"===e.type&&e.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==e.type||!0!==s.disabled)){for(r=[],c={},i=0;i<l;i++)a=t[i],o=a.selector+" ",void 0===c[o]&&(c[o]=a.needsContext?n(o,this).index(s)>-1:n.find(o,this,null,[s]).length),c[o]&&r.push(a);r.length&&d.push({elem:s,handlers:r})}return s=this,l<t.length&&d.push({elem:s,handlers:t.slice(l)}),d},addProp:function(e,t){Object.defineProperty(n.Event.prototype,e,{enumerable:!0,configurable:!0,get:n.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[n.expando]?e:new n.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Qe()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Qe()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&u(this,"input"))return this.click(),!1},_default:function(e){return u(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},n.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},n.Event=function(e,t){return this instanceof n.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?H:w,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&n.extend(this,t),this.timeStamp=e&&e.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(e,t)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=H,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=H,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=H,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},n.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&jt.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&bt.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},n.event.addProp),n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){n.event.special[e]={delegateType:t,bindType:t,handle:function(e){var o,i=this,s=e.relatedTarget,a=e.handleObj;return s&&(s===i||n.contains(i,s))||(e.type=a.origType,o=a.handler.apply(this,arguments),e.type=t),o}}}),n.fn.extend({on:function(e,t,n,s){return oe(this,e,t,n,s)},one:function(e,t,n,s){return oe(this,e,t,n,s,1)},off:function(e,t,s){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,n(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(s=t,t=void 0),!1===s&&(s=w),this.each(function(){n.event.remove(this,e,s,t)})}});var kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,gt=/<script|<style|<link/i,pt=/checked\s*(?:[^=]|=\s*.checked.)/i,ft=/^true\/(.*)/,ht=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;n.extend({htmlPrefilter:function(e){return e.replace(kt,"<$1></$2>")},clone:function(e,t,s){var o,r,c,d,l=e.cloneNode(!0),u=n.contains(e.ownerDocument,e);if(!(i.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||n.isXMLDoc(e)))for(c=a(l),r=a(e),o=0,d=r.length;o<d;o++)yt(r[o],c[o]);if(t)if(s)for(r=r||a(e),c=c||a(l),o=0,d=r.length;o<d;o++)it(r[o],c[o]);else it(e,l);return(c=a(l,"script")).length>0&&Z(c,!u&&a(e,"script")),l},cleanData:function(e){for(var t,o,i,c=n.event.special,a=0;void 0!==(t=e[a]);a++)if(F(t)){if(o=t[s.expando]){if(o.events)for(i in o.events)c[i]?n.event.remove(t,i):n.removeEvent(t,i,o.handle);t[s.expando]=void 0}t[r.expando]&&(t[r.expando]=void 0)}}}),n.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return m(this,function(e){return void 0===e?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return y(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||nt(this,e).appendChild(e)})},prepend:function(){return y(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=nt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(n.cleanData(a(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e!=null&&e,t=t??e,this.map(function(){return n.clone(this,e,t)})},html:function(e){return m(this,function(e){var t=this[0]||{},s=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!gt.test(e)&&!d[(Ue.exec(e)||["",""])[1].toLowerCase()]){e=n.htmlPrefilter(e);try{for(;s<o;s++)1===(t=this[s]||{}).nodeType&&(n.cleanData(a(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return y(this,arguments,function(t){var s=this.parentNode;n.inArray(this,e)<0&&(n.cleanData(a(this)),s&&s.replaceChild(t,this))},e)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){n.fn[e]=function(e){for(var o,i=[],a=n(e),r=a.length-1,s=0;s<=r;s++)o=s===r?this:this.clone(!0),n(a[s])[t](o),ie.apply(i,o.get());return this.pushStack(i)}});var ot=/^margin/,ne=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),B=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function s(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",t.innerHTML="",R.appendChild(a);var n=e.getComputedStyle(t),r="1%"!==n.top,d="2px"===n.marginLeft,c="4px"===n.width;t.style.marginRight="50%",l="4px"===n.marginRight,R.removeChild(a),t=null}}var r,c,l,d,a=o.createElement("div"),t=o.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",i.clearCloneStyle="content-box"===t.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(t),n.extend(i,{pixelPosition:function(){return s(),r},boxSizingReliable:function(){return s(),c},pixelMarginRight:function(){return s(),l},reliableMarginLeft:function(){return s(),d}}))}();var At=/^(none|table(?!-c[ea]).+)/,ct=/^--/,vt={position:"absolute",visibility:"hidden",display:"block"},rt={letterSpacing:"0",fontWeight:"400"},at=["Webkit","Moz","ms"],st=o.createElement("div").style;n.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=T(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,s,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,l,d=n.camelCase(t),u=ct.test(t),c=e.style;return u||(t=He(d)),r=n.cssHooks[t]||n.cssHooks[d],void 0===s?r&&"get"in r&&void 0!==(a=r.get(e,!1,o))?a:c[t]:("string"===(l=typeof s)&&(a=z.exec(s))&&a[1]&&(s=Se(e,t,a),l="number"),void(s!=null&&s===s&&("number"===l&&(s+=a&&a[3]||(n.cssNumber[d]?"":"px")),i.clearCloneStyle||""!==s||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(s=r.set(e,s,o))||(u?c.setProperty(t,s):c[t]=s))))}},css:function(e,t,s,o){var i,a,r,c=n.camelCase(t);return ct.test(t)||(t=He(c)),(r=n.cssHooks[t]||n.cssHooks[c])&&"get"in r&&(i=r.get(e,!0,s)),void 0===i&&(i=T(e,t,o)),"normal"===i&&t in rt&&(i=rt[t]),""===s||s?(a=parseFloat(i),!0===s||isFinite(a)?a||0:i):i}}),n.each(["height","width"],function(e,t){n.cssHooks[t]={get:function(e,s,o){if(s)return!At.test(n.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ze(e,t,o):Ve(e,vt,function(){return ze(e,t,o)})},set:function(e,s,o){var i,a=o&&B(e),r=o&&De(e,t,o,"border-box"===n.css(e,"boxSizing",!1,a),a);return r&&(i=z.exec(s))&&"px"!==(i[3]||"px")&&(e.style[t]=s,s=n.css(e,t)),Ne(e,s,r)}}}),n.cssHooks.marginLeft=Be(i.reliableMarginLeft,function(e,t){if(t)return(parseFloat(T(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),n.each({margin:"",padding:"",border:"Width"},function(e,t){n.cssHooks[e+t]={expand:function(n){for(var s=0,i={},o="string"==typeof n?n.split(" "):[n];s<4;s++)i[e+j[s]+t]=o[s]||o[s-2]||o[0];return i}},ot.test(e)||(n.cssHooks[e+t].set=Ne)}),n.fn.extend({css:function(e,t){return m(this,function(e,t,s){var i,a,r={},o=0;if(Array.isArray(t)){for(i=B(e),a=t.length;o<a;o++)r[t[o]]=n.css(e,t[o],!1,i);return r}return void 0!==s?n.style(e,t,s):n.css(e,t)},e,t,arguments.length>1)}}),n.Tween=c,c.prototype={constructor:c,init:function(e,t,s,o,i,a){this.elem=e,this.prop=s,this.easing=i||n.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=a||(n.cssNumber[s]?"":"px")},cur:function(){var e=c.propHooks[this.prop];return e&&e.get?e.get(this):c.propHooks._default.get(this)},run:function(e){var t,s=c.propHooks[this.prop];return this.options.duration?this.pos=t=n.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),s&&s.set?s.set(this):c.propHooks._default.set(this),this}},c.prototype.init.prototype=c.prototype,c.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=n.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){n.fx.step[e.prop]?n.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[n.cssProps[e.prop]]&&!n.cssHooks[e.prop]?e.elem[e.prop]=e.now:n.style(e.elem,e.prop,e.now+e.unit)}}},c.propHooks.scrollTop=c.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},n.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},n.fx=c.prototype.init,n.fx.step={},tt=/^(?:toggle|show|hide)$/,et=/queueHooks$/,n.Animation=n.extend(h,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Se(n.elem,e,z.exec(t),n),n}]},tweener:function(e,t){n.isFunction(e)?(t=e,e=["*"]):e=e.match(l);for(var s,o=0,i=e.length;o<i;o++)s=e[o],h.tweeners[s]=h.tweeners[s]||[],h.tweeners[s].unshift(t)},prefilters:[function(e,t,o){var i,r,l,d,u,p,g,v,b="width"in t||"height"in t,m=this,f={},c=e.style,h=e.nodeType&&D(e),a=s.get(e,"fxshow");o.queue||(null==(d=n._queueHooks(e,"fx")).unqueued&&(d.unqueued=0,v=d.empty.fire,d.empty.fire=function(){d.unqueued||v()}),d.unqueued++,m.always(function(){m.always(function(){d.unqueued--,n.queue(e,"fx").length||d.empty.fire()})}));for(i in t)if(p=t[i],tt.test(p)){if(delete t[i],g=g||"toggle"===p,p===(h?"hide":"show")){if("show"!==p||!a||void 0===a[i])continue;h=!0}f[i]=a&&a[i]||n.style(e,i)}if((l=!n.isEmptyObject(t))||!n.isEmptyObject(f)){b&&1===e.nodeType&&(o.overflow=[c.overflow,c.overflowX,c.overflowY],null==(r=a&&a.display)&&(r=s.get(e,"display")),"none"===(u=n.css(e,"display"))&&(r?u=r:(_([e],!0),r=e.style.display||r,u=n.css(e,"display"),_([e]))),("inline"===u||"inline-block"===u&&r!=null)&&"none"===n.css(e,"float")&&(l||(m.done(function(){c.display=r}),r==null&&(u=c.display,r="none"===u?"":u)),c.display="inline-block")),o.overflow&&(c.overflow="hidden",m.always(function(){c.overflow=o.overflow[0],c.overflowX=o.overflow[1],c.overflowY=o.overflow[2]})),l=!1;for(i in f)l||(a?"hidden"in a&&(h=a.hidden):a=s.access(e,"fxshow",{display:r}),g&&(a.hidden=!h),h&&_([e],!0),m.done(function(){h||_([e]),s.remove(e,"fxshow");for(i in f)n.style(e,i,f[i])})),l=Fe(h?a[i]:0,i,m),i in a||(a[i]=l.start,h&&(l.end=l.start,l.start=0))}}],prefilter:function(e,t){t?h.prefilters.unshift(e):h.prefilters.push(e)}}),n.speed=function(e,t,s){var o=e&&"object"==typeof e?n.extend({},e):{complete:s||!s&&t||n.isFunction(e)&&e,duration:e,easing:s&&t||t&&!n.isFunction(t)&&t};return n.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in n.fx.speeds?o.duration=n.fx.speeds[o.duration]:o.duration=n.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){n.isFunction(o.old)&&o.old.call(this),o.queue&&n.dequeue(this,o.queue)},o},n.fn.extend({fadeTo:function(e,t,n,s){return this.filter(D).css("opacity",0).show().end().animate({opacity:t},e,n,s)},animate:function(e,t,o,i){var c=n.isEmptyObject(e),r=n.speed(t,o,i),a=function(){var t=h(this,n.extend({},e),r);(c||s.get(this,"finish"))&&t.stop(!0)};return a.finish=a,c||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(e,t,o){var i=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof e&&(o=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var c=!0,t=e!=null&&e+"queueHooks",r=n.timers,a=s.get(this);if(t)a[t]&&a[t].stop&&i(a[t]);else for(t in a)a[t]&&a[t].stop&&et.test(t)&&i(a[t]);for(t=r.length;t--;)r[t].elem!==this||e!=null&&r[t].queue!==e||(r[t].anim.stop(o),c=!1,r.splice(t,1));!c&&o||n.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,a=s.get(this),o=a[e+"queue"],r=a[e+"queueHooks"],i=n.timers,c=o?o.length:0;for(a.finish=!0,n.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<c;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete a.finish})}}),n.each(["toggle","show","hide"],function(e,t){var s=n.fn[t];n.fn[t]=function(e,n,o){return e==null||"boolean"==typeof e?s.apply(this,arguments):this.animate(V(t,!0),e,n,o)}}),n.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){n.fn[e]=function(e,n,s){return this.animate(t,e,n,s)}}),n.timers=[],n.fx.tick=function(){var s,e=0,t=n.timers;for(E=n.now();e<t.length;e++)(s=t[e])()||t[e]!==s||t.splice(e--,1);t.length||n.fx.stop(),E=void 0},n.fx.timer=function(e){n.timers.push(e),n.fx.start()},n.fx.interval=13,n.fx.start=function(){W||(W=!0,X())},n.fx.stop=function(){W=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(t,s){return t=n.fx?n.fx.speeds[t]||t:t,s=s||"fx",this.queue(s,function(n,s){var o=e.setTimeout(n,t);s.stop=function(){e.clearTimeout(o)}})},function(){var e=o.createElement("input"),t=o.createElement("select").appendChild(o.createElement("option"));e.type="checkbox",i.checkOn=""!==e.value,i.optSelected=t.selected,(e=o.createElement("input")).value="t",e.type="radio",i.radioValue="t"===e.value}(),O=n.expr.attrHandle,n.fn.extend({attr:function(e,t){return m(this,n.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){n.removeAttr(this,e)})}}),n.extend({attr:function(e,t,s){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?n.prop(e,t,s):(1===a&&n.isXMLDoc(e)||(i=n.attrHooks[t.toLowerCase()]||(n.expr.match.bool.test(t)?Je:void 0)),void 0!==s?null===s?void n.removeAttr(e,t):i&&"set"in i&&void 0!==(o=i.set(e,s,t))?o:(e.setAttribute(t,s+""),s):i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=n.find.attr(e,t),o??void 0))},attrHooks:{type:{set:function(e,t){if(!i.radioValue&&"radio"===t&&u(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,s=t&&t.match(l);if(s&&1===e.nodeType)for(;n=s[o++];)e.removeAttribute(n)}}),Je={set:function(e,t,s){return!1===t?n.removeAttr(e,s):e.setAttribute(s,s),s}},n.each(n.expr.match.bool.source.match(/\w+/g),function(e,t){var s=O[t]||n.find.attr;O[t]=function(e,t,n){var i,a,o=t.toLowerCase();return n||(a=O[o],O[o]=i,i=null!=s(e,t,n)?o:null,O[o]=a),i}}),Xe=/^(?:input|select|textarea|button)$/i,Ge=/^(?:a|area)$/i,n.fn.extend({prop:function(e,t){return m(this,n.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[n.propFix[e]||e]})}}),n.extend({prop:function(e,t,s){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&n.isXMLDoc(e)||(t=n.propFix[t]||t,o=n.propHooks[t]),void 0!==s?o&&"set"in o&&void 0!==(i=o.set(e,s,t))?i:e[t]=s:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=n.find.attr(e,"tabindex");return t?parseInt(t,10):Xe.test(e.nodeName)||Ge.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),i.optSelected||(n.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),n.fn.extend({addClass:function(e){var t,s,o,i,a,r,c,d=0;if(n.isFunction(e))return this.each(function(t){n(this).addClass(e.call(this,t,v(this)))});if("string"==typeof e&&e)for(a=e.match(l)||[];t=this[d++];)if(o=v(t),s=1===t.nodeType&&" "+g(o)+" "){for(r=0;i=a[r++];)s.indexOf(" "+i+" ")<0&&(s+=i+" ");o!==(c=g(s))&&t.setAttribute("class",c)}return this},removeClass:function(e){var t,s,o,i,a,r,c,d=0;if(n.isFunction(e))return this.each(function(t){n(this).removeClass(e.call(this,t,v(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(a=e.match(l)||[];s=this[d++];)if(o=v(s),t=1===s.nodeType&&" "+g(o)+" "){for(r=0;i=a[r++];)for(;t.indexOf(" "+i+" ")>-1;)t=t.replace(" "+i+" "," ");o!==(c=g(t))&&s.setAttribute("class",c)}return this},toggleClass:function(e,t){var o=typeof e;return"boolean"==typeof t&&"string"===o?t?this.addClass(e):this.removeClass(e):n.isFunction(e)?this.each(function(s){n(this).toggleClass(e.call(this,s,v(this),t),t)}):this.each(function(){var t,i,a,r;if("string"===o)for(a=0,i=n(this),r=e.match(l)||[];t=r[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==o||((t=v(this))&&s.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":s.get(this,"__className__")||""))})},hasClass:function(e){var t,n,s=0;for(n=" "+e+" ";t=this[s++];)if(1===t.nodeType&&(" "+g(v(t))+" ").indexOf(n)>-1)return!0;return!1}}),Ie=/\r/g,n.fn.extend({val:function(e){var t,s,i,o=this[0];return arguments.length?(i=n.isFunction(e),this.each(function(s){var o;1===this.nodeType&&(o=i?e.call(this,s,n(this).val()):e,o==null?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=n.map(o,function(e){return e==null?"":e+""})),(t=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=n.valHooks[o.type]||n.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(s=t.get(o,"value"))?s:(s=o.value,"string"==typeof s?s.replace(Ie,""):s??"")):void 0}}),n.extend({valHooks:{option:{get:function(e){var t=n.find.attr(e,"value");return t??g(n.text(e))}},select:{get:function(e){var t,s,a,r=e.options,o=e.selectedIndex,i="select-one"===e.type,c=i?null:[],l=i?o+1:r.length;for(s=o<0?l:i?o:0;s<l;s++)if(((t=r[s]).selected||s===o)&&!t.disabled&&(!t.parentNode.disabled||!u(t.parentNode,"optgroup"))){if(a=n(t).val(),i)return a;c.push(a)}return c},set:function(e,t){for(var s,o,i=e.options,a=n.makeArray(t),r=i.length;r--;)s=i[r],(s.selected=n.inArray(n.valHooks.option.get(s),a)>-1)&&(o=!0);return o||(e.selectedIndex=-1),a}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=n.inArray(n(e).val(),t)>-1}},i.checkOn||(n.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ee=/^(?:focusinfocus|focusoutblur)$/,n.extend(n.event,{trigger:function(t,i,a,r){var c,d,u,h,m,g,v,p=[a||o],l=P.call(t,"type")?t.type:t,f=P.call(t,"namespace")?t.namespace.split("."):[];if(c=d=a=a||o,3!==a.nodeType&&8!==a.nodeType&&!ee.test(l+n.event.triggered)&&(l.indexOf(".")>-1&&(f=l.split("."),l=f.shift(),f.sort()),h=l.indexOf(":")<0&&"on"+l,t=t[n.expando]?t:new n.Event(l,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),i=i==null?[t]:n.makeArray(i,[t]),u=n.event.special[l]||{},r||!u.trigger||!1!==u.trigger.apply(a,i))){if(!r&&!u.noBubble&&!n.isWindow(a)){for(v=u.delegateType||l,ee.test(v+l)||(c=c.parentNode);c;c=c.parentNode)p.push(c),d=c;d===(a.ownerDocument||o)&&p.push(d.defaultView||d.parentWindow||e)}for(g=0;(c=p[g++])&&!t.isPropagationStopped();)t.type=g>1?v:u.bindType||l,(m=(s.get(c,"events")||{})[t.type]&&s.get(c,"handle"))&&m.apply(c,i),(m=h&&c[h])&&m.apply&&F(c)&&(t.result=m.apply(c,i),!1===t.result&&t.preventDefault());return t.type=l,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),i)||!F(a)||h&&n.isFunction(a[l])&&!n.isWindow(a)&&((d=a[h])&&(a[h]=null),n.event.triggered=l,a[l](),n.event.triggered=void 0,d&&(a[h]=d)),t.result}},simulate:function(e,t,s){var o=n.extend(new n.Event,s,{type:e,isSimulated:!0});n.event.trigger(o,null,t)}}),n.fn.extend({trigger:function(e,t){return this.each(function(){n.event.trigger(e,t,this)})},triggerHandler:function(e,t){var s=this[0];if(s)return n.event.trigger(e,t,s,!0)}}),n.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){n.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),n.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),i.focusin="onfocusin"in e,i.focusin||n.each({focus:"focusin",blur:"focusout"},function(e,t){var o=function(e){n.event.simulate(t,e.target,n.event.fix(e))};n.event.special[t]={setup:function(){var n=this.ownerDocument||this,i=s.access(n,t);i||n.addEventListener(e,o,!0),s.access(n,t,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this,i=s.access(n,t)-1;i?s.access(n,t,i):(n.removeEventListener(e,o,!0),s.remove(n,t))}}});var S=e.location,Le=n.now(),K=/\?/;n.parseXML=function(t){var s;if(!t||"string"!=typeof t)return null;try{s=(new e.DOMParser).parseFromString(t,"text/xml")}catch{s=void 0}return s&&!s.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+t),s};var Et=/\[\]$/,xe=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;n.param=function(e,t){var s,o=[],i=function(e,t){var s=n.isFunction(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(s??"")};if(Array.isArray(e)||e.jquery&&!n.isPlainObject(e))n.each(e,function(){i(this.name,this.value)});else for(s in e)Y(s,e[s],t,i);return o.join("&")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=n.prop(this,"elements");return e?n.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!n(this).is(":disabled")&&Dt.test(this.nodeName)&&!Ut.test(e)&&(this.checked||!We.test(e))}).map(function(e,t){var s=n(this).val();return s==null?null:Array.isArray(s)?n.map(s,function(e){return{name:t.name,value:e.replace(xe,`\r
`)}}):{name:t.name,value:s.replace(xe,`\r
`)}}).get()}});var Mt=/%20/g,Ft=/#.*$/,Tt=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,Lt=/^\/\//,be={},G={},ge="*/".concat("*"),q=o.createElement("a");return q.href=S.href,n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:S.href,type:"GET",isLocal:St.test(S.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Q(Q(e,n.ajaxSettings),t):Q(n.ajaxSettings,e)},ajaxPrefilter:ye(be),ajaxTransport:ye(G),ajax:function(t,s){function f(t,s,o,l){var m,f,v,_,x,u=s;c||(c=!0,b&&e.clearTimeout(b),h=void 0,w=l||"",a.readyState=t>0?4:0,m=t>=200&&t<300||304===t,o&&(f=Vt(i,a,o)),f=Wt(i,f,a,m),m?(i.ifModified&&((_=a.getResponseHeader("Last-Modified"))&&(n.lastModified[r]=_),(_=a.getResponseHeader("etag"))&&(n.etag[r]=_)),204===t||"HEAD"===i.type?u="nocontent":304===t?u="notmodified":(u=f.state,x=f.data,v=f.error,m=!v)):(v=u,!t&&u||(u="error",t<0&&(t=0))),a.status=t,a.statusText=(s||u)+"",m?y.resolveWith(d,[x,u,a]):y.rejectWith(d,[a,u,v]),a.statusCode(g),g=void 0,p&&j.trigger(m?"ajaxSuccess":"ajaxError",[a,i,m?x:v]),O.fireWith(d,[a,u]),p&&(j.trigger("ajaxComplete",[a,i]),--n.active||n.event.trigger("ajaxStop")))}"object"==typeof t&&(s=t,t=void 0),s=s||{};var r,c,u,h,m,p,v,b,_,w,i=n.ajaxSetup({},s),d=i.context||i,j=i.context&&(d.nodeType||d.jquery)?n(d):n.event,y=n.Deferred(),O=n.Callbacks("once memory"),g=i.statusCode||{},x={},C={},E="canceled",a={readyState:0,getResponseHeader:function(e){var t;if(c){if(!m)for(m={};t=zt.exec(w);)m[t[1].toLowerCase()]=t[2];t=m[e.toLowerCase()]}return t??null},getAllResponseHeaders:function(){return c?w:null},setRequestHeader:function(e,t){return c==null&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return c==null&&(i.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)a.always(e[a.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||E;return h&&h.abort(t),f(0,t),this}};if(y.promise(a),i.url=((t||i.url||S.href)+"").replace(Lt,S.protocol+"//"),i.type=s.method||s.type||i.method||i.type,i.dataTypes=(i.dataType||"*").toLowerCase().match(l)||[""],null==i.crossDomain){u=o.createElement("a");try{u.href=i.url,u.href=u.href,i.crossDomain=q.protocol+"//"+q.host!=u.protocol+"//"+u.host}catch{i.crossDomain=!0}}if(i.data&&i.processData&&"string"!=typeof i.data&&(i.data=n.param(i.data,i.traditional)),je(be,i,s,a),c)return a;(p=n.event&&i.global)&&0==n.active++&&n.event.trigger("ajaxStart"),i.type=i.type.toUpperCase(),i.hasContent=!Nt.test(i.type),r=i.url.replace(Ft,""),i.hasContent?i.data&&i.processData&&0===(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&(i.data=i.data.replace(Mt,"+")):(v=i.url.slice(r.length),i.data&&(r+=(K.test(r)?"&":"?")+i.data,delete i.data),!1===i.cache&&(r=r.replace(Tt,"$1"),v=(K.test(r)?"&":"?")+"_="+Le+++v),i.url=r+v),i.ifModified&&(n.lastModified[r]&&a.setRequestHeader("If-Modified-Since",n.lastModified[r]),n.etag[r]&&a.setRequestHeader("If-None-Match",n.etag[r])),(i.data&&i.hasContent&&!1!==i.contentType||s.contentType)&&a.setRequestHeader("Content-Type",i.contentType),a.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+("*"!==i.dataTypes[0]?", "+ge+"; q=0.01":""):i.accepts["*"]);for(_ in i.headers)a.setRequestHeader(_,i.headers[_]);if(i.beforeSend&&(!1===i.beforeSend.call(d,a,i)||c))return a.abort();if(E="abort",O.add(i.complete),a.done(i.success),a.fail(i.error),h=je(G,i,s,a)){if(a.readyState=1,p&&j.trigger("ajaxSend",[a,i]),c)return a;i.async&&i.timeout>0&&(b=e.setTimeout(function(){a.abort("timeout")},i.timeout));try{c=!1,h.send(x,f)}catch(e){if(c)throw e;f(-1,e)}}else f(-1,"No Transport");return a},getJSON:function(e,t,s){return n.get(e,t,s,"json")},getScript:function(e,t){return n.get(e,void 0,t,"script")}}),n.each(["get","post"],function(e,t){n[t]=function(e,s,o,i){return n.isFunction(s)&&(i=i||o,o=s,s=void 0),n.ajax(n.extend({url:e,type:t,dataType:i,data:s,success:o},n.isPlainObject(e)&&e))}}),n._evalUrl=function(e){return n.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},n.fn.extend({wrapAll:function(e){var t;return this[0]&&(n.isFunction(e)&&(e=e.call(this[0])),t=n(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return n.isFunction(e)?this.each(function(t){n(this).wrapInner(e.call(this,t))}):this.each(function(){var t=n(this),s=t.contents();s.length?s.wrapAll(e):t.append(e)})},wrap:function(e){var t=n.isFunction(e);return this.each(function(s){n(this).wrapAll(t?e.call(this,s):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){n(this).replaceWith(this.childNodes)}),this}}),n.expr.pseudos.hidden=function(e){return!n.expr.pseudos.visible(e)},n.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},n.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}},pe={0:200,1223:204},C=n.ajaxSettings.xhr(),i.cors=!!C&&"withCredentials"in C,i.ajax=C=!!C,n.ajaxTransport(function(t){var n,s;if(i.cors||C&&!t.crossDomain)return{send:function(o,i){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(r in o)a.setRequestHeader(r,o[r]);n=function(e){return function(){n&&(n=s=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(pe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),s=a.onerror=n("error"),void 0!==a.onabort?a.onabort=s:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&s()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),n.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return n.globalEval(e),e}}}),n.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),n.ajaxTransport("script",function(e){if(e.crossDomain){var t,s;return{send:function(i,a){s=n("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",t=function(e){s.remove(),t=null,e&&a("error"===e.type?404:200,e.type)}),o.head.appendChild(s[0])},abort:function(){t&&t()}}}}),J=[],L=/(=)\?(?=&|$)|\?\?/,n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=J.pop()||n.expando+"_"+Le++;return this[e]=!0,e}}),n.ajaxPrefilter("json jsonp",function(t,s,o){var i,a,r,c=!1!==t.jsonp&&(L.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&L.test(t.data)&&"data");if(c||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c?t[c]=t[c].replace(L,"$1"+i):!1!==t.jsonp&&(t.url+=(K.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||n.error(i+" was not called"),r[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){r=arguments},o.always(function(){void 0===a?n(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=s.jsonpCallback,J.push(i)),r&&n.isFunction(a)&&a(r[0]),r=a=void 0}),"script"}),i.createHTMLDocument=function(){var e=o.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),n.parseHTML=function(e,t,s){if("string"!=typeof e)return[];"boolean"==typeof t&&(s=t,t=!1);var a,r,c;return t||(i.createHTMLDocument?(t=o.implementation.createHTMLDocument(""),c=t.createElement("base"),c.href=o.location.href,t.head.appendChild(c)):t=o),a=Oe.exec(e),r=!s&&[],a?[t.createElement(a[1])]:(a=re([e],t,r),r&&r.length&&n(r).remove(),n.merge([],a.childNodes))},n.fn.load=function(e,t,s){var o,r,c,i=this,a=e.indexOf(" ");return a>-1&&(o=g(e.slice(a)),e=e.slice(0,a)),n.isFunction(t)?(s=t,t=void 0):t&&"object"==typeof t&&(r="POST"),i.length>0&&n.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){c=arguments,i.html(o?n("<div>").append(n.parseHTML(e)).find(o):e)}).always(s&&function(e,t){i.each(function(){s.apply(this,c||[e.responseText,t,e])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){n.fn[t]=function(e){return this.on(t,e)}}),n.expr.pseudos.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length},n.offset={setOffset:function(e,t,s){var o,a,r,c,l,d,u=n.css(e,"position"),h=n(e),i={};"static"===u&&(e.style.position="relative"),o=h.offset(),c=n.css(e,"top"),d=n.css(e,"left"),("absolute"===u||"fixed"===u)&&(c+d).indexOf("auto")>-1?(a=h.position(),l=a.top,r=a.left):(l=parseFloat(c)||0,r=parseFloat(d)||0),n.isFunction(t)&&(t=t.call(e,s,n.extend({},o))),null!=t.top&&(i.top=t.top-o.top+l),null!=t.left&&(i.left=t.left-o.left+r),"using"in t?t.using.call(e,i):h.css(i)}},n.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){n.offset.setOffset(this,e,t)});var s,o,i,a,t=this[0];return t?t.getClientRects().length?(i=t.getBoundingClientRect(),s=t.ownerDocument,o=s.documentElement,a=s.defaultView,{top:i.top+a.pageYOffset-o.clientTop,left:i.left+a.pageXOffset-o.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,s,o=this[0],e={top:0,left:0};return"fixed"===n.css(o,"position")?s=o.getBoundingClientRect():(t=this.offsetParent(),s=this.offset(),u(t[0],"html")||(e=t.offset()),e={top:e.top+n.css(t[0],"borderTopWidth",!0),left:e.left+n.css(t[0],"borderLeftWidth",!0)}),{top:s.top-e.top-n.css(o,"marginTop",!0),left:s.left-e.left-n.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===n.css(e,"position");)e=e.offsetParent;return e||R})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var s="pageYOffset"===t;n.fn[e]=function(o){return m(this,function(e,o,i){var a;return n.isWindow(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i?a?a[t]:e[o]:void(a?a.scrollTo(s?a.pageXOffset:i,s?i:a.pageYOffset):e[o]=i)},e,o,arguments.length)}}),n.each(["top","left"],function(e,t){n.cssHooks[t]=Be(i.pixelPosition,function(e,s){if(s)return s=T(e,t),ne.test(s)?n(e).position()[t]+"px":s})}),n.each({Height:"height",Width:"width"},function(e,t){n.each({padding:"inner"+e,content:t,"":"outer"+e},function(s,o){n.fn[o]=function(i,a){var r=arguments.length&&(s||"boolean"!=typeof i),c=s||(!0===i||!0===a?"margin":"border");return m(this,function(t,s,i){var a;return n.isWindow(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?n.css(t,s,c):n.style(t,s,i,c)},t,r?i:void 0,r)}})}),n.fn.extend({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,s){return this.on(t,e,n,s)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),n.holdReady=function(e){e?n.readyWait++:n.ready(!0)},n.isArray=Array.isArray,n.parseJSON=JSON.parse,n.nodeName=u,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n}),ue=e.jQuery,le=e.$,n.noConflict=function(t){return e.$===n&&(e.$=le),t&&e.jQuery===n&&(e.jQuery=ue),n},t||(e.jQuery=e.$=n),n}),"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(e,t){"use strict";function n(n){var s=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),s&&s.warn&&!e.migrateMute&&(s.warn("JQMIGRATE: "+n),e.migrateTrace&&s.trace&&s.trace()))}function s(e,t,s,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n(o),s}})}e.migrateVersion="3.0.0",function(){var n=t.console&&t.console.log&&function(){t.console.log.apply(t.console,arguments)},s=/^[12]\./;n&&(e&&!s.test(e.fn.jquery)||n("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&n("JQMIGRATE: Migrate plugin loaded multiple times"),n("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion))}(),i={},e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&n("jQuery is not compatible with Quirks Mode");var o,i,r,c,l,d,u,h,m,f,p,g,v,j=e.fn.init,y=e.isNumeric,a=e.find,_=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,O=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(n("jQuery( '#' ) is not a valid selector"),t[0]=[]),j.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var t=Array.prototype.slice.call(arguments);if("string"==typeof e&&_.test(e))try{document.querySelector(e)}catch{e=e.replace(O,function(e,t,n,s){return"["+t+n+'"'+s+'"]'});try{document.querySelector(e),n("Attribute selector with '#' must be quoted: "+t[0]),t[0]=e}catch{n("Attribute selector with '#' was not fixed: "+t[0])}}return a.apply(this,t)};for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e.find[o]=a[o]);e.fn.size=function(){return n("jQuery.fn.size() is deprecated; use the .length property"),this.length},e.parseJSON=function(){return n("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){function o(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0}var i=y(t),s=o(t);return i!==s&&n("jQuery.isNumeric() should not be called on constructed objects"),s},s(e,"unique",e.uniqueSort,"jQuery.unique is deprecated, use jQuery.uniqueSort"),s(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is now jQuery.expr.pseudos"),s(e.expr,":",e.expr.pseudos,'jQuery.expr[":"] is now jQuery.expr.pseudos'),u=e.ajax,e.ajax=function(){var e=u.apply(this,arguments);return e.promise&&(s(e,"success",e.done,"jQXHR.success is deprecated and removed"),s(e,"error",e.fail,"jQXHR.error is deprecated and removed"),s(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var x=e.fn.removeAttr,b=e.fn.toggleClass,w=/\S+/g;e.fn.removeAttr=function(t){var s=this;return e.each(t.match(w),function(t,o){e.expr.match.bool.test(o)&&(n("jQuery.fn.removeAttr no longer sets boolean properties: "+o),s.prop(o,!1))}),x.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(n("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||t===!1?"":e.data(this,"__className__")||"")}))},r=!1,e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var s=e.cssHooks[n]&&e.cssHooks[n].get;s&&(e.cssHooks[n].get=function(){var e;return r=!0,e=s.apply(this,arguments),r=!1,e})}),e.swap=function(e,t,s,o){var i,a,c={};r||n("jQuery.swap() is undocumented and deprecated");for(i in t)c[i]=e.style[i],e.style[i]=t[i];a=s.apply(e,o||[]);for(i in t)e.style[i]=c[i];return a},c=e.data,e.data=function(t,s,o){var i;return s&&s!==e.camelCase(s)&&(i=e.hasData(t)&&c.call(this,t),i&&s in i)?(n("jQuery.data() always sets/gets camelCased names: "+s),arguments.length>2&&(i[s]=o),i[s]):c.apply(this,arguments)},l=e.Tween.prototype.run,e.Tween.prototype.run=function(t){e.easing[this.easing].length>1&&(n('easing function "jQuery.easing.'+this.easing.toString()+'" should use only first argument'),e.easing[this.easing]=e.easing[this.easing].bind(e.easing,t,this.options.duration*t,0,1,this.options.duration)),l.apply(this,arguments)},d=e.fn.load,v=e.event.fix,e.event.props=[],e.event.fixHooks={},e.event.fix=function(t){var i,a=t.type,o=this.fixHooks[a],s=e.event.props;if(s.length)for(n("jQuery.event.props are deprecated and removed: "+s.join());s.length;)e.event.addProp(s.pop());if(o&&!o._migrated_&&(o._migrated_=!0,n("jQuery.event.fixHooks are deprecated and removed: "+a),(s=o.props)&&s.length))for(;s.length;)e.event.addProp(s.pop());return i=v.call(this,t),o&&o.filter?o.filter(i,t):i},e.each(["load","unload","error"],function(t,s){e.fn[s]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===s&&"string"==typeof e[0]?d.apply(this,e):(n("jQuery.fn."+s+"() is deprecated"),e.splice(0,0,s),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e(function(){e(document).triggerHandler("ready")}),e.event.special.ready={setup:function(){this===document&&n("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,s){return n("jQuery.fn.bind() is deprecated"),this.on(e,null,t,s)},unbind:function(e,t){return n("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,s,o){return n("jQuery.fn.delegate() is deprecated"),this.on(t,e,s,o)},undelegate:function(e,t,s){return n("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",s)}}),g=e.fn.offset,e.fn.offset=function(){var s,t=this[0],o={top:0,left:0};return t&&t.nodeType?(s=(t.ownerDocument||document).documentElement,e.contains(s,t)?g.apply(this,arguments):(n("jQuery.fn.offset() requires an element connected to a document"),o)):(n("jQuery.fn.offset() requires a valid DOM element"),o)},p=e.param,e.param=function(t,s){var o=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===s&&o&&(n("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),s=o),p.call(this,t,s)},f=e.fn.andSelf||e.fn.addBack,e.fn.andSelf=function(){return n("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),f.apply(this,arguments)},m=e.Deferred,h=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]],e.Deferred=function(t){var s=m(),o=s.promise();return s.pipe=o.pipe=function(){var t=arguments;return n("deferred.pipe() is deprecated"),e.Deferred(function(n){e.each(h,function(i,a){var r=e.isFunction(t[i])&&t[i];s[a[1]](function(){var t=r&&r.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===o?n.promise():this,r?[t]:arguments)})}),t=null}).promise()},t&&t.call(s,s),s}}(jQuery,window),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return t.raw?e:encodeURIComponent(e)}function o(e){return t.raw?e:decodeURIComponent(e)}function i(e){return n(t.json?JSON.stringify(e):String(e))}function a(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(r," ")),t.json?JSON.parse(e):e}catch{}}function s(n,s){var o=t.raw?n:a(n);return e.isFunction(s)?s(o):o}var r=/\+/g,t=e.cookie=function(a,r,c){if(arguments.length>1&&!e.isFunction(r))return"number"==typeof(c=e.extend({},t.defaults,c)).expires&&(m=c.expires,d=c.expires=new Date,d.setMilliseconds(d.getMilliseconds()+864e5*m)),document.cookie=[n(a),"=",i(r),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("");for(var d,m,u=a?void 0:{},f=document.cookie?document.cookie.split("; "):[],h=0,v=f.length;h<v;h++){var p=f[h].split("="),g=o(p.shift()),l=p.join("=");if(a===g){u=s(l,r);break}a||void 0===(l=s(l))||(u[g]=l)}return u};t.defaults={},e.removeCookie=function(t,n){return e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t)}}),function(){var t,n,s,o,i,a,r,c,l=window.device,e={};window.device=e,s=window.document.documentElement,c=window.navigator.userAgent.toLowerCase(),e.ios=function(){return e.iphone()||e.ipod()||e.ipad()},e.iphone=function(){return!e.windows()&&t("iphone")},e.ipod=function(){return t("ipod")},e.ipad=function(){return t("ipad")},e.android=function(){return!e.windows()&&t("android")},e.androidPhone=function(){return e.android()&&t("mobile")},e.androidTablet=function(){return e.android()&&!t("mobile")},e.blackberry=function(){return t("blackberry")||t("bb10")||t("rim")},e.blackberryPhone=function(){return e.blackberry()&&!t("tablet")},e.blackberryTablet=function(){return e.blackberry()&&t("tablet")},e.windows=function(){return t("windows")},e.windowsPhone=function(){return e.windows()&&t("phone")},e.windowsTablet=function(){return e.windows()&&t("touch")&&!e.windowsPhone()},e.fxos=function(){return(t("(mobile;")||t("(tablet;"))&&t("; rv:")},e.fxosPhone=function(){return e.fxos()&&t("mobile")},e.fxosTablet=function(){return e.fxos()&&t("tablet")},e.meego=function(){return t("meego")},e.cordova=function(){return window.cordova&&"file:"===location.protocol},e.nodeWebkit=function(){return"object"==typeof window.process},e.mobile=function(){return e.androidPhone()||e.iphone()||e.ipod()||e.windowsPhone()||e.blackberryPhone()||e.fxosPhone()||e.meego()},e.tablet=function(){return e.ipad()||e.androidTablet()||e.blackberryTablet()||e.windowsTablet()||e.fxosTablet()},e.desktop=function(){return!e.tablet()&&!e.mobile()},e.television=function(){var e,n=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"];for(e=0;e<n.length;){if(t(n[e]))return!0;e++}return!1},e.portrait=function(){return window.innerHeight/window.innerWidth>1},e.landscape=function(){return window.innerHeight/window.innerWidth<1},e.noConflict=function(){return window.device=l,this},t=function(e){return-1!==c.indexOf(e)},a=function(e){var t;return t=new RegExp(e,"i"),s.className.match(t)},n=function(e){var t=null;a(e)||(t=s.className.replace(/^\s+|\s+$/g,""),s.className=t+" "+e)},r=function(e){a(e)&&(s.className=s.className.replace(" "+e,""))},e.ios()?e.ipad()?n("ios ipad tablet"):e.iphone()?n("ios iphone mobile"):e.ipod()&&n("ios ipod mobile"):e.android()?n(e.androidTablet()?"android tablet":"android mobile"):e.blackberry()?n(e.blackberryTablet()?"blackberry tablet":"blackberry mobile"):e.windows()?n(e.windowsTablet()?"windows tablet":e.windowsPhone()?"windows mobile":"desktop"):e.fxos()?n(e.fxosTablet()?"fxos tablet":"fxos mobile"):e.meego()?n("meego mobile"):e.nodeWebkit()?n("node-webkit"):e.television()?n("television"):e.desktop()&&n("desktop"),e.cordova()&&n("cordova"),o=function(){e.landscape()?(r("portrait"),n("landscape")):(r("landscape"),n("portrait"))},i=Object.prototype.hasOwnProperty.call(window,"onorientationchange")?"orientationchange":"resize",window.addEventListener?window.addEventListener(i,o,!1):window.attachEvent?window.attachEvent(i,o):window[i]=o,o(),"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:window.device=e}.call(this),function(e,t,n){var l,s=e([]),o=e.resize=e.extend(e.resize,{}),i="setTimeout",c="resize",a=c+"-special-event",d="delay",r="throttleWindow";o[d]=250,o[r]=!0,e.event.special[c]={setup:function(){if(!o[r]&&this[i])return!1;var t=e(this);s=s.add(t),e.data(this,a,{w:t.width(),h:t.height()}),s.length===1&&u()},teardown:function(){if(!o[r]&&this[i])return!1;var t=e(this);s=s.not(t),t.removeData(a),s.length||clearTimeout(l)},add:function(t){if(!o[r]&&this[i])return!1;var s;function c(t,o,i){var r=e(this),c=e.data(this,a);c.w=o!==n?o:r.width(),c.h=i!==n?i:r.height(),s.apply(this,arguments)}if(e.isFunction(t))return s=t,c;s=t.handler,t.handler=c}};function u(){l=t[i](function(){s.each(function(){var n=e(this),s=n.width(),o=n.height(),t=e.data(this,a);(s!==t.w||o!==t.h)&&n.trigger(c,[t.w=s,t.h=o])}),u()},o[d])}}(jQuery,this),!function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?exports=e(require("jquery")):e(jQuery)}(function(e){function o(e){var n=7.5625,t=2.75;return e<1/t?n*e*e:e<2/t?n*(e-=1.5/t)*e+.75:e<2.5/t?n*(e-=2.25/t)*e+.9375:n*(e-=2.625/t)*e+.984375}e.easing.jswing=e.easing.swing;var t=Math.pow,i=Math.sqrt,n=Math.sin,c=Math.cos,s=Math.PI,a=1.70158,r=1.525*a,l=2*s/3,d=2*s/4.5;e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-t(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-t(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-t(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-t(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-t(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-t(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-t(-2*e+2,5)/2},easeInSine:function(e){return 1-c(e*s/2)},easeOutSine:function(e){return n(e*s/2)},easeInOutSine:function(e){return-(c(s*e)-1)/2},easeInExpo:function(e){return 0===e?0:t(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-t(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?t(2,20*e-10)/2:(2-t(2,-20*e+10))/2},easeInCirc:function(e){return 1-i(1-t(e,2))},easeOutCirc:function(e){return i(1-t(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-i(1-t(2*e,2)))/2:(i(1-t(-2*e+2,2))+1)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-t(2,10*e-10)*n((10*e-10.75)*l)},easeOutElastic:function(e){return 0===e?0:1===e?1:t(2,-10*e)*n((10*e-.75)*l)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-t(2,20*e-10)*n((20*e-11.125)*d)/2:t(2,-20*e+10)*n((20*e-11.125)*d)/2+1},easeInBack:function(e){return 2.70158*e*e*e-a*e*e},easeOutBack:function(e){return 1+2.70158*t(e-1,3)+a*t(e-1,2)},easeInOutBack:function(e){return e<.5?t(2*e,2)*(7.189819*e-r)/2:(t(2*e-2,2)*((r+1)*(2*e-2)+r)+2)/2},easeInBounce:function(e){return 1-o(1-e)},easeOutBounce:o,easeInOutBounce:function(e){return e<.5?(1-o(1-2*e))/2:(1+o(2*e-1))/2}})}),!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function E(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=d),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var s=e(this),n=s.data(c);n||(n=new k(this,t),s.data(c,n))})}function k(E,k){function pe(t){if(!(We()||e(t.target).closest(k.excludedElements,A).length>0)&&(s=t.originalEvent?t.originalEvent:t,!s.pointerType||"mouse"!=s.pointerType||0!=k.fallbackToMouseEvents)){var s,i,o=s.touches,a=o?o[0]:s;return M=y,o?F=o.length:!1!==k.preventDefaultEvents&&t.preventDefault(),z=0,D=null,N=null,P=null,T=0,B=0,V=0,R=1,H=0,G=Ue(),Te(),ee(0,a),!o||F===k.fingers||k.fingers===h||se()?(ae=$(),2==F&&(ee(1,o[1]),B=V=re(S[0].start,S[1].start)),(k.swipeStatus||k.pinchStatus)&&(i=L(s,M))):i=!1,!1===i?(M=n,L(s,M),i):(k.hold&&(Y=setTimeout(e.proxy(function(){A.trigger("hold",[s.target]),k.hold&&(i=k.hold.call(A,s,s.target))},this),k.longTapThreshold)),te(!0),null)}}function le(e){if(s=e.originalEvent?e.originalEvent:e,M!==t&&M!==n&&!X()){var s,a,r,c,o=s.touches,i=ye(o?o[0]:s),ne=$();o&&(F=o.length),k.hold&&clearTimeout(Y),M=l,2==F&&(0==B?(ee(1,o[1]),B=V=re(S[0].start,S[1].start)):(ye(o[1]),V=re(S[0].end,S[1].end),P=tt(S[0].end,S[1].end)),R=Pe(B,V),H=Math.abs(B-V)),F===k.fingers||k.fingers===h||!o||se()?(D=xe(i.start,i.end),N=xe(i.last,i.end),Ze(e,N),z=Je(i.start,i.end),T=Ce(),$e(D,z),r=L(s,M),!k.triggerOnTouchEnd||k.triggerOnTouchLeave)&&(a=!0,k.triggerOnTouchLeave&&(c=Ge(this),a=Ye(i.end,c)),!k.triggerOnTouchEnd&&a?M=ge(l):k.triggerOnTouchLeave&&!a&&(M=ge(t)),M!=n&&M!=t||L(s,M)):(M=n,L(s,M)),!1===r&&(M=n,L(s,M))}}function de(e){var s=e.originalEvent?e.originalEvent:e,o=s.touches;if(o){if(o.length&&!X())return Le(s),!0;if(o.length&&X())return!0}return X()&&(F=ce),ne=$(),T=Ce(),he()||!be()?(M=n,L(s,M)):k.triggerOnTouchEnd||!1===k.triggerOnTouchEnd&&M===l?(!1!==k.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),M=t,L(s,M)):!k.triggerOnTouchEnd&&Se()?(M=t,U(s,M,p)):M===l&&(M=n,L(s,M)),te(!1),null}function K(){F=0,ne=0,ae=0,B=0,V=0,R=1,Te(),te(!1)}function ue(e){var n=e.originalEvent?e.originalEvent:e;k.triggerOnTouchLeave&&(M=ge(t),L(n,M))}function _e(){A.unbind(J,pe),A.unbind(oe,K),A.unbind(fe,le),A.unbind(me,de),W&&A.unbind(W,ue),te(!1)}function ge(e){var s=e,i=we(),o=be(),a=he();return!i||a?s=n:!o||e!=l||k.triggerOnTouchEnd&&!k.triggerOnTouchLeave?!o&&e==t&&k.triggerOnTouchLeave&&(s=n):s=t,s}function L(e,s){var o,i=e.touches;return(qe()||ke())&&(o=U(e,s,w)),(Xe()||se())&&!1!==o&&(o=U(e,s,_)),ze()&&!1!==o?o=U(e,s,j):Re()&&!1!==o?o=U(e,s,x):He()&&!1!==o&&(o=U(e,s,p)),s===n&&K(e),s===t&&(i?i.length||K(e):K(e)),o}function U(o,c,l){var d;if(l==w){if(A.trigger("swipeStatus",[c,D||null,z||0,T||0,F,S,N]),k.swipeStatus&&!1===(d=k.swipeStatus.call(A,o,c,D||null,z||0,T||0,F,S,N)))return!1;if(c==t&&Ee()){if(clearTimeout(q),clearTimeout(Y),A.trigger("swipe",[D,z,T,F,S,N]),k.swipe&&!1===(d=k.swipe.call(A,o,D,z,T,F,S,N)))return!1;switch(D){case s:A.trigger("swipeLeft",[D,z,T,F,S,N]),k.swipeLeft&&(d=k.swipeLeft.call(A,o,D,z,T,F,S,N));break;case r:A.trigger("swipeRight",[D,z,T,F,S,N]),k.swipeRight&&(d=k.swipeRight.call(A,o,D,z,T,F,S,N));break;case i:A.trigger("swipeUp",[D,z,T,F,S,N]),k.swipeUp&&(d=k.swipeUp.call(A,o,D,z,T,F,S,N));break;case a:A.trigger("swipeDown",[D,z,T,F,S,N]),k.swipeDown&&(d=k.swipeDown.call(A,o,D,z,T,F,S,N))}}}if(l==_){if(A.trigger("pinchStatus",[c,P||null,H||0,T||0,F,R,S]),k.pinchStatus&&!1===(d=k.pinchStatus.call(A,o,c,P||null,H||0,T||0,F,R,S)))return!1;if(c==t&&Oe())switch(P){case b:A.trigger("pinchIn",[P||null,H||0,T||0,F,R,S]),k.pinchIn&&(d=k.pinchIn.call(A,o,P||null,H||0,T||0,F,R,S));break;case f:A.trigger("pinchOut",[P||null,H||0,T||0,F,R,S]),k.pinchOut&&(d=k.pinchOut.call(A,o,P||null,H||0,T||0,F,R,S))}}return l==p?c!==n&&c!==t||(clearTimeout(q),clearTimeout(Y),ve()&&!Ve()?(I=$(),q=setTimeout(e.proxy(function(){I=null,A.trigger("tap",[o.target]),k.tap&&(d=k.tap.call(A,o,o.target))},this),k.doubleTapThreshold)):(I=null,A.trigger("tap",[o.target]),k.tap&&(d=k.tap.call(A,o,o.target)))):l==j?c!==n&&c!==t||(clearTimeout(q),clearTimeout(Y),I=null,A.trigger("doubletap",[o.target]),k.doubleTap&&(d=k.doubleTap.call(A,o,o.target))):l==x&&(c!==n&&c!==t||(clearTimeout(q),I=null,A.trigger("longtap",[o.target]),k.longTap&&(d=k.longTap.call(A,o,o.target)))),d}function be(){var e=!0;return null!==k.threshold&&(e=z>=k.threshold),e}function he(){var e=!1;return null!==k.cancelThreshold&&null!==D&&(e=Me(D)-z>=k.cancelThreshold),e}function et(){return null===k.pinchThreshold||H>=k.pinchThreshold}function we(){return!(k.maxTimeThreshold&&T>=k.maxTimeThreshold)}function Ze(e,t){if(!1!==k.preventDefaultEvents)if(k.allowPageScroll===d)e.preventDefault();else{var n=k.allowPageScroll===O;switch(t){case s:(k.swipeLeft&&n||!n&&k.allowPageScroll!=g)&&e.preventDefault();break;case r:(k.swipeRight&&n||!n&&k.allowPageScroll!=g)&&e.preventDefault();break;case i:(k.swipeUp&&n||!n&&k.allowPageScroll!=v)&&e.preventDefault();break;case a:(k.swipeDown&&n||!n&&k.allowPageScroll!=v)&&e.preventDefault()}}}function Oe(){var e=Ae(),t=je(),n=et();return e&&t&&n}function se(){return!!(k.pinchStatus||k.pinchIn||k.pinchOut)}function Xe(){return!!Oe()&&!!se()}function Ee(){var e=we(),t=be(),n=Ae(),s=je();return!he()&&s&&n&&t&&e}function ke(){return!!(k.swipe||k.swipeStatus||k.swipeLeft||k.swipeRight||k.swipeUp||k.swipeDown)}function qe(){return!!Ee()&&!!ke()}function Ae(){return F===k.fingers||k.fingers===h||!u}function je(){return 0!==S[0].end.x}function Se(){return!!k.tap}function ve(){return!!k.doubleTap}function De(){return!!k.longTap}function Fe(){if(I==null)return!1;var e=$();return ve()&&e-I<=k.doubleTapThreshold}function Ve(){return Fe()}function Be(){return(1===F||!u)&&(isNaN(z)||z<k.threshold)}function Ie(){return T>k.longTapThreshold&&z<C}function He(){return!!Be()&&!!Se()}function ze(){return!!Fe()&&!!ve()}function Re(){return!!Ie()&&!!De()}function Le(e){ie=$(),ce=e.touches.length+1}function Te(){ie=0,ce=0}function X(){var e=!1;return ie&&$()-ie<=k.fingerReleaseThreshold&&(e=!0),e}function We(){return!0===A.data(c+"_intouch")}function te(e){A&&(!0===e?(A.bind(fe,le),A.bind(me,de),W&&A.bind(W,ue)):(A.unbind(fe,le,!1),A.unbind(me,de,!1),W&&A.unbind(W,ue,!1)),A.data(c+"_intouch",!0===e))}function ee(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,S[e]=n,n}function ye(e){var n=void 0!==e.identifier?e.identifier:0,t=Ne(n);return null===t&&(t=ee(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function Ne(e){return S[e]||null}function $e(e,t){e!=d&&(t=Math.max(t,Me(e)),G[e].distance=t)}function Me(e){if(G[e])return G[e].distance}function Ue(){var e={};return e[s]=Q(s),e[r]=Q(r),e[i]=Q(i),e[a]=Q(a),e}function Q(e){return{direction:e,distance:0}}function Ce(){return ne-ae}function re(e,t){var n=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+s*s))}function Pe(e,t){return(t/e*1).toFixed(2)}function tt(){return R<1?f:b}function Je(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Qe(e,t){var s=e.x-t.x,o=t.y-e.y,i=Math.atan2(o,s),n=Math.round(180*i/Math.PI);return n<0&&(n=360-Math.abs(n)),n}function xe(e,t){if(Ke(e,t))return d;var n=Qe(e,t);return n<=45&&n>=0?s:n<=360&&n>=315?s:n>=135&&n<=225?r:n>45&&n<135?a:i}function $(){return(new Date).getTime()}function Ge(t){var n=(t=e(t)).offset();return{left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()}}function Ye(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}function Ke(e,t){return e.x==t.x&&e.y==t.y}var k=e.extend({},k),Z=u||o||!k.fallbackToMouseEvents,J=Z?o?m?"MSPointerDown":"pointerdown":"touchstart":"mousedown",fe=Z?o?m?"MSPointerMove":"pointermove":"touchmove":"mousemove",me=Z?o?m?"MSPointerUp":"pointerup":"touchend":"mouseup",W=Z?o?"mouseleave":null:"mouseleave",oe=o?m?"MSPointerCancel":"pointercancel":"touchcancel",z=0,D=null,N=null,T=0,B=0,V=0,R=1,H=0,P=0,G=null,A=e(E),M="start",F=0,S={},ae=0,ne=0,ie=0,ce=0,I=0,q=null,Y=null;try{A.bind(J,pe),A.bind(oe,K)}catch{e.error("events not supported "+J+","+oe+" on jQuery.swipe")}this.enable=function(){return this.disable(),A.bind(J,pe),A.bind(oe,K),A},this.disable=function(){return _e(),A},this.destroy=function(){_e(),A.data(c,null),A=null},this.option=function(t,n){if("object"==typeof t)k=e.extend(k,t);else if(void 0!==k[t]){if(void 0===n)return k[t];k[t]=n}else{if(!t)return k;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var s="left",r="right",i="up",a="down",b="in",f="out",d="none",O="auto",w="swipe",_="pinch",p="tap",j="doubletap",x="longtap",g="horizontal",v="vertical",h="all",C=10,y="start",l="move",t="end",n="cancel",u="ontouchstart"in window,m=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!u,o=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!u,c="TouchSwipe",A={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var s=e(this),n=s.data(c);if(n&&"string"==typeof t){if(n[t])return n[t].apply(n,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof t)n.option.apply(n,arguments);else if(!(n||"object"!=typeof t&&t))return E.apply(this,arguments);return s},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults=A,e.fn.swipe.phases={PHASE_START:y,PHASE_MOVE:l,PHASE_END:t,PHASE_CANCEL:n},e.fn.swipe.directions={LEFT:s,RIGHT:r,UP:i,DOWN:a,IN:b,OUT:f},e.fn.swipe.pageScroll={NONE:d,HORIZONTAL:g,VERTICAL:v,AUTO:O},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:h}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function F(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function x(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function r(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=a(e),n=t.overflow,s=t.overflowX,o=t.overflowY;return/(auto|scroll)/.test(n+o+s)?e:r(x(e))}function o(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===a(t,"position")?o(t):t:window.document.documentElement}function ue(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||o(e.firstElementChild)===e)}function O(e){return null===e.parentNode?e:O(e.parentNode)}function u(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var n,i,a=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=a?e:t,c=a?t:e,s=document.createRange();return s.setStart(r,0),s.setEnd(c,0),n=s.commonAncestorContainer,e!==n&&t!==n||r.contains(c)?ue(n)?n:o(n):(i=O(e),i.host?u(i.host,t):u(e,O(t).host))}function i(e){var s,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===i?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(s=window.document.documentElement,o=window.document.scrollingElement||s,o[t]):e[t]}function de(e,t){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],s=i(t,"top"),o=i(t,"left"),n=a?-1:1;return e.top+=s*n,e.bottom+=s*n,e.left+=o*n,e.right+=o*n,e}function W(e,t){var n="x"===t?"Left":"Top",s="Left"==n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+s+"Width"].split("px")[0]}function C(e,t,s,o){return n(t["offset"+e],s["client"+e],s["offset"+e],h()?s["offset"+e]+o["margin"+("Height"===e?"Top":"Left")]+o["margin"+("Height"===e?"Bottom":"Right")]:0)}function P(){var t=window.document.body,e=window.document.documentElement,n=h()&&window.getComputedStyle(e);return{height:C("Height",t,e,n),width:C("Width",t,e,n)}}function t(t){return e({},t,{right:t.left+t.width,bottom:t.top+t.height})}function _(e){if(n={},h())try{n=e.getBoundingClientRect(),o=i(e,"top"),r=i(e,"left"),n.top+=o,n.left+=r,n.bottom+=o,n.right+=r}catch{}else n=e.getBoundingClientRect();var n,o,r,d,s={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},u="HTML"===e.nodeName?P():{},m=u.width||e.clientWidth||s.right-s.left,f=u.height||e.clientHeight||s.bottom-s.top,c=e.offsetWidth-m,l=e.offsetHeight-f;return(c||l)&&(d=a(e),c-=W(d,"x"),l-=W(d,"y"),s.width-=c,s.height-=l),t(s)}function p(e,n){var c,l,f=h(),g="HTML"===n.nodeName,o=_(e),p=_(n),d=r(e),i=a(n),u=+i.borderTopWidth.split("px")[0],m=+i.borderLeftWidth.split("px")[0],s=t({top:o.top-p.top-u,left:o.left-p.left-m,width:o.width,height:o.height});return(s.marginTop=0,s.marginLeft=0,!f&&g)&&(c=+i.marginTop.split("px")[0],l=+i.marginLeft.split("px")[0],s.top-=u-c,s.bottom-=u-c,s.left-=m-l,s.right-=m-l,s.marginTop=c,s.marginLeft=l),(f?n.contains(d):n===d&&"BODY"!==d.nodeName)&&(s=de(s,n)),s}function le(e){var s=window.document.documentElement,o=p(e,s),a=n(s.clientWidth,window.innerWidth||0),r=n(s.clientHeight,window.innerHeight||0),c=i(s),l=i(s,"left"),d={top:c-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:a,height:r};return t(d)}function R(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===a(e,"position")||R(x(e)))}function b(e,t,n,s){if(o={top:0,left:0},c=u(e,t),"viewport"===s)o=le(c);else if("scrollParent"===s?(a=r(x(e)),"BODY"===a.nodeName&&(a=window.document.documentElement)):"window"===s?a=window.document.documentElement:a=s,i=p(a,c),"HTML"===a.nodeName&&!R(c)){var o,i,a,c,l=P(),d=l.height,h=l.width;o.top+=i.top-i.marginTop,o.bottom=d+i.top,o.left+=i.left-i.marginLeft,o.right=h+i.left}else o=i;return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function ce(e){var t=e.width,n=e.height;return t*n}function D(t,n,s,o,i){if(c=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,-1===t.indexOf("auto"))return t;var c,a=b(s,o,c,i),r={top:{width:a.width,height:n.top-a.top},right:{width:a.right-n.right,height:a.height},bottom:{width:a.width,height:a.bottom-n.bottom},left:{width:n.left-a.left,height:a.height}},l=Object.keys(r).map(function(t){return e({key:t},r[t],{area:ce(r[t])})}).sort(function(e,t){return t.area-e.area}),d=l.filter(function(e){var t=e.width,n=e.height;return t>=s.clientWidth&&n>=s.clientHeight}),h=0<d.length?d[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function z(e,t,n){var s=u(t,n);return p(n,s)}function A(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),s=parseFloat(t.marginLeft)+parseFloat(t.marginRight),o={width:e.offsetWidth+s,height:e.offsetHeight+n};return o}function l(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function E(e,t,n){n=n.split("-")[0];var s=A(e),a={width:s.width,height:s.height},o=-1!==["right","left"].indexOf(n),r=o?"top":"left",i=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return a[r]=t[r]+t[c]/2-s[c]/2,a[i]=n===i?t[i]-s[d]:t[l(i)],a}function c(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function re(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var s=c(e,function(e){return e[t]===n});return e.indexOf(s)}function k(e,n,s){var o=void 0===s?e:e.slice(0,re(e,"name",s));return o.forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=e.function||e.fn;e.enabled&&F(s)&&(n.offsets.popper=t(n.offsets.popper),n.offsets.reference=t(n.offsets.reference),n=s(n,e))}),n}function ae(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=z(this.state,this.popper,this.reference),e.placement=D(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=E(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=k(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function S(e,t){return e.some(function(e){var n=e.name,s=e.enabled;return s&&n===t})}function M(e){for(var n,s,o=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),t=0;t<o.length-1;t++)if(n=o[t],s=n?""+n+i:e,"undefined"!=typeof window.document.body.style[s])return s;return null}function U(){return this.state.isDestroyed=!0,S(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function T(e,t,n,s){var i="BODY"===e.nodeName,o=i?window:e;o.addEventListener(t,n,{passive:!0}),i||T(r(o.parentNode),t,n,s),s.push(o)}function se(e,t,n,s){n.updateBound=s,window.addEventListener("resize",n.updateBound,{passive:!0});var o=r(e);return T(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ee(){this.state.eventsEnabled||(this.state=se(this.reference,this.options,this.state,this.scheduleUpdate))}function J(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Z(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=J(this.reference,this.state))}function v(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function f(e,t){Object.keys(t).forEach(function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&v(t[n])&&(s="px"),e.style[n]=t[n]+s})}function Q(e,t){Object.keys(t).forEach(function(n){var s=t[n];!1===s?e.removeAttribute(n):e.setAttribute(n,t[n])})}function I(e,t,n){var s,o=c(e,function(e){var n=e.name;return n===t}),i=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});return i||(s="`"+t+"`",console.warn("`"+n+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")),i}function X(e){return"end"===e?"start":"start"===e?"end":e}function V(e){var s=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=g.indexOf(e),n=g.slice(t+1).concat(g.slice(0,t));return s?n.reverse():n}function q(e,s,o,i){var c,d,u,l=e.match(/((?:-|\+)?\d*\.?\d*)(.*)/),r=+l[1],a=l[2];if(!r)return e;if(0===a.indexOf("%")){switch(a){case"%p":c=o;break;case"%":case"%r":default:c=i}return d=t(c),d[s]/100*r}return"vh"===a||"vw"===a?(u="vh"===a?n(document.documentElement.clientHeight,window.innerHeight||0):n(document.documentElement.clientWidth,window.innerWidth||0),u/100*r):r}function K(e,t,n,s){var a,r,l=[0,0],d=-1!==["right","left"].indexOf(s),o=e.split(/(\+|-)/).map(function(e){return e.trim()}),i=o.indexOf(c(o,function(e){return-1!==e.search(/,|\s/)}));return o[i]&&-1===o[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),r=/\s*,\s*|\s+/,a=-1===i?[o]:[o.slice(0,i).concat([o[i].split(r)[0]]),[o[i].split(r)[1]].concat(o.slice(i+1))],a=a.map(function(e,s){var i=(1===s?!d:d)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return q(e,i,t,n)})}),a.forEach(function(e,t){e.forEach(function(n,s){v(n)&&(l[t]+=n*("-"===e[s-1]?-1:1))})}),l}for(var $=Math.min,s=Math.floor,n=Math.max,Y=["native code","[object MutationObserverConstructor]"],G=function(e){return Y.some(function(t){return-1<(e||"").toString().indexOf(t)})},B="undefined"!=typeof window,H=["Edge","Trident","Firefox"],L=0,j=0;j<H.length;j+=1)if(B&&0<=navigator.userAgent.indexOf(H[j])){L=1;break}var y,te=B&&G(window.MutationObserver),ne=te?function(e){var t=!1,n=0,s=document.createElement("span"),o=new MutationObserver(function(){e(),t=!1});return o.observe(s,{attributes:!0}),function(){t||(t=!0,s.setAttribute("x-index",n),++n)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},L))}},h=function(){return y==null&&(y=-1!==navigator.appVersion.indexOf("MSIE 10")),y},oe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ie=function(){function e(e,t){for(var n,s=0;s<t.length;s++)n=t[s],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),d=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e=Object.assign||function(e){for(var t,s,n=1;n<arguments.length;n++)for(s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},N=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],g=N.slice(3),w={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},m=function(){function t(n,s){var a,o=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};oe(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=ne(this.update.bind(this)),this.options=e({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=n.jquery?n[0]:n,this.popper=s.jquery?s[0]:s,this.options.modifiers={},Object.keys(e({},t.Defaults.modifiers,i.modifiers)).forEach(function(n){o.options.modifiers[n]=e({},t.Defaults.modifiers[n]||{},i.modifiers?i.modifiers[n]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return e({name:t},o.options.modifiers[t])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&F(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update(),a=this.options.eventsEnabled,a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ie(t,[{key:"update",value:function(){return ae.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return ee.call(this)}},{key:"disableEventListeners",value:function(){return Z.call(this)}}]),t}();return m.Utils=("undefined"==typeof window?global:window).PopperUtils,m.placements=N,m.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var o=t.placement,u=o.split("-")[0],i=o.split("-")[1];if(i){var a=t.offsets,s=a.reference,r=a.popper,c=-1!==["bottom","top"].indexOf(u),n=c?"left":"top",l=c?"width":"height",h={start:d({},n,s[n]),end:d({},n,s[n]+s[l]-r[l])};t.offsets.popper=e({},r,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(e,t){var s,i=t.offset,r=e.placement,a=e.offsets,n=a.popper,c=a.reference,o=r.split("-")[0];return s=v(+i)?[+i,0]:K(i,n,c,o),"left"===o?(n.top+=s[0],n.left-=s[1]):"right"===o?(n.top+=s[0],n.left+=s[1]):"top"===o?(n.left+=s[0],n.top-=s[1]):"bottom"===o&&(n.left+=s[0],n.top+=s[1]),e.popper=n,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,s){r=s.boundariesElement||o(t.instance.popper),t.instance.reference===r&&(r=o(r)),a=b(t.instance.popper,t.instance.reference,s.padding,r),s.boundaries=a;var a,r,c=s.priority,i=t.offsets.popper,l={primary:function(e){var t=i[e];return i[e]<a[e]&&!s.escapeWithReference&&(t=n(i[e],a[e])),d({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=i[t];return i[e]>a[e]&&!s.escapeWithReference&&(n=$(i[t],a[e]-("right"===e?i.width:i.height))),d({},t,n)}};return c.forEach(function(t){var n=-1===["left","top"].indexOf(t)?"secondary":"primary";i=e({},i,l[n](t))}),t.offsets.popper=i,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var c=e.offsets,i=c.popper,n=c.reference,l=e.placement.split("-")[0],o=s,a=-1!==["top","bottom"].indexOf(l),r=a?"right":"bottom",t=a?"left":"top",d=a?"width":"height";return i[r]<o(n[t])&&(e.offsets.popper[t]=o(n[t])-i[d]),i[t]>o(n[r])&&(e.offsets.popper[t]=o(n[r])),e}},arrow:{order:500,enabled:!0,fn:function(e,s){if(!I(e.instance.modifiers,"arrow","keepTogether"))return e;if(i=s.element,"string"==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i,u,f,g=e.placement.split("-")[0],m=e.offsets,c=m.popper,r=m.reference,d=-1!==["left","right"].indexOf(g),h=d?"height":"width",o=d?"top":"left",p=d?"left":"top",l=d?"bottom":"right",a=A(i)[h];return r[l]-a<c[o]&&(e.offsets.popper[o]-=c[o]-(r[l]-a)),r[o]+a>c[l]&&(e.offsets.popper[o]+=r[o]+a-c[l]),f=r[o]+r[h]/2-a/2,u=f-t(e.offsets.popper)[o],u=n($(c[h]-a,u),0),e.arrowElement=i,e.offsets.arrow={},e.offsets.arrow[o]=Math.round(u),e.offsets.arrow[p]="",e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,n){if(S(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var r=b(t.instance.popper,t.instance.reference,n.padding,n.boundariesElement),o=t.placement.split("-")[0],c=l(o),i=t.placement.split("-")[1]||"",a=[];switch(n.behavior){case w.FLIP:a=[o,c];break;case w.CLOCKWISE:a=V(o);break;case w.COUNTERCLOCKWISE:a=V(o,!0);break;default:a=n.behavior}return a.forEach(function(d,u){if(o!==d||a.length===u+1)return t;o=t.placement.split("-")[0],c=l(o);var m=t.offsets.popper,f=t.offsets.reference,h=s,g="left"===o&&h(m.right)>h(f.left)||"right"===o&&h(m.left)<h(f.right)||"top"===o&&h(m.bottom)>h(f.top)||"bottom"===o&&h(m.top)<h(f.bottom),v=h(m.left)<h(r.left),b=h(m.right)>h(r.right),j=h(m.top)<h(r.top),y=h(m.bottom)>h(r.bottom),_="left"===o&&v||"right"===o&&b||"top"===o&&j||"bottom"===o&&y,p=-1!==["top","bottom"].indexOf(o),w=!!n.flipVariations&&(p&&"start"===i&&v||p&&"end"===i&&b||!p&&"start"===i&&j||!p&&"end"===i&&y);(g||_||w)&&(t.flipped=!0,(g||_)&&(o=a[u+1]),w&&(i=X(i)),t.placement=o+(i?"-"+i:""),t.offsets.popper=e({},t.offsets.popper,E(t.instance.popper,t.offsets.reference,t.placement)),t=k(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var n=e.placement,o=n.split("-")[0],i=e.offsets,s=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(o),c=-1===["top","left"].indexOf(o);return s[a?"left":"top"]=r[n]-(c?s[a?"width":"height"]:0),e.placement=l(n),e.offsets.popper=t(s),e}},hide:{order:800,enabled:!0,fn:function(e){if(!I(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=c(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(t,n){var w=n.x,O=n.y,r=t.offsets.popper,u=c(t.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==u&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g,v,b,y=void 0===u?n.gpuAcceleration:u,j=o(t.instance.popper),m=_(j),i={position:r.position},d={left:s(r.left),top:s(r.top),bottom:s(r.bottom),right:s(r.right)},l="bottom"===w?"top":"bottom",a="right"===O?"left":"right",p=M("transform"),f="bottom"==l?-m.height+d.bottom:d.top,h="right"==a?-m.width+d.right:d.left;return y&&p?(i[p]="translate3d("+h+"px, "+f+"px, 0)",i[l]=0,i[a]=0,i.willChange="transform"):(g="bottom"==l?-1:1,v="right"==a?-1:1,i[l]=f*g,i[a]=h*v,i.willChange=l+", "+a),b={"x-placement":t.placement},t.attributes=e({},b,t.attributes),t.styles=e({},i,t.styles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return f(e.instance.popper,e.styles),Q(e.instance.popper,e.attributes),e.offsets.arrow&&f(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,n,s,o){var i=z(o,t,e),a=D(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),f(t,{position:"absolute"}),n},gpuAcceleration:void 0}}},m});var bootstrap=function(e,t,n){"use strict";function a(e,t){for(var n,s=0;s<t.length;s++)n=t[s],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(){function o(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(){return{bindType:n.end,delegateType:n.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function a(){if(window.QUnit)return!1;var e,t=document.createElement("bootstrap");for(e in s)if("undefined"!=typeof t.style[e])return{end:s[e]};return!1}function r(n){var o=this,s=!1;return t(this).one(e.TRANSITION_END,function(){s=!0}),setTimeout(function(){s||e.triggerTransitionEnd(o)},n),this}var n=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},e={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e))return e},getSelectorFromElement:function(e){var n=e.getAttribute("data-target");n&&"#"!==n||(n=e.getAttribute("href")||"");try{return t(document).find(n).length>0?n:null}catch{return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(n.end)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(t,n,s){for(i in s)if(Object.prototype.hasOwnProperty.call(s,i)){var i,r=s[i],a=n[i],c=a&&e.isElement(a)?"element":o(a);if(!new RegExp(r).test(c))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+c+'" but expected type "'+r+'".')}}};return n=a(),t.fn.emulateTransitionEnd=r,e.supportsTransitionEnd()&&(t.event.special[e.TRANSITION_END]=i()),e}(),o=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e},m=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t},l=function(){var n="alert",r=t.fn[n],i={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},a={ALERT:"alert",FADE:"fade",SHOW:"show"},e=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var o=s.getSelectorFromElement(e),n=!1;return o&&(n=t(o)[0]),n||(n=t(e).closest("."+a.ALERT)[0]),n},n._triggerCloseEvent=function(e){var n=t.Event(i.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;t(e).removeClass(a.SHOW),s.supportsTransitionEnd()&&t(e).hasClass(a.FADE)?t(e).one(s.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150):this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(i.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var o=t(this),s=o.data("bs.alert");s||(s=new e(this),o.data("bs.alert",s)),"close"===n&&s[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),e}();return t(document).on(i.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,e._handleDismiss(new e)),t.fn[n]=e._jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=function(){return t.fn[n]=r,e._jQueryInterface},e}(),c=function(){var s="button",r=t.fn[s],e={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},n={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},a={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},i=function(){function s(e){this._element=e}var i=s.prototype;return i.toggle=function(){var s,a,i=!0,r=!0,o=t(this._element).closest(n.DATA_TOGGLE)[0];if(o&&(s=t(this._element).find(n.INPUT)[0],s)){if("radio"===s.type&&(s.checked&&t(this._element).hasClass(e.ACTIVE)?i=!1:(a=t(o).find(n.ACTIVE)[0],a&&t(a).removeClass(e.ACTIVE))),i){if(s.hasAttribute("disabled")||o.hasAttribute("disabled")||s.classList.contains("disabled")||o.classList.contains("disabled"))return;s.checked=!t(this._element).hasClass(e.ACTIVE),t(s).trigger("change")}s.focus(),r=!1}r&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(e.ACTIVE)),i&&t(this._element).toggleClass(e.ACTIVE)},i.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},s._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.button");n||(n=new s(this),t(this).data("bs.button",n)),"toggle"===e&&n[e]()})},o(s,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),s}();return t(document).on(a.CLICK_DATA_API,n.DATA_TOGGLE_CARROT,function(s){s.preventDefault();var o=s.target;t(o).hasClass(e.BUTTON)||(o=t(o).closest(n.BUTTON)),i._jQueryInterface.call(t(o),"toggle")}).on(a.FOCUS_BLUR_DATA_API,n.DATA_TOGGLE_CARROT,function(s){var o=t(s.target).closest(n.BUTTON)[0];t(o).toggleClass(e.FOCUS,/^focus(in)?$/.test(s.type))}),t.fn[s]=i._jQueryInterface,t.fn[s].Constructor=i,t.fn[s].noConflict=function(){return t.fn[s]=r,i._jQueryInterface},i}(),r=function(){var c="carousel",d="bs.carousel",r="."+d,h=t.fn[c],u={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},m={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},n={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},i={SLIDE:"slide"+r,SLID:"slid"+r,KEYDOWN:"keydown"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r,TOUCHEND:"touchend"+r,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},e={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},a={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},l=function(){function h(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(a.INDICATORS)[0],this._addEventListeners()}var l=h.prototype;return l.next=function(){this._isSliding||this._slide(n.NEXT)},l.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},l.prev=function(){this._isSliding||this._slide(n.PREV)},l.pause=function(e){e||(this._isPaused=!0),t(this._element).find(a.NEXT_PREV)[0]&&s.supportsTransitionEnd()&&(s.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.to=function(e){var s,o,r=this;if(this._activeElement=t(this._element).find(a.ACTIVE_ITEM)[0],s=this._getItemIndex(this._activeElement),!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(i.SLID,function(){return r.to(e)});else{if(s===e)return this.pause(),void this.cycle();o=e>s?n.NEXT:n.PREV,this._slide(o,this._items[e])}},l.dispose=function(){t(this._element).off(r),t.removeData(this._element,d),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l._getConfig=function(e){return e=t.extend({},u,e),s.typeCheckConfig(c,e,m),e},l._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(i.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(i.MOUSEENTER,function(t){return e.pause(t)}).on(i.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(i.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},l._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next();break;default:return}},l._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(a.ITEM)),this._items.indexOf(e)},l._getItemByDirection=function(e,t){var o,i=e===n.NEXT,a=e===n.PREV,s=this._getItemIndex(t),r=this._items.length-1;return(a&&0===s||i&&s===r)&&!this._config.wrap?t:(o=(s+(e===n.PREV?-1:1))%this._items.length,-1===o?this._items[this._items.length-1]:this._items[o])},l._triggerSlideEvent=function(e,n){var o=this._getItemIndex(e),r=this._getItemIndex(t(this._element).find(a.ACTIVE_ITEM)[0]),s=t.Event(i.SLIDE,{relatedTarget:e,direction:n,from:r,to:o});return t(this._element).trigger(s),s},l._setActiveIndicatorElement=function(n){if(this._indicatorsElement){t(this._indicatorsElement).find(a.ACTIVE).removeClass(e.ACTIVE);var s=this._indicatorsElement.children[this._getItemIndex(n)];s&&t(s).addClass(e.ACTIVE)}},l._slide=function(o,r){var d,u,h,m,f=this,l=t(this._element).find(a.ACTIVE_ITEM)[0],g=this._getItemIndex(l),c=r||l&&this._getItemByDirection(o,l),v=this._getItemIndex(c),p=Boolean(this._interval);o===n.NEXT?(d=e.LEFT,u=e.NEXT,h=n.LEFT):(d=e.RIGHT,u=e.PREV,h=n.RIGHT),c&&t(c).hasClass(e.ACTIVE)?this._isSliding=!1:!this._triggerSlideEvent(c,h).isDefaultPrevented()&&l&&c&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(c),m=t.Event(i.SLID,{relatedTarget:c,direction:h,from:g,to:v}),s.supportsTransitionEnd()&&t(this._element).hasClass(e.SLIDE)?(t(c).addClass(u),s.reflow(c),t(l).addClass(d),t(c).addClass(d),t(l).one(s.TRANSITION_END,function(){t(c).removeClass(d+" "+u).addClass(e.ACTIVE),t(l).removeClass(e.ACTIVE+" "+u+" "+d),f._isSliding=!1,setTimeout(function(){return t(f._element).trigger(m)},0)}).emulateTransitionEnd(600)):(t(l).removeClass(e.ACTIVE),t(c).addClass(e.ACTIVE),this._isSliding=!1,t(this._element).trigger(m)),p&&this.cycle())},h._jQueryInterface=function(e){return this.each(function(){var s,n=t(this).data(d),o=t.extend({},u,t(this).data());if("object"==typeof e&&t.extend(o,e),s="string"==typeof e?e:o.slide,n||(n=new h(this,o),t(this).data(d,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if("undefined"==typeof n[s])throw new Error('No method named "'+s+'"');n[s]()}else o.interval&&(n.pause(),n.cycle())})},h._dataApiClickHandler=function(n){if(i=s.getSelectorFromElement(this),i&&(o=t(i)[0],o&&t(o).hasClass(e.CAROUSEL))){var o,i,r=t.extend({},t(o).data(),t(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),h._jQueryInterface.call(t(o),r),a&&t(o).data(d).to(a),n.preventDefault()}},o(h,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return u}}]),h}();return t(document).on(i.CLICK_DATA_API,a.DATA_SLIDE,l._dataApiClickHandler),t(window).on(i.LOAD_DATA_API,function(){t(a.DATA_RIDE).each(function(){var e=t(this);l._jQueryInterface.call(e,e.data())})}),t.fn[c]=l._jQueryInterface,t.fn[c].Constructor=l,t.fn[c].noConflict=function(){return t.fn[c]=h,l._jQueryInterface},l}(),d=function(){var n="collapse",i="bs.collapse",u=t.fn[n],c={toggle:!0,parent:""},h={toggle:"boolean",parent:"(string|element)"},a={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},e={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},d={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},r=function(){function u(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i,a,r=t(d.DATA_TOGGLE),o=0;o<r.length;o++)i=r[o],a=s.getSelectorFromElement(i),null!==a&&t(a).filter(e).length>0&&this._triggerArray.push(i);this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var r=u.prototype;return r.toggle=function(){t(this._element).hasClass(e.SHOW)?this.hide():this.show()},r.show=function(){var n,o,c,l,h,m,r=this;!this._isTransitioning&&!t(this._element).hasClass(e.SHOW)&&(this._parent&&((n=t.makeArray(t(this._parent).children().children(d.ACTIVES))).length||(n=null)),!(n&&(c=t(n).data(i))&&c._isTransitioning))&&(l=t.Event(a.SHOW),(t(this._element).trigger(l),!l.isDefaultPrevented())&&(n&&(u._jQueryInterface.call(t(n),"hide"),c||t(n).data(i,null)),o=this._getDimension(),t(this._element).removeClass(e.COLLAPSE).addClass(e.COLLAPSING),this._element.style[o]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(e.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),h=function(){t(r._element).removeClass(e.COLLAPSING).addClass(e.COLLAPSE).addClass(e.SHOW),r._element.style[o]="",r.setTransitioning(!1),t(r._element).trigger(a.SHOWN)},s.supportsTransitionEnd()?(m="scroll"+(o[0].toUpperCase()+o.slice(1)),t(this._element).one(s.TRANSITION_END,h).emulateTransitionEnd(600),this._element.style[o]=this._element[m]+"px"):h()))},r.hide=function(){if(i=this,!this._isTransitioning&&t(this._element).hasClass(e.SHOW)&&(r=t.Event(a.HIDE),t(this._element).trigger(r),!r.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",s.reflow(this._element),t(this._element).addClass(e.COLLAPSING).removeClass(e.COLLAPSE).removeClass(e.SHOW),this._triggerArray.length)for(o=0;o<this._triggerArray.length;o++){var n,o,i,r,c,l=this._triggerArray[o],d=s.getSelectorFromElement(l);null!==d&&(t(d).hasClass(e.SHOW)||t(l).addClass(e.COLLAPSED).attr("aria-expanded",!1))}this.setTransitioning(!0),c=function(){i.setTransitioning(!1),t(i._element).removeClass(e.COLLAPSING).addClass(e.COLLAPSE).trigger(a.HIDDEN)},this._element.style[n]="",s.supportsTransitionEnd()?t(this._element).one(s.TRANSITION_END,c).emulateTransitionEnd(600):c()}},r.setTransitioning=function(e){this._isTransitioning=e},r.dispose=function(){t.removeData(this._element,i),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},r._getConfig=function(e){return e=t.extend({},c,e),e.toggle=Boolean(e.toggle),s.typeCheckConfig(n,e,h),e},r._getDimension=function(){return t(this._element).hasClass(l.WIDTH)?l.WIDTH:l.HEIGHT},r._getParent=function(){var n,o=this,e=null;return s.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=t(this._config.parent)[0],n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',t(e).find(n).each(function(e,t){o._addAriaAndCollapsedClass(u._getTargetFromElement(t),[t])}),e},r._addAriaAndCollapsedClass=function(n,s){if(n){var o=t(n).hasClass(e.SHOW);s.length&&t(s).toggleClass(e.COLLAPSED,!o).attr("aria-expanded",o)}},u._getTargetFromElement=function(e){var n=s.getSelectorFromElement(e);return n?t(n)[0]:null},u._jQueryInterface=function(e){return this.each(function(){var s=t(this),n=s.data(i),o=t.extend({},c,s.data(),"object"==typeof e&&e);if(!n&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new u(this,o),s.data(i,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(u,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return c}}]),u}();return t(document).on(a.CLICK_DATA_API,d.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=t(this),o=s.getSelectorFromElement(this);t(o).each(function(){var e=t(this),s=e.data(i)?"toggle":n.data();r._jQueryInterface.call(e,s)})}),t.fn[n]=r._jQueryInterface,t.fn[n].Constructor=r,t.fn[n].noConflict=function(){return t.fn[n]=u,r._jQueryInterface},r}(),u=function(){if("undefined"==typeof n)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var c="dropdown",d="bs.dropdown",l="."+d,h=t.fn[c],m=new RegExp("38|40|27"),i={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,CLICK:"click"+l,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},e={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},a={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},u={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},f={offset:0,flip:!0},p={offset:"(number|string|function)",flip:"boolean"},r=function(){function r(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var h=r.prototype;return h.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(e.DISABLED)){var o,c,l,s=r._getParentFromElement(this._element),d=t(this._menu).hasClass(e.SHOW);r._clearMenus(),!d&&(o={relatedTarget:this._element},c=t.Event(i.SHOW,o),(t(s).trigger(c),!c.isDefaultPrevented())&&(l=this._element,t(s).hasClass(e.DROPUP)&&(t(this._menu).hasClass(e.MENULEFT)||t(this._menu).hasClass(e.MENURIGHT))&&(l=s),this._popper=new n(l,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!t(s).closest(a.NAVBAR_NAV).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(e.SHOW),t(s).toggleClass(e.SHOW).trigger(t.Event(i.SHOWN,o))))}},h.dispose=function(){t.removeData(this._element,d),t(this._element).off(l),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},h.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},h._addEventListeners=function(){var e=this;t(this._element).on(i.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},h._getConfig=function(e){return e=t.extend({},this.constructor.Default,t(this._element).data(),e),s.typeCheckConfig(c,e,this.constructor.DefaultType),e},h._getMenuElement=function(){if(!this._menu){var e=r._getParentFromElement(this._element);this._menu=t(e).find(a.MENU)[0]}return this._menu},h._getPlacement=function(){var s=t(this._element).parent(),n=u.BOTTOM;return s.hasClass(e.DROPUP)?(n=u.TOP,t(this._menu).hasClass(e.MENURIGHT)&&(n=u.TOPEND)):t(this._menu).hasClass(e.MENURIGHT)&&(n=u.BOTTOMEND),n},h._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},h._getPopperConfig=function(){var n,s=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=t.extend({},e.offsets,s._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip}}},this._inNavbar&&(n.modifiers.applyStyle={enabled:!this._inNavbar}),n},r._jQueryInterface=function(e){return this.each(function(){var n=t(this).data(d),s="object"==typeof e?e:null;if(n||(n=new r(this,s),t(this).data(d,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},r._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(o=t.makeArray(t(a.DATA_TOGGLE)),s=0;s<o.length;s++){var s,o,l,m,c=r._getParentFromElement(o[s]),u=t(o[s]).data(d),h={relatedTarget:o[s]};u&&(m=u._menu,t(c).hasClass(e.SHOW)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(c,n.target))&&(l=t.Event(i.HIDE,h),t(c).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),o[s].setAttribute("aria-expanded","false"),t(m).removeClass(e.SHOW),t(c).removeClass(e.SHOW).trigger(t.Event(i.HIDDEN,h)))))}},r._getParentFromElement=function(e){var n,o=s.getSelectorFromElement(e);return o&&(n=t(o)[0]),n||e.parentNode},r._dataApiKeydownHandler=function(n){if(!(!m.test(n.which)||/button/i.test(n.target.tagName)&&32===n.which||/input|textarea/i.test(n.target.tagName)||(n.preventDefault(),n.stopPropagation(),this.disabled||t(this).hasClass(e.DISABLED)))){var s,o,l,i=r._getParentFromElement(this),c=t(i).hasClass(e.SHOW);(c||27===n.which&&32===n.which)&&(!c||27!==n.which&&32!==n.which)?(o=t(i).find(a.VISIBLE_ITEMS).get(),o.length&&(s=o.indexOf(n.target),38===n.which&&s>0&&s--,40===n.which&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus())):(27===n.which&&(l=t(i).find(a.DATA_TOGGLE)[0],t(l).trigger("focus")),t(this).trigger("click"))}},o(r,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return f}},{key:"DefaultType",get:function(){return p}}]),r}();return t(document).on(i.KEYDOWN_DATA_API,a.DATA_TOGGLE,r._dataApiKeydownHandler).on(i.KEYDOWN_DATA_API,a.MENU,r._dataApiKeydownHandler).on(i.CLICK_DATA_API+" "+i.KEYUP_DATA_API,r._clearMenus).on(i.CLICK_DATA_API,a.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),r._jQueryInterface.call(t(this),"toggle")}).on(i.CLICK_DATA_API,a.FORM_CHILD,function(e){e.stopPropagation()}),t.fn[c]=r._jQueryInterface,t.fn[c].Constructor=r,t.fn[c].noConflict=function(){return t.fn[c]=h,r._jQueryInterface},r}(),h=function(){var a="modal",l=".bs.modal",d=t.fn[a],c={backdrop:!0,keyboard:!0,focus:!0,show:!0},u={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},e={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},n={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},i={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},r=function(){function d(e,n){this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(i.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var r=d.prototype;return r.toggle=function(e){return this._isShown?this.hide():this.show(e)},r.show=function(o){var r,a=this;!this._isTransitioning&&!this._isShown&&(s.supportsTransitionEnd()&&t(this._element).hasClass(n.FADE)&&(this._isTransitioning=!0),r=t.Event(e.SHOW,{relatedTarget:o}),t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(n.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(e.CLICK_DISMISS,i.DATA_DISMISS,function(e){return a.hide(e)}),t(this._dialog).on(e.MOUSEDOWN_DISMISS,function(){t(a._element).one(e.MOUSEUP_DISMISS,function(e){t(e.target).is(a._element)&&(a._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return a._showElement(o)})))},r.hide=function(o){var i,a,r=this;o&&o.preventDefault(),!this._isTransitioning&&this._isShown&&(i=t.Event(e.HIDE),(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented())&&(this._isShown=!1,a=s.supportsTransitionEnd()&&t(this._element).hasClass(n.FADE),a&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(e.FOCUSIN),t(this._element).removeClass(n.SHOW),t(this._element).off(e.CLICK_DISMISS),t(this._dialog).off(e.MOUSEDOWN_DISMISS),a?t(this._element).one(s.TRANSITION_END,function(e){return r._hideModal(e)}).emulateTransitionEnd(300):this._hideModal()))},r.dispose=function(){t.removeData(this._element,"bs.modal"),t(window,document,this._element,this._backdrop).off(l),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},r.handleUpdate=function(){this._adjustDialog()},r._getConfig=function(e){return e=t.extend({},c,e),s.typeCheckConfig(a,e,u),e},r._showElement=function(o){var a,c,i=this,r=s.supportsTransitionEnd()&&t(this._element).hasClass(n.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,r&&s.reflow(this._element),t(this._element).addClass(n.SHOW),this._config.focus&&this._enforceFocus(),c=t.Event(e.SHOWN,{relatedTarget:o}),a=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,t(i._element).trigger(c)},r?t(this._dialog).one(s.TRANSITION_END,a).emulateTransitionEnd(300):a()},r._enforceFocus=function(){var n=this;t(document).off(e.FOCUSIN).on(e.FOCUSIN,function(e){document===e.target||n._element===e.target||t(n._element).has(e.target).length||n._element.focus()})},r._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?t(this._element).on(e.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),n.hide())}):this._isShown||t(this._element).off(e.KEYDOWN_DISMISS)},r._setResizeEvent=function(){var n=this;this._isShown?t(window).on(e.RESIZE,function(e){return n.handleUpdate(e)}):t(window).off(e.RESIZE)},r._hideModal=function(){var s=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(n.OPEN),s._resetAdjustments(),s._resetScrollbar(),t(s._element).trigger(e.HIDDEN)})},r._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},r._showBackdrop=function(o){var r,c,i=this,a=t(this._element).hasClass(n.FADE)?n.FADE:"";if(this._isShown&&this._config.backdrop){if(r=s.supportsTransitionEnd()&&a,this._backdrop=document.createElement("div"),this._backdrop.className=n.BACKDROP,a&&t(this._backdrop).addClass(a),t(this._backdrop).appendTo(document.body),t(this._element).on(e.CLICK_DISMISS,function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),r&&s.reflow(this._backdrop),t(this._backdrop).addClass(n.SHOW),!o)return;if(!r)return void o();t(this._backdrop).one(s.TRANSITION_END,o).emulateTransitionEnd(150)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(n.SHOW),c=function(){i._removeBackdrop(),o&&o()},s.supportsTransitionEnd()&&t(this._element).hasClass(n.FADE)?t(this._backdrop).one(s.TRANSITION_END,c).emulateTransitionEnd(150):c()):o&&o()},r._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},r._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},r._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},r._setScrollbar=function(){if(e=this,this._isBodyOverflowing){t(i.FIXED_CONTENT).each(function(n,s){var o=t(s)[0].style.paddingRight,i=t(s).css("padding-right");t(s).data("padding-right",o).css("padding-right",parseFloat(i)+e._scrollbarWidth+"px")}),t(i.STICKY_CONTENT).each(function(n,s){var o=t(s)[0].style.marginRight,i=t(s).css("margin-right");t(s).data("margin-right",o).css("margin-right",parseFloat(i)-e._scrollbarWidth+"px")}),t(i.NAVBAR_TOGGLER).each(function(n,s){var o=t(s)[0].style.marginRight,i=t(s).css("margin-right");t(s).data("margin-right",o).css("margin-right",parseFloat(i)+e._scrollbarWidth+"px")});var e,n=document.body.style.paddingRight,s=t("body").css("padding-right");t("body").data("padding-right",n).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}},r._resetScrollbar=function(){t(i.FIXED_CONTENT).each(function(e,n){var s=t(n).data("padding-right");"undefined"!=typeof s&&t(n).css("padding-right",s).removeData("padding-right")}),t(i.STICKY_CONTENT+", "+i.NAVBAR_TOGGLER).each(function(e,n){var s=t(n).data("margin-right");"undefined"!=typeof s&&t(n).css("margin-right",s).removeData("margin-right")});var e=t("body").data("padding-right");"undefined"!=typeof e&&t("body").css("padding-right",e).removeData("padding-right")},r._getScrollbarWidth=function(){var t,e=document.createElement("div");return e.className=n.SCROLLBAR_MEASURER,document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t},d._jQueryInterface=function(e,n){return this.each(function(){var s=t(this).data("bs.modal"),o=t.extend({},d.Default,t(this).data(),"object"==typeof e&&e);if(s||(s=new d(this,o),t(this).data("bs.modal",s)),"string"==typeof e){if("undefined"==typeof s[e])throw new Error('No method named "'+e+'"');s[e](n)}else o.show&&s.show(n)})},o(d,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return c}}]),d}();return t(document).on(e.CLICK_DATA_API,i.DATA_TOGGLE,function(n){var o,c,l,i=this,a=s.getSelectorFromElement(this);a&&(o=t(a)[0]),c=t(o).data("bs.modal")?"toggle":t.extend({},t(o).data(),t(this).data()),"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault(),l=t(o).one(e.SHOW,function(n){n.isDefaultPrevented()||l.one(e.HIDDEN,function(){t(i).is(":visible")&&i.focus()})}),r._jQueryInterface.call(t(o),c,this)}),t.fn[a]=r._jQueryInterface,t.fn[a].Constructor=r,t.fn[a].noConflict=function(){return t.fn[a]=d,r._jQueryInterface},r}(),i=function(){if("undefined"==typeof n)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var c="tooltip",e=".bs.tooltip",g=t.fn[c],u=new RegExp("(^|\\s)bs-tooltip\\S+","g"),p={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},m={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},r={SHOW:"show",OUT:"out"},h={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},a={FADE:"fade",SHOW:"show"},d={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},i={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function g(e,t){this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var l=g.prototype;return l.enable=function(){this._isEnabled=!0},l.disable=function(){this._isEnabled=!1},l.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.toggle=function(e){if(this._isEnabled)if(e){var s=this.constructor.DATA_KEY,n=t(e.currentTarget).data(s);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(s,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t(this.getTipElement()).hasClass(a.SHOW))return void this._leave(null,this);this._enter(null,this)}},l.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},l.show=function(){if(e=this,"none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(i=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(i),u=t.contains(this.element.ownerDocument.documentElement,this.element),i.isDefaultPrevented()||!u)return;var e,i,c,l,u,m,f,o=this.getTipElement(),h=s.getUID(this.constructor.NAME);o.setAttribute("id",h),this.element.setAttribute("aria-describedby",h),this.setContent(),this.config.animation&&t(o).addClass(a.FADE),m="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,c=this._getAttachment(m),this.addAttachmentClass(c),f=!1===this.config.container?document.body:t(this.config.container),t(o).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(o).appendTo(f),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,o,{placement:c,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:d.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(o).addClass(a.SHOW),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop),l=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===r.OUT&&e._leave(null,e)},s.supportsTransitionEnd()&&t(this.tip).hasClass(a.FADE)?t(this.tip).one(s.TRANSITION_END,l).emulateTransitionEnd(g._TRANSITION_DURATION):l()}},l.hide=function(e){var n=this,o=this.getTipElement(),c=t.Event(this.constructor.Event.HIDE),l=function(){n._hoverState!==r.SHOW&&o.parentNode&&o.parentNode.removeChild(o),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(c),c.isDefaultPrevented()||(t(o).removeClass(a.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[i.CLICK]=!1,this._activeTrigger[i.FOCUS]=!1,this._activeTrigger[i.HOVER]=!1,s.supportsTransitionEnd()&&t(this.tip).hasClass(a.FADE)?t(o).one(s.TRANSITION_END,l).emulateTransitionEnd(150):l(),this._hoverState="")},l.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},l.isWithContent=function(){return Boolean(this.getTitle())},l.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},l.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},l.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(d.TOOLTIP_INNER),this.getTitle()),e.removeClass(a.FADE+" "+a.SHOW)},l.setElementContent=function(e,n){var s=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?s?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[s?"html":"text"](n)},l.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},l._getAttachment=function(e){return f[e.toUpperCase()]},l._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==i.MANUAL){var s=n===i.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===i.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(s,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l._enter=function(e,n){var s=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(s))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(s,n)),e&&(n._activeTrigger["focusin"===e.type?i.FOCUS:i.HOVER]=!0),t(n.getTipElement()).hasClass(a.SHOW)||n._hoverState===r.SHOW?n._hoverState=r.SHOW:(clearTimeout(n._timeout),n._hoverState=r.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===r.SHOW&&n.show()},n.config.delay.show):n.show())},l._leave=function(e,n){var s=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(s))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(s,n)),e&&(n._activeTrigger["focusout"===e.type?i.FOCUS:i.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=r.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===r.OUT&&n.hide()},n.config.delay.hide):n.hide())},l._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},l._getConfig=function(e){return"number"==typeof(e=t.extend({},this.constructor.Default,t(this.element).data(),e)).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),s.typeCheckConfig(c,e,this.constructor.DefaultType),e},l._getDelegateConfig=function(){var e,t={};if(this.config)for(e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},l._cleanTipClass=function(){var n=t(this.getTipElement()),e=n.attr("class").match(u);null!==e&&e.length>0&&n.removeClass(e.join(""))},l._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},l._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(a.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},g._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),s="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new g(this,s),t(this).data("bs.tooltip",n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(g,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return m}},{key:"NAME",get:function(){return c}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return p}}]),g}();return t.fn[c]=l._jQueryInterface,t.fn[c].Constructor=l,t.fn[c].noConflict=function(){return t.fn[c]=g,l._jQueryInterface},l}(),f=function(){var n="popover",e=".bs.popover",c=t.fn[n],l=new RegExp("(^|\\s)bs-popover\\S+","g"),d=t.extend({},i.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),u=t.extend({},i.DefaultType,{content:"(string|element|function)"}),a={FADE:"fade",SHOW:"show"},r={TITLE:".popover-header",CONTENT:".popover-body"},h={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},s=function(s){function i(){return s.apply(this,arguments)||this}m(i,s);var c=i.prototype;return c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(r.TITLE),this.getTitle()),this.setElementContent(e.find(r.CONTENT),this._getContent()),e.removeClass(a.FADE+" "+a.SHOW)},c._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._cleanTipClass=function(){var n=t(this.getTipElement()),e=n.attr("class").match(l);null!==e&&e.length>0&&n.removeClass(e.join(""))},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),s="object"==typeof e?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new i(this,s),t(this).data("bs.popover",n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(i,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return u}}]),i}(i);return t.fn[n]=s._jQueryInterface,t.fn[n].Constructor=s,t.fn[n].noConflict=function(){return t.fn[n]=c,s._jQueryInterface},s}(),p=function(){var n="scrollspy",d=t.fn[n],l={offset:10,method:"auto",target:""},u={offset:"number",method:"string",target:"(string|element)"},r={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},i={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},e={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},c={OFFSET:"offset",POSITION:"position"},a=function(){function d(n,s){var o=this;this._element=n,this._scrollElement="BODY"===n.tagName?window:n,this._config=this._getConfig(s),this._selector=this._config.target+" "+e.NAV_LINKS+","+this._config.target+" "+e.LIST_ITEMS+","+this._config.target+" "+e.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(r.SCROLL,function(e){return o._process(e)}),this.refresh(),this._process()}var a=d.prototype;return a.refresh=function(){var e=this,o=this._scrollElement!==this._scrollElement.window?c.POSITION:c.OFFSET,n="auto"===this._config.method?o:this._config.method,i=n===c.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var o,r,a=s.getSelectorFromElement(e);return(a&&(o=t(a)[0]),o)&&(r=o.getBoundingClientRect(),r.width||r.height)?[t(o)[n]().top+i,a]:null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},a.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},a._getConfig=function(e){if("string"!=typeof(e=t.extend({},l,e)).target){var o=t(e.target).attr("id");o||(o=s.getUID(n),t(e.target).attr("id",o)),e.target="#"+o}return s.typeCheckConfig(n,e,u),e},a._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},a._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},a._process=function(){var e,n,t=this._getScrollTop()+this._config.offset,s=this._getScrollHeight(),o=this._config.offset+s-this._getOffsetHeight();if(this._scrollHeight!==s&&this.refresh(),t>=o)n=this._targets[this._targets.length-1],this._activeTarget!==n&&this._activate(n);else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}},a._activate=function(n){this._activeTarget=n,this._clear();var o=this._selector.split(","),o=o.map(function(e){return e+'[data-target="'+n+'"],'+e+'[href="'+n+'"]'}),s=t(o.join(","));s.hasClass(i.DROPDOWN_ITEM)?(s.closest(e.DROPDOWN).find(e.DROPDOWN_TOGGLE).addClass(i.ACTIVE),s.addClass(i.ACTIVE)):(s.addClass(i.ACTIVE),s.parents(e.NAV_LIST_GROUP).prev(e.NAV_LINKS+", "+e.LIST_ITEMS).addClass(i.ACTIVE),s.parents(e.NAV_LIST_GROUP).prev(e.NAV_ITEMS).children(e.NAV_LINKS).addClass(i.ACTIVE)),t(this._scrollElement).trigger(r.ACTIVATE,{relatedTarget:n})},a._clear=function(){t(this._selector).filter(e.ACTIVE).removeClass(i.ACTIVE)},d._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.scrollspy"),s="object"==typeof e&&e;if(n||(n=new d(this,s),t(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(d,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return l}}]),d}();return t(window).on(r.LOAD_DATA_API,function(){for(var n,s=t.makeArray(t(e.DATA_SPY)),o=s.length;o--;)n=t(s[o]),a._jQueryInterface.call(n,n.data())}),t.fn[n]=a._jQueryInterface,t.fn[n].Constructor=a,t.fn[n].noConflict=function(){return t.fn[n]=d,a._jQueryInterface},a}(),g=function(){var r=t.fn.tab,i={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},e={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},n={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},a=function(){function a(e){this._element=e}var r=a.prototype;return r.show=function(){if(c=this,!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(e.ACTIVE)||t(this._element).hasClass(e.DISABLED))){var o,a,c,l,d,u,m,r=t(this._element).closest(n.NAV_LIST_GROUP)[0],h=s.getSelectorFromElement(this._element);r&&(m="UL"===r.nodeName?n.ACTIVE_UL:n.ACTIVE,o=t.makeArray(t(r).find(m)),o=o[o.length-1]),l=t.Event(i.HIDE,{relatedTarget:this._element}),d=t.Event(i.SHOW,{relatedTarget:o}),(o&&t(o).trigger(l),t(this._element).trigger(d),!d.isDefaultPrevented()&&!l.isDefaultPrevented())&&(h&&(a=t(h)[0]),this._activate(this._element,r),u=function(){var e=t.Event(i.HIDDEN,{relatedTarget:c._element}),n=t.Event(i.SHOWN,{relatedTarget:o});t(o).trigger(e),t(c._element).trigger(n)},a?this._activate(a,a.parentNode,u):u())}},r.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},r._activate=function(o,i,a){var d,u=this,r=(d="UL"===i.nodeName?t(i).find(n.ACTIVE_UL):t(i).children(n.ACTIVE))[0],c=a&&s.supportsTransitionEnd()&&r&&t(r).hasClass(e.FADE),l=function(){return u._transitionComplete(o,r,c,a)};r&&c?t(r).one(s.TRANSITION_END,l).emulateTransitionEnd(150):l(),r&&t(r).removeClass(e.SHOW)},r._transitionComplete=function(o,i,a,r){if(i){t(i).removeClass(e.ACTIVE);var c,l=t(i.parentNode).find(n.DROPDOWN_ACTIVE_CHILD)[0];l&&t(l).removeClass(e.ACTIVE),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}(t(o).addClass(e.ACTIVE),"tab"===o.getAttribute("role")&&o.setAttribute("aria-selected",!0),a?(s.reflow(o),t(o).addClass(e.SHOW)):t(o).removeClass(e.FADE),o.parentNode&&t(o.parentNode).hasClass(e.DROPDOWN_MENU))&&(c=t(o).closest(n.DROPDOWN)[0],c&&t(c).find(n.DROPDOWN_TOGGLE).addClass(e.ACTIVE),o.setAttribute("aria-expanded",!0)),r&&r()},a._jQueryInterface=function(e){return this.each(function(){var s=t(this),n=s.data("bs.tab");if(n||(n=new a(this),s.data("bs.tab",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new Error('No method named "'+e+'"');n[e]()}})},o(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),a}();return t(document).on(i.CLICK_DATA_API,n.DATA_TOGGLE,function(e){e.preventDefault(),a._jQueryInterface.call(t(this),"show")}),t.fn.tab=a._jQueryInterface,t.fn.tab.Constructor=a,t.fn.tab.noConflict=function(){return t.fn.tab=r,a._jQueryInterface},a}();return function(){if("undefined"==typeof t)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),e.Util=s,e.Alert=l,e.Button=c,e.Carousel=r,e.Collapse=d,e.Dropdown=u,e.Modal=h,e.Popover=f,e.Scrollspy=p,e.Tab=g,e.Tooltip=i,e}({},$,Popper);(function(e,t){typeof define=="function"&&define.amd?define("utils/MapUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.MapUtils=t())})(this,function(){return{iterateOverMap:function(e,t){var n,s=0;for(n in e)e.hasOwnProperty(n)&&n!=="__size__"&&(t.call(e,n,e[n],s),s++)},exists:function(e,t){for(var n=!1,s=0;!n&&s<e.length;)n=t==e[s],s++;return n},put:function(e,t,n){e.__size__||(e.__size__=0),e[t]||e.__size__++,e[t]=n},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),function(e,t){typeof define=="function"&&define.amd?define("utils/DOMUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.DOMUtils=t())}(this,function(){function e(e,t,n,s){for(var o,i,r=t=="*"&&e.all?e.all:e.getElementsByTagName(t),c=[],l=typeof s!="undefined"?new RegExp("(^|\\s)"+s+"(\\s|$)"):null,a=0;a<r.length;a++)o=r[a],i=o.getAttribute&&o.getAttribute(n),typeof i=="string"&&i.length>0&&(typeof s=="undefined"||l&&l.test(i))&&c.push(o);return c}function t(e,t){var n,s,o=e.getAttribute&&e.getAttribute(t)||null;if(!o)for(s=e.attributes,n=0;n<s.length;n++)s[n].nodeName===t&&(o=s[n].nodeValue);return o}function n(){return"regula-generated-"+Math.floor(Math.random()*1e6)}function s(){return typeof document.createElement("input").checkValidity=="function"}var o={form:"The form",select:"The select box",textarea:"The text area",checkbox:"The checkbox",radio:"The radio button",text:"The text field",password:"The password",email:"The email",url:"The URL",number:"The number",datetime:"The datetime","datetime-local":"The local datetime",date:"The date",month:"The month",time:"The time",week:"The week",range:"The range",tel:"The telephone number",color:"The color"};return{friendlyInputNames:o,getElementsByAttribute:e,getAttributeValueForElement:t,generateRandomId:n,supportsHTML5Validation:s}}),function(e,t){typeof define=="function"&&define.amd?define("service/GroupService",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.GroupService=t())}(this,function(){var e={Default:0},t={0:"Default"},n=[],s=1;return{Group:e,ReverseGroup:t,deletedGroupIndices:n,firstCustomGroupIndex:s}}),function(e,t){typeof define=="function"&&define.amd?define("utils/ArrayUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ArrayUtils=t())}(this,function(){function e(e,t){for(var s="",n=0;n<e.length;n++)s+=e[n]+t;return s.replace(new RegExp(t+"$"),"")}return{explode:e}}),function(e,t){typeof define=="function"&&define.amd?define("service/ExceptionService",["utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ExceptionService=t(e.regulaModules.ArrayUtils))}(this,function(e){function o(e,t,n){var s="";return e!=null?(s=e.id,t==""||t==null||t==null?s+=": ":s+="."+t+": "):t!=""&&t!=null&&t!=null&&(s="@"+t+": "),s+n}function i(t){var n,s="Function received: {";for(n in t)t.hasOwnProperty(n)&&(typeof t[n]=="string"?s+=n+": "+t[n]+", ":t[n]instanceof Array&&(s+=n+": ["+e.explode(t[n],", ")+"], "));return s=s.replace(/, $/,"")+"}",s}var n,s,t={IllegalArgumentException:function(e){this.name="IllegalArgumentException",this.message=e},ConstraintDefinitionException:function(e){this.name="ConstraintDefinitionException",this.message=e},BindException:function(e){this.name="BindException",this.message=e},MissingFeatureException:function(e){this.name="MissingFeatureException",this.message=e}};for(s in t)t.hasOwnProperty(s)&&(n=t[s],n.prototype=new Error,n.prototype.constructor=n);return{Exception:t,generateExceptionMessage:o,explodeParameters:i}}),function(e,t){typeof define=="function"&&define.amd?define("service/ValidationService",["utils/DOMUtils","utils/MapUtils","service/GroupService","service/ExceptionService","utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ValidationService=t(e.regulaModules.DOMUtils,e.regulaModules.MapUtils,e.regulaModules.GroupService,e.regulaModules.ExceptionService,e.regulaModules.ArrayUtils))}(this,function(e,t,n,s,o){function N(e){for(var t in e)e.hasOwnProperty(t)&&C(t,e)}function W(e){h=e.config,u=e.ReverseConstraint,i=e.constraintDefinitions,r=e.boundConstraints}function C(e,t){var n=t[e],o=e.replace(/(^[A-Z]+)/,function(e){return e.toLowerCase()});n.async?l[o]=function(t,o,i){if(typeof i=="undefined")throw new s.Exception.IllegalArgumentException(e+" is an asynchronous constraint, but you have not provided a callback.");return n.validator.call(t,o,l,i)}:l[o]=function(e,t){return n.validator.call(e,t,l)}}function V(e,n,s,o){function E(n,s){var o,i={};for(o in n)n.hasOwnProperty(o)&&o!="__size__"&&t.put(i,o,n[o]);if(s.length>0)for(o in e)e.hasOwnProperty(o)&&o!="__size__"&&t.put(i,o,e[o]);return i}function k(e,t,n,o){var a=u[l.constraintType],c=g(t,a,o),r={group:n,constraintName:e.constraintName,custom:i[a].custom,compound:i[a].compound,async:i[a].async,constraintParameters:l.params,failingElements:e.failingElements,message:c};return s.reportAsSingleViolation||(r.composingConstraintViolations=e.composingConstraintViolations||[]),r}for(f=[],d=[],r=0;r<s.composingConstraints.length;r++)v=s.composingConstraints[r],C=u[v.constraintType],i[C].async?d.push(v):f.push(v);if(c=null,m=this,a(this,e)){{if(f.length>0){c=[];for(r=0;r<f.length;r++){var r,c,d,m,f,v,j,_,x,C,l=f[r],y=u[l.constraintType],p=E(l.params,s.params),b=w(n,m.id,y,p);if(!b.constraintPassed){if(_=k(b,m.id,n,p),h.enableHTML5Validation)for(j=0;j<b.failingElements.length;j++)b.failingElements[j].setCustomValidity(_.message);c.push(_)}}}if(d.length>0){c===null&&(c=[]);for(x=0,r=0;r<d.length;r++){var l=d[r],y=u[l.constraintType],p=E(l.params,s.params);O(n,m.id,y,p,A)}function A(e){if(!e.constraintPassed){var t,s=k(e,m.id,n,p);if(h.enableHTML5Validation)for(t=0;t<e.failingElements.length;t++)e.failingElements[t].setCustomValidity(s.message);c.push(s)}x++,x===d.length&&o(c)}}}}else c=[];return c}function a(e,t){var n=h.validateEmptyFields;return typeof t.ignoreEmpty!="undefined"&&(n=!t.ignoreEmpty),!m.blank.call(e)||!!n}function E(e){var i={YMD:{Year:0,Month:1,Day:2},MDY:{Month:0,Day:1,Year:2},DMY:{Day:0,Month:1,Year:2}},n=i[e.format],s=e.separator;typeof e.separator=="undefined"&&(s=/\//.test(this.value)?"/":/\./.test(this.value)?".":/ /.test(this.value)?" ":/[^0-9]+/);var t=this.value.split(s),a=new Date(t[n.Year],t[n.Month]-1,t[n.Day]),o=new Date;return typeof e.date!="undefined"&&(t=e.date.split(s),o=new Date(t[n.Year],t[n.Month]-1,t[n.Day])),{dateToValidate:a,dateToTestAgainst:o}}function I(e){return function(t,n,s){var o=!0;return a(this,t)&&(o=e.call(this,t,n,s)),o}}function c(){return!this.validity.typeMismatch}function H(e){function o(e){var n=e.groups||null,s=e.elementIds||null,o=(typeof e.constraintType=="undefined"?null:e.constraintType)||null,t="";return t+=n==null?"0":"1",t+=s==null?"0":"1",t+=o==null?"0":"1",t}var t,s,p={},f={},i={"000":P,"001":S,"010":L,"011":A,100:z,101:B,110:$,111:D};if((!e||typeof e=="undefined")&&(e={}),typeof e.independent=="undefined"&&(e.independent=!0),typeof e.constraintType!="undefined"&&(e.constraintType=u[e.constraintType]),typeof e.groups!="undefined"){s=e.groups,e.groups=[];for(t=0;t<s.length;t++)e.groups.push(n.ReverseGroup[s[t]])}if(typeof e.elements!="undefined"){e.elementIds=[];for(t=0;t<e.elements.length;t++)e.elementIds.push(e.elements[t].id)}else typeof e.elementId!="undefined"&&(e.elementIds=[e.elementId]);return i[o(e)](e)}function P(e){var n,s,o,i,a,c,t={asyncContexts:[],syncContexts:[]};for(i in r)if(r.hasOwnProperty(i)){n=r[i];for(s in n)if(n.hasOwnProperty(s))if(document.getElementById(s)){a=n[s];for(c in a)a.hasOwnProperty(c)&&(o=d(i,s,c),o.async?t.asyncContexts.push(o):t.syncContexts.push(o))}else delete n[s]}return t=v(t),j(t,e)}function S(e){var n,s,o,i,a,t={asyncContexts:[],syncContexts:[]};for(o in r)if(r.hasOwnProperty(o)){n=r[o];for(i in n)n.hasOwnProperty(i)&&(a=n[i],a[e.constraintType]&&(s=d(o,i,e.constraintType),s.async?t.asyncContexts.push(s):t.syncContexts.push(s)))}return t=v(t),j(t,e)}function L(e){var t,a,c,l,u,h,m,f,n={},i={asyncContexts:[],syncContexts:[]};for(h in r)if(r.hasOwnProperty(h))for(m=r[h],a=0;a<e.elementIds.length;a++)if(t=e.elementIds[a],typeof n[t]=="undefined"&&(n[t]=0),c=m[t],typeof c!="undefined"){n[t]++;for(f in c)c.hasOwnProperty(f)&&(l=d(h,t,f),l.async?i.asyncContexts.push(l):i.syncContexts.push(l))}u=[];for(t in n)n.hasOwnProperty(t)&&n[t]===0&&u.push(t);if(u.length>0)throw new s.Exception.IllegalArgumentException("No constraints have been bound to the specified elements: "+o.explode(u)+". "+s.explodeParameters(e));return i=v(i),j(i,e)}function A(e){var n,i,a,l,u,h,c=[],t={asyncContexts:[],syncContexts:[]};for(l in r)if(r.hasOwnProperty(l))for(u=r[l],n=0;n<e.elementIds.length;n++)i=e.elementIds[n],h=u[i],typeof h!="undefined"?(a=d(l,i,e.constraintType),a.async?t.asyncContexts.push(a):t.syncContexts.push(a)):c.push(i);if(c.length>0)throw new s.Exception.IllegalArgumentException("No constraints have been bound to the specified elements: "+o.explode(c)+". "+s.explodeParameters(e));return t=v(t),j(t,e)}function z(e){for(var n,o,i,c,l,u,m,h=!1,t={groupedContexts:{}},a=0;a<e.groups.length;){if(n=e.groups[a],o=r[n],typeof o=="undefined")throw new s.Exception.IllegalArgumentException("Undefined group in group list. "+s.explodeParameters(e));for(c in o)if(o.hasOwnProperty(c)){l=o[c];for(m in l)l.hasOwnProperty(m)&&(i=d(n,c,m),t.groupedContexts[n]||(t.groupedContexts[n]={asyncContexts:[],syncContexts:[]}),i.async?(h=!0,t.groupedContexts[n].asyncContexts.push(i)):t.groupedContexts[n].syncContexts.push(i))}a++}return u=y(t),e.groups=u.groups,t=u.uniqueConstraintsToValidate,b(e,t,h)}function B(e){for(var t,o,i,c,l,u,m,h=!1,n={groupedContexts:{}},a=0;a<e.groups.length;){if(t=e.groups[a],o=r[t],typeof o=="undefined")throw new s.Exception.IllegalArgumentException("Undefined group in group list. "+s.explodeParameters(e));c=!1;for(l in o)o.hasOwnProperty(l)&&(m=o[l],m[e.constraintType]&&(c=!0,i=d(t,l,e.constraintType),n.groupedContexts[t]||(n.groupedContexts[t]={asyncContexts:[],syncContexts:[]}),i.async?(h=!0,n.groupedContexts[t].asyncContexts.push(i)):n.groupedContexts[t].syncContexts.push(i)));if(!c)throw new s.Exception.IllegalArgumentException("Constraint "+e.constraintType+" has not been bound to any element under group "+t+". "+s.explodeParameters(e));a++}return u=y(n),e.groups=u.groups,n=u.uniqueConstraintsToValidate,b(e,n,h)}function $(e){for(var t,i,a,c,l,h,f,v,m=[],g=[],p=!1,n={groupedContexts:{}},u=0;u<e.groups.length;){if(t=e.groups[u],h=r[t],!h)throw new s.Exception.IllegalArgumentException("Undefined group in group list. "+s.explodeParameters(e));for(a=0;a<e.elementIds.length;a++)if(c=e.elementIds[a],i=h[c],i)for(v in i)i.hasOwnProperty(v)&&(l=d(t,c,v),n.groupedContexts[t]||(n.groupedContexts[t]={asyncContexts:[],syncContexts:[]}),l.async?(p=!0,n.groupedContexts[t].asyncContexts.push(l)):n.groupedContexts[t].syncContexts.push(l));else m.push(t),g.push(c);u++}if(m.length>0)throw new s.Exception.IllegalArgumentException("The following elements: "+o.explode(g)+" were not found in one or more of the following group(s): ["+o.explode(m,",").replace(/,/g,", ")+"]. "+s.explodeParameters(e));return f=y(n),e.groups=f.groups,n=f.uniqueConstraintsToValidate,b(e,n,p)}function D(e){for(var n,s,o,a,c,r=!1,t={groupedContexts:{}},i=0;i<e.groups.length;){for(n=e.groups[i],s=0;s<e.elementIds.length;s++)c=e.elementIds[s],o=d(n,c,e.constraintType),t.groupedContexts[n]||(t.groupedContexts[n]={asyncContexts:[],syncContexts:[]}),o.async?(r=!0,t.groupedContexts[n].asyncContexts.push(o)):t.groupedContexts[n].syncContexts.push(o);i++}return a=y(t),e.groups=a.groups,t=a.uniqueConstraintsToValidate,b(e,t,r)}function _(e){s=!0,p[e.elementId]||(p[e.elementId]={});var s,n=document.getElementById(e.elementId).cloneNode(!1),t=n.name.replace(/\s/g,"");return typeof n.type!="undefined"&&n.type.toLowerCase()==="radio"&&t!==""?f[t]||(f[t]={}):f[t]={},!p[e.elementId][e.elementConstraint]&&!f[t][e.elementConstraint]&&(s=!1,p[e.elementId][e.elementConstraint]=!0,typeof n.type!="undefined"&&n.type.toLowerCase()==="radio"&&t!==""&&(f[t][e.elementConstraint]=!0)),s}function v(e){for(var n,s={asyncContexts:[],syncContexts:[]},t=0;t<e.syncContexts.length;t++)n=e.syncContexts[t],_(n)||s.syncContexts.push(n);for(t=0;t<e.asyncContexts.length;t++)n=e.asyncContexts[t],_(n)||s.asyncContexts.push(n);return s}function y(e){var t,n,o,i=[],s={groupedContexts:{}};for(t in e.groupedContexts)if(e.groupedContexts.hasOwnProperty(t)){for(n=0;n<e.groupedContexts[t].syncContexts.length;n++)o=e.groupedContexts[t].syncContexts[n],_(o)||(s.groupedContexts[t]||(s.groupedContexts[t]={asyncContexts:[],syncContexts:[]}),s.groupedContexts[t].syncContexts.push(o),i.indexOf(t)==-1&&i.push(t));for(n=0;n<e.groupedContexts[t].asyncContexts.length;n++)o=e.groupedContexts[t].asyncContexts[n],_(o)||(s.groupedContexts[t]||(s.groupedContexts[t]={asyncContexts:[],syncContexts:[]}),s.groupedContexts[t].asyncContexts.push(o),i.indexOf(t)==-1&&i.push(t))}return{groups:i,uniqueConstraintsToValidate:s}}function j(e,t){var n=[];if(e.syncContexts.length>0&&(n=T(e)),e.asyncContexts.length>0){if(!t.callback)throw new s.Exception.IllegalArgumentException("One or more constraints to be validated are asynchronous, but a callback has not been provided.");R(e,function(e){n.length>0?n=n.concat(e):n=e,t.callback(n)})}else t.callback&&t.callback(n);return n}function b(e,t,n){if(o=M(e.groups,e.independent,t),n){if(!e.callback)throw new s.Exception.IllegalArgumentException("One or more constraints to be validated are asynchronous, but a callback has not been provided.");if(!e.independent&&o.length>0){var o,i=o[0].group,a=t.groupedContexts[i];t.groupedContexts={},t.groupedContexts[i]=a}F(e.groups,e.independent,t,function(t){o.length>0?o=o.concat(t):o=t,e.callback(o)})}else e.callback&&e.callback(o);return o}function d(e,t,n){var o,a,c=r[e];if(!c)throw new s.Exception.IllegalArgumentException("Undefined group in group list (group: "+e+", elementId: "+t+", constraint: "+n+")");if(o=c[t],!o)throw new s.Exception.IllegalArgumentException("No constraints have been defined for the element with id: "+t+" in group "+e);if(a=o[n],!a)throw new s.Exception.IllegalArgumentException("Constraint "+n+" in group "+e+" hasn't been bound to the element with id "+t);return{group:e,elementId:t,elementConstraint:n,params:a,async:i[n].async}}function T(e){for(var t,s,o=[],n=0;n<e.syncContexts.length;)t=e.syncContexts[n],s=x(t.group,t.elementId,t.elementConstraint,t.params),s&&o.push(s),n++;return o}function R(e,t){function a(n){i++,n&&o.push(n),i===e.asyncContexts.length&&t(o)}for(var n,o=[],i=0,s=0;s<e.asyncContexts.length;s++)n=e.asyncContexts[s],k(n.group,n.elementId,n.elementConstraint,n.params,a)}function M(e,t,n){for(var s,i,r,c,d,o=[],a=0,l=!0;a<e.length&&l;){for(d=e[a],r=n.groupedContexts[d].syncContexts,i=0;i<r.length;i++)s=r[i],c=x(s.group,s.elementId,s.elementConstraint,s.params),c&&o.push(c);a++,l=o.length==0||t&&o.length!=0}return o}function F(e,t,n,s){var o=[],i=!0;(function a(r){if(r<e.length&&i){for(var c,h=e[r],l=n.groupedContexts[h].asyncContexts,u=0,d=0;d<l.length;d++)c=l[d],k(c.group,c.elementId,c.elementConstraint,c.params,m);function m(e){u++,e&&o.push(e),u===l.length&&(i=o.length===0||t&&o.length!=0,a(++r))}}else s(o)})(0)}function x(e,t,n,s){var a,r,o=w(e,t,n,s),c="";if(o.constraintPassed||(c=g(t,n,s),r={group:e,constraintName:n,formSpecific:i[n].formSpecific,custom:i[n].custom,compound:i[n].compound,async:i[n].async,composingConstraintViolations:o.composingConstraintViolations||[],constraintParameters:s,failingElements:o.failingElements,message:c}),h.enableHTML5Validation)for(a=0;a<o.failingElements.length;a++)o.failingElements[a].setCustomValidity("");return r}function k(e,t,n,s,o){var a;O(e,t,n,s,function(r){var c,l="";if(r.constraintPassed||(l=g(t,n,s),a={group:e,constraintName:n,formSpecific:i[n].formSpecific,custom:i[n].custom,compound:i[n].compound,async:i[n].async,composingConstraintViolations:r.composingConstraintViolations||[],constraintParameters:s,failingElements:r.failingElements,message:l}),h.enableHTML5Validation)for(c=0;c<r.failingElements.length;c++)r.failingElements[c].setCustomValidity("");o(a)})}function w(t,n,s,o){var u,h,m,r=!1,c=[],a=document.getElementById(n),d=[];return i[s].formSpecific?(c=i[s].validator.call(a,o,l),r=c.length==0):i[s].compound?(d=i[s].validator.call(a,o,t,i[s],null),r=d.length==0,r||c.push(a)):(r=i[s].validator.call(a,o,l),r||c.push(a)),u=a.cloneNode(!1).name.replace(/\s/g,""),h=a.cloneNode(!1).type,typeof h!="undefined"&&h.toLowerCase()==="radio"&&u!==""&&(c=e.getElementsByAttribute(document.body,"input","name",u.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"))),m={constraintName:s,constraintPassed:r,failingElements:c},i[s].reportAsSingleViolation||(m.composingConstraintViolations=d),m}function O(t,n,s,o,a){function c(t,n,o,a){var c,l=r.cloneNode(!1).name.replace(/\s/g,""),d=r.cloneNode(!1).type;typeof d!="undefined"&&d.toLowerCase()==="radio"&&l!==""&&(o=e.getElementsByAttribute(document.body,"input","name",l)),c={constraintName:s,constraintPassed:t,failingElements:o},i[s].reportAsSingleViolation||(c.composingConstraintViolations=n),a(c)}var r=document.getElementById(n);i[s].formSpecific?i[s].validator.call(r,o,l,function(e){c(e.length===0,null,e,a)}):i[s].compound?i[s].validator.call(r,o,t,i[s],function(e){var t=[],n=e.length===0;n||t.push(r),c(n,e,t,a)}):i[s].validator.call(r,o,l,function(e){var t=[];e||t.push(r),c(e,null,t,a)})}function g(t,n,s){var a,r,c,l,d,u=document.getElementById(t),o="";s.message?o=s.message:s.msg?o=s.msg:o=i[n].defaultMessage;for(a in s)s.hasOwnProperty(a)&&(r=new RegExp("{"+a+"}","g"),o=o.replace(r,s[a]));if(i[n].compound&&typeof i[n].composingConstraints!="undefined")for(c=0;c<i[n].composingConstraints.length;c++){l=i[n].composingConstraints[c];for(a in l.params)l.params.hasOwnProperty(a)&&(r=new RegExp("{"+a+"}","g"),o=o.replace(r,l.params[a]))}return/{label}/.test(o)&&(d=e.friendlyInputNames[u.cloneNode(!1).tagName.toLowerCase()],d||(d=e.friendlyInputNames[u.cloneNode(!1).type.toLowerCase()]),o=o.replace(/{label}/,d),o=o.replace(/{flags}/g,"")),o=o.replace(/\\"/g,'"'),o}var h={},u={},i={},r={},p={},f={},l={},m={checked:function(){if(n=!1,this.type.toLowerCase()==="radio"&&this.name.replace(/\s/g,"")!=="")for(var n,o=e.getElementsByAttribute(document.body,"input","name",this.name.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")),s=0;s<o.length&&!n;)n=o[s].checked,s++;else n=this.checked;return n},selected:function(){return this.selectedIndex>0},max:function(e){var t=!0;return a(this,e)&&(t=parseFloat(this.value)<=parseFloat(e.value)),t},min:function(e){var t=!0;return a(this,e)&&(t=parseFloat(this.value)>=parseFloat(e.value)),t},range:function(e){var t=!0;return a(this,e)&&(t=this.value.replace(/\s/g,"")!=""&&parseFloat(this.value)<=parseFloat(e.max)&&parseFloat(this.value)>=parseFloat(e.min)),t},notBlank:function(){return this.value.replace(/\s/g,"")!=""},blank:function(){return this.value.replace(/\s/g,"")===""},matches:function(e){var t,n,s=!0;return a(this,e)&&(typeof e.regex=="string"?t=e.regex.replace(/^\//,"").replace(/\/$/,""):t=e.regex,typeof e.flags!="undefined"?n=new RegExp(t.toString().replace(/^\//,"").replace(/\/[^/]*$/,""),e.flags):n=new RegExp(t),s=n.test(this.value)),s},email:function(e){var t=!0;return a(this,e)&&(t=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(this.value)),t},alpha:function(e){var t=!0;return a(this,e)&&(t=/^[A-Za-z]+$/.test(this.value)),t},numeric:function(e){var t=!0;return a(this,e)&&(t=/^[0-9]+$/.test(this.value)),t},integer:function(e){var t=!0;return a(this,e)&&(t=/^-?[0-9]+$/.test(this.value)),t},real:function(e){var t=!0;return a(this,e)&&(t=/^-?([0-9]+(\.[0-9]+)?|\.[0-9]+)$/.test(this.value)),t},alphaNumeric:function(e){var t=!0;return a(this,e)&&(t=/^[0-9A-Za-z]+$/.test(this.value)),t},completelyFilled:function(){for(var n,s=[],t=0;t<this.elements.length;t++)n=this.elements[t],m.required.call(n)||s.push(n);return s},passwordsMatch:function(e){var t=[],n=document.getElementById(e.field1),s=document.getElementById(e.field2);return n.value!=s.value&&(t=[n,s]),t},required:function(){var t=!0;return this.tagName&&(this.tagName.toLowerCase()==="select"?t=m.selected.call(this):this.type.toLowerCase()==="checkbox"||this.type.toLowerCase()==="radio"?t=m.checked.call(this):(this.tagName.toLowerCase()==="input"||this.tagName.toLowerCase()==="textarea")&&this.type.toLowerCase()!="button"&&(t=m.notBlank.call(this))),t},length:function(e){var t=!0;return a(this,e)&&(t=this.value.length>=e.min&&this.value.length<=e.max),t},digits:function(e){if(t=!0,a(this,e)){var t,s=this.value.replace(/\s/g,""),n=s.split(/\./);t=!1,s.length>0&&(n.length==1&&(n[1]=""),e.integer>0?t=n[0].length<=e.integer:t=!0,e.fraction>0&&(t=t&&n[1].length<=e.fraction))}return t},past:function(e){var t,n=!0;return a(this,e)&&(t=E.call(this,e),n=t.dateToValidate<t.dateToTestAgainst),n},future:function(e){var t,n=!0;return a(this,e)&&(t=E.call(this,e),n=t.dateToValidate>t.dateToTestAgainst),n},url:function(e){var t=!0;return a(this,e)&&(t=/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!$&'()*+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!$&'()*+,;=]|:|@)|\/|\?)*)?$/i.test(this.value)),t},step:function(e){if(t=!0,a(this,e)){var t,n=parseFloat(this.value),s=parseFloat(e.max),o=parseFloat(e.min),i=parseFloat(e.value);t=n<=s&&n>=o&&n%i===0}return t},html5Required:function(){return!this.validity.valueMissing},html5Email:c,html5URL:c,html5Number:c,html5DateTime:c,html5DateTimeLocal:c,html5Date:c,html5Month:c,html5Time:c,html5Week:c,html5Range:c,html5Tel:c,html5Color:c,html5Pattern:function(){return!this.validity.patternMismatch},html5MaxLength:function(){return!this.validity.tooLong},html5Min:function(){return!this.validity.rowUnderflow},html5Max:function(){return!this.validity.rowOverflow},html5Step:function(){return!this.validity.stepMismatch}};return{Validator:m,init:W,wrapValidatorWithEmptyCheck:I,initializePublicValidators:N,compoundValidator:V,validate:H,runValidatorFor:w,interpolateConstraintDefaultMessage:g,createPublicValidator:C}}),function(e,t){typeof define=="function"&&define.amd?define("domain/CompositionGraph",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.CompositionGraph=t())}(this,function(){function n(n){var s=n.type,a=n.name,i=n.parent,o=typeof t[s]=="undefined"?{visited:!1,name:a,type:s,parents:[],children:[]}:t[s];i==null?e.children.push(o):(i.children.push(o),o.parents.push(i)),t[s]=o}function s(){var t={},n=function e(n,s){var i,o=typeof t[n.type]=="undefined"?{visited:n.visited,name:n.name,type:n.type,parents:[],children:[]}:t[n.type];s!==null&&o.parents.push(s);for(i=0;i<n.children.length;i++)o.children.push(e(n.children[i],o));return t[n.type]=o,o}(e,null);return{typeToNodeMap:t,root:n}}function o(e){var n=t[e];return typeof n=="undefined"?null:n}function i(e){var t=function e(t,n){var s,o={cycle:!1,path:n};if(t.visited)o.cycle=!0;else for(t.visited=!0,s=0;s<t.children.length&&!o.cycle;)o=e(t.children[s],n+"."+t.children[s].name),s++;return o}(e,e.name);return t.cycle||a(),t}function a(){(function e(t){t.visited=!1;for(var n=0;n<t.children.length;n++)e(t.children[n])})(e)}function r(){return e}function c(t){e=t}function l(n){t=n.typeToNodeMap,e=n.root}var t={},e={visited:!1,name:"RootNode",type:-1,parents:[],children:[]};return{ROOT:-1,addNode:n,getNodeByType:o,analyze:i,getRoot:r,setRoot:c,clone:s,initializeFromClone:l}}),function(e,t){typeof define=="function"&&define.amd?define("service/ConstraintService",["service/ValidationService","domain/CompositionGraph","service/ExceptionService","utils/MapUtils","utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ConstraintService=t(e.regulaModules.ValidationService,e.regulaModules.CompositionGraph,e.regulaModules.ExceptionService,e.regulaModules.MapUtils,e.regulaModules.ArrayUtils))}(this,function(e,t,n,s,o){function h(s){var c,l,m,f,p,g,o=typeof s.async=="undefined"?a[s.name].async:s.async,h=s.validator;if(s.validatorRedefined&&!s.formSpecific&&(h=e.wrapValidatorWithEmptyCheck(h)),c=t.getNodeByType(s.constraintType),s.compound){if(u(s.name,s.composingConstraints,s.params),f=t.clone(),d(s.name,s.composingConstraints),m=t.analyze(c),m.cycle)throw t.initializeFromClone(f),new n.Exception.ConstraintDefinitionException("regula.override: The overriding composing-constraints you have specified have created a cyclic composition: "+m.path);for(o=!1,l=0;l<s.composingConstraints.length&&!o;)p=s.composingConstraints[l],g=a[r[p.constraintType]],o=g.async,l++}c!==null&&function e(n){for(s=0;s<n.parents.length;s++)if(i=n.parents[s],i.type!==t.ROOT){var s,i,c=r[i.type],l=a[c];l.async=o,e(i)}}(c),a[s.name]={async:o,formSpecific:s.formSpecific,constraintType:i[s.name],custom:!0,compound:s.compound,params:s.params,composingConstraints:s.composingConstraints,defaultMessage:s.defaultMessage,validator:h},a[s.name].custom&&s.validatorRedefined&&e.createPublicValidator(s.name,a)}function m(t){i[t.name]=c,r[c++]=t.name;var n=t.validator;t.formSpecific||(n=e.wrapValidatorWithEmptyCheck(t.validator)),a[t.name]={async:t.async,formSpecific:t.formSpecific,validator:n,constraintType:i[t.name],custom:!0,compound:!1,params:t.params,defaultMessage:t.defaultMessage},e.createPublicValidator(t.name,a)}function f(t){u(t.name,t.constraints,t.params);for(var o,l,n=!1,s=0;s<t.constraints.length&&!n;)o=t.constraints[s],l=r[o.constraintType],n=n||a[l].async,s++;i[t.name]=c,r[c++]=t.name,a[t.name]={async:n,formSpecific:t.formSpecific,constraintType:i[t.name],custom:!0,compound:!0,params:t.params,reportAsSingleViolation:t.reportAsSingleViolation,composingConstraints:t.constraints,defaultMessage:t.defaultMessage,validator:e.compoundValidator},e.createPublicValidator(t.name,a),d(t.name,t.constraints)}function p(e,t,s){var r,o={successful:!0,message:"",data:null},i=e.cloneNode(!1);return i.tagName.toLowerCase()=="form"&&!a[t].formSpecific?o={successful:!1,message:n.generateExceptionMessage(e,t,"@"+t+" is not a form constraint, but you are trying to bind it to a form"),data:null}:i.tagName.toLowerCase()!="form"&&a[t].formSpecific?o={successful:!1,message:n.generateExceptionMessage(e,t,"@"+t+" is a form constraint, but you are trying to bind it to a non-form element"),data:null}:(typeof i.type=="undefined"||i.type.toLowerCase()!="checkbox"&&i.type.toLowerCase()!="radio")&&t=="Checked"?o={successful:!1,message:n.generateExceptionMessage(e,t,"@"+t+" is only applicable to checkboxes and radio buttons. You are trying to bind it to an input element that is neither a checkbox nor a radio button."),data:null}:i.tagName.toLowerCase()!="select"&&t=="Selected"?o={successful:!1,message:n.generateExceptionMessage(e,t,"@"+t+" is only applicable to select boxes. You are trying to bind it to an input element that is not a select box."),data:null}:(r=l(e,a[t],s),r.error?o={successful:!1,message:r.message,data:null}:o.data=s),o}function l(e,t,s){var i,a,l,c={error:!1,message:""};s.__size__<t.params.length&&(c={error:!0,message:n.generateExceptionMessage(e,r[t.constraintType],"@"+r[t.constraintType]+" expects at least "+t.params.length+" parameter(s). However, you have provided only "+s.__size__),data:null});for(i=[],a=0;a<t.params.length;a++)l=t.params[a],typeof s[l]=="undefined"&&i.push(l);return i.length>0&&(c={error:!0,message:n.generateExceptionMessage(e,r[t.constraintType],"You seem to have provided some optional or required parameters for @"+r[t.constraintType]+", but you are still missing the following "+i.length+" required parameter(s): "+o.explode(i,", ")),data:null}),c}function d(e,n){s=t.getNodeByType(i[e]),s==null&&(t.addNode({type:i[e],name:e,parent:null}),s=t.getNodeByType(i[e]));for(o=0;o<s.children.length;o++){for(var s,o,d,h,l=s.children[o],u=[],c=0;c<l.parents.length;c++)l.parents[c]!==s&&u.push(l.parents[c]);l.parents=u}s.children=[];for(o=0;o<n.length;o++)h=r[n[o].constraintType],d=a[h],t.addNode({type:d.constraintType,name:r[d.constraintType],parent:s})}function u(e,t,o){for(c=0;c<t.length;c++){if(typeof t[c].constraintType=="undefined")throw new n.Exception.ConstraintDefinitionException("In compound constraint "+e+": A composing constraint has no constraint type specified.");var c,d,h,m,f,g,i=t[c],p=r[i.constraintType],u={__size__:0};i.params=i.params||{};for(h in i.params)i.params.hasOwnProperty(h)&&s.put(u,h,i.params[h]);m=0;for(g in i.params)i.params.hasOwnProperty(g)&&m++;i.params.__size__=m;for(d=0;d<o.length;d++)s.put(u,o[d],null);if(f=l(null,a[p],u),f.error)throw new n.Exception.ConstraintDefinitionException("In compound constraint "+e+": "+f.message)}}var a,i={},r={},c=0;return function(e){for(var t=0;t<e.length;t++)i[e[t]]=t,r[t]=e[t];c=t,i.Between=i.row,i.Matches=i.Pattern,i.Empty=i.Blank,i.NotEmpty=i.NotBlank,i.IsAlpha=i.Alpha,i.IsNumeric=i.Numeric,i.IsAlphaNumeric=i.AlphaNumeric}(["Checked","Selected","Max","Min","Range","Between","NotBlank","NotEmpty","Blank","Empty","Pattern","Matches","Email","Alpha","IsAlpha","Numeric","IsNumeric","AlphaNumeric","IsAlphaNumeric","Integer","Real","CompletelyFilled","PasswordsMatch","Required","Length","Digits","Past","Future","Step","URL","HTML5Required","HTML5Email","HTML5URL","HTML5MaxLength","HTML5Pattern","HTML5Min","HTML5Max","HTML5Step"]),a={Checked:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.checked,constraintType:i.Checked,custom:!1,compound:!1,params:[],defaultMessage:"{label} needs to be checked."},Selected:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.selected,constraintType:i.Selected,custom:!1,compound:!1,params:[],defaultMessage:"{label} needs to be selected."},Max:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.max,constraintType:i.Max,custom:!1,compound:!1,params:["value"],defaultMessage:"{label} needs to be lesser than or equal to {value}."},Min:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.min,constraintType:i.Min,custom:!1,compound:!1,params:["value"],defaultMessage:"{label} needs to be greater than or equal to {value}."},Range:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.row,constraintType:i.row,custom:!1,compound:!1,params:["min","max"],defaultMessage:"{label} needs to be between {min} and {max}."},NotBlank:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.notBlank,constraintType:i.NotBlank,custom:!1,compound:!1,params:[],defaultMessage:"{label} cannot be blank."},Blank:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.blank,constraintType:i.Blank,custom:!1,compound:!1,params:[],defaultMessage:"{label} needs to be blank."},Pattern:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.matches,constraintType:i.Pattern,custom:!1,compound:!1,params:["regex"],defaultMessage:"{label} needs to match {regex}{flags}."},Email:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.email,constraintType:i.Email,custom:!1,compound:!1,params:[],defaultMessage:"{label} is not a valid email."},Alpha:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.alpha,constraintType:i.Alpha,custom:!1,compound:!1,params:[],defaultMessage:"{label} can only contain letters."},Numeric:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.numeric,constraintType:i.Numeric,custom:!1,compound:!1,params:[],defaultMessage:"Only numbers are required"},AlphaNumeric:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.alphaNumeric,constraintType:i.AlphaNumeric,custom:!1,compound:!1,params:[],defaultMessage:"{label} can only contain numbers and letters."},Integer:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.integer,constraintType:i.Integer,custom:!1,compound:!1,params:[],defaultMessage:"{label} must be an integer."},Real:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.real,constraintType:i.Real,custom:!1,compound:!1,params:[],defaultMessage:"{label} must be a real number."},CompletelyFilled:{async:!1,html5:!1,formSpecific:!0,validator:e.Validator.completelyFilled,constraintType:i.CompletelyFilled,custom:!1,compound:!1,params:[],defaultMessage:"{label} must be completely filled."},PasswordsMatch:{async:!1,html5:!1,formSpecific:!0,validator:e.Validator.passwordsMatch,constraintType:i.PasswordsMatch,custom:!1,compound:!1,params:["field1","field2"],defaultMessage:"Passwords do not match."},Required:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.required,constraintType:i.Required,custom:!1,compound:!1,params:[],defaultMessage:"{label} is required."},Length:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.length,constraintType:i.Length,custom:!1,compound:!1,params:["min","max"],defaultMessage:"{label} length must be between {min} and {max}."},Digits:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.digits,constraintType:i.Digits,custom:!1,compound:!1,params:["integer","fraction"],defaultMessage:"{label} must have up to {integer} digits and {fraction} fractional digits."},Past:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.past,constraintType:i.Past,custom:!1,compound:!1,params:["format"],defaultMessage:"{label} must be in the past."},Future:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.future,constraintType:i.Future,custom:!1,compound:!1,params:["format"],defaultMessage:"{label} must be in the future."},Step:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.step,constraintType:i.Step,custom:!1,compound:!1,params:["min","max","value"],defaultMessage:"{label} must be equal to {min} or greater, and equal to {max} or lesser, at increments of {value}."},URL:{async:!1,html5:!1,formSpecific:!1,validator:e.Validator.url,constraintType:i.URL,custom:!1,compound:!1,params:[],defaultMessage:"{label} must be a valid URL."},HTML5Required:{async:!1,html5:!0,inputType:null,attribute:"required",formSpecific:!1,validator:e.Validator.html5Required,constraintType:i.HTML5Required,custom:!1,compound:!1,params:[],defaultMessage:"{label} is required."},HTML5Email:{async:!1,html5:!0,inputType:"email",attribute:null,formSpecific:!1,validator:e.Validator.html5Email,constraintType:i.HTML5Email,custom:!1,compound:!1,params:[],defaultMessage:"{label} is not a valid email."},HTML5Pattern:{async:!1,html5:!0,inputType:null,attribute:"pattern",formSpecific:!1,validator:e.Validator.html5Pattern,constraintType:i.HTML5Pattern,custom:!1,compound:!1,params:["pattern"],defaultMessage:"{label} needs to match {pattern}."},HTML5URL:{async:!1,html5:!0,inputType:"url",attribute:null,formSpecific:!1,validator:e.Validator.html5URL,constraintType:i.HTML5URL,custom:!1,compound:!1,params:[],defaultMessage:"{label} is not a valid URL."},HTML5MaxLength:{async:!1,html5:!0,inputType:null,attribute:"maxlength",formSpecific:!1,validator:e.Validator.html5MaxLength,constraintType:i.HTML5MaxLength,custom:!1,compound:!1,params:["maxlength"],defaultMessage:"{label} must be less than {maxlength} characters."},HTML5Min:{async:!1,html5:!0,inputType:null,attribute:"min",formSpecific:!1,validator:e.Validator.html5Min,constraintType:i.HTML5Min,custom:!1,compound:!1,params:["min"],defaultMessage:"{label} needs to be greater than or equal to {min}."},HTML5Max:{async:!1,html5:!0,inputType:null,attribute:"max",formSpecific:!1,validator:e.Validator.html5Max,constraintType:i.HTML5Max,custom:!1,compound:!1,params:["max"],defaultMessage:"{label} needs to be lesser than or equal to {max}."},HTML5Step:{async:!1,html5:!0,inputType:null,attribute:"step",formSpecific:!1,validator:e.Validator.html5Step,constraintType:i.HTML5Step,custom:!1,compound:!1,params:["step"],defaultMessage:"{label} must be equal to the minimum value or greater at increments of {step}."}},{Constraint:i,ReverseConstraint:r,firstCustomConstraintIndex:c,constraintDefinitions:a,override:h,custom:m,compound:f,verifyConstraintDefinition:p,verifyParameterCountMatches:l}}),function(e,t){typeof define=="function"&&define.amd?define("parser/Parser",["utils/MapUtils","service/ExceptionService","service/ConstraintService"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.Parser=t(e.regulaModules.MapUtils,e.regulaModules.ExceptionService,e.regulaModules.ConstraintService))}(this,function(e,t,n){function o(e){return e?e.replace(/^\s+/,"").replace(/\s+$/,""):""}function s(e){return e[0]}function i(t){for(var n,s=t.str,c=t.delimiters.split(""),l=t.returnDelimiters||!1,r=t.returnEmptyTokens||!1,o=[],a=0,i=0;i<s.length;i++)e.exists(c,s.charAt(i))&&(n=s.substring(a,i),n.length==0?r&&o.push(n):o.push(n),l&&o.push(s.charAt(i)),a=i+1);return a<s.length&&(n=s.substring(a,s.length),n.length==0?r&&o.push(n):o.push(n)),o}function a(a,r){function O(e){for(var t={successful:!0,message:"",data:null},n=[];e.length>0&&t.successful;)t=M(e),n.push(t.data);return t.data=n,t}function M(e){var n={successful:!0,message:"",data:null},s=e.shift();return o(s).length==0&&(s=e.shift()),s=="@"?n=S(e):n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid constraint. Constraint definitions need to start with '@'")+" "+n.message,data:null},n}function S(e){var i,o={Between:"Range",Matches:"Pattern",Empty:"Blank",NotEmpty:"NotBlank",IsAlpha:"Alpha",IsNumeric:"Integer",IsAlphaNumeric:"AlphaNumeric"},s=j(e);return s.successful?(c=s.data,c=o[c]?o[c]:c,n.constraintDefinitions[c]?(s=b(e),s.successful&&(s=n.verifyConstraintDefinition(a,c,s.data),s.successful&&(i=s.data,s.data={element:a,constraintName:c,definedParameters:i}))):s={successful:!1,message:t.generateExceptionMessage(a,c,"I cannot find the specified constraint name. If this is a custom constraint, you need to define it before you bind to it")+" "+s.message,data:null}):s={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid constraint name in constraint definition")+" "+s.message,data:null},s}function j(e){var i,s=o(e.shift()),n=l(s.charAt(0));if(n.successful){for(i=1;i<s.length&&n.successful;)n=d(s.charAt(i)),i++;n.successful&&(n.data=s)}else n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid starting character for constraint name. Can only include A-Z, a-z, and _")+" "+n.message,data:null};return n}function l(e){var n={successful:!0,message:"",data:null};return(!/[A-Za-z_]/.test(e)||typeof e=="undefined"||e==null)&&(n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid starting character"),data:null}),n}function d(e){var n={successful:!0,message:"",data:null};return/[0-9A-Za-z_]/.test(e)||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid character in identifier. Can only include 0-9, A-Z, a-z, and _")+" "+n.message,data:null}),n}function b(n){var r,l,i={successful:!0,message:"",data:{}};if(s(n)=="(")if(n.shift(),r={},s(n)==")")n.shift();else if(i=p(n),i.successful){for(e.put(r,i.data.name,i.data.value),o(s(n)).length==0&&n.shift();n.length>0&&s(n)==","&&i.successful;)n.shift(),i=p(n),i.successful&&(e.put(r,i.data.name,i.data.value),o(s(n)).length==0&&n.shift());i.successful&&(l=n.shift(),o(l).length==0&&(l=n.shift()),l!=")"?i={successful:!1,message:t.generateExceptionMessage(a,c,"Cannot find matching closing ) in parameter list")+" "+i.message,data:null}:i.data=r)}else i={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid parameter definition")+" "+i.message,data:null};else s(n)!==void 0&&s(n)!="@"&&(i={successful:!1,message:t.generateExceptionMessage(a,c,"Unexpected character '"+s(n)+"' after constraint definition")+" "+i.message,data:null});return i}function p(e){if(n=w(e),n.successful){var n,o=n.data,s=e.shift();s=="="?(n=_(e),n.successful?n.data={name:o,value:n.data}:n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid parameter value")+" "+n.message,data:null}):(e.unshift(s),n={successful:!1,message:t.generateExceptionMessage(a,c,"'=' expected after parameter name "+n.message),data:null})}else n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid parameter name. You might have unmatched parentheses")+" "+n.message,data:null};return n}function w(e){var n,i,s=o(e.shift());if(s.length==0&&(s=e.shift()),n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid starting character for parameter name. Can only include A-Z, a-z, and _"),data:null},typeof s!="undefined")if(n=l(s.charAt(0)),n.successful){for(i=1;i<s.length&&n.successful;)n=d(s.charAt(i)),i++;n.successful&&(n.data=s)}else n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid starting character for parameter name. Can only include A-Z, a-z, and _")+" "+n.message,data:null};return n}function _(e){o(s(e)).length==0&&e.shift();var i,n={successful:!0,message:"",data:[]};return s(e)==")"?n={successful:!1,message:t.generateExceptionMessage(a,c,"Parameter value expected")+" "+n.message,data:null}:(n=y(e),i=n.message,n.successful||(n=x(e),n.message=n.message+" "+i,i=n.message,n.successful||(n=E(e),n.message=n.message+" "+i,i=n.message,n.successful||(n=k(e),n.message=n.message+" "+i,i=n.message,n.successful||(n=A(e),n.message=n.message+" "+i,i=n.message,n.successful||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Parameter value must be a number, quoted string, regular expression, or a boolean")+" "+i,data:null})))))),n}function y(e){var n=C(e);return n.successful||(n=u(e),n.successful||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Parameter value is not a number")+" "+n.message,data:null})),n}function C(e){var s=e.shift(),n={successful:!0,message:"",data:null};return s=="-"?(n=u(e),n.successful&&(n.data=s+n.data)):(e.unshift(s),n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a negative number"),data:null}),n}function u(e){var o,n=null;return s(e)!="."?(n=g(e),s(e)=="."&&(o=n.data,n=v(e),n.successful&&(n.data=o+n.data))):n=v(e),n.successful||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a positive number")+" "+n.message,data:null}),n}function v(e){var s=e.shift(),n=g(e);return n.successful?n.data=s+n.data:n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a valid fraction"),data:null},n}function g(e){var i,s=o(e.shift()),n=f(s.charAt(0));if(n.successful){for(i=1;i<s.length&&n.successful;)n=f(s.charAt(i)),i++;n.successful&&(n.data=s)}else e.unshift(s),n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a valid integer")+" "+n.message,data:[]};return n}function f(e){var n={successful:!0,message:"",data:null};return/[0-9]/.test(e)||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a valid digit"),data:null}),n}function x(e){var o,i=e.shift(),r="",n={successful:!0,message:"",data:null};if(i=='"'){for(o=!1;e.length>0&&n.successful&&!o;)s(e)=='"'?(o=!0,e.shift()):(n=m(e),r+=n.data);o||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Unterminated string literal"),data:null})}else e.unshift(i),n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid quoted string"),data:null};return n.successful=n.successful&&o,n.data=r,n}function m(e){var t="",n=e.shift();return n=="\\"&&(t=e.shift()),{successful:!0,message:"",data:n+t}}function E(e){var o,i="",r=e.shift(),n={successful:!0,message:"",data:null};if(r=="/"){for(i=r,o=!1;e.length>0&&n.successful&&!o;)s(e)=="/"?(i+=e.shift(),o=!0):(n=m(e),i+=n.data);o||(n={successful:!1,message:t.generateExceptionMessage(a,c,"Unterminated regex literal"),data:null})}else e.unshift(r),n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a regular expression"),data:null};return n.successful=n.successful&&o,n.data=i,n}function k(e){var n=e.shift(),s={successful:!0,message:"",data:null};return o(n)=="true"||o(n)=="false"?s={successful:!0,message:"",data:n==="true"}:(e.unshift(n),s={successful:!1,message:t.generateExceptionMessage(a,c,"Not a boolean"),data:null}),s}function A(e){var r=[],i=e.shift(),n={successful:!0,message:"",data:null};if(i=="[")if(o(s(e)).length==0&&e.shift(),s(e)=="]"?n={successful:!0,message:"",data:""}:n=h(e),n.successful){for(r.push(n.data),o(s(e)).length==0&&e.shift();e.length>0&&s(e)==","&&n.successful;)e.shift(),n=h(e),r.push(n.data),o(s(e)).length==0&&e.shift();n.data=r,i=e.shift(),o(i).length==0&&e.shift(),i!="]"&&(n={successful:!1,message:t.generateExceptionMessage(a,c,"Cannot find matching closing ] in group definition")+" "+n.message,data:null})}else n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid group definition")+" "+n.message,data:null};else e.unshift(i),n={successful:!1,message:t.generateExceptionMessage(a,c,"Not a valid group definition"),data:null};return n}function h(e){var i,n={successful:!0,message:"",data:""},s=o(e.shift());if(s.length==0&&(s=e.shift()),n=l(s.charAt(0)),n.successful){for(i=1;i<s.length&&n.successful;)n=d(s.charAt(i)),i++;n.successful&&(n.data=s)}else n={successful:!1,message:t.generateExceptionMessage(a,c,"Invalid starting character for group name. Can only include A-Z, a-z, and _")+" "+n.message,data:null};return n}var c="",F=i({str:o(r.replace(/\s*\n\s*/g,"")),delimiters:'@()[]=,"\\/-\\.',returnDelimiters:!0,returnEmptyTokens:!1});return O(F)}return{parse:a}}),function(e,t){typeof define=="function"&&define.amd?define("service/BindingService",["utils/MapUtils","service/GroupService","utils/DOMUtils","parser/Parser","service/ConstraintService","service/ExceptionService"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.BindingService=t(e.regulaModules.MapUtils,e.regulaModules.GroupService,e.regulaModules.DOMUtils,e.regulaModules.Parser,e.regulaModules.ConstraintService,e.regulaModules.ExceptionService))}(this,function(e,t,n,s,o,i){function g(){a===null&&u()}function u(){a={Default:{}}}function h(){return a}function r(n,s){if(e.isEmpty(a[s][n])&&(delete a[s][n],e.isEmpty(a[s]))){delete a[s];var o=t.Group[s];delete t.Group[s],delete t.ReverseGroup[o],t.deletedGroupIndices.push(o)}}function l(e){var n={successful:!0,message:"",data:null},s=typeof e.cloneNode!="undefined"?e.cloneNode(!1):e,t=null;return typeof s.tagName!="undefined"&&(t=s.tagName.toLowerCase()),t!=="form"&&t!=="select"&&t!=="textarea"&&t!=="input"?n={successful:!1,message:t+"#"+e.id+" is not an input, select, textarea, or form element! Validation constraints can only be attached to input, select, textarea, or form elements.",data:null}:t==="input"&&e.getAttribute("type")===null&&(n={successful:!1,message:t+"#"+e.id+" does not have a type attribute.",data:null}),n}function d(e){o=e.element,o===null?i=n.getElementsByAttribute(document.body,"*","data-constraints"):i=[o];for(var o,i,a,r,u,h,t={successful:!0,message:"",data:null},d=0;d<i.length&&t.successful;)if(o=i[d],t=l(o),t.successful){if(o.id||(o.id=n.generateRandomId()),u=o.getAttribute("data-constraints"),u!==null&&(t=s.parse(o,u),t.successful&&t.data!==null))for(h=t.data,a=0;t.successful&&a<h.length;)r=h[a],t=c(r.element,r.constraintName,r.definedParameters),a++;d++}return t}function m(t){function g(e,t,s){for(var o,a,i=0;i<t.length;i++)o=t[i],o.id||(o.id=n.generateRandomId()),e[o.id]||(e[o.id]=[]),a={constraint:s.constraint,params:{}},s.value===null&&(a.params[s.attribute]=n.getAttributeValueForElement(o,s.attribute)),e[o.id].push(a)}var s,a,h,m,f,i=t.element,d={successful:!0,message:"",data:null},u=[{attribute:"required",value:null,constraint:o.Constraint.HTML5Required},{attribute:"type",value:"email",constraint:o.Constraint.HTML5Email},{attribute:"type",value:"url",constraint:o.Constraint.HTML5URL},{attribute:"pattern",value:null,constraint:o.Constraint.HTML5Pattern},{attribute:"maxlength",value:null,constraint:o.Constraint.HTML5MaxLength},{attribute:"min",value:null,constraint:o.Constraint.HTML5Min},{attribute:"max",value:null,constraint:o.Constraint.HTML5Max},{attribute:"step",value:null,constraint:o.Constraint.HTML5Step}],p={email:o.Constraint.HTML5Email,url:o.Constraint.HTML5URL},r={};if(i===null)for(a=0;a<u.length;a++)s=u[a],h=null,s.value==null?h=n.getElementsByAttribute(document.body,"*",s.attribute):h=n.getElementsByAttribute(document.body,"*",s.attribute,s.value),g(r,h,s);else if(i.id||(i.id=n.generateRandomId()),d=l(i),d.successful){r[i.id]=[];for(a=0;a<u.length;a++)s=u[a],s.value===null?n.getAttributeValueForElement(i,s.attribute)!=null&&(f={constraint:s.constraint,params:{}},f.params[s.attribute]=n.getAttributeValueForElement(i,s.attribute),r[i.id].push(f)):(m=n.getAttributeValueForElement(i,s.attribute),m!=null&&typeof p[m]!="undefined"&&r[i.id].push({constraint:p[m],params:{}}))}return e.iterateOverMap(r,function(e,t){for(var i,a=document.getElementById(e),s=0;s<t.length;s++)i=t[s],d=c(a,o.ReverseConstraint[i.constraint],i.params)}),d}function f(e){var o,n={successful:!0,message:"",data:null},t=e.element,a=e.constraints||[],s=t&&t.tagName?t.tagName.toLowerCase():null;if(t)if(t.nodeType!==1)n={successful:!1,message:"regula.bind: element attribute is expected to be an HTMLElement, but was of unexpected type: "+typeof t+". "+i.explodeParameters(e),data:null};else if(s!="form"&&s!="select"&&s!="textarea"&&s!="input")n={successful:!1,message:s+"#"+t.id+" is not an input, select, textarea, or form element! Validation constraints can only be attached to input, select, textarea, or form elements. "+i.explodeParameters(e),data:null};else if(a.length>0)for(o=0;o<a.length&&n.successful;)n=p(a[o],e),o++;else n=d({element:t});else n={successful:!1,message:"regula.bind expects a non-null element attribute in the options argument. "+i.explodeParameters(e),data:null};return n}function p(n,s){function _(e,t){for(var n,i={},o=[],s=0;s<e.length;s++)o.push(e[s]),i[e[s]]=!0;for(n=0;n<t.length;n++)i[t[n]]||o.push(t[n]);return o}function O(t,n){for(var o=[],s=0;s<n.length;s++)e.exists(t,n[s])||o.push(n[s]);return o}function b(n,s,i){var l,d,u,h=a[t.ReverseGroup[t.Group.Default]][n.id][o.ReverseConstraint[s]].groups,c=[];i.groups?c=i.groups:c.push(t.ReverseGroup[t.Group.Default]),e.exists(c,t.ReverseGroup[t.Group.Default])||c.push(t.ReverseGroup[t.Group.Default]);for(d=O(c,_(h,c)),l=0;l<d.length;l++)u=d[l],delete a[u][n.id][o.ReverseConstraint[s]],r(n.id,u)}var d,p,g,v,u={successful:!0,message:"",data:null},m=s.element,j=n.overwriteConstraint||!1,y=n.overwriteParameters||!1,f=n.constraintType,l=n.params||{},h={__size__:0},w=l.groups;if(typeof f=="undefined")u={successful:!1,message:"regula.bind expects a valid constraint type for each constraint in constraints attribute of the options argument. "+i.explodeParameters(s),data:null};else if(l&&l.groups)if(l.groups instanceof Array){for(v=[],p=0;p<l.groups.length&&u.successful;)typeof l.groups[p]=="string"?v.push(l.groups[p]):typeof t.ReverseGroup[l.groups[p]]!="undefined"?v.push(t.ReverseGroup[l.groups[p]]):u={successful:!1,message:"Invalid group: "+l.groups[p]+". "+i.explodeParameters(s),data:null},p++;u.successful&&(l.groups=v)}else u={successful:!1,message:"The groups parameter must be an array of enums or strings "+i.explodeParameters(s),data:null};if(u.successful){if(!a[t.ReverseGroup[t.Group.Default]][m.id]||!a[t.ReverseGroup[t.Group.Default]][m.id][o.ReverseConstraint[f]]){for(d in l)l.hasOwnProperty(d)&&e.put(h,d,l[d]);u=o.verifyConstraintDefinition(m,o.ReverseConstraint[f],h)}else if(j){for(d in l)l.hasOwnProperty(d)&&e.put(h,d,l[d]);u=o.verifyConstraintDefinition(m,o.ReverseConstraint[f],h),u.successful&&b(m,f,l)}else{g=a[t.ReverseGroup[t.Group.Default]][m.id][o.ReverseConstraint[f]];for(d in g)g.hasOwnProperty(d)&&e.put(h,d,g[d]);if(y){for(d in l)l.hasOwnProperty(d)&&e.put(h,d,l[d]);u=o.verifyConstraintDefinition(m,o.ReverseConstraint[f],h),u.successful&&b(m,f,h)}else for(d in l)l.hasOwnProperty(d)&&(g[d]||e.put(h,d,l[d]))}u.successful&&(u=c(m,o.ReverseConstraint[f],h))}return l.groups=w,u}function c(n,s,r){h={successful:!0,message:"",data:null},r.groups||e.put(r,"groups",[t.ReverseGroup[t.Group.Default]]),l=r.groups,l.indexOf(t.ReverseGroup[t.Group.Default])===-1&&(l.push(t.ReverseGroup[t.Group.Default]),r.groups=l);for(u=0;u<l.length;u++)c=l[u],a[c]||(d=-1,t.deletedGroupIndices.length>0?d=t.deletedGroupIndices.pop():d=t.firstCustomGroupIndex++,t.Group[c]=d,t.ReverseGroup[d]=c,a[c]={}),a[c][n.id]||(a[c][n.id]={}),a[c][n.id][s]=r;if(o.constraintDefinitions[s].html5)if(n.getAttribute("type")!==null&&o.constraintDefinitions[s].inputType!==null&&n.getAttribute("type")!==o.constraintDefinitions[s].inputType)h={successful:!1,message:i.generateExceptionMessage(n,s,"Element type of "+n.getAttribute("type")+" conflicts with type of constraint @"+s+": "+o.constraintDefinitions[s].inputType),data:null};else{var c,l,d,u,h,m=o.constraintDefinitions[s].attribute,f=o.constraintDefinitions[s].inputType;(m!==null&&n.getAttribute(m)===null||f!==null&&n.getAttribute("type")===null)&&v(n,s,r)}return h}function v(e,t,n){if(t===o.ReverseConstraint[o.Constraint.HTML5Required])e.setAttribute("required","true");else for(var a,i=o.constraintDefinitions[t],s=0;s<i.params.length;s++)e.setAttribute(i.params[s],n[i.params[s]]);a=e.getAttribute("class"),/regula-modified/.test(a)||e.setAttribute("class",a+" regula-modified")}function b(e){for(s=!1,c=0;c<e.elements.length;c++){var t,s,c,l,u,n=e.elements[c].id,d=e.constraints||[];if(d.length==0)for(t in a)a.hasOwnProperty(t)&&typeof a[t][n]!="undefined"&&(delete a[t][n],t!=="Default"&&r(n,t),s=!0);else for(l=0;l<d.length;l++){u=d[l];for(t in a)a.hasOwnProperty(t)&&typeof a[t][n]!="undefined"&&(delete a[t][n][o.ReverseConstraint[u]],t!=="Default"&&r(n,t),s=!0)}}if(e.elements.length>0&&!s)throw new i.Exception.IllegalArgumentException("Element with id "+n+" does not have any constraints bound to it. "+i.explodeParameters(e))}function j(e){var s,i,r=e.elementId,c=e.group,l=e.constraint,n=typeof a[t.ReverseGroup[t.Group.Default]][r]!="undefined";return n&&typeof c!="undefined"&&typeof l=="undefined"?(s=t.ReverseGroup[c],n=typeof s!="undefined"&&typeof a[s][r]!="undefined"):n&&typeof c=="undefined"&&typeof l!="undefined"?(i=o.ReverseConstraint[l],n=typeof i!="undefined"&&typeof a[t.ReverseGroup[t.Group.Default]][r][i]!="undefined"):n&&typeof c!="undefined"&&typeof l!="undefined"&&(s=t.ReverseGroup[c],i=o.ReverseConstraint[l],n=typeof s!="undefined"&&typeof i!="undefined"&&typeof a[s][r]!="undefined"&&typeof a[s][r][i]!="undefined"),n}var a=null,y={};return{initializeBoundConstraints:g,resetBoundConstraints:u,getBoundConstraints:h,removeElementAndGroupFromBoundConstraintsIfEmpty:r,bindAfterParsing:d,bindHTML5ValidationConstraints:m,bindFromOptions:f,unbind:b,isBound:j}}),function(e,t){typeof define=="function"&&define.amd?define("regula",["utils/MapUtils","utils/DOMUtils","service/BindingService","service/ExceptionService","service/ConstraintService","service/ValidationService","service/GroupService"],t):(e.regula=t(e.regulaModules.MapUtils,e.regulaModules.DOMUtils,e.regulaModules.BindingService,e.regulaModules.ExceptionService,e.regulaModules.ConstraintService,e.regulaModules.ValidationService,e.regulaModules.GroupService),e.regula._modules=e.regulaModules,e.regulaModules=void 0)}(this,function(e,t,n,s,o,i,a){function c(t){e.iterateOverMap(t,function(e,t){typeof r[e]!="undefined"&&(r[e]=t)})}function l(e){var i,a,o={successful:!0,message:"",data:null};if(typeof e=="undefined"||!e)n.resetBoundConstraints(),r.enableHTML5Validation&&t.supportsHTML5Validation()&&(o=n.bindHTML5ValidationConstraints({element:null})),o.successful&&(o=n.bindAfterParsing({element:null}));else if(i=e.elements,typeof i=="undefined"||!i)r.enableHTML5Validation&&t.supportsHTML5Validation()&&typeof e.element!="undefined"&&e.element!==null&&(o=n.bindHTML5ValidationConstraints({element:e.element})),o.successful&&(o=n.bindFromOptions(e));else for(a=0;o.successful&&a<i.length;)e.element=i[a],r.enableHTML5Validation&&t.supportsHTML5Validation()&&(o=n.bindHTML5ValidationConstraints({element:e.element})),o.successful?(o=n.bindFromOptions(e),o.successful||(o.message="regula.bind: Element "+(a+1)+" of "+i.length+" failed: "+o.message)):o.message="regula.bind: Failed binding HTML5 validation constraints: Element "+(a+1)+" of "+i.length+" failed: "+o.message,a++;if(!o.successful)throw new s.Exception.BindException(o.message)}function d(e){if(typeof e=="undefined"||!e)n.resetBoundConstraints();else{if(typeof e.elementId=="undefined"&&typeof e.elements=="undefined")throw new s.Exception.IllegalArgumentException("regula.unbind requires an elementId attribute, or an elements attribute if options are provided");if(!(typeof e.elements=="undefined"||e.elements instanceof Array))throw new s.Exception.IllegalArgumentException("regula.unbind expects the elements attribute to be an array, if it is provided");if(typeof e.elements=="undefined"&&(e.elements=[document.getElementById(e.elementId)],e.elements[0]===null))throw new s.Exception.IllegalArgumentException("Element with id "+e.elementId+" does not have any constraints bound to it. "+s.explodeParameters(e));n.unbind(e)}}function u(e){if(typeof e=="undefined")throw new s.Exception.IllegalArgumentException("regula.isBound expects options");var t=e.element,o=e.elementId;if(typeof t=="undefined"&&typeof o=="undefined")throw new s.Exception.IllegalArgumentException("regula.isBound expects at the very least, either an element or elementId attribute");if(e.hasOwnProperty("constraint")&&typeof e.constraint=="undefined")throw new s.Exception.IllegalArgumentException("Undefined constraint was supplied as a parameter");if(e.hasOwnProperty("group")&&typeof e.group=="undefined")throw new s.Exception.IllegalArgumentException("Undefined group was supplied as a parameter");return typeof t!="undefined"&&(o=t.id),n.isBound({elementId:o,group:e.group,constraint:e.constraint})}function h(e){if(!e)throw new s.Exception.IllegalArgumentException("regula.override expects options");if(typeof e.constraintType=="undefined")throw new s.Exception.IllegalArgumentException("regula.override expects a valid constraintType attribute in the options argument");if(t=o.ReverseConstraint[e.constraintType],typeof t=="undefined")throw new s.Exception.IllegalArgumentException("regula.override: I could not find the specified constraint. Perhaps it has not been defined? Function received: "+s.explodeParameters(e));i=!1,n=o.constraintDefinitions[t].formSpecific,o.constraintDefinitions[t].custom&&(n=typeof e.formSpecific=="undefined"?o.constraintDefinitions[t].formSpecific:e.formSpecific);var t,n,i,l=o.constraintDefinitions[t].custom&&typeof e.async!="undefined"?e.async:o.constraintDefinitions[t].async,r=o.constraintDefinitions[t].custom?e.params||o.constraintDefinitions[t].params:o.constraintDefinitions[t].params,c=e.defaultMessage||o.constraintDefinitions[t].defaultMessage,d=o.constraintDefinitions[t].compound,u=e.constraints||o.constraintDefinitions[t].constraints,a=o.constraintDefinitions[t].validator;if(o.constraintDefinitions[t].custom&&!o.constraintDefinitions[t].compound&&typeof e.validator!="undefined"&&(a=e.validator,i=!0),typeof n!="boolean")throw new s.Exception.IllegalArgumentException("regula.override expects the formSpecific attribute in the options argument to be a boolean");if(typeof a!="function")throw new s.Exception.IllegalArgumentException("regula.override expects the validator attribute in the options argument to be a function");if(!(r instanceof Array))throw new s.Exception.IllegalArgumentException("regula.override expects the params attribute in the options argument to be an array");if(typeof c!="string")throw new s.Exception.IllegalArgumentException("regula.override expects the defaultMessage attribute in the options argument to be a string");o.override({async:l,formSpecific:n,name:t,constraintType:e.constraintType,compound:d,params:r,composingConstraints:u,defaultMessage:c,validator:a,validatorRedefined:i})}function m(e){if(!e)throw new s.Exception.IllegalArgumentException("regula.custom expects options");var t=e.name,i=e.formSpecific||!1,n=e.validator,a=e.params||[],r=e.defaultMessage||"",c=typeof e.async!="undefined"&&e.async;if(!t)throw new s.Exception.IllegalArgumentException("regula.custom expects a name attribute in the options argument");if(typeof t!="string")throw new s.Exception.IllegalArgumentException("regula.custom expects the name attribute in the options argument to be a string");if(t.replace(/\s/g,"").length==0)throw new s.Exception.IllegalArgumentException("regula.custom cannot accept an empty string for the name attribute in the options argument");if(typeof i!="boolean")throw new s.Exception.IllegalArgumentException("regula.custom expects the formSpecific attribute in the options argument to be a boolean");if(!n)throw new s.Exception.IllegalArgumentException("regula.custom expects a validator attribute in the options argument");if(typeof n!="function")throw new s.Exception.IllegalArgumentException("regula.custom expects the validator attribute in the options argument to be a function");if(a.constructor.toString().indexOf("Array")<0)throw new s.Exception.IllegalArgumentException("regula.custom expects the params attribute in the options argument to be an array");if(typeof r!="string")throw new s.Exception.IllegalArgumentException("regula.custom expects the defaultMessage attribute in the options argument to be a string");if(o.constraintDefinitions[t])throw new s.Exception.IllegalArgumentException("There is already a constraint called "+t+". If you wish to override this constraint, use regula.override");o.custom({async:c,name:t,formSpecific:i,validator:n,custom:!0,compound:!1,params:a,defaultMessage:r})}function f(e){if(!e)throw new s.Exception.IllegalArgumentException("regula.compound expects options");var t=e.name,n=e.constraints||[],a=e.formSpecific||!1,r=e.defaultMessage||"",i=e.params||[],c=typeof e.reportAsSingleViolation!="undefined"&&e.reportAsSingleViolation;if(!t)throw new s.Exception.IllegalArgumentException("regula.compound expects a name attribute in the options argument");if(typeof t!="string")throw new s.Exception.IllegalArgumentException("regula.compound expects name to be a string parameter");if(i.constructor.toString().indexOf("Array")<0)throw new s.Exception.IllegalArgumentException("regula.compound expects the params attribute in the options argument to be an array");if(n.length==0)throw new s.Exception.IllegalArgumentException("regula.compound expects an array of composing constraints under a constraints attribute in the options argument");if(o.constraintDefinitions[t])throw new s.Exception.IllegalArgumentException("regula.compound: There is already a constraint called "+t+". If you wish to override this constraint, use regula.override");o.compound({name:t,formSpecific:a,params:i,reportAsSingleViolation:c,constraints:n,defaultMessage:r})}function p(e,t){i.init({config:r,ReverseConstraint:o.ReverseConstraint,constraintDefinitions:o.constraintDefinitions,boundConstraints:n.getBoundConstraints()});var a=[];if(typeof e=="undefined"||typeof e.groups=="undefined"||e.groups instanceof Array){if(typeof e!="undefined"&&typeof e.groups!="undefined"&&e.groups.length==0)throw new s.Exception.IllegalArgumentException("regula.validate: If a groups attribute is provided, it must not be empty.");if(typeof e!="undefined"&&e.hasOwnProperty("constraintType")&&typeof e.constraintType=="undefined")throw new s.Exception.IllegalArgumentException("regula.validate: If a constraintType attribute is provided, it cannot be undefined.");if(typeof t=="undefined"&&typeof e=="function"&&(e={callback:e}),typeof t!="undefined"&&(e.callback=t),typeof e!="undefined"&&typeof e.elements!="undefined"){if(!(e.elements instanceof Array))throw new s.Exception.IllegalArgumentException("regula.validate: If an elements attribute is provided, it must be an array.");if(e.elements.length==0)throw new s.Exception.IllegalArgumentException("regula.validate: If an elements attribute is provided, it must not be empty.");a=i.validate(e)}else a=i.validate(e);return a}throw new s.Exception.IllegalArgumentException("regula.validate: If a groups attribute is provided, it must be an array.")}var r={validateEmptyFields:!0,enableHTML5Validation:!0,debug:!1},g={DMY:"DMY",MDY:"MDY",YMD:"YMD"};return n.initializeBoundConstraints(),i.initializePublicValidators(o.constraintDefinitions),{configure:c,bind:l,unbind:d,isBound:u,validate:p,custom:m,compound:f,override:h,Constraint:o.Constraint,Group:a.Group,DateFormat:g,Exception:s.Exception}}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function s(e){return n[e]?n[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.regula"):n.bind.apply(this,arguments)}var t=e,n={bind:function(n){return this instanceof e&&(n||(n={}),this.get().length>0&&t.extend(!0,n,{elements:this.get()})),regula.bind(n),this},unbind:function(n){return this instanceof e&&(n||(n={}),this.get().length>0&&t.extend(!0,n,{elements:this.get()})),regula.unbind(n),this},isBound:function(n){return this instanceof e&&(n||(n={}),this.get().length>0&&t.extend(!0,n,{element:this.get(0)})),regula.isBound(n),this},validate:function(n){return this instanceof e&&(n||(n={}),this.get().length>0&&t.extend(!0,n,{elements:this.get()})),regula.validate(n)},custom:function(e){return regula.custom(e),this},compound:function(e){return regula.compound(e),this},override:function(e){return regula.override(e),this}};n.on=n.bind,n.off=n.unbind,t.fn.regula=s,t.regula=s}),!function(e){"use strict";"function"==typeof define&&define.amd?define(["../jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function s(t){var n=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(n))}function o(t){var n,i,a,s=t.target,o=e(s);if(!o.is("[type=submit],[type=image]")){if(i=o.closest("[type=submit]"),0===i.length)return;s=i[0]}n=this,(n.clk=s,"image"==s.type)&&(void 0!==t.offsetX?(n.clk_x=t.offsetX,n.clk_y=t.offsetY):"function"==typeof e.fn.offset?(a=o.offset(),n.clk_x=t.pageX-a.left,n.clk_y=t.pageY-a.top):(n.clk_x=t.pageX-s.offsetLeft,n.clk_y=t.pageY-s.offsetTop)),setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}function t(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i,n={};n.fileapi=void 0!==e("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData,i=!!e.fn.prop,e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(s){function S(t){var n,i,o=e.param(t,s.traditional).split("&"),r=o.length,a=[];for(n=0;r>n;n++)o[n]=o[n].replace(/\+/g," "),i=o[n].split("="),a.push([decodeURIComponent(i[0]),decodeURIComponent(i[1])]);return a}function A(t){for(var o,i,r,a=new FormData,n=0;n<t.length;n++)a.append(t[n].name,t[n].value);if(s.extraData){i=S(s.extraData);for(n=0;n<i.length;n++)i[n]&&a.append(i[n][0],i[n][1])}return s.data=null,o=e.extend(!0,{},e.ajaxSettings,s,{contentType:!1,processData:!1,cache:!1,type:l||"POST"}),s.uploadProgress&&(o.xhr=function(){var t=e.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(e){var t=0,n=e.loaded||e.position,o=e.total;e.lengthComputable&&(t=Math.ceil(n/o*100)),s.uploadProgress(e,n,o,t)},!1),t}),o.data=null,r=o.beforeSend,o.beforeSend=function(e,t){t.data=s.formData?s.formData:a,r&&r.call(this,e,t)},e.ajax(o)}function E(n){function A(e){var n=null;try{e.contentWindow&&(n=e.contentWindow.document)}catch(e){t("cannot get iframe.contentWindow document: "+e)}if(n)return n;try{n=e.contentDocument?e.contentDocument:e.document}catch(s){t("cannot get iframe.contentDocument: "+s),n=e.document}return n}function M(){function i(){try{var e=A(m).readyState;t("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(i,50)}catch(e){t("Server abort: ",e," (",e.name,")"),v(w),j&&clearTimeout(j),j=void 0}}var n,s,u,r=o.attr2("target"),c=o.attr2("action"),h="multipart/form-data",p=o.attr("enctype")||o.attr("encoding")||h;d.setAttribute("target",y),(!l||/post/i.test(l))&&d.setAttribute("method","POST"),c!=a.url&&d.setAttribute("action",a.url),a.skipEncodingOverride||l&&!/post/i.test(l)||o.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),a.timeout&&(j=setTimeout(function(){O=!0,v(E)},a.timeout)),s=[];try{if(a.extraData)for(n in a.extraData)a.extraData.hasOwnProperty(n)&&s.push(e.isPlainObject(a.extraData[n])&&a.extraData[n].hasOwnProperty("name")&&a.extraData[n].hasOwnProperty("value")?e('<input type="hidden" name="'+a.extraData[n].name+'">').val(a.extraData[n].value).appendTo(d)[0]:e('<input type="hidden" name="'+n+'">').val(a.extraData[n]).appendTo(d)[0]);a.iframeTarget||f.appendTo("body"),m.attachEvent?m.attachEvent("onload",v):m.addEventListener("load",v,!1),setTimeout(i,15);try{d.submit()}catch{u=document.createElement("form").submit,u.apply(d)}}finally{d.setAttribute("action",c),d.setAttribute("enctype",p),r?d.setAttribute("target",r):o.removeAttr("target"),e(s).remove()}}function v(n){if(!r.aborted&&!F){if(c=A(m),c||(t("cannot access response document"),n=w),n===E&&r)return r.abort("timeout"),void h.reject(r,"timeout");if(n==w&&r)return r.abort("server abort"),void h.reject(r,"error","server abort");if(c&&c.location.href!=a.iframeSrc||O){m.detachEvent?m.detachEvent("onload",v):m.removeEventListener("load",v,!1),s="success";try{if(O)throw"timeout";if(g="xml"==a.dataType||c.XMLDocument||e.isXMLDoc(c),t("isXml="+g),!g&&window.opera&&(null===c.body||!c.body.innerHTML)&&--T)return t("requeing onLoad callback, DOM not available"),void setTimeout(v,250);i=c.body?c.body:c.documentElement,r.responseText=i?i.innerHTML:null,r.responseXML=c.XMLDocument?c.XMLDocument:c,g&&(a.dataType="xml"),r.getResponseHeader=function(e){var t={"content-type":a.dataType};return t[e.toLowerCase()]},i&&(r.status=Number(i.getAttribute("status"))||r.status,r.statusText=i.getAttribute("statusText")||r.statusText);var s,o,i,l,d,u,g,b=(a.dataType||"").toLowerCase(),y=/(json|script|text)/.test(b);y||a.textarea?(l=c.getElementsByTagName("textarea")[0],l?(r.responseText=l.value,r.status=Number(l.getAttribute("status"))||r.status,r.statusText=l.getAttribute("statusText")||r.statusText):y&&(d=c.getElementsByTagName("pre")[0],u=c.getElementsByTagName("body")[0],d?r.responseText=d.textContent?d.textContent:d.innerText:u&&(r.responseText=u.textContent?u.textContent:u.innerText))):"xml"==b&&!r.responseXML&&r.responseText&&(r.responseXML=z(r.responseText));try{S=N(r,b,a)}catch(e){s="parsererror",r.error=o=e||s}}catch(e){t("error caught: ",e),s="error",r.error=o=e||s}r.aborted&&(t("upload aborted"),s=null),r.status&&(s=r.status>=200&&r.status<300||304===r.status?"success":"error"),"success"===s?(a.success&&a.success.call(a.context,S,"success",r),h.resolve(r.responseText,"success",r),p&&e.event.trigger("ajaxSuccess",[r,a])):s&&(void 0===o&&(o=r.statusText),a.error&&a.error.call(a.context,r,s,o),h.reject(r,"error",o),p&&e.event.trigger("ajaxError",[r,a,o])),p&&e.event.trigger("ajaxComplete",[r,a]),p&&!--e.active&&e.event.trigger("ajaxStop"),a.complete&&a.complete.call(a.context,r,s),F=!0,a.timeout&&clearTimeout(j),setTimeout(function(){a.iframeTarget?f.attr("src",a.iframeSrc):f.remove(),r.responseXML=null},100)}}}if(d=o[0],h=e.Deferred(),h.abort=function(e){r.abort(e)},n)for(_=0;_<u.length;_++)x=e(u[_]),i?x.prop("disabled",!1):x.removeAttr("disabled");if(a=e.extend(!0,{},e.ajaxSettings,s),a.context=a.context||a,y="jqFormIO"+(new Date).getTime(),a.iframeTarget?(f=e(a.iframeTarget),g=f.attr2("name"),g?y=g:f.attr2("name",y)):(f=e('<iframe name="'+y+'" src="'+a.iframeSrc+'" />'),f.css({position:"absolute",top:"-1000px",left:"-1000px"})),m=f[0],r={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(n){var s="timeout"===n?"timeout":"aborted";t("aborting upload... "+s),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch{}f.attr("src",a.iframeSrc),r.error=s,a.error&&a.error.call(a.context,r,s,n),p&&e.event.trigger("ajaxError",[r,a,s]),a.complete&&a.complete.call(a.context,r,s)}},p=a.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[r,a]),a.beforeSend&&a.beforeSend.call(a.context,r,a)===!1)return a.global&&e.active--,h.reject(),h;if(r.aborted)return h.reject(),h;b=d.clk,b&&(g=b.name,g&&!b.disabled&&(a.extraData=a.extraData||{},a.extraData[g]=b.value,"image"==b.type&&(a.extraData[g+".x"]=d.clk_x,a.extraData[g+".y"]=d.clk_y)));var a,r,d,h,m,f,p,g,b,j,y,_,O,x,E=1,w=2,k=e("meta[name=csrf-token]").attr("content"),C=e("meta[name=csrf-param]").attr("content");C&&k&&(a.extraData=a.extraData||{},a.extraData[C]=k),a.forceSync?M():setTimeout(M,10);var c,S,F,T=50,z=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},D=e.parseJSON||function(e){return window.eval("("+e+")")},N=function(t,n,s){var i=t.getResponseHeader("content-type")||"",a="xml"===n||!n&&i.indexOf("xml")>=0,o=a?t.responseXML:t.responseText;return a&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),s&&s.dataFilter&&(o=s.dataFilter(o,n)),"string"==typeof o&&("json"===n||!n&&i.indexOf("json")>=0?o=D(o):("script"===n||!n&&i.indexOf("javascript")>=0)&&e.globalEval(o)),o};return h}if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(o=this,"function"==typeof s?s={success:s}:void 0===s&&(s={}),l=s.type||this.attr2("method"),v=s.url||this.attr2("action"),a="string"==typeof v?e.trim(v):"",a=a||window.location.href||"",a&&(a=(a.match(/^([^#]+)/)||[])[1]),s=e.extend(!0,{url:a,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s),h={},this.trigger("form-pre-serialize",[this,s,h]),h.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(s.beforeSerialize&&s.beforeSerialize(this,s)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(m=s.traditional,void 0===m&&(m=e.ajaxSettings.traditional),u=[],c=this.formToArray(s.semantic,u),s.data&&(s.extraData=s.data,f=e.param(s.data,m)),s.beforeSubmit&&s.beforeSubmit(c,this,s)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[c,this,s,h]),h.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;d=e.param(c,m),f&&(d=d?d+"&"+f:f),"GET"==s.type.toUpperCase()?(s.url+=(s.url.indexOf("?")>=0?"&":"?")+d,s.data=null):s.data=d,r=[],s.resetForm&&r.push(function(){o.resetForm()}),s.clearForm&&r.push(function(){o.clearForm(s.includeHidden)}),!s.dataType&&s.target?(j=s.success||function(){},r.push(function(t){var n=s.replaceTarget?"replaceWith":"html";e(s.target)[n](t).each(j,arguments)})):s.success&&r.push(s.success),(s.success=function(e,t,n){for(var a=s.context||this,i=0,c=r.length;c>i;i++)r[i].apply(a,[e,t,n||o,o])},s.error)&&(y=s.error,s.error=function(e,t,n){var i=s.context||this;y.apply(i,[e,t,n,o])}),s.complete&&(_=s.complete,s.complete=function(e,t){var n=s.context||this;_.apply(n,[e,t,o])});var o,a,r,c,l,d,u,h,m,f,p,g,v,j,y,_,C,k=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=k.length>0,O="multipart/form-data",x=o.attr("enctype")==O||o.attr("encoding")==O,b=n.fileapi&&n.formdata;t("fileAPI :"+b),C=(w||x)&&!b,s.iframe!==!1&&(s.iframe||C)?s.closeKeepAlive?e.get(s.closeKeepAlive,function(){g=E(c)}):g=E(c):g=(w||x)&&b?A(c):e.ajax(s),o.removeData("jqxhr").data("jqxhr",g);for(p=0;p<u.length;p++)u[p]=null;return this.trigger("form-submit-notify",[this,s]),this},e.fn.ajaxForm=function(n){if(n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var i={s:this.selector,c:this.context};return!e.isReady&&i.s?(t("DOM not ready, queuing ajaxForm"),e(function(){e(i.s,i.c).ajaxForm(n)}),this):(t("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,s).off("click.form-plugin",this.selector,o).on("submit.form-plugin",this.selector,n,s).on("click.form-plugin",this.selector,n,o),this):this.ajaxFormUnbind().bind("submit.form-plugin",n,s).bind("click.form-plugin",n,o)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,s){if(a=[],0===this.length)return a;var o,i,a,l,d,u,h,m,f,p,v,b,r=this[0],g=this.attr("id"),c=t?r.getElementsByTagName("*"):r.elements;if(c&&!/MSIE [678]/.test(navigator.userAgent)&&(c=e(c).get()),g&&(f=e(':input[form="'+g+'"]').get(),f.length&&(c=(c||[]).concat(f))),!c||!c.length)return a;for(u=0,v=c.length;v>u;u++)if(o=c[u],i=o.name,i&&!o.disabled)if(t&&r.clk&&"image"==o.type)r.clk==o&&(a.push({name:i,value:e(o).val(),type:o.type}),a.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}));else if(d=e.fieldValue(o,!0),d&&d.constructor==Array)for(s&&s.push(o),l=0,b=d.length;b>l;l++)a.push({name:i,value:d[l]});else if(n.fileapi&&"file"==o.type)if(s&&s.push(o),h=o.files,h.length)for(l=0;l<h.length;l++)a.push({name:i,value:h[l],type:o.type});else a.push({name:i,value:"",type:o.type});else null!==d&&"undefined"!=typeof d&&(s&&s.push(o),a.push({name:i,value:d,type:o.type,required:o.required}));return!t&&r.clk&&(p=e(r.clk),m=p[0],i=m.name,i&&!m.disabled&&"image"==m.type&&(a.push({name:i,value:p.val()}),a.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}))),a},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var n=[];return this.each(function(){if(o=this.name,o)if(s=e.fieldValue(this,t),s&&s.constructor==Array)for(var s,o,i=0,a=s.length;a>i;i++)n.push({name:o,value:s[i]});else null!==s&&"undefined"!=typeof s&&n.push({name:this.name,value:s})}),e.param(n)},e.fn.fieldValue=function(t){for(var n,i,s=[],o=0,a=this.length;a>o;o++)i=this[o],n=e.fieldValue(i,t),null===n||"undefined"==typeof n||n.constructor==Array&&!n.length||(n.constructor==Array?e.merge(s,n):s.push(n));return s},e.fieldValue=function(t,n){var h=t.name,o=t.type,l=t.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!h||t.disabled||"reset"==o||"button"==o||("checkbox"==o||"radio"==o)&&!t.checked||("submit"==o||"image"==o)&&t.form&&t.form.clk!=t||"select"==l&&-1==t.selectedIndex))return null;if("select"==l){if(a=t.selectedIndex,0>a)return null;for(var s,i,a,d=[],u=t.options,r="select-one"==o,m=r?a+1:u.length,c=r?a:0;m>c;c++)if(s=u[c],s.selected){if(i=s.value,i||(i=s.attributes&&s.attributes.value&&!s.attributes.value.specified?s.text:s.value),r)return i;d.push(i)}return d}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var s=this.type,o=this.tagName.toLowerCase();n.test(s)||"textarea"==o?this.value="":"checkbox"==s||"radio"==s?this.checked=!1:"select"==o?this.selectedIndex=-1:"file"==s?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(s)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var n,s=this.type;"checkbox"==s||"radio"==s?this.checked=t:"option"==this.tagName.toLowerCase()&&(n=e(this).parent("select"),t&&n[0]&&"select-one"==n[0].type&&n.find("option").selected(!1),this.selected=t)})},e.fn.ajaxSubmit.debug=!1}),function(){!function(e,t,n){var s,o;return s="ontouchstart"in n,o=function(){function o(n,s){this.$element=e(n),this.options=e.extend(!0,{},this.Defaults,s),this.setClientOptions(this),this.createDOM(this),this.$pointer=e(n).find(".rd-range__pointer-1"),this.options.tooltip&&(this.$pointerTooltip=this.$pointer.find(".rd-range__pointer-tooltip"),this.$element.addClass("hasTooltip")),this.$line=e(n).find(".rd-range__line"),null!=e(n).attr("data-input")?this.$input=e(e(n).attr("data-input")):this.$input=e(this.Defaults.inputClassName),this.range&&(this.$pointer2=e(n).find(".rd-range__pointer-2"),null!=e(n).attr("data-input-2")?this.$input2=e(e(n).attr("data-input-2")):this.$input2=e(this.Defaults.inputClassName2),this.options.tooltip&&(this.$pointerTooltip2=this.$pointer2.find(".rd-range__pointer-tooltip"))),this.$doc=e(t),this.isMove=!1,this.initialization()}return o.prototype.Defaults={min:0,start:0,max:100,start2:0,step:1,minDiff:0,inputClassName:".rd-range-input-value",inputClassName2:".rd-range-input-value-2",tooltip:!1,callbacks:{onInit:!1,onChange:!1,onInputChange:!1,onMoveStart:!1,onMoveEnd:!1}},o.prototype.initialization=function(){var e;return e=this,e.setRange(e),e.applyHandlers(e),e.options.callbacks.onInit&&e.options.callbacks.onInit.call(this,e),e},o.prototype.createDOM=function(e){var t='<div class="rd-range__pointer rd-range__pointer-1">';e.options.tooltip&&(t+='<div class="rd-range__pointer-tooltip"></div>'),t+="</div>",e.range&&(t+='<div class="rd-range__pointer rd-range__pointer-2">',e.options.tooltip&&(t+='<div class="rd-range__pointer-tooltip"></div>'),t+="</div>"),e.$element.wrapInner('<div class="rd-range__wrap">'+t+'<div class="rd-range__line"></div> </div>')},o.prototype.setClientOptions=function(e){var t={min:e.$element.attr("data-min"),max:e.$element.attr("data-max"),step:e.$element.attr("data-step"),start:e.$element.data("start"),minDiff:e.$element.attr("data-min-diff"),precision:e.$element.attr("data-precision"),tooltip:e.$element.attr("data-tooltip")};e.options.start=[],(null!=t.start&&t.start.length>1||null!=e.options.start&&e.options.start.length>1)&&(e.range=!0),null!=t.min&&(e.options.min=Number(t.min)),null!=t.max&&(e.options.max=Number(t.max)),null!=t.start?e.options.start=t.start:e.options.start.push(e.options.min),e.currentValue=e.options.start[0],null!=t.step&&(e.options.step=Number(t.step)),null!=t.tooltip&&(e.options.tooltip=t.tooltip),null!=t.precision?e.options.precision=e.getNumDigitsAfterDecimalPlace(Number(t.precision)):e.options.precision=e.getNumDigitsAfterDecimalPlace(e.options.step),e.range&&(e.currentValue2=e.options.start[1],null!=t.minDiff?e.options.minDiff=Number(t.minDiff):null!=e.options.minDiff&&(e.options.minDiff=e.options.step))},o.prototype.setRange=function(e){return e.diff=e.options.max-e.options.min,e.delta=100*e.options.step/e.diff,e.currentPercentage=e.getPercentageByValue(e,e.currentValue),e.updatePointer1(e,e.currentPercentage,e.currentValue),e.range?(e.currentPercentage2=e.getPercentageByValue(e,e.currentValue2),e.updatePointer2(e,e.currentPercentage2,e.currentValue2)):void 0},o.prototype.applyHandlers=function(t){return t.$pointer.on(s?"touchstart":"mousedown",function(n){var o,i,a,r;if(!t.isMove)return t.isMove=!0,a=e(this),a.addClass("active"),o="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,r=t.getCoords(t.$element),i=t.getPercentage(t,o,r.left),t.options.callbacks.onMoveStart&&t.options.callbacks.onMoveStart.call(this,t),t.$doc.on(s?"touchmove":"mousemove",function(e){var n;return o="touchmove"===e.type?e.originalEvent.targetTouches[0].pageX:e.pageX,n=t.getPercentage(t,o,r.left),n!==i?(i=n,t.currentValue=t.getCurrentValue(t,i),t.range&&t.currentValue>=t.currentValue2-t.options.minDiff&&(n=t.checkPointer1Bounds(t)),t.updatePointer1(t,n,t.currentValue)):void 0}).on(s?"touchend":"mouseup",function(e){return setTimeout(function(){return t.isMove=!1},100),a.removeClass("active"),t.options.callbacks.onMoveEnd&&t.options.callbacks.onMoveEnd.call(this,t),s?t.$doc.off("touchmove"):t.$doc.off("mousemove"),t.$doc.off(e.type)}),!1}),"hidden"!==t.$input.attr("type")&&"readonly"!==t.$input.attr("readOnly")&&t.$input.on("keypress",function(e){return t.isAllowTyped(e.which)}).on("change",function(){var s;return s=Math.abs(Number(e(this).val())),t.range&&(s>=t.currentValue2||s>t.currentValue2-t.options.minDiff)&&(t.checkPointer1Bounds(t),s=t.currentValue),s<t.options.min&&(s=t.options.min),t.currentValue=s,t.setRange(t),t.options.callbacks.onInputChange?t.options.callbacks.onInputChange.call(this,t):void 0}),t.range&&(t.$pointer2.on(s?"touchstart":"mousedown",function(n){var o,i,a,r;if(!t.isMove)return t.isMove=!0,i=e(this),i.addClass("active"),o="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,a=t.getCoords(t.$element),r=t.getPercentage(t,o,a.left),t.options.callbacks.onMoveStart&&t.options.callbacks.onMoveStart.call(this,t),t.$doc.on(s?"touchmove":"mousemove",function(e){var n;return o="touchmove"===e.type?e.originalEvent.targetTouches[0].pageX:e.pageX,n=t.getPercentage(t,o,a.left),n!==r?(r=n,t.currentValue2=t.getCurrentValue(t,n),t.range&&t.currentValue2<=t.currentValue+t.options.minDiff&&(n=t.checkPointer2Bounds(t)),t.updatePointer2(t,n,t.currentValue2)):void 0}).on(s?"touchend":"mouseup",function(e){return setTimeout(function(){return t.isMove=!1},100),i.removeClass("active"),t.options.callbacks.onMoveEnd&&t.options.callbacks.onMoveEnd.call(this,t),s?t.$doc.off("touchmove"):t.$doc.off("mousemove"),t.$doc.off(e.type)}),!1}),"hidden"!==t.$input2.attr("type")&&"readonly"!==t.$input2.attr("readOnly")&&t.$input2.on("keypress",function(e){return t.isAllowTyped(e.which)}).on("change",function(){var s;return s=Math.abs(Number(e(this).val())),(s<=t.currentValue||s<t.currentValue+t.options.minDiff)&&(t.checkPointer2Bounds(t),s=t.currentValue2),s>t.options.max&&(s=t.options.max),t.currentValue2=s,t.setRange(t),t.options.callbacks.onInputChange?t.options.callbacks.onInputChange.call(this,t):void 0})),t.$element.on("click",function(e){var n,s,o,i,a,r;if(!t.isMove)return r="touch"===e.type?e.originalEvent.targetTouches[0].pageX:e.pageX,a=t.getCoords(t.$element),n=t.getPercentage(t,r,a.left),s=t.getCurrentValue(t,n),t.range&&(o=Math.abs(+(n-t.currentPercentage)),i=Math.abs(+(n-t.currentPercentage2)),o>i)?(s<=t.currentValue+t.options.minDiff&&(n=t.checkPointer2Bounds(t),s=t.getCurrentValue(t,n)),t.updatePointer2(t,n,s),!1):(s>=t.currentValue2-t.options.minDiff&&(n=t.checkPointer1Bounds(t),s=t.getCurrentValue(t,n)),t.updatePointer1(t,n,s),!1)})},o.prototype.updatePointer1=function(e,t,n){e.currentPercentage=t,e.currentValue=n,e.updatePositions(e,e.$pointer,e.currentPercentage),e.updateValue(e),e.options.tooltip&&e.$pointerTooltip.html(e.currentValue)},o.prototype.updatePointer2=function(e,t,n){e.currentPercentage2=t,e.currentValue2=n,e.updatePositions(e,e.$pointer2,e.currentPercentage2),e.updateValue(e),e.options.tooltip&&e.$pointerTooltip2.html(e.currentValue2)},o.prototype.updateValue=function(e){e.options.callbacks.onChange&&e.options.callbacks.onChange.call(this,e),e.range&&(e.$input2.is("input")?e.$input2.val(e.currentValue2):e.$input2.html(e.currentValue2)),e.$input.is("input")?e.$input.val(e.currentValue):e.$input.html(e.currentValue)},o.prototype.checkPointer1Bounds=function(e){return e.currentValue=e.currentValue2-e.options.minDiff,e.getPercentageByValue(e,e.currentValue)},o.prototype.checkPointer2Bounds=function(e){return e.currentValue2=e.currentValue+e.options.minDiff,e.getPercentageByValue(e,e.currentValue2)},o.prototype.getPercentageByValue=function(e,t){return Math.round(100*(t-e.options.min)/(e.options.max-e.options.min))},o.prototype.getPercentage=function(e,t,n){var s;return s=(t-n)/e.$element.width()*100,s=Math.round(s/e.delta)*e.delta,Math.max(0,Math.min(100,s))},o.prototype.getCurrentValue=function(e,t){return+(e.options.min+Math.round(e.diff*t/100/e.options.step)*e.options.step).toFixed(e.options.precision)},o.prototype.getOffsetByPercentage=function(e,t){return e.$element.width()*t/100},o.prototype.updatePositions=function(e,t,n){var s;t.css("left",n+"%"),e.range?(s=e.currentPercentage2-e.currentPercentage,e.$line.css("left",e.currentPercentage+"%"),e.$line.css("width",s+"%")):e.$line.css("width",n+"%")},o.prototype.getCoords=function(e){return{top:e.offset().top+pageYOffset,left:e.offset().left+pageXOffset}},o.prototype.isAllowTyped=function(e){return!(9!==e&&8!==e&&0!==e&&13!==e&&46!==e&&(48>e||e>57))},o.prototype.getNumDigitsAfterDecimalPlace=function(e){var t,n;return n=""+e,t=n.indexOf("."),0>t?0:n.substr(t+1).length},e.fn.extend({RDRange:function(t){return this.each(function(){var n;return n=e(this),n.data("RDRange")?void 0:n.data("RDRange",new o(this,t))})}}),n.RDRange=o,o}()}(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDRange:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDRange})}.call(this),function(){!function(e,t,n){var s,o;return o=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isWebkit=/safari|chrome/i.test(navigator.userAgent),s=function(){function s(s,o){this.options=e.extend(!0,{},this.Defaults,o),this.$element=e(s).addClass("rd-input-label"),this.$target=e("#"+this.$element.attr("for")),this.$win=e(n),this.$doc=e(t),this.initialize()}return s.prototype.Defaults={callbacks:null},s.prototype.initialize=function(){return this.$target.on("input",e.proxy(this.change,this)).on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("hover",e.proxy(this.hover,this)).parents("form").on("reset",e.proxy(this.reset,this)),this.change(),this.hover(),this},s.prototype.hover=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),this},s.prototype.change=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),""!==this.$target.val()?(this.$element.hasClass("focus")||this.focus(),this.$element.addClass("not-empty")):this.$element.removeClass("not-empty"),this},s.prototype.focus=function(){return this.$element.addClass("focus"),this},s.prototype.reset=function(){return setTimeout(e.proxy(this.blur,this)),this},s.prototype.blur=function(){return""===this.$target.val()&&this.$element.removeClass("focus").removeClass("not-empty"),this},s}(),e.fn.extend({RDInputLabel:function(t){return this.each(function(){var n;return n=e(this),n.data("RDInputLabel")?void 0:n.data("RDInputLabel",new s(this,t))})}}),n.RDInputLabel=s}(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDInputLabel:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDInputLabel})}.call(this),!function(e,t,n,s){function o(t,n){this.settings=null,this.options=e.extend({},o.Defaults,n),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,n){this._handlers[n]=e.proxy(this[n],this)},this)),e.each(o.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(o.Workers,e.proxy(function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",o=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?t:"","margin-right":n?"":t};!o&&this.$stage.children().css(s),e.css=s}},{filter:["width","items","settings"],run:function(e){var s=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,t=null,n=this._items.length,i=!this.settings.autoWidth,o=[];for(e.items={merge:!1,width:s};n--;)t=this._mergers[n],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,e.items.merge=t>1||e.items.merge,o[n]=i?s*t:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],n=this._items,s=this.settings,i=Math.max(2*s.items,4),c=2*Math.ceil(n.length/2),a=s.loop&&n.length?s.rewind?i:Math.max(i,c):0,r="",o="";for(a/=2;a--;)t.push(this.normalize(t.length/2,!0)),r+=n[t[t.length-1]][0].outerHTML,t.push(this.normalize(n.length-1-(t.length-1)/2,!0)),o=n[t[t.length-1]][0].outerHTML+o;this._clones=t,e(r).addClass("cloned").appendTo(this.$stage),e(o).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var o=this.settings.rtl?1:-1,i=this._clones.length+this._items.length,e=-1,n=0,s=0,t=[];++e<i;)n=t[e-1]||0,s=this._widths[this.relative(e)]+this.settings.margin,t.push(n+s*o);this._coordinates=t}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,n={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,s=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],s.eq(t).css(e.css);else n&&(e.css.width=e.items.width,s.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,o,i=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,s=this.coordinates(this.current())+a,r=s+this.width()*i,c=[];for(e=0,o=this._coordinates.length;e<o;e++)t=this._coordinates[e-1]||0,n=Math.abs(this._coordinates[e])+a*i,(this.op(t,"<=",s)&&this.op(t,">",r)||this.op(n,"<",s)&&this.op(n,">",r))&&c.push(e);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+c.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],o.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t=this.$element.find("img"),n=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,o=this.$element.children(n).width();t.length&&o<=0&&this.preloadAutoWidthImages(t)}this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.setup=function(){var o=this.viewport(),s=this.options.responsive,n=-1,t=null;s?(e.each(s,function(e){e<=o&&e>n&&(n=Number(e))}),t=e.extend({},this.options,s[n]),"function"==typeof t.stagePadding&&(t.stagePadding=t.stagePadding()),delete t.responsive,t.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):t=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:t}}),this._breakpoint=n,this.settings=t,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},o.prototype.update=function(){for(var t=0,n=this._pipe.length,s=e.proxy(function(e){return this[e]},this._invalidated),o={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,s).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},o.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var s=null;3!==t.which&&(e.support.transform?(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),s={x:s[16===s.length?12:4],y:s[16===s.length?13:5]}):(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(e.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(t),e(n).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(n).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var s=this.difference(this._drag.pointer,this.pointer(t));e(n).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(e){var t=null,n=null,o=null,i=this.difference(this._drag.pointer,this.pointer(e)),s=this.difference(this._drag.stage.start,i);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,s.x=((s.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),o=this.settings.pullDrag?-1*i.x/5:0,s.x=Math.max(Math.min(s.x,t+o),n+o)),this._drag.stage.current=s,this.animate(s.x))},o.prototype.onDragEnd=function(t){var s=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";e(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,n){var s=-1,o=30,a=this.width(),i=this.coordinates();return this.settings.freeDrag||e.each(i,e.proxy(function(e,r){return"left"===n&&t>r-o&&t<r+o?s=e:"right"===n&&t>r-a-o&&t<r-a+o?s=e+1:this.op(t,"<",r)&&this.op(t,">",i[e+1]||r-a)&&(s="left"===n?e+1:e),s===-1},this)),this.settings.loop||(this.op(t,">",i[this.minimum()])?s=t=this.minimum():this.op(t,"<",i[this.maximum()])&&(s=t=this.maximum())),s},o.prototype.animate=function(t){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):n?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},o.prototype.current=function(e){if(e===s)return this._current;if(0===this._items.length)return s;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==s&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},o.prototype.reset=function(e){e=this.normalize(e),e!==s&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(e,t){var n=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=s:(e<0||e>=n+o)&&(e=((e-o/2)%n+n)%n+o/2),e},o.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,o,i,n=this.settings,s=this._coordinates.length;if(n.loop)s=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){for(t=this._items.length,o=this._items[--t].width(),i=this.$element.width();t--&&(o+=this._items[t].width()+this.settings.margin,!(o>i)););s=t+1}else s=n.center?this._items.length-1:this._items.length-n.items;return e&&(s-=this._clones.length/2),Math.max(s,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===s?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===s?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var n=this._clones.length/2,i=n+this._items.length,o=function(e){return e%2===0?i+e/2:n-(e+1)/2};return t===s?e.map(this._clones,function(e,t){return o(t)}):e.map(this._clones,function(e,n){return e===t?o(n):null})},o.prototype.speed=function(e){return e!==s&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var n,i=1,o=t-1;return t===s?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,o=t+1),n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[o]||0))/2*i):n=this._coordinates[o]||0,n=Math.ceil(n))},o.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},o.prototype.to=function(e,t){var i=this.current(),s=null,n=e-this.relative(i),c=(n>0)-(n<0),a=this._items.length,r=this.minimum(),o=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>a/2&&(n+=c*-1*a),e=i+n,s=((e-r)%a+a)%a+r,s!==e&&s-n<=o&&s-n>0&&(i=s-n,e=s,this.reset(i))):this.settings.rewind?(o+=1,e=(e%o+o)%o):e=Math.max(r,Math.min(o,e)),this.speed(this.duration(i,e,t)),this.current(e),this.$element.is(":visible")&&this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.onTransitionEnd=function(e){if(e!==s&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==t?s=e(this.options.responsiveBaseElement).width():t.innerWidth?s=t.innerWidth:n.documentElement&&n.documentElement.clientWidth?s=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,n){var o=this.relative(this._current);n=n===s?this._items.length:this.normalize(n,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:n}),t=this.prepare(t),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[n-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(t),this._items.splice(n,0,t),this._mergers.splice(n,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[o]&&this.reset(this._items[o].index()),this.invalidate("items"),this.trigger("added",{content:t,position:n})},o.prototype.remove=function(e){e=this.normalize(e,!0),e!==s&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,n){this.enter("pre-loading"),n=e(n),e(new Image).one("load",e.proxy(function(e){n.attr("src",e.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))},this))},o.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(n).off(".owl.core"),this.settings.responsive!==!1&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize));for(var s in this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(e,t,n){var s=this.settings.rtl;switch(t){case"<":return s?e>n:e<n;case">":return s?e<n:e>n;case">=":return s?e<=n:e>=n;case"<=":return s?e>=n:e<=n}},o.prototype.on=function(e,t,n,s){e.addEventListener?e.addEventListener(t,n,s):e.attachEvent&&e.attachEvent("on"+t,n)},o.prototype.off=function(e,t,n,s){e.removeEventListener?e.removeEventListener(t,n,s):e.detachEvent&&e.detachEvent("on"+t,n)},o.prototype.trigger=function(t,n,s){var l={item:{count:this._items.length,index:this.current()}},c=e.camelCase(e.grep(["on",t,s],function(e){return e}).join("-").toLowerCase()),r=e.Event([t,"owl",s||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},l,n));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(r)}),this.register({type:o.Type.Event,name:t}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[c]&&this.settings[c].call(this,r)),r},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===s&&(this._states.current[t]=0),this._states.current[t]++},this))},o.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var n=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!n||!n.apply||e.namespace&&e.namespace.indexOf("owl")!==-1?e.namespace&&e.namespace.indexOf("owl")>-1:n.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(n,s){return e.inArray(n,this._states.tags[t.name])===s},this)))},o.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},o.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},o.prototype.pointer=function(e){var n={x:null,y:null};return e=e.originalEvent||e||t.event,e=e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e.pageX?(n.x=e.pageX,n.y=e.pageY):(n.x=e.clientX,n.y=e.clientY),n},o.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},o.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=e(this),s=i.data("owl.carousel");s||(s=new o(this,"object"==typeof t&&t),i.data("owl.carousel",s),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,n){s.register({type:o.Type.Event,name:n}),s.$element.on(n+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([n]),s[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},s))})),"string"==typeof t&&"_"!==t.charAt(0)&&s[t].apply(s,n)})},e.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(e,t){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var e,n;t.clearInterval(this._interval);for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,s){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,a=n.center&&i*-1||0,o=(t.property&&t.property.value!==s?t.property.value:this._core.current())+a,r=this._core.clones().length,c=e.proxy(function(e,t){this.load(t)},this);a++<i;)this.load(r/2+this._core.relative(o)),r&&e.each(this._core.clones(this._core.relative(o)),c),o++},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1},o.prototype.load=function(n){var s=this._core.$stage.children().eq(n),o=s&&s.find(".owl-lazy");!o||e.inArray(s.get(0),this._loaded)>-1||(o.each(e.proxy(function(n,s){var a,o=e(s),i=t.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:i},"lazy"),o.is("img")?o.one("load.owl.lazy",e.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:i},"lazy")},this)).attr("src",i):(a=new Image,a.onload=e.proxy(function(){o.css({"background-image":'url("'+i+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:i},"lazy")},this),a.src=i)},this)),this._loaded.push(s.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e){var o=function(t){this._core=t,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,o=t+this._core.settings.items,i=this._core.$stage.children().toArray().slice(t,o),n=[],s=0;e.each(i,function(t,s){n.push(e(s).height())}),s=Math.max.apply(null,n),this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,n){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var o=function(){return e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),i=e.attr("data-width")||this._core.settings.videoWidth,a=e.attr("data-height")||this._core.settings.videoHeight,s=e.attr("href");if(!s)throw new Error("Missing video URL.");if(n=s.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/),n[3].indexOf("youtu")>-1)o="youtube";else if(n[3].indexOf("vimeo")>-1)o="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");o="vzaar"}n=n[6],this._videos[s]={type:o,id:n,width:i,height:a},t.attr("data-video",s),this.thumbnail(e,this._videos[s])},o.prototype.thumbnail=function(t,n){var s,r,c,d=n.width&&n.height?'style="width:'+n.width+"px;height:"+n.height+'px;"':"",i=t.find("img"),a="src",l="",u=this._core.settings,o=function(e){c='<div class="owl-video-play-icon"></div>',r=u.lazyLoad?'<div class="owl-video-tn '+l+'" '+a+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(r),t.after(c)};if(t.wrap('<div class="owl-video-wrapper"'+d+"></div>"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),i.length)return o(i.attr(a)),i.remove(),!1;"youtube"===n.type?(s="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",o(s)):"vimeo"===n.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){s=e[0].thumbnail_large,o(s)}}):"vzaar"===n.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){s=e.framegrab_url,o(s)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var o,r=e(t.target),s=r.closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],i=n.width||"100%",a=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),"youtube"===n.type?o='<iframe width="'+i+'" height="'+a+'" src="//www.youtube.com/embed/'+n.id+"?autoplay=1&rel=0&v="+n.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===n.type?o='<iframe src="//player.vimeo.com/video/'+n.id+'?autoplay=1" width="'+i+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===n.type&&(o='<iframe frameborder="0"height="'+a+'"width="'+i+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+n.id+'/player?autoplay=true"></iframe>'),e('<div class="owl-video-frame">'+o+"</div>").insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;this._core.$element.off("click.owl.video");for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,s){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,n=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),a=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(e.support.animation.end,n).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&a.one(e.support.animation.end,n).addClass("animated owl-animated-in").addClass(s))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,n){var o=function(t){this._core=t,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.play=function(){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},o.prototype._getNextTimeout=function(s,o){return this._timeout&&t.clearTimeout(this._timeout),t.setTimeout(e.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||n.hidden||this._core.next(o||this._core.settings.autoplaySpeed)},this),s||this._core.settings.autoplayTimeout)},o.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},o.prototype.stop=function(){this._core.is("rotating")&&(t.clearTimeout(this._timeout),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},o.prototype.destroy=function(){var e,t;this.stop();for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e){"use strict";var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var n,t=this._core.settings;this._controls.$relative=(t.navContainer?e(t.navContainer):e("<div>").addClass(t.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+t.navElement+">").addClass(t.navClass[0]).html(t.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(){this.prev(t.navSpeed)},this)),this._controls.$next=e("<"+t.navElement+">").addClass(t.navClass[1]).html(t.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(){this.next(t.navSpeed)},this)),t.dotsData||(this._templates=[e("<div>").addClass(t.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(t.dotsContainer?e(t.dotsContainer):e("<div>").addClass(t.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",e.proxy(function(n){var s=e(n.target).parent().is(this._controls.$absolute)?e(n.target).index():e(n.target).parent().index();n.preventDefault(),this.to(s,t.dotsSpeed)},this));for(n in this._overrides)this._core[n]=e.proxy(this[n],this)},o.prototype.destroy=function(){var e,t,n,s;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(s in this._controls)this._controls[s].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.prototype.update=function(){var t,n,i,s=this._core.clones().length/2,r=s+this._core.items().length,o=this._core.maximum(!0),e=this._core.settings,a=e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items;if("page"!==e.slideBy&&(e.slideBy=Math.min(e.slideBy,e.items)),e.dots||"page"==e.slideBy)for(this._pages=[],t=s,n=0,i=0;t<r;t++){if(n>=a||0===n){if(this._pages.push({start:Math.min(o,t-s),end:t-s+a-1}),Math.min(o,t-s)===o)break;n=0,++i}n+=this._core.mergers(this._core.relative(t))}},o.prototype.draw=function(){var n,t=this._core.settings,s=this._core.items().length<=t.items,o=this._core.relative(this._core.current()),i=t.loop||t.rewind;this._controls.$relative.toggleClass("disabled",!t.nav||s),t.nav&&(this._controls.$previous.toggleClass("disabled",!i&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!i&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!t.dots||s),t.dots&&(n=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!==n?this._controls.$absolute.html(this._templates.join("")):n>0?this._controls.$absolute.append(new Array(n+1).join(this._templates[0])):n<0&&this._controls.$absolute.children().slice(n).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var n=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e){return e.start<=t&&e.end>=t},this)).pop()},o.prototype.getPosition=function(t){var n,s,o=this._core.settings;return"page"==o.slideBy?(n=e.inArray(this.current(),this._pages),s=this._pages.length,t?++n:--n,n=this._pages[(n%s+s)%s].start):(n=this._core.relative(this._core.current()),s=this._core.items().length,t?n+=o.slideBy:n-=o.slideBy),n},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,n,s){var o;!s&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,n)):e.proxy(this._overrides.to,this._core)(t,n)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,s){"use strict";var o=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!n)return;this._hashes[n]=t.content}},this),"changed.owl.carousel":e.proxy(function(n){if(n.namespace&&"position"===n.property.name){var o=this._core.items(this._core.relative(this._core.current())),s=e.map(this._hashes,function(e,t){return e===o?t:null}).join();if(!s||t.location.hash.slice(1)===s)return;t.location.hash=s}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(){var o=t.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[o]&&i.index(this._hashes[o]);n!==s&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var n,s;e(t).off("hashchange.owl.navigation");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,s){function o(t,n){var o=!1,i=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+l.join(i+" ")+i).split(" "),function(e,t){if(c[t]!==s)return o=!n||t,!1}),o}function a(e){return o(e,!0)}var c=e("<support>").get(0).style,l="Webkit Moz O ms".split(" "),r={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},i={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};i.csstransitions()&&(e.support.transition=new String(a("transition")),e.support.transition.end=r.transition.end[e.support.transition]),i.cssanimations()&&(e.support.animation=new String(a("animation")),e.support.animation.end=r.animation.end[e.support.animation]),i.csstransforms()&&(e.support.transform=new String(a("transform")),e.support.transform3d=i.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(){var e="ontouchstart"in window;(function(t,n,s){var o=function(){function o(e,o){this.options=t.extend(!0,{},this.Defaults,o),this.$element=t(e),this.$clone=null,this.$win=t(s),this.$doc=t(n),this.currentLayout=this.options.layout,this.loaded=!1,this.focusOnHover=this.options.focusOnHover,this.focusTimer=!1,this.cloneTimer=!1,this.isStuck=!1,this.initialize()}return o.prototype.Defaults={layout:"rd-navbar-static",deviceLayout:"rd-navbar-fixed",focusOnHover:!0,focusOnHoverTimeout:800,linkedElements:["html"],domAppend:!0,stickUp:!0,stickUpClone:!0,stickUpOffset:"100%",anchorNav:!0,anchorNavSpeed:400,anchorNavOffset:0,anchorNavEasing:"swing",autoHeight:!0,responsive:{0:{layout:"rd-navbar-fixed",deviceLayout:"rd-navbar-fixed",focusOnHover:!1,stickUp:!1},992:{layout:"rd-navbar-static",deviceLayout:"rd-navbar-static",focusOnHover:!0,stickUp:!0}},callbacks:{onToggleSwitch:!1,onToggleClose:!1,onDomAppend:!1,onDropdownOver:!1,onDropdownOut:!1,onDropdownToggle:!1,onDropdownClose:!1,onStuck:!1,onUnstuck:!1,onAnchorChange:!1}},o.prototype.initialize=function(){var t;return(t=this).$element.addClass("rd-navbar").addClass(t.options.layout),e&&t.$element.addClass("rd-navbar--is-touch"),t.options.domAppend&&t.createNav(t),t.options.stickUpClone&&t.createClone(t),t.$element.addClass("rd-navbar-original"),t.addAdditionalClassToToggles(".rd-navbar-original","toggle-original","toggle-original-elements"),t.applyHandlers(t),t.offset=t.$element.offset().top,t.height=t.$element.outerHeight(),t.loaded=!0,t},o.prototype.resize=function(n){var o,i;return o=e?n.getOption("deviceLayout"):n.getOption("layout"),i=n.$element.add(n.$clone),o===n.currentLayout&&n.loaded||(n.switchClass(i,n.currentLayout,o),null!=n.options.linkedElements&&t.grep(n.options.linkedElements,function(e){return n.switchClass(e,n.currentLayout+"-linked",o+"-linked")}),n.currentLayout=o),n.focusOnHover=n.getOption("focusOnHover"),n},o.prototype.stickUp=function(e,n){function c(){"resize"===n.type?e.switchClass(o,"","rd-navbar--is-stuck"):o.addClass("rd-navbar--is-stuck"),e.isStuck=!0}var s,o,i,a,r;return r=e.getOption("stickUp"),(t("html").hasClass("ios")||e.$element.hasClass("rd-navbar-fixed"))&&(r=!1),i=e.$doc.scrollTop(),o=null!=e.$clone?e.$clone:e.$element,s=e.getOption("stickUpOffset"),a="string"==typeof s?s.indexOf("%")>0?parseFloat(s)*e.height/100:parseFloat(s):s,r?(i>=a&&!e.isStuck||i<a&&e.isStuck)&&(e.$element.add(e.$clone).find("[data-rd-navbar-toggle]").each(function(){t.proxy(e.closeToggle,this)(e,!1)}).end().find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),i>=a&&!e.isStuck&&!e.$element.hasClass("rd-navbar-fixed")?(e.options.callbacks.onStuck&&e.options.callbacks.onStuck.call(e),navigator.platform.match(/(Mac)/i)?setTimeout(c,10):c()):("resize"===n.type?e.switchClass(o,"rd-navbar--is-stuck",""):o.removeClass("rd-navbar--is-stuck").one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",t.proxy(e.resizeWrap,e,n)),e.isStuck=!1,e.options.callbacks.onUnstuck&&e.options.callbacks.onUnstuck.call(e))):(e.$element.find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),e.isStuck&&(e.switchClass(o,"rd-navbar--is-stuck",""),e.isStuck=!1,e.resizeWrap(n))),e},o.prototype.resizeWrap=function(e){var t,n;if(null==(t=this).$clone&&!t.isStuck)return n=t.$element.parent(),t.getOption("autoHeight")?(t.height=t.$element.outerHeight(),"resize"===e.type?(n.addClass("rd-navbar--no-transition").css("height",t.height),n[0].offsetHeight,n.removeClass("rd-navbar--no-transition")):n.css("height",t.height)):void n.css("height","auto")},o.prototype.createNav=function(e){return e.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var e;return e=t(this),this.getBoundingClientRect(),e.hasClass("rd-navbar-megamenu")?e.parent().addClass("rd-navbar--has-megamenu"):e.parent().addClass("rd-navbar--has-dropdown")}).parents("li").addClass("rd-navbar-submenu"),t('<span class="rd-navbar-submenu-toggle"></span>').insertAfter(".rd-navbar-nav li.rd-navbar-submenu > a"),e.options.callbacks.onDomAppend&&e.options.callbacks.onDomAppend.call(this),e},o.prototype.createClone=function(e){return e.$clone=e.$element.clone().insertAfter(e.$element).addClass("rd-navbar--is-clone"),e.addAdditionalClassToToggles(".rd-navbar--is-clone","toggle-cloned","toggle-cloned-elements"),e},o.prototype.closeToggle=function(e,n){var s,o,i,a,r,c,l;return s=t(n.target),o=!1,r=this.getAttribute("data-rd-navbar-toggle"),e.options.stickUpClone&&e.isStuck?(a=".toggle-cloned",i=".toggle-cloned-elements",c=!s.hasClass("toggle-cloned")):(a=".toggle-original",i=".toggle-original-elements",c=!s.hasClass("toggle-original")),n.target!==this&&!s.parents(a+"[data-rd-navbar-toggle]").length&&!s.parents(i).length&&r&&c&&((l=t(this).parents("body").find(r).add(t(this).parents(".rd-navbar")[0])).each(function(){if(!o)return o=!0===(n.target===this||t.contains(this,n.target))}),o||(l.add(this).removeClass("active"),e.options.callbacks.onToggleClose&&e.options.callbacks.onToggleClose.call(this,e))),this},o.prototype.switchToggle=function(e,n){var s,o,i;return n.preventDefault(),t(this).hasClass("toggle-cloned")?(s=".rd-navbar--is-clone",o=".toggle-cloned-elements"):(s=".rd-navbar-original",o=".toggle-original-elements"),(i=this.getAttribute("data-rd-navbar-toggle"))&&(t(s+" [data-rd-navbar-toggle]").not(this).each(function(){var e;if(e=this.getAttribute("data-rd-navbar-toggle"))return t(this).parents("body").find(s+" "+e+o).add(this).add(t.inArray(".rd-navbar",e.split(/\s*,\s*/i))>-1&&t(this).parents("body")[0]).removeClass("active")}),t(this).parents("body").find(s+" "+i+o).add(this).add(t.inArray(".rd-navbar",i.split(/\s*,\s*/i))>-1&&t(this).parents(".rd-navbar")[0]).toggleClass("active")),e.options.callbacks.onToggleSwitch&&e.options.callbacks.onToggleSwitch.call(this,e),this},o.prototype.dropdownOver=function(e,n){var s;if(e.focusOnHover){if(s=t(this),clearTimeout(n),e.options.callbacks.onDropdownOver&&!e.options.callbacks.onDropdownOver.call(this,e))return this;s.addClass("focus").siblings().removeClass("opened").each(e.dropdownUnfocus)}return this},o.prototype.dropdownTouch=function(e,n){var s,o;if(s=t(this),clearTimeout(n),e.focusOnHover){if(o=!1,s.hasClass("focus")&&(o=!0),!o)return s.addClass("focus").siblings().removeClass("opened").each(e.dropdownUnfocus),!1;e.options.callbacks.onDropdownOver&&e.options.callbacks.onDropdownOver.call(this,e)}return this},o.prototype.dropdownOut=function(e,n){return e.focusOnHover&&(t(this).one("mouseenter.navbar",function(){return clearTimeout(n)}),e.options.callbacks.onDropdownOut&&e.options.callbacks.onDropdownOut.call(this,e),clearTimeout(n),n=setTimeout(t.proxy(e.dropdownUnfocus,this,e),e.options.focusOnHoverTimeout)),this},o.prototype.dropdownUnfocus=function(){return t(this).find("li.focus").add(this).removeClass("focus"),this},o.prototype.dropdownClose=function(e,n){return n.target===this||t(n.target).parents(".rd-navbar-submenu").length||(t(this).find("li.focus").add(this).removeClass("focus").removeClass("opened"),e.options.callbacks.onDropdownClose&&e.options.callbacks.onDropdownClose.call(this,e)),this},o.prototype.dropdownToggle=function(e){return t(this).toggleClass("opened").siblings().removeClass("opened"),e.options.callbacks.onDropdownToggle&&e.options.callbacks.onDropdownToggle.call(this,e),this},o.prototype.goToAnchor=function(e,n){var s,o;return o=this.hash,s=t(o),!!e.getOption("anchorNav")&&(s.length&&(n.preventDefault(),t("html, body").stop().animate({scrollTop:s.offset().top+e.getOption("anchorNavOffset")+1},e.getOption("anchorNavSpeed"),e.getOption("anchorNavEasing"),function(){return e.changeAnchor(o)})),this)},o.prototype.activateAnchor=function(){var n,s,o,i,a,r,c,l,d,u,h,m;if(n=this,o=n.$doc.scrollTop(),m=n.$win.height(),l=n.$doc.height(),h=n.getOption("anchorNavOffset"),!n.options.anchorNav)return!1;if(o+m>l-50)return(s=t('[data-type="anchor"]').last()).length&&s.offset().top>=o&&(i="#"+s.attr("id"),(r=t('.rd-navbar-nav a[href^="'+i+'"]').parent()).hasClass("active")||(r.addClass("active").siblings().removeClass("active"),n.options.callbacks.onAnchorChange&&n.options.callbacks.onAnchorChange.call(s[0],n))),s;a=t('.rd-navbar-nav a[href^="#"]').get();for(d in a)u=a[d],i=(c=t(u)).attr("href"),(s=t(i)).length&&s.offset().top+h<=o&&s.offset().top+s.outerHeight()>o&&(c.parent().addClass("active").siblings().removeClass("active"),n.options.callbacks.onAnchorChange&&n.options.callbacks.onAnchorChange.call(s[0],n));return null},o.prototype.getAnchor=function(){return history&&history.state?history.state.id:null},o.prototype.changeAnchor=function(e){return history&&(history.state&&history.state.id!==e?history.replaceState({anchorId:e},null,e):history.pushState({anchorId:e},null,e)),this},o.prototype.applyHandlers=function(e){return null!=e.options.responsive&&e.$win.on("resize.navbar",t.proxy(e.resize,e.$win[0],e)).on("resize.navbar",t.proxy(e.resizeWrap,e)).on("resize.navbar",t.proxy(e.stickUp,null!=e.$clone?e.$clone:e.$element,e)).on("orientationchange.navbar",t.proxy(e.resize,e.$win[0],e)).trigger("resize.navbar"),e.$doc.on("scroll.navbar",t.proxy(e.stickUp,null!=e.$clone?e.$clone:e.$element,e)).on("scroll.navbar",t.proxy(e.activateAnchor,e)),e.$element.add(e.$clone).find("[data-rd-navbar-toggle]").each(function(){var n;return(n=t(this)).on("click",t.proxy(e.switchToggle,this,e)),n.parents("body").on("click",t.proxy(e.closeToggle,this,e))}),e.$element.add(e.$clone).find(".rd-navbar-submenu").each(function(){var n,s;return n=t(this),s=n.parents(".rd-navbar--is-clone").length?e.cloneTimer:e.focusTimer,n.on("mouseleave.navbar",t.proxy(e.dropdownOut,this,e,s)),n.find("> a").on("mouseenter.navbar",t.proxy(e.dropdownOver,this,e,s)),n.find("> a").on("touchstart.navbar",t.proxy(e.dropdownTouch,this,e,s)),n.find("> .rd-navbar-submenu-toggle").on("click",t.proxy(e.dropdownToggle,this,e)),n.parents("body").on("click",t.proxy(e.dropdownClose,this,e))}),e.$element.add(e.$clone).find('.rd-navbar-nav a[href^="#"]').each(function(){return t(this).on("click",t.proxy(e.goToAnchor,this,e))}),e.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var n,e=t(this);(n=this.getBoundingClientRect()).left+e.outerWidth()>=s.innerWidth-10?this.className+=" rd-navbar-open-left":n.left-e.outerWidth()<=10&&(this.className+=" rd-navbar-open-right")}),e},o.prototype.switchClass=function(e,n,s){var o;return(o=e instanceof jQuery?e:t(e)).addClass("rd-navbar--no-transition").removeClass(n).addClass(s),o[0].offsetHeight,o.removeClass("rd-navbar--no-transition")},o.prototype.getOption=function(e){var t,n;for(t in this.options.responsive)t<=s.innerWidth&&(n=t);return null!=this.options.responsive&&null!=this.options.responsive[n][e]?this.options.responsive[n][e]:this.options[e]},o.prototype.addAdditionalClassToToggles=function(e,n,s){return t(e).find("[data-rd-navbar-toggle]").each(function(){var o;return t(this).addClass(n),o=this.getAttribute("data-rd-navbar-toggle"),t(this).parents("body").find(e).find(o).addClass(s)})},o}();t.fn.extend({RDNavbar:function(e){var n;if(!(n=t(this)).data("RDNavbar"))return n.data("RDNavbar",new o(this,e))}}),s.RDNavbar=o})(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDNavbar:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDNavbar})}.call(this),!function(e){e.fn.UItoTop=function(t){var o={text:"",min:500,scrollSpeed:800,containerID:"ui-to-top",containerClass:"ui-to-top fa fa-angle-up",easingType:"easeIn"},n=e.extend(o,t),s="#"+n.containerID;e("body").append('<a href="#" id="'+n.containerID+'" class="'+n.containerClass+'" >'+n.text+"</a>"),e(s).click(function(){return e("html, body").stop().animate({scrollTop:0},n.scrollSpeed,n.easingType),!1}),e(window).scroll(function(){var t=e(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&e(s).css({position:"absolute",top:e(window).scrollTop()+e(window).height()-50}),t>n.min?e(s).stop(!0,!0).addClass("active"):e(s).removeClass("active")})}}(jQuery),!function(e){e.fn.parallax=function(){var t=e(window).width();return this.each(function(){function o(n){var o=t<601?s.height()>0?s.height():s.children("img").height():s.height()>0?s.height():500,i=s.children("img").first(),l=i.height()-o,d=s.offset().top+o,c=s.offset().top,a=e(window).scrollTop(),r=window.innerHeight,u=(a+r-c)/(o+r),h=Math.round(l*u);n&&i.css("display","block"),d>a&&c<a+r&&i.css("transform","translate3D(-50%,"+h+"px, 0)")}var s=e(this).prepend('<div class="material-parallax parallax"><img src="images/_blank.png" alt=""></div>').find(".material-parallax");s.children("img").first().attr("src",s.parents("[data-parallax-img]").data("parallax-img")),s.children("img").one("load",function(){o(!0)}).each(function(){this.complete&&e(this).trigger("load")}),e(window).scroll(function(){t=e(window).width(),o(!1)}),e(window).resize(function(){t=e(window).width(),o(!1)})})}}(jQuery),!function(){"use strict";t=function(n,s){function _(e){return Math.floor(e)}function k(){var e=o.params.autoplay,t=o.slides.eq(o.activeIndex);t.attr("data-swiper-autoplay")&&(e=t.attr("data-swiper-autoplay")||o.params.autoplay),o.autoplayTimeoutId=setTimeout(function(){o.params.loop?(o.fixLoop(),o._slideNext(),o.emit("onAutoplay",o)):o.isEnd?s.autoplayStopOnLast?o.stopAutoplay():(o._slideTo(0),o.emit("onAutoplay",o)):(o._slideNext(),o.emit("onAutoplay",o))},e)}function S(t,n){var o,s=e(t.target);if(!s.is(n))if("string"==typeof n)s=s.parents(n);else if(n.nodeType)return s.parents().each(function(e,t){t===n&&(o=n)}),o?n:void 0;if(0!==s.length)return s[0]}function M(e,t){t=t||{};var s=window.MutationObserver||window.WebkitMutationObserver,n=new s(function(e){e.forEach(function(e){o.onResize(!0),o.emit("onObserverUpdate",o,e)})});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.observers.push(n)}function R(e){if(e.originalEvent&&(e=e.originalEvent),t=e.keyCode||e.charCode,!o.params.allowSwipeToNext&&(o.isHorizontal()&&39===t||!o.isHorizontal()&&40===t))return!1;if(!o.params.allowSwipeToPrev&&(o.isHorizontal()&&37===t||!o.isHorizontal()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){if(r=!1,o.container.parents("."+o.params.slideClass).length>0&&0===o.container.parents("."+o.params.slideActiveClass).length)return;var t,s,a,r,c,i={left:window.pageXOffset,top:window.pageYOffset},l=window.innerWidth,d=window.innerHeight,n=o.container.offset();o.rtl&&(n.left=n.left-o.container[0].scrollLeft);for(c=[[n.left,n.top],[n.left+o.width,n.top],[n.left,n.top+o.height],[n.left+o.width,n.top+o.height]],a=0;a<c.length;a++)s=c[a],s[0]>=i.left&&s[0]<=i.left+l&&s[1]>=i.top&&s[1]<=i.top+d&&(r=!0);if(!r)return}o.isHorizontal()?(37!==t&&39!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!o.rtl||37===t&&o.rtl)&&o.slideNext(),(37===t&&!o.rtl||39===t&&o.rtl)&&o.slidePrev()):(38!==t&&40!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&o.slideNext(),38===t&&o.slidePrev()),o.emit("onKeyPress",o,t)}}function P(e){var o=0,t=0,n=0,s=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(o=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(o=t,t=0),n=10*o,s=10*t,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||s)&&e.deltaMode&&(1===e.deltaMode?(n*=40,s*=40):(n*=800,s*=800)),n&&!o&&(o=n<1?-1:1),s&&!t&&(t=s<1?-1:1),{spinX:o,spinY:t,pixelX:n,pixelY:s}}function D(e){e.originalEvent&&(e=e.originalEvent);var n=0,i=o.rtl?-1:1,t=P(e);if(o.params.mousewheelForceToAxis)if(o.isHorizontal()){if(!(Math.abs(t.pixelX)>Math.abs(t.pixelY)))return;n=t.pixelX*i}else{if(!(Math.abs(t.pixelY)>Math.abs(t.pixelX)))return;n=t.pixelY}else n=Math.abs(t.pixelX)>Math.abs(t.pixelY)?-t.pixelX*i:-t.pixelY;if(0!==n){if(o.params.mousewheelInvert&&(n=-n),o.params.freeMode){{var s=o.getWrapperTranslate()+n*o.params.mousewheelSensitivity,a=o.isBeginning,r=o.isEnd;if(s>=o.minTranslate()&&(s=o.minTranslate()),s<=o.maxTranslate()&&(s=o.maxTranslate()),o.setWrapperTransition(0),o.setWrapperTranslate(s),o.updateProgress(),o.updateActiveIndex(),(!a&&o.isBeginning||!r&&o.isEnd)&&o.updateClasses(),o.params.freeModeSticky?(clearTimeout(o.mousewheel.timeout),o.mousewheel.timeout=setTimeout(function(){o.slideReset()},300)):o.params.lazyLoading&&o.lazy&&o.lazy.load(),o.emit("onScroll",o,e),o.params.autoplay&&o.params.autoplayDisableOnInteraction&&o.stopAutoplay(),0===s||s===o.maxTranslate())return}}else{if((new window.Date).getTime()-o.mousewheel.lastScrollTime>60)if(n<0)if(o.isEnd&&!o.params.loop||o.animating){if(o.params.mousewheelReleaseOnEdges)return!0}else o.slideNext(),o.emit("onScroll",o,e);else if(o.isBeginning&&!o.params.loop||o.animating){if(o.params.mousewheelReleaseOnEdges)return!0}else o.slidePrev(),o.emit("onScroll",o,e);o.mousewheel.lastScrollTime=(new window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function N(t,n){t=e(t);var r=o.rtl?-1:1,a=t.attr("data-swiper-parallax")||"0",s=t.attr("data-swiper-parallax-x"),i=t.attr("data-swiper-parallax-y");s||i?(s=s||"0",i=i||"0"):o.isHorizontal()?(s=a,i="0"):(i=a,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*n*r+"%":s*n*r+"px",i=i.indexOf("%")>=0?parseInt(i,10)*n+"%":i*n+"px",t.transform("translate3d("+s+", "+i+",0px)")}function E(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(n,s);f={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},z=s&&s.virtualTranslate,s=s||{},p={};for(a in s)if("object"!=typeof s[a]||null===s[a]||s[a].nodeType||s[a]===window||s[a]===document||"undefined"!=typeof Dom7&&s[a]instanceof Dom7||"undefined"!=typeof jQuery&&s[a]instanceof jQuery)p[a]=s[a];else{p[a]={};for(T in s[a])p[a][T]=s[a][T]}for(l in f)if(void 0===s[l])s[l]=f[l];else if("object"==typeof s[l])for(F in f[l])void 0===s[l][F]&&(s[l][F]=f[l][F]);if(o=this,o.params=s,o.originalParams=p,o.classNames=[],void 0!==e&&"undefined"!=typeof Dom7&&(e=Dom7),(void 0!==e||(e="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7))&&(o.$=e,o.currentBreakpoint=void 0,o.getActiveBreakpoint=function(){if(!o.params.breakpoints)return!1;var e,n,s=!1,t=[];for(e in o.params.breakpoints)o.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(n=0;n<t.length;n++)(e=t[n])>=window.innerWidth&&!s&&(s=e);return s||"max"},o.setBreakpoint=function(){if(e=o.getActiveBreakpoint(),e&&o.currentBreakpoint!==e){var e,n,t=e in o.params.breakpoints?o.params.breakpoints[e]:o.originalParams,s=o.params.loop&&t.slidesPerView!==o.params.slidesPerView;for(n in t)o.params[n]=t[n];o.currentBreakpoint=e,s&&o.destroyLoop&&o.reLoop(!0)}},o.params.breakpoints&&o.setBreakpoint(),o.container=e(n),0!==o.container.length)){if(o.container.length>1)return C=[],o.container.each(function(){C.push(new t(this,s))}),C;o.container[0].swiper=o,o.container.data("swiper",o),o.classNames.push(o.params.containerModifierClass+o.params.direction),o.params.freeMode&&o.classNames.push(o.params.containerModifierClass+"free-mode"),o.support.flexbox||(o.classNames.push(o.params.containerModifierClass+"no-flexbox"),o.params.slidesPerColumn=1),o.params.autoHeight&&o.classNames.push(o.params.containerModifierClass+"autoheight"),(o.params.parallax||o.params.watchSlidesVisibility)&&(o.params.watchSlidesProgress=!0),o.params.touchReleaseOnEdges&&(o.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(o.params.effect)>=0&&(o.support.transforms3d?(o.params.watchSlidesProgress=!0,o.classNames.push(o.params.containerModifierClass+"3d")):o.params.effect="slide"),"slide"!==o.params.effect&&o.classNames.push(o.params.containerModifierClass+o.params.effect),"cube"===o.params.effect&&(o.params.resistanceRatio=0,o.params.slidesPerView=1,o.params.slidesPerColumn=1,o.params.slidesPerGroup=1,o.params.centeredSlides=!1,o.params.spaceBetween=0,o.params.virtualTranslate=!0),"fade"!==o.params.effect&&"flip"!==o.params.effect||(o.params.slidesPerView=1,o.params.slidesPerColumn=1,o.params.slidesPerGroup=1,o.params.watchSlidesProgress=!0,o.params.spaceBetween=0,void 0===z&&(o.params.virtualTranslate=!0)),o.params.grabCursor&&o.support.touch&&(o.params.grabCursor=!1),o.wrapper=o.container.children("."+o.params.wrapperClass),o.params.pagination&&(o.paginationContainer=e(o.params.pagination),o.params.uniqueNavElements&&"string"==typeof o.params.pagination&&o.paginationContainer.length>1&&1===o.container.find(o.params.pagination).length&&(o.paginationContainer=o.container.find(o.params.pagination)),"bullets"===o.params.paginationType&&o.params.paginationClickable?o.paginationContainer.addClass(o.params.paginationModifierClass+"clickable"):o.params.paginationClickable=!1,o.paginationContainer.addClass(o.params.paginationModifierClass+o.params.paginationType)),(o.params.nextButton||o.params.prevButton)&&(o.params.nextButton&&(o.nextButton=e(o.params.nextButton),o.params.uniqueNavElements&&"string"==typeof o.params.nextButton&&o.nextButton.length>1&&1===o.container.find(o.params.nextButton).length&&(o.nextButton=o.container.find(o.params.nextButton))),o.params.prevButton&&(o.prevButton=e(o.params.prevButton),o.params.uniqueNavElements&&"string"==typeof o.params.prevButton&&o.prevButton.length>1&&1===o.container.find(o.params.prevButton).length&&(o.prevButton=o.container.find(o.params.prevButton)))),o.isHorizontal=function(){return"horizontal"===o.params.direction},o.rtl=o.isHorizontal()&&("rtl"===o.container[0].dir.toLowerCase()||"rtl"===o.container.css("direction")),o.rtl&&o.classNames.push(o.params.containerModifierClass+"rtl"),o.rtl&&(o.wrongRTL="-webkit-box"===o.wrapper.css("display")),o.params.slidesPerColumn>1&&o.classNames.push(o.params.containerModifierClass+"multirow"),o.device.android&&o.classNames.push(o.params.containerModifierClass+"android"),o.container.addClass(o.classNames.join(" ")),o.translate=0,o.progress=0,o.velocity=0,o.lockSwipeToNext=function(){o.params.allowSwipeToNext=!1,o.params.allowSwipeToPrev===!1&&o.params.grabCursor&&o.unsetGrabCursor()},o.lockSwipeToPrev=function(){o.params.allowSwipeToPrev=!1,o.params.allowSwipeToNext===!1&&o.params.grabCursor&&o.unsetGrabCursor()},o.lockSwipes=function(){o.params.allowSwipeToNext=o.params.allowSwipeToPrev=!1,o.params.grabCursor&&o.unsetGrabCursor()},o.unlockSwipeToNext=function(){o.params.allowSwipeToNext=!0,o.params.allowSwipeToPrev===!0&&o.params.grabCursor&&o.setGrabCursor()},o.unlockSwipeToPrev=function(){o.params.allowSwipeToPrev=!0,o.params.allowSwipeToNext===!0&&o.params.grabCursor&&o.setGrabCursor()},o.unlockSwipes=function(){o.params.allowSwipeToNext=o.params.allowSwipeToPrev=!0,o.params.grabCursor&&o.setGrabCursor()},o.setGrabCursor=function(e){o.container[0].style.cursor="move",o.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",o.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",o.container[0].style.cursor=e?"grabbing":"grab"},o.unsetGrabCursor=function(){o.container[0].style.cursor=""},o.params.grabCursor&&o.setGrabCursor(),o.imagesToLoad=[],o.imagesLoaded=0,o.loadImage=function(e,t,n,s,o,i){function r(){i&&i()}var a;e.complete&&o?r():t?(a=new window.Image,a.onload=r,a.onerror=r,s&&(a.sizes=s),n&&(a.srcset=n),t&&(a.src=t)):r()},o.preloadImages=function(){function t(){o!=null&&o&&(void 0!==o.imagesLoaded&&o.imagesLoaded++,o.imagesLoaded===o.imagesToLoad.length&&(o.params.updateOnImagesReady&&o.update(),o.emit("onImagesReady",o)))}o.imagesToLoad=o.container.find("img");for(var e=0;e<o.imagesToLoad.length;e++)o.loadImage(o.imagesToLoad[e],o.imagesToLoad[e].currentSrc||o.imagesToLoad[e].getAttribute("src"),o.imagesToLoad[e].srcset||o.imagesToLoad[e].getAttribute("srcset"),o.imagesToLoad[e].sizes||o.imagesToLoad[e].getAttribute("sizes"),!0,t)},o.autoplayTimeoutId=void 0,o.autoplaying=!1,o.autoplayPaused=!1,o.startAutoplay=function(){return void 0===o.autoplayTimeoutId&&!!o.params.autoplay&&!o.autoplaying&&(o.autoplaying=!0,o.emit("onAutoplayStart",o),void k())},o.stopAutoplay=function(){o.autoplayTimeoutId&&(o.autoplayTimeoutId&&clearTimeout(o.autoplayTimeoutId),o.autoplaying=!1,o.autoplayTimeoutId=void 0,o.emit("onAutoplayStop",o))},o.pauseAutoplay=function(e){o.autoplayPaused||(o.autoplayTimeoutId&&clearTimeout(o.autoplayTimeoutId),o.autoplayPaused=!0,0===e?(o.autoplayPaused=!1,k()):o.wrapper.transitionEnd(function(){o&&(o.autoplayPaused=!1,o.autoplaying?k():o.stopAutoplay())}))},o.minTranslate=function(){return-o.snapGrid[0]},o.maxTranslate=function(){return-o.snapGrid[o.snapGrid.length-1]},o.updateAutoHeight=function(){var e,s,i,t=[],n=0;if("auto"!==o.params.slidesPerView&&o.params.slidesPerView>1)for(e=0;e<Math.ceil(o.params.slidesPerView);e++){if(s=o.activeIndex+e,s>o.slides.length)break;t.push(o.slides.eq(s)[0])}else t.push(o.slides.eq(o.activeIndex)[0]);for(e=0;e<t.length;e++)void 0!==t[e]&&(i=t[e].offsetHeight,n=i>n?i:n);n&&o.wrapper.css("height",n+"px")},o.updateContainerSize=function(){var e=void 0!==o.params.width?o.params.width:o.container[0].clientWidth,t=void 0!==o.params.height?o.params.height:o.container[0].clientHeight;0===e&&o.isHorizontal()||0===t&&!o.isHorizontal()||(e=e-parseInt(o.container.css("padding-left"),10)-parseInt(o.container.css("padding-right"),10),t=t-parseInt(o.container.css("padding-top"),10)-parseInt(o.container.css("padding-bottom"),10),o.width=e,o.height=t,o.size=o.isHorizontal()?o.width:o.height)},o.updateSlidesSize=function(){o.slides=o.wrapper.children("."+o.params.slideClass),o.snapGrid=[],o.slidesGrid=[],o.slidesSizesGrid=[];var e,i,a,r,c,d,u,n=o.params.spaceBetween,s=-o.params.slidesOffsetBefore,m=0,f=0;if(void 0!==o.size){"string"==typeof n&&n.indexOf("%")>=0&&(n=parseFloat(n.replace("%",""))/100*o.size),o.virtualSize=-n,o.rtl?o.slides.css({marginLeft:"",marginTop:""}):o.slides.css({marginRight:"",marginBottom:""}),o.params.slidesPerColumn>1&&(c=Math.floor(o.slides.length/o.params.slidesPerColumn)===o.slides.length/o.params.slidesPerColumn?o.slides.length:Math.ceil(o.slides.length/o.params.slidesPerColumn)*o.params.slidesPerColumn,"auto"!==o.params.slidesPerView&&"row"===o.params.slidesPerColumnFill&&(c=Math.max(c,o.params.slidesPerView*o.params.slidesPerColumn)));var t,l=o.params.slidesPerColumn,h=c/l,p=h-(o.params.slidesPerColumn*h-o.slides.length);for(e=0;e<o.slides.length;e++)t=0,d=o.slides.eq(e),o.params.slidesPerColumn>1&&("column"===o.params.slidesPerColumnFill?(a=Math.floor(e/l),i=e-a*l,(a>p||a===p&&i===l-1)&&++i>=l&&(i=0,a++),u=a+i*c/l,d.css({"-webkit-box-ordinal-group":u,"-moz-box-ordinal-group":u,"-ms-flex-order":u,"-webkit-order":u,order:u})):(i=Math.floor(e/h),a=e-i*h),d.css("margin-"+(o.isHorizontal()?"top":"left"),0!==i&&o.params.spaceBetween&&o.params.spaceBetween+"px").attr("data-swiper-column",a).attr("data-swiper-row",i)),"none"!==d.css("display")&&("auto"===o.params.slidesPerView?(t=o.isHorizontal()?d.outerWidth(!0):d.outerHeight(!0),o.params.roundLengths&&(t=_(t))):(t=(o.size-(o.params.slidesPerView-1)*n)/o.params.slidesPerView,o.params.roundLengths&&(t=_(t)),o.isHorizontal()?o.slides[e].style.width=t+"px":o.slides[e].style.height=t+"px"),o.slides[e].swiperSlideSize=t,o.slidesSizesGrid.push(t),o.params.centeredSlides?(s=s+t/2+m/2+n,0===m&&0!==e&&(s=s-o.size/2-n),0===e&&(s=s-o.size/2-n),Math.abs(s)<.001&&(s=0),f%o.params.slidesPerGroup==0&&o.snapGrid.push(s),o.slidesGrid.push(s)):(f%o.params.slidesPerGroup==0&&o.snapGrid.push(s),o.slidesGrid.push(s),s=s+t+n),o.virtualSize+=t+n,m=t,f++);if(o.virtualSize=Math.max(o.virtualSize,o.size)+o.params.slidesOffsetAfter,o.rtl&&o.wrongRTL&&("slide"===o.params.effect||"coverflow"===o.params.effect)&&o.wrapper.css({width:o.virtualSize+o.params.spaceBetween+"px"}),o.support.flexbox&&!o.params.setWrapperSize||(o.isHorizontal()?o.wrapper.css({width:o.virtualSize+o.params.spaceBetween+"px"}):o.wrapper.css({height:o.virtualSize+o.params.spaceBetween+"px"})),o.params.slidesPerColumn>1&&(o.virtualSize=(t+o.params.spaceBetween)*c,o.virtualSize=Math.ceil(o.virtualSize/o.params.slidesPerColumn)-o.params.spaceBetween,o.isHorizontal()?o.wrapper.css({width:o.virtualSize+o.params.spaceBetween+"px"}):o.wrapper.css({height:o.virtualSize+o.params.spaceBetween+"px"}),o.params.centeredSlides)){for(r=[],e=0;e<o.snapGrid.length;e++)o.snapGrid[e]<o.virtualSize+o.snapGrid[0]&&r.push(o.snapGrid[e]);o.snapGrid=r}if(!o.params.centeredSlides){for(r=[],e=0;e<o.snapGrid.length;e++)o.snapGrid[e]<=o.virtualSize-o.size&&r.push(o.snapGrid[e]);o.snapGrid=r,Math.floor(o.virtualSize-o.size)-Math.floor(o.snapGrid[o.snapGrid.length-1])>1&&o.snapGrid.push(o.virtualSize-o.size)}0===o.snapGrid.length&&(o.snapGrid=[0]),0!==o.params.spaceBetween&&(o.isHorizontal()?o.rtl?o.slides.css({marginLeft:n+"px"}):o.slides.css({marginRight:n+"px"}):o.slides.css({marginBottom:n+"px"})),o.params.watchSlidesProgress&&o.updateSlidesOffset()}},o.updateSlidesOffset=function(){for(var e=0;e<o.slides.length;e++)o.slides[e].swiperSlideOffset=o.isHorizontal()?o.slides[e].offsetLeft:o.slides[e].offsetTop},o.currentSlidesPerView=function(){var e,t,n,i,s=1;if(o.params.centeredSlides){n=o.slides[o.activeIndex].swiperSlideSize;for(e=o.activeIndex+1;e<o.slides.length;e++)o.slides[e]&&!i&&(n+=o.slides[e].swiperSlideSize,s++,n>o.size&&(i=!0));for(t=o.activeIndex-1;t>=0;t--)o.slides[t]&&!i&&(n+=o.slides[t].swiperSlideSize,s++,n>o.size&&(i=!0))}else for(e=o.activeIndex+1;e<o.slides.length;e++)o.slidesGrid[e]-o.slidesGrid[o.activeIndex]<o.size&&s++;return s},o.updateSlidesProgress=function(e){if(void 0===e&&(e=o.translate||0),0!==o.slides.length){void 0===o.slides[0].swiperSlideOffset&&o.updateSlidesOffset(),s=-e,o.rtl&&(s=e),o.slides.removeClass(o.params.slideVisibleClass);for(t=0;t<o.slides.length;t++){var t,n,s,a,i=o.slides[t],r=(s+(o.params.centeredSlides?o.minTranslate():0)-i.swiperSlideOffset)/(i.swiperSlideSize+o.params.spaceBetween);o.params.watchSlidesVisibility&&(n=-(s-i.swiperSlideOffset),a=n+o.slidesSizesGrid[t],(n>=0&&n<o.size||a>0&&a<=o.size||n<=0&&a>=o.size)&&o.slides.eq(t).addClass(o.params.slideVisibleClass)),i.progress=o.rtl?-r:r}}},o.updateProgress=function(e){void 0===e&&(e=o.translate||0);var t=o.maxTranslate()-o.minTranslate(),n=o.isBeginning,s=o.isEnd;0===t?(o.progress=0,o.isBeginning=o.isEnd=!0):(o.progress=(e-o.minTranslate())/t,o.isBeginning=o.progress<=0,o.isEnd=o.progress>=1),o.isBeginning&&!n&&o.emit("onReachBeginning",o),o.isEnd&&!s&&o.emit("onReachEnd",o),o.params.watchSlidesProgress&&o.updateSlidesProgress(e),o.emit("onProgress",o,o.progress)},o.updateActiveIndex=function(){var e,t,s,n=o.rtl?o.translate:-o.translate;for(e=0;e<o.slidesGrid.length;e++)void 0!==o.slidesGrid[e+1]?n>=o.slidesGrid[e]&&n<o.slidesGrid[e+1]-(o.slidesGrid[e+1]-o.slidesGrid[e])/2?t=e:n>=o.slidesGrid[e]&&n<o.slidesGrid[e+1]&&(t=e+1):n>=o.slidesGrid[e]&&(t=e);o.params.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),s=Math.floor(t/o.params.slidesPerGroup),s>=o.snapGrid.length&&(s=o.snapGrid.length-1),t!==o.activeIndex&&(o.snapIndex=s,o.previousIndex=o.activeIndex,o.activeIndex=t,o.updateClasses(),o.updateRealIndex())},o.updateRealIndex=function(){o.realIndex=parseInt(o.slides.eq(o.activeIndex).attr("data-swiper-slide-index")||o.activeIndex,10)},o.updateClasses=function(){if(o.slides.removeClass(o.params.slideActiveClass+" "+o.params.slideNextClass+" "+o.params.slidePrevClass+" "+o.params.slideDuplicateActiveClass+" "+o.params.slideDuplicateNextClass+" "+o.params.slideDuplicatePrevClass),r=o.slides.eq(o.activeIndex),r.addClass(o.params.slideActiveClass),s.loop&&(r.hasClass(o.params.slideDuplicateClass)?o.wrapper.children("."+o.params.slideClass+":not(."+o.params.slideDuplicateClass+')[data-swiper-slide-index="'+o.realIndex+'"]').addClass(o.params.slideDuplicateActiveClass):o.wrapper.children("."+o.params.slideClass+"."+o.params.slideDuplicateClass+'[data-swiper-slide-index="'+o.realIndex+'"]').addClass(o.params.slideDuplicateActiveClass)),n=r.next("."+o.params.slideClass).addClass(o.params.slideNextClass),o.params.loop&&0===n.length&&(n=o.slides.eq(0),n.addClass(o.params.slideNextClass)),i=r.prev("."+o.params.slideClass).addClass(o.params.slidePrevClass),o.params.loop&&0===i.length&&(i=o.slides.eq(-1),i.addClass(o.params.slidePrevClass)),s.loop&&(n.hasClass(o.params.slideDuplicateClass)?o.wrapper.children("."+o.params.slideClass+":not(."+o.params.slideDuplicateClass+')[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]').addClass(o.params.slideDuplicateNextClass):o.wrapper.children("."+o.params.slideClass+"."+o.params.slideDuplicateClass+'[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]').addClass(o.params.slideDuplicateNextClass),i.hasClass(o.params.slideDuplicateClass)?o.wrapper.children("."+o.params.slideClass+":not(."+o.params.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(o.params.slideDuplicatePrevClass):o.wrapper.children("."+o.params.slideClass+"."+o.params.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(o.params.slideDuplicatePrevClass)),o.paginationContainer&&o.paginationContainer.length>0){if(a=o.params.loop?Math.ceil((o.slides.length-2*o.loopedSlides)/o.params.slidesPerGroup):o.snapGrid.length,o.params.loop?(t=Math.ceil((o.activeIndex-o.loopedSlides)/o.params.slidesPerGroup),t>o.slides.length-1-2*o.loopedSlides&&(t-=o.slides.length-2*o.loopedSlides),t>a-1&&(t-=a),t<0&&"bullets"!==o.params.paginationType&&(t=a+t)):t=void 0!==o.snapIndex?o.snapIndex:o.activeIndex||0,"bullets"===o.params.paginationType&&o.bullets&&o.bullets.length>0&&(o.bullets.removeClass(o.params.bulletActiveClass),o.paginationContainer.length>1?o.bullets.each(function(){e(this).index()===t&&e(this).addClass(o.params.bulletActiveClass)}):o.bullets.eq(t).addClass(o.params.bulletActiveClass)),"fraction"===o.params.paginationType&&(o.paginationContainer.find("."+o.params.paginationCurrentClass).text(t+1),o.paginationContainer.find("."+o.params.paginationTotalClass).text(a)),"progress"===o.params.paginationType){var t,n,i,a,r,c=(t+1)/a,l=c,d=1;o.isHorizontal()||(d=c,l=1),o.paginationContainer.find("."+o.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+d+")").transition(o.params.speed)}"custom"===o.params.paginationType&&o.params.paginationCustomRender&&(o.paginationContainer.html(o.params.paginationCustomRender(o,t+1,a)),o.emit("onPaginationRendered",o,o.paginationContainer[0]))}o.params.loop||(o.params.prevButton&&o.prevButton&&o.prevButton.length>0&&(o.isBeginning?(o.prevButton.addClass(o.params.buttonDisabledClass),o.params.a11y&&o.a11y&&o.a11y.disable(o.prevButton)):(o.prevButton.removeClass(o.params.buttonDisabledClass),o.params.a11y&&o.a11y&&o.a11y.enable(o.prevButton))),o.params.nextButton&&o.nextButton&&o.nextButton.length>0&&(o.isEnd?(o.nextButton.addClass(o.params.buttonDisabledClass),o.params.a11y&&o.a11y&&o.a11y.disable(o.nextButton)):(o.nextButton.removeClass(o.params.buttonDisabledClass),o.params.a11y&&o.a11y&&o.a11y.enable(o.nextButton))))},o.updatePagination=function(){if(o.params.pagination&&o.paginationContainer&&o.paginationContainer.length>0){if(e="","bullets"===o.params.paginationType){for(var e,n=o.params.loop?Math.ceil((o.slides.length-2*o.loopedSlides)/o.params.slidesPerGroup):o.snapGrid.length,t=0;t<n;t++)e+=o.params.paginationBulletRender?o.params.paginationBulletRender(o,t,o.params.bulletClass):"<"+o.params.paginationElement+' class="'+o.params.bulletClass+'"></'+o.params.paginationElement+">";o.paginationContainer.html(e),o.bullets=o.paginationContainer.find("."+o.params.bulletClass),o.params.paginationClickable&&o.params.a11y&&o.a11y&&o.a11y.initPagination()}"fraction"===o.params.paginationType&&(e=o.params.paginationFractionRender?o.params.paginationFractionRender(o,o.params.paginationCurrentClass,o.params.paginationTotalClass):'<span class="'+o.params.paginationCurrentClass+'"></span> / <span class="'+o.params.paginationTotalClass+'"></span>',o.paginationContainer.html(e)),"progress"===o.params.paginationType&&(e=o.params.paginationProgressRender?o.params.paginationProgressRender(o,o.params.paginationProgressbarClass):'<span class="'+o.params.paginationProgressbarClass+'"></span>',o.paginationContainer.html(e)),"custom"!==o.params.paginationType&&o.emit("onPaginationRendered",o,o.paginationContainer[0])}},o.update=function(e){function t(){o.rtl,o.translate,n=Math.min(Math.max(o.translate,o.maxTranslate()),o.minTranslate()),o.setWrapperTranslate(n),o.updateActiveIndex(),o.updateClasses()}if(o){o.updateContainerSize(),o.updateSlidesSize(),o.updateProgress(),o.updatePagination(),o.updateClasses(),o.params.scrollbar&&o.scrollbar&&o.scrollbar.set();var n;e?(o.controller&&o.controller.spline&&(o.controller.spline=void 0),o.params.freeMode?(t(),o.params.autoHeight&&o.updateAutoHeight()):(("auto"===o.params.slidesPerView||o.params.slidesPerView>1)&&o.isEnd&&!o.params.centeredSlides?o.slideTo(o.slides.length-1,0,!1,!0):o.slideTo(o.activeIndex,0,!1,!0))||t()):o.params.autoHeight&&o.updateAutoHeight()}},o.onResize=function(e){o.params.onBeforeResize&&o.params.onBeforeResize(o),o.params.breakpoints&&o.setBreakpoint();var t,n,s=o.params.allowSwipeToPrev,i=o.params.allowSwipeToNext;o.params.allowSwipeToPrev=o.params.allowSwipeToNext=!0,o.updateContainerSize(),o.updateSlidesSize(),("auto"===o.params.slidesPerView||o.params.freeMode||e)&&o.updatePagination(),o.params.scrollbar&&o.scrollbar&&o.scrollbar.set(),o.controller&&o.controller.spline&&(o.controller.spline=void 0),t=!1,o.params.freeMode?(n=Math.min(Math.max(o.translate,o.maxTranslate()),o.minTranslate()),o.setWrapperTranslate(n),o.updateActiveIndex(),o.updateClasses(),o.params.autoHeight&&o.updateAutoHeight()):(o.updateClasses(),t=("auto"===o.params.slidesPerView||o.params.slidesPerView>1)&&o.isEnd&&!o.params.centeredSlides?o.slideTo(o.slides.length-1,0,!1,!0):o.slideTo(o.activeIndex,0,!1,!0)),o.params.lazyLoading&&!t&&o.lazy&&o.lazy.load(),o.params.allowSwipeToPrev=s,o.params.allowSwipeToNext=i,o.params.onAfterResize&&o.params.onAfterResize(o)},o.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?o.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(o.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),o.touchEvents={start:o.support.touch||!o.params.simulateTouch?"touchstart":o.touchEventsDesktop.start,move:o.support.touch||!o.params.simulateTouch?"touchmove":o.touchEventsDesktop.move,end:o.support.touch||!o.params.simulateTouch?"touchend":o.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===o.params.touchEventsTarget?o.container:o.wrapper).addClass("swiper-wp8-"+o.params.direction),o.initEvents=function(e){var r,i=e?"off":"on",t=e?"removeEventListener":"addEventListener",n="container"===o.params.touchEventsTarget?o.container[0]:o.wrapper[0],c=o.support.touch?n:document,a=!!o.params.nested;o.browser.ie?(n[t](o.touchEvents.start,o.onTouchStart,!1),c[t](o.touchEvents.move,o.onTouchMove,a),c[t](o.touchEvents.end,o.onTouchEnd,!1)):(o.support.touch&&(r=!("touchstart"!==o.touchEvents.start||!o.support.passiveListener||!o.params.passiveListeners)&&{passive:!0,capture:!1},n[t](o.touchEvents.start,o.onTouchStart,r),n[t](o.touchEvents.move,o.onTouchMove,a),n[t](o.touchEvents.end,o.onTouchEnd,r)),(s.simulateTouch&&!o.device.ios&&!o.device.android||s.simulateTouch&&!o.support.touch&&o.device.ios)&&(n[t]("mousedown",o.onTouchStart,!1),document[t]("mousemove",o.onTouchMove,a),document[t]("mouseup",o.onTouchEnd,!1))),window[t]("resize",o.onResize),o.params.nextButton&&o.nextButton&&o.nextButton.length>0&&(o.nextButton[i]("click",o.onClickNext),o.params.a11y&&o.a11y&&o.nextButton[i]("keydown",o.a11y.onEnterKey)),o.params.prevButton&&o.prevButton&&o.prevButton.length>0&&(o.prevButton[i]("click",o.onClickPrev),o.params.a11y&&o.a11y&&o.prevButton[i]("keydown",o.a11y.onEnterKey)),o.params.pagination&&o.params.paginationClickable&&(o.paginationContainer[i]("click","."+o.params.bulletClass,o.onClickIndex),o.params.a11y&&o.a11y&&o.paginationContainer[i]("keydown","."+o.params.bulletClass,o.a11y.onEnterKey)),(o.params.preventClicks||o.params.preventClicksPropagation)&&n[t]("click",o.preventClicks,!0)},o.attachEvents=function(){o.initEvents()},o.detachEvents=function(){o.initEvents(!0)},o.allowClick=!0,o.preventClicks=function(e){o.allowClick||(o.params.preventClicks&&e.preventDefault(),o.params.preventClicksPropagation&&o.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},o.onClickNext=function(e){e.preventDefault(),o.isEnd&&!o.params.loop||o.slideNext()},o.onClickPrev=function(e){e.preventDefault(),o.isBeginning&&!o.params.loop||o.slidePrev()},o.onClickIndex=function(t){t.preventDefault();var n=e(this).index()*o.params.slidesPerGroup;o.params.loop&&(n+=o.loopedSlides),o.slideTo(n)},o.updateClickedSlide=function(t){var n,i,a,r,s=S(t,"."+o.params.slideClass),c=!1;if(s)for(i=0;i<o.slides.length;i++)o.slides[i]===s&&(c=!0);if(!s||!c)return o.clickedSlide=void 0,void(o.clickedIndex=void 0);if(o.clickedSlide=s,o.clickedIndex=e(s).index(),o.params.slideToClickedSlide&&void 0!==o.clickedIndex&&o.clickedIndex!==o.activeIndex)if(n=o.clickedIndex,a="auto"===o.params.slidesPerView?o.currentSlidesPerView():o.params.slidesPerView,o.params.loop){if(o.animating)return;r=parseInt(e(o.clickedSlide).attr("data-swiper-slide-index"),10),o.params.centeredSlides?n<o.loopedSlides-a/2||n>o.slides.length-o.loopedSlides+a/2?(o.fixLoop(),n=o.wrapper.children("."+o.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+o.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){o.slideTo(n)},0)):o.slideTo(n):n>o.slides.length-a?(o.fixLoop(),n=o.wrapper.children("."+o.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+o.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){o.slideTo(n)},0)):o.slideTo(n)}else o.slideTo(n)};var o,i,a,r,c,l,d,h,m,f,p,g,v,b,j,y,w,C,A,F,T,z,L,O="input, select, textarea, button, video",x=Date.now(),u=[];o.animating=!1,o.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},o.onTouchStart=function(t){if(t.originalEvent&&(t=t.originalEvent),(b="touchstart"===t.type)||!("which"in t)||3!==t.which){if(o.params.noSwiping&&S(t,"."+o.params.noSwipingClass))return void(o.allowClick=!0);if(!o.params.swipeHandler||S(t,o.params.swipeHandler)){var n,s=o.touches.currentX="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i=o.touches.currentY="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY;o.device.ios&&o.params.iOSEdgeSwipeDetection&&s<=o.params.iOSEdgeSwipeThreshold||((c=!0,d=!1,v=!0,h=void 0,g=void 0,o.touches.startX=s,o.touches.startY=i,w=Date.now(),o.allowClick=!0,o.updateContainerSize(),o.swipeDirection=void 0,o.params.threshold>0&&(y=!1),"touchstart"!==t.type)&&(n=!0,e(t.target).is(O)&&(n=!1),document.activeElement&&e(document.activeElement).is(O)&&document.activeElement.blur(),n&&t.preventDefault()),o.emit("onTouchStart",o,t))}}},o.onTouchMove=function(t){if(t.originalEvent&&(t=t.originalEvent),!b||"mousemove"!==t.type){if(t.preventedByNestedSwiper)return o.touches.startX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,void(o.touches.startY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY);if(o.params.onlyExternal)return o.allowClick=!1,void(c&&(o.touches.startX=o.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,o.touches.startY=o.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,w=Date.now()));if(b&&o.params.touchReleaseOnEdges&&!o.params.loop)if(o.isHorizontal()){if(o.touches.currentX<o.touches.startX&&o.translate<=o.maxTranslate()||o.touches.currentX>o.touches.startX&&o.translate>=o.minTranslate())return}else if(o.touches.currentY<o.touches.startY&&o.translate<=o.maxTranslate()||o.touches.currentY>o.touches.startY&&o.translate>=o.minTranslate())return;if(b&&document.activeElement&&t.target===document.activeElement&&e(t.target).is(O))return d=!0,void(o.allowClick=!1);if(v&&o.emit("onTouchMove",o,t),!(t.targetTouches&&t.targetTouches.length>1)&&((o.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,o.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,void 0===h)&&(o.isHorizontal()&&o.touches.currentY===o.touches.startY||!o.isHorizontal()&&o.touches.currentX===o.touches.startX?h=!1:(l=180*Math.atan2(Math.abs(o.touches.currentY-o.touches.startY),Math.abs(o.touches.currentX-o.touches.startX))/Math.PI,h=o.isHorizontal()?l>o.params.touchAngle:90-l>o.params.touchAngle)),h&&o.emit("onTouchMoveOpposite",o,t),void 0===g&&(o.touches.currentX===o.touches.startX&&o.touches.currentY===o.touches.startY||(g=!0)),c)){if(h)return void(c=!1);if(g){o.allowClick=!1,o.emit("onSliderMove",o,t),t.preventDefault(),o.params.touchMoveStopPropagation&&!o.params.nested&&t.stopPropagation(),d||(s.loop&&o.fixLoop(),r=o.getWrapperTranslate(),o.setWrapperTransition(0),o.animating&&o.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),o.params.autoplay&&o.autoplaying&&(o.params.autoplayDisableOnInteraction?o.stopAutoplay():o.pauseAutoplay()),j=!1,!o.params.grabCursor||o.params.allowSwipeToNext!==!0&&o.params.allowSwipeToPrev!==!0||o.setGrabCursor(!0)),d=!0;var a,l,n=o.touches.diff=o.isHorizontal()?o.touches.currentX-o.touches.startX:o.touches.currentY-o.touches.startY;if(n*=o.params.touchRatio,o.rtl&&(n=-n),o.swipeDirection=n>0?"prev":"next",i=n+r,a=!0,n>0&&i>o.minTranslate()?(a=!1,o.params.resistance&&(i=o.minTranslate()-1+Math.pow(-o.minTranslate()+r+n,o.params.resistanceRatio))):n<0&&i<o.maxTranslate()&&(a=!1,o.params.resistance&&(i=o.maxTranslate()+1-Math.pow(o.maxTranslate()-r-n,o.params.resistanceRatio))),a&&(t.preventedByNestedSwiper=!0),!o.params.allowSwipeToNext&&"next"===o.swipeDirection&&i<r&&(i=r),!o.params.allowSwipeToPrev&&"prev"===o.swipeDirection&&i>r&&(i=r),o.params.threshold>0){if(!(Math.abs(n)>o.params.threshold||y))return void(i=r);if(!y)return y=!0,o.touches.startX=o.touches.currentX,o.touches.startY=o.touches.currentY,i=r,void(o.touches.diff=o.isHorizontal()?o.touches.currentX-o.touches.startX:o.touches.currentY-o.touches.startY)}o.params.followFinger&&((o.params.freeMode||o.params.watchSlidesProgress)&&o.updateActiveIndex(),o.params.freeMode&&(0===u.length&&u.push({position:o.touches[o.isHorizontal()?"startX":"startY"],time:w}),u.push({position:o.touches[o.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),o.updateProgress(i),o.setWrapperTranslate(i))}}}},o.onTouchEnd=function(t){if(t.originalEvent&&(t=t.originalEvent),v&&o.emit("onTouchEnd",o,t),v=!1,c){if(o.params.grabCursor&&d&&c&&(o.params.allowSwipeToNext===!0||o.params.allowSwipeToPrev===!0)&&o.setGrabCursor(!1),C=Date.now(),f=C-w,o.allowClick&&(o.updateClickedSlide(t),o.emit("onTap",o,t),f<300&&C-x>300&&(m&&clearTimeout(m),m=setTimeout(function(){o&&(o.params.paginationHide&&o.paginationContainer.length>0&&!e(t.target).hasClass(o.params.bulletClass)&&o.paginationContainer.toggleClass(o.params.paginationHiddenClass),o.emit("onClick",o,t))},300)),f<300&&C-x<300&&(m&&clearTimeout(m),o.emit("onDoubleTap",o,t))),x=Date.now(),setTimeout(function(){o&&(o.allowClick=!0)},0),!c||!d||!o.swipeDirection||0===o.touches.diff||i===r)return void(c=d=!1);if(c=d=!1,l=o.params.followFinger?o.rtl?o.translate:-o.translate:-i,o.params.freeMode){if(l<-o.minTranslate())return void o.slideTo(o.activeIndex);if(l>-o.maxTranslate())return void(o.slides.length<o.snapGrid.length?o.slideTo(o.snapGrid.length-1):o.slideTo(o.slides.length-1));if(o.params.freeModeMomentum){if(u.length>1){var s,a,l,h,f,p,g,b,_,O,C,E,k=u.pop(),A=u.pop(),F=k.position-A.position,S=k.time-A.time;o.velocity=F/S,o.velocity=o.velocity/2,Math.abs(o.velocity)<o.params.freeModeMinimumVelocity&&(o.velocity=0),(S>150||(new window.Date).getTime()-k.time>300)&&(o.velocity=0)}else o.velocity=0;o.velocity=o.velocity*o.params.freeModeMomentumVelocityRatio,u.length=0;var y=1e3*o.params.freeModeMomentumRatio,M=o.velocity*y,n=o.translate+M;if(o.rtl&&(n=-n),O=!1,g=20*Math.abs(o.velocity)*o.params.freeModeMomentumBounceRatio,n<o.maxTranslate())o.params.freeModeMomentumBounce?(n+o.maxTranslate()<-g&&(n=o.maxTranslate()-g),_=o.maxTranslate(),O=!0,j=!0):n=o.maxTranslate();else if(n>o.minTranslate())o.params.freeModeMomentumBounce?(n-o.minTranslate()>g&&(n=o.minTranslate()+g),_=o.minTranslate(),O=!0,j=!0):n=o.minTranslate();else if(o.params.freeModeSticky){h=0;for(h=0;h<o.snapGrid.length;h+=1)if(o.snapGrid[h]>-n){p=h;break}n=Math.abs(o.snapGrid[p]-n)<Math.abs(o.snapGrid[p-1]-n)||"next"===o.swipeDirection?o.snapGrid[p]:o.snapGrid[p-1],o.rtl||(n=-n)}if(0!==o.velocity)y=o.rtl?Math.abs((-n-o.translate)/o.velocity):Math.abs((n-o.translate)/o.velocity);else if(o.params.freeModeSticky)return void o.slideReset();o.params.freeModeMomentumBounce&&O?(o.updateProgress(_),o.setWrapperTransition(y),o.setWrapperTranslate(n),o.onTransitionStart(),o.animating=!0,o.wrapper.transitionEnd(function(){o&&j&&(o.emit("onMomentumBounce",o),o.setWrapperTransition(o.params.speed),o.setWrapperTranslate(_),o.wrapper.transitionEnd(function(){o&&o.onTransitionEnd()}))})):o.velocity?(o.updateProgress(n),o.setWrapperTransition(y),o.setWrapperTranslate(n),o.onTransitionStart(),o.animating||(o.animating=!0,o.wrapper.transitionEnd(function(){o&&o.onTransitionEnd()}))):o.updateProgress(n),o.updateActiveIndex()}return void((!o.params.freeModeMomentum||f>=o.params.longSwipesMs)&&(o.updateProgress(),o.updateActiveIndex()))}a=0,b=o.slidesSizesGrid[0];for(s=0;s<o.slidesGrid.length;s+=o.params.slidesPerGroup)void 0!==o.slidesGrid[s+o.params.slidesPerGroup]?l>=o.slidesGrid[s]&&l<o.slidesGrid[s+o.params.slidesPerGroup]&&(a=s,b=o.slidesGrid[s+o.params.slidesPerGroup]-o.slidesGrid[s]):l>=o.slidesGrid[s]&&(a=s,b=o.slidesGrid[o.slidesGrid.length-1]-o.slidesGrid[o.slidesGrid.length-2]);if(E=(l-o.slidesGrid[a])/b,f>o.params.longSwipesMs){if(!o.params.longSwipes)return void o.slideTo(o.activeIndex);"next"===o.swipeDirection&&(E>=o.params.longSwipesRatio?o.slideTo(a+o.params.slidesPerGroup):o.slideTo(a)),"prev"===o.swipeDirection&&(E>1-o.params.longSwipesRatio?o.slideTo(a+o.params.slidesPerGroup):o.slideTo(a))}else{if(!o.params.shortSwipes)return void o.slideTo(o.activeIndex);"next"===o.swipeDirection&&o.slideTo(a+o.params.slidesPerGroup),"prev"===o.swipeDirection&&o.slideTo(a)}}},o._slideTo=function(e,t){return o.slideTo(e,t,!0,!0)},o.slideTo=function(e,t,n,s){void 0===n&&(n=!0),void 0===e&&(e=0),e<0&&(e=0),o.snapIndex=Math.floor(e/o.params.slidesPerGroup),o.snapIndex>=o.snapGrid.length&&(o.snapIndex=o.snapGrid.length-1);var a,i=-o.snapGrid[o.snapIndex];if(o.params.autoplay&&o.autoplaying&&(s||!o.params.autoplayDisableOnInteraction?o.pauseAutoplay(t):o.stopAutoplay()),o.updateProgress(i),o.params.normalizeSlideIndex)for(a=0;a<o.slidesGrid.length;a++)-Math.floor(100*i)>=Math.floor(100*o.slidesGrid[a])&&(e=a);return!(!o.params.allowSwipeToNext&&i<o.translate&&i<o.minTranslate())&&!(!o.params.allowSwipeToPrev&&i>o.translate&&i>o.maxTranslate()&&(o.activeIndex||0)!==e)&&(void 0===t&&(t=o.params.speed),o.previousIndex=o.activeIndex||0,o.activeIndex=e,o.updateRealIndex(),o.rtl&&-i===o.translate||!o.rtl&&i===o.translate?(o.params.autoHeight&&o.updateAutoHeight(),o.updateClasses(),"slide"!==o.params.effect&&o.setWrapperTranslate(i),!1):(o.updateClasses(),o.onTransitionStart(n),0===t||o.browser.lteIE9?(o.setWrapperTranslate(i),o.setWrapperTransition(0),o.onTransitionEnd(n)):(o.setWrapperTranslate(i),o.setWrapperTransition(t),o.animating||(o.animating=!0,o.wrapper.transitionEnd(function(){o&&o.onTransitionEnd(n)}))),!0))},o.onTransitionStart=function(e){void 0===e&&(e=!0),o.params.autoHeight&&o.updateAutoHeight(),o.lazy&&o.lazy.onTransitionStart(),e&&(o.emit("onTransitionStart",o),o.activeIndex!==o.previousIndex&&(o.emit("onSlideChangeStart",o),o.activeIndex>o.previousIndex?o.emit("onSlideNextStart",o):o.emit("onSlidePrevStart",o)))},o.onTransitionEnd=function(e){o.animating=!1,o.setWrapperTransition(0),void 0===e&&(e=!0),o.lazy&&o.lazy.onTransitionEnd(),e&&(o.emit("onTransitionEnd",o),o.activeIndex!==o.previousIndex&&(o.emit("onSlideChangeEnd",o),o.activeIndex>o.previousIndex?o.emit("onSlideNextEnd",o):o.emit("onSlidePrevEnd",o))),o.params.history&&o.history&&o.history.setHistory(o.params.history,o.activeIndex),o.params.hashnav&&o.hashnav&&o.hashnav.setHash()},o.slideNext=function(e,t,n){return o.params.loop?!o.animating&&(o.fixLoop(),o.container[0].clientLeft,o.slideTo(o.activeIndex+o.params.slidesPerGroup,t,e,n)):o.slideTo(o.activeIndex+o.params.slidesPerGroup,t,e,n)},o._slideNext=function(e){return o.slideNext(!0,e,!0)},o.slidePrev=function(e,t,n){return o.params.loop?!o.animating&&(o.fixLoop(),o.container[0].clientLeft,o.slideTo(o.activeIndex-1,t,e,n)):o.slideTo(o.activeIndex-1,t,e,n)},o._slidePrev=function(e){return o.slidePrev(!0,e,!0)},o.slideReset=function(e,t){return o.slideTo(o.activeIndex,t,e)},o.disableTouchControl=function(){return o.params.onlyExternal=!0,!0},o.enableTouchControl=function(){return o.params.onlyExternal=!1,!0},o.setWrapperTransition=function(e,t){o.wrapper.transition(e),"slide"!==o.params.effect&&o.effects[o.params.effect]&&o.effects[o.params.effect].setTransition(e),o.params.parallax&&o.parallax&&o.parallax.setTransition(e),o.params.scrollbar&&o.scrollbar&&o.scrollbar.setTransition(e),o.params.control&&o.controller&&o.controller.setTransition(e,t),o.emit("onSetTransition",o,e)},o.setWrapperTranslate=function(e,t,n){var a,r,s=0,i=0;o.isHorizontal()?s=o.rtl?-e:e:i=e,o.params.roundLengths&&(s=_(s),i=_(i)),o.params.virtualTranslate||(o.support.transforms3d?o.wrapper.transform("translate3d("+s+"px, "+i+"px, 0px)"):o.wrapper.transform("translate("+s+"px, "+i+"px)")),o.translate=o.isHorizontal()?s:i,a=o.maxTranslate()-o.minTranslate(),r=0===a?0:(e-o.minTranslate())/a,r!==o.progress&&o.updateProgress(e),t&&o.updateActiveIndex(),"slide"!==o.params.effect&&o.effects[o.params.effect]&&o.effects[o.params.effect].setTranslate(o.translate),o.params.parallax&&o.parallax&&o.parallax.setTranslate(o.translate),o.params.scrollbar&&o.scrollbar&&o.scrollbar.setTranslate(o.translate),o.params.control&&o.controller&&o.controller.setTranslate(o.translate,n),o.emit("onSetTranslate",o,o.translate)},o.getTranslate=function(e,t){var n,s,i,a;return void 0===t&&(t="x"),o.params.virtualTranslate?o.rtl?-o.translate:o.translate:(s=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(n=s.transform||s.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),a=new window.WebKitCSSMatrix("none"===n?"":n)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?a.m41:parseFloat(16===i.length?i[12]:i[4])),"y"===t&&(n=window.WebKitCSSMatrix?a.m42:parseFloat(16===i.length?i[13]:i[5])),o.rtl&&n&&(n=-n),n||0)},o.getWrapperTranslate=function(e){return void 0===e&&(e=o.isHorizontal()?"x":"y"),o.getTranslate(o.wrapper[0],e)},o.observers=[],o.initObservers=function(){if(o.params.observeParents)for(var t=o.container.parents(),e=0;e<t.length;e++)M(t[e]);M(o.container[0],{childList:!1}),M(o.wrapper[0],{attributes:!1})},o.disconnectObservers=function(){for(var e=0;e<o.observers.length;e++)o.observers[e].disconnect();o.observers=[]},o.createLoop=function(){o.wrapper.children("."+o.params.slideClass+"."+o.params.slideDuplicateClass).remove(),n=o.wrapper.children("."+o.params.slideClass),"auto"!==o.params.slidesPerView||o.params.loopedSlides||(o.params.loopedSlides=n.length),o.loopedSlides=parseInt(o.params.loopedSlides||o.params.slidesPerView,10),o.loopedSlides=o.loopedSlides+o.params.loopAdditionalSlides,o.loopedSlides>n.length&&(o.loopedSlides=n.length);var t,n,s=[],i=[];for(n.each(function(t,a){var r=e(this);t<o.loopedSlides&&i.push(a),t<n.length&&t>=n.length-o.loopedSlides&&s.push(a),r.attr("data-swiper-slide-index",t)}),t=0;t<i.length;t++)o.wrapper.append(e(i[t].cloneNode(!0)).addClass(o.params.slideDuplicateClass));for(t=s.length-1;t>=0;t--)o.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(o.params.slideDuplicateClass))},o.destroyLoop=function(){o.wrapper.children("."+o.params.slideClass+"."+o.params.slideDuplicateClass).remove(),o.slides.removeAttr("data-swiper-slide-index")},o.reLoop=function(e){var t=o.activeIndex-o.loopedSlides;o.destroyLoop(),o.createLoop(),o.updateSlidesSize(),e&&o.slideTo(t+o.loopedSlides,0,!1)},o.fixLoop=function(){var e;o.activeIndex<o.loopedSlides?(e=o.slides.length-3*o.loopedSlides+o.activeIndex,e+=o.loopedSlides,o.slideTo(e,0,!1,!0)):("auto"===o.params.slidesPerView&&o.activeIndex>=2*o.loopedSlides||o.activeIndex>o.slides.length-2*o.params.slidesPerView)&&(e=-o.slides.length+o.activeIndex+o.loopedSlides,e+=o.loopedSlides,o.slideTo(e,0,!1,!0))},o.appendSlide=function(e){if(o.params.loop&&o.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&o.wrapper.append(e[t]);else o.wrapper.append(e);o.params.loop&&o.createLoop(),o.params.observer&&o.support.observer||o.update(!0)},o.prependSlide=function(e){o.params.loop&&o.destroyLoop();var t,n=o.activeIndex+1;if("object"==typeof e&&e.length){for(t=0;t<e.length;t++)e[t]&&o.wrapper.prepend(e[t]);n=o.activeIndex+e.length}else o.wrapper.prepend(e);o.params.loop&&o.createLoop(),o.params.observer&&o.support.observer||o.update(!0),o.slideTo(n,0,!1)},o.removeSlide=function(e){o.params.loop&&(o.destroyLoop(),o.slides=o.wrapper.children("."+o.params.slideClass));var n,s,t=o.activeIndex;if("object"==typeof e&&e.length){for(s=0;s<e.length;s++)n=e[s],o.slides[n]&&o.slides.eq(n).remove(),n<t&&t--;t=Math.max(t,0)}else n=e,o.slides[n]&&o.slides.eq(n).remove(),n<t&&t--,t=Math.max(t,0);o.params.loop&&o.createLoop(),o.params.observer&&o.support.observer||o.update(!0),o.params.loop?o.slideTo(t+o.loopedSlides,0,!1):o.slideTo(t,0,!1)},o.removeAllSlides=function(){for(var t=[],e=0;e<o.slides.length;e++)t.push(e);o.removeSlide(t)},o.effects={fade:{setTranslate:function(){for(e=0;e<o.slides.length;e++){var e,s,i,t=o.slides.eq(e),a=t[0].swiperSlideOffset,n=-a;o.params.virtualTranslate||(n-=o.translate),s=0,o.isHorizontal()||(s=n,n=0),i=o.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0),t.css({opacity:i}).transform("translate3d("+n+"px, "+s+"px, 0px)")}},setTransition:function(e){if(o.slides.transition(e),o.params.virtualTranslate&&0!==e){var t=!1;o.slides.transitionEnd(function(){if(!t&&o){t=!0,o.animating=!1;for(var n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],e=0;e<n.length;e++)o.wrapper.trigger(n[e])}})}}},flip:{setTranslate:function(){for(r=0;r<o.slides.length;r++){t=o.slides.eq(r),n=t[0].progress,o.params.flip.limitRotation&&(n=Math.max(Math.min(t[0].progress,1),-1));var t,n,s,i,r,u=t[0].swiperSlideOffset,h=-180*n,a=h,l=0,c=-u,d=0;(o.isHorizontal()?o.rtl&&(a=-a):(d=c,c=0,l=-a,a=0),t[0].style.zIndex=-Math.abs(Math.round(n))+o.slides.length,o.params.flip.slideShadows)&&(s=o.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),i=o.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom"),0===s.length&&(s=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"left":"top")+'"></div>'),t.append(s)),0===i.length&&(i=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"right":"bottom")+'"></div>'),t.append(i)),s.length&&(s[0].style.opacity=Math.max(-n,0)),i.length&&(i[0].style.opacity=Math.max(n,0))),t.transform("translate3d("+c+"px, "+d+"px, 0px) rotateX("+l+"deg) rotateY("+a+"deg)")}},setTransition:function(t){if(o.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),o.params.virtualTranslate&&0!==t){var n=!1;o.slides.eq(o.activeIndex).transitionEnd(function(){if(!n&&o&&e(this).hasClass(o.params.slideActiveClass)){n=!0,o.animating=!1;for(var s=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<s.length;t++)o.wrapper.trigger(s[t])}})}}},cube:{setTranslate:function(){a=0,o.params.cube.shadow&&(o.isHorizontal()?(n=o.wrapper.find(".swiper-cube-shadow"),0===n.length&&(n=e('<div class="swiper-cube-shadow"></div>'),o.wrapper.append(n)),n.css({height:o.width+"px"})):(n=o.container.find(".swiper-cube-shadow"),0===n.length&&(n=e('<div class="swiper-cube-shadow"></div>'),o.container.append(n))));for(t=0;t<o.slides.length;t++){var i=o.slides.eq(t),l=90*t,h=Math.floor(l/360);o.rtl&&(l=-l,h=Math.floor(-l/360));var c=Math.max(Math.min(i[0].progress,1),-1),s=0,f=0,u=0;t%4==0?(s=4*-h*o.size,u=0):(t-1)%4==0?(s=0,u=4*-h*o.size):(t-2)%4==0?(s=o.size+4*h*o.size,u=o.size):(t-3)%4==0&&(s=-o.size,u=3*o.size+4*o.size*h),o.rtl&&(s=-s),o.isHorizontal()||(f=s,s=0),m="rotateX("+(o.isHorizontal()?0:-l)+"deg) rotateY("+(o.isHorizontal()?l:0)+"deg) translate3d("+s+"px, "+f+"px, "+u+"px)",(c<=1&&c>-1&&(a=90*t+90*c,o.rtl&&(a=90*-t-90*c)),i.transform(m),o.params.cube.slideShadows)&&(d=o.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),r=o.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom"),0===d.length&&(d=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"left":"top")+'"></div>'),i.append(d)),0===r.length&&(r=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"right":"bottom")+'"></div>'),i.append(r)),d.length&&(d[0].style.opacity=Math.max(-c,0)),r.length&&(r[0].style.opacity=Math.max(c,0)))}if(o.wrapper.css({"-webkit-transform-origin":"50% 50% -"+o.size/2+"px","-moz-transform-origin":"50% 50% -"+o.size/2+"px","-ms-transform-origin":"50% 50% -"+o.size/2+"px","transform-origin":"50% 50% -"+o.size/2+"px"}),o.params.cube.shadow)if(o.isHorizontal())n.transform("translate3d(0px, "+(o.width/2+o.params.cube.shadowOffset)+"px, "+-o.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+o.params.cube.shadowScale+")");else{var t,n,a,r,d,m,v,p=Math.abs(a)-90*Math.floor(Math.abs(a)/90),b=1.5-(Math.sin(2*p*Math.PI/360)/2+Math.cos(2*p*Math.PI/360)/2),j=o.params.cube.shadowScale,g=o.params.cube.shadowScale/b,y=o.params.cube.shadowOffset;n.transform("scale3d("+j+", 1, "+g+") translate3d(0px, "+(o.height/2+y)+"px, "+-o.height/2/g+"px) rotateX(-90deg)")}v=o.isSafari||o.isUiWebView?-o.size/2:0,o.wrapper.transform("translate3d(0px,0,"+v+"px) rotateX("+(o.isHorizontal()?0:a)+"deg) rotateY("+(o.isHorizontal()?-a:0)+"deg)")},setTransition:function(e){o.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),o.params.cube.shadow&&!o.isHorizontal()&&o.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var m=o.translate,g=o.isHorizontal()?-m+o.width/2:-m+o.height/2,p=o.isHorizontal()?o.params.coverflow.rotate:-o.params.coverflow.rotate,j=o.params.coverflow.depth,a=0,v=o.slides.length;a<v;a++){var s,i,f,n=o.slides.eq(a),h=o.slidesSizesGrid[a],b=n[0].swiperSlideOffset,t=(g-b-h/2)/h*o.params.coverflow.modifier,c=o.isHorizontal()?p*t:0,l=o.isHorizontal()?0:p*t,r=-j*Math.abs(t),d=o.isHorizontal()?0:o.params.coverflow.stretch*t,u=o.isHorizontal()?o.params.coverflow.stretch*t:0;Math.abs(u)<.001&&(u=0),Math.abs(d)<.001&&(d=0),Math.abs(r)<.001&&(r=0),Math.abs(c)<.001&&(c=0),Math.abs(l)<.001&&(l=0),f="translate3d("+u+"px,"+d+"px,"+r+"px)  rotateX("+l+"deg) rotateY("+c+"deg)",(n.transform(f),n[0].style.zIndex=1-Math.abs(Math.round(t)),o.params.coverflow.slideShadows)&&(i=o.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),s=o.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom"),0===i.length&&(i=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"left":"top")+'"></div>'),n.append(i)),0===s.length&&(s=e('<div class="swiper-slide-shadow-'+(o.isHorizontal()?"right":"bottom")+'"></div>'),n.append(s)),i.length&&(i[0].style.opacity=t>0?t:0),s.length&&(s[0].style.opacity=-t>0?-t:0))}o.browser.ie&&(o.wrapper[0].style.perspectiveOrigin=g+"px 50%")},setTransition:function(e){o.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},o.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,n){if(void 0!==t&&(void 0===n&&(n=!0),0!==o.slides.length)){var s=o.slides.eq(t),i=s.find("."+o.params.lazyLoadingClass+":not(."+o.params.lazyStatusLoadedClass+"):not(."+o.params.lazyStatusLoadingClass+")");!s.hasClass(o.params.lazyLoadingClass)||s.hasClass(o.params.lazyStatusLoadedClass)||s.hasClass(o.params.lazyStatusLoadingClass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){t=e(this),t.addClass(o.params.lazyStatusLoadingClass);var t,i=t.attr("data-background"),a=t.attr("data-src"),r=t.attr("data-srcset"),c=t.attr("data-sizes");o.loadImage(t[0],a||i,r,c,!1,function(){if(o!=null&&o){if(i?(t.css("background-image",'url("'+i+'")'),t.removeAttr("data-background")):(r&&(t.attr("srcset",r),t.removeAttr("data-srcset")),c&&(t.attr("sizes",c),t.removeAttr("data-sizes")),a&&(t.attr("src",a),t.removeAttr("data-src"))),t.addClass(o.params.lazyStatusLoadedClass).removeClass(o.params.lazyStatusLoadingClass),s.find("."+o.params.lazyPreloaderClass+", ."+o.params.preloaderClass).remove(),o.params.loop&&n){var l,d,e=s.attr("data-swiper-slide-index");s.hasClass(o.params.slideDuplicateClass)?(l=o.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+o.params.slideDuplicateClass+")"),o.lazy.loadImageInSlide(l.index(),!1)):(d=o.wrapper.children("."+o.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]'),o.lazy.loadImageInSlide(d.index(),!1))}o.emit("onLazyImageReady",o,s[0],t[0])}}),o.emit("onLazyImageLoad",o,s[0],t[0])})}},load:function(){if(n=o.params.slidesPerView,"auto"===n&&(n=0),o.lazy.initialImageLoaded||(o.lazy.initialImageLoaded=!0),o.params.watchSlidesVisibility)o.wrapper.children("."+o.params.slideVisibleClass).each(function(){o.lazy.loadImageInSlide(e(this).index())});else if(n>1)for(t=o.activeIndex;t<o.activeIndex+n;t++)o.slides[t]&&o.lazy.loadImageInSlide(t);else o.lazy.loadImageInSlide(o.activeIndex);if(o.params.lazyLoadingInPrevNext)if(n>1||o.params.lazyLoadingInPrevNextAmount&&o.params.lazyLoadingInPrevNextAmount>1){var t,n,i,a,r=o.params.lazyLoadingInPrevNextAmount,s=n,c=Math.min(o.activeIndex+s+Math.max(r,s),o.slides.length),l=Math.max(o.activeIndex-Math.max(s,r),0);for(t=o.activeIndex+n;t<c;t++)o.slides[t]&&o.lazy.loadImageInSlide(t);for(t=l;t<o.activeIndex;t++)o.slides[t]&&o.lazy.loadImageInSlide(t)}else i=o.wrapper.children("."+o.params.slideNextClass),i.length>0&&o.lazy.loadImageInSlide(i.index()),a=o.wrapper.children("."+o.params.slidePrevClass),a.length>0&&o.lazy.loadImageInSlide(a.index())},onTransitionStart:function(){o.params.lazyLoading&&(o.params.lazyLoadingOnTransitionStart||!o.params.lazyLoadingOnTransitionStart&&!o.lazy.initialImageLoaded)&&o.lazy.load()},onTransitionEnd:function(){o.params.lazyLoading&&!o.params.lazyLoadingOnTransitionStart&&o.lazy.load()}},o.scrollbar={isTouched:!1,setDragPosition:function(e){var n=o.scrollbar,a=o.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,t=a-n.track.offset()[o.isHorizontal()?"left":"top"]-n.dragSize/2,s=-o.minTranslate()*n.moveDivider,i=-o.maxTranslate()*n.moveDivider;t<s?t=s:t>i&&(t=i),t=-t/n.moveDivider,o.updateProgress(t),o.setWrapperTranslate(t,!0)},dragStart:function(e){var t=o.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),o.params.scrollbarHide&&t.track.css("opacity",1),o.wrapper.transition(100),t.drag.transition(100),o.emit("onScrollbarDragStart",o)},dragMove:function(e){var t=o.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),o.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),o.emit("onScrollbarDragMove",o))},dragEnd:function(){var t=o.scrollbar;t.isTouched&&(t.isTouched=!1,o.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),o.emit("onScrollbarDragEnd",o),o.params.scrollbarSnapOnRelease&&o.slideReset())},draggableEvents:function(){return o.params.simulateTouch!==!1||o.support.touch?o.touchEvents:o.touchEventsDesktop}(),enableDraggable:function(){var t=o.scrollbar,n=o.support.touch?t.track:document;e(t.track).on(t.draggableEvents.start,t.dragStart),e(n).on(t.draggableEvents.move,t.dragMove),e(n).on(t.draggableEvents.end,t.dragEnd)},disableDraggable:function(){var t=o.scrollbar,n=o.support.touch?t.track:document;e(t.track).off(t.draggableEvents.start,t.dragStart),e(n).off(t.draggableEvents.move,t.dragMove),e(n).off(t.draggableEvents.end,t.dragEnd)},set:function(){if(o.params.scrollbar){var t=o.scrollbar;t.track=e(o.params.scrollbar),o.params.uniqueNavElements&&"string"==typeof o.params.scrollbar&&t.track.length>1&&1===o.container.find(o.params.scrollbar).length&&(t.track=o.container.find(o.params.scrollbar)),t.drag=t.track.find(".swiper-scrollbar-drag"),0===t.drag.length&&(t.drag=e('<div class="swiper-scrollbar-drag"></div>'),t.track.append(t.drag)),t.drag[0].style.width="",t.drag[0].style.height="",t.trackSize=o.isHorizontal()?t.track[0].offsetWidth:t.track[0].offsetHeight,t.divider=o.size/o.virtualSize,t.moveDivider=t.divider*(t.trackSize/o.size),t.dragSize=t.trackSize*t.divider,o.isHorizontal()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px",t.divider>=1?t.track[0].style.display="none":t.track[0].style.display="",o.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(o.params.scrollbar){var e=o.scrollbar,n=(o.translate,e.dragSize),t=(e.trackSize-e.dragSize)*o.progress;o.rtl&&o.isHorizontal()?(t=-t,t>0?(n=e.dragSize-t,t=0):-t+e.dragSize>e.trackSize&&(n=e.trackSize+t)):t<0?(n=e.dragSize+t,t=0):t+e.dragSize>e.trackSize&&(n=e.trackSize-t),o.isHorizontal()?(o.support.transforms3d?e.drag.transform("translate3d("+t+"px, 0, 0)"):e.drag.transform("translateX("+t+"px)"),e.drag[0].style.width=n+"px"):(o.support.transforms3d?e.drag.transform("translate3d(0px, "+t+"px, 0)"):e.drag.transform("translateY("+t+"px)"),e.drag[0].style.height=n+"px"),o.params.scrollbarHide&&(clearTimeout(e.timeout),e.track[0].style.opacity=1,e.timeout=setTimeout(function(){e.track[0].style.opacity=0,e.track.transition(400)},1e3))}},setTransition:function(e){o.params.scrollbar&&o.scrollbar.drag.transition(e)}},o.controller={LinearSpline:function(e,t){var n,s,o=function(){var e,t,n;return function(s,o){for(t=-1,e=s.length;e-t>1;)s[n=e+t>>1]<=o?t=n:e=n;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1,this.x.length,this.interpolate=function(e){return e?(s=o(this.x,e),n=s-1,(e-this.x[n])*(this.y[s]-this.y[n])/(this.x[s]-this.x[n])+this.y[n]):0}},getInterpolateFunction:function(e){o.controller.spline||(o.controller.spline=o.params.loop?new o.controller.LinearSpline(o.slidesGrid,e.slidesGrid):new o.controller.LinearSpline(o.snapGrid,e.snapGrid))},setTranslate:function(e,n){function r(t){e=t.rtl&&"horizontal"===t.params.direction?-o.translate:o.translate,"slide"===o.params.controlBy&&(o.controller.getInterpolateFunction(t),i=-o.controller.spline.interpolate(-e)),i&&"container"!==o.params.controlBy||(c=(t.maxTranslate()-t.minTranslate())/(o.maxTranslate()-o.minTranslate()),i=(e-o.minTranslate())*c+t.minTranslate()),o.params.controlInverse&&(i=t.maxTranslate()-i),t.updateProgress(i),t.setWrapperTranslate(i,!1,o),t.updateActiveIndex()}var i,a,c,s=o.params.control;if(Array.isArray(s))for(a=0;a<s.length;a++)s[a]!==n&&s[a]instanceof t&&r(s[a]);else s instanceof t&&n!==s&&r(s)},setTransition:function(e,n){function a(t){t.setWrapperTransition(e,o),0!==e&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){s&&(t.params.loop&&"slide"===o.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var i,s=o.params.control;if(Array.isArray(s))for(i=0;i<s.length;i++)s[i]!==n&&s[i]instanceof t&&a(s[i]);else s instanceof t&&n!==s&&a(s)}},o.hashnav={onHashCange:function(){var n=document.location.hash.replace("#","");n!==o.slides.eq(o.activeIndex).attr("data-hash")&&o.slideTo(o.wrapper.children("."+o.params.slideClass+'[data-hash="'+n+'"]').index())},attachEvents:function(t){var n=t?"off":"on";e(window)[n]("hashchange",o.hashnav.onHashCange)},setHash:function(){if(o.hashnav.initialized&&o.params.hashnav)if(o.params.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+o.slides.eq(o.activeIndex).attr("data-hash")||"");else{var e=o.slides.eq(o.activeIndex),t=e.attr("data-hash")||e.attr("data-history");document.location.hash=t||""}},init:function(){if(o.params.hashnav&&!o.params.history){if(o.hashnav.initialized=!0,t=document.location.hash.replace("#",""),t)for(var e,t,s,i,n=0,a=o.slides.length;n<a;n++)e=o.slides.eq(n),s=e.attr("data-hash")||e.attr("data-history"),s===t&&!e.hasClass(o.params.slideDuplicateClass)&&(i=e.index(),o.slideTo(i,0,o.params.runCallbacksOnInit,!0));o.params.hashnavWatchState&&o.hashnav.attachEvents()}},destroy:function(){o.params.hashnavWatchState&&o.hashnav.attachEvents(!0)}},o.history={init:function(){if(o.params.history){if(!window.history||!window.history.pushState)return o.params.history=!1,void(o.params.hashnav=!0);o.history.initialized=!0,this.paths=this.getPathValues(),(this.paths.key||this.paths.value)&&(this.scrollToSlide(0,this.paths.value,o.params.runCallbacksOnInit),o.params.replaceState||window.addEventListener("popstate",this.setHistoryPopState))}},setHistoryPopState:function(){o.history.paths=o.history.getPathValues(),o.history.scrollToSlide(o.params.speed,o.history.paths.value,!1)},getPathValues:function(){var e=window.location.pathname.slice(1).split("/"),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){if(o.history.initialized&&o.params.history){var s=o.slides.eq(t),n=this.slugify(s.attr("data-history"));window.location.pathname.includes(e)||(n=e+"/"+n),o.params.replaceState?window.history.replaceState(null,null,n):window.history.pushState(null,null,n)}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){if(t)for(var s,a,r,i=0,c=o.slides.length;i<c;i++)s=o.slides.eq(i),a=this.slugify(s.attr("data-history")),a===t&&!s.hasClass(o.params.slideDuplicateClass)&&(r=s.index(),o.slideTo(r,e,n));else o.slideTo(0,e,n)}},o.disableKeyboardControl=function(){o.params.keyboardControl=!1,e(document).off("keydown",R)},o.enableKeyboardControl=function(){o.params.keyboardControl=!0,e(document).on("keydown",R)},o.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},o.params.mousewheelControl&&(o.mousewheel.event=navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t,e="onwheel"in document;return e||(t=document.createElement("div"),t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel),!e&&document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0&&(e=document.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"),o.disableMousewheelControl=function(){if(!o.mousewheel.event)return!1;var t=o.container;return"container"!==o.params.mousewheelEventsTarged&&(t=e(o.params.mousewheelEventsTarged)),t.off(o.mousewheel.event,D),o.params.mousewheelControl=!1,!0},o.enableMousewheelControl=function(){if(!o.mousewheel.event)return!1;var t=o.container;return"container"!==o.params.mousewheelEventsTarged&&(t=e(o.params.mousewheelEventsTarged)),t.on(o.mousewheel.event,D),o.params.mousewheelControl=!0,!0},o.parallax={setTranslate:function(){o.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){N(this,o.progress)}),o.slides.each(function(){var t=e(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){N(this,Math.min(Math.max(t[0].progress,-1),1))})})},setTransition:function(t){void 0===t&&(t=o.params.speed),o.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=e(this),s=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(s=0),n.transition(s)})}},o.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:o.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,o=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-t,2)+Math.pow(o-n,2))},onGestureStart:function(t){var n=o.zoom;if(!o.support.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;n.gesture.scaleStart=n.getDistanceBetweenTouches(t)}if(!(n.gesture.slide&&n.gesture.slide.length||(n.gesture.slide=e(this),0===n.gesture.slide.length&&(n.gesture.slide=o.slides.eq(o.activeIndex)),n.gesture.image=n.gesture.slide.find("img, svg, canvas"),n.gesture.imageWrap=n.gesture.image.parent("."+o.params.zoomContainerClass),n.gesture.zoomMax=n.gesture.imageWrap.attr("data-swiper-zoom")||o.params.zoomMax,0!==n.gesture.imageWrap.length)))return void(n.gesture.image=void 0);n.gesture.image.transition(0),n.isScaling=!0},onGestureChange:function(e){var t=o.zoom;if(!o.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;t.gesture.scaleMove=t.getDistanceBetweenTouches(e)}t.gesture.image&&0!==t.gesture.image.length&&(o.support.gestures?t.scale=e.scale*t.currentScale:t.scale=t.gesture.scaleMove/t.gesture.scaleStart*t.currentScale,t.scale>t.gesture.zoomMax&&(t.scale=t.gesture.zoomMax-1+Math.pow(t.scale-t.gesture.zoomMax+1,.5)),t.scale<o.params.zoomMin&&(t.scale=o.params.zoomMin+1-Math.pow(o.params.zoomMin-t.scale+1,.5)),t.gesture.image.transform("translate3d(0,0,0) scale("+t.scale+")"))},onGestureEnd:function(e){var t=o.zoom;!o.support.gestures&&("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2)||t.gesture.image&&0!==t.gesture.image.length&&(t.scale=Math.max(Math.min(t.scale,t.gesture.zoomMax),o.params.zoomMin),t.gesture.image.transition(o.params.speed).transform("translate3d(0,0,0) scale("+t.scale+")"),t.currentScale=t.scale,t.isScaling=!1,1===t.scale&&(t.gesture.slide=void 0))},onTouchStart:function(e,t){var n=e.zoom;n.gesture.image&&0!==n.gesture.image.length&&(n.image.isTouched||("android"===e.device.os&&t.preventDefault(),n.image.isTouched=!0,n.image.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,n.image.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(e){if(t=o.zoom,t.gesture.image&&0!==t.gesture.image.length&&(o.allowClick=!1,t.image.isTouched&&t.gesture.slide)){t.image.isMoved||(t.image.width=t.gesture.image[0].offsetWidth,t.image.height=t.gesture.image[0].offsetHeight,t.image.startX=o.getTranslate(t.gesture.imageWrap[0],"x")||0,t.image.startY=o.getTranslate(t.gesture.imageWrap[0],"y")||0,t.gesture.slideWidth=t.gesture.slide[0].offsetWidth,t.gesture.slideHeight=t.gesture.slide[0].offsetHeight,t.gesture.imageWrap.transition(0),o.rtl&&(t.image.startX=-t.image.startX),o.rtl&&(t.image.startY=-t.image.startY));var t,n=t.image.width*t.scale,s=t.image.height*t.scale;if(!(n<t.gesture.slideWidth&&s<t.gesture.slideHeight)){if(t.image.minX=Math.min(t.gesture.slideWidth/2-n/2,0),t.image.maxX=-t.image.minX,t.image.minY=Math.min(t.gesture.slideHeight/2-s/2,0),t.image.maxY=-t.image.minY,t.image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,t.image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!t.image.isMoved&&!t.isScaling){if(o.isHorizontal()&&Math.floor(t.image.minX)===Math.floor(t.image.startX)&&t.image.touchesCurrent.x<t.image.touchesStart.x||Math.floor(t.image.maxX)===Math.floor(t.image.startX)&&t.image.touchesCurrent.x>t.image.touchesStart.x)return void(t.image.isTouched=!1);if(!o.isHorizontal()&&Math.floor(t.image.minY)===Math.floor(t.image.startY)&&t.image.touchesCurrent.y<t.image.touchesStart.y||Math.floor(t.image.maxY)===Math.floor(t.image.startY)&&t.image.touchesCurrent.y>t.image.touchesStart.y)return void(t.image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),t.image.isMoved=!0,t.image.currentX=t.image.touchesCurrent.x-t.image.touchesStart.x+t.image.startX,t.image.currentY=t.image.touchesCurrent.y-t.image.touchesStart.y+t.image.startY,t.image.currentX<t.image.minX&&(t.image.currentX=t.image.minX+1-Math.pow(t.image.minX-t.image.currentX+1,.8)),t.image.currentX>t.image.maxX&&(t.image.currentX=t.image.maxX-1+Math.pow(t.image.currentX-t.image.maxX+1,.8)),t.image.currentY<t.image.minY&&(t.image.currentY=t.image.minY+1-Math.pow(t.image.minY-t.image.currentY+1,.8)),t.image.currentY>t.image.maxY&&(t.image.currentY=t.image.maxY-1+Math.pow(t.image.currentY-t.image.maxY+1,.8)),t.velocity.prevPositionX||(t.velocity.prevPositionX=t.image.touchesCurrent.x),t.velocity.prevPositionY||(t.velocity.prevPositionY=t.image.touchesCurrent.y),t.velocity.prevTime||(t.velocity.prevTime=Date.now()),t.velocity.x=(t.image.touchesCurrent.x-t.velocity.prevPositionX)/(Date.now()-t.velocity.prevTime)/2,t.velocity.y=(t.image.touchesCurrent.y-t.velocity.prevPositionY)/(Date.now()-t.velocity.prevTime)/2,Math.abs(t.image.touchesCurrent.x-t.velocity.prevPositionX)<2&&(t.velocity.x=0),Math.abs(t.image.touchesCurrent.y-t.velocity.prevPositionY)<2&&(t.velocity.y=0),t.velocity.prevPositionX=t.image.touchesCurrent.x,t.velocity.prevPositionY=t.image.touchesCurrent.y,t.velocity.prevTime=Date.now(),t.gesture.imageWrap.transform("translate3d("+t.image.currentX+"px, "+t.image.currentY+"px,0)")}}},onTouchEnd:function(e){if(n=e.zoom,n.gesture.image&&0!==n.gesture.image.length){if(!n.image.isTouched||!n.image.isMoved)return n.image.isTouched=!1,void(n.image.isMoved=!1);n.image.isTouched=!1,n.image.isMoved=!1;var n,r,c,l,s=300,o=300,d=n.velocity.x*s,i=n.image.currentX+d,u=n.velocity.y*o,a=n.image.currentY+u;0!==n.velocity.x&&(s=Math.abs((i-n.image.currentX)/n.velocity.x)),0!==n.velocity.y&&(o=Math.abs((a-n.image.currentY)/n.velocity.y)),r=Math.max(s,o),n.image.currentX=i,n.image.currentY=a,c=n.image.width*n.scale,l=n.image.height*n.scale,n.image.minX=Math.min(n.gesture.slideWidth/2-c/2,0),n.image.maxX=-n.image.minX,n.image.minY=Math.min(n.gesture.slideHeight/2-l/2,0),n.image.maxY=-n.image.minY,n.image.currentX=Math.max(Math.min(n.image.currentX,n.image.maxX),n.image.minX),n.image.currentY=Math.max(Math.min(n.image.currentY,n.image.maxY),n.image.minY),n.gesture.imageWrap.transition(r).transform("translate3d("+n.image.currentX+"px, "+n.image.currentY+"px,0)")}},onTransitionEnd:function(e){var t=e.zoom;t.gesture.slide&&e.previousIndex!==e.activeIndex&&(t.gesture.image.transform("translate3d(0,0,0) scale(1)"),t.gesture.imageWrap.transform("translate3d(0,0,0)"),t.gesture.slide=t.gesture.image=t.gesture.imageWrap=void 0,t.scale=t.currentScale=1)},toggleZoom:function(t,n){var o,i,a,r,c,l,d,u,h,m,f,p,g,v,b,j,y,_,s=t.zoom;s.gesture.slide||(s.gesture.slide=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imageWrap=s.gesture.image.parent("."+t.params.zoomContainerClass)),s.gesture.image&&0!==s.gesture.image.length&&(void 0===s.image.touchesStart.x&&n?(c="touchend"===n.type?n.changedTouches[0].pageX:n.pageX,l="touchend"===n.type?n.changedTouches[0].pageY:n.pageY):(c=s.image.touchesStart.x,l=s.image.touchesStart.y),s.scale&&1!==s.scale?(s.scale=s.currentScale=1,s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentScale=s.gesture.imageWrap.attr("data-swiper-zoom")||t.params.zoomMax,n?(u=s.gesture.slide[0].offsetWidth,d=s.gesture.slide[0].offsetHeight,_=s.gesture.slide.offset().left,f=s.gesture.slide.offset().top,y=_+u/2-c,j=f+d/2-l,b=s.gesture.image[0].offsetWidth,v=s.gesture.image[0].offsetHeight,g=b*s.scale,p=v*s.scale,a=Math.min(u/2-g/2,0),r=Math.min(d/2-p/2,0),m=-a,h=-r,o=y*s.scale,i=j*s.scale,o<a&&(o=a),o>m&&(o=m),i<r&&(i=r),i>h&&(i=h)):(o=0,i=0),s.gesture.imageWrap.transition(300).transform("translate3d("+o+"px, "+i+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")")))},attachEvents:function(t){var s,n=t?"off":"on";o.params.zoom&&(s=(o.slides,!("touchstart"!==o.touchEvents.start||!o.support.passiveListener||!o.params.passiveListeners)&&{passive:!0,capture:!1}),o.support.gestures?(o.slides[n]("gesturestart",o.zoom.onGestureStart,s),o.slides[n]("gesturechange",o.zoom.onGestureChange,s),o.slides[n]("gestureend",o.zoom.onGestureEnd,s)):"touchstart"===o.touchEvents.start&&(o.slides[n](o.touchEvents.start,o.zoom.onGestureStart,s),o.slides[n](o.touchEvents.move,o.zoom.onGestureChange,s),o.slides[n](o.touchEvents.end,o.zoom.onGestureEnd,s)),o[n]("touchStart",o.zoom.onTouchStart),o.slides.each(function(t,s){e(s).find("."+o.params.zoomContainerClass).length>0&&e(s)[n](o.touchEvents.move,o.zoom.onTouchMove)}),o[n]("touchEnd",o.zoom.onTouchEnd),o[n]("transitionEnd",o.zoom.onTransitionEnd),o.params.zoomToggle&&o.on("doubleTap",o.zoom.toggleZoom))},init:function(){o.zoom.attachEvents()},destroy:function(){o.zoom.attachEvents(!0)}},o._plugins=[];for(L in o.plugins)A=o.plugins[L](o,o.params[L]),A&&o._plugins.push(A);return o.callPlugins=function(e){for(var t=0;t<o._plugins.length;t++)e in o._plugins[t]&&o._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},o.emitterEventListeners={},o.emit=function(e){o.params[e]&&o.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(o.emitterEventListeners[e])for(t=0;t<o.emitterEventListeners[e].length;t++)o.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);o.callPlugins&&o.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},o.on=function(e,t){return e=E(e),o.emitterEventListeners[e]||(o.emitterEventListeners[e]=[]),o.emitterEventListeners[e].push(t),o},o.off=function(e,t){var n;if(e=E(e),void 0===t)return o.emitterEventListeners[e]=[],o;if(o.emitterEventListeners[e]&&0!==o.emitterEventListeners[e].length){for(n=0;n<o.emitterEventListeners[e].length;n++)o.emitterEventListeners[e][n]===t&&o.emitterEventListeners[e].splice(n,1);return o}},o.once=function(e,t){e=E(e);var n=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),o.off(e,n)};return o.on(e,n),o},o.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(t){13===t.keyCode&&(e(t.target).is(o.params.nextButton)?(o.onClickNext(t),o.isEnd?o.a11y.notify(o.params.lastSlideMessage):o.a11y.notify(o.params.nextSlideMessage)):e(t.target).is(o.params.prevButton)&&(o.onClickPrev(t),o.isBeginning?o.a11y.notify(o.params.firstSlideMessage):o.a11y.notify(o.params.prevSlideMessage)),e(t.target).is("."+o.params.bulletClass)&&e(t.target)[0].click())},liveRegion:e('<span class="'+o.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=o.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){o.params.nextButton&&o.nextButton&&o.nextButton.length>0&&(o.a11y.makeFocusable(o.nextButton),o.a11y.addRole(o.nextButton,"button"),o.a11y.addLabel(o.nextButton,o.params.nextSlideMessage)),o.params.prevButton&&o.prevButton&&o.prevButton.length>0&&(o.a11y.makeFocusable(o.prevButton),o.a11y.addRole(o.prevButton,"button"),o.a11y.addLabel(o.prevButton,o.params.prevSlideMessage)),e(o.container).append(o.a11y.liveRegion)},initPagination:function(){o.params.pagination&&o.params.paginationClickable&&o.bullets&&o.bullets.length&&o.bullets.each(function(){var t=e(this);o.a11y.makeFocusable(t),o.a11y.addRole(t,"button"),o.a11y.addLabel(t,o.params.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})},destroy:function(){o.a11y.liveRegion&&o.a11y.liveRegion.length>0&&o.a11y.liveRegion.remove()}},o.init=function(){o.params.loop&&o.createLoop(),o.updateContainerSize(),o.updateSlidesSize(),o.updatePagination(),o.params.scrollbar&&o.scrollbar&&(o.scrollbar.set(),o.params.scrollbarDraggable&&o.scrollbar.enableDraggable()),"slide"!==o.params.effect&&o.effects[o.params.effect]&&(o.params.loop||o.updateProgress(),o.effects[o.params.effect].setTranslate()),o.params.loop?o.slideTo(o.params.initialSlide+o.loopedSlides,0,o.params.runCallbacksOnInit):(o.slideTo(o.params.initialSlide,0,o.params.runCallbacksOnInit),0===o.params.initialSlide&&(o.parallax&&o.params.parallax&&o.parallax.setTranslate(),o.lazy&&o.params.lazyLoading&&(o.lazy.load(),o.lazy.initialImageLoaded=!0))),o.attachEvents(),o.params.observer&&o.support.observer&&o.initObservers(),o.params.preloadImages&&!o.params.lazyLoading&&o.preloadImages(),o.params.zoom&&o.zoom&&o.zoom.init(),o.params.autoplay&&o.startAutoplay(),o.params.keyboardControl&&o.enableKeyboardControl&&o.enableKeyboardControl(),o.params.mousewheelControl&&o.enableMousewheelControl&&o.enableMousewheelControl(),o.params.hashnavReplaceState&&(o.params.replaceState=o.params.hashnavReplaceState),o.params.history&&o.history&&o.history.init(),o.params.hashnav&&o.hashnav&&o.hashnav.init(),o.params.a11y&&o.a11y&&o.a11y.init(),o.emit("onInit",o)},o.cleanupStyles=function(){o.container.removeClass(o.classNames.join(" ")).removeAttr("style"),o.wrapper.removeAttr("style"),o.slides&&o.slides.length&&o.slides.removeClass([o.params.slideVisibleClass,o.params.slideActiveClass,o.params.slideNextClass,o.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),o.paginationContainer&&o.paginationContainer.length&&o.paginationContainer.removeClass(o.params.paginationHiddenClass),o.bullets&&o.bullets.length&&o.bullets.removeClass(o.params.bulletActiveClass),o.params.prevButton&&e(o.params.prevButton).removeClass(o.params.buttonDisabledClass),o.params.nextButton&&e(o.params.nextButton).removeClass(o.params.buttonDisabledClass),o.params.scrollbar&&o.scrollbar&&(o.scrollbar.track&&o.scrollbar.track.length&&o.scrollbar.track.removeAttr("style"),o.scrollbar.drag&&o.scrollbar.drag.length&&o.scrollbar.drag.removeAttr("style"))},o.destroy=function(e,t){o.detachEvents(),o.stopAutoplay(),o.params.scrollbar&&o.scrollbar&&o.params.scrollbarDraggable&&o.scrollbar.disableDraggable(),o.params.loop&&o.destroyLoop(),t&&o.cleanupStyles(),o.disconnectObservers(),o.params.zoom&&o.zoom&&o.zoom.destroy(),o.params.keyboardControl&&o.disableKeyboardControl&&o.disableKeyboardControl(),o.params.mousewheelControl&&o.disableMousewheelControl&&o.disableMousewheelControl(),o.params.a11y&&o.a11y&&o.a11y.destroy(),o.params.history&&!o.params.replaceState&&window.removeEventListener("popstate",o.history.setHistoryPopState),o.params.hashnav&&o.hashnav&&o.hashnav.destroy(),o.emit("onDestroy"),e!==!1&&(o=null)},o.init(),o}},t.prototype={isSafari:function(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var e=document.createElement("div");return e.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}()},device:function(){var e=window.navigator.userAgent,n=e.match(/(Android);?[\s/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),o=!t&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:t||o||s,android:n}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var n=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),e=0;e<t.length;e++)if(t[e]in n)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var t,e=!1;try{t=Object.defineProperty({},"passive",{get:function(){e=!0}}),window.addEventListener("testPassiveListener",null,t)}catch{}return e}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}};for(var e,t,n,o=["jQuery","Zepto","Dom7"],s=0;s<o.length;s++)window[o[s]]&&function(e){e.fn.swiper=function(n){var s;return e(this).each(function(){var e=new t(this,n);s||(s=e)}),s}}(window[o[s]]);n="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,n&&("transitionEnd"in n.fn||(n.fn.transitionEnd=function(e){function s(i){if(i.target===this)for(e.call(this,i),t=0;t<n.length;t++)o.off(n[t],s)}var t,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],o=this;if(e)for(t=0;t<n.length;t++)o.on(n[t],s);return this}),"transform"in n.fn||(n.fn.transform=function(e){for(var t,n=0;n<this.length;n++)t=this[n].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e;return this}),"transition"in n.fn||(n.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t,n=0;n<this.length;n++)t=this[n].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e;return this}),"outerWidth"in n.fn||(n.fn.outerWidth=function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=t}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper}),!function(e){function n(e,t){return e.toFixed(t.decimals)}var t=function(n,s){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,this.dataOptions(),s),this.init()};t.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:n,onUpdate:null,onComplete:null},t.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},t.prototype.dataOptions=function(){var t,s,e={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},n=Object.keys(e);for(s in n)t=n[s],"undefined"==typeof e[t]&&delete e[t];return e},t.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},t.prototype.render=function(){var e=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(e)},t.prototype.restart=function(){this.stop(),this.init(),this.start()},t.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},t.prototype.stop=function(){this.interval&&clearInterval(this.interval)},t.prototype.toggle=function(){this.interval?this.stop():this.start()},e.fn.countTo=function(n){return this.each(function(){var o=e(this),s=o.data("countTo"),i=!s||"object"==typeof n,a="object"==typeof n?n:{},r="string"==typeof n?n:"start";i&&(s&&s.stop(),o.data("countTo",s=new t(this,a))),s[r].call(s)})}}(jQuery),!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ProgressBar=e()}(function(){return function e(t,n,s){function o(i,r){if(!n[i]){if(!t[i]){var c,l,d="function"==typeof require&&require;if(!r&&d)return d(i,!0);if(a)return a(i,!0);throw l=new Error("Cannot find module '"+i+"'"),l.code="MODULE_NOT_FOUND",l}c=n[i]={exports:{}},t[i][0].call(c.exports,function(e){var n=t[i][1][e];return o(n||e)},c,c.exports,e,t,n,s)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<s.length;i++)o(s[i]);return o}({1:[function(e,t,n){(function(){var s=this||Function("return this")(),e=function(){"use strict";function d(){}function a(e,t){var n;for(n in e)Object.hasOwnProperty.call(e,n)&&t(n)}function r(e,t){return a(t,function(n){e[n]=t[n]}),e}function j(e,t){a(t,function(n){void 0===e[n]&&(e[n]=t[n])})}function l(e,t,n,s,o,i,a){var r,c,l,d=i>e?0:(e-i)/o;for(r in t)t.hasOwnProperty(r)&&(c=a[r],l="function"==typeof c?c:g[c],t[r]=f(n[r],s[r],l,d));return t}function f(e,t,n,s){return e+(t-e)*n(s)}function o(t,n){var s=e.prototype.filter,o=t._filterArgs;a(s,function(e){void 0!==s[e][n]&&s[e][n].apply(t,o)})}function m(e,t,n,s,a,r,d,m,f,p,g){u=t+n+s,c=Math.min(g||i(),u),b=c>=u,h=s-(u-c),e.isPlaying()&&(b?(f(d,e._attachment,h),e.stop(!0)):(e._scheduleId=p(e._timeoutHandler,y),o(e,"beforeTween"),t+n>c?l(1,a,r,d,1,1,m):l(c,a,r,d,s,t+n,m),o(e,"afterTween"),f(a,e._attachment,h)))}function v(e,t){var n={},s=typeof t;return"string"===s||"function"===s?a(e,function(e){n[e]=t}):a(e,function(e){n[e]||(n[e]=t[e]||p)}),n}function e(e,t){this._currentState=e||{},this._configured=!1,this._scheduleFunction=w,void 0!==t&&this.setConfig(t)}var c,u,h,g,b,p="linear",y=1e3/60,_=Date.now?Date.now:function(){return+new Date},i="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:_,w="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;return e.prototype.tween=function(e){return this._isTweening?this:(void 0===e&&this._configured||this.setConfig(e),this._timestamp=i(),this._start(this.get(),this._attachment),this.resume())},e.prototype.setConfig=function(e){e=e||{},this._configured=!0,this._attachment=e.attachment,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=e.start||d,this._step=e.step||d,this._finish=e.finish||d,this._duration=e.duration||500,this._currentState=r({},e.from)||this.get(),this._originalState=this.get(),this._targetState=r({},e.to)||this.get(),t=this,this._timeoutHandler=function(){m(t,t._timestamp,t._delay,t._duration,t._currentState,t._originalState,t._targetState,t._easing,t._step,t._scheduleFunction)};var t,n=this._currentState,s=this._targetState;return j(s,n),this._easing=v(n,e.easing||p),this._filterArgs=[n,this._originalState,s,this._easing],o(this,"tweenCreated"),this},e.prototype.get=function(){return r({},this._currentState)},e.prototype.set=function(e){this._currentState=e},e.prototype.pause=function(){return this._pausedAtTime=i(),this._isPaused=!0,this},e.prototype.resume=function(){return this._isPaused&&(this._timestamp+=i()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this},e.prototype.seek=function(e){e=Math.max(e,0);var t=i();return this._timestamp+e===0?this:(this._timestamp=t-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,m(this,this._timestamp,this._delay,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction,t),this.pause()),this)},e.prototype.stop=function(e){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=d,(s.cancelAnimationFrame||s.webkitCancelAnimationFrame||s.oCancelAnimationFrame||s.msCancelAnimationFrame||s.mozCancelRequestAnimationFrame||s.clearTimeout)(this._scheduleId),e&&(o(this,"beforeTween"),l(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),o(this,"afterTween"),o(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},e.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},e.prototype.setScheduleFunction=function(e){this._scheduleFunction=e},e.prototype.dispose=function(){var e;for(e in this)this.hasOwnProperty(e)&&delete this[e]},e.prototype.filter={},e.prototype.formula={linear:function(e){return e}},g=e.prototype.formula,r(e,{now:i,each:a,tweenProps:l,tweenProp:f,applyFilter:o,shallowCopy:r,defaults:j,composeEasingObject:v}),"function"==typeof SHIFTY_DEBUG_NOW&&(s.timeoutHandler=m),"object"==typeof n?t.exports=e:void 0===s.Tweenable&&(s.Tweenable=e),e}();e.shallowCopy(e.prototype.formula,{easeInQuad:function(e){return Math.pow(e,2)},easeOutQuad:function(e){return-(Math.pow(e-1,2)-1)},easeInOutQuad:function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},easeInCubic:function(e){return Math.pow(e,3)},easeOutCubic:function(e){return Math.pow(e-1,3)+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},easeInQuart:function(e){return Math.pow(e,4)},easeOutQuart:function(e){return-(Math.pow(e-1,4)-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeInQuint:function(e){return Math.pow(e,5)},easeOutQuint:function(e){return Math.pow(e-1,5)+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeOutBounce:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},elastic:function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},swingFromTo:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},swingFrom:function(e){var t=1.70158;return e*e*((t+1)*e-t)},swingTo:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},bounce:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bouncePast:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?2-(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},easeFromTo:function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},easeFrom:function(e){return Math.pow(e,4)},easeTo:function(e){return Math.pow(e,.25)}}),function(){function t(e,t,n,s,o,i){function h(e){return((d*e+r)*e+a)*e}function f(e){return((m*e+u)*e+c)*e}function p(e){return(3*d*e+2*r)*e+a}function l(e){return e>=0?e:0-e}function g(e,t){for(n=e,r=0;8>r;r++){if(i=h(n)-e,l(i)<t)return n;if(a=p(n),l(a)<1e-6)break;n-=i/a}if(s=0,o=1,n=e,s>n)return s;if(n>o)return o;for(var n,s,o,i,a,r;o>s;){if(i=h(n),l(i-e)<t)return n;e>i?s=n:o=n,n=.5*(o-s)+s}return n}var d=0,r=0,a=0,m=0,u=0,c=0;return a=3*t,r=3*(s-t)-a,d=1-a-r,c=3*n,u=3*(o-n)-c,m=1-c-u,f(g(e,1/(200*i)))}function n(e,n,s,o){return function(i){return t(i,e,n,s,o,1)}}e.setBezierFunction=function(t,s,o,i,a){var r=n(s,o,i,a);return r.displayName=t,r.x1=s,r.y1=o,r.x2=i,r.y2=a,e.prototype.formula[t]=r},e.unsetBezierFunction=function(t){delete e.prototype.formula[t]}}(),function(){function n(t,n,s,o,i,a){return e.tweenProps(o,n,t,s,1,a,i)}var t=new e;t._filterArgs=[],e.interpolate=function(s,o,i,a,r){var c,u,l=e.shallowCopy({},s),h=r||0,d=e.composeEasingObject(s,a||"linear");return t.set({}),c=t._filterArgs,c.length=0,c[0]=l,c[1]=s,c[2]=o,c[3]=d,e.applyFilter(t,"tweenCreated"),e.applyFilter(t,"beforeTween"),u=n(s,l,o,i,d,h),e.applyFilter(t,"afterTween"),u}}(),function(e){function _(e,t){var n,s=[],o=e.length;for(n=0;o>n;n++)s.push("_"+t+"_"+n);return s}function A(e){var t=e.match(m);return t?(1===t.length||e[0].match(y))&&t.unshift(""):t=["",""],t.join(s)}function a(t){e.each(t,function(e){var n=t[e];"string"==typeof n&&n.match(u)&&(t[e]=k(n))})}function k(e){return l(u,e,E)}function E(e){var t=w(e);return"rgb("+t[0]+","+t[1]+","+t[2]+")"}function w(e){return 3===(e=e.replace(/#/,"")).length&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),n[0]=r(e.substr(0,2)),n[1]=r(e.substr(2,2)),n[2]=r(e.substr(4,2)),n}function r(e){return parseInt(e,16)}function l(e,t,n){var a,r,c,o=t.match(e),i=t.replace(e,s);if(o)for(c=o.length,a=0;c>a;a++)r=o.shift(),i=i.replace(s,n(r));return i}function v(e){return l(O,e,b)}function b(e){for(var o=e.match(t),i=o.length,n=e.match(x)[0],s=0;i>s;s++)n+=parseInt(o[s],10)+",";return n=n.slice(0,-1)+")"}function C(t){var n={};return e.each(t,function(e){var o,s=t[e];"string"==typeof s&&(o=d(s),n[e]={formatString:A(s),chunkNames:_(o,e)})}),n}function o(t,n){e.each(n,function(e){for(var o=d(t[e]),i=o.length,s=0;i>s;s++)t[n[e].chunkNames[s]]=+o[s];delete t[e]})}function c(t,n){e.each(n,function(e){var s=t[e],o=p(f(t,n[e].chunkNames),n[e].chunkNames),s=g(n[e].formatString,o);t[e]=v(s)})}function f(e,t){for(var n,o={},i=t.length,s=0;i>s;s++)n=t[s],o[n]=e[n],delete e[n];return o}function p(e,t){i.length=0;for(var s=t.length,n=0;s>n;n++)i.push(e[t[n]]);return i}function g(e,t){for(var n=e,i=t.length,o=0;i>o;o++)n=n.replace(s,+t[o].toFixed(4));return n}function d(e){return e.match(t)}function h(t,n){e.each(n,function(e){var s,o,c,i=n[e].chunkNames,r=i.length,a=t[e];if("string"==typeof a){o=a.split(" "),c=o[o.length-1];for(s=0;r>s;s++)t[i[s]]=o[s]||c}else for(s=0;r>s;s++)t[i[s]]=a;delete t[e]})}function j(t,n){e.each(n,function(e){var s,i,o=n[e].chunkNames,r=o.length,a=t[o[0]];if("string"==typeof a){for(i="",s=0;r>s;s++)i+=" "+t[o[s]],delete t[o[s]];t[e]=i.substr(1)}else t[e]=a})}var y=/(\d|-|\.)/,m=/([^-0-9.]+)/g,t=/[0-9.-]+/g,O=new RegExp("rgb\\("+t.source+/,\s*/.source+t.source+/,\s*/.source+t.source+"\\)","g"),x=/^.*\(/,u=/#([0-9]|[a-f]){3,6}/gi,s="VAL",n=[],i=[];e.prototype.filter.token={tweenCreated:function(e,t,n){a(e),a(t),a(n),this._tokenData=C(e)},beforeTween:function(e,t,n,s){h(s,this._tokenData),o(e,this._tokenData),o(t,this._tokenData),o(n,this._tokenData)},afterTween:function(e,t,n,s){c(e,this._tokenData),c(t,this._tokenData),c(n,this._tokenData),j(s,this._tokenData)}}}(e)}).call(null)},{}],2:[function(e,t){var o=e("./shape"),i=e("./utils"),s=function(){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,o.apply(this,arguments)};(s.prototype=new o).constructor=s,s.prototype._pathString=function(e){var t,n=e.strokeWidth;return e.trailWidth&&e.trailWidth>e.strokeWidth&&(n=e.trailWidth),t=50-n/2,i.render(this._pathTemplate,{radius:t,"2radius":2*t})},s.prototype._trailString=function(e){return this._pathString(e)},t.exports=s},{"./shape":7,"./utils":8}],3:[function(e,t){var o=e("./shape"),i=e("./utils"),s=function(){this._pathTemplate="M 0,{center} L 100,{center}",o.apply(this,arguments)};(s.prototype=new o).constructor=s,s.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 "+t.strokeWidth),e.setAttribute("preserveAspectRatio","none")},s.prototype._pathString=function(e){return i.render(this._pathTemplate,{center:e.strokeWidth/2})},s.prototype._trailString=function(e){return this._pathString(e)},t.exports=s},{"./shape":7,"./utils":8}],4:[function(e,t){t.exports={Line:e("./line"),Circle:e("./circle"),SemiCircle:e("./semicircle"),Path:e("./path"),Shape:e("./shape"),utils:e("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./utils":8}],5:[function(e,t){var i=e("shifty"),o=e("./utils"),a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},s=function e(t,n){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");n=o.extend({duration:800,easing:"linear",from:{},to:{},step:function(){}},n),s=o.isString(t)?document.querySelector(t):t,this.path=s,this._opts=n,this._tweenable=null;var s,i=this.path.getTotalLength();this.path.style.strokeDasharray=i+" "+i,this.set(0)};s.prototype.value=function(){var e=1-this._getComputedDashOffset()/this.path.getTotalLength();return parseFloat(e.toFixed(6),10)},s.prototype.set=function(e){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(e);var n,t=this._opts.step;o.isFunction(t)&&(n=this._easing(this._opts.easing),t(this._calculateTo(e,n),this._opts.shape||this,this._opts.attachment))},s.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},s.prototype.animate=function(e,t,n){t=t||{},o.isFunction(t)&&(n=t,t={}),r=o.extend({},t),c=o.extend({},this._opts),t=o.extend(c,t),s=this._easing(t.easing),a=this._resolveFromAndTo(e,s,r),this.stop(),this.path.getBoundingClientRect();var s,a,r,c,d=this._getComputedDashOffset(),u=this._progressToOffset(e),l=this;this._tweenable=new i,this._tweenable.tween({from:o.extend({offset:d},a.from),to:o.extend({offset:u},a.to),duration:t.duration,easing:s,step:function(e){l.path.style.strokeDashoffset=e.offset;var n=t.shape||l;t.step(e,n,t.attachment)},finish:function(){o.isFunction(n)&&n()}})},s.prototype._getComputedDashOffset=function(){var e=window.getComputedStyle(this.path,null);return parseFloat(e.getPropertyValue("stroke-dashoffset"),10)},s.prototype._progressToOffset=function(e){var t=this.path.getTotalLength();return t-e*t},s.prototype._resolveFromAndTo=function(e,t,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(t),to:this._calculateTo(e,t)}},s.prototype._calculateFrom=function(e){return i.interpolate(this._opts.from,this._opts.to,this.value(),e)},s.prototype._calculateTo=function(e,t){return i.interpolate(this._opts.from,this._opts.to,e,t)},s.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(),this._tweenable=null)},s.prototype._easing=function(e){return a.hasOwnProperty(e)?a[e]:e},t.exports=s},{"./utils":8,shifty:1}],6:[function(e,t){var o=e("./shape"),i=e("./circle"),a=e("./utils"),s=function(){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,o.apply(this,arguments)};(s.prototype=new o).constructor=s,s.prototype._initializeSvg=function(e){e.setAttribute("viewBox","0 0 100 50")},s.prototype._initializeTextContainer=function(e,t,n){e.text.style&&(n.style.top="auto",n.style.bottom="0",e.text.alignToBottom?a.setStyle(n,"transform","translate(-50%, 0)"):a.setStyle(n,"transform","translate(-50%, 50%)"))},s.prototype._pathString=i.prototype._pathString,s.prototype._trailString=i.prototype._trailString,t.exports=s},{"./circle":2,"./shape":7,"./utils":8}],7:[function(e,t){var a=e("./path"),o=e("./utils"),i="Object is destroyed",s=function e(t,n){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=o.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),o.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),o.isObject(n)&&o.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var i,r,s=this._createSvgView(this._opts);if(!(i=o.isString(t)?document.querySelector(t):t))throw new Error("Container does not exist: "+t);this._container=i,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&o.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null,r=o.extend({attachment:void 0,shape:this},this._opts),this._progressPath=new a(s.path,r),o.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};s.prototype.animate=function(e,t,n){if(null===this._progressPath)throw new Error(i);this._progressPath.animate(e,t,n)},s.prototype.stop=function(){if(null===this._progressPath)throw new Error(i);void 0!==this._progressPath&&this._progressPath.stop()},s.prototype.destroy=function(){if(null===this._progressPath)throw new Error(i);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},s.prototype.set=function(e){if(null===this._progressPath)throw new Error(i);this._progressPath.set(e)},s.prototype.value=function(){if(null===this._progressPath)throw new Error(i);return void 0===this._progressPath?0:this._progressPath.value()},s.prototype.setText=function(e){if(null===this._progressPath)throw new Error(i);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),o.isObject(e)?(o.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},s.prototype._createSvgView=function(e){var n,s,t=document.createElementNS("http://www.w3.org/2000/svg","svg");return this._initializeSvg(t,e),n=null,(e.trailColor||e.trailWidth)&&(n=this._createTrail(e),t.appendChild(n)),s=this._createPath(e),t.appendChild(s),{svg:t,path:s,trail:n}},s.prototype._initializeSvg=function(e){e.setAttribute("viewBox","0 0 100 100")},s.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},s.prototype._createTrail=function(e){var n=this._trailString(e),t=o.extend({},e);return t.trailColor||(t.trailColor="#eee"),t.trailWidth||(t.trailWidth=t.strokeWidth),t.color=t.trailColor,t.strokeWidth=t.trailWidth,t.fill=null,this._createPathElement(n,t)},s.prototype._createPathElement=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),n.setAttribute("stroke",t.color),n.setAttribute("stroke-width",t.strokeWidth),t.fill?n.setAttribute("fill",t.fill):n.setAttribute("fill-opacity","0"),n},s.prototype._createTextContainer=function(e,t){var s,n=document.createElement("div");return n.className=e.text.className,s=e.text.style,s&&(e.text.autoStyleContainer&&(t.style.position="relative"),o.setStyles(n,s),s.color||(n.style.color=e.color)),this._initializeTextContainer(e,t,n),n},s.prototype._initializeTextContainer=function(){},s.prototype._pathString=function(){throw new Error("Override this function for each progress bar")},s.prototype._trailString=function(){throw new Error("Override this function for each progress bar")},s.prototype._warnContainerAspectRatio=function(e){if(this.containerAspectRatio){var t=window.getComputedStyle(e,null),n=parseFloat(t.getPropertyValue("width"),10),s=parseFloat(t.getPropertyValue("height"),10);o.floatEquals(this.containerAspectRatio,n/s)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",n/s),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},t.exports=s},{"./path":5,"./utils":8}],8:[function(e,t){function o(e,t,n){e=e||{},t=t||{},n=n||!1;for(i in t)if(t.hasOwnProperty(i)){var i,r=e[i],a=t[i];n&&s(r)&&s(a)?e[i]=o(r,a,n):e[i]=a}return e}function i(e,t,n){for(var o=e.style,s=0;s<c.length;++s)o[c[s]+a(t)]=n;o[t]=n}function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return"[object Array]"===Object.prototype.toString.call(e)}function s(e){return!l(e)&&"object"==typeof e&&!!e}function r(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}var c="Webkit Moz O ms".split(" "),d=.001;t.exports={extend:o,render:function(e,t){n=e;for(s in t)if(t.hasOwnProperty(s)){var n,s,o=t[s],i="\\{"+s+"\\}",a=new RegExp(i,"g");n=n.replace(a,o)}return n},setStyle:i,setStyles:function(e,t){r(t,function(t,n){t!=null&&(s(t)&&!0===t.prefix?i(e,n,t.value):e.style[n]=t)})},capitalize:a,isString:function(e){return"string"==typeof e||e instanceof String},isFunction:function(e){return"function"==typeof e},isObject:s,forEachObject:r,floatEquals:function(e,t){return Math.abs(e-t)<d},removeChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}}},{}]},{},[4])(4)}),function(e){function u(e){return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,s){return t+t+n+n+s+s}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function m(){var e=document.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")}function i(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function l(e,t,n,s,i){for(var u={},h={},m={},f={},p={},g={},r=null,d=0;d<s.length;d++){var a=s[d],r=null===r?n/o[a]:o[r]/o[a],c=e/o[a],l=t/o[a];i&&(c=0<c?Math.floor(c):Math.ceil(c),l=0<l?Math.floor(l):Math.ceil(l)),"Days"!==a&&(c%=r,l%=r),u[a]=c,m[a]=Math.abs(c),h[a]=l,g[a]=Math.abs(l),f[a]=Math.abs(c)/r,p[a]=Math.abs(l)/r,r=a}return{raw_time:u,raw_old_time:h,time:m,old_time:g,pct:f,old_pct:p}}function h(e){for(var n=["webkit","moz"],t=0;t<n.length&&!e.requestAnimationFrame;++t)e.requestAnimationFrame=e[n[t]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[n[t]+"CancelAnimationFrame"];e.requestAnimationFrame&&e.cancelAnimationFrame||(e.requestAnimationFrame=function(t,n,s){"undefined"==typeof s&&(s={data:{last_frame:0}});var o=(new Date).getTime(),i=Math.max(0,16-(o-s.data.last_frame));return n=e.setTimeout(function(){t(o+i)},i),s.data.last_frame=o+i,n},e.cancelAnimationFrame=function(e){clearTimeout(e)})}n=window,Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),e="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),s=e.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var i,a=[];for(i in o)t.call(o,i)&&a.push(i);if(n)for(i=0;i<s;i++)t.call(o,e[i])&&a.push(e[i]);return a}}());var t,n,s,a,r=!1,c=["Days","Hours","Minutes","Seconds"],d={Seconds:"Minutes",Minutes:"Hours",Hours:"Days",Days:"Years"},o={Seconds:1,Minutes:60,Hours:3600,Days:86400,Months:2678400,Years:31536e3};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var s=this.length>>>0,n=Number(t)||0,n=0>n?Math.ceil(n):Math.floor(n);for(0>n&&(n+=s);n<s;n++)if(n in this&&this[n]===e)return n;return-1}),a={},t=function(e,t){this.element=e,this.container,this.listeners=null,this.data={paused:!1,last_frame:0,animation_frame:null,interval_fallback:null,timer:!1,total_duration:null,prev_time:null,drawn_units:[],text_elements:{Days:null,Hours:null,Minutes:null,Seconds:null},attributes:{canvas:null,context:null,item_size:null,line_width:null,radius:null,outer_radius:null},state:{fading:{Days:!1,Hours:!1,Minutes:!1,Seconds:!1}}},this.config=null,this.setOptions(t),this.initialize()},t.prototype.clearListeners=function(){this.listeners={all:[],visible:[]}},t.prototype.addTime=function(e){if(this.data.attributes.ref_date instanceof Date){var t=this.data.attributes.ref_date;t.setSeconds(t.getSeconds()+e)}else isNaN(this.data.attributes.ref_date)||(this.data.attributes.ref_date+=1e3*e)},t.prototype.initialize=function(t){this.data.drawn_units=[];for(var s,i,a,c,o=0;o<Object.keys(this.config.time).length;o++)s=Object.keys(this.config.time)[o],this.config.time[s].show&&this.data.drawn_units.push(s);e(this.element).children("div.time_circles").remove(),"undefined"==typeof t&&(t=!0),(t||null===this.listeners)&&this.clearListeners(),this.container=e("<div>"),this.container.addClass("time_circles"),this.container.appendTo(this.element),o=this.element.offsetHeight,t=this.element.offsetWidth,0===o&&(o=e(this.element).height()),0===t&&(t=e(this.element).width()),0===o&&0<t?o=t/this.data.drawn_units.length:0===t&&0<o&&(t=o*this.data.drawn_units.length),s=document.createElement("canvas"),s.width=t,s.height=o,this.data.attributes.canvas=e(s),this.data.attributes.canvas.appendTo(this.container),a=m(),a||"undefined"==typeof G_vmlCanvasManager||(G_vmlCanvasManager.initElement(s),a=r=!0),a&&(this.data.attributes.context=s.getContext("2d")),this.data.attributes.item_size=Math.min(t/this.data.drawn_units.length,o),this.data.attributes.line_width=this.data.attributes.item_size*this.config.fg_width,this.data.attributes.radius=(.8*this.data.attributes.item_size-this.data.attributes.line_width)/2,this.data.attributes.outer_radius=this.data.attributes.radius+.5*Math.max(this.data.attributes.line_width,this.data.attributes.line_width*this.config.bg_width),o=0;for(i in this.data.text_elements)this.config.time[i].show&&(t=e("<div>"),t.addClass("textDiv_"+i),t.css("top",Math.round(.35*this.data.attributes.item_size)),t.css("left",Math.round(o++*this.data.attributes.item_size)),t.css("width",this.data.attributes.item_size),t.appendTo(this.container),s=e("<h4>"),s.text(this.config.time[i].text),s.css("font-size",Math.round(this.config.text_size*this.data.attributes.item_size)),s.css("line-height",Math.round(this.config.text_size*this.data.attributes.item_size)+"px"),s.appendTo(t),s=e("<span>"),s.css("font-size",Math.round(3*this.config.text_size*this.data.attributes.item_size)),s.css("line-height",Math.round(this.config.text_size*this.data.attributes.item_size)+"px"),s.appendTo(t),this.data.text_elements[i]=s);this.start(),this.config.start||(this.data.paused=!0),c=this,this.data.interval_fallback=n.setInterval(function(){c.update.call(c,!0)},100)},t.prototype.update=function(e){if("undefined"==typeof e)e=!1;else if(e&&this.data.paused)return;if(r&&this.data.attributes.context.clearRect(0,0,this.data.attributes.canvas[0].width,this.data.attributes.canvas[0].hright),s=this.data.prev_time,i=new Date,this.data.prev_time=i,null===s&&(s=i),!this.config.count_past_zero&&i>this.data.attributes.ref_date){for(a=0;a<this.data.drawn_units.length;a++){t=this.data.drawn_units[a],this.data.text_elements[t].text("0");var f=a*this.data.attributes.item_size+this.data.attributes.item_size/2,h=this.data.attributes.item_size/2,u=this.config.time[t].color;this.drawArc(f,h,u,0)}this.stop()}else{i=(this.data.attributes.ref_date-i)/1e3,a=(this.data.attributes.ref_date-s)/1e3;var i,a,d,g,t="smooth"!==this.config.animation,s=l(i,a,this.data.total_duration,this.data.drawn_units,t),p=l(i,a,o.Years,c,t),v=a=0,m=null,b=this.data.drawn_units.slice();for(a in c)t=c[a],Math.floor(p.raw_time[t])!==Math.floor(p.raw_old_time[t])&&this.notifyListeners(t,Math.floor(p.time[t]),Math.floor(i),"all"),0>b.indexOf(t)||(Math.floor(s.raw_time[t])!==Math.floor(s.raw_old_time[t])&&this.notifyListeners(t,Math.floor(s.time[t]),Math.floor(i),"visible"),e||(this.data.text_elements[t].text(Math.floor(Math.abs(s.time[t]))),f=v*this.data.attributes.item_size+this.data.attributes.item_size/2,h=this.data.attributes.item_size/2,u=this.config.time[t].color,"smooth"===this.config.animation?(null===m||r||(Math.floor(s.time[m])>Math.floor(s.old_time[m])?(this.radialFade(f,h,u,1,t),this.data.state.fading[t]=!0):Math.floor(s.time[m])<Math.floor(s.old_time[m])&&(this.radialFade(f,h,u,0,t),this.data.state.fading[t]=!0)),this.data.state.fading[t]||this.drawArc(f,h,u,s.pct[t])):this.animateArc(f,h,u,s.pct[t],s.old_pct[t],(new Date).getTime()+200)),m=t,v++);!this.data.paused&&!e&&(d=this,g=function(){d.update.call(d)},"smooth"===this.config.animation?this.data.animation_frame=n.requestAnimationFrame(g,d.element,d):(e=i%1*1e3,0>e&&(e=1e3+e),d.data.animation_frame=n.setTimeout(function(){d.data.animation_frame=n.requestAnimationFrame(g,d.element,d)},e+50)))}},t.prototype.animateArc=function(e,t,s,o,i,a){if(null!==this.data.attributes.context)if(.5<Math.abs(i-o))0===o?this.radialFade(e,t,s,1):this.radialFade(e,t,s,0);else{var c,r=(200-(a-(new Date).getTime()))/200;1<r&&(r=1),this.drawArc(e,t,s,i*(1-r)+o*r),1<=r||(c=this,n.requestAnimationFrame(function(){c.animateArc(e,t,s,o,i,a)},this.element))}},t.prototype.drawArc=function(e,t,n,s){if(null!==this.data.attributes.context){var i,o=Math.max(this.data.attributes.outer_radius,this.data.attributes.item_size/2);r||this.data.attributes.context.clearRect(e-o,t-o,2*o,2*o),this.config.use_background&&(this.data.attributes.context.beginPath(),this.data.attributes.context.arc(e,t,this.data.attributes.radius,0,2*Math.PI,!1),this.data.attributes.context.lineWidth=this.data.attributes.line_width*this.config.bg_width,this.data.attributes.context.strokeStyle=this.config.circle_bg_color,this.data.attributes.context.stroke()),o=-.5*Math.PI+this.config.start_angle/360*2*Math.PI,i=2*s*Math.PI,"Both"===this.config.direction?(s=!1,o-=i/2,i=o+i):"Clockwise"===this.config.direction?(s=!1,i=o+i):(s=!0,i=o-i),this.data.attributes.context.beginPath(),this.data.attributes.context.arc(e,t,this.data.attributes.radius,o,i,s),this.data.attributes.context.lineWidth=this.data.attributes.line_width,this.data.attributes.context.strokeStyle=n,this.data.attributes.context.stroke()}},t.prototype.radialFade=function(e,t,s,o,i){var a,r=u(s),c=this;s=.2*(1===o?-1:1);for(a=0;1>=o&&0<=o;a++)(function(){var s="rgba("+r.r+", "+r.g+", "+r.b+", "+Math.round(10*o)/10+")";n.setTimeout(function(){c.drawArc(e,t,s,1)},50*a)})(),o+=s;n.setTimeout(function(){c.data.state.fading[i]=!1},50*a)},t.prototype.timeLeft=function(){return this.data.paused&&"number"==typeof this.data.timer?this.data.timer:(this.data.attributes.ref_date-new Date)/1e3},t.prototype.start=function(){n.cancelAnimationFrame(this.data.animation_frame),n.clearTimeout(this.data.animation_frame);var t,o,s=e(this.element).data("date");"undefined"==typeof s&&(s=e(this.element).attr("data-date")),"string"==typeof s?(o=this.data.attributes,t=s.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{1,2}:[0-9]{2}:[0-9]{2}$/),null!==t&&0<t.length?(t=s.split(" "),s=t[0].split("-"),t=t[1].split(":"),s=new Date(s[0],s[1]-1,s[2],t[0],t[1],t[2])):(t=Date.parse(s),isNaN(t)?(t=Date.parse(s.replace(/-/g,"/").replace("T"," ")),s=isNaN(t)?new Date:t):s=t),o.ref_date=s):"number"==typeof this.data.timer?this.data.paused&&(this.data.attributes.ref_date=(new Date).getTime()+1e3*this.data.timer):(o=e(this.element).data("timer"),"undefined"==typeof o&&(o=e(this.element).attr("data-timer")),"string"==typeof o&&(o=parseFloat(o)),"number"==typeof o?(this.data.timer=o,this.data.attributes.ref_date=(new Date).getTime()+1e3*o):this.data.attributes.ref_date=this.config.ref_date),this.data.paused=!1,this.update.call(this)},t.prototype.restart=function(){this.data.timer=!1,this.start()},t.prototype.stop=function(){"number"==typeof this.data.timer&&(this.data.timer=this.timeLeft(this)),this.data.paused=!0,n.cancelAnimationFrame(this.data.animation_frame)},t.prototype.destroy=function(){this.clearListeners(),this.stop(),n.clearInterval(this.data.interval_fallback),this.data.interval_fallback=null,this.container.remove(),e(this.element).removeAttr("data-tc-id"),e(this.element).removeData("tc-id")},t.prototype.setOptions=function(t){if(null===this.config&&(this.default_options.ref_date=new Date,this.config=e.extend(!0,{},this.default_options)),e.extend(!0,this.config,t),n=this.config.use_top_frame?window.top:window,"undefined"!=typeof n.TC_Instance_List?a=n.TC_Instance_List:n.TC_Instance_List=a,h(n),this.data.total_duration=this.config.total_duration,"string"==typeof this.data.total_duration)if("undefined"!=typeof o[this.data.total_duration])this.data.total_duration=o[this.data.total_duration];else if("Auto"===this.data.total_duration){for(t=0;t<Object.keys(this.config.time).length;t++){var s=Object.keys(this.config.time)[t];if(this.config.time[s].show){this.data.total_duration=o[d[s]];break}}}else this.data.total_duration=o.Years,console.error("Valid values for TimeCircles config.total_duration are either numeric, or (string) Years, Months, Days, Hours, Minutes, Auto")},t.prototype.addListener=function(e,t,n){"function"==typeof e&&("undefined"==typeof n&&(n="visible"),this.listeners[n].push({func:e,scope:t}))},t.prototype.notifyListeners=function(e,t,n,s){for(var i,o=0;o<this.listeners[s].length;o++)i=this.listeners[s][o],i.func.apply(i.scope,[e,t,n])},t.prototype.default_options={ref_date:new Date,start:!0,animation:"smooth",count_past_zero:!0,circle_bg_color:"#60686F",use_background:!0,fg_width:.1,bg_width:1.2,text_size:.07,total_duration:"Auto",direction:"Clockwise",use_top_frame:!1,start_angle:0,time:{Days:{show:!0,text:"Days",color:"#FC6"},Hours:{show:!0,text:"Hours",color:"#9CF"},Minutes:{show:!0,text:"Minutes",color:"#BFB"},Seconds:{show:!0,text:"Seconds",color:"#F99"}}},s=function(e,t){this.elements=e,this.options=t,this.foreach()},s.prototype.getInstance=function(n){if(s=e(n).data("tc-id"),"undefined"==typeof s&&(s=i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i(),e(n).attr("data-tc-id",s)),"undefined"==typeof a[s]){var s,r=this.options,o=e(n).data("options");"string"==typeof o&&(o=JSON.parse(o)),"object"==typeof o&&(r=e.extend(!0,{},this.options,o)),n=new t(n,r),a[s]=n}else n=a[s],"undefined"!=typeof this.options&&n.setOptions(this.options);return n},s.prototype.addTime=function(e){this.foreach(function(t){t.addTime(e)})},s.prototype.foreach=function(e){var t=this;return this.elements.each(function(){var n=t.getInstance(this);"function"==typeof e&&e(n)}),this},s.prototype.start=function(){return this.foreach(function(e){e.start()}),this},s.prototype.stop=function(){return this.foreach(function(e){e.stop()}),this},s.prototype.restart=function(){return this.foreach(function(e){e.restart()}),this},s.prototype.rebuild=function(){return this.foreach(function(e){e.initialize(!1)}),this},s.prototype.getTime=function(){return this.getInstance(this.elements[0]).timeLeft()},s.prototype.addListener=function(e,t){"undefined"==typeof t&&(t="visible");var n=this;return this.foreach(function(s){s.addListener(e,n.elements,t)}),this},s.prototype.destroy=function(){return this.foreach(function(e){e.destroy()}),this},s.prototype.end=function(){return this.elements},e.fn.TimeCircles=function(e){return new s(this,e)}}(jQuery),!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(){"use strict";function t(t,s){if(this.el=t,this.$el=e(t),this.s=e.extend({},n,s),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=e(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(e(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var n={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};t.prototype.init=function(){var n,t=this;t.s.preload>t.$items.length&&(t.s.preload=t.$items.length),n=window.location.hash,n.indexOf("lg="+this.s.galleryId)>0&&(t.index=parseInt(n.split("&slide=")[1],10),e("body").addClass("lg-from-hash"),e("body").hasClass("lg-on")||(setTimeout(function(){t.build(t.index)}),e("body").addClass("lg-on"))),t.s.dynamic?(t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||0,e("body").hasClass("lg-on")||setTimeout(function(){t.build(t.index),e("body").addClass("lg-on")})):t.$items.on("click.lgcustom",function(n){try{n.preventDefault(),n.preventDefault()}catch{n.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||t.$items.index(this),e("body").hasClass("lg-on")||(t.build(t.index),e("body").addClass("lg-on"))})},t.prototype.build=function(t){var n=this;n.structure(),e.each(e.fn.lightGallery.modules,function(t){n.modules[t]=new e.fn.lightGallery.modules[t](n.el)}),n.slide(t,!1,!1,!1),n.s.keyPress&&n.keyPress(),n.$items.length>1?(n.arrow(),setTimeout(function(){n.enableDrag(),n.enableSwipe()},50),n.s.mousewheel&&n.mousewheel()):n.$slide.on("click.lg",function(){n.$el.trigger("onSlideClick.lg")}),n.counter(),n.closeGallery(),n.$el.trigger("onAfterOpen.lg"),n.$outer.on("mousemove.lg click.lg touchstart.lg",function(){n.$outer.removeClass("lg-hide-items"),clearTimeout(n.hideBartimeout),n.hideBartimeout=setTimeout(function(){n.$outer.addClass("lg-hide-items")},n.s.hideBarsDelay)}),n.$outer.trigger("mousemove.lg")},t.prototype.structure=function(){var s,o,i="",a="",t=0,r="",n=this;for(e("body").append('<div class="lg-backdrop"></div>'),e(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),t=0;t<this.$items.length;t++)i+='<div class="lg-item"></div>';(this.s.controls&&this.$items.length>1&&(a='<div class="lg-actions"><button class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(r='<div class="lg-sub-html"></div>'),o='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+i+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+a+r+"</div></div>",e("body").append(o),this.$outer=e(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),n.setTop(),e(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){n.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss())&&(s=this.$outer.find(".lg-inner"),s.css("transition-timing-function",this.s.cssEasing),s.css("transition-duration",this.s.speed+"ms")),setTimeout(function(){e(".lg-backdrop").addClass("in")}),setTimeout(function(){n.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=e(window).scrollTop()},t.prototype.setTop=function(){if("100%"!==this.s.height){var t=e(window).height(),s=(t-parseInt(this.s.height,10))/2,n=this.$outer.find(".lg");t>=parseInt(this.s.height,10)?n.css("top",s+"px"):n.css("top","0px")}},t.prototype.doCss=function(){var e=function(){var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],n=document.documentElement,e=0;for(e=0;e<t.length;e++)if(t[e]in n.style)return!0};return!!e()},t.prototype.isVideo=function(e,t){if(n=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html"),!e)return n?{html5:!0}:(console.error("lightGallery :- data-src is not pvovided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var n,s=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9-_%]+)/i),o=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z-_]+)/i),i=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z-_]+)/i),a=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return s?{youtube:s}:o?{vimeo:o}:i?{dailymotion:i}:a?{vk:a}:void 0},t.prototype.counter=function(){this.s.counter&&e(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},t.prototype.addHtml=function(t){var s,o,i,n=null;(this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?s=this.s.dynamicEl[t].subHtmlUrl:n=this.s.dynamicEl[t].subHtml:(o=this.$items.eq(t),o.attr("data-sub-html-url")?s=o.attr("data-sub-html-url"):(n=o.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!n&&(n=o.attr("title")||o.find("img").first().attr("alt")))),!s)&&("undefined"!=typeof n&&null!==n?(i=n.substring(0,1),"."!==i&&"#"!==i||(n=this.s.subHtmlSelectorRelative&&!this.s.dynamic?o.find(n).html():e(n).html())):n=""),".lg-sub-html"===this.s.appendSubHtmlTo?s?this.$outer.find(this.s.appendSubHtmlTo).load(s):this.$outer.find(this.s.appendSubHtmlTo).html(n):s?this.$slide.eq(t).load(s):this.$slide.eq(t).append(n),"undefined"!=typeof n&&null!==n&&(""===n?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[t])},t.prototype.preload=function(e){var t=1,n=1;for(t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(n=1;n<=this.s.preload&&!(e-n<0);n++)this.loadContent(e-n,!1,0)},t.prototype.loadContent=function(t,n,s){var i,a,r,c,l,u,h,m,f,g,v,o=this,d=!1,p=function(t){for(var n,s,c,o=[],r=[],i=0;i<t.length;i++)n=t[i].split(" "),""===n[0]&&n.splice(0,1),r.push(n[0]),o.push(n[1]);for(c=e(window).width(),s=0;s<o.length;s++)if(parseInt(o[s],10)>c){a=r[s];break}};if(o.s.dynamic?((o.s.dynamicEl[t].poster&&(d=!0,m=o.s.dynamicEl[t].poster),h=o.s.dynamicEl[t].html,a=o.s.dynamicEl[t].src,o.s.dynamicEl[t].responsive)&&(g=o.s.dynamicEl[t].responsive.split(","),p(g)),r=o.s.dynamicEl[t].srcset,c=o.s.dynamicEl[t].sizes):((o.$items.eq(t).attr("data-poster")&&(d=!0,m=o.$items.eq(t).attr("data-poster")),h=o.$items.eq(t).attr("data-html"),a=o.$items.eq(t).attr("href")||o.$items.eq(t).attr("data-src"),o.$items.eq(t).attr("data-responsive"))&&(v=o.$items.eq(t).attr("data-responsive").split(","),p(v)),r=o.$items.eq(t).attr("data-srcset"),c=o.$items.eq(t).attr("data-sizes")),u=!1,o.s.dynamic?o.s.dynamicEl[t].iframe&&(u=!0):"true"===o.$items.eq(t).attr("data-iframe")&&(u=!0),i=o.isVideo(a,t),!o.$slide.eq(t).hasClass("lg-loaded")){if(u?o.$slide.eq(t).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+o.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+a+'"  allowfullscreen="true"></iframe></div></div>'):d?(f="",f=i&&i.youtube?"lg-has-youtube":i&&i.vimeo?"lg-has-vimeo":"lg-has-html5",o.$slide.eq(t).prepend('<div class="lg-video-cont '+f+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+m+'" /></div></div>')):i?(o.$slide.eq(t).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),o.$el.trigger("hasVideo.lg",[t,a,h])):o.$slide.eq(t).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+a+'" /></div>'),o.$el.trigger("onAferAppendSlide.lg",[t]),l=o.$slide.eq(t).find(".lg-object"),c&&l.attr("sizes",c),r){l.attr("srcset",r);try{picturefill({elements:[l[0]]})}catch{console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&o.addHtml(t),o.$slide.eq(t).addClass("lg-loaded")}o.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){var n=0;s&&!e("body").hasClass("lg-from-hash")&&(n=s),setTimeout(function(){o.$slide.eq(t).addClass("lg-complete"),o.$el.trigger("onSlideItemLoad.lg",[t,s||0])},n)}),i&&i.html5&&!d&&o.$slide.eq(t).addClass("lg-complete"),n===!0&&(o.$slide.eq(t).hasClass("lg-complete")?o.preload(t):o.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){o.preload(t)}))},t.prototype.slide=function(t,n,s,o){var r,c,l,d,u,a=this.$outer.find(".lg-current").index(),i=this;(!i.lGalleryOn||a!==t)&&(r=this.$slide.length,u=i.lGalleryOn?this.s.speed:0,i.lgBusy||(this.s.download&&(d=i.s.dynamic?i.s.dynamicEl[t].downloadUrl!==!1&&(i.s.dynamicEl[t].downloadUrl||i.s.dynamicEl[t].src):"false"!==i.$items.eq(t).attr("data-download-url")&&(i.$items.eq(t).attr("data-download-url")||i.$items.eq(t).attr("href")||i.$items.eq(t).attr("data-src")),d?(e("#lg-download").attr("href",d),i.$outer.removeClass("lg-hide-download")):i.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[a,t,n,s]),i.lgBusy=!0,clearTimeout(i.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){i.addHtml(t)},u),this.arrowDisable(t),o||(t<a?o="prev":t>a&&(o="next")),n?(this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),r>2?(c=t-1,l=t+1,0===t&&a===r-1?(l=0,c=r-1):t===r-1&&0===a&&(l=0,c=r-1)):(c=0,l=1),"prev"===o?i.$slide.eq(l).addClass("lg-next-slide"):i.$slide.eq(c).addClass("lg-prev-slide"),i.$slide.eq(t).addClass("lg-current")):(i.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===o?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(a).addClass("lg-next-slide")):(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(a).addClass("lg-prev-slide")),setTimeout(function(){i.$slide.removeClass("lg-current"),i.$slide.eq(t).addClass("lg-current"),i.$outer.removeClass("lg-no-trans")},50)),i.lGalleryOn?(setTimeout(function(){i.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){i.lgBusy=!1,i.$el.trigger("onAfterSlide.lg",[a,t,n,s])},this.s.speed)):(i.loadContent(t,!0,i.s.backdropDuration),i.lgBusy=!1,i.$el.trigger("onAfterSlide.lg",[a,t,n,s])),i.lGalleryOn=!0,this.s.counter&&e("#lg-counter-current").text(t+1)),i.index=t)},t.prototype.goToNextSlide=function(e){var t=this,n=t.s.loop;e&&t.$slide.length<3&&(n=!1),t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):n?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))},t.prototype.goToPrevSlide=function(e){var t=this,n=t.s.loop;e&&t.$slide.length<3&&(n=!1),t.lgBusy||(t.index>0?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):n?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var t=this;this.$items.length>1&&e(window).on("keyup.lg",function(e){t.$items.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}),e(window).on("keydown.lg",function(e){t.s.escKey===!0&&27===e.keyCode&&(e.preventDefault(),t.$outer.hasClass("lg-thumb-open")?t.$outer.removeClass("lg-thumb-open"):t.destroy())})},t.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},t.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),e>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},t.prototype.setTranslate=function(e,t,n){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+n+"px, 0px)"})},t.prototype.touchMove=function(t,n){var s=n-t;Math.abs(s)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),s,0),this.setTranslate(e(".lg-prev-slide"),-this.$slide.eq(this.index).width()+s,0),this.setTranslate(e(".lg-next-slide"),this.$slide.eq(this.index).width()+s,0))},t.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):e>0&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},t.prototype.enableSwipe=function(){var e=this,t=0,n=0,s=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",function(n){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(n.preventDefault(),e.manageSwipeClass(),t=n.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(o){e.$outer.hasClass("lg-zoomed")||(o.preventDefault(),n=o.originalEvent.targetTouches[0].pageX,e.touchMove(t,n),s=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(s?(s=!1,e.touchEnd(n-t)):e.$el.trigger("onSlideClick.lg"))}))},t.prototype.enableDrag=function(){var t=this,s=0,o=0,n=!1,i=!1;t.s.enableDrag&&t.doCss()&&(t.$slide.on("mousedown.lg",function(o){t.$outer.hasClass("lg-zoomed")||(e(o.target).hasClass("lg-object")||e(o.target).hasClass("lg-video-play"))&&(o.preventDefault(),t.lgBusy||(t.manageSwipeClass(),s=o.pageX,n=!0,t.$outer.scrollLeft+=1,t.$outer.scrollLeft-=1,t.$outer.removeClass("lg-grab").addClass("lg-grabbing"),t.$el.trigger("onDragstart.lg")))}),e(window).on("mousemove.lg",function(e){n&&(i=!0,o=e.pageX,t.touchMove(s,o),t.$el.trigger("onDragmove.lg"))}),e(window).on("mouseup.lg",function(a){i?(i=!1,t.touchEnd(o-s),t.$el.trigger("onDragend.lg")):(e(a.target).hasClass("lg-object")||e(a.target).hasClass("lg-video-play"))&&t.$el.trigger("onSlideClick.lg"),n&&(n=!1,t.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},t.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?e=this.$slide.length-1:this.index===this.$slide.length-1&&(t=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(t).addClass("lg-next-slide")},t.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},t.prototype.closeGallery=function(){var t=this,n=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()}),t.s.closable&&(t.$outer.on("mousedown.lg",function(t){n=!!(e(t.target).is(".lg-outer")||e(t.target).is(".lg-item ")||e(t.target).is(".lg-img-wrap"))}),t.$outer.on("mouseup.lg",function(s){(e(s.target).is(".lg-outer")||e(s.target).is(".lg-item ")||e(s.target).is(".lg-img-wrap")&&n)&&(t.$outer.hasClass("lg-dragging")||t.destroy())}))},t.prototype.destroy=function(t){var n=this;t||(n.$el.trigger("onBeforeClose.lg"),e(window).scrollTop(n.prevScrollTop)),t&&(n.s.dynamic||this.$items.off("click.lg click.lgcustom"),e.removeData(n.el,"lightGallery")),this.$el.off(".lg.tm"),e.each(e.fn.lightGallery.modules,function(e){n.modules[e]&&n.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(n.hideBartimeout),this.hideBartimeout=!1,e(window).off(".lg"),e("body").removeClass("lg-on lg-from-hash"),n.$outer&&n.$outer.removeClass("lg-visible"),e(".lg-backdrop").removeClass("in"),setTimeout(function(){n.$outer&&n.$outer.remove(),e(".lg-backdrop").remove(),t||n.$el.trigger("onCloseAfter.lg")},n.s.backdropDuration+50)},e.fn.lightGallery=function(n){return this.each(function(){if(e.data(this,"lightGallery"))try{e(this).data("lightGallery").init()}catch{console.error("lightGallery has not initiated properly")}else e.data(this,"lightGallery",new t(this,n))})},e.fn.lightGallery.modules={}}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},t=function(t){return this.core=e(t).data("lightGallery"),this.$el=e(t),!(this.core.$items.length<2)&&(this.core.s=e.extend({},n,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};t.prototype.init=function(){var e=this;e.core.s.autoplayControls&&e.controls(),e.core.s.progressBar&&e.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),e.progress(),e.core.s.autoplay&&e.$el.one("onSlideItemLoad.lg.tm",function(){e.startlAuto()}),e.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){e.interval&&(e.cancelAuto(),e.canceledOnTouch=!0)}),e.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!e.interval&&e.canceledOnTouch&&(e.startlAuto(),e.canceledOnTouch=!1)})},t.prototype.progress=function(){var t,n,e=this;e.$el.on("onBeforeSlide.lg.tm",function(){e.core.s.progressBar&&e.fromAuto&&(t=e.core.$outer.find(".lg-progress-bar"),n=e.core.$outer.find(".lg-progress"),e.interval&&(n.removeAttr("style"),t.removeClass("lg-start"),setTimeout(function(){n.css("transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),t.addClass("lg-start")},20))),e.fromAuto||e.core.s.fourceAutoplay||e.cancelAuto(),e.fromAuto=!1})},t.prototype.controls=function(){var t=this,n='<span class="lg-autoplay-button lg-icon"></span>';e(this.core.s.appendAutoplayControlsTo).append(n),t.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){e(t.core.$outer).hasClass("lg-show-autoplay")?(t.cancelAuto(),t.core.s.fourceAutoplay=!1):t.interval||(t.startlAuto(),t.core.s.fourceAutoplay=t.fourceAutoplayTemp)})},t.prototype.startlAuto=function(){var e=this;e.core.$outer.find(".lg-progress").css("transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),e.core.$outer.addClass("lg-show-autoplay"),e.core.$outer.find(".lg-progress-bar").addClass("lg-start"),e.interval=setInterval(function(){e.core.index+1<e.core.$items.length?e.core.index++:e.core.index=0,e.fromAuto=!0,e.core.slide(e.core.index,!1,!1,"next")},e.core.s.speed+e.core.s.pause)},t.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},t.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},e.fn.lightGallery.modules.autoplay=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={fullScreen:!0},t=function(t){return this.core=e(t).data("lightGallery"),this.$el=e(t),this.core.s=e.extend({},n,this.core.s),this.init(),this};t.prototype.init=function(){var e="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;e='<span class="lg-fullscreen lg-icon"></span>',this.core.$outer.find(".lg-toolbar").append(e),this.fullScreen()}},t.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){window.fullScreen?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():null},t.prototype.fullScreen=function(){var t=this;e(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){t.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?t.exitFullscreen():t.requestFullscreen()})},t.prototype.destroy=function(){this.exitFullscreen(),e(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},e.fn.lightGallery.modules.fullscreen=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={pager:!1},t=function(t){return this.core=e(t).data("lightGallery"),this.$el=e(t),this.core.s=e.extend({},n,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};t.prototype.init=function(){var n,s,o,a,t=this,i="";if(t.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),t.core.s.dynamic)for(o=0;o<t.core.s.dynamicEl.length;o++)i+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+t.core.s.dynamicEl[o].thumb+'" /></div></span>';else t.core.$items.each(function(){i+=t.core.s.exThumbImage?'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e(this).attr(t.core.s.exThumbImage)+'" /></div></span>':'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e(this).find("img").attr("src")+'" /></div></span>'});n=t.core.$outer.find(".lg-pager-outer"),n.html(i),s=t.core.$outer.find(".lg-pager-cont"),s.on("click.lg touchend.lg",function(){var n=e(this);t.core.index=n.index(),t.core.slide(t.core.index,!1,!0,!1)}),n.on("mouseover.lg",function(){clearTimeout(a),n.addClass("lg-pager-hover")}),n.on("mouseout.lg",function(){a=setTimeout(function(){n.removeClass("lg-pager-hover")})}),t.core.$el.on("onBeforeSlide.lg.tm",function(e,t,n){s.removeClass("lg-pager-active"),s.eq(n).addClass("lg-pager-active")})},t.prototype.destroy=function(){},e.fn.lightGallery.modules.pager=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},t=function(t){return this.core=e(t).data("lightGallery"),this.core.s=e.extend({},n,this.core.s),this.$el=e(t),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this};t.prototype.init=function(){var e=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){e.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},t.prototype.build=function(){function i(e,n,s){var r,i=t.core.isVideo(e,s)||{},c="";i.youtube||i.vimeo||i.dailymotion?i.youtube?r=t.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+i.youtube[1]+"/"+t.core.s.youtubeThumbSize+".jpg":n:i.vimeo?t.core.s.loadVimeoThumbnail?(r="//i.vimeocdn.com/video/error_"+o+".jpg",c=i.vimeo[1]):r=n:i.dailymotion&&(r=t.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+i.dailymotion[1]:n):r=n,a+='<div data-vimeo-id="'+c+'" class="lg-thumb-item" style="width:'+t.core.s.thumbWidth+"px; height: "+t.core.s.thumbHeight+"; margin-right: "+t.core.s.thumbMargin+'px"><img src="'+r+'" /></div>',c=""}var n,s,t=this,a="",o="",r='<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":o="640";break;case"thumbnail_medium":o="200x150";break;case"thumbnail_small":o="100x75"}if(t.core.$outer.addClass("lg-has-thumb"),t.core.$outer.find(".lg").append(r),t.$thumbOuter=t.core.$outer.find(".lg-thumb-outer"),t.thumbOuterWidth=t.$thumbOuter.width(),t.core.s.animateThumb&&t.core.$outer.find(".lg-thumb").css({width:t.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&t.$thumbOuter.css("height",t.core.s.thumbContHeight+"px"),t.core.s.dynamic)for(s=0;s<t.core.s.dynamicEl.length;s++)i(t.core.s.dynamicEl[s].src,t.core.s.dynamicEl[s].thumb,s);else t.core.$items.each(function(n){t.core.s.exThumbImage?i(e(this).attr("href")||e(this).attr("data-src"),e(this).attr(t.core.s.exThumbImage),n):i(e(this).attr("href")||e(this).attr("data-src"),e(this).find("img").attr("src"),n)});t.core.$outer.find(".lg-thumb").html(a),n=t.core.$outer.find(".lg-thumb-item"),n.each(function(){var n=e(this),s=n.attr("data-vimeo-id");s&&e.getJSON("//www.vimeo.com/api/v2/video/"+s+".json?callback=?",{format:"json"},function(e){n.find("img").attr("src",e[0][t.core.s.vimeoThumbSize])})}),n.eq(t.core.index).addClass("active"),t.core.$el.on("onBeforeSlide.lg.tm",function(){n.removeClass("active"),n.eq(t.core.index).addClass("active")}),n.on("click.lg touchend.lg",function(){var n=e(this);setTimeout(function(){(t.thumbClickable&&!t.core.lgBusy||!t.core.doCss())&&(t.core.index=n.index(),t.core.slide(t.core.index,!1,!0,!1))},50)}),t.core.$el.on("onBeforeSlide.lg.tm",function(){t.animateThumb(t.core.index)}),e(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){t.animateThumb(t.core.index),t.thumbOuterWidth=t.$thumbOuter.width()},200)})},t.prototype.setTranslate=function(e){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+e+"px, 0px, 0px)"})},t.prototype.animateThumb=function(e){var t,n=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){switch(this.core.s.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*e-1-t,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(n.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||n.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||n.css("left",-this.left+"px"),this.setTranslate(this.left)}},t.prototype.enableThumbDrag=function(){var t=this,o=0,i=0,s=!1,a=!1,n=0;t.$thumbOuter.addClass("lg-grab"),t.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(e){t.thumbTotalWidth>t.thumbOuterWidth&&(e.preventDefault(),o=e.pageX,s=!0,t.core.$outer.scrollLeft+=1,t.core.$outer.scrollLeft-=1,t.thumbClickable=!1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),e(window).on("mousemove.lg.thumb",function(e){s&&(n=t.left,a=!0,i=e.pageX,t.$thumbOuter.addClass("lg-dragging"),n-=i-o,n>t.thumbTotalWidth-t.thumbOuterWidth&&(n=t.thumbTotalWidth-t.thumbOuterWidth),n<0&&(n=0),t.setTranslate(n))}),e(window).on("mouseup.lg.thumb",function(){a?(a=!1,t.$thumbOuter.removeClass("lg-dragging"),t.left=n,Math.abs(i-o)<t.core.s.swipeThreshold&&(t.thumbClickable=!0)):t.thumbClickable=!0,s&&(s=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},t.prototype.enableThumbSwipe=function(){var e=this,n=0,s=0,o=!1,t=0;e.core.$outer.find(".lg-thumb").on("touchstart.lg",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),n=t.originalEvent.targetTouches[0].pageX,e.thumbClickable=!1)}),e.core.$outer.find(".lg-thumb").on("touchmove.lg",function(i){e.thumbTotalWidth>e.thumbOuterWidth&&(i.preventDefault(),s=i.originalEvent.targetTouches[0].pageX,o=!0,e.$thumbOuter.addClass("lg-dragging"),t=e.left,t-=s-n,t>e.thumbTotalWidth-e.thumbOuterWidth&&(t=e.thumbTotalWidth-e.thumbOuterWidth),t<0&&(t=0),e.setTranslate(t))}),e.core.$outer.find(".lg-thumb").on("touchend.lg",function(){e.thumbTotalWidth>e.thumbOuterWidth&&o?(o=!1,e.$thumbOuter.removeClass("lg-dragging"),Math.abs(s-n)<e.core.s.swipeThreshold&&(e.thumbClickable=!0),e.left=t):e.thumbClickable=!0})},t.prototype.toogle=function(){var e=this;e.core.s.toogleThumb&&(e.core.$outer.addClass("lg-can-toggle"),e.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>'),e.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){e.core.$outer.toggleClass("lg-thumb-open")}))},t.prototype.thumbkeyPress=function(){var t=this;e(window).on("keydown.lg.thumb",function(e){38===e.keyCode?(e.preventDefault(),t.core.$outer.addClass("lg-thumb-open")):40===e.keyCode&&(e.preventDefault(),t.core.$outer.removeClass("lg-thumb-open"))})},t.prototype.destroy=function(){this.core.s.thumbnail&&this.core.$items.length>1&&(e(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},e.fn.lightGallery.modules.Thumbnail=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={videoMaxWidth:"855px",youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},t=function(t){return this.core=e(t).data("lightGallery"),this.$el=e(t),this.core.s=e.extend({},n,this.core.s),this.videoLoaded=!1,this.init(),this};t.prototype.init=function(){var n,t=this;t.core.$el.on("hasVideo.lg.tm",function(e,n,s,o){if(t.core.$slide.eq(n).find(".lg-video").append(t.loadVideo(s,"lg-object",!0,n,o)),o)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(n).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){t.videoLoaded||this.play()})}catch{console.error("Make sure you have included videojs")}else t.videoLoaded||t.core.$slide.eq(n).find(".lg-html5").get(0).play()}),t.core.$el.on("onAferAppendSlide.lg.tm",function(e,n){var s=t.core.$slide.eq(n).find(".lg-video-cont");s.hasClass("lg-has-iframe")||(s.css("max-width",t.core.s.videoMaxWidth),t.videoLoaded=!0)}),n=function(e){if(e.find(".lg-object").hasClass("lg-has-poster")&&e.find(".lg-object").is(":visible"))if(e.hasClass("lg-has-video")){var n,s,i,l,a=e.find(".lg-youtube").get(0),r=e.find(".lg-vimeo").get(0),c=e.find(".lg-dailymotion").get(0),o=e.find(".lg-html5").get(0);if(a)a.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(r)try{$f(r).api("play")}catch{console.error("Make sure you have included froogaloop2 js")}else if(c)c.contentWindow.postMessage("play","*");else if(o)if(t.core.s.videojs)try{videojs(o).play()}catch{console.error("Make sure you have included videojs")}else o.play();e.addClass("lg-video-playing")}else e.addClass("lg-video-playing lg-has-video"),i=function(n,s){if(e.find(".lg-video").append(t.loadVideo(n,"",!1,t.core.index,s)),s)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(t.core.index).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){this.play()})}catch{console.error("Make sure you have included videojs")}else t.core.$slide.eq(t.core.index).find(".lg-html5").get(0).play()},t.core.s.dynamic?(n=t.core.s.dynamicEl[t.core.index].src,s=t.core.s.dynamicEl[t.core.index].html,i(n,s)):(n=t.core.$items.eq(t.core.index).attr("href")||t.core.$items.eq(t.core.index).attr("data-src"),s=t.core.$items.eq(t.core.index).attr("data-html"),i(n,s)),l=e.find(".lg-object"),e.find(".lg-video").append(l),e.find(".lg-video-object").hasClass("lg-html5")||(e.removeClass("lg-complete"),e.find(".lg-video-object").on("load.lg error.lg",function(){e.addClass("lg-complete")}))},t.core.doCss()&&t.core.$items.length>1&&(t.core.s.enableSwipe||t.core.s.enableDrag)?t.core.$el.on("onSlideClick.lg.tm",function(){var e=t.core.$slide.eq(t.core.index);n(e)}):t.core.$slide.on("click.lg",function(){n(e(this))}),t.core.$el.on("onBeforeSlide.lg.tm",function(n,s,o){var a,h,i=t.core.$slide.eq(s),l=i.find(".lg-youtube").get(0),d=i.find(".lg-vimeo").get(0),u=i.find(".lg-dailymotion").get(0),r=i.find(".lg-vk").get(0),c=i.find(".lg-html5").get(0);if(l)l.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(d)try{$f(d).api("pause")}catch{console.error("Make sure you have included froogaloop2 js")}else if(u)u.contentWindow.postMessage("pause","*");else if(c)if(t.core.s.videojs)try{videojs(c).pause()}catch{console.error("Make sure you have included videojs")}else c.pause();r&&e(r).attr("src",e(r).attr("src").replace("&autoplay","&noplay")),h=t.core.s.dynamic?t.core.s.dynamicEl[o].src:t.core.$items.eq(o).attr("href")||t.core.$items.eq(o).attr("data-src"),a=t.core.isVideo(h,o)||{},(a.youtube||a.vimeo||a.dailymotion||a.vk)&&t.core.$outer.addClass("lg-hide-download")}),t.core.$el.on("onAfterSlide.lg.tm",function(e,n){t.core.$slide.eq(n).removeClass("lg-video-playing")})},t.prototype.loadVideo=function(t,n,s,o,i){var d,c="",l=1,a="",r=this.core.isVideo(t,o)||{};return s&&(l=this.videoLoaded?0:1),r.youtube?(a="?wmode=opaque&autoplay="+l+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(a=a+"&"+e.param(this.core.s.youtubePlayerParams)),c='<iframe class="lg-video-object lg-youtube '+n+'" width="560" height="315" src="//www.youtube.com/embed/'+r.youtube[1]+a+'" frameborder="0" allowfullscreen></iframe>'):r.vimeo?(a="?autoplay="+l+"&api=1",this.core.s.vimeoPlayerParams&&(a=a+"&"+e.param(this.core.s.vimeoPlayerParams)),c='<iframe class="lg-video-object lg-vimeo '+n+'" width="560" height="315"  src="//player.vimeo.com/video/'+r.vimeo[1]+a+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):r.dailymotion?(a="?wmode=opaque&autoplay="+l+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(a=a+"&"+e.param(this.core.s.dailymotionPlayerParams)),c='<iframe class="lg-video-object lg-dailymotion '+n+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+r.dailymotion[1]+a+'" frameborder="0" allowfullscreen></iframe>'):r.html5?(d=i.substring(0,1),"."!==d&&"#"!==d||(i=e(i).html()),c=i):r.vk&&(a="&autoplay="+l,this.core.s.vkPlayerParams&&(a=a+"&"+e.param(this.core.s.vkPlayerParams)),c='<iframe class="lg-video-object lg-vk '+n+'" width="560" height="315" src="http://vk.com/video_ext.php?'+r.vk[1]+a+'" frameborder="0" allowfullscreen></iframe>'),c},t.prototype.destroy=function(){this.videoLoaded=!1},e.fn.lightGallery.modules.video=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n=function(){var e=!1,t=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return t&&parseInt(t[2],10)<54&&(e=!0),e},s={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:n()},t=function(t){return this.core=e(t).data("lightGallery"),this.core.s=e.extend({},s,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=e(window).width()/2,this.pageY=e(window).height()/2+e(window).scrollTop()),this};t.prototype.init=function(){t=this,o='<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>',t.core.s.actualSize&&(o+='<span id="lg-actual-size" class="lg-icon"></span>'),t.core.s.useLeftForZoom?t.core.$outer.addClass("lg-use-left-for-zoom"):t.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(o),t.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(n,s,o){var i=t.core.s.enableZoomAfter+o;e("body").hasClass("lg-from-hash")&&o?i=0:e("body").removeClass("lg-from-hash"),t.zoomabletimeout=setTimeout(function(){t.core.$slide.eq(s).addClass("lg-zoomable")},i+30)});var t,o,n=1,r=function(n){var s=t.core.$outer.find(".lg-current .lg-image"),c=(e(window).width()-s.prop("offsetWidth"))/2,l=(e(window).height()-s.prop("offsetHeight"))/2+e(window).scrollTop(),a=t.pageX-c,r=t.pageY-l,o=(n-1)*a,i=(n-1)*r;s.css("transform","scale3d("+n+", "+n+", 1)").attr("data-scale",n),t.core.s.useLeftForZoom?s.parent().css({left:-o+"px",top:-i+"px"}).attr("data-x",o).attr("data-y",i):s.parent().css("transform","translate3d(-"+o+"px, -"+i+"px, 0)").attr("data-x",o).attr("data-y",i)},i=function(){n>1?t.core.$outer.addClass("lg-zoomed"):t.resetZoom(),n<1&&(n=1),r(n)},a=function(s,o,a,r){var d,c=o.prop("offsetWidth"),l=t.core.s.dynamic?t.core.s.dynamicEl[a].width||o[0].naturalWidth||c:t.core.$items.eq(a).attr("data-width")||o[0].naturalWidth||c;t.core.$outer.hasClass("lg-zoomed")?n=1:l>c&&(d=l/c,n=d||2),r?(t.pageX=e(window).width()/2,t.pageY=e(window).height()/2+e(window).scrollTop()):(t.pageX=s.pageX||s.originalEvent.targetTouches[0].pageX,t.pageY=s.pageY||s.originalEvent.targetTouches[0].pageY),i(),setTimeout(function(){t.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},s=!1;t.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(e,n){var o=t.core.$slide.eq(n).find(".lg-image");o.on("dblclick",function(e){a(e,o,n)}),o.on("touchstart",function(e){s?(clearTimeout(s),s=null,a(e,o,n)):s=setTimeout(function(){s=null},300),e.preventDefault()})}),e(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){t.pageX=e(window).width()/2,t.pageY=e(window).height()/2+e(window).scrollTop(),r(n)}),e("#lg-zoom-out").on("click.lg",function(){t.core.$outer.find(".lg-current .lg-image").length&&(n-=t.core.s.scale,i())}),e("#lg-zoom-in").on("click.lg",function(){t.core.$outer.find(".lg-current .lg-image").length&&(n+=t.core.s.scale,i())}),e("#lg-actual-size").on("click.lg",function(e){a(e,t.core.$slide.eq(t.core.index).find(".lg-image"),t.core.index,!0)}),t.core.$el.on("onBeforeSlide.lg.tm",function(){n=1,t.resetZoom()}),t.zoomDrag(),t.zoomSwipe()},t.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=e(window).width()/2,this.pageY=e(window).height()/2+e(window).scrollTop()},t.prototype.zoomSwipe=function(){var e=this,t={},n={},i=!1,s=!1,o=!1;e.core.$slide.on("touchstart.lg",function(n){if(e.core.$outer.hasClass("lg-zoomed")){var i=e.core.$slide.eq(e.core.index).find(".lg-object");o=i.prop("offsetHeight")*i.attr("data-scale")>e.core.$outer.find(".lg").height(),s=i.prop("offsetWidth")*i.attr("data-scale")>e.core.$outer.find(".lg").width(),(s||o)&&(n.preventDefault(),t={x:n.originalEvent.targetTouches[0].pageX,y:n.originalEvent.targetTouches[0].pageY})}}),e.core.$slide.on("touchmove.lg",function(a){if(e.core.$outer.hasClass("lg-zoomed")){var c,l,r=e.core.$slide.eq(e.core.index).find(".lg-img-wrap");a.preventDefault(),i=!0,n={x:a.originalEvent.targetTouches[0].pageX,y:a.originalEvent.targetTouches[0].pageY},e.core.$outer.addClass("lg-zoom-dragging"),l=o?-Math.abs(r.attr("data-y"))+(n.y-t.y):-Math.abs(r.attr("data-y")),c=s?-Math.abs(r.attr("data-x"))+(n.x-t.x):-Math.abs(r.attr("data-x")),(Math.abs(n.x-t.x)>15||Math.abs(n.y-t.y)>15)&&(e.core.s.useLeftForZoom?r.css({left:c+"px",top:l+"px"}):r.css("transform","translate3d("+c+"px, "+l+"px, 0)"))}}),e.core.$slide.on("touchend.lg",function(){e.core.$outer.hasClass("lg-zoomed")&&i&&(i=!1,e.core.$outer.removeClass("lg-zoom-dragging"),e.touchendZoom(t,n,s,o))})},t.prototype.zoomDrag=function(){var t=this,s={},n={},o=!1,r=!1,i=!1,a=!1;t.core.$slide.on("mousedown.lg.zoom",function(n){var r=t.core.$slide.eq(t.core.index).find(".lg-object");a=r.prop("offsetHeight")*r.attr("data-scale")>t.core.$outer.find(".lg").height(),i=r.prop("offsetWidth")*r.attr("data-scale")>t.core.$outer.find(".lg").width(),t.core.$outer.hasClass("lg-zoomed")&&e(n.target).hasClass("lg-object")&&(i||a)&&(n.preventDefault(),s={x:n.pageX,y:n.pageY},o=!0,t.core.$outer.scrollLeft+=1,t.core.$outer.scrollLeft-=1,t.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),e(window).on("mousemove.lg.zoom",function(e){if(o){var l,d,c=t.core.$slide.eq(t.core.index).find(".lg-img-wrap");r=!0,n={x:e.pageX,y:e.pageY},t.core.$outer.addClass("lg-zoom-dragging"),d=a?-Math.abs(c.attr("data-y"))+(n.y-s.y):-Math.abs(c.attr("data-y")),l=i?-Math.abs(c.attr("data-x"))+(n.x-s.x):-Math.abs(c.attr("data-x")),t.core.s.useLeftForZoom?c.css({left:l+"px",top:d+"px"}):c.css("transform","translate3d("+l+"px, "+d+"px, 0)")}}),e(window).on("mouseup.lg.zoom",function(e){o&&(o=!1,t.core.$outer.removeClass("lg-zoom-dragging"),!r||s.x===n.x&&s.y===n.y||(n={x:e.pageX,y:e.pageY},t.touchendZoom(s,n,i,a)),r=!1),t.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.touchendZoom=function(e,t,n,s){var o=this,i=o.core.$slide.eq(o.core.index).find(".lg-img-wrap"),c=o.core.$slide.eq(o.core.index).find(".lg-object"),a=-Math.abs(i.attr("data-x"))+(t.x-e.x),r=-Math.abs(i.attr("data-y"))+(t.y-e.y),l=(o.core.$outer.find(".lg").height()-c.prop("offsetHeight"))/2,u=Math.abs(c.prop("offsetHeight")*Math.abs(c.attr("data-scale"))-o.core.$outer.find(".lg").height()+l),d=(o.core.$outer.find(".lg").width()-c.prop("offsetWidth"))/2,h=Math.abs(c.prop("offsetWidth")*Math.abs(c.attr("data-scale"))-o.core.$outer.find(".lg").width()+d);(Math.abs(t.x-e.x)>15||Math.abs(t.y-e.y)>15)&&(s&&(r<=-u?r=-u:r>=-l&&(r=-l)),n&&(a<=-h?a=-h:a>=-d&&(a=-d)),s?i.attr("data-y",Math.abs(r)):r=-Math.abs(i.attr("data-y")),n?i.attr("data-x",Math.abs(a)):a=-Math.abs(i.attr("data-x")),o.core.s.useLeftForZoom?i.css({left:a+"px",top:r+"px"}):i.css("transform","translate3d("+a+"px, "+r+"px, 0)"))},t.prototype.destroy=function(){var t=this;t.core.$el.off(".lg.zoom"),e(window).off(".lg.zoom"),t.core.$slide.off(".lg.zoom"),t.core.$el.off(".lg.tm.zoom"),t.resetZoom(),clearTimeout(t.zoomabletimeout),t.zoomabletimeout=!1},e.fn.lightGallery.modules.zoom=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={hash:!0},t=function(t){return this.core=e(t).data("lightGallery"),this.core.s=e.extend({},n,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};t.prototype.init=function(){var n,t=this;t.core.$el.on("onAfterSlide.lg.tm",function(e,n,s){history.replaceState?history.replaceState(null,null,"#lg="+t.core.s.galleryId+"&slide="+s):window.location.hash="lg="+t.core.s.galleryId+"&slide="+s}),e(window).on("hashchange.lg.hash",function(){n=window.location.hash;var e=parseInt(n.split("&slide=")[1],10);n.indexOf("lg="+t.core.s.galleryId)>-1?t.core.slide(e,!1,!1):t.core.lGalleryOn&&t.core.destroy()})},t.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},e.fn.lightGallery.modules.hash=t}()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(e){!function(){"use strict";var n={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},t=function(t){return this.core=e(t).data("lightGallery"),this.core.s=e.extend({},n,this.core.s),this.core.s.share&&this.init(),this};t.prototype.init=function(){var t=this,n='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';n+=t.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",n+=t.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",n+=t.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",n+=t.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",n+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(n),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),e("#lg-share").on("click.lg",function(){t.core.$outer.toggleClass("lg-dropdown-active")}),e("#lg-dropdown-overlay").on("click.lg",function(){t.core.$outer.removeClass("lg-dropdown-active")}),t.core.$el.on("onAfterSlide.lg.tm",function(n,s,o){setTimeout(function(){e("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(t.getSahreProps(o,"facebookShareUrl")||window.location.href)),e("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+t.getSahreProps(o,"tweetText")+"&url="+encodeURIComponent(t.getSahreProps(o,"twitterShareUrl")||window.location.href)),e("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(t.getSahreProps(o,"googleplusShareUrl")||window.location.href)),e("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(t.getSahreProps(o,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(t.getSahreProps(o,"src"))+"&description="+t.getSahreProps(o,"pinterestText"))},100)})},t.prototype.getSahreProps=function(e,t){if(n="",this.core.s.dynamic)n=this.core.s.dynamicEl[e][t];else{var n,o=this.core.$items.eq(e).attr("href"),s=this.core.$items.eq(e).data(t);n="src"===t?o||s:s}return n},t.prototype.destroy=function(){},e.fn.lightGallery.modules.share=t}()}),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},a=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},i=function(){function e(){}return e.prototype.extend=function(e,t){var n,s;for(n in t)s=t[n],null==e[n]&&(e[n]=s);return e},e.prototype.isMobile=function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},e.prototype.createEvent=function(e,t,n,s){var o;return t==null&&(t=!1),n==null&&(n=!1),s==null&&(s=null),null!=document.createEvent?(o=document.createEvent("CustomEvent"),o.initCustomEvent(e,t,n,s)):null!=document.createEventObject?(o=document.createEventObject(),o.eventType=e):o.eventName=e,o},e.prototype.emitEvent=function(e,t){return null!=e.dispatchEvent?e.dispatchEvent(t):t in(e!=null)?e[t]():"on"+t in(e!=null)?e["on"+t]():void 0},e.prototype.addEvent=function(e,t,n){return null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n},e.prototype.removeEvent=function(e,t,n){return null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]},e.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},e}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function e(){this.keys=[],this.values=[]}return e.prototype.get=function(e){var t,n,s,o,i;for(s=this.keys,t=n=0,i=s.length;i>n;t=++n)if(o=s[t],o===e)return this.values[t]},e.prototype.set=function(e,t){var n,s,o,i,a;for(o=this.keys,n=s=0,a=o.length;a>s;n=++s)if(i=o[n],i===e)return void(this.values[n]=t);return this.keys.push(e),this.values.push(t)},e}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function e(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return e.notSupported=!0,e.prototype.observe=function(){},e}()),s=this.getComputedStyle||function(e){return this.getPropertyValue=function(t){var n;return"float"===t&&(t="styleFloat"),o.test(t)&&t.replace(o,function(e,t){return t.toUpperCase()}),(null!=(n=e.currentStyle)?n[t]:void 0)||null},this},o=/(-([a-z]){1})/g;this.WOW=function(){function o(t){t==null&&(t={}),this.scrollCallback=e(this.scrollCallback,this),this.scrollHandler=e(this.scrollHandler,this),this.resetAnimation=e(this.resetAnimation,this),this.start=e(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return o.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},o.prototype.init=function(){var e;return this.element=window.document.documentElement,"interactive"===(e=document.readyState)||"complete"===e?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},o.prototype.start=function(){var e,n,s,o;if(this.stopped=!1,this.boxes=function(){var t,n,s,o;for(n=this.element.querySelectorAll("."+this.config.boxClass),s=[],t=0,o=n.length;o>t;t++)e=n[t],s.push(e);return s}.call(this),this.all=function(){var t,n,s,o;for(n=this.boxes,s=[],t=0,o=n.length;o>t;t++)e=n[t],s.push(e);return s}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(s=this.boxes,n=0,o=s.length;o>n;n++)e=s[n],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(e){return function(t){var n,s,o,i,a;for(s=[],n=0,o=t.length;o>n;n++)a=t[n],s.push(function(){var e,t,n,s;for(t=a.addedNodes||[],n=[],e=0,s=t.length;s>e;e++)i=t[e],n.push(this.doSync(i));return n}.call(e));return s}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},o.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},o.prototype.doSync=function(e){var t,n,s,o,i;if(e==null&&(e=this.element),1===e.nodeType){for(e=e.parentNode||e,o=e.querySelectorAll("."+this.config.boxClass),s=[],n=0,i=o.length;i>n;n++)t=o[n],a.call(this.all,t)<0?(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},o.prototype.show=function(e){return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(e),this.util().emitEvent(e,this.wowEvent),this.util().addEvent(e,"animationend",this.resetAnimation),this.util().addEvent(e,"oanimationend",this.resetAnimation),this.util().addEvent(e,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(e,"MSAnimationEnd",this.resetAnimation),e},o.prototype.applyStyle=function(e,t){var n,s,o;return s=e.getAttribute("data-wow-duration"),n=e.getAttribute("data-wow-delay"),o=e.getAttribute("data-wow-iteration"),this.animate(function(i){return function(){return i.customStyle(e,t,s,n,o)}}(this))},o.prototype.animate=function(){return"requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()}}(),o.prototype.resetStyle=function(){var e,t,n,s,o;for(t=this.boxes,n=[],e=0,o=t.length;o>e;e++)s=t[e],n.push(s.style.visibility="visible");return n},o.prototype.resetAnimation=function(e){var t;return e.type.toLowerCase().indexOf("animationend")>=0?(t=e.target||e.srcElement,t.className=t.className.replace(this.config.animateClass,"").trim()):void 0},o.prototype.customStyle=function(e,t,n,s,o){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),s&&this.vendorSet(e.style,{animationDelay:s}),o&&this.vendorSet(e.style,{animationIterationCount:o}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e},o.prototype.vendors=["moz","webkit"],o.prototype.vendorSet=function(e,t){var n,s,i,o=[];for(n in t)s=t[n],e[""+n]=s,o.push(function(){var t,o,a,r;for(o=this.vendors,a=[],t=0,r=o.length;r>t;t++)i=o[t],a.push(e[""+i+n.charAt(0).toUpperCase()+n.substr(1)]=s);return a}.call(this));return o},o.prototype.vendorCSS=function(e,t){var n,o,i,a,r,c;for(a=s(e),o=a.getPropertyCSSValue(t),i=this.vendors,n=0,r=i.length;r>n;n++)c=i[n],o=o||a.getPropertyCSSValue("-"+c+"-"+t);return o},o.prototype.animationName=function(e){var t;try{t=this.vendorCSS(e,"animation-name").cssText}catch{t=s(e).getPropertyValue("animation-name")}return"none"===t?"":t},o.prototype.cacheAnimationName=function(e){return this.animationNameCache.set(e,this.animationName(e))},o.prototype.cachedAnimationName=function(e){return this.animationNameCache.get(e)},o.prototype.scrollHandler=function(){return this.scrolled=!0},o.prototype.scrollCallback=function(){var e;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var t,n,s,o;for(n=this.boxes,s=[],t=0,o=n.length;o>t;t++)e=n[t],e&&(this.isVisible(e)?this.show(e):s.push(e));return s}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},o.prototype.offsetTop=function(e){for(var t;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t},o.prototype.isVisible=function(e){var t,n,s,o,i;return o=e.getAttribute("data-wow-offset")||this.config.offset,n=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,i=n+Math.min(this.element.clientHeight,this.util().innerHeight())-o,t=this.offsetTop(e),s=t+e.clientHeight,i>=t&&s>=n},o.prototype.util=function(){return null!=this._util?this._util:this._util=new i},o.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},o}()}.call(this),!function(e){"undefined"==typeof e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var n=e([0]),s=-1,o=this.length;++s<o&&(n.context=n[0]=this[s])&&t.call(n[0],s,n)!==!1;);return this}})}(jQuery),function(e,t){"use strict";function A(t){var n=e(document.createTextNode(""));t.before(n),n.before(t),n.remove()}function l(e){function t(e){return I[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function r(e,t){for(var n=0,s=t.length;s>n;n+=1)if(i(e,t[n]))return n;return-1}function P(){var n,t=e(H);return t.appendTo(document.body),n={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight},t.remove(),n}function i(e,n){return e===n||e!==t&&n!==t&&null!==e&&null!==n&&(e.constructor===String?e+""==n+"":n.constructor===String&&n+""==e+"")}function v(e,t,n){var s,o,i;if(null===e||e.length<1)return[];for(s=e.split(t),o=0,i=s.length;i>o;o+=1)s[o]=n(s[o]);return s}function x(e){return e.outerWidth(!1)-e.width()}function C(n){var s="keyup-change-value";n.on("keydown",function(){e.data(n,s)===t&&e.data(n,s,n.val())}),n.on("keyup",function(){var o=e.data(n,s);o!==t&&n.val()!==o&&(e.removeData(n,s),n.trigger("keyup-change"))})}function D(n){n.on("mousemove",function(n){var s=g;(s===t||s.x!==n.pageX||s.y!==n.pageY)&&e(n.target).trigger("mousemove-filtered",n)})}function b(e,n,s){s=s||t;var o;return function(){var t=arguments;window.clearTimeout(o),o=window.setTimeout(function(){n.apply(s,t)},e)}}function M(e,t){var n=b(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){r(e.target,t.get())>=0&&n(e)})}function S(e){e[0]!==document.activeElement&&window.setTimeout(function(){var n,o,t=e[0],s=e.val().length;e.focus(),o=t.offsetWidth>0||t.offsetHeight>0,o&&t===document.activeElement&&(t.setSelectionRange?t.setSelectionRange(s,s):t.createTextRange&&(n=t.createTextRange(),n.collapse(!1),n.select()))},0)}function z(t){t=e(t)[0];var o,n=0,s=0;return"selectionStart"in t?(n=t.selectionStart,s=t.selectionEnd-n):"selection"in document&&(t.focus(),o=document.selection.createRange(),s=document.selection.createRange().text.length,o.moveStart("character",-t.value.length),n=o.text.length-s),{offset:n,length:s}}function s(e){e.preventDefault(),e.stopPropagation()}function L(e){e.preventDefault(),e.stopImmediatePropagation()}function R(t){if(!c){var n=t[0].currentStyle||window.getComputedStyle(t[0],null);c=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"}),c.attr("class","select2-sizer"),e(document.body).append(c)}return c.text(t.val()),c.width()}function d(t,n,s){var i,a=[],o=e.trim(t.attr("class"));o&&(o=""+o,e(o.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)})),o=e.trim(n.attr("class")),o&&(o=""+o,e(o.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=s(this),i&&a.push(i))})),t.attr("class",a.join(" "))}function j(e,t,n,s){var o=l(e.toUpperCase()).indexOf(l(t.toUpperCase())),i=t.length;return 0>o?void n.push(s(e)):(n.push(s(e.substring(0,o))),n.push("<span class='select2-match'>"),n.push(s(e.substring(o,o+i))),n.push("</span>"),void n.push(s(e.substring(o+i,e.length))))}function y(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'/\\]/g,function(e){return t[e]})}function _(n){var i,s=null,a=n.quietMillis||100,r=n.url,o=this;return function(c){window.clearTimeout(i),i=window.setTimeout(function(){var a=n.data,i=r,d=n.transport||e.fn.select2.ajaxDefaults.transport,u={type:n.type||"GET",cache:n.cache||!1,jsonpCallback:n.jsonpCallback||t,dataType:n.dataType||"json"},l=e.extend({},e.fn.select2.ajaxDefaults.params,u),a=a?a.call(o,c.term,c.page,c.context):null,i="function"==typeof i?i.call(o,c.term,c.page,c.context):i;s&&"function"==typeof s.abort&&s.abort(),n.params&&(e.isFunction(n.params)?e.extend(l,n.params.call(o)):e.extend(l,n.params)),e.extend(l,{url:i,dataType:n.dataType,data:a,success:function(e){var t=n.results(e,c.page,c);c.callback(t)},error:function(e,t,n){var s={hasError:!0,jqXHR:e,textStatus:t,errorThrown:n};c.callback(s)}}),s=d.call(o,l)},a)}}function w(t){var o,i,a,n=t,s=function(e){return""+e.text};return e.isArray(n)&&(o=n,n={results:o}),e.isFunction(n)===!1&&(o=n,n=function(){return o}),i=n(),i.text&&(s=i.text,e.isFunction(s)||(a=i.text,s=function(e){return e[a]})),function(t){var o,i=t.term,a={results:[]};return""===i?void t.callback(n()):(o=function(n,a){var r,c;if(n=n[0],n.children){r={};for(c in n)n.hasOwnProperty(c)&&(r[c]=n[c]);r.children=[],e(n.children).each2(function(e,t){o(t,r.children)}),(r.children.length||t.matcher(i,s(r),n))&&a.push(r)}else t.matcher(i,s(n),n)&&a.push(n)},e(n().results).each2(function(e,t){o(t,a.results)}),void t.callback(a))}}function O(n){var s=e.isFunction(n);return function(o){var i=o.term,a={results:[]},r=s?n(o):n;e.isArray(r)&&(e(r).each(function(){var e=this.text!==t,n=e?this.text:this;(""===i||o.matcher(i,n))&&a.results.push(e?this:{id:this,text:this})}),o.callback(a))}}function a(t,n){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(n+" must be a string, function, or falsy value")}function o(t,n){if(e.isFunction(t)){var s=Array.prototype.slice.call(arguments,2);return t.apply(n,s)}return t}function E(t){var n=0;return e.each(t,function(e,t){t.children?n+=E(t.children):n++}),n}function N(e,n,s,o){var a,r,c,l,d,h=e,u=!1;if(!o.createSearchChoice||!o.tokenSeparators||o.tokenSeparators.length<1)return t;for(;;){for(c=-1,r=0,l=o.tokenSeparators.length;l>r&&(d=o.tokenSeparators[r],c=e.indexOf(d),!(c>=0));r++);if(0>c)break;if(a=e.substring(0,c),e=e.substring(c+d.length),a.length>0&&(a=o.createSearchChoice.call(this,a,n),a!==t&&null!==a&&o.id(a)!==t&&null!==o.id(a))){for(u=!1,r=0,l=n.length;l>r;r++)if(i(o.id(a),o.id(n[r]))){u=!0;break}u||s(a)}}return h!==e?e:void 0}function p(){var t=this;e.each(arguments,function(e,n){t[n].remove(),t[n]=null})}function f(t,n){var s=function(){};return s.prototype=new t,s.prototype.constructor=s,s.prototype.parent=t.prototype,s.prototype=e.extend(s.prototype,n),s}if(window.Select2===t){var c,h,g={x:0,y:0},n={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 n.LEFT:case n.RIGHT:case n.UP:case n.DOWN:return!0}return!1},isControl:function(e){var t=e.which;switch(t){case n.SHIFT:case n.CTRL:case n.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e}},H="<div class='select2-measure-scrollbar'></div>",I={"Ⓐ":"A","Ａ":"A","\xc0":"A","\xc1":"A","\xc2":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","\xc3":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","\xc4":"A","Ǟ":"A","Ả":"A","\xc5":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","\xc6":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","\xc7":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","\xc8":"E","\xc9":"E","\xca":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","\xcb":"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","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","\xcc":"I","\xcd":"I","\xce":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","\xcf":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","\xd1":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","\xd2":"O","\xd3":"O","\xd4":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","\xd5":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","\xd6":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","\xd8":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","\xd9":"U","\xda":"U","\xdb":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","\xdc":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","\xdd":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","\xe0":"a","\xe1":"a","\xe2":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","\xe3":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","\xe4":"a","ǟ":"a","ả":"a","\xe5":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","\xe6":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","\xe7":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","\xe8":"e","\xe9":"e","\xea":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","\xeb":"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","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","\xec":"i","\xed":"i","\xee":"i","ĩ":"i","ī":"i","ĭ":"i","\xef":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","\xf1":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","\xf2":"o","\xf3":"o","\xf4":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","\xf5":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","\xf6":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","\xf8":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","\xdf":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","\xf9":"u","\xfa":"u","\xfb":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","\xfc":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","\xfd":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","\xff":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},k=e(document),u=function(){var e=1;return function(){return e++}}(),m=f(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(n){var i,a,c,l,r=".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.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(n.element.attr("id")||"autogen"+u()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-.+*~':"!^#$%@[\]()=>|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",n.element.attr("title")),this.body=e(document.body),d(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",n.element.attr("style")),this.container.css(o(n.containerCss,this.opts.element)),this.container.addClass(o(n.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",s),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),d(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(o(n.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",s),this.results=i=this.container.find(r),this.search=a=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",s),D(this.results),this.dropdown.on("mousemove-filtered",r,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",r,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",r,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",r,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),M(80,this.results),this.dropdown.on("scroll-debounced",r,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,o){var a=i.scrollTop();o>0&&0>=a-o?(i.scrollTop(0),s(e)):0>o&&i.get(0).scrollHeight-i.scrollTop()+o<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),s(e))}),C(a),a.on("keyup-change input paste",this.bind(this.updateResults)),a.on("focus",function(){a.addClass("select2-focused")}),a.on("blur",function(){a.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,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 touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==n.maximumInputLength&&this.search.attr("maxlength",n.maximumInputLength),c=n.element.prop("disabled"),c===t&&(c=!1),this.enable(!c),l=n.element.prop("readonly"),l===t&&(l=!1),this.readonly(l),h=h||P(),this.autofocus=n.element.prop("autofocus"),n.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",n.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,n=e.data("select2"),s=this;this.close(),e.length&&e[0].detachEvent&&s._sync&&e.each(function(){s._sync&&this.detachEvent("onpropertychange",s._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,n!==t&&(n.container.remove(),n.liveRegion.remove(),n.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),p.call(this,"container","liveRegion","dropdown","results","search")},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:i(e.attr("locked"),"locked")||i(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 s,o,r,c,l,d,a=this;if((c=n.element,"select"===c.get(0).tagName.toLowerCase()&&(this.select=l=n.element),l&&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.debug=n.debug||e.fn.select2.defaults.debug,n.debug&&console&&console.warn&&(null!=n.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=n.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=n.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=n.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=n.ajax&&null!=n.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=n.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=n.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=n.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=n.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=n.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=n.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),n.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=n.element.data("tags"))&&(r=n.element.data("tags"),e.isArray(r)||(r=[]),n.element.data("select2Tags",r)),(null!=n.sorter&&(n.sortResults=n.sorter),null!=n.selectOnClose&&(n.selectOnBlur=n.selectOnClose),null!=n.ajax&&e.isFunction(n.ajax.processResults)&&(n.ajax.results=n.ajax.processResults),null!=n.language)&&(s=n.language,e.isFunction(s.noMatches)&&(n.formatNoMatches=s.noMatches),e.isFunction(s.searching)&&(n.formatSearching=s.searching),e.isFunction(s.inputTooShort)&&(n.formatInputTooShort=s.inputTooShort),e.isFunction(s.inputTooLong)&&(n.formatInputTooLong=s.inputTooLong),e.isFunction(s.loadingMore)&&(n.formatLoading=s.loadingMore),e.isFunction(s.maximumSelected)&&(n.formatSelectionTooBig=s.maximumSelected)),n=e.extend({},{populateResults:function(s,o,i){var r,c=this.opts.id,l=this.liveRegion;(r=function(s,o,d){s=n.sortResults(s,o,i);var h,m,f,p,g,v,b,j,y,_,w=[];for(p=0,y=s.length;y>p;p+=1)m=s[p],v=m.disabled===!0,_=!v&&c(m)!==t,b=m.children&&m.children.length>0,h=e("<li></li>"),h.addClass("select2-results-dept-"+d),h.addClass("select2-result"),h.addClass(_?"select2-result-selectable":"select2-result-unselectable"),v&&h.addClass("select2-disabled"),b&&h.addClass("select2-result-with-children"),h.addClass(a.opts.formatResultCssClass(m)),h.attr("role","presentation"),f=e(document.createElement("div")),f.addClass("select2-result-label"),f.attr("id","select2-result-label-"+u()),f.attr("role","option"),j=n.formatResult(m,f,i,a.opts.escapeMarkup),j!==t&&(f.html(j),h.append(f)),b&&(g=e("<ul></ul>"),g.addClass("select2-result-sub"),r(m.children,g,d+1),h.append(g)),h.data("select2-data",m),w.push(h[0]);o.append(w),l.text(n.formatMatches(s.length))})(o,s,0)}},e.fn.select2.defaults,n),"function"!=typeof n.id&&(d=n.id,n.id=function(e){return e[d]}),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(l?(n.query=this.bind(function(e){var s,i={results:[],more:!1},r=e.term,o=function(t,n){var s;t.is("option")?e.matcher(r,t.text(),t)&&n.push(a.optionToData(t)):t.is("optgroup")&&(s=a.optionToData(t),t.children().each2(function(e,t){o(t,s.children)}),s.children.length>0&&n.push(s))},n=c.children();this.getPlaceholder()!==t&&n.length>0&&(s=this.getPlaceholderOption(),s&&(n=n.not(s))),n.each2(function(e,t){o(t,i.results)}),e.callback(i)}),n.id=function(e){return e.id}):"query"in n||("ajax"in n?(o=n.element.data("ajax-url"),o&&o.length>0&&(n.ajax.url=o),n.query=_.call(n.element,n.ajax)):"data"in n?n.query=w(n.data):"tags"in n&&(n.query=O(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,s){var o=[];e(v(t.val(),n.separator,n.transformVal)).each(function(){var s={id:this,text:this},t=n.tags;e.isFunction(t)&&(t=t()),e(t).each(function(){return i(this.id,s.id)?(s=this,!1):void 0}),o.push(s)}),s(o)}))),"function"!=typeof n.query)throw"query function not defined for Select2 "+n.element.attr("id");if("top"===n.createSearchChoicePosition)n.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===n.createSearchChoicePosition)n.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof n.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return n},monitorSource:function(){var s,n=this.opts.element,i=this;n.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),this._sync=this.bind(function(){var e,s=n.prop("disabled");s===t&&(s=!1),this.enable(!s),e=n.prop("readonly"),e===t&&(e=!1),this.readonly(e),this.container&&(d(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(o(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(d(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(o(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",i._sync)}),s=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new s(function(t){e.each(t,i._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var n=e.Event("select2-selecting",{val:this.id(t),object:t,choice: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&&(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){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var s,c,p,g,b,t=this.dropdown,u=this.container,n=u.offset(),f=u.outerHeight(!1),d=u.outerWidth(!1),r=t.outerHeight(!1),a=e(window),j=a.width(),O=a.height(),v=a.scrollLeft()+j,y=a.scrollTop()+O,m=n.top+f,l=n.left,_=y>=m+r,w=n.top-r>=a.scrollTop(),i=t.outerWidth(!1),x=function(){return v>=l+i},C=function(){return n.left+v+u.outerWidth(!1)>i},E=t.hasClass("select2-drop-above");E?(c=!0,!w&&_&&(b=!0,c=!1)):(c=!1,!_&&w&&(b=!0,c=!0)),b&&(t.hide(),n=this.container.offset(),f=this.container.outerHeight(!1),d=this.container.outerWidth(!1),r=t.outerHeight(!1),v=a.scrollLeft()+j,y=a.scrollTop()+O,m=n.top+f,l=n.left,i=t.outerWidth(!1),t.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(g=e(".select2-results",t)[0],t.addClass("select2-drop-auto-width"),t.css("width",""),i=t.outerWidth(!1)+(g.scrollHeight===g.clientHeight?0:h.width),i>d?d=i:i=d,r=t.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(p=this.body.offset(),m-=p.top,l-=p.left),!x()&&C()&&(l=n.left+this.container.outerWidth(!1)-i),s={left:l,width:d},c?(this.container.addClass("select2-drop-above"),t.addClass("select2-drop-above"),r=t.outerHeight(!1),s.top=n.top-r,s.bottom="auto"):(s.top=m,s.bottom="auto",this.container.removeClass("select2-drop-above"),t.removeClass("select2-drop-above")),s=e.extend(s,o(this.opts.dropdownCss,this.opts.element)),t.css(s)},shouldOpen:function(){var t;return!this.opened()&&this._enabled!==!1&&this._readonly!==!0&&(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(),k.on("mousemove.select2Event",function(e){g.x=e.pageX,g.y=e.pageY}),!0)},opening:function(){var t,s,n=this.containerEventName,o="scroll."+n,i="resize."+n,a="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(n){A(t);var s,o=e("#select2-drop");o.length>0&&(s=o.data("select2"),s.opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close(),n.preventDefault(),n.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"),s=this,this.container.parents().add(window).each(function(){e(this).on(i+" "+o+" "+a,function(){s.opened()&&s.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,n="scroll."+t,s="resize."+t,o="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(n).off(s).off(o)}),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(),k.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return o(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var n,s,o,i,a,r,c,l,t=this.results;if(n=this.highlight(),!(0>n)){if(0==n)return void t.scrollTop(0);a=this.findHighlightableChoices().find(".select2-result-label"),s=e(a[n]),l=(s.offset()||{}).top||0,o=l+s.outerHeight(!0),n===a.length-1&&(i=t.find("li.select2-more-results"),i.length>0&&(o=i.offset().top+i.outerHeight(!0))),r=t.offset().top+t.outerHeight(!1),o>r&&t.scrollTop(t.scrollTop()+(o-r)),c=l-t.offset().top,0>c&&"none"!=s.css("display")&&t.scrollTop(t.scrollTop()+c)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var s,o=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<o.length;)if(n+=t,s=e(o[n]),s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}},highlight:function(t){var n,o,s=this.findHighlightableChoices();return 0===arguments.length?r(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.search.attr("aria-activedescendant",n.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(n.text()),o=n.data("select2-data"),void(o&&this.opts.element.trigger({type:"select2-highlight",val:this.id(o),choice:o})))},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var s,n=e(t.target).closest(".select2-result-selectable");n.length>0&&!n.is(".select2-highlighted")?(s=this.findHighlightableChoices(),this.highlight(s.index(n))):0==n.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var i,t=this.results,n=t.find("li.select2-more-results"),s=this.resultsPage+1,e=this,a=this.search.val(),r=this.context;0!==n.length&&(i=n.offset().top-t.offset().top-t.height(),i<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:s,context:r,matcher:this.opts.matcher,callback:this.bind(function(i){e.opened()&&(e.opts.populateResults.call(this,t,i.results,{term:a,page:s,context:r}),e.postprocessResults(i,!1,!1),i.more===!0?(n.detach().appendTo(t).html(e.opts.escapeMarkup(o(e.opts.formatLoadMore,e.opts.element,s+1))),window.setTimeout(function(){e.loadMoreIfNeeded()},10)):n.remove(),e.positionDropdown(),e.resultsPage=s,e.context=i.context,this.opts.element.trigger({type:"select2-loaded",items:i}))})})))},tokenize:function(){},updateResults:function(n){function f(){r.removeClass("select2-active"),c.positionDropdown(),l.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(l.text()):c.liveRegion.text(c.opts.formatMatches(l.find('.select2-result-selectable:not(".select2-selected")').length))}function d(e){l.html(e),f()}var u,h,m,p,r=this.search,l=this.results,s=this.opts,c=this,g=r.val(),v=e.data(this.container,"select2-last-term");if((n===!0||!v||!i(g,v))&&(e.data(this.container,"select2-last-term",g),n===!0||this.showSearchInput!==!1&&this.opened())){if(p=++this.queryCount,h=this.getMaximumSelectionSize(),h>=1&&(m=this.data(),e.isArray(m)&&m.length>=h&&a(s.formatSelectionTooBig,"formatSelectionTooBig")))return void d("<li class='select2-selection-limit'>"+o(s.formatSelectionTooBig,s.element,h)+"</li>");if(r.val().length<s.minimumInputLength)return d(a(s.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+o(s.formatInputTooShort,s.element,r.val(),s.minimumInputLength)+"</li>":""),void(n&&this.showSearch&&this.showSearch(!0));if(s.maximumInputLength&&r.val().length>s.maximumInputLength)return void d(a(s.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+o(s.formatInputTooLong,s.element,r.val(),s.maximumInputLength)+"</li>":"");s.formatSearching&&0===this.findHighlightableChoices().length&&d("<li class='select2-searching'>"+o(s.formatSearching,s.element)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),u=this.tokenize(),u!=t&&u!=null&&r.val(u),this.resultsPage=1,s.query({element:s.element,term:r.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind(function(u){var h;if(p==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(u.hasError!==t&&a(s.formatAjaxError,"formatAjaxError"))return void d("<li class='select2-ajax-error'>"+o(s.formatAjaxError,s.element,u.jqXHR,u.textStatus,u.errorThrown)+"</li>");if(this.context=u.context===t?null:u.context,this.opts.createSearchChoice&&""!==r.val()&&(h=this.opts.createSearchChoice.call(c,r.val(),u.results),h!==t&&null!==h&&c.id(h)!==t&&null!==c.id(h)&&0===e(u.results).filter(function(){return i(c.id(this),c.id(h))}).length&&this.opts.createSearchChoicePosition(u.results,h)),0===u.results.length&&a(s.formatNoMatches,"formatNoMatches"))return d("<li class='select2-no-results'>"+o(s.formatNoMatches,s.element,r.val())+"</li>"),void(this.showSearch&&this.showSearch(r.val()));l.empty(),c.opts.populateResults.call(this,l,u.results,{term:r.val(),page:this.resultsPage,context:null}),u.more===!0&&a(s.formatLoadMore,"formatLoadMore")&&(l.append("<li class='select2-more-results'>"+s.escapeMarkup(o(s.formatLoadMore,s.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(u,n),f(),this.opts.element.trigger({type:"select2-loaded",items:u})}})})}},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(){S(this.search)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var n=this.highlight(),s=this.results.find(".select2-highlighted"),t=s.closest(".select2-result").data("select2-data");t?(this.highlight(n),this.onSelect(t,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 n=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&n||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(n.text())&&""===n.val())return n}},initContainerWidth:function(){function n(){var t,n,s,o,i,a;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(t=this.opts.element.attr("style"),"string"==typeof t)for(o=t.split(";"),s=0,i=o.length;i>s;s+=1)if(a=o[s].replace(/\s/g,""),n=a.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==n&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width"),t.indexOf("%")>0?t: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 t=n.call(this);null!==t&&this.container.css("width",t)}}),F=f(m,{createContainer:function(){var t=e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""));return t},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),t=this.search.get(0),t.createTextRange?(n=t.createTextRange(),n.collapse(!1),n.select()):t.setSelectionRange&&(s=this.search.val().length,t.setSelectionRange(s,s))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&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),p.call(this,"selection","focusser")},initContainer:function(){var t,i,r,a=this.container,c=this.dropdown,o=u();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=a.find(".select2-choice"),this.focusser=a.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+o),this.focusser.attr("aria-labelledby","select2-chosen-"+o),this.results.attr("id","select2-results-"+o),this.search.attr("aria-owns","select2-results-"+o),this.focusser.attr("id","s2id_autogen"+o),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id")),r=this.opts.element.attr("title"),this.opts.element.attr("title",r||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===n.PAGE_UP||e.which===n.PAGE_DOWN)return void s(e);switch(e.which){case n.UP:case n.DOWN:return this.moveHighlight(e.which===n.UP?-1:1),void s(e);case n.ENTER:return this.selectHighlighted(),void s(e);case n.TAB:return void this.selectHighlighted({noFocus:!0});case n.ESC:return this.cancel(e),void s(e)}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==n.TAB&&!n.isControl(e)&&!n.isFunctionKey(e)&&e.which!==n.ESC){if(this.opts.openOnEnter===!1&&e.which===n.ENTER)return void s(e);if(e.which==n.DOWN||e.which==n.UP||e.which==n.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void s(e)}return e.which==n.DELETE||e.which==n.BACKSPACE?(this.opts.allowClear&&this.clear(),void s(e)):void 0}})),C(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 touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),L(e),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(n){A(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),s(n)})),c.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){s(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.hide(),this.setPlaceholder()},clear:function(t){var s,o,n=this.selection.data("select2-data");if(n){if(s=e.Event("select2-clearing"),this.opts.element.trigger(s),s.isDefaultPrevented())return;o=this.getPlaceholderOption(),this.opts.element.val(o?o.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(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},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 s=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(s))}:"data"in t&&(t.initSelection=t.initSelection||function(n,s){var a=n.val(),o=null;t.query({matcher:function(e,n,s){var r=i(a,t.id(s));return r&&(o=s),r},callback:e.isFunction(s)?function(){s(o)}: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 o,s=0,a=this;this.findHighlightableChoices().each2(function(e,t){return i(a.id(t.data("select2-data")),a.opts.element.val())?(s=e,!1):void 0}),n!==!1&&(t===!0&&s>=0?this.highlight(s):this.highlight(0)),t===!0&&(o=this.opts.minimumResultsForSearch,o>=0&&this.showSearch(E(e.results)>=o))},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(),s=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.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),i(n,this.id(e))||this.triggerChange({added:e,removed:s})}},updateSelection:function(e){var s,o,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),null!==e&&(s=this.opts.formatSelection(e,n,this.opts.escapeMarkup)),s!==t&&n.append(s),o=this.opts.formatSelectionCssClass(e,n),o!==t&&n.addClass(o),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var n,s=!1,o=null,e=this,i=this.data();if(0===arguments.length)return this.opts.element.val();if(n=arguments[0],arguments.length>1&&(s=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(n).find("option").filter(function(){return this.selected}).each2(function(t,n){return o=e.optionToData(n),!1}),this.updateSelection(o),this.setPlaceholder(),s&&this.triggerChange({added:o,removed:i});else{if(!n&&0!==n)return void this.clear(s);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(n),this.opts.initSelection(this.opts.element,function(t){e.opts.element.val(t?e.id(t):""),e.updateSelection(t),e.setPlaceholder(),s&&e.triggerChange({added:t,removed:i})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var n,s=!1;return 0===arguments.length?(n=this.selection.data("select2-data"),n==t&&(n=null),n):(this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(s=arguments[1]),e?(n=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),s&&this.triggerChange({added:e,removed:n})):this.clear(s),void 0)}}),T=f(m,{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'>","    <label for='' class='select2-offscreen'></label>","    <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 s=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){s.push(n.optionToData(t))}),t(s)}:"data"in t&&(t.initSelection=t.initSelection||function(n,s){var a=v(n.val(),t.separator,t.transformVal),o=[];t.query({matcher:function(n,s,r){var c=e.grep(a,function(e){return i(e,t.id(r))}).length;return c&&o.push(r),c},callback:e.isFunction(s)?function(){for(var e,r,l,c=[],n=0;n<a.length;n++)for(l=a[n],e=0;e<o.length;e++)if(r=o[e],i(l,t.id(r))){c.push(r),o.splice(e,1);break}s(c)}: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),p.call(this,"searchContainer","selection")},initContainer:function(){var t,i,o=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(o),i=this,this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+u()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||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 o,i=t.find(".select2-search-choice-focus"),r=i.prev(".select2-search-choice:not(.select2-locked)"),a=i.next(".select2-search-choice:not(.select2-locked)"),c=z(this.search);if(i.length&&(e.which==n.LEFT||e.which==n.RIGHT||e.which==n.BACKSPACE||e.which==n.DELETE||e.which==n.ENTER))return o=i,e.which==n.LEFT&&r.length?o=r:e.which==n.RIGHT?o=a.length?a:null:e.which===n.BACKSPACE?this.unselect(i.first())&&(this.search.width(10),o=r.length?r:a):e.which==n.DELETE?this.unselect(i.first())&&(this.search.width(10),o=a.length?a:null):e.which==n.ENTER&&(o=null),this.selectChoice(o),s(e),void(o&&o.length||this.open());if((e.which===n.BACKSPACE&&1==this.keydowns||e.which==n.LEFT)&&0==c.offset&&!c.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void s(e);if(this.selectChoice(null),this.opened())switch(e.which){case n.UP:case n.DOWN:return this.moveHighlight(e.which===n.UP?-1:1),void s(e);case n.ENTER:return this.selectHighlighted(),void s(e);case n.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case n.ESC:return this.cancel(e),void s(e)}if(e.which!==n.TAB&&!n.isControl(e)&&!n.isFunctionKey(e)&&e.which!==n.BACKSPACE&&e.which!==n.ESC){if(e.which===n.ENTER){if(this.opts.openOnEnter===!1)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),(e.which===n.PAGE_UP||e.which===n.PAGE_DOWN)&&s(e),e.which===n.ENTER&&s(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",o,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",o,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.hide(),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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&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 s={},o=[],n=this;e(t).each(function(){n.id(this)in s||(s[n.id(this)]=0,o.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(o),n.postprocessResults()},tokenize:function(){var e=this.search.val(),e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts);e!=null&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),(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.prefillNextSearchTerm()&&this.updateResults(),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(t){var n=this.getVal(),s=this;e(t).each(function(){n.push(s.createChoice(this))}),this.setVal(n)},createChoice:function(n){var i,a,r=!n.locked,c=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),l=e("<li class='select2-search-choice select2-locked'><div></div></li>"),o=r?c:l,d=this.id(n);return i=this.opts.formatSelection(n,o.find("div"),this.opts.escapeMarkup),i!=t&&o.find("div").replaceWith(e("<div></div>").html(i)),a=this.opts.formatSelectionCssClass(n,o.find("div")),a!=t&&o.addClass(a),r&&o.find(".select2-search-choice-close").on("mousedown",s).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),s(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),o.data("select2-data",n),o.insertBefore(this.searchContainer),d},unselect:function(t){var n,s,i,o=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")){if(s=e.Event("select2-removing"),s.val=this.id(n),s.choice=n,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;(i=r(this.id(n),o))>=0;)o.splice(i,1),this.setVal(o),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}),!0}},postprocessResults:function(e,t,n){var c=this.getVal(),i=this.results.find(".select2-result"),l=this.results.find(".select2-result-with-children"),s=this;i.each2(function(e,t){var n=s.id(t.data("select2-data"));r(n,c)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),l.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&&this.opts.closeOnSelect===!0&&s.highlight(0),!this.opts.createSearchChoice&&!i.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&a(s.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+o(s.opts.formatNoMatches,s.opts.element,s.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-x(this.search)},resizeSearch:function(){var n=x(this.search),s=R(this.search)+10,o=this.search.offset().left,t=this.selection.width(),i=this.selection.offset().left,e=t-(o-i)-n;s>e&&(e=t-n),40>e&&(e=t-n),0>=e&&(e=s),this.search.width(Math.floor(e))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),v(e,this.opts.separator,this.opts.transformVal))},setVal:function(t){if(this.select)this.select.val(t);else{var n=[],s={};e(t).each(function(){this in s||(n.push(this),s[this]=0)}),this.opts.element.val(0===n.length?"":n.join(this.opts.separator))}},buildChangeDetails:function(e,t){for(var s,t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(s=0;s<e.length;s++)if(i(this.opts.id(t[n]),this.opts.id(e[s]))){t.splice(n,1),n--,e.splice(s,1);break}return{added:t,removed:e}},val:function(n,s){var i,o=this;if(0===arguments.length)return this.getVal();if(i=this.data(),i.length||(i=[]),!n&&0!==n)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(s&&this.triggerChange({added:this.data(),removed:i}));if(this.setVal(n),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),s&&this.triggerChange(this.buildChangeDetails(i,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,o.id);o.setVal(n),o.updateSelection(t),o.clearSearch(),s&&o.triggerChange(o.buildChangeDetails(i,o.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 s,o,i=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get():(o=this.data(),t||(t=[]),s=e.map(t,function(e){return i.opts.id(e)}),this.setVal(s),this.updateSelection(t),this.clearSearch(),n&&this.triggerChange(this.buildChangeDetails(o,this.data())),void 0)}});e.fn.select2=function(){var s,o,i,a,c,n=Array.prototype.slice.call(arguments,0),d=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],u=["opened","isFocused","container","dropdown"],h=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===n.length||"object"==typeof n[0])s=0===n.length?{}:e.extend({},n[0]),s.element=e(this),"select"===s.element.get(0).tagName.toLowerCase()?c=s.element.prop("multiple"):(c=s.multiple||!1,"tags"in s&&(s.multiple=c=!0)),o=c?new window.Select2.class.multi:new window.Select2.class.single,o.init(s);else{if("string"!=typeof n[0])throw"Invalid arguments to select2 plugin: "+n;if(r(n[0],d)<0)throw"Unknown method: "+n[0];if(a=t,o=e(this).data("select2"),o===t)return;if(i=n[0],"container"===i?a=o.container:"dropdown"===i?a=o.dropdown:(l[i]&&(i=l[i]),a=o[i].apply(o,n.slice(1))),r(n[0],u)>=0||r(n[0],h)>=0&&1==n.length)return!1}}),a===t?this:a},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,s){var o=[];return j(this.text(e),n.term,o,s),o.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,n,s){return e?s(this.text(e)):t},sortResults:function(e){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return l(""+t).toUpperCase().indexOf(l(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:N,escapeMarkup:y,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){var t="ontouchstart"in window||navigator.msMaxTouchPoints>0;return!(t&&e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(e,t){var n=t-e.length;return"Please enter "+n+" or 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…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:_,local:w,tags:O},util:{debounce:b,markMatch:j,escapeMarkup:y,stripDiacritics:l},class:{abstract:m,single:F,multi:T}}}}(jQuery),function(){var e=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function t(n){var s,i,a=this.prototype;e=!0,i=new this,e=!1;for(s in n)i[s]=typeof n[s]=="function"&&typeof a[s]=="function"?function(e,t){return function(){var n,s=this._super;return this._super=function(t){return a[e].apply(this,t||[])},n=t.apply(this,arguments),this._super=s,n}}(s,n[s]):n[s];function o(){!e&&this._init&&this._init.apply(this,arguments)}return o.prototype=i,o.prototype.constructor=o,o.extend=t,o}}(),function(e){JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){e.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var n=t(this.name);e[n]=this,e.fn[n]=function(t){var s=Array.prototype.slice.call(arguments,1);return e[n]._isNotChained(t,s)?e[n][t].apply(e[n],[this[0]].concat(s)):this.each(function(){if(typeof t=="string"){if(t[0]==="_"||!e[n][t])throw"Unknown method: "+t;e[n][t].apply(e[n],[this].concat(s))}else e[n]._attach(this,t)})}},setDefaults:function(t){e.extend(this.defaultOptions,t||{})},_isNotChained:function(t,n){return t==="option"&&(n.length===0||n.length===1&&typeof n[0]=="string")||e.inArray(t,this._getters)>-1},_attach:function(t,n){if(t=e(t),t.hasClass(this._getMarker()))return;t.addClass(this._getMarker()),n=e.extend({},this.defaultOptions,this._getMetadata(t),n||{});var s=e.extend({name:this.name,elem:t,options:n},this._instSettings(t,n));t.data(this.name,s),this._postAttach(t,s),this.option(t,n)},_instSettings:function(){return{}},_postAttach:function(){},_getMetadata:function(t){try{var s,o,n=t.data(this.name.toLowerCase())||"",n=n.replace(/'/g,'"'),n=n.replace(/([a-zA-Z0-9]+):/g,function(e,t,s){var o=n.substring(0,s).match(/"/g);return!o||o.length%2===0?'"'+t+'":':t+":"}),n=e.parseJSON("{"+n+"}");for(o in n)s=n[o],typeof s=="string"&&s.match(/^new Date\((.*)\)$/)&&(n[o]=eval(s));return n}catch{return{}}},_getInst:function(t){return e(t).data(this.name)||{}},option:function(t,n,s){t=e(t);var o,i=t.data(this.name);if(!n||typeof n=="string"&&s==null)return o=(i||{}).options,o&&n?o[n]:o;if(!t.hasClass(this._getMarker()))return;o=n||{},typeof n=="string"&&(o={},o[n]=s),this._optionsChanged(t,i,o),e.extend(i.options,o)},_optionsChanged:function(){},destroy:function(t){if(t=e(t),!t.hasClass(this._getMarker()))return;this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(){}});function t(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}e.JQPlugin={createPlugin:function(e,n){typeof e=="object"&&(n=e,e="JQPlugin"),e=t(e);var s=t(n.name);JQClass.classes[s]=JQClass.classes[e].extend(n),new JQClass.classes[s]}}}(jQuery),function(e){var c="countdown",t=0,s=1,a=2,r=3,o=4,i=5,n=6;e.JQPlugin.createPlugin({name:c,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:c+"-rtl",_sectionClass:c+"-section",_amountClass:c+"-amount",_periodClass:c+"-period",_rowClass:c+"-row",_holdingClass:c+"-holding",_showClass:c+"-show",_descrClass:c+"-descr",_timerElems:[],_init:function(){var t,n,s,i,o=this;this._super(),this._serverSyncs=[],t=typeof Date.now=="function"?Date.now:function(){return(new Date).getTime()},i=window.performance&&typeof window.performance.now=="function";function a(e){var r=e<1e12?i?performance.now()+performance.timing.navigationStart:t():e||t();r-s>=1e3&&(o._updateElems(),s=r),n(a)}n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,s=0,!n||e.noRequestAnimationFrame?(e.noRequestAnimationFrame=null,setInterval(function(){o._updateElems()},980)):(s=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||t(),n(a))},UTCDate:function(e,t,n,s,o,i,a,r){typeof t=="object"&&t.constructor==Date&&(r=t.getMilliseconds(),a=t.getSeconds(),i=t.getMinutes(),o=t.getHours(),s=t.getDate(),n=t.getMonth(),t=t.getFullYear());var c=new Date;return c.setUTCFullYear(t),c.setUTCDate(1),c.setUTCMonth(n||0),c.setUTCDate(s||1),c.setUTCHours(o||0),c.setUTCMinutes((i||0)-(Math.abs(e)<30?e*60:e)),c.setUTCSeconds(a||0),c.setUTCMilliseconds(r||0),c},periodsToSeconds:function(e){return e[0]*31557600+e[1]*2629800+e[2]*604800+e[3]*86400+e[4]*3600+e[5]*60+e[6]},resync:function(){var n,t=this;e("."+this._getMarker()).each(function(){var s,o,i,n=e.data(this,t.name);if(n.options.serverSync){for(s=null,o=0;o<t._serverSyncs.length;o++)if(t._serverSyncs[o][0]==n.options.serverSync){s=t._serverSyncs[o];break}s[2]==null&&(i=e.isFunction(n.options.serverSync)?n.options.serverSync.apply(this,[]):null,s[2]=(i?(new Date).getTime()-i.getTime():0)-s[1]),n._since&&n._since.setMilliseconds(n._since.getMilliseconds()+s[2]),n._until.setMilliseconds(n._until.getMilliseconds()+s[2])}});for(n=0;n<t._serverSyncs.length;n++)t._serverSyncs[n][2]!=null&&(t._serverSyncs[n][1]+=t._serverSyncs[n][2],delete t._serverSyncs[n][2])},_instSettings:function(){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(e){this._hasElem(e)||this._timerElems.push(e)},_hasElem:function(t){return e.inArray(t,this._timerElems)>-1},_removeElem:function(t){this._timerElems=e.map(this._timerElems,function(e){return e==t?null:e})},_updateElems:function(){for(var e=this._timerElems.length-1;e>=0;e--)this._updateCountdown(this._timerElems[e])},_optionsChanged:function(t,n,s){s.layout&&(s.layout=s.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(n.options,s);var o,i=n.options.timezone!=s.timezone;e.extend(n.options,s),this._adjustSettings(t,n,s.until!=null||s.since!=null||i),o=new Date,(n._since&&n._since<o||n._until&&n._until>o)&&this._addElem(t[0]),this._updateCountdown(t,n)},_updateCountdown:function(t,n){if(t=t.jquery?t:e(t),n=n||this._getInst(t),!n)return;if(t.html(this._generateHTML(n)).toggleClass(this._rtlClass,n.options.isRTL),e.isFunction(n.options.onTick)){var o,i,s=n._hold!="lap"?n._periods:this._calculatePeriods(n,n._show,n.options.significant,new Date);(n.options.tickInterval==1||this.periodsToSeconds(s)%n.options.tickInterval==0)&&n.options.onTick.apply(t[0],[s])}o=n._hold!="pause"&&(n._since?n._now.getTime()<n._since.getTime():n._now.getTime()>=n._until.getTime()),o&&!n._expiring?(n._expiring=!0,(this._hasElem(t[0])||n.options.alwaysExpire)&&(this._removeElem(t[0]),e.isFunction(n.options.onExpiry)&&n.options.onExpiry.apply(t[0],[]),n.options.expiryText&&(i=n.options.layout,n.options.layout=n.options.expiryText,this._updateCountdown(t[0],n),n.options.layout=i),n.options.expiryUrl&&(window.location=n.options.expiryUrl)),n._expiring=!1):n._hold=="pause"&&this._removeElem(t[0])},_resetExtraLabels:function(e,t){for(var n in t)n.match(/[Ll]abels[02-9]|compactLabels1/)&&(e[n]=t[n]);for(var n in e)n.match(/[Ll]abels[02-9]|compactLabels1/)&&typeof t[n]=="undefined"&&(e[n]=null)},_adjustSettings:function(t,n,s){for(var o,i,a,l,c=null,r=0;r<this._serverSyncs.length;r++)if(this._serverSyncs[r][0]==n.options.serverSync){c=this._serverSyncs[r][1];break}c!=null?(o=n.options.serverSync?c:0,a=new Date):(l=e.isFunction(n.options.serverSync)?n.options.serverSync.apply(t[0],[]):null,a=new Date,o=l?a.getTime()-l.getTime():0,this._serverSyncs.push([n.options.serverSync,o])),i=n.options.timezone,i=i??-a.getTimezoneOffset(),(s||!s&&n._until==null&&n._since==null)&&(n._since=n.options.since,n._since!=null&&(n._since=this.UTCDate(i,this._determineTime(n._since,null)),n._since&&o&&n._since.setMilliseconds(n._since.getMilliseconds()+o)),n._until=this.UTCDate(i,this._determineTime(n.options.until,a)),o&&n._until.setMilliseconds(n._until.getMilliseconds()+o)),n._show=this._determineShow(n)},_preDestroy:function(e){this._removeElem(e[0]),e.empty()},pause:function(e){this._hold(e,"pause")},lap:function(e){this._hold(e,"lap")},resume:function(e){this._hold(e,null)},toggle:function(t){var n=e.data(t,this.name)||{};this[n._hold?"resume":"pause"](t)},toggleLap:function(t){var n=e.data(t,this.name)||{};this[n._hold?"resume":"lap"](t)},_hold:function(t,n){var o,s=e.data(t,this.name);s&&(s._hold=="pause"&&!n&&(s._periods=s._savePeriods,o=s._since?"-":"+",s[s._since?"_since":"_until"]=this._determineTime(o+s._periods[0]+"y"+o+s._periods[1]+"o"+o+s._periods[2]+"w"+o+s._periods[3]+"d"+o+s._periods[4]+"h"+o+s._periods[5]+"m"+o+s._periods[6]+"s"),this._addElem(t)),s._hold=n,s._savePeriods=n=="pause"?s._periods:null,e.data(t,this.name,s),this._updateCountdown(t,s))},getTimes:function(t){var n=e.data(t,this.name);return n?n._hold=="pause"?n._savePeriods:n._hold?this._calculatePeriods(n,n._show,n.options.significant,new Date):n._periods:null},_determineTime:function(e,t){var s=this,o=function(e){var t=new Date;return t.setTime(t.getTime()+e*1e3),t},i=function(e){e=e.toLowerCase();for(var o=new Date,i=o.getFullYear(),a=o.getMonth(),n=o.getDate(),r=o.getHours(),c=o.getMinutes(),l=o.getSeconds(),d=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,t=d.exec(e);t;){switch(t[2]||"s"){case"s":l+=parseInt(t[1],10);break;case"m":c+=parseInt(t[1],10);break;case"h":r+=parseInt(t[1],10);break;case"d":n+=parseInt(t[1],10);break;case"w":n+=parseInt(t[1],10)*7;break;case"o":a+=parseInt(t[1],10),n=Math.min(n,s._getDaysInMonth(i,a));break;case"y":i+=parseInt(t[1],10),n=Math.min(n,s._getDaysInMonth(i,a));break}t=d.exec(e)}return new Date(i,a,n,r,c,l,0)},n=e==null?t:typeof e=="string"?i(e):typeof e=="number"?o(e):e;return n&&n.setMilliseconds(0),n},_getDaysInMonth:function(e,t){return 32-new Date(e,t,32).getDate()},_normalLabels:function(e){return e},_generateHTML:function(c){var l,d,u,m,f,p,g,v,b,j,y,h=this;c._periods=c._hold?c._periods:this._calculatePeriods(c,c._show,c.options.significant,new Date);for(g=!1,v=0,p=c.options.significant,d=e.extend({},c._show),l=t;l<=n;l++)g|=c._show[l]=="?"&&c._periods[l]>0,d[l]=c._show[l]=="?"&&!g?null:c._show[l],v+=d[l]?1:0,p-=c._periods[l]>0?1:0;for(m=[!1,!1,!1,!1,!1,!1,!1],l=n;l>=t;l--)c._show[l]&&(c._periods[l]?m[l]=!0:(m[l]=p>0,p--));return b=c.options.compact?c.options.compactLabels:c.options.labels,j=c.options.whichLabels||this._normalLabels,f=function(e){var t=c.options["compactLabels"+j(c._periods[e])];return d[e]?h._translateDigits(c,c._periods[e])+(t?t[e]:b[e])+" ":""},y=c.options.padZeroes?2:1,u=function(e){var t=c.options["labels"+j(c._periods[e])];return!c.options.significant&&d[e]||c.options.significant&&m[e]?'<span class="'+h._sectionClass+'"><span class="'+h._amountClass+'">'+h._minDigits(c,c._periods[e],y)+'</span><span class="'+h._periodClass+'">'+(t?t[e]:b[e])+"</span></span>":""},c.options.layout?this._buildLayout(c,d,c.options.layout,c.options.compact,c.options.significant,m):(c.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(c._hold?" "+this._holdingClass:"")+'">'+f(t)+f(s)+f(a)+f(r)+(d[o]?this._minDigits(c,c._periods[o],2):"")+(d[i]?(d[o]?c.options.timeSeparator:"")+this._minDigits(c,c._periods[i],2):"")+(d[n]?(d[o]||d[i]?c.options.timeSeparator:"")+this._minDigits(c,c._periods[n],2):""):'<span class="'+this._rowClass+" "+this._showClass+(c.options.significant||v)+(c._hold?" "+this._holdingClass:"")+'">'+u(t)+u(s)+u(a)+u(r)+u(o)+u(i)+u(n))+"</span>"+(c.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+c.options.description+"</span>":"")},_buildLayout:function(c,l,d,u,h,m){for(var b,j,y=c.options[u?"compactLabels":"labels"],_=c.options.whichLabels||this._normalLabels,p=function(e){return(c.options[(u?"compactLabels":"labels")+_(c._periods[e])]||y)[e]},f=function(e,t){return c.options.digits[Math.floor(e/t)%10]},w={desc:c.options.description,sep:c.options.timeSeparator,yl:p(t),yn:this._minDigits(c,c._periods[t],1),ynn:this._minDigits(c,c._periods[t],2),ynnn:this._minDigits(c,c._periods[t],3),y1:f(c._periods[t],1),y10:f(c._periods[t],10),y100:f(c._periods[t],100),y1000:f(c._periods[t],1e3),ol:p(s),on:this._minDigits(c,c._periods[s],1),onn:this._minDigits(c,c._periods[s],2),onnn:this._minDigits(c,c._periods[s],3),o1:f(c._periods[s],1),o10:f(c._periods[s],10),o100:f(c._periods[s],100),o1000:f(c._periods[s],1e3),wl:p(a),wn:this._minDigits(c,c._periods[a],1),wnn:this._minDigits(c,c._periods[a],2),wnnn:this._minDigits(c,c._periods[a],3),w1:f(c._periods[a],1),w10:f(c._periods[a],10),w100:f(c._periods[a],100),w1000:f(c._periods[a],1e3),dl:p(r),dn:this._minDigits(c,c._periods[r],1),dnn:this._minDigits(c,c._periods[r],2),dnnn:this._minDigits(c,c._periods[r],3),d1:f(c._periods[r],1),d10:f(c._periods[r],10),d100:f(c._periods[r],100),d1000:f(c._periods[r],1e3),hl:p(o),hn:this._minDigits(c,c._periods[o],1),hnn:this._minDigits(c,c._periods[o],2),hnnn:this._minDigits(c,c._periods[o],3),h1:f(c._periods[o],1),h10:f(c._periods[o],10),h100:f(c._periods[o],100),h1000:f(c._periods[o],1e3),ml:p(i),mn:this._minDigits(c,c._periods[i],1),mnn:this._minDigits(c,c._periods[i],2),mnnn:this._minDigits(c,c._periods[i],3),m1:f(c._periods[i],1),m10:f(c._periods[i],10),m100:f(c._periods[i],100),m1000:f(c._periods[i],1e3),sl:p(n),sn:this._minDigits(c,c._periods[n],1),snn:this._minDigits(c,c._periods[n],2),snnn:this._minDigits(c,c._periods[n],3),s1:f(c._periods[n],1),s10:f(c._periods[n],10),s100:f(c._periods[n],100),s1000:f(c._periods[n],1e3)},g=d,v=t;v<=n;v++)b="yowdhms".charAt(v),j=new RegExp("\\{"+b+"<\\}([\\s\\S]*)\\{"+b+">\\}","g"),g=g.replace(j,!h&&l[v]||h&&m[v]?"$1":"");return e.each(w,function(e,t){var n=new RegExp("\\{"+e+"\\}","g");g=g.replace(n,t)}),g},_minDigits:function(e,t,n){return t=""+t,t.length>=n?this._translateDigits(e,t):(t="0000000000"+t,this._translateDigits(e,t.substr(t.length-n)))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(e){var c=e.options.format,l=[];return l[t]=c.match("y")?"?":c.match("Y")?"!":null,l[s]=c.match("o")?"?":c.match("O")?"!":null,l[a]=c.match("w")?"?":c.match("W")?"!":null,l[r]=c.match("d")?"?":c.match("D")?"!":null,l[o]=c.match("h")?"?":c.match("H")?"!":null,l[i]=c.match("m")?"?":c.match("M")?"!":null,l[n]=c.match("s")?"?":c.match("S")?"!":null,l},_calculatePeriods:function(e,c,l,d){e._now=d,e._now.setMilliseconds(0);var u,m,f,p,g,v,b,j,y,_,w,O,x,C,h=new Date(e._now.getTime());if(e._since?d.getTime()<e._since.getTime()?e._now=d=h:d=e._since:(h.setTime(e._until.getTime()),d.getTime()>e._until.getTime()&&(e._now=d=h)),u=[0,0,0,0,0,0,0],(c[t]||c[s])&&(g=this._getDaysInMonth(d.getFullYear(),d.getMonth()),y=this._getDaysInMonth(h.getFullYear(),h.getMonth()),O=h.getDate()==d.getDate()||h.getDate()>=Math.min(g,y)&&d.getDate()>=Math.min(g,y),w=function(e){return(e.getHours()*60+e.getMinutes())*60+e.getSeconds()},_=Math.max(0,(h.getFullYear()-d.getFullYear())*12+h.getMonth()-d.getMonth()+(h.getDate()<d.getDate()&&!O||O&&w(h)<w(d)?-1:0)),u[t]=c[t]?Math.floor(_/12):0,u[s]=c[s]?_-u[t]*12:0,d=new Date(d.getTime()),x=d.getDate()==g,j=this._getDaysInMonth(d.getFullYear()+u[t],d.getMonth()+u[s]),d.getDate()>j&&d.setDate(j),d.setFullYear(d.getFullYear()+u[t]),d.setMonth(d.getMonth()+u[s]),x&&d.setDate(j)),f=Math.floor((h.getTime()-d.getTime())/1e3),p=function(e,t){u[e]=c[e]?Math.floor(f/t):0,f-=u[e]*t},p(a,604800),p(r,86400),p(o,3600),p(i,60),p(n,1),f>0&&!e._since)for(C=[1,12,4.3482,7,24,60,60],b=n,v=1,m=n;m>=t;m--)c[m]&&(u[b]>=v&&(u[b]=0,f=1),f>0&&(u[m]++,f=0,b=m,v=1)),v*=C[m];if(l)for(m=t;m<=n;m++)l&&u[m]?l--:l||(u[m]=0);return u}})}(jQuery),!function(e){"use strict";function r(t){t=e.extend({},s,t||{});for(var n=e(this),o=0,i=n.length;i>o;o++)c(n.eq(o),t);return n}function c(t,n){if(!t.hasClass("stepper-input")){n=e.extend({},n,t.data("stepper-options"));var s,o,i=parseFloat(t.attr("min")),a=parseFloat(t.attr("max")),r=parseFloat(t.attr("step"))||1;t.addClass("stepper-input").wrap('<div class="stepper '+n.customClass+'" />').after('<span class="stepper-arrow up">'+n.labels.up+'</span><span class="stepper-arrow down">'+n.labels.down+"</span>"),s=t.parent(".stepper"),o=e.extend({$stepper:s,$input:t,$arrow:s.find(".stepper-arrow"),min:void 0!==typeof i&&!isNaN(i)&&i,max:void 0!==typeof a&&!isNaN(a)&&a,step:void 0===typeof r||isNaN(r)?1:r,timer:null},n),o.digits=h(o.step),t.is(":disabled")&&s.addClass("disabled"),s.on("keypress",".stepper-input",o,l),s.on("touchstart.stepper mousedown.stepper",".stepper-arrow",o,d).data("stepper",o)}}function l(e){var t=e.data;(38===e.keyCode||40===e.keyCode)&&(e.preventDefault(),n(t,38===e.keyCode?t.step:-t.step))}function d(t){t.preventDefault(),t.stopPropagation(),i(t);var o,s=t.data;!s.$input.is(":disabled")&&!s.$stepper.hasClass("disabled")&&(o=e(t.target).hasClass("up")?s.step:-s.step,s.timer=u(s.timer,125,function(){n(s,o,!1)}),n(s,o),e("body").on("touchend.stepper mouseup.stepper",s,i))}function i(t){t.preventDefault(),t.stopPropagation();var n=t.data;a(n.timer),e("body").off(".stepper")}function n(e,t){var o,s=parseFloat(e.$input.val()),n=t;void 0===typeof s||isNaN(s)?n=e.min!==!1?e.min:0:e.min!==!1&&s<e.min?n=e.min:n+=s,o=(n-e.min)%e.step,0!==o&&(n-=o),e.min!==!1&&n<e.min&&(n=e.min),e.max!==!1&&n>e.max&&(n-=e.step),n!==s&&(n=m(n,e.digits),e.$input.val(n).trigger("change"))}function u(e,t,n){return a(e),setInterval(n,t)}function a(e){e&&(clearInterval(e),e=null)}function h(e){var t=String(e);return t.indexOf(".")>-1?t.length-t.indexOf(".")-1:0}function m(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var s={customClass:"",labels:{up:"Up",down:"Down"}},o={defaults:function(t){return s=e.extend(s,t||{}),"object"!=typeof this||e(this)},destroy:function(){return e(this).each(function(){var n=e(this).data("stepper");n&&(n.$stepper.off(".stepper").find(".stepper-arrow").remove(),n.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return e(this).each(function(){var n=e(this).data("stepper");n&&(n.$input.attr("disabled","disabled"),n.$stepper.addClass("disabled"))})},enable:function(){return e(this).each(function(){var n=e(this).data("stepper");n&&(n.$input.attr("disabled",null),n.$stepper.removeClass("disabled"))})}};e.fn.stepper=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:r.apply(this,arguments)},e.stepper=function(e){"defaults"===e&&o.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,this),!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{},t=function(){function t(t,s){var i,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" data-role="none" role="button" tabindex="0" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=e(t),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,i=e(t).data("slick")||{},o.options=e.extend({},o.defaults,s,i),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=e.proxy(o.autoPlay,o),o.autoPlayClear=e.proxy(o.autoPlayClear,o),o.autoPlayIterator=e.proxy(o.autoPlayIterator,o),o.changeSlide=e.proxy(o.changeSlide,o),o.clickHandler=e.proxy(o.clickHandler,o),o.selectHandler=e.proxy(o.selectHandler,o),o.setPosition=e.proxy(o.setPosition,o),o.swipeHandler=e.proxy(o.swipeHandler,o),o.dragHandler=e.proxy(o.dragHandler,o),o.keyHandler=e.proxy(o.keyHandler,o),o.instanceUid=n++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var n=0;return t}();t.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,s){var o=this;if("boolean"==typeof n)s=n,n=null;else if(0>n||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):s?e(t).insertBefore(o.$slides.eq(n)):e(t).insertAfter(o.$slides.eq(n)):s===!0?e(t).prependTo(o.$slideTrack):e(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},t.prototype.animateHeight=function(){var t,e=this;1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:t},e.options.speed))},t.prototype.animateSlide=function(t,n){var o={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(t=-t),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,n):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,n):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),e({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(e){e=Math.ceil(e),s.options.vertical===!1?(o[s.animType]="translate("+e+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+e+"px)",s.$slideTrack.css(o))},complete:function(){n&&n.call()}})):(s.applyTransition(),t=Math.ceil(t),s.options.vertical===!1?o[s.animType]="translate3d("+t+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(o),n&&setTimeout(function(){s.disableTransition(),n.call()},s.options.speed))},t.prototype.getNavTarget=function(){var n=this,t=n.options.asNavFor;return t&&null!==t&&(t=e(t).not(n.$slider)),t},t.prototype.asNavFor=function(t){var s=this,n=s.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,n={};t.options.fade===!1?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(e.options.infinite===!1&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1===0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var n,s,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),s=e("<ul />").addClass(t.options.dotsClass),n=0;n<=t.getDotCount();n+=1)s.append(e("<li />").append(t.options.customPaging.call(this,t,n)));t.$dots=s.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var t,n,s,o,i,a,r,c,l,d,e=this;if(i=document.createDocumentFragment(),o=e.$slider.children(),e.options.rows>1){for(a=e.options.slidesPerRow*e.options.rows,d=Math.ceil(o.length/a),t=0;d>t;t++){r=document.createElement("div");for(n=0;n<e.options.rows;n++){c=document.createElement("div");for(s=0;s<e.options.slidesPerRow;s++)l=t*a+(n*e.options.slidesPerRow+s),o.get(l)&&c.appendChild(o.get(l));r.appendChild(c)}i.appendChild(r)}e.$slider.empty().append(i),e.$slider.children().children().children().css({width:100/e.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var o,i,a,s=this,r=!1,c=s.$slider.width(),l=window.innerWidth||e(window).width();if("window"===s.respondTo?a=l:"slider"===s.respondTo?a=c:"min"===s.respondTo&&(a=Math.min(l,c)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){o=null;for(i in s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(s.originalSettings.mobileFirst===!1?a<s.breakpoints[i]&&(o=s.breakpoints[i]):a>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),r=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),r=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,t===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(t),r=o),t||r===!1||s.$slider.trigger("breakpoint",[s,r])}},t.prototype.changeSlide=function(t,n){var i,a,r,c,s=this,o=e(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),r=s.slideCount%s.options.slidesToScroll!==0,i=r?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":a=0===i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-a,!1,n);break;case"next":a=0===i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+a,!1,n);break;case"index":c=0===t.data.index?0:t.data.index||o.index()*s.options.slidesToScroll,s.slideHandler(s.checkNavigable(c),!1,n),o.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n,s,o=this;if(t=o.getNavigableIndexes(),n=0,e>t[t.length-1])e=t[t.length-1];else for(s in t){if(e<t[s]){e=n;break}n=t[s]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&(e=t.$slides.children().children(),e.removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){var t=this;t.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;n.cssTransitions===!1?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;t.cssTransitions===!1?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(n){n.stopImmediatePropagation();var s=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=s.is(":focus"),t.autoPlay())},0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},t.prototype.getDotCount=function(){var e=this,n=0,s=0,t=0;if(e.options.infinite===!0)for(;n<e.slideCount;)++t,n=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(e.options.centerMode===!0)t=e.slideCount;else if(e.options.asNavFor)for(;n<e.slideCount;)++t,n=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else t=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return t-1},t.prototype.getLeft=function(e){var n,s,i,t=this,o=0;return t.slideOffset=0,s=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,o=s*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!==0&&e+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(e>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(e-t.slideCount))*t.slideWidth*-1,o=(t.options.slidesToShow-(e-t.slideCount))*s*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,o=t.slideCount%t.options.slidesToScroll*s*-1))):e+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(e+t.options.slidesToShow-t.slideCount)*t.slideWidth,o=(e+t.options.slidesToShow-t.slideCount)*s),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,o=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),i=t.options.vertical===!1?e*t.slideWidth*-1+t.slideOffset:e*s*-1+o,t.options.variableWidth===!0&&(n=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(e):t.$slideTrack.children(".slick-slide").eq(e+t.options.slidesToShow),i=t.options.rtl===!0?n[0]?-1*(t.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t.options.centerMode===!0&&(n=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(e):t.$slideTrack.children(".slick-slide").eq(e+t.options.slidesToShow+1),i=t.options.rtl===!0?n[0]?-1*(t.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,i+=(t.$list.width()-n.outerWidth())/2)),i},t.prototype.getOption=t.prototype.slickGetOption=function(e){var t=this;return t.options[e]},t.prototype.getNavigableIndexes=function(){var n,e=this,t=0,s=0,o=[];for(e.options.infinite===!1?n=e.slideCount:(t=-1*e.options.slidesToScroll,s=-1*e.options.slidesToScroll,n=2*e.slideCount);n>t;)o.push(t),t=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var n,s,o,t=this;return s=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(o,i){return i.offsetLeft-s+e(i).outerWidth()/2>-1*t.swipeLeft?(n=i,!1):void 0}),o=Math.abs(e(n).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){var n=this;n.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){e(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+n})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(n){e(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+n,id:"slick-slide"+t.instanceUid+n})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):39===e.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))},t.prototype.lazyLoad=function(){function i(n){e("img[data-lazy]",n).each(function(){var n=e(this),s=e(this).attr("data-lazy"),o=document.createElement("img");o.onload=function(){n.animate({opacity:0},100,function(){n.attr("src",s).animate({opacity:1},200,function(){n.removeAttr("data-lazy").removeClass("slick-loading")}),t.$slider.trigger("lazyLoaded",[t,n,s])})},o.onerror=function(){n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),t.$slider.trigger("lazyLoadError",[t,n,s])},o.src=s})}var n,s,o,a,t=this;t.options.centerMode===!0?t.options.infinite===!0?(n=t.currentSlide+(t.options.slidesToShow/2+1),o=n+t.options.slidesToShow+2):(n=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),o=2+(t.options.slidesToShow/2+1)+t.currentSlide):(n=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,o=Math.ceil(n+t.options.slidesToShow),t.options.fade===!0&&(n>0&&n--,o<=t.slideCount&&o++)),a=t.$slider.find(".slick-slide").slice(n,o),i(a),t.slideCount<=t.options.slidesToShow?(s=t.$slider.find(".slick-slide"),i(s)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(s=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),i(s)):0===t.currentSlide&&(s=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),i(s))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&t.initADA())},t.prototype.prev=t.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var s,o,i,n=this,a=e("img[data-lazy]",n.$slider);a.length?(s=a.first(),o=s.attr("data-lazy"),i=document.createElement("img"),i.onload=function(){s.attr("src",o).removeAttr("data-lazy").removeClass("slick-loading"),n.options.adaptiveHeight===!0&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,s,o]),n.progressiveLazyLoad()},i.onerror=function(){3>t?setTimeout(function(){n.progressiveLazyLoad(t+1)},500):(s.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,s,o]),n.progressiveLazyLoad())},i.src=o):n.$slider.trigger("allImagesLoaded",[n])},t.prototype.refresh=function(t){var s,n=this,o=n.slideCount-n.options.slidesToShow;!n.options.infinite&&n.currentSlide>o&&(n.currentSlide=o),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),s=n.currentSlide,n.destroy(!0),e.extend(n,n.initials,{currentSlide:s}),n.init(),t||n.changeSlide({data:{message:"index",index:s}},!1)},t.prototype.registerBreakpoints=function(){var n,o,i,t=this,s=t.options.responsive||null;if("array"===e.type(s)&&s.length){t.respondTo=t.options.respondTo||"window";for(o in s)if(n=t.breakpoints.length-1,i=s[o].breakpoint,s.hasOwnProperty(o)){for(;n>=0;)t.breakpoints[n]&&t.breakpoints[n]===i&&t.breakpoints.splice(n,1),n--;t.breakpoints.push(i),t.breakpointSettings[i]=s[o].settings}t.breakpoints.sort(function(e,n){return t.options.mobileFirst?e-n:n-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var s=this;return"boolean"==typeof e?(t=e,e=t===!0?0:s.slideCount-1):e=t===!0?--e:e,!(s.slideCount<1||0>e||e>s.slideCount-1)&&(s.unload(),n===!0?s.$slideTrack.children().remove():s.$slideTrack.children(this.options.slide).eq(e).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,void s.reinit())},t.prototype.setCSS=function(e){var s,o,t=this,n={};t.options.rtl===!0&&(e=-e),s="left"==t.positionProp?Math.ceil(e)+"px":"0px",o="top"==t.positionProp?Math.ceil(e)+"px":"0px",n[t.positionProp]=e,t.transformsEnabled===!1?t.$slideTrack.css(n):(n={},t.cssTransitions===!1?(n[t.animType]="translate("+s+", "+o+")",t.$slideTrack.css(n)):(n[t.animType]="translate3d("+s+", "+o+", 0px)",t.$slideTrack.css(n)))},t.prototype.setDimensions=function(){var t,e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length))),t=e.$slides.first().outerWidth(!0)-e.$slides.first().width(),e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var n,t=this;t.$slides.each(function(s,o){n=t.slideWidth*s*-1,t.options.rtl===!0?e(o).css({position:"relative",right:n,top:0,zIndex:t.options.zIndex-2,opacity:0}):e(o).css({position:"relative",left:n,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var t,e=this;1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",t))},t.prototype.setOption=t.prototype.slickSetOption=function(){var n,s,o,i,a,t=this,r=!1;if("object"===e.type(arguments[0])?(a=arguments[0],r=arguments[1],s="multiple"):"string"===e.type(arguments[0])&&(a=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?s="responsive":"undefined"!=typeof arguments[1]&&(s="single")),"single"===s)t.options[a]=n;else if("multiple"===s)e.each(a,function(e,n){t.options[e]=n});else if("responsive"===s)for(i in n)if("array"!==e.type(t.options.responsive))t.options.responsive=[n[i]];else{for(o=t.options.responsive.length-1;o>=0;)t.options.responsive[o].breakpoint===n[i].breakpoint&&t.options.responsive.splice(o,1),o--;t.options.responsive.push(n[i])}r&&(t.unload(),t.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=e.options.vertical===!0?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&e.options.useCSS===!0&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&e.animType!==!1},t.prototype.setSlideClasses=function(e){var s,o,i,t=this,n=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(e).addClass("slick-current"),t.options.centerMode===!0?(o=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(e>=o&&e<=t.slideCount-1-o?t.$slides.slice(e-o,e+o+1).addClass("slick-active").attr("aria-hidden","false"):(s=t.options.slidesToShow+e,n.slice(s-o+1,s+o+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-t.options.slidesToShow).addClass("slick-center"):e===t.slideCount-1&&n.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(e).addClass("slick-center")):e>=0&&e<=t.slideCount-t.options.slidesToShow?t.$slides.slice(e,e+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=t.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(i=t.slideCount%t.options.slidesToShow,s=t.options.infinite===!0?t.options.slidesToShow+e:e,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-e<t.options.slidesToShow?n.slice(s-(t.options.slidesToShow-i),s+i).addClass("slick-active").attr("aria-hidden","false"):n.slice(s,s+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===t.options.lazyLoad&&t.lazyLoad()},t.prototype.setupInfinite=function(){var n,s,o,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(s=null,t.slideCount>t.options.slidesToShow)){for(o=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,n=t.slideCount;n>t.slideCount-o;n-=1)s=n-1,e(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(n=0;o>n;n+=1)s=n,e(t.$slides[s]).clone(!0).attr("id","").attr("data-slick-index",s+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var n=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));return s||(s=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(s),void n.asNavFor(s)):void n.slideHandler(s)},t.prototype.slideHandler=function(e,t,n){var o,i,a,r,c,l=null,s=this;return t=t||!1,s.animating===!0&&s.options.waitForAnimate===!0||s.options.fade===!0&&s.currentSlide===e||s.slideCount<=s.options.slidesToShow?void 0:(t===!1&&s.asNavFor(e),o=e,l=s.getLeft(o),r=s.getLeft(s.currentSlide),s.currentLeft=null===s.swipeLeft?r:s.swipeLeft,s.options.infinite===!1&&s.options.centerMode===!1&&(0>e||e>s.getDotCount()*s.options.slidesToScroll)?void(s.options.fade===!1&&(o=s.currentSlide,n!==!0?s.animateSlide(r,function(){s.postSlide(o)}):s.postSlide(o))):s.options.infinite===!1&&s.options.centerMode===!0&&(0>e||e>s.slideCount-s.options.slidesToScroll)?void(s.options.fade===!1&&(o=s.currentSlide,n!==!0?s.animateSlide(r,function(){s.postSlide(o)}):s.postSlide(o))):(s.options.autoplay&&clearInterval(s.autoPlayTimer),i=0>o?s.slideCount%s.options.slidesToScroll!==0?s.slideCount-s.slideCount%s.options.slidesToScroll:s.slideCount+o:o>=s.slideCount?s.slideCount%s.options.slidesToScroll!==0?0:o-s.slideCount:o,s.animating=!0,s.$slider.trigger("beforeChange",[s,s.currentSlide,i]),c=s.currentSlide,s.currentSlide=i,s.setSlideClasses(s.currentSlide),s.options.asNavFor&&(a=s.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(s.currentSlide)),s.updateDots(),s.updateArrows(),s.options.fade===!0?(n!==!0?(s.fadeSlideOut(c),s.fadeSlide(i,function(){s.postSlide(i)})):s.postSlide(i),void s.animateHeight()):void(n!==!0?s.animateSlide(l,function(){s.postSlide(i)}):s.postSlide(i))))},t.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,n,s,o,t=this;return n=t.touchObject.startX-t.touchObject.curX,s=t.touchObject.startY-t.touchObject.curY,o=Math.atan2(s,n),e=Math.round(180*o/Math.PI),0>e&&(e=360-Math.abs(e)),45>=e&&e>=0?t.options.rtl===!1?"left":"right":360>=e&&e>=315?t.options.rtl===!1?"left":"right":e>=135&&225>=e?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?e>=35&&135>=e?"down":"up":"vertical"},t.prototype.swipeEnd=function(){var n,s,t=this;if(t.dragging=!1,t.interrupted=!1,t.shouldClick=!(t.touchObject.swipeLength>10),void 0===t.touchObject.curX)return!1;if(t.touchObject.edgeHit===!0&&t.$slider.trigger("edge",[t,t.swipeDirection()]),t.touchObject.swipeLength>=t.touchObject.minSwipe){switch(s=t.swipeDirection()){case"left":case"down":n=t.options.swipeToSlide?t.checkNavigable(t.currentSlide+t.getSlideCount()):t.currentSlide+t.getSlideCount(),t.currentDirection=0;break;case"right":case"up":n=t.options.swipeToSlide?t.checkNavigable(t.currentSlide-t.getSlideCount()):t.currentSlide-t.getSlideCount(),t.currentDirection=1}"vertical"!=s&&(t.slideHandler(n),t.touchObject={},t.$slider.trigger("swipe",[t,s]))}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var n,s,o,i,a,t=this;return n=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!t.dragging||n&&1!==n.length)&&(i=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==n?n[0].pageX:e.clientX,t.touchObject.curY=void 0!==n?n[0].pageY:e.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),a=t.swipeDirection(),"vertical"!==a?(void 0!==e.originalEvent&&t.touchObject.swipeLength>4&&e.preventDefault(),o=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(o=t.touchObject.curY>t.touchObject.startY?1:-1),s=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(0===t.currentSlide&&"right"===a||t.currentSlide>=t.getDotCount()&&"left"===a)&&(s=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.options.vertical===!1?t.swipeLeft=i+s*o:t.swipeLeft=i+s*(t.$list.height()/t.listWidth)*o,t.options.verticalSwiping===!0&&(t.swipeLeft=i+s*o),t.options.fade!==!0&&t.options.touchMove!==!1&&(t.animating===!0?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft))):void 0)},t.prototype.swipeStart=function(e){var n,t=this;return t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(n=e.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==n?n.pageX:e.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==n?n.pageY:e.clientY,void(t.dragging=!0))},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this,t=Math.floor(e.options.slidesToShow/2);e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,o,n=this,s=arguments[0],i=Array.prototype.slice.call(arguments,1),a=n.length;for(e=0;a>e;e++)if("object"==typeof s||"undefined"==typeof s?n[e].slick=new t(n[e],s):o=n[e].slick[s].apply(n[e].slick,i),"undefined"!=typeof o)return o;return n}}),function(e){e.fn.drawDoughnutChart=function(t,n){function k(e,t){var n=-1.57,s=4.7131,i=a+c(n)*e,d=r+l(n)*e,u=a+c(n)*t,h=r+l(n)*t,m=a+c(s)*e,f=r+l(s)*e,p=a+c(s)*t,g=r+l(s)*t,o=["M",i,d,"A",e,e,0,1,1,m,f,"Z","M",p,g,"A",t,t,0,1,0,u,h,"Z"];return o=o.join(" "),o}function P(n){var i,o=e(this).data().order;(s.showTip&&p.text(t[o].title+": "+t[o].value).fadeIn(200),s.showLabel)&&(h.text(t[o].title).css("font-size",m(h,t[o].title)),i=s.shortInt?w(t[o].value):t[o].value,d.html(i).css("font-size",m(d,i))),s.onPathEnter.apply(e(this),[n,t])}function R(n){if(s.showTip&&p.hide(),s.showLabel){h.text(s.summaryTitle).css("font-size",m(h,s.summaryTitle));var o=s.shortInt?w(f):f;d.html(o).css("font-size",m(d,o))}s.onPathLeave.apply(e(this),[n,t])}function L(e){s.showTip&&p.css({top:e.pageY+s.tipOffsetY,left:e.pageX-p.width()/2+s.tipOffsetX})}function D(){var n=e(this).data().order;"undefined"!=typeof t[n].action&&t[n].action()}function z(e,t){d.css({opacity:e}).text((t*e).toFixed(1));var n=s.shortInt?w(t):t;d.html(n).css("font-size",m(d,n))}function T(e,t){var n=s.animation?A(N(e),null,0):1;t(n)}function S(e){return!isNaN(parseFloat(e))&&isFinite(e)}function A(e,t,n){return S(t)&&e>t?t:S(n)&&e<n?n:e}function w(e){e=e.toString();var t=e.length;return 5>t?e:8>t?'<span title="'+e+'">'+e.substring(0,t-3)+"K</span>":'<span title="'+e+'">'+e.substring(0,t-6)+"M</span>"}function m(e,t){e.css("font-size",""),t=t.toString().replace(/(<([^>]+)>)/ig,"");var n=e.width()/t.length*s.ratioFont,o=e.width()-t.length*e.css("font-size").replace(/px/,"")/s.ratioFont;return 0>o?n+"px":""}var _,u=this,y=u.width(),j=u.height(),a=y/2,r=j/2,c=Math.cos,l=Math.sin,v=Math.PI,s=e.extend({segmentShowStroke:!0,segmentStrokeColor:"#0C1013",segmentStrokeWidth:1,baseColor:"rgba(0,0,0,0.5)",baseOffset:4,edgeOffset:10,percentageInnerCutout:75,animation:!0,animationSteps:90,animationEasing:"easeInOutExpo",animateRotate:!0,tipOffsetX:-8,tipOffsetY:-45,showTip:!0,showLabel:!1,ratioFont:1.5,shortInt:!1,tipClass:"doughnutTip",summaryClass:"doughnutSummary",summaryTitle:"TOTAL:",summaryTitleClass:"doughnutSummaryTitle",summaryNumberClass:"doughnutSummaryNumber",beforeDraw:function(){},afterDrawed:function(){},onPathEnter:function(){},onPathLeave:function(){}},n),x=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();s.beforeDraw.call(u);var C=e('<svg width="'+y+'" height="'+j+'" viewBox="0 0 '+y+" "+j+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></svg>').appendTo(u),O=[],N={linear:function(e){return e},easeInOutExpo:function(e){var t=.5>e?8*e*e*e*e:1-8*--e*e*e*e;return 1<t?1:t}}[s.animationEasing],o=function(e){return Math.min.apply(null,e)}([j/2,y/2])-s.edgeOffset,i=o*(s.percentageInnerCutout/100),f=0,F=o+s.baseOffset,M=i-s.baseOffset;if(e(document.createElementNS("http://www.w3.org/2000/svg","path")).attr({d:k(F,M),fill:s.baseColor}).appendTo(C),_=e(document.createElementNS("http://www.w3.org/2000/svg","g")),_.attr({opacity:0}).appendTo(C),s.showTip)var p=e('<div class="'+s.tipClass+'" />').appendTo("body").hide(),I=p.width(),B=p.height();var b=2*(i-(o-i)),E=e('<div class="'+s.summaryClass+'" />').appendTo(u).css({width:b+"px",height:b+"px","margin-left":-(b/2)+"px","margin-top":-(b/2)+"px"}),h=e('<p class="'+s.summaryTitleClass+'">'+s.summaryTitle+"</p>").appendTo(E);h.css("font-size",m(h,s.summaryTitle));for(var d=e('<p class="'+s.summaryNumberClass+'"></p>').appendTo(E).css({opacity:0}),g=0,H=t.length;g<H;g++)f+=t[g].value,O[g]=e(document.createElementNS("http://www.w3.org/2000/svg","path")).attr({"stroke-width":s.segmentStrokeWidth,stroke:s.segmentStrokeColor,fill:t[g].color,"data-order":g}).appendTo(_).on("mouseenter",P).on("mouseleave",R).on("mousemove",L).on("click",D);return function(e){var n=s.animation?1/A(s.animationSteps,Number.MAX_VALUE,1):1,t=s.animation?0:1;x(function(){t+=n,T(t,e),1>=t?x(arguments.callee):s.afterDrawed.call(u)})}(function(e){if(n=-v/2,h=1,s.animation&&s.animateRotate&&(h=e),z(e,f),_.attr("opacity",e),1===t.length&&4.7122<h*(t[0].value/f*(2*v))+n)return void O[0].attr("d",k(o,i));for(u=0,g=t.length;u<g;u++){var n,u,h,g,p=h*(t[u].value/f*(2*v)),d=n+p,m=(d-n)%(2*v)>v?1:0,b=a+c(n)*o,j=r+l(n)*o,y=a+c(n)*i,w=r+l(n)*i,x=a+c(d)*o,C=r+l(d)*o,E=a+c(d)*i,A=r+l(d)*i;O[u].attr("d",["M",b,j,"A",o,o,0,m,1,x,C,"L",E,A,"A",i,i,0,m,0,y,w,"Z"].join(" ")),n+=p}}),u}}(jQuery);function pageTransition(e){e=e||{},e.target=e.target||null,e.delay=e.delay||500,e.duration=e.duration||1e3,e.classIn=e.classIn||null,e.classOut=e.classOut||null,e.classActive=e.classActive||null,e.onReady=e.onReady||null,e.onTransitionStart=e.onTransitionStart||null,e.onTransitionEnd=e.onTransitionEnd||null,e.conditions=e.conditions||function(e,t){return!/(#|callto:|tel:|mailto:|:\/\/)/.test(t)},e.target&&(setTimeout(function(){e.onReady&&e.onReady(e),e.classIn&&e.target.classList.add(e.classIn),e.classActive&&e.target.classList.add(e.classActive),e.duration&&(e.target.style.animationDuration=e.duration+"ms"),e.target.addEventListener("animationstart",function(){setTimeout(function(){e.classIn&&e.target.classList.remove(e.classIn),e.onTransitionEnd&&e.onTransitionEnd(e)},e.duration)})},e.delay),$("a").click(function(t){var n,s=t.currentTarget.getAttribute("href");e.conditions(t,s)&&(n=this.href,t.preventDefault(),e.onTransitionStart&&e.onTransitionStart(e),e.classIn&&e.target.classList.remove(e.classIn),e.classOut&&e.target.classList.add(e.classOut),setTimeout(function(){window.location=n,/firefox/i.test(navigator.userAgent)&&setTimeout(function(){e.onReady&&e.onReady(e),e.classOut&&e.target.classList.remove(e.classOut)},1e3),/safari/i.test(navigator.userAgent)&&!/chrome/i.test(navigator.userAgent)&&(e.onReady&&e.onReady(e),e.classOut&&e.target.classList.remove(e.classOut))},e.duration))}))}
;
"use strict";(function(){var f,r=navigator.userAgent.toLowerCase(),m=new Date,i=$(document),n=$(window),s=$("html"),a=$("body"),c=s.hasClass("desktop"),l=s.attr("dir")==="rtl",o=r.indexOf("msie")!==-1?parseInt(r.split("msie")[1],10):r.indexOf("trident")!==-1?11:r.indexOf("edge")!==-1&&12,d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=!1,t=!1,h=300,e={preloader:$("#preloader"),bootstrapTooltip:$("[data-toggle='tooltip']"),bootstrapModalDialog:$(".modal"),bootstrapTabs:$(".tabs-custom"),bootstrapCollapse:$(".card-custom"),rdNavbar:$(".rd-navbar"),materialParallax:$(".parallax-container"),rdMailForm:$(".rd-mailform"),rdInputLabel:$(".form-label"),regula:$("[data-constraints]"),rdRange:$(".rd-range"),wow:$(".wow"),owl:$(".owl-carousel"),swiper:$(".swiper-slider"),search:$(".rd-search"),searchResults:$(".rd-search-results"),statefulButton:$(".btn-stateful"),popover:$('[data-toggle="popover"]'),viewAnimate:$(".view-animate"),radio:$("input[type='radio']"),checkbox:$("input[type='checkbox']"),customToggle:$("[data-custom-toggle]"),counter:$(".counter"),progressLinear:$(".progress-linear"),progressBar:$(".progress-bar-js"),dateCountdown:$(".DateCountdown"),captcha:$(".recaptcha"),lightGallery:$("[data-lightgallery='group']"),lightGalleryItem:$("[data-lightgallery='item']"),lightDynamicGalleryItem:$("[data-lightgallery='dynamic']"),mailchimp:$(".mailchimp-mailform"),campaignMonitor:$(".campaign-mailform"),copyrightYear:$(".copyright-year"),selectFilter:$("select"),inlineToggle:$(".inline-toggle"),focusToggle:$(".focus-toggle"),countDown:$(".countdown"),stepper:$("input[type='number']"),doughnutChart:$(".doughnut-chart"),radioPanel:$(".radio-panel .radio-inline"),slick:$(".slick-slider"),videoOverlay:$(".video-overlay")};$(function(){t=window.xMode,e.preloader.length&&!t&&pageTransition({target:document.querySelector(".page"),delay:100,duration:h,classIn:"fadeIn",classOut:"fadeOut",classActive:"animated",conditions:function(e,t){return!/(#|callto:|tel:|mailto:|:\/\/)/.test(t)&&!e.currentTarget.hasAttribute("data-lightgallery")},onTransitionStart:function(t){setTimeout(function(){e.preloader.removeClass("loaded")},t.duration*.75)},onReady:function(){e.preloader.addClass("loaded"),u=!0}});function ge(e,t){var o,s=e.attr("data-"+t);if(!s)return void 0;if(o=s.match(/(px)|(%)|(vh)|(vw)$/i),o.length)switch(o[0]){case"px":return parseFloat(s);case"vh":return n.height()*(parseFloat(s)/100);case"vw":return n.width()*(parseFloat(s)/100);case"%":return e.width()*(parseFloat(s)/100)}else return void 0}function Oe(e){for(var t,o=$(e.slides[e.previousIndex]),i=$(e.slides[e.activeIndex]),s=o.find("video"),n=0;n<s.length;n++)s[n].pause();t=i.find("video"),t.length&&t.get(0).play()}function Ce(e){for(var s,o,i,a,r,c=$(e.container).find("[data-caption-animate]"),l=$(e.slides[e.activeIndex]).find("[data-caption-animate]"),n=0;n<c.length;n++)a=$(c[n]),a.removeClass("animated").removeClass(a.attr("data-caption-animate")).addClass("not-animated");for(r=function(e,t){return function(){e.removeClass("not-animated").addClass(e.attr("data-caption-animate")).addClass("animated"),t&&e.css("animation-duration",t+"ms")}},n=0;n<l.length;n++)s=$(l[n]),o=s.attr("data-caption-delay"),i=s.attr("data-caption-duration"),t?s.removeClass("not-animated"):o?setTimeout(r(s,i),parseInt(o,10)):setTimeout(r(s,i),0)}function Te(e){for(var s,r,a=["-","-sm-","-md-","-lg-","-xl-","-xxl-"],o=[0,576,768,992,1200,1600],i={},n=0;n<o.length;n++){i[o[n]]={};for(s=n;s>=-1;s--)!i[o[n]].items&&e.attr("data"+a[s]+"items")&&(i[o[n]].items=s<0?1:parseInt(e.attr("data"+a[s]+"items"),10)),!i[o[n]].stagePadding&&i[o[n]].stagePadding!==0&&e.attr("data"+a[s]+"stage-padding")&&(i[o[n]].stagePadding=s<0?0:parseInt(e.attr("data"+a[s]+"stage-padding"),10)),!i[o[n]].margin&&i[o[n]].margin!==0&&e.attr("data"+a[s]+"margin")&&(i[o[n]].margin=s<0?30:parseInt(e.attr("data"+a[s]+"margin"),10))}e.on("initialized.owl.carousel",function(t){if(n=$(t.currentTarget),e.attr("data-dots-custom")){var n,i,s=$(n.attr("data-dots-custom")),o=0;n.attr("data-active")&&(o=parseInt(n.attr("data-active"),10)),n.trigger("to.owl.carousel",[o,300,!0]),s.find("[data-owl-item='"+o+"']").addClass("active"),s.find("[data-owl-item]").on("click",function(e){e.preventDefault(),n.trigger("to.owl.carousel",[parseInt(this.getAttribute("data-owl-item"),10),300,!0])}),n.on("translate.owl.carousel",function(e){s.find(".active").removeClass("active"),s.find("[data-owl-item='"+e.item.index+"']").addClass("active")})}e.attr("data-nav-custom")&&(i=n.parents(n.attr("data-nav-custom")),i.find(".owl-arrow-next").click(function(e){e.preventDefault(),n.trigger("next.owl.carousel")}),i.find(".owl-arrow-prev").click(function(e){e.preventDefault(),n.trigger("prev.owl.carousel")}))}),e.on("initialized.owl.carousel",function(){se(e.find('[data-lightgallery="item"]'),"lightGallery-in-carousel")}),e.owlCarousel({autoplay:!t&&e.attr("data-autoplay")==="true",autoplayTimeout:e.data("autoplay-timeout"),autoplayHoverPause:e.data("autoplay-hover-pause"),autoplaySpeed:e.data("data-autoplay-speed"),center:e.data("data-center"),startPosition:e.data("data-start-position"),loop:!t&&e.attr("data-loop")==="true",items:1,rtl:l,autoWidth:e.data("data-autowidth")==="true",autoHeight:e.data("data-autoheight")==="true",dotsContainer:e.attr("data-pagination-class")||!1,navContainer:e.attr("data-navigation-class")||!1,mouseDrag:!t&&e.attr("data-mouse-drag")!=="false",touchDrag:e.data("data-touch-drag"),dragEndSpeed:e.data("data-drag-end-speed"),nav:e.attr("data-nav")==="true",navSpeed:e.data("data-nav-speed"),dots:e.attr("data-dots")==="true",dotsSpeed:e.data("dots-speed"),dotsEach:!!e.attr("data-dots-each")&&parseInt(e.attr("data-dots-each"),10),animateIn:!!e.attr("data-animation-in")&&e.attr("data-animation-in"),animateOut:!!e.attr("data-animation-out")&&e.attr("data-animation-out"),lazyLoad:e.data("data-lazy-load"),responsive:i,navText:function(){try{return JSON.parse(e.attr("data-nav-text"))}catch{return[]}}(),navClass:function(){try{return JSON.parse(e.attr("data-nav-class"))}catch{return["owl-prev","owl-next"]}}()}),r=$(".owl-mousewheel"),r.on("mousewheel",".owl-stage",function(e){var t=$(this);e.deltaY>0?t.trigger("prev.owl",[800]):t.trigger("next.owl",[800]),e.preventDefault(),e.stopImmediatePropagation()})}function L(e){return!!t||e.offset().top+e.outerHeight()>=n.scrollTop()&&e.offset().top<=n.scrollTop()+n.height()}function Le(e,t){i.on("scroll",function(){!e.hasClass("lazy-loaded")&&L(e)&&(t.call(),e.addClass("lazy-loaded"))}).trigger("scroll")}function ze(e){$("#"+e.live).removeClass("cleared").html(),e.current++,e.spin.addClass("loading"),$.get(Q,{s:decodeURI(e.term),liveSearch:e.live,dataType:"html",liveCount:e.liveCount,filter:e.filter,template:e.template},function(t){e.processed++;var n=$("#"+e.live);e.processed===e.current&&!n.hasClass("cleared")&&(n.find("> #search-results").removeClass("active"),n.html(t),setTimeout(function(){n.find("> #search-results").addClass("active")},50)),e.spin.parents(".rd-search").find(".input-group-addon").removeClass("loading")})}function De(e){regula.custom({name:"PhoneNumber",defaultMessage:"Invalid phone number format",validator:function(){return this.value===""||/^(\+\d)?[0-9-() ]{5,}$/i.test(this.value)}});for(var n,s,o,i,t=0;t<e.length;t++)n=$(e[t]),n.addClass("form-control-has-validation").after("<span class='form-validation'></span>"),i=n.parent().find(".form-validation"),i.is(":last-child")&&n.addClass("form-control-last-child");e.on("input change propertychange blur",function(e){var s,n=$(this);if(e.type!=="blur"&&!n.parent().hasClass("has-error"))return;if(n.parents(".rd-mailform").hasClass("success"))return;if((s=n.regula("validate")).length)for(t=0;t<s.length;t++)n.siblings(".form-validation").text(s[t].message).parent().addClass("has-error");else n.siblings(".form-validation").text("").parent().removeClass("has-error")}).regula("bind");for(s=[{type:regula.Constraint.Required,newMessage:"The text field is required."},{type:regula.Constraint.Email,newMessage:"The email is not a valid email."},{type:regula.Constraint.Numeric,newMessage:"Only numbers are required"},{type:regula.Constraint.Selected,newMessage:"Please choose an option."}],t=0;t<s.length;t++)o=s[t],regula.override({constraintType:o.type,defaultMessage:o.newMessage})}function _e(e,t){var n,s,o,i=0;if(e.length){for(n=0;n<e.length;n++)if(s=$(e[n]),(o=s.regula("validate")).length)for(C=0;C<o.length;C++)i++,s.siblings(".form-validation").text(o[C].message).parent().addClass("has-error");else s.siblings(".form-validation").text("").parent().removeClass("has-error");return t&&t.length?be(t)&&i===0:i===0}return!0}function be(e){var t=e.find(".g-recaptcha-response").val();return t.length!==0||(e.siblings(".form-validation").html("Please, prove that you are not robot.").addClass("active"),e.closest(".form-wrap").addClass("has-error"),e.on("propertychange",function(){var e=$(this),t=e.find(".g-recaptcha-response").val();t.length>0&&(e.closest(".form-wrap").removeClass("has-error"),e.siblings(".form-validation").removeClass("active").html(""),e.off("propertychange"))}),!1)}window.onloadCaptchaCallback=function(){for(var t,n=0;n<e.captcha.length;n++)t=$(e.captcha[n]),grecaptcha.render(t.attr("id"),{sitekey:t.attr("data-sitekey"),size:t.attr("data-size")?t.attr("data-size"):"normal",theme:t.attr("data-theme")?t.attr("data-theme"):"light",callback:function(){$(".recaptcha").trigger("propertychange")}}),t.after("<span class='form-validation'></span>")};function ve(t){window.innerWidth<576?(e.bootstrapTooltip.tooltip("dispose"),e.bootstrapTooltip.tooltip({placement:"bottom"})):(e.bootstrapTooltip.tooltip("dispose"),e.bootstrapTooltip.tooltip({placement:t}))}if(e.captcha.length&&$.getScript("//www.google.com/recaptcha/api.js?onload=onloadCaptchaCallback&render=explicit&hl=en"),navigator.platform.match(/(Mac)/i)&&s.addClass("mac-os"),typeof InstallTrigger!="undefined"&&s.addClass("firefox"),o&&(o<10&&s.addClass("lt-ie-10"),o<11&&e.pointerEvents&&$.getScript(e.pointerEvents).done(function(){s.addClass("ie-10"),PointerEventsPolyfill.initialize({})}),o===11&&s.addClass("ie-11"),o===12&&s.addClass("ie-edge")),e.bootstrapTooltip.length&&(ce=e.bootstrapTooltip.attr("data-placement"),ve(ce),n.on("resize orientationchange",function(){ve(ce)})),e.bootstrapModalDialog.length>0)for(r=0;r<e.bootstrapModalDialog.length;r++)ee=$(e.bootstrapModalDialog[r]),ee.on("hidden.bs.modal",$.proxy(function(){var s,t=$(this),n=t.find("video"),e=t.find("iframe");n.length&&n[0].pause(),e.length&&(s=e.attr("src"),e.attr("src","").attr("src",s))},ee));if(e.popover.length&&(window.innerWidth<767?(e.popover.attr("data-placement","bottom"),e.popover.popover()):e.popover.popover()),e.statefulButton.length&&$(e.statefulButton).on("click",function(){var e=$(this).button("loading");setTimeout(function(){e.button("reset")},2e3)}),e.bootstrapTabs.length)for(r=0;r<e.bootstrapTabs.length;r++)if(T=$(e.bootstrapTabs[r]),T.attr("data-nav")==="true"&&(le=$(T.find("[data-nav-prev]")).first(),ae=$(T.find("[data-nav-next]")).first(),le&&ae)){for(var F=!0,I=0,D=$(T.find(".nav")),Ee=D.children().length,w=0;w<Ee;w++)$(D.find("li:eq("+w+") a")).on("hidden.bs.tab",function(){F=!0}),$(D.find("li:eq("+w+") a")).on("shown.bs.tab",function(){F=!0});le.on("click",function(e){return function(){var t=$(e.find(".active")).parent().index()-1;I!=t&&t>=0&&F&&(I=t,F=!1,$(e.find("li:eq("+t+") a")).tab("show"))}}(D)),ae.on("click",function(e){return function(){var t=$(e.find(".active")).parent().index()+1;I!=t&&t<Ee&&F&&(I=t,F=!1,$(e.find("li:eq("+t+") a")).tab("show"))}}(D))}if(e.bootstrapCollapse.length)for(r=0;r<e.bootstrapCollapse.length;r++)N=$(e.bootstrapCollapse[r]),N.on("show.bs.collapse",function(e){return function(){e.addClass("active")}}(N)),N.on("hide.bs.collapse",function(e){return function(){e.removeClass("active")}}(N));if(e.copyrightYear.length&&e.copyrightYear.text(m.getFullYear()),e.selectFilter.length)for(r=0;r<e.selectFilter.length;r++)S=$(e.selectFilter[r]),S.select2({placeholder:!!S.attr("data-placeholder")&&S.attr("data-placeholder"),minimumResultsForSearch:S.attr("data-minimum-results-search")?S.attr("data-minimum-results-search"):-1,maximumSelectionSize:3,selectOnBlur:!1,dropdownCssClass:S.attr("data-dropdown-class")?S.attr("data-dropdown-class"):""});if(e.radio.length)for(r=0;r<e.radio.length;r++)$(e.radio[r]).addClass("radio-custom").after("<span class='radio-custom-dummy'></span>");if(e.checkbox.length)for(r=0;r<e.checkbox.length;r++)$(e.checkbox[r]).addClass("checkbox-custom").after("<span class='checkbox-custom-dummy'></span>");if(c&&!t&&$().UItoTop({easingType:"easeOutQuad",containerClass:"ui-to-top fa fa-angle-up"}),e.owl.length)for(r=0;r<e.owl.length;r++)J=$(e.owl[r]),e.owl[r].owl=J,Te(J);function Ae(e,n){t||$(e).lightGallery({thumbnail:$(e).attr("data-lg-thumbnail")!=="false",showThumbByDefault:!!$(e).attr("data-show-thumbnail")&&$(e).attr("data-show-thumbnail"),selector:"[data-lightgallery='item']",autoplay:$(e).attr("data-lg-autoplay")==="true",pause:parseInt($(e).attr("data-lg-autoplay-delay"))||5e3,addClass:n,mode:$(e).attr("data-lg-animation")||"lg-slide",loop:$(e).attr("data-lg-loop")!=="false"})}function Ne(e,n){t||$(e).on("click",function(){$(e).lightGallery({thumbnail:$(e).attr("data-lg-thumbnail")!=="false",selector:"[data-lightgallery='item']",autoplay:$(e).attr("data-lg-autoplay")==="true",pause:parseInt($(e).attr("data-lg-autoplay-delay"))||5e3,addClass:n,mode:$(e).attr("data-lg-animation")||"lg-slide",loop:$(e).attr("data-lg-loop")!=="false",dynamic:!0,dynamicEl:JSON.parse($(e).attr("data-lg-dynamic-elements"))||[]})})}function se(e,n){t||$(e).lightGallery({selector:"this",addClass:n,counter:!1,youtubePlayerParams:{modestbranding:1,showinfo:0,rel:0,controls:0},vimeoPlayerParams:{byline:0,portrait:0}})}for(ue=[],w=0;w<e.lightGalleryItem.length;w++)!$(e.lightGalleryItem[w]).parents(".owl-carousel").length&&!$(e.lightGalleryItem[w]).parents(".swiper-slider").length&&!$(e.lightGalleryItem[w]).parents(".slick-slider").length&&ue.push(e.lightGalleryItem[w]);if(e.lightGalleryItem=ue,e.lightGallery.length)for(r=0;r<e.lightGallery.length;r++)Ae(e.lightGallery[r]);if(e.lightGalleryItem.length)for(r=0;r<e.lightGalleryItem.length;r++)se(e.lightGalleryItem[r]);if(e.lightDynamicGalleryItem.length)for(r=0;r<e.lightDynamicGalleryItem.length;r++)Ne(e.lightDynamicGalleryItem[r]);if(e.rdNavbar.length){_=["-","-sm-","-md-","-lg-","-xl-","-xxl-"],O=[0,576,768,992,1200,1600],E={};for(r=x=0,xe=O.length;x<xe;r=++x)K=O[r],E[O[r]]||(E[O[r]]={}),e.rdNavbar.attr("data"+_[r]+"layout")&&(E[O[r]].layout=e.rdNavbar.attr("data"+_[r]+"layout")),e.rdNavbar.attr("data"+_[r]+"device-layout")&&(E[O[r]].deviceLayout=e.rdNavbar.attr("data"+_[r]+"device-layout")),e.rdNavbar.attr("data"+_[r]+"hover-on")&&(E[O[r]].focusOnHover=e.rdNavbar.attr("data"+_[r]+"hover-on")==="true"),e.rdNavbar.attr("data"+_[r]+"auto-height")&&(E[O[r]].autoHeight=e.rdNavbar.attr("data"+_[r]+"auto-height")==="true"),t?E[O[r]].stickUp=!1:e.rdNavbar.attr("data"+_[r]+"stick-up")&&(E[O[r]].stickUp=e.rdNavbar.attr("data"+_[r]+"stick-up")==="true"),e.rdNavbar.attr("data"+_[r]+"stick-up-offset")&&(E[O[r]].stickUpOffset=e.rdNavbar.attr("data"+_[r]+"stick-up-offset"));e.rdNavbar.RDNavbar({anchorNav:!t,stickUpClone:!!(e.rdNavbar.attr("data-stick-up-clone")&&!t)&&e.rdNavbar.attr("data-stick-up-clone")==="true",responsive:E,callbacks:{onStuck:function(){var t,n=this.$element.find(".rd-search input");n&&n.val("").trigger("propertychange"),t=e.rdNavbar.find(".select2-container"),t.length&&t.select2("close")},onDropdownOver:function(){return!t},onUnstuck:function(){if(this.$clone===null)return;var e=this.$clone.find(".rd-search input");e&&(e.val("").trigger("propertychange"),e.trigger("blur"))}}}),e.rdNavbar.attr("data-body-class")&&(document.body.className+=" "+e.rdNavbar.attr("data-body-class"))}if(e.search.length||e.searchResults){if(Q="bat/rd-search.php",oe='<h6 class="search-title"><a target="_top" href="#{href}" class="search-link">#{title}</a></h6><p>...#{token}...</p><p class="match"><em>Terms matched: #{count} - URL: #{href}</em></p>',Se="*.html",e.search.length)for(r=0;r<e.search.length;r++)j=$(e.search[r]),Y={element:j,filter:j.attr("data-search-filter")?j.attr("data-search-filter"):Se,template:j.attr("data-search-template")?j.attr("data-search-template"):oe,live:!!j.attr("data-search-live")&&j.attr("data-search-live"),liveCount:j.attr("data-search-live-count")?parseInt(j.attr("data-search-live"),10):4,current:0,processed:0,timer:{}},G=$(".rd-navbar-search-toggle"),G.length&&G.on("click",function(e){return function(){$(this).hasClass("active")||e.find("input").val("").trigger("propertychange")}}(j)),Y.live&&(te=!1,j.find("input").on("input propertychange",$.proxy(function(){this.term=this.element.find("input").val().trim(),this.spin=this.element.find(".input-group-addon"),clearTimeout(this.timer),this.term.length>2?(this.timer=setTimeout(ze(this),200),te===!1&&(te=!0,a.on("click",function(e){$(e.toElement).parents(".rd-search").length===0&&$("#rd-search-results-live").addClass("cleared").html("")}))):this.term.length===0&&$("#"+this.live).addClass("cleared").html("")},Y,this))),j.submit($.proxy(function(){return $("<input />").attr("type","hidden").attr("name","filter").attr("value",this.filter).appendTo(this.element),!0},Y,this));e.searchResults.length&&(we=/\?.*s=([^&]+)&filter=([^&]+)/g,V=we.exec(location.search),V!==null&&$.get(Q,{s:decodeURI(V[1]),dataType:"html",filter:V[2],template:oe,live:""},function(t){e.searchResults.html(t)}))}if(e.viewAnimate.length)for(r=0;r<e.viewAnimate.length;r++)je=$(e.viewAnimate[r]).not(".active"),i.on("scroll",$.proxy(function(){L(this)&&this.addClass("active")},je)).trigger("scroll");if(e.swiper.length)for(r=0;r<e.swiper.length;r++){for(var ce,r,ee,T,le,ae,S,N,J,ue,_,xe,O,E,K,Y,G,te,we,V,Q,oe,Se,j,je,ye,v,k,he,P,re,ie,b,C,A,H,q,me,Z,ke,y,ne,p,z,W,U,X,f=$(e.swiper[r]),M=f.find(".swiper-pagination"),pe=f.find(".swiper-button-next"),fe=f.find(".swiper-button-prev"),g=f.find(".swiper-scrollbar"),de=f.find(".swiper-slide"),Re=!1,x=0;x<de.length;x++)k=$(de[x]),(he=k.attr("data-slide-bg"))&&k.css({"background-image":"url("+he+")","background-size":"cover"});de.end().find("[data-caption-animate]").addClass("not-animated").end(),f.swiper({autoplay:f.attr("data-autoplay")?f.attr("data-autoplay")==="false"||f.attr("data-autoplay-hover")==="true"?void 0:f.attr("data-autoplay"):5e3,direction:f.attr("data-direction")?f.attr("data-direction"):"horizontal",effect:f.attr("data-slide-effect")?f.attr("data-slide-effect"):"slide",speed:f.attr("data-slide-speed")?f.attr("data-slide-speed"):600,keyboardControl:f.attr("data-keyboard")==="true",mousewheelControl:f.attr("data-mousewheel")==="true",mousewheelReleaseOnEdges:f.attr("data-mousewheel-releaase")==="true",lazyLoading:f.attr("data-lazy-loading")==="true",nextButton:pe.length?pe.get(0):null,prevButton:fe.length?fe.get(0):null,pagination:M.length?M.get(0):null,paginationClickable:!!M.length&&M.attr("data-clickable")!=="false",paginationBulletRender:M.length?M.attr("data-index-bullet")==="true"?function(e,t,n){return'<span class="'+n+'"><span>'+(t+1<10?"0"+(t+1):t+1)+"</span></span>"}:null:null,scrollbar:g.length?g.get(0):null,scrollbarDraggable:!g.length||g.attr("data-draggable")!=="false",scrollbarHide:!!g.length&&g.attr("data-draggable")==="false",loop:!t&&f.attr("data-loop")!=="false",simulateTouch:!!(f.attr("data-simulate-touch")&&!t)&&f.attr("data-simulate-touch")==="true",onTransitionStart:function(e){Oe(e)},onTransitionEnd:function(e){Ce(e)},onInit:function(e){if(Oe(e),Ce(e),e.container.data("autoplay-hover")===!0){var t;e.container.mouseenter(function(){t=setInterval(function(){e.slideNext()},$(e.container).data("autoplay"))}),e.container.mouseleave(function(){clearInterval(t)})}se(f.find('[data-lightgallery="item"]'),"lightGallery-in-carousel")}}),n.on("resize",function(e){return function(){var n=ge(e,"min-height"),t=ge(e,"height");t&&e.css("height",n&&n>t?n:t)}}(f)).trigger("resize")}if(s.hasClass("wow-animation")&&e.wow.length&&!t&&c&&(new WOW).init(),e.rdInputLabel.length&&e.rdInputLabel.RDInputLabel(),e.regula.length&&De(e.regula),e.mailchimp.length)for(r=0;r<e.mailchimp.length;r++)P=$(e.mailchimp[r]),re=P.find('input[type="email"]'),P.attr("novalidate","true"),re.attr("name","EMAIL"),P.on("submit",$.proxy(function(e,t){t.preventDefault();var s=this,i={},a=s.attr("action").replace("/post?","/post-json?").concat("&c=?"),o=s.serializeArray(),n=$("#"+s.attr("data-form-output"));for(r=0;r<o.length;r++)i[o[r].name]=o[r].value;return $.ajax({data:i,url:a,dataType:"jsonp",error:function(e,t){n.html("Server error: "+t),setTimeout(function(){n.removeClass("active")},4e3)},success:function(t){n.html(t.msg).addClass("active"),e[0].value="";var s=$('[for="'+e.attr("id")+'"]');s.length&&s.removeClass("focus not-empty"),setTimeout(function(){n.removeClass("active")},6e3)},beforeSend:function(){var t=window.xMode,o=function(){var e,t,n,o,i=0,a=s.find("[data-constraints]"),r=null;if(a.length){for(e=0;e<a.length;e++)if(t=$(a[e]),(o=t.regula("validate")).length)for(n=0;n<o.length;n++)i++,t.siblings(".form-validation").text(o[n].message).parent().addClass("has-error");else t.siblings(".form-validation").text("").parent().removeClass("has-error");return r&&r.length?be(r)&&i===0:i===0}return!0}();if(t||!o)return!1;n.html("Submitting...").addClass("active")}}),!1},P,re));if(e.campaignMonitor.length)for(r=0;r<e.campaignMonitor.length;r++)ie=$(e.campaignMonitor[r]),ie.on("submit",$.proxy(function(){var s,i,r,c={},d=this.attr("action"),a=this.serializeArray(),o=$("#"+e.campaignMonitor.attr("data-form-output")),l=$(this);for(s=0;s<a.length;s++)c[a[s].name]=a[s].value;$.ajax({data:c,url:d,dataType:"jsonp",error:function(e,t){o.html("Server error: "+t),setTimeout(function(){o.removeClass("active")},4e3)},success:function(e){o.html(e.Message).addClass("active"),setTimeout(function(){o.removeClass("active")},6e3)},beforeSend:function(){if(t||!_e(l.find("[data-constraints]")))return!1;o.html("Submitting...").addClass("active")}});for(i=l[0].getElementsByTagName("input"),s=0;s<i.length;s++)i[s].value="",r=document.querySelector('[for="'+i[s].getAttribute("id")+'"]'),r&&r.classList.remove("focus","not-empty");return!1},ie));if(e.rdMailForm.length){H={MF000:"Successfully sent!",MF001:"Recipients are not set!",MF002:"Form will not work locally!",MF003:"Please, define email field in your form!",MF004:"Please, define type of your form!",MF254:"Something went wrong with PHPMailer!",MF255:"Aw, snap! Something went wrong."};for(r=0;r<e.rdMailForm.length;r++)X=$(e.rdMailForm[r]),X.attr("novalidate","novalidate").ajaxForm({data:{"form-type":X.attr("data-form-type")||"contact",counter:r},beforeSubmit:function(){if(!t){var n,s=$(e.rdMailForm[this.extraData.counter]),o=s.find("[data-constraints]");if(_e(o))n=$("#"+s.attr("data-form-output")),n.hasClass("snackbars")&&(n.html('<p><span class="icon text-middle fa fa-circle-o-notch fa-spin icon-xxs"></span><span>Sending</span></p>'),n.addClass("active"));else return!1}},error:function(n){if(!t){var s=$("#"+$(e.rdMailForm[this.extraData.counter]).attr("data-form-output"));n="MF255",s.text(H[n])}},success:function(n){if(!t){var a,o=$(e.rdMailForm[this.extraData.counter]),s=$("#"+o.attr("data-form-output")),i=o.find("select");if(i.length)for(x=0;x<i.length;x++)a=$(i[x]),a.select2("val",null);o.addClass("success"),n="MF000",s.text(H[n]),n==="MF000"?(s.hasClass("snackbars")&&s.html('<p><span class="icon text-middle fa-check icon-xxs"></span><span>'+H[n]+"</span></p>"),s.addClass("success active")):(s.hasClass("snackbars")&&s.html(' <p class="snackbars-left"><span class="icon icon-xxs fa-exclamation-triangle text-middle"></span><span>'+H[n]+"</span></p>"),s.addClass("error active")),o.clearForm(),o.find("input, textarea").blur(),setTimeout(function(){s.removeClass("active error success"),o.removeClass("success")},5e3)}}})}if(e.stepper.length&&e.stepper.stepper({labels:{up:"",down:""}}),e.customToggle.length)for(r=0;r<e.customToggle.length;r++)k=$(e.customToggle[r]),k.on("click",$.proxy(function(e){e.preventDefault();var t=$(this);$(t.attr("data-custom-toggle")).add(this).toggleClass("active")},k)),k.attr("data-custom-toggle-hide-on-blur")==="true"&&a.on("click",k,function(e){e.target!==e.data[0]&&$(e.data.attr("data-custom-toggle")).find($(e.target)).length&&e.data.find($(e.target)).length===0&&$(e.data.attr("data-custom-toggle")).add(e.data[0]).removeClass("active")}),k.attr("data-custom-toggle-disable-on-blur")==="true"&&a.on("click",k,function(e){e.target!==e.data[0]&&$(e.data.attr("data-custom-toggle")).find($(e.target)).length===0&&e.data.find($(e.target)).length===0&&$(e.data.attr("data-custom-toggle")).add(e.data[0]).removeClass("active")});if(e.counter.length)for(r=0;r<e.counter.length;r++)ye=$(e.counter[r]).not(".animated"),i.on("scroll",$.proxy(function(){var e=this;!e.hasClass("animated")&&L(e)&&(e.countTo({refreshInterval:40,from:0,to:parseInt(e.text(),10),speed:e.attr("data-speed")||1e3}),e.addClass("animated"))},ye)).trigger("scroll");if(e.dateCountdown.length)for(r=0;r<e.dateCountdown.length;r++)b=$(e.dateCountdown[r]),q={Days:{text:"Days",show:!0,color:b.attr("data-color")?b.attr("data-color"):"#f9f9f9"},Hours:{text:"Hours",show:!0,color:b.attr("data-color")?b.attr("data-color"):"#f9f9f9"},Minutes:{text:"Minutes",show:!0,color:b.attr("data-color")?b.attr("data-color"):"#f9f9f9"},Seconds:{text:"Seconds",show:!0,color:b.attr("data-color")?b.attr("data-color"):"#f9f9f9"}},b.TimeCircles({color:b.attr("data-color")?b.attr("data-color"):"rgba(247, 247, 247, 1)",animation:"smooth",bg_width:b.attr("data-bg-width")?b.attr("data-bg-width"):.6,circle_bg_color:b.attr("data-bg")?b.attr("data-bg"):"rgba(0, 0, 0, 1)",fg_width:b.attr("data-width")?b.attr("data-width"):.03}),function(e,t){n.on("load resize orientationchange",function(){window.innerWidth<479?e.TimeCircles({time:{Days:{text:"Days",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Hours:{text:"Hours",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Minutes:{text:"Minutes",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Seconds:{text:"Seconds",show:!1,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"}}}).rebuild():window.innerWidth<767?e.TimeCircles({time:{Days:{text:"Days",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Hours:{text:"Hours",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Minutes:{text:"Minutes",show:!0,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"},Seconds:{text:"",show:!1,color:e.attr("data-color")?e.attr("data-color"):"#f9f9f9"}}}).rebuild():e.TimeCircles({time:t}).rebuild()}),n.trigger("resize")}(b,q);if(e.progressBar.length)for(r=0;r<e.progressBar.length;r++)v=e.progressBar[r],g=null,v.className.indexOf("progress-bar-horizontal")>-1&&(A="Line"),v.className.indexOf("progress-bar-radial")>-1&&(A="Circle"),v.getAttribute("data-stroke")&&v.getAttribute("data-value")&&A?(g=new ProgressBar[A](v,{strokeWidth:Math.round(parseFloat(v.getAttribute("data-stroke"))/v.offsetWidth*100),trailWidth:v.getAttribute("data-trail")?Math.round(parseFloat(v.getAttribute("data-trail"))/v.offsetWidth*100):0,text:{value:v.getAttribute("data-counter")==="true"?"0":null,className:"progress-bar__body",style:null}}),g.svg.setAttribute("preserveAspectRatio","none meet"),A==="Line"&&g.svg.setAttributeNS(null,"height",v.getAttribute("data-stroke")),g.path.removeAttribute("stroke"),g.path.className.baseVal="progress-bar__stroke",g.trail&&(g.trail.removeAttribute("stroke"),g.trail.className.baseVal="progress-bar__trail"),v.getAttribute("data-easing")&&!o?i.on("scroll",{barItem:g},$.proxy(function(e){var n=e.data.barItem,t=$(this);L(t)&&this.className.indexOf("progress-bar--animated")===-1&&(this.className+=" progress-bar--animated",n.animate(parseInt(t.attr("data-value"),10)/100,{easing:t.attr("data-easing"),duration:t.attr("data-duration")?parseInt(t.attr("data-duration",10),10):800,step:function(e,t){(t._container.className.indexOf("progress-bar-horizontal")>-1||t._container.className.indexOf("progress-bar-vertical")>-1)&&(t.text.style.width=Math.abs(t.value()*100).toFixed(0)+"%"),t.setText(Math.abs(t.value()*100).toFixed(0))}}))},v)).trigger("scroll"):(g.set(parseInt($(v).attr("data-value"),10)/100),g.setText($(v).attr("data-value")),A==="Line"&&(g.text.style.width=parseInt($(v).attr("data-value"),10)+"%"))):console.error(v.className+": progress bar type is not defined");if(e.progressLinear.length)for(r=0;r<e.progressLinear.length;r++)me=$(e.progressLinear[r]),n.on("scroll load",$.proxy(function(){var t,e=$(this);!e.hasClass("animated-first")&&L(e)&&(t=parseInt($(this).find(".progress-value").text(),10),e.find(".progress-bar-linear").css({width:t+"%"}),e.find(".progress-value").countTo({refreshInterval:40,from:0,to:t,speed:500}),e.addClass("animated-first"))},me));if(e.materialParallax.length)if(!t&&!o&&!d)e.materialParallax.parallax(),n.on("load",function(){setTimeout(function(){n.scroll()},500)});else for(r=0;r<e.materialParallax.length;r++)Z=$(e.materialParallax[r]),ke=Z.data("parallax-img"),Z.css({"background-image":"url("+ke+")","background-size":"cover"});if(e.rdRange.length&&!t&&e.rdRange.RDRange({}),e.inlineToggle.length)for(r=0;r<e.inlineToggle.length;r++)y=$(e.inlineToggle[r]),y.on("click",function(e){return function(t){t.preventDefault(),e.parents(".inline-toggle-parent").toggleClass("active")}}(y)),a.on("click",y,function(e){return function(t){t.target!==t.data[0]&&!$(t.target).hasClass("inline-toggle-parent")&&t.data.find($(t.target)).length===0&&e.parents(".inline-toggle-parent").removeClass("active")}}(y));if(e.focusToggle.length)for(r=0;r<e.focusToggle.length;r++)y=$(e.focusToggle[r]),y.hover(function(e){e.preventDefault(),$(this).parents(".focus-toggle-parent").addClass("focus")}),y.parents(".focus-toggle-parent").hover(function(){},function(){$(this).removeClass("focus")});if(e.countDown.length)for(r=0;r<e.countDown.length;r++){var R=$(e.countDown[r]),Me=new Date,A=R.attr("data-type"),q=R.attr("data-time"),Fe=R.attr("data-format"),B=[];R.attr("data-style")==="short"&&(B.labels=["Yeas","Mons","Weks","Days","Hrs","Mins","Secs"]),Me.setTime(Date.parse(q)).toLocaleString(),B[A]=Me,B.format=Fe,R.countdown(B)}if(e.doughnutChart.length)for(r=0;r<e.doughnutChart.length;r++)if(y=$(e.doughnutChart[r]),ne=y.find(".doughnut-chart-list").first(),ne){for(z=[],U=ne.find("> li"),C=0;C<U.length;C++)K=Math.abs(U[C].getAttribute("data-value")*1),z.push({}),z[C].title=U[C].innerHTML,z[C].value=K||10;y.drawDoughnutChart(z,{segmentShowStroke:!1,segmentStrokeWidth:0,baseColor:"#f5f5f5",baseOffset:0,edgeOffset:1,percentageInnerCutout:85})}if(e.radioPanel)for(r=0;r<e.radioPanel.length;r++)y=$(e.radioPanel[r]),y.on("click",function(){e.radioPanel.removeClass("active"),$(this).addClass("active")});if(e.slick.length)for(r=0;r<e.slick.length;r++)p=$(e.slick[r]),p.on("init",function(e){Ae($(e).find('[data-lightgallery="item"]'),"lightGallery-in-carousel")}),p.slick({slidesToScroll:parseInt(p.attr("data-slide-to-scroll"),10)||1,asNavFor:p.attr("data-for")||!1,dots:p.attr("data-dots")==="true",infinite:!t&&p.attr("data-loop")==="true",focusOnSelect:!0,arrows:p.attr("data-arrows")==="true",swipe:p.attr("data-swipe")==="true",autoplay:!t&&p.attr("data-autoplay")==="true",autoplaySpeed:p.attr("data-autoplay-speed")?parseInt(p.attr("data-autoplay-speed")):3500,vertical:p.attr("data-vertical")==="true",centerMode:p.attr("data-center-mode")==="true",centerPadding:p.attr("data-center-padding")?p.attr("data-center-padding"):"0.50",mobileFirst:!0,rtl:l,responsive:[{breakpoint:0,settings:{slidesToShow:parseInt(p.attr("data-items"),10)||1}},{breakpoint:575,settings:{slidesToShow:parseInt(p.attr("data-sm-items"),10)||1}},{breakpoint:767,settings:{slidesToShow:parseInt(p.attr("data-md-items"),10)||1}},{breakpoint:991,settings:{slidesToShow:parseInt(p.attr("data-lg-items"),10)||1}},{breakpoint:1199,settings:{slidesToShow:parseInt(p.attr("data-xl-items"),10)||1}}]}).on("afterChange",function(e,t,n){var i=$(this),o=i.attr("data-child");o&&($(o+" .slick-slide").removeClass("slick-current"),$(o+" .slick-slide").eq(n).addClass("slick-current"))});if(e.videoOverlay.length)for(r=0;r<e.videoOverlay.length;r++)W=e.videoOverlay[r],W&&(W.style.opacity="1",W.addEventListener("click",function(){$(this).animate({opacity:0},function(){this.style.display="none"})}))})})()