text: var Ziggy={namedRoutes:{"front.home":{uri:"/",methods:["GET","HEAD"],domain:null},"front.search":{uri:"search",methods:["GET","HEAD"],domain:null},"front.search.do":{uri:"search/{query}",methods:["GET","HEAD"],domain:null},"front.category.show":{uri:"{slugCategory}-{category}",methods:["GET","HEAD"],domain:null},"front.product.show":{uri:"products/{product}-{slugProduct}",methods:["GET","HEAD"],domain:null},"front.product.similar":{uri:"products/{product}/{category}/similar",methods:["POST"],domain:null},"front.tag.show":{uri:"{tag}",methods:["GET","HEAD"],domain:null},"front.review.load.more":{uri:"review/load-more/{productId}",methods:["POST"],domain:null}},baseUrl:"https://besres.com/",baseProtocol:"https",baseDomain:"besres.com",basePort:!1,defaultParameters:[]};function initSlickSlider(){$(".slider-items-slick").slick({infinite:!0,swipeToSlide:!0,slidesToShow:4,dots:!0,slidesToScroll:2,prevArrow:'<button type="button" class="slick-prev"><i class="fa fa-chevron-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="fa fa-chevron-right"></i></button>',responsive:[{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:640,settings:{slidesToShow:1}}],autoplay:!0,autoplaySpeed:2e3})}function initRateRater(){$(".my-rating").starRating({starSize:20,totalStars:5,starShape:"rounded",readOnly:!0})}function listenReadMore(e){$(e.dataset.target).hasClass("show")?$(e).html("Read more"):$(e).html("Read less")}function addSlash2Url(e){return null===e.match("/$")?e+"/":e}function hideElement(e){$("#"+e).addClass("d-none")}function showElement(e){$("#"+e).removeClass("d-none")}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("route",[],t):"object"==typeof exports?exports.route=t():e.route=t()}(this,function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=5)}([function(e,t,i){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,i){return e[i]=t[i],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var r=t[n],s=r.obj[r.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===i.indexOf(u)&&(t.push({obj:s,prop:c}),i.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(o(i)){for(var n=[],r=0;r<i.length;++r)void 0!==i[r]&&n.push(i[r]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===i)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",s=0;s<n.length;++s){var a=n.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=r[a]:a<2048?o+=r[192|a>>6]+r[128|63&a]:a<55296||a>=57344?o+=r[224|a>>12]+r[128|a>>6&63]+r[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=r[240|a>>18]+r[128|a>>12&63]+r[128|a>>6&63]+r[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,i,r){if(!i)return t;if("object"!=typeof i){if(o(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var a=t;return o(t)&&!o(i)&&(a=s(t,r)),o(t)&&o(i)?(i.forEach(function(i,o){if(n.call(t,o)){var s=t[o];s&&"object"==typeof s&&i&&"object"==typeof i?t[o]=e(s,i,r):t.push(i)}else t[o]=i}),t):Object.keys(i).reduce(function(t,o){var s=i[o];return n.call(t,o)?t[o]=e(t[o],s,r):t[o]=s,t},a)}}},function(e,t,i){"use strict";var n=String.prototype.replace,o=/%20/g,r=i(0),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=r.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},s)},function(e,t,i){"use strict";var n=i(3),o=i(4),r=i(1);e.exports={formats:r,parse:o,stringify:n}},function(e,t,i){"use strict";var n=i(0),o=i(1),r=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,a(t)?t:[t])},u=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,i,o,r,s,l,u,d,h,f,m,g,v){var y,w=t;if("function"==typeof u?w=u(i,w):w instanceof Date?w=f(w):"comma"===o&&a(w)&&(w=w.join(",")),null===w){if(r)return l&&!g?l(i,p.encoder,v):i;w=""}if("string"==typeof(y=w)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||n.isBuffer(w))return l?[m(g?i:l(i,p.encoder,v))+"="+m(l(w,p.encoder,v))]:[m(i)+"="+m(String(w))];var b,_=[];if(void 0===w)return _;if(a(u))b=u;else{var x=Object.keys(w);b=d?x.sort(d):x}for(var T=0;T<b.length;++T){var C=b[T];s&&null===w[C]||(a(w)?c(_,e(w[C],"function"==typeof o?o(i,C):i,o,r,s,l,u,d,h,f,m,g,v)):c(_,e(w[C],i+(h?"."+C:"["+C+"]"),o,r,s,l,u,d,h,f,m,g,v)))}return _};e.exports=function(e,t){var i,n=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=o.default;if(void 0!==e.format){if(!r.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=o.formatters[i],s=p.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:s,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?n=(0,l.filter)("",n):a(l.filter)&&(i=l.filter);var u,d=[];if("object"!=typeof n||null===n)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[u];i||(i=Object.keys(n)),l.sort&&i.sort(l.sort);for(var m=0;m<i.length;++m){var g=i[m];l.skipNulls&&null===n[g]||c(d,h(n[g],g,f,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},function(e,t,i){"use strict";var n=i(0),o=Object.prototype.hasOwnProperty,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},a=function(e,t,i){if(e){var n=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,s=i.depth>0&&/(\[[^[\]]*])/.exec(n),a=s?n.slice(0,s.index):n,l=[];if(a){if(!i.plainObjects&&o.call(Object.prototype,a)&&!i.allowPrototypes)return;l.push(a)}for(var c=0;i.depth>0&&null!==(s=r.exec(n))&&c<i.depth;){if(c+=1,!i.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+n.slice(s.index)+"]"),function(e,t,i){for(var n=t,o=e.length-1;o>=0;--o){var r,s=e[o];if("[]"===s&&i.parseArrays)r=[].concat(n);else{r=i.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(a,10);i.parseArrays||""!==a?!isNaN(l)&&s!==a&&String(l)===a&&l>=0&&i.parseArrays&&l<=i.arrayLimit?(r=[])[l]=n:r[a]=n:r={0:n}}n=r}return n}(l,t,i)}};e.exports=function(e,t){var i=function(e){if(!e)return r;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?r.charset:e.charset;return{allowDots:void 0===e.allowDots?r.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var i,a={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,c),d=-1,p=t.charset;if(t.charsetSentinel)for(i=0;i<u.length;++i)0===u[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[i]?p="utf-8":"utf8=%26%2310003%3B"===u[i]&&(p="iso-8859-1"),d=i,i=u.length);for(i=0;i<u.length;++i)if(i!==d){var h,f,m=u[i],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(h=t.decoder(m,r.decoder,p),f=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,v),r.decoder,p),f=t.decoder(m.slice(v+1),r.decoder,p)),f&&t.interpretNumericEntities&&"iso-8859-1"===p&&(f=s(f)),f&&t.comma&&f.indexOf(",")>-1&&(f=f.split(",")),o.call(a,h)?a[h]=n.combine(a[h],f):a[h]=f}return a}(e,i):e,c=i.plainObjects?Object.create(null):{},u=Object.keys(l),d=0;d<u.length;++d){var p=u[d],h=a(p,l[p],i);c=n.merge(c,h,i)}return n.compact(c)}},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}i.r(t);var o=function(){function e(t,i,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.ziggy=n,this.route=this.ziggy.namedRoutes[this.name],void 0===this.name)throw new Error("Ziggy Error: You must provide a route name");if(void 0===this.route)throw new Error("Ziggy Error: route '".concat(this.name,"' is not found in the route list"));this.absolute=void 0===i||i,this.domain=this.setDomain(),this.path=this.route.uri.replace(/^\//,"")}var t,i;return t=e,(i=[{key:"setDomain",value:function(){if(!this.absolute)return"/";if(!this.route.domain)return this.ziggy.baseUrl.replace(/\/?$/,"/");var e=(this.route.domain||this.ziggy.baseDomain).replace(/\/+$/,"");return this.ziggy.basePort&&e.replace(/\/+$/,"")===this.ziggy.baseDomain.replace(/\/+$/,"")&&(e=this.ziggy.baseDomain+":"+this.ziggy.basePort),this.ziggy.baseProtocol+"://"+e+"/"}},{key:"construct",value:function(){return this.domain+this.path}}])&&n(t.prototype,i),e}(),r=i(2);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,i){return(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return i&&u(o,i.prototype),o}).apply(null,arguments)}(e,arguments,d(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}i.d(t,"default",function(){return h});var p=function(e){function t(e,i,n){var r,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,d(t).call(this))).name=e,r.absolute=n,r.ziggy=s||Ziggy,r.urlBuilder=r.name?new o(e,n,r.ziggy):null,r.template=r.urlBuilder?r.urlBuilder.construct():"",r.urlParams=r.normalizeParams(i),r.queryParams={},r.hydrated="",r}var i,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,c(String)),i=t,(n=[{key:"normalizeParams",value:function(e){return void 0===e?{}:((e="object"!==a(e)?[e]:e).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(e=[e.id]),this.numericParamIndices=Array.isArray(e),s({},e))}},{key:"with",value:function(e){return this.urlParams=this.normalizeParams(e),this}},{key:"withQuery",value:function(e){return s(this.queryParams,e),this}},{key:"hydrateUrl",value:function(){var e=this;if(this.hydrated)return this.hydrated;var t=this.template.replace(/{([^}]+)}/gi,function(t,i){var n,o,r=e.trimParam(t);if(e.ziggy.defaultParameters.hasOwnProperty(r)&&(n=e.ziggy.defaultParameters[r]),n&&!e.urlParams[r])return delete e.urlParams[r],n;if(e.numericParamIndices?(e.urlParams=Object.values(e.urlParams),o=e.urlParams.shift()):(o=e.urlParams[r],delete e.urlParams[r]),void 0===o){if(-1===t.indexOf("?"))throw new Error("Ziggy Error: '"+r+"' key is required for route '"+e.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)});return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(t=t.replace(/\/+$/,"")),this.hydrated=t,this.hydrated}},{key:"matchUrl",value:function(){var e=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,t=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],i=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=e.replace(/\/?$/,"/"),o=new RegExp("^"+i+"/$").test(n),r=new RegExp("^"+t+"/$").test(n);return o||r}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var e=s(this.urlParams,this.queryParams);return Object(r.stringify)(e,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=Object.keys(this.ziggy.namedRoutes).filter(function(i){return-1!==e.ziggy.namedRoutes[i].methods.indexOf("GET")&&new t(i,void 0,void 0,e.ziggy).matchUrl()})[0];return i?new RegExp("^"+i.replace("*",".*").replace(".",".")+"$","i").test(n):n}},{key:"check",value:function(e){return Object.keys(this.ziggy.namedRoutes).includes(e)}},{key:"extractParams",value:function(e,t,i){var n=this,o=e.split(i);return t.split(i).reduce(function(e,t,i){return 0===t.indexOf("{")&&-1!==t.indexOf("}")&&o[i]?s(e,(r={},a=n.trimParam(t),l=o[i],a in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,r)):e;var r,a,l},{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(e){return e.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var e=this.ziggy.namedRoutes[this.current()];return s(this.extractParams(window.location.hostname,e.domain||"","."),this.extractParams(window.location.pathname.slice(1),e.uri,"/"))}}])&&l(i.prototype,n),t}();function h(e,t,i,n){return new p(e,t,i,n)}}]).default}),function(e,t){var i,n,o=typeof t,r=e.location,s=e.document,a=s.documentElement,l=e.jQuery,c=e.$,u={},d=[],p="2.0.0",h=d.concat,f=d.push,m=d.slice,g=d.indexOf,v=u.toString,y=u.hasOwnProperty,w=p.trim,b=function(e,t){return new b.fn.init(e,t,i)},_=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,x=/\S+/g,T=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^-ms-/,k=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},D=function(){s.removeEventListener("DOMContentLoaded",D,!1),e.removeEventListener("load",D,!1),b.ready()};function A(e){var t=e.length,i=b.type(e);return!b.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||"function"!==i&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}b.fn=b.prototype={jquery:p,constructor:b,init:function(e,i,n){var o,r;if(!e)return this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e))||!o[1]&&i)return!i||i.jquery?(i||n).find(e):this.constructor(i).find(e);if(o[1]){if(i=i instanceof b?i[0]:i,b.merge(this,b.parseHTML(o[1],i&&i.nodeType?i.ownerDocument||i:s,!0)),C.test(o[1])&&b.isPlainObject(i))for(o in i)b.isFunction(this[o])?this[o](i[o]):this.attr(o,i[o]);return this}return(r=s.getElementById(o[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?n.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,toArray:function(){return m.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(m.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,i){return e.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,i,n,o,r,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||b.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(e=arguments[l]))for(i in e)n=a[i],a!==(o=e[i])&&(u&&o&&(b.isPlainObject(o)||(r=b.isArray(o)))?(r?(r=!1,s=n&&b.isArray(n)?n:[]):s=n&&b.isPlainObject(n)?n:{},a[i]=b.extend(u,s,o)):o!==t&&(a[i]=o));return a},b.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===b&&(e.$=c),t&&e.jQuery===b&&(e.jQuery=l),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||(n.resolveWith(s,[b]),b.fn.trigger&&b(s).trigger("ready").off("ready")))},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[v.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||s;var n=C.exec(e),o=!i&&[];return n?[t.createElement(n[1])]:(n=b.buildFragment([e],t,o),o&&b(o).remove(),b.merge([],n.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new DOMParser).parseFromString(e,"text/xml")}catch(e){i=t}return(!i||i.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+e),i},noop:function(){},globalEval:function(e){var t,i=eval;(e=b.trim(e))&&(1===e.indexOf("use strict")?((t=s.createElement("script")).text=e,s.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(S,"ms-").replace(k,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,o=e.length,r=A(e);if(i){if(r)for(;o>n&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(r)for(;o>n&&!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 null==e?"":w.call(e)},makeArray:function(e,t){var i=t||[];return null!=e&&(A(Object(e))?b.merge(i,"string"==typeof e?[e]:e):f.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:g.call(t,e,i)},merge:function(e,i){var n=i.length,o=e.length,r=0;if("number"==typeof n)for(;n>r;r++)e[o++]=i[r];else for(;i[r]!==t;)e[o++]=i[r++];return e.length=o,e},grep:function(e,t,i){var n=[],o=0,r=e.length;for(i=!!i;r>o;o++)i!==!!t(e[o],o)&&n.push(e[o]);return n},map:function(e,t,i){var n,o=0,r=e.length,s=[];if(A(e))for(;r>o;o++)null!=(n=t(e[o],o,i))&&(s[s.length]=n);else for(o in e)null!=(n=t(e[o],o,i))&&(s[s.length]=n);return h.apply([],s)},guid:1,proxy:function(e,i){var n,o,r;return"string"==typeof i&&(n=e[i],i=e,e=n),b.isFunction(e)?(o=m.call(arguments,2),(r=function(){return e.apply(i||this,o.concat(m.call(arguments)))}).guid=e.guid=e.guid||b.guid++,r):t},access:function(e,i,n,o,r,s,a){var l=0,c=e.length,u=null==n;if("object"===b.type(n))for(l in r=!0,n)b.access(e,i,l,n[l],!0,s,a);else if(o!==t&&(r=!0,b.isFunction(o)||(a=!0),u&&(a?(i.call(e,o),i=null):(u=i,i=function(e,t,i){return u.call(b(e),i)})),i))for(;c>l;l++)i(e[l],n,a?o:o.call(e[l],l,i(e[l],n)));return r?e:u?i.call(e):c?i(e[0],n):s},now:Date.now,swap:function(e,t,i,n){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=i.apply(e,n||[]),t)e.style[r]=s[r];return o}}),b.ready.promise=function(t){return n||(n=b.Deferred(),"complete"===s.readyState?setTimeout(b.ready):(s.addEventListener("DOMContentLoaded",D,!1),e.addEventListener("load",D,!1))),n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()}),i=b(s),function(e,t){var i,n,o,r,s,a,l,c,u,d,p,h,f,m,g,v,y="sizzle"+-new Date,w=e.document,_={},x=0,T=0,C=re(),S=re(),k=re(),E=!1,D=function(){return 0},A=typeof t,O=1<<31,I=[],$=I.pop,N=I.push,P=I.push,j=I.slice,L=I.indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]===e)return t;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z=R.replace("w","w#"),F="\\["+H+"*("+R+")"+H+"*(?:([*^$|!~]?=)"+H+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+z+")|)|)"+H+"*\\]",W=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+F.replace(3,8)+")*)|.*)\\)|)",q=RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),B=RegExp("^"+H+"*,"+H+"*"),U=RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),K=RegExp(H+"*[+~]"),Z=RegExp("="+H+"*([^\\]'\"]*)"+H+"*\\]","g"),Y=RegExp(W),Q=RegExp("^"+z+"$"),V={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+F),PSEUDO:RegExp("^"+W),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),boolean:RegExp("^(?:"+M+")$","i"),needsContext:RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/'|\\/g,ie=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,ne=function(e,t){var i="0x"+t-65536;return i!=i?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(55296|i>>10,56320|1023&i)};try{P.apply(I=j.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(e){P={apply:I.length?function(e,t){N.apply(e,j.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e){return X.test(e+"")}function re(){var e,t=[];return e=function(i,n){return t.push(i+=" ")>o.cacheLength&&delete e[t.shift()],e[i]=n}}function se(e){return e[y]=!0,e}function ae(e){var t=d.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t,i,n){var o,r,s,a,l,c,p,m,g,b;if((t?t.ownerDocument||t:w)!==d&&u(t),i=i||[],!e||"string"!=typeof e)return i;if(1!==(a=(t=t||d).nodeType)&&9!==a)return[];if(h&&!n){if(o=G.exec(e))if(s=o[1]){if(9===a){if(!(r=t.getElementById(s))||!r.parentNode)return i;if(r.id===s)return i.push(r),i}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(s))&&v(t,r)&&r.id===s)return i.push(r),i}else{if(o[2])return P.apply(i,t.getElementsByTagName(e)),i;if((s=o[3])&&_.getElementsByClassName&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(s)),i}if(_.qsa&&(!f||!f.test(e))){if(m=p=y,g=t,b=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(c=me(e),(p=t.getAttribute("id"))?m=p.replace(te,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=c.length;l--;)c[l]=m+ge(c[l]);g=K.test(e)&&t.parentNode||t,b=c.join(",")}if(b)try{return P.apply(i,g.querySelectorAll(b)),i}catch(e){}finally{p||t.removeAttribute("id")}}}return Te(e.replace(q,"$1"),t,i,n)}function ce(e,t){var i=t&&e,n=i&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(e,i,n){var o;return n?t:(o=e.getAttributeNode(i))&&o.specified?o.value:!0===e[i]?i.toLowerCase():null}function de(e,i,n){return n?t:e.getAttribute(i,"type"===i.toLowerCase()?1:2)}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function fe(e){return se(function(t){return t=+t,se(function(i,n){for(var o,r=e([],i.length,t),s=r.length;s--;)i[o=r[s]]&&(i[o]=!(n[o]=i[o]))})})}for(i in s=le.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},u=le.setDocument=function(e){var i=e?e.ownerDocument||e:w;return i!==d&&9===i.nodeType&&i.documentElement?(d=i,p=i.documentElement,h=!s(i),_.getElementsByTagName=ae(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),_.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByClassName=ae(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),_.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(d.createElement("div"))}),_.getById=ae(function(e){return p.appendChild(e).id=y,!i.getElementsByName||!i.getElementsByName(y).length}),_.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==A&&h){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},o.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){return e.getAttribute("id")===t}}):(o.find.ID=function(e,i){if(typeof i.getElementById!==A&&h){var n=i.getElementById(e);return n?n.id===e||typeof n.getAttributeNode!==A&&n.getAttributeNode("id").value===e?[n]:t:[]}},o.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){var i=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return i&&i.value===t}}),o.find.TAG=_.getElementsByTagName?function(e,i){return typeof i.getElementsByTagName!==A?i.getElementsByTagName(e):t}:function(e,t){var i,n=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[o++];)1===i.nodeType&&n.push(i);return n}return r},o.find.CLASS=_.getElementsByClassName&&function(e,i){return typeof i.getElementsByClassName!==A&&h?i.getElementsByClassName(e):t},m=[],f=[],(_.qsa=oe(i.querySelectorAll))&&(ae(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll(":checked").length||f.push(":checked")}),ae(function(e){var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&f.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(_.matchesSelector=oe(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ae(function(e){_.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",W)}),f=f.length&&RegExp(f.join("|")),m=m.length&&RegExp(m.join("|")),v=oe(p.contains)||p.compareDocumentPosition?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=p.compareDocumentPosition?function(e,t){if(e===t)return E=!0,0;var n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return n?1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===i||v(w,e)?-1:t===i||v(w,t)?1:c?L.call(c,e)-L.call(c,t):0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,o=0,r=e.parentNode,s=t.parentNode,a=[e],l=[t];if(e===t)return E=!0,0;if(!r||!s)return e===i?-1:t===i?1:r?-1:s?1:c?L.call(c,e)-L.call(c,t):0;if(r===s)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[o]===l[o];)o++;return o?ce(a[o],l[o]):a[o]===w?-1:l[o]===w?1:0},d):d},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&u(e),t=t.replace(Z,"='$1']"),!(!_.matchesSelector||!h||m&&m.test(t)||f&&f.test(t)))try{var i=g.call(e,t);if(i||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return le(t,d,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!==d&&u(e),v(e,t)},le.attr=function(e,i){(e.ownerDocument||e)!==d&&u(e);var n=o.attrHandle[i.toLowerCase()],r=n&&n(e,i,!h);return r===t?_.attributes||!h?e.getAttribute(i):(r=e.getAttributeNode(i))&&r.specified?r.value:null:r},le.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,i=[],n=0,o=0;if(E=!_.detectDuplicates,c=!_.sortStable&&e.slice(0),e.sort(D),E){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return e},r=le.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n];n++)i+=r(t);return i},o=le.selectors={cacheLength:50,createPseudo:se,match:V,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(ie,ne),e[3]=(e[4]||e[5]||"").replace(ie,ne),"~="===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]||le.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]&&le.error(e[0]),e},PSEUDO:function(e){var t,i=!e[5]&&e[2];return V.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:i&&Y.test(i)&&(t=me(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var o=le.attr(n,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,p,h,f,m=r!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),w=!l&&!a;if(g){if(r){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&w){for(h=(c=(u=g[y]||(g[y]={}))[e]||[])[0]===x&&c[1],p=c[0]===x&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[m]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){u[e]=[x,h,p];break}}else if(w&&(c=(t[y]||(t[y]={}))[e])&&c[0]===x)p=c[1];else for(;(d=++h&&d&&d[m]||(p=h=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(w&&((d[y]||(d[y]={}))[e]=[x,p]),d!==t)););return(p-=o)===n||0==p%n&&p/n>=0}}},PSEUDO:function(e,t){var i,n=o.pseudos[e]||o.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return n[y]?n(t):n.length>1?(i=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,i){for(var o,r=n(e,t),s=r.length;s--;)e[o=L.call(e,r[s])]=!(i[o]=r[s])}):function(e){return n(e,0,i)}):n}},pseudos:{not:se(function(e){var t=[],i=[],n=a(e.replace(q,"$1"));return n[y]?se(function(e,t,i,o){for(var r,s=n(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,n(t,null,r,i),!i.pop()}}),has:se(function(e){return function(t){return le(e,t).length>0}}),contains:se(function(e){return function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:se(function(e){return Q.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(ie,ne).toLowerCase(),function(t){var i;do{if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return ee.test(e.nodeName)},input:function(e){return J.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"))||t.toLowerCase()===e.type)},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[0>i?i+t:i]}),even:fe(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=0>i?i+t:i;t>++n;)e.push(n);return e})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[i]=pe(i);for(i in{submit:!0,reset:!0})o.pseudos[i]=he(i);function me(e,t){var i,n,r,s,a,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=o.preFilter;a;){for(s in(!i||(n=B.exec(a)))&&(n&&(a=a.slice(n[0].length)||a),l.push(r=[])),i=!1,(n=U.exec(a))&&(i=n.shift(),r.push({value:i,type:n[0].replace(q," ")}),a=a.slice(i.length)),o.filter)!(n=V[s].exec(a))||c[s]&&!(n=c[s](n))||(i=n.shift(),r.push({value:i,type:s,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?le.error(e):S(e,l).slice(0)}function ge(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function ve(e,t,i){var o=t.dir,r=i&&"parentNode"===o,s=T++;return t.first?function(t,i,n){for(;t=t[o];)if(1===t.nodeType||r)return e(t,i,n)}:function(t,i,a){var l,c,u,d=x+" "+s;if(a){for(;t=t[o];)if((1===t.nodeType||r)&&e(t,i,a))return!0}else for(;t=t[o];)if(1===t.nodeType||r)if((c=(u=t[y]||(t[y]={}))[o])&&c[0]===d){if(!0===(l=c[1])||l===n)return!0===l}else if((c=u[o]=[d])[1]=e(t,i,a)||n,!0===c[1])return!0}}function ye(e){return e.length>1?function(t,i,n){for(var o=e.length;o--;)if(!e[o](t,i,n))return!1;return!0}:e[0]}function we(e,t,i,n,o){for(var r,s=[],a=0,l=e.length,c=null!=t;l>a;a++)(r=e[a])&&(!i||i(r,n,o))&&(s.push(r),c&&t.push(a));return s}function be(e,t,i,n,o,r){return n&&!n[y]&&(n=be(n)),o&&!o[y]&&(o=be(o,r)),se(function(r,s,a,l){var c,u,d,p=[],h=[],f=s.length,m=r||function(e,t,i){for(var n=0,o=t.length;o>n;n++)le(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),g=!e||!r&&t?m:we(m,p,e,a,l),v=i?o||(r?e:f||n)?[]:s:g;if(i&&i(g,v,a,l),n)for(c=we(v,h),n(c,[],a,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d));if(r){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?L.call(r,d):p[u])>-1&&(r[c]=!(s[c]=d))}}else v=we(v===s?v.splice(f,v.length):v),o?o(null,s,v,l):P.apply(s,v)})}function _e(e){for(var t,i,n,r=e.length,s=o.relative[e[0].type],a=s||o.relative[" "],c=s?1:0,u=ve(function(e){return e===t},a,!0),d=ve(function(e){return L.call(t,e)>-1},a,!0),p=[function(e,i,n){return!s&&(n||i!==l)||((t=i).nodeType?u(e,i,n):d(e,i,n))}];r>c;c++)if(i=o.relative[e[c].type])p=[ve(ye(p),i)];else{if((i=o.filter[e[c].type].apply(null,e[c].matches))[y]){for(n=++c;r>n&&!o.relative[e[n].type];n++);return be(c>1&&ye(p),c>1&&ge(e.slice(0,c-1)).replace(q,"$1"),i,n>c&&_e(e.slice(c,n)),r>n&&_e(e=e.slice(n)),r>n&&ge(e))}p.push(i)}return ye(p)}function xe(e,t){var i=0,r=t.length>0,s=e.length>0,a=function(a,c,u,p,h){var f,m,g,v=[],y=0,w="0",b=a&&[],_=null!=h,T=l,C=a||s&&o.find.TAG("*",h&&c.parentNode||c),S=x+=null==T?1:Math.random()||.1;for(_&&(l=c!==d&&c,n=i);null!=(f=C[w]);w++){if(s&&f){for(m=0;g=e[m++];)if(g(f,c,u)){p.push(f);break}_&&(x=S,n=++i)}r&&((f=!g&&f)&&y--,a&&b.push(f))}if(y+=w,r&&w!==y){for(m=0;g=t[m++];)g(b,v,c,u);if(a){if(y>0)for(;w--;)b[w]||v[w]||(v[w]=$.call(p));v=we(v)}P.apply(p,v),_&&!a&&v.length>0&&y+t.length>1&&le.uniqueSort(p)}return _&&(x=S,l=T),b};return r?se(a):a}function Te(e,t,i,n){var r,s,l,c,u,d=me(e);if(!n&&1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(l=s[0]).type&&9===t.nodeType&&h&&o.relative[s[1].type]){if(!(t=(o.find.ID(l.matches[0].replace(ie,ne),t)||[])[0]))return i;e=e.slice(s.shift().value.length)}for(r=V.needsContext.test(e)?0:s.length;r--&&(l=s[r],!o.relative[c=l.type]);)if((u=o.find[c])&&(n=u(l.matches[0].replace(ie,ne),K.test(s[0].type)&&t.parentNode||t))){if(s.splice(r,1),!(e=n.length&&ge(s)))return P.apply(i,n),i;break}}return a(e,d)(n,t,!h,i,K.test(e)),i}function Ce(){}a=le.compile=function(e,t){var i,n=[],o=[],r=k[e+" "];if(!r){for(t||(t=me(e)),i=t.length;i--;)(r=_e(t[i]))[y]?n.push(r):o.push(r);r=k(e,xe(o,n))}return r},o.pseudos.nth=o.pseudos.eq,Ce.prototype=o.filters=o.pseudos,o.setFilters=new Ce,_.sortStable=y.split("").sort(D).join("")===y,u(),[0,0].sort(D),_.detectDuplicates=E,ae(function(e){if(e.innerHTML="<a href='#'></a>","#"!==e.firstChild.getAttribute("href"))for(var t="type|href|height|width".split("|"),i=t.length;i--;)o.attrHandle[t[i]]=de}),ae(function(e){if(null!=e.getAttribute("disabled"))for(var t=M.split("|"),i=t.length;i--;)o.attrHandle[t[i]]=ue}),b.find=le,b.expr=le.selectors,b.expr[":"]=b.expr.pseudos,b.unique=le.uniqueSort,b.text=le.getText,b.isXMLDoc=le.isXML,b.contains=le.contains}(e);var O={};b.Callbacks=function(e){e="string"==typeof e?O[e]||function(e){var t=O[e]={};return b.each(e.match(x)||[],function(e,i){t[i]=!0}),t}(e):b.extend({},e);var i,n,o,r,s,a,l=[],c=!e.once&&[],u=function(t){for(i=e.memory&&t,n=!0,a=r||0,r=0,s=l.length,o=!0;l&&s>a;a++)if(!1===l[a].apply(t[0],t[1])&&e.stopOnFalse){i=!1;break}o=!1,l&&(c?c.length&&u(c.shift()):i?l=[]:d.disable())},d={add:function(){if(l){var t=l.length;(function t(i){b.each(i,function(i,n){var o=b.type(n);"function"===o?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==o&&t(n)})})(arguments),o?s=l.length:i&&(r=t,u(i))}return this},remove:function(){return l&&b.each(arguments,function(e,t){for(var i;(i=b.inArray(t,l,i))>-1;)l.splice(i,1),o&&(s>=i&&s--,a>=i&&a--)}),this},has:function(e){return e?b.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=c=i=t,this},disabled:function(){return!l},lock:function(){return c=t,i||d.disable(),this},locked:function(){return!c},fireWith:function(e,t){return t=[e,(t=t||[]).slice?t.slice():t],!l||n&&!c||(o?c.push(t):u(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(i){b.each(t,function(t,r){var s=r[0],a=b.isFunction(e[t])&&e[t];o[r[1]](function(){var e=a&&a.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s+"With"](this===n?i.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,n):n}},o={};return n.pipe=n.then,b.each(t,function(e,r){var s=r[2],a=r[3];n[r[1]]=s.add,a&&s.add(function(){i=a},t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?n:this,arguments),this},o[r[0]+"With"]=s.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,r=m.call(arguments),s=r.length,a=1!==s||e&&b.isFunction(e.promise)?s:0,l=1===a?e:b.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?m.call(arguments):o,n===t?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(s>1)for(t=Array(s),i=Array(s),n=Array(s);s>o;o++)r[o]&&b.isFunction(r[o].promise)?r[o].promise().done(c(o,n,r)).fail(l.reject).progress(c(o,i,t)):--a;return a||l.resolveWith(n,r),l.promise()}}),b.support=function(t){var i=s.createElement("input"),n=s.createDocumentFragment(),o=s.createElement("div"),r=s.createElement("select"),a=r.appendChild(s.createElement("option"));return i.type?(i.type="checkbox",t.checkOn=""!==i.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,i.checked=!0,t.noCloneChecked=i.cloneNode(!0).checked,r.disabled=!0,t.optDisabled=!a.disabled,(i=s.createElement("input")).value="t",i.type="radio",t.radioValue="t"===i.value,i.setAttribute("checked","t"),i.setAttribute("name","t"),n.appendChild(i),t.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===o.style.backgroundClip,b(function(){var i,n,r=s.getElementsByTagName("body")[0];r&&((i=s.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",r.appendChild(i).appendChild(o),o.innerHTML="",o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",b.swap(r,null!=r.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===o.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(o,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(o,null)||{width:"4px"}).width,(n=o.appendChild(s.createElement("div"))).style.cssText=o.style.cssText="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",n.style.marginRight=n.style.width="0",o.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(n,null)||{}).marginRight)),r.removeChild(i))}),t):t}({});var I,$,N=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function j(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=b.expando+Math.random()}function L(e,i,n){var o;if(n===t&&1===e.nodeType)if(o="data-"+i.replace(P,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:N.test(n)?JSON.parse(n):n)}catch(e){}I.set(e,i,n)}else n=t;return n}j.uid=1,j.accepts=function(e){return!e.nodeType||(1===e.nodeType||9===e.nodeType)},j.prototype={key:function(e){if(!j.accepts(e))return 0;var t={},i=e[this.expando];if(!i){i=j.uid++;try{t[this.expando]={value:i},Object.defineProperties(e,t)}catch(n){t[this.expando]=i,b.extend(e,t)}}return this.cache[i]||(this.cache[i]={}),i},set:function(e,t,i){var n,o=this.key(e),r=this.cache[o];if("string"==typeof t)r[t]=i;else if(b.isEmptyObject(r))this.cache[o]=t;else for(n in t)r[n]=t[n]},get:function(e,i){var n=this.cache[this.key(e)];return i===t?n:n[i]},access:function(e,i,n){return i===t||i&&"string"==typeof i&&n===t?this.get(e,i):(this.set(e,i,n),n!==t?n:i)},remove:function(e,i){var n,o,r=this.key(e),s=this.cache[r];if(i===t)this.cache[r]={};else{b.isArray(i)?o=i.concat(i.map(b.camelCase)):i in s?o=[i]:o=(o=b.camelCase(i))in s?[o]:o.match(x)||[],n=o.length;for(;n--;)delete s[o[n]]}},hasData:function(e){return!b.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){delete this.cache[this.key(e)]}},I=new j,$=new j,b.extend({acceptData:j.accepts,hasData:function(e){return I.hasData(e)||$.hasData(e)},data:function(e,t,i){return I.access(e,t,i)},removeData:function(e,t){I.remove(e,t)},_data:function(e,t,i){return $.access(e,t,i)},_removeData:function(e,t){$.remove(e,t)}}),b.fn.extend({data:function(e,i){var n,o,r=this[0],s=0,a=null;if(e===t){if(this.length&&(a=I.get(r),1===r.nodeType&&!$.get(r,"hasDataAttrs"))){for(n=r.attributes;n.length>s;s++)0===(o=n[s].name).indexOf("data-")&&(o=b.camelCase(o.substring(5)),L(r,o,a[o]));$.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){I.set(this,e)}):b.access(this,function(i){var n,o=b.camelCase(e);if(r&&i===t){if((n=I.get(r,e))!==t)return n;if((n=I.get(r,o))!==t)return n;if((n=L(r,o,t))!==t)return n}else this.each(function(){var n=I.get(this,o);I.set(this,o,i),-1!==e.indexOf("-")&&n!==t&&I.set(this,e,i)})},null,i,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){I.remove(this,e)})}}),b.extend({queue:function(e,i,n){var o;return e?(i=(i||"fx")+"queue",o=$.get(e,i),n&&(!o||b.isArray(n)?o=$.access(e,i,b.makeArray(n)):o.push(n)),o||[]):t},dequeue:function(e,t){t=t||"fx";var i=b.queue(e,t),n=i.length,o=i.shift(),r=b._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),n--),r.cur=o,o&&("fx"===t&&i.unshift("inprogress"),delete r.stop,o.call(e,function(){b.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return $.get(e,i)||$.access(e,i,{empty:b.Callbacks("once memory").add(function(){$.remove(e,[t+"queue",i])})})}}),b.fn.extend({queue:function(e,i){var n=2;return"string"!=typeof e&&(i=e,e="fx",n--),n>arguments.length?b.queue(this[0],e):i===t?this:this.each(function(){var t=b.queue(this,e,i);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx&&b.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,i){var n,o=1,r=b.Deferred(),s=this,a=this.length,l=function(){--o||r.resolveWith(s,[s])};for("string"!=typeof e&&(i=e,e=t),e=e||"fx";a--;)(n=$.get(s[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(l));return l(),r.promise(i)}});var M,H=/[\t\r\n]/g,R=/\r/g,z=/^(?:input|select|textarea|button)$/i;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[b.propFix[e]||e]})},addClass:function(e){var t,i,n,o,r,s=0,a=this.length,l="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(x)||[];a>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(H," "):" ")){for(r=0;o=t[r++];)0>n.indexOf(" "+o+" ")&&(n+=o+" ");i.className=b.trim(n)}return this},removeClass:function(e){var t,i,n,o,r,s=0,a=this.length,l=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(x)||[];a>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(H," "):"")){for(r=0;o=t[r++];)for(;n.indexOf(" "+o+" ")>=0;)n=n.replace(" "+o+" "," ");i.className=e?b.trim(n):""}return this},toggleClass:function(e,t){var i=typeof e,n="boolean"==typeof t;return b.isFunction(e)?this.each(function(i){b(this).toggleClass(e.call(this,i,this.className,t),t)}):this.each(function(){if("string"===i)for(var r,s=0,a=b(this),l=t,c=e.match(x)||[];r=c[s++];)l=n?l:!a.hasClass(r),a[l?"addClass":"removeClass"](r);else(i===o||"boolean"===i)&&(this.className&&$.set(this,"__className__",this.className),this.className=this.className||!1===e?"":$.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(H," ").indexOf(t)>=0)return!0;return!1},val:function(e){var i,n,o,r=this[0];return arguments.length?(o=b.isFunction(e),this.each(function(n){var r,s=b(this);1===this.nodeType&&(null==(r=o?e.call(this,n,s.val()):e)?r="":"number"==typeof r?r+="":b.isArray(r)&&(r=b.map(r,function(e){return null==e?"":e+""})),(i=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,r,"value")!==t||(this.value=r))})):r?(i=b.valHooks[r.type]||b.valHooks[r.nodeName.toLowerCase()])&&"get"in i&&(n=i.get(r,"value"))!==t?n:"string"==typeof(n=r.value)?n.replace(R,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,r="select-one"===e.type||0>o,s=r?null:[],a=r?o+1:n.length,l=0>o?a:r?o:0;a>l;l++)if(!(!(i=n[l]).selected&&l!==o||(b.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&b.nodeName(i.parentNode,"optgroup"))){if(t=b(i).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var i,n,o=e.options,r=b.makeArray(t),s=o.length;s--;)((n=o[s]).selected=b.inArray(b(n).val(),r)>=0)&&(i=!0);return i||(e.selectedIndex=-1),r}}},attr:function(e,i,n){var r,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===o?b.prop(e,i,n):(1===a&&b.isXMLDoc(e)||(i=i.toLowerCase(),r=b.attrHooks[i]||(b.expr.match.boolean.test(i)?M:void 0)),n===t?r&&"get"in r&&null!==(s=r.get(e,i))?s:null==(s=b.find.attr(e,i))?t:s:null!==n?r&&"set"in r&&(s=r.set(e,n,i))!==t?s:(e.setAttribute(i,n+""),n):(b.removeAttr(e,i),t))},removeAttr:function(e,t){var i,n,o=0,r=t&&t.match(x);if(r&&1===e.nodeType)for(;i=r[o++];)n=b.propFix[i]||i,b.expr.match.boolean.test(i)&&(e[n]=!1),e.removeAttribute(i)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},propFix:{for:"htmlFor",class:"className"},prop:function(e,i,n){var o,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return(1!==s||!b.isXMLDoc(e))&&(i=b.propFix[i]||i,r=b.propHooks[i]),n!==t?r&&"set"in r&&(o=r.set(e,n,i))!==t?o:e[i]=n:r&&"get"in r&&null!==(o=r.get(e,i))?o:e[i]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||z.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,i){return!1===t?b.removeAttr(e,i):e.setAttribute(i,i),i}},b.each(b.expr.match.boolean.source.match(/\w+/g),function(e,i){var n=b.expr.attrHandle[i]||b.find.attr;b.expr.attrHandle[i]=function(e,i,o){var r=b.expr.attrHandle[i],s=o?t:(b.expr.attrHandle[i]=t)!=n(e,i,o)?i.toLowerCase():null;return b.expr.attrHandle[i]=r,s}}),b.support.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(e,i){return b.isArray(i)?e.checked=b.inArray(b(e).val(),i)>=0:t}},b.support.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var F=/^key/,W=/^(?:mouse|contextmenu)|click/,q=/^(?:focusinfocus|focusoutblur)$/,B=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function K(){return!1}function Z(){try{return s.activeElement}catch(e){}}b.event={global:{},add:function(e,i,n,r,s){var a,l,c,u,d,p,h,f,m,g,v,y=$.get(e);if(y){for(n.handler&&(n=(a=n).handler,s=a.selector),n.guid||(n.guid=b.guid++),(u=y.events)||(u=y.events={}),(l=y.handle)||((l=y.handle=function(e){return typeof b===o||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(l.elem,arguments)}).elem=e),d=(i=(i||"").match(x)||[""]).length;d--;)m=v=(c=B.exec(i[d])||[])[1],g=(c[2]||"").split(".").sort(),m&&(h=b.event.special[m]||{},m=(s?h.delegateType:h.bindType)||m,h=b.event.special[m]||{},p=b.extend({type:m,origType:v,data:r,handler:n,guid:n.guid,selector:s,needsContext:s&&b.expr.match.needsContext.test(s),namespace:g.join(".")},a),(f=u[m])||((f=u[m]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,g,l)||e.addEventListener&&e.addEventListener(m,l,!1)),h.add&&(h.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),s?f.splice(f.delegateCount++,0,p):f.push(p),b.event.global[m]=!0);e=null}},remove:function(e,t,i,n,o){var r,s,a,l,c,u,d,p,h,f,m,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(x)||[""]).length;c--;)if(h=m=(a=B.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(d=b.event.special[h]||{},p=l[h=(n?d.delegateType:d.bindType)||h]||[],a=a[2]&&RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)u=p[r],!o&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||b.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)b.event.remove(e,h+t[c],i,n,!0);b.isEmptyObject(l)&&(delete g.handle,$.remove(e,"events"))}},trigger:function(i,n,o,r){var a,l,c,u,d,p,h,f=[o||s],m=y.call(i,"type")?i.type:i,g=y.call(i,"namespace")?i.namespace.split("."):[];if(l=c=o=o||s,3!==o.nodeType&&8!==o.nodeType&&!q.test(m+b.event.triggered)&&(m.indexOf(".")>=0&&(g=m.split("."),m=g.shift(),g.sort()),d=0>m.indexOf(":")&&"on"+m,(i=i[b.expando]?i:new b.Event(m,"object"==typeof i&&i)).isTrigger=r?2:3,i.namespace=g.join("."),i.namespace_re=i.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=t,i.target||(i.target=o),n=null==n?[i]:b.makeArray(n,[i]),h=b.event.special[m]||{},r||!h.trigger||!1!==h.trigger.apply(o,n))){if(!r&&!h.noBubble&&!b.isWindow(o)){for(u=h.delegateType||m,q.test(u+m)||(l=l.parentNode);l;l=l.parentNode)f.push(l),c=l;c===(o.ownerDocument||s)&&f.push(c.defaultView||c.parentWindow||e)}for(a=0;(l=f[a++])&&!i.isPropagationStopped();)i.type=a>1?u:h.bindType||m,(p=($.get(l,"events")||{})[i.type]&&$.get(l,"handle"))&&p.apply(l,n),(p=d&&l[d])&&b.acceptData(l)&&p.apply&&!1===p.apply(l,n)&&i.preventDefault();return i.type=m,r||i.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),n)||!b.acceptData(o)||d&&b.isFunction(o[m])&&!b.isWindow(o)&&((c=o[d])&&(o[d]=null),b.event.triggered=m,o[m](),b.event.triggered=t,c&&(o[d]=c)),i.result}},dispatch:function(e){e=b.event.fix(e);var i,n,o,r,s,a=[],l=m.call(arguments),c=($.get(this,"events")||{})[e.type]||[],u=b.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=b.event.handlers.call(this,e,c),i=0;(r=a[i++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(s.namespace))&&(e.handleObj=s,e.data=s.data,(o=((b.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,l))!==t&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,i){var n,o,r,s,a=[],l=i.delegateCount,c=e.target;if(l&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(!0!==c.disabled||"click"!==e.type){for(o=[],n=0;l>n;n++)o[r=(s=i[n]).selector+" "]===t&&(o[r]=s.needsContext?b(r,this).index(c)>=0:b.find(r,this,null,[c]).length),o[r]&&o.push(s);o.length&&a.push({elem:c,handlers:o})}return i.length>l&&a.push({elem:this,handlers:i.slice(l)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,i){var n,o,r,a=i.button;return null==e.pageX&&null!=i.clientX&&(o=(n=e.target.ownerDocument||s).documentElement,r=n.body,e.pageX=i.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=i.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[b.expando])return e;var t,i,n,o=e.type,r=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=W.test(o)?this.mouseHooks:F.test(o)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,e=new b.Event(r),t=n.length;t--;)e[i=n[t]]=r[i];return 3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==Z()&&this.focus?(this.focus(),!1):t},delegateType:"focusin"},blur:{trigger:function(){return this===Z()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&b.nodeName(this,"input")?(this.click(),!1):t},_default:function(e){return b.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var o=b.extend(new b.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?b.event.trigger(o,null,t):b.event.dispatch.call(t,o),o.isDefaultPrevented()&&i.preventDefault()}},b.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)},b.Event=function(e,i){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:K):this.type=e,i&&b.extend(this,i),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,i)},b.Event.prototype={isDefaultPrevented:K,isPropagationStopped:K,isImmediatePropagationStopped:K,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,o=e.handleObj;return(!n||n!==this&&!b.contains(this,n))&&(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=t),i}}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var i=0,n=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0==i++&&s.addEventListener(e,n,!0)},teardown:function(){0==--i&&s.removeEventListener(e,n,!0)}}}),b.fn.extend({on:function(e,i,n,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=t),e)this.on(a,i,n,e[a],r);return this}if(null==n&&null==o?(o=i,n=i=t):null==o&&("string"==typeof i?(o=n,n=t):(o=n,n=i,i=t)),!1===o)o=K;else if(!o)return this;return 1===r&&(s=o,(o=function(e){return b().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,o,n,i)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,i,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,b(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,i,e[r]);return this}return(!1===i||"function"==typeof i)&&(n=i,i=t),!1===n&&(n=K),this.each(function(){b.event.remove(this,e,n,i)})},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,i){var n=this[0];return n?b.event.trigger(e,i,n,!0):t}});var Y=/^.[^:#\[\.,]*$/,Q=b.expr.match.needsContext,V={children:!0,contents:!0,next:!0,prev:!0};function X(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function G(e,t,i){if(b.isFunction(t))return b.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return b.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(Y.test(t))return b.filter(t,e,i);t=b.filter(t,e)}return b.grep(e,function(e){return g.call(t,e)>=0!==i})}b.fn.extend({find:function(e){var t,i,n,o=this.length;if("string"!=typeof e)return t=this,this.pushStack(b(e).filter(function(){for(n=0;o>n;n++)if(b.contains(t[n],this))return!0}));for(i=[],n=0;o>n;n++)b.find(e,this[n],i);return(i=this.pushStack(o>1?b.unique(i):i)).selector=(this.selector?this.selector+" ":"")+e,i},has:function(e){var t=b(e,this),i=t.length;return this.filter(function(){for(var e=0;i>e;e++)if(b.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(G(this,e||[],!0))},filter:function(e){return this.pushStack(G(this,e||[],!1))},is:function(e){return!!e&&("string"==typeof e?Q.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var i,n=0,o=this.length,r=[],s=Q.test(e)||"string"!=typeof e?b(e,t||this.context):0;o>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(11>i.nodeType&&(s?s.index(i)>-1:1===i.nodeType&&b.find.matchesSelector(i,e))){i=r.push(i);break}return this.pushStack(r.length>1?b.unique(r):r)},index:function(e){return e?"string"==typeof e?g.call(b(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var i="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),n=b.merge(this.get(),i);return this.pushStack(b.unique(n))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,i){return b.dir(e,"parentNode",i)},next:function(e){return X(e,"nextSibling")},prev:function(e){return X(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,i){return b.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return b.dir(e,"previousSibling",i)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(i,n){var o=b.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=b.filter(n,o)),this.length>1&&(V[e]||b.unique(o),"p"===e[0]&&o.reverse()),this.pushStack(o)}}),b.extend({filter:function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?b.find.matchesSelector(n,e)?[n]:[]:b.find.matches(e,b.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,i,n){for(var o=[],r=n!==t;(e=e[i])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&b(e).is(n))break;o.push(e)}return o},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}});var J=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ee=/<([\w:]+)/,te=/<|&#?\w+;/,ie=/<(?:script|style|link)/i,ne=/^(?:checkbox|radio)$/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^$|\/(?:java|ecma)script/i,se=/^true\/(.*)/,ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ce(e,t){return b.nodeName(e,"table")&&b.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function de(e){var t=se.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function pe(e,t){for(var i=e.length,n=0;i>n;n++)$.set(e[n],"globalEval",!t||$.get(t[n],"globalEval"))}function he(e,t){var i,n,o,r,s,a,l,c;if(1===t.nodeType){if($.hasData(e)&&(r=$.access(e),s=b.extend({},r),c=r.events,$.set(t,s),c))for(o in delete s.handle,s.events={},c)for(i=0,n=c[o].length;n>i;i++)b.event.add(t,o,c[o][i]);I.hasData(e)&&(a=I.access(e),l=b.extend({},a),I.set(t,l))}}function fe(e,i){var n=e.getElementsByTagName?e.getElementsByTagName(i||"*"):e.querySelectorAll?e.querySelectorAll(i||"*"):[];return i===t||i&&b.nodeName(e,i)?b.merge([e],n):n}function me(e,t){var i=t.nodeName.toLowerCase();"input"===i&&ne.test(e.type)?t.checked=e.checked:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.col=le.thead,le.th=le.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ce(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ce(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,n=e?b.filter(e,this):this,o=0;null!=(i=n[o]);o++)t||1!==i.nodeType||b.cleanData(fe(i)),i.parentNode&&(t&&b.contains(i.ownerDocument,i)&&pe(fe(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var i=this[0]||{},n=0,o=this.length;if(e===t&&1===i.nodeType)return i.innerHTML;if("string"==typeof e&&!ie.test(e)&&!le[(ee.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(J,"<$1></$2>");try{for(;o>n;n++)1===(i=this[n]||{}).nodeType&&(b.cleanData(fe(i,!1)),i.innerHTML=e);i=0}catch(e){}}i&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=b.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(i){var n=e[t++],o=e[t++];o&&(b(this).remove(),o.insertBefore(i,n))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,i){e=h.apply([],e);var n,o,r,s,a,l,c=0,u=this.length,d=this,p=u-1,f=e[0],m=b.isFunction(f);if(m||!(1>=u||"string"!=typeof f||b.support.checkClone)&&oe.test(f))return this.each(function(n){var o=d.eq(n);m&&(e[0]=f.call(this,n,o.html())),o.domManip(e,t,i)});if(u&&(o=(n=b.buildFragment(e,this[0].ownerDocument,!1,!i&&this)).firstChild,1===n.childNodes.length&&(n=o),o)){for(s=(r=b.map(fe(n,"script"),ue)).length;u>c;c++)a=n,c!==p&&(a=b.clone(a,!0,!0),s&&b.merge(r,fe(a,"script"))),t.call(this[c],a,c);if(s)for(l=r[r.length-1].ownerDocument,b.map(r,de),c=0;s>c;c++)a=r[c],re.test(a.type||"")&&!$.access(a,"globalEval")&&b.contains(l,a)&&(a.src?b._evalUrl(a.src):b.globalEval(a.textContent.replace(ae,"")))}return this}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){for(var i,n=[],o=b(e),r=o.length-1,s=0;r>=s;s++)i=s===r?this:this.clone(!0),b(o[s])[t](i),f.apply(n,i.get());return this.pushStack(n)}}),b.extend({clone:function(e,t,i){var n,o,r,s,a=e.cloneNode(!0),l=b.contains(e.ownerDocument,e);if(!(b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(s=fe(a),n=0,o=(r=fe(e)).length;o>n;n++)me(r[n],s[n]);if(t)if(i)for(r=r||fe(e),s=s||fe(a),n=0,o=r.length;o>n;n++)he(r[n],s[n]);else he(e,a);return(s=fe(a,"script")).length>0&&pe(s,!l&&fe(e,"script")),a},buildFragment:function(e,t,i,n){for(var o,r,s,a,l,c,u=0,d=e.length,p=t.createDocumentFragment(),h=[];d>u;u++)if((o=e[u])||0===o)if("object"===b.type(o))b.merge(h,o.nodeType?[o]:o);else if(te.test(o)){for(r=r||p.appendChild(t.createElement("div")),s=(ee.exec(o)||["",""])[1].toLowerCase(),a=le[s]||le._default,r.innerHTML=a[1]+o.replace(J,"<$1></$2>")+a[2],c=a[0];c--;)r=r.firstChild;b.merge(h,r.childNodes),(r=p.firstChild).textContent=""}else h.push(t.createTextNode(o));for(p.textContent="",u=0;o=h[u++];)if((!n||-1===b.inArray(o,n))&&(l=b.contains(o.ownerDocument,o),r=fe(p.appendChild(o),"script"),l&&pe(r),i))for(c=0;o=r[c++];)re.test(o.type||"")&&i.push(o);return p},cleanData:function(e){for(var t,i,n,o=e.length,r=0,s=b.event.special;o>r;r++){if(i=e[r],b.acceptData(i)&&(t=$.access(i)))for(n in t.events)s[n]?b.event.remove(i,n):b.removeEvent(i,n,t.handle);I.discard(i),$.discard(i)}},_evalUrl:function(e){return b.ajax({url:e,type:"GET",dataType:"text",async:!1,global:!1,success:b.globalEval})}}),b.fn.extend({wrapAll:function(e){var t;return b.isFunction(e)?this.each(function(t){b(this).wrapAll(e.call(this,t))}):(this[0]&&(t=b(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 b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(i){b(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()}});var ge,ve,ye=/^(none|table(?!-c[ea]).+)/,we=/^margin/,be=RegExp("^("+_+")(.*)$","i"),_e=RegExp("^("+_+")(?!px)[a-z%]+$","i"),xe=RegExp("^([+-])=("+_+")","i"),Te={BODY:"block"},Ce={position:"absolute",visibility:"hidden",display:"block"},Se={letterSpacing:0,fontWeight:400},ke=["Top","Right","Bottom","Left"],Ee=["Webkit","O","Moz","ms"];function De(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,o=Ee.length;o--;)if((t=Ee[o]+i)in e)return t;return n}function Ae(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function Oe(t){return e.getComputedStyle(t,null)}function Ie(e,t){for(var i,n,o,r=[],s=0,a=e.length;a>s;s++)(n=e[s]).style&&(r[s]=$.get(n,"olddisplay"),i=n.style.display,t?(r[s]||"none"!==i||(n.style.display=""),""===n.style.display&&Ae(n)&&(r[s]=$.access(n,"olddisplay",je(n.nodeName)))):r[s]||(o=Ae(n),(i&&"none"!==i||!o)&&$.set(n,"olddisplay",o?i:b.css(n,"display"))));for(s=0;a>s;s++)(n=e[s]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?r[s]||"":"none"));return e}function $e(e,t,i){var n=be.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Ne(e,t,i,n,o){for(var r=i===(n?"border":"content")?4:"width"===t?1:0,s=0;4>r;r+=2)"margin"===i&&(s+=b.css(e,i+ke[r],!0,o)),n?("content"===i&&(s-=b.css(e,"padding"+ke[r],!0,o)),"margin"!==i&&(s-=b.css(e,"border"+ke[r]+"Width",!0,o))):(s+=b.css(e,"padding"+ke[r],!0,o),"padding"!==i&&(s+=b.css(e,"border"+ke[r]+"Width",!0,o)));return s}function Pe(e,t,i){var n=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=Oe(e),s=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,r);if(0>=o||null==o){if((0>(o=ge(e,t,r))||null==o)&&(o=e.style[t]),_e.test(o))return o;n=s&&(b.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+Ne(e,t,i||(s?"border":"content"),n,r)+"px"}function je(e){var t=s,i=Te[e];return i||("none"!==(i=Le(e,t))&&i||((t=((ve=(ve||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||ve[0].contentDocument).document).write("<!doctype html><html><body>"),t.close(),i=Le(e,t),ve.detach()),Te[e]=i),i}function Le(e,t){var i=b(t.createElement(e)).appendTo(t.body),n=b.css(i[0],"display");return i.remove(),n}b.fn.extend({css:function(e,i){return b.access(this,function(e,i,n){var o,r,s={},a=0;if(b.isArray(i)){for(o=Oe(e),r=i.length;r>a;a++)s[i[a]]=b.css(e,i[a],!1,o);return s}return n!==t?b.style(e,i,n):b.css(e,i)},e,i,arguments.length>1)},show:function(){return Ie(this,!0)},hide:function(){return Ie(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:Ae(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ge(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,i,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,l=b.camelCase(i),c=e.style;return i=b.cssProps[l]||(b.cssProps[l]=De(c,l)),a=b.cssHooks[i]||b.cssHooks[l],n===t?a&&"get"in a&&(r=a.get(e,!1,o))!==t?r:c[i]:("string"===(s=typeof n)&&(r=xe.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(b.css(e,i)),s="number"),null==n||"number"===s&&isNaN(n)||("number"!==s||b.cssNumber[l]||(n+="px"),b.support.clearCloneStyle||""!==n||0!==i.indexOf("background")||(c[i]="inherit"),a&&"set"in a&&(n=a.set(e,n,o))===t||(c[i]=n)),t)}},css:function(e,i,n,o){var r,s,a,l=b.camelCase(i);return i=b.cssProps[l]||(b.cssProps[l]=De(e.style,l)),(a=b.cssHooks[i]||b.cssHooks[l])&&"get"in a&&(r=a.get(e,!0,n)),r===t&&(r=ge(e,i,o)),"normal"===r&&i in Se&&(r=Se[i]),""===n||n?(s=parseFloat(r),!0===n||b.isNumeric(s)?s||0:r):r}}),ge=function(e,i,n){var o,r,s,a=n||Oe(e),l=a?a.getPropertyValue(i)||a[i]:t,c=e.style;return a&&(""!==l||b.contains(e.ownerDocument,e)||(l=b.style(e,i)),_e.test(l)&&we.test(i)&&(o=c.width,r=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=o,c.minWidth=r,c.maxWidth=s)),l},b.each(["height","width"],function(e,i){b.cssHooks[i]={get:function(e,n,o){return n?0===e.offsetWidth&&ye.test(b.css(e,"display"))?b.swap(e,Ce,function(){return Pe(e,i,o)}):Pe(e,i,o):t},set:function(e,t,n){var o=n&&Oe(e);return $e(0,t,n?Ne(e,i,n,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o),o):0)}}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,i){return i?b.swap(e,{display:"inline-block"},ge,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,i){b.cssHooks[i]={get:function(e,n){return n?(n=ge(e,i),_e.test(n)?b(e).position()[i]+"px":n):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(i){for(var n=0,o={},r="string"==typeof i?i.split(" "):[i];4>n;n++)o[e+ke[n]+t]=r[n]||r[n-2]||r[0];return o}},we.test(e)||(b.cssHooks[e+t].set=$e)});var Me=/%20/g,He=/\[\]$/,Re=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function We(e,t,i,n){var o;if(b.isArray(t))b.each(t,function(t,o){i||He.test(e)?n(e,o):We(e+"["+("object"==typeof o?t:"")+"]",o,i,n)});else if(i||"object"!==b.type(t))n(e,t);else for(o in t)We(e+"["+o+"]",t[o],i,n)}b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(e)&&(this.checked||!ne.test(e))}).map(function(e,t){var i=b(this).val();return null==i?null:b.isArray(i)?b.map(i,function(e){return{name:t.name,value:e.replace(Re,"\r\n")}}):{name:t.name,value:i.replace(Re,"\r\n")}}).get()}}),b.param=function(e,i){var n,o=[],r=function(e,t){t=b.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(i===t&&(i=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){r(this.name,this.value)});else for(n in e)We(n,e[n],i,r);return o.join("&").replace(Me,"+")},b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var qe,Be,Ue=b.now(),Ke=/\?/,Ze=/#.*$/,Ye=/([?&])_=[^&]*/,Qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ge=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Je=b.fn.load,et={},tt={},it="*/".concat("*");try{Be=r.href}catch(e){(Be=s.createElement("a")).href="",Be=Be.href}function nt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,o=0,r=t.toLowerCase().match(x)||[];if(b.isFunction(i))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function ot(e,i,n,o){var r={},s=e===tt;function a(l){var c;return r[l]=!0,b.each(e[l]||[],function(e,l){var u=l(i,n,o);return"string"!=typeof u||s||r[u]?s?!(c=u):t:(i.dataTypes.unshift(u),a(u),!1)}),c}return a(i.dataTypes[0])||!r["*"]&&a("*")}function rt(e,i){var n,o,r=b.ajaxSettings.flatOptions||{};for(n in i)i[n]!==t&&((r[n]?e:o||(o={}))[n]=i[n]);return o&&b.extend(!0,e,o),e}qe=Ge.exec(Be.toLowerCase())||[],b.fn.load=function(e,i,n){if("string"!=typeof e&&Je)return Je.apply(this,arguments);var o,r,s,a=this,l=e.indexOf(" ");return l>=0&&(o=e.slice(l),e=e.slice(0,l)),b.isFunction(i)?(n=i,i=t):i&&"object"==typeof i&&(r="POST"),a.length>0&&b.ajax({url:e,type:r,dataType:"html",data:i}).done(function(e){s=arguments,a.html(o?b("<div>").append(b.parseHTML(e)).find(o):e)}).complete(n&&function(e,t){a.each(n,s||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Be,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(qe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":it,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?rt(rt(e,b.ajaxSettings),t):rt(b.ajaxSettings,e)},ajaxPrefilter:nt(et),ajaxTransport:nt(tt),ajax:function(e,i){"object"==typeof e&&(i=e,e=t),i=i||{};var n,o,r,s,a,l,c,u,d=b.ajaxSetup({},i),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?b(p):b.event,f=b.Deferred(),m=b.Callbacks("once memory"),g=d.statusCode||{},v={},y={},w=0,_="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!s)for(s={};t=Qe.exec(r);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?r:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return w||(e=y[i]=y[i]||e,v[e]=t),this},overrideMimeType:function(e){return w||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)g[t]=[g[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||_;return n&&n.abort(t),C(0,t),this}};if(f.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,d.url=((e||d.url||Be)+"").replace(Ze,"").replace(Xe,qe[1]+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=b.trim(d.dataType||"*").toLowerCase().match(x)||[""],null==d.crossDomain&&(l=Ge.exec(d.url.toLowerCase()),d.crossDomain=!(!l||l[1]===qe[1]&&l[2]===qe[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(qe[3]||("http:"===qe[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),ot(et,d,i,T),2===w)return T;for(u in(c=d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ve.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Ke.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Ye.test(o)?o.replace(Ye,"$1_="+Ue++):o+(Ke.test(o)?"&":"?")+"_="+Ue++)),d.ifModified&&(b.lastModified[o]&&T.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&T.setRequestHeader("If-None-Match",b.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+it+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(p,T,d)||2===w))return T.abort();for(u in _="abort",{success:1,error:1,complete:1})T[u](d[u]);if(n=ot(tt,d,i,T)){T.readyState=1,c&&h.trigger("ajaxSend",[T,d]),d.async&&d.timeout>0&&(a=setTimeout(function(){T.abort("timeout")},d.timeout));try{w=1,n.send(v,C)}catch(e){if(!(2>w))throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,i,s,l){var u,v,y,_,x,C=i;2!==w&&(w=2,a&&clearTimeout(a),n=t,r=l||"",T.readyState=e>0?4:0,u=e>=200&&300>e||304===e,s&&(_=function(e,i,n){var o,r,s,a,l=e.contents,c=e.dataTypes;for(;"*"===c[0];)c.shift(),o===t&&(o=e.mimeType||i.getResponseHeader("Content-Type"));if(o)for(r in l)if(l[r]&&l[r].test(o)){c.unshift(r);break}if(c[0]in n)s=c[0];else{for(r in n){if(!c[0]||e.converters[r+" "+c[0]]){s=r;break}a||(a=r)}s=s||a}return s?(s!==c[0]&&c.unshift(s),n[s]):t}(d,T,s)),_=function(e,t,i,n){var o,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];r=u.shift();for(;r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(d,_,T,u),u?(d.ifModified&&((x=T.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=x),(x=T.getResponseHeader("etag"))&&(b.etag[o]=x)),204===e?C="nocontent":304===e?C="notmodified":(C=_.state,v=_.data,u=!(y=_.error))):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),T.status=e,T.statusText=(i||C)+"",u?f.resolveWith(p,[v,C,T]):f.rejectWith(p,[T,C,y]),T.statusCode(g),g=t,c&&h.trigger(u?"ajaxSuccess":"ajaxError",[T,d,u?v:y]),m.fireWith(p,[T,C]),c&&(h.trigger("ajaxComplete",[T,d]),--b.active||b.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,i){return b.get(e,t,i,"json")},getScript:function(e,i){return b.get(e,t,i,"script")}}),b.each(["get","post"],function(e,i){b[i]=function(e,n,o,r){return b.isFunction(n)&&(r=r||o,o=n,n=t),b.ajax({url:e,type:i,dataType:r,data:n,success:o})}}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),b.ajaxTransport("script",function(e){var t,i;if(e.crossDomain)return{send:function(n,o){t=b("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&o("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){i&&i()}}});var st=[],at=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=st.pop()||b.expando+"_"+Ue++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(i,n,o){var r,s,a,l=!1!==i.jsonp&&(at.test(i.url)?"url":"string"==typeof i.data&&!(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(i.data)&&"data");return l||"jsonp"===i.dataTypes[0]?(r=i.jsonpCallback=b.isFunction(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,l?i[l]=i[l].replace(at,"$1"+r):!1!==i.jsonp&&(i.url+=(Ke.test(i.url)?"&":"?")+i.jsonp+"="+r),i.converters["script json"]=function(){return a||b.error(r+" was not called"),a[0]},i.dataTypes[0]="json",s=e[r],e[r]=function(){a=arguments},o.always(function(){e[r]=s,i[r]&&(i.jsonpCallback=n.jsonpCallback,st.push(r)),a&&b.isFunction(s)&&s(a[0]),a=s=t}),"script"):t}),b.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var lt=b.ajaxSettings.xhr(),ct={0:200,1223:204},ut=0,dt={};e.ActiveXObject&&b(e).on("unload",function(){for(var e in dt)dt[e]();dt=t}),b.support.cors=!!lt&&"withCredentials"in lt,b.support.ajax=lt=!!lt,b.ajaxTransport(function(e){var i;return b.support.cors||lt&&!e.crossDomain?{send:function(n,o){var r,s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)a.setRequestHeader(r,n[r]);i=function(e){return function(){i&&(delete dt[s],i=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?o(a.status||404,a.statusText):o(ct[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:t,a.getAllResponseHeaders()))}},a.onload=i(),a.onerror=i("error"),i=dt[s=ut++]=i("abort"),a.send(e.hasContent&&e.data||null)},abort:function(){i&&i()}}:t});var pt,ht,ft=/^(?:toggle|show|hide)$/,mt=RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),gt=/queueHooks$/,vt=[function(e,i,n){var o,r,s,a,l,c,u,d,p,h=this,f=e.style,m={},g=[],v=e.nodeType&&Ae(e);for(o in n.queue||(null==(d=b._queueHooks(e,"fx")).unqueued&&(d.unqueued=0,p=d.empty.fire,d.empty.fire=function(){d.unqueued||p()}),d.unqueued++,h.always(function(){h.always(function(){d.unqueued--,b.queue(e,"fx").length||d.empty.fire()})})),1===e.nodeType&&("height"in i||"width"in i)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=$.get(e,"fxshow"),i)if(s=i[o],ft.exec(s)){if(delete i[o],c=c||"toggle"===s,s===(v?"hide":"show")){if("show"!==s||l===t||l[o]===t)continue;v=!0}g.push(o)}if(a=g.length){"hidden"in(l=$.get(e,"fxshow")||$.access(e,"fxshow",{}))&&(v=l.hidden),c&&(l.hidden=!v),v?b(e).show():h.done(function(){b(e).hide()}),h.done(function(){var t;for(t in $.remove(e,"fxshow"),m)b.style(e,t,m[t])});for(o=0;a>o;o++)r=g[o],u=h.createTween(r,v?l[r]:0),m[r]=l[r]||b.style(e,r),r in l||(l[r]=u.start,v&&(u.end=u.start,u.start="width"===r||"height"===r?1:0))}}],yt={"*":[function(e,t){var i,n,o=this.createTween(e,t),r=mt.exec(t),s=o.cur(),a=+s||0,l=1,c=20;if(r){if(i=+r[2],"px"!==(n=r[3]||(b.cssNumber[e]?"":"px"))&&a){a=b.css(o.elem,e,!0)||i||1;do{a/=l=l||".5",b.style(o.elem,e,a+n)}while(l!==(l=o.cur()/s)&&1!==l&&--c)}o.unit=n,o.start=a,o.end=r[1]?a+(r[1]+1)*i:i}return o}]};function wt(){return setTimeout(function(){pt=t}),pt=b.now()}function bt(e,t,i){var n,o,r=0,s=vt.length,a=b.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=pt||wt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),r=0,s=c.tweens.length;s>r;r++)c.tweens[r].run(n);return a.notifyWith(e,[c,n,i]),1>n&&s?i:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:pt||wt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=b.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;n>i;i++)c.tweens[i].run(1);return t?a.resolveWith(e,[c,t]):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var i,n,o,r,s;for(i in e)if(n=b.camelCase(i),o=t[n],r=e[i],b.isArray(r)&&(o=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(s=b.cssHooks[n])&&"expand"in s)for(i in r=s.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=o);else t[n]=o}(u,c.opts.specialEasing);s>r;r++)if(n=vt[r].call(c,e,u,c.opts))return n;return function(e,t){b.each(t,function(t,i){for(var n=(yt[t]||[]).concat(yt["*"]),o=0,r=n.length;r>o;o++)if(n[o].call(e,t,i))return})}(c,u),b.isFunction(c.opts.start)&&c.opts.start.call(e,c),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function _t(e,t,i,n,o){return new _t.prototype.init(e,t,i,n,o)}function xt(e,t){var i,n={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)n["margin"+(i=ke[o])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function Tt(e){return b.isWindow(e)?e:9===e.nodeType&&e.defaultView}b.Animation=b.extend(bt,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,o=e.length;o>n;n++)i=e[n],yt[i]=yt[i]||[],yt[i].unshift(t)},prefilter:function(e,t){t?vt.unshift(e):vt.push(e)}}),b.Tween=_t,_t.prototype={constructor:_t,init:function(e,t,i,n,o,r){this.elem=e,this.prop=i,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(b.cssNumber[i]?"":"px")},cur:function(){var e=_t.propHooks[this.prop];return e&&e.get?e.get(this):_t.propHooks._default.get(this)},run:function(e){var t,i=_t.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):_t.propHooks._default.set(this),this}},_t.prototype.init.prototype=_t.prototype,_t.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},_t.propHooks.scrollTop=_t.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var i=b.fn[t];b.fn[t]=function(e,n,o){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(xt(t,!0),e,n,o)}}),b.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Ae).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var o=b.isEmptyObject(e),r=b.speed(t,i,n),s=function(){var t=bt(this,b.extend({},e),r);s.finish=function(){t.stop(!0)},(o||$.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,i,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=i,i=e,e=t),i&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",r=b.timers,s=$.get(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&gt.test(i)&&o(s[i]);for(i=r.length;i--;)r[i].elem!==this||null!=e&&r[i].queue!==e||(r[i].anim.stop(n),t=!1,r.splice(i,1));(t||!n)&&b.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=$.get(this),n=i[e+"queue"],o=i[e+"queueHooks"],r=b.timers,s=n?n.length:0;for(i.finish=!0,b.queue(this,e,[]),o&&o.cur&&o.cur.finish&&o.cur.finish.call(this),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;s>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),b.each({slideDown:xt("show"),slideUp:xt("hide"),slideToggle:xt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),b.speed=function(e,t,i){var n=e&&"object"==typeof e?b.extend({},e):{complete:i||!i&&t||b.isFunction(e)&&e,duration:e,easing:i&&t||t&&!b.isFunction(t)&&t};return n.duration=b.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in b.fx.speeds?b.fx.speeds[n.duration]:b.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){b.isFunction(n.old)&&n.old.call(this),n.queue&&b.dequeue(this,n.queue)},n},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=_t.prototype.init,b.fx.tick=function(){var e,i=b.timers,n=0;for(pt=b.now();i.length>n;n++)(e=i[n])()||i[n]!==e||i.splice(n--,1);i.length||b.fx.stop(),pt=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){ht||(ht=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(ht),ht=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var i,n,r=this[0],s={top:0,left:0},a=r&&r.ownerDocument;return a?(i=a.documentElement,b.contains(i,r)?(typeof r.getBoundingClientRect!==o&&(s=r.getBoundingClientRect()),n=Tt(a),{top:s.top+n.pageYOffset-i.clientTop,left:s.left+n.pageXOffset-i.clientLeft}):s):void 0},b.offset={setOffset:function(e,t,i){var n,o,r,s,a,l,c=b.css(e,"position"),u=b(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=b.css(e,"top"),l=b.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(n=u.position()).top,o=n.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),b.isFunction(t)&&(t=t.call(e,i,a)),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):u.css(d)}},b.fn.extend({position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===b.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(i,"marginTop",!0),left:t.left-n.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||a;e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position");)e=e.offsetParent;return e||a})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(i,n){var o="pageYOffset"===n;b.fn[i]=function(r){return b.access(this,function(i,r,s){var a=Tt(i);return s===t?a?a[n]:i[r]:(a?a.scrollTo(o?e.pageXOffset:s,o?s:e.pageYOffset):i[r]=s,t)},i,r,arguments.length,null)}}),b.each({Height:"height",Width:"width"},function(e,i){b.each({padding:"inner"+e,content:i,"":"outer"+e},function(n,o){b.fn[o]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return b.access(this,function(i,n,o){var r;return b.isWindow(i)?i.document.documentElement["client"+e]:9===i.nodeType?(r=i.documentElement,Math.max(i.body["scroll"+e],r["scroll"+e],i.body["offset"+e],r["offset"+e],r["client"+e])):o===t?b.css(i,n,a):b.style(i,n,o,a)},i,s?o:t,s,null)}})}),b.fn.size=function(){return this.length},b.fn.andSelf=b.fn.addBack,"object"==typeof module&&"object"==typeof module.exports?module.exports=b:"function"==typeof define&&define.amd&&define("jquery",[],function(){return b}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=b)}(window),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n,o,r;n=e,r=i[o=t],o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r})}return e}for(var r,s,a,l,c,u,d,p,h,f,m,g,v,y,w,b,_,x,T,C,S,k,E,D,A,O,I,$,N,P,j,L,M,H,R,z,F,W,q,B,U,K,Z,Y,Q,V,X,G=function(e){var t="transitionend";var i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=e(t).css("transition-duration");return parseFloat(i)?(i=i.split(",")[0],1e3*parseFloat(i)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(i){e(i).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o],s=t[o],a=s&&i.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+r+'".')}var l}};return e.fn.emulateTransitionEnd=function(t){var n=this,o=!1;return e(this).one(i.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||i.triggerTransitionEnd(n)},t),this},e.event.special[i.TRANSITION_END]={bindType:t,delegateType:t,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i}(t=t&&t.hasOwnProperty("default")?t.default:t),J=(s="alert",l="."+(a="bs.alert"),c=(r=t).fn[s],u={CLOSE:"close"+l,CLOSED:"closed"+l,CLICK_DATA_API:"click"+l+".data-api"},"alert","fade","show",d=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.removeData(this._element,a),this._element=null},t._getRootElement=function(e){var t=G.getSelectorFromElement(e),i=!1;return t&&(i=document.querySelector(t)),i||(i=r(e).closest(".alert")[0]),i},t._triggerCloseEvent=function(e){var t=r.Event(u.CLOSE);return r(e).trigger(t),t},t._removeElement=function(e){var t=this;if(r(e).removeClass("show"),r(e).hasClass("fade")){var i=G.getTransitionDurationFromElement(e);r(e).one(G.TRANSITION_END,function(i){return t._destroyElement(e,i)}).emulateTransitionEnd(i)}else this._destroyElement(e)},t._destroyElement=function(e){r(e).detach().trigger(u.CLOSED).remove()},e._jQueryInterface=function(t){return this.each(function(){var i=r(this),n=i.data(a);n||(n=new e(this),i.data(a,n)),"close"===t&&n[t](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),r(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',d._handleDismiss(new d)),r.fn[s]=d._jQueryInterface,r.fn[s].Constructor=d,r.fn[s].noConflict=function(){return r.fn[s]=c,d._jQueryInterface},d),ee=(h="button",m="."+(f="bs.button"),g=".data-api",v=(p=t).fn[h],y="active","btn",w='[data-toggle^="button"]','[data-toggle="buttons"]',"input",".active",b=".btn",_={CLICK_DATA_API:"click"+m+g,FOCUS_BLUR_DATA_API:"focus"+m+g+" blur"+m+g},x=function(){function e(e){this._element=e}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,i=p(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector("input");if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(y))e=!1;else{var o=i.querySelector(".active");o&&p(o).removeClass(y)}if(e){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(y),p(n).trigger("change")}n.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(y)),e&&p(this._element).toggleClass(y)},t.dispose=function(){p.removeData(this._element,f),this._element=null},e._jQueryInterface=function(t){return this.each(function(){var i=p(this).data(f);i||(i=new e(this),p(this).data(f,i)),"toggle"===t&&i[t]()})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),p(document).on(_.CLICK_DATA_API,w,function(e){e.preventDefault();var t=e.target;p(t).hasClass("btn")||(t=p(t).closest(b)),x._jQueryInterface.call(p(t),"toggle")}).on(_.FOCUS_BLUR_DATA_API,w,function(e){var t=p(e.target).closest(b)[0];p(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),p.fn[h]=x._jQueryInterface,p.fn[h].Constructor=x,p.fn[h].noConflict=function(){return p.fn[h]=v,x._jQueryInterface},x),te=(C="carousel",k="."+(S="bs.carousel"),E=".data-api",D=(T=t).fn[C],A={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},O={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},I="next",$="prev","left","right",N={SLIDE:"slide"+k,SLID:"slid"+k,KEYDOWN:"keydown"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k,TOUCHEND:"touchend"+k,LOAD_DATA_API:"load"+k+E,CLICK_DATA_API:"click"+k+E},"carousel",P="active","slide","carousel-item-right","carousel-item-left","carousel-item-next","carousel-item-prev",".active",j=".active.carousel-item",".carousel-item",".carousel-item-next, .carousel-item-prev",L=".carousel-indicators","[data-slide], [data-slide-to]",'[data-ride="carousel"]',M=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=T(e)[0],this._indicatorsElement=this._element.querySelector(L),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(I)},t.nextWhenVisible=function(){!document.hidden&&T(this._element).is(":visible")&&"hidden"!==T(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide($)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(G.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.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))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(j);var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)T(this._element).one(N.SLID,function(){return t.to(e)});else{if(i===e)return this.pause(),void this.cycle();var n=i<e?I:$;this._slide(n,this._items[e])}},t.dispose=function(){T(this._element).off(k),T.removeData(this._element,S),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=o({},A,e),G.typeCheckConfig(C,e,O),e},t._addEventListeners=function(){var e=this;this._config.keyboard&&T(this._element).on(N.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(T(this._element).on(N.MOUSEENTER,function(t){return e.pause(t)}).on(N.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&T(this._element).on(N.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._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()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var i=e===I,n=e===$,o=this._getItemIndex(t),r=this._items.length-1;if((n&&0===o||i&&o===r)&&!this._config.wrap)return t;var s=(o+(e===$?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(this._element.querySelector(j)),o=T.Event(N.SLIDE,{relatedTarget:e,direction:t,from:n,to:i});return T(this._element).trigger(o),o},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));T(t).removeClass(P);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&T(i).addClass(P)}},t._slide=function(e,t){var i,n,o,r=this,s=this._element.querySelector(j),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),c=this._getItemIndex(l),u=Boolean(this._interval);if(e===I?(i="carousel-item-left",n="carousel-item-next",o="left"):(i="carousel-item-right",n="carousel-item-prev",o="right"),l&&T(l).hasClass(P))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l);var d=T.Event(N.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(T(this._element).hasClass("slide")){T(l).addClass(n),G.reflow(l),T(s).addClass(i),T(l).addClass(i);var p=G.getTransitionDurationFromElement(s);T(s).one(G.TRANSITION_END,function(){T(l).removeClass(i+" "+n).addClass(P),T(s).removeClass(P+" "+n+" "+i),r._isSliding=!1,setTimeout(function(){return T(r._element).trigger(d)},0)}).emulateTransitionEnd(p)}else T(s).removeClass(P),T(l).addClass(P),this._isSliding=!1,T(this._element).trigger(d);u&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var i=T(this).data(S),n=o({},A,T(this).data());"object"==typeof t&&(n=o({},n,t));var r="string"==typeof t?t:n.slide;if(i||(i=new e(this,n),T(this).data(S,i)),"number"==typeof t)i.to(t);else if("string"==typeof r){if(void 0===i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else n.interval&&(i.pause(),i.cycle())})},e._dataApiClickHandler=function(t){var i=G.getSelectorFromElement(this);if(i){var n=T(i)[0];if(n&&T(n).hasClass("carousel")){var r=o({},T(n).data(),T(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),e._jQueryInterface.call(T(n),r),s&&T(n).data(S).to(s),t.preventDefault()}}},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return A}}]),e}(),T(document).on(N.CLICK_DATA_API,"[data-slide], [data-slide-to]",M._dataApiClickHandler),T(window).on(N.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,i=e.length;t<i;t++){var n=T(e[t]);M._jQueryInterface.call(n,n.data())}}),T.fn[C]=M._jQueryInterface,T.fn[C].Constructor=M,T.fn[C].noConflict=function(){return T.fn[C]=D,M._jQueryInterface},M),ie=(R="collapse",F="."+(z="bs.collapse"),W=(H=t).fn[R],q={toggle:!0,parent:""},B={toggle:"boolean",parent:"(string|element)"},U={SHOW:"show"+F,SHOWN:"shown"+F,HIDE:"hide"+F,HIDDEN:"hidden"+F,CLICK_DATA_API:"click"+F+".data-api"},K="show",Z="collapse",Y="collapsing",Q="collapsed","width","height",".show, .collapsing",V='[data-toggle="collapse"]',X=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=H.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(V)),n=0,o=i.length;n<o;n++){var r=i[n],s=G.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){H(this._element).hasClass(K)?this.hide():this.show()},t.show=function(){var t,i,n=this;if(!(this._isTransitioning||H(this._element).hasClass(K)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(e){return e.getAttribute("data-parent")===n._config.parent})).length&&(t=null),t&&(i=H(t).not(this._selector).data(z))&&i._isTransitioning))){var o=H.Event(U.SHOW);if(H(this._element).trigger(o),!o.isDefaultPrevented()){t&&(e._jQueryInterface.call(H(t).not(this._selector),"hide"),i||H(t).data(z,null));var r=this._getDimension();H(this._element).removeClass(Z).addClass(Y),this._element.style[r]=0,this._triggerArray.length&&H(this._triggerArray).removeClass(Q).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(r[0].toUpperCase()+r.slice(1)),a=G.getTransitionDurationFromElement(this._element);H(this._element).one(G.TRANSITION_END,function(){H(n._element).removeClass(Y).addClass(Z).addClass(K),n._element.style[r]="",n.setTransitioning(!1),H(n._element).trigger(U.SHOWN)}).emulateTransitionEnd(a),this._element.style[r]=this._element[s]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&H(this._element).hasClass(K)){var t=H.Event(U.HIDE);if(H(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",G.reflow(this._element),H(this._element).addClass(Y).removeClass(Z).removeClass(K);var n=this._triggerArray.length;if(0<n)for(var o=0;o<n;o++){var r=this._triggerArray[o],s=G.getSelectorFromElement(r);null!==s&&(H([].slice.call(document.querySelectorAll(s))).hasClass(K)||H(r).addClass(Q).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var a=G.getTransitionDurationFromElement(this._element);H(this._element).one(G.TRANSITION_END,function(){e.setTransitioning(!1),H(e._element).removeClass(Y).addClass(Z).trigger(U.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){H.removeData(this._element,z),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=o({},q,e)).toggle=Boolean(e.toggle),G.typeCheckConfig(R,e,B),e},t._getDimension=function(){return H(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t=this,i=null;G.isElement(this._config.parent)?(i=this._config.parent,void 0!==this._config.parent.jquery&&(i=this._config.parent[0])):i=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(i.querySelectorAll(n));return H(o).each(function(i,n){t._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])}),i},t._addAriaAndCollapsedClass=function(e,t){if(e){var i=H(e).hasClass(K);t.length&&H(t).toggleClass(Q,!i).attr("aria-expanded",i)}},e._getTargetFromElement=function(e){var t=G.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each(function(){var i=H(this),n=i.data(z),r=o({},q,i.data(),"object"==typeof t&&t?t:{});if(!n&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),n||(n=new e(this,r),i.data(z,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return q}}]),e}(),H(document).on(U.CLICK_DATA_API,V,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=H(this),i=G.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));H(n).each(function(){var e=H(this),i=e.data(z)?"toggle":t.data();X._jQueryInterface.call(e,i)})}),H.fn[R]=X._jQueryInterface,H.fn[R].Constructor=X,H.fn[R].noConflict=function(){return H.fn[R]=W,X._jQueryInterface},X),ne="undefined"!=typeof window&&"undefined"!=typeof document,oe=["Edge","Trident","Firefox"],re=0,se=0;se<oe.length;se+=1)if(ne&&0<=navigator.userAgent.indexOf(oe[se])){re=1;break}var ae=ne&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},re))}};function le(e){return e&&"[object Function]"==={}.toString.call(e)}function ce(e,t){if(1!==e.nodeType)return[];var i=getComputedStyle(e,null);return t?i[t]:i}function ue(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function de(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ce(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(i+o+n)?e:de(ue(e))}var pe=ne&&!(!window.MSInputMethodContext||!document.documentMode),he=ne&&/MSIE 10/.test(navigator.userAgent);function fe(e){return 11===e?pe:10===e?he:pe||he}function me(e){if(!e)return document.documentElement;for(var t=fe(10)?document.body:null,i=e.offsetParent;i===t&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===ce(i,"position")?me(i):i:e?e.ownerDocument.documentElement:document.documentElement}function ge(e){return null!==e.parentNode?ge(e.parentNode):e}function ve(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,o=i?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&me(s.firstElementChild)!==s?me(l):l;var c=ge(e);return c.host?ve(c.host,t):ve(e,ge(t).host)}function ye(e){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var n=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||n)[t]}return e[t]}function we(e,t){var i="x"===t?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(e["border"+i+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function be(e,t,i,n){return Math.max(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],fe(10)?i["offset"+e]+n["margin"+("Height"===e?"Top":"Left")]+n["margin"+("Height"===e?"Bottom":"Right")]:0)}function _e(){var e=document.body,t=document.documentElement,i=fe(10)&&getComputedStyle(t);return{height:be("Height",e,t,i),width:be("Width",e,t,i)}}var xe=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),Te=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function Se(e){return Ce({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ke(e){var t={};try{if(fe(10)){t=e.getBoundingClientRect();var i=ye(e,"top"),n=ye(e,"left");t.top+=i,t.left+=n,t.bottom+=i,t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?_e():{},s=r.width||e.clientWidth||o.right-o.left,a=r.height||e.clientHeight||o.bottom-o.top,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=ce(e);l-=we(u,"x"),c-=we(u,"y"),o.width-=l,o.height-=c}return Se(o)}function Ee(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=fe(10),o="HTML"===t.nodeName,r=ke(e),s=ke(t),a=de(e),l=ce(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);i&&"HTML"===t.nodeName&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=Se({top:r.top-s.top-c,left:r.left-s.left-u,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var p=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(n&&!i?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(d=function(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=ye(t,"top"),o=ye(t,"left"),r=i?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=o*r,e.right+=o*r,e}(d,t)),d}function De(e){if(!e||!e.parentElement||fe())return document.documentElement;for(var t=e.parentElement;t&&"none"===ce(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ae(e,t,i,n){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?De(e):ve(e,t);if("viewport"===n)r=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=e.ownerDocument.documentElement,n=Ee(e,i),o=Math.max(i.clientWidth,window.innerWidth||0),r=Math.max(i.clientHeight,window.innerHeight||0),s=t?0:ye(i),a=t?0:ye(i,"left");return Se({top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:o,height:r})}(s,o);else{var a=void 0;"scrollParent"===n?"BODY"===(a=de(ue(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===n?e.ownerDocument.documentElement:n;var l=Ee(a,s,o);if("HTML"!==a.nodeName||function e(t){var i=t.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===ce(t,"position")||e(ue(t)))}(s))r=l;else{var c=_e(),u=c.height,d=c.width;r.top+=l.top-l.marginTop,r.bottom=u+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=i,r.top+=i,r.right-=i,r.bottom-=i,r}function Oe(e,t,i,n,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=Ae(i,n,r,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map(function(e){return Ce({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=0<c.length?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Ie(e,t,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return Ee(i,n?De(t):ve(t,i),n)}function $e(e){var t=getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+n,height:e.offsetHeight+i}}function Ne(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 Pe(e,t,i){i=i.split("-")[0];var n=$e(e),o={width:n.width,height:n.height},r=-1!==["right","left"].indexOf(i),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=t[s]+t[l]/2-n[l]/2,o[a]=i===a?t[a]-n[c]:t[Ne(a)],o}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Le(e,t,i){return(void 0===i?e:e.slice(0,function(e,t,i){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===i});var n=je(e,function(e){return e[t]===i});return e.indexOf(n)}(e,"name",i))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=e.function||e.fn;e.enabled&&le(i)&&(t.offsets.popper=Se(t.offsets.popper),t.offsets.reference=Se(t.offsets.reference),t=i(t,e))}),t}function Me(e,t){return e.some(function(e){var i=e.name;return e.enabled&&i===t})}function He(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var o=t[n],r=o?""+o+i:e;if(void 0!==document.body.style[r])return r}return null}function Re(e){var t=e.ownerDocument;return t?t.defaultView:window}function ze(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Fe(e,t){Object.keys(t).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&ze(t[i])&&(n="px"),e.style[i]=t[i]+n})}function We(e,t,i){var n=je(e,function(e){return e.name===t}),o=!!n&&e.some(function(e){return e.name===i&&e.enabled&&e.order<n.order});if(!o){var r="`"+t+"`",s="`"+i+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var qe=["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"],Be=qe.slice(3);function Ue(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=Be.indexOf(e),n=Be.slice(i+1).concat(Be.slice(0,i));return t?n.reverse():n}var Ke={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,i=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",u={start:Te({},l,r[l]),end:Te({},l,r[l]+r[c]-s[c])};e.offsets.popper=Ce({},s,u[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var i,n=t.offset,o=e.placement,r=e.offsets,s=r.popper,a=r.reference,l=o.split("-")[0];return i=ze(+n)?[+n,0]:function(e,t,i,n){var o=[0,0],r=-1!==["right","left"].indexOf(n),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(je(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(e,n){var o=(1===n?!r:r)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,i,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=i;break;case"%":case"%r":default:a=n}return Se(a)[t]/100*r}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}(e,o,t,i)})})).forEach(function(e,t){e.forEach(function(i,n){ze(i)&&(o[t]+=i*("-"===e[n-1]?-1:1))})}),o}(n,s,a,l),"left"===l?(s.top+=i[0],s.left-=i[1]):"right"===l?(s.top+=i[0],s.left+=i[1]):"top"===l?(s.left+=i[0],s.top-=i[1]):"bottom"===l&&(s.left+=i[0],s.top+=i[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var i=t.boundariesElement||me(e.instance.popper);e.instance.reference===i&&(i=me(i));var n=He("transform"),o=e.instance.popper.style,r=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=Ae(e.instance.popper,e.instance.reference,t.padding,i,e.positionFixed);o.top=r,o.left=s,o[n]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var i=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(i=Math.max(u[e],l[e])),Te({},e,i)},secondary:function(e){var i="right"===e?"left":"top",n=u[i];return u[e]>l[e]&&!t.escapeWithReference&&(n=Math.min(u[i],l[e]-("right"===e?u.width:u.height))),Te({},i,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Ce({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,n=t.reference,o=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return i[a]<r(n[l])&&(e.offsets.popper[l]=r(n[l])-i[c]),i[l]>r(n[a])&&(e.offsets.popper[l]=r(n[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var i;if(!We(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=$e(n)[c];a[h]-f<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-f)),a[d]+f>s[h]&&(e.offsets.popper[d]+=a[d]+f-s[h]),e.offsets.popper=Se(e.offsets.popper);var m=a[d]+a[c]/2-f/2,g=ce(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),w=m-e.offsets.popper[d]-v-y;return w=Math.max(Math.min(s[c]-f,w),0),e.arrowElement=n,e.offsets.arrow=(Te(i={},d,Math.round(w)),Te(i,p,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Me(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var i=Ae(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],o=Ne(n),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[n,o];break;case"clockwise":s=Ue(n);break;case"counterclockwise":s=Ue(n,!0);break;default:s=t.behavior}return s.forEach(function(a,l){if(n!==a||s.length===l+1)return e;n=e.placement.split("-")[0],o=Ne(n);var c,u=e.offsets.popper,d=e.offsets.reference,p=Math.floor,h="left"===n&&p(u.right)>p(d.left)||"right"===n&&p(u.left)<p(d.right)||"top"===n&&p(u.bottom)>p(d.top)||"bottom"===n&&p(u.top)<p(d.bottom),f=p(u.left)<p(i.left),m=p(u.right)>p(i.right),g=p(u.top)<p(i.top),v=p(u.bottom)>p(i.bottom),y="left"===n&&f||"right"===n&&m||"top"===n&&g||"bottom"===n&&v,w=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(w&&"start"===r&&f||w&&"end"===r&&m||!w&&"start"===r&&g||!w&&"end"===r&&v);(h||y||b)&&(e.flipped=!0,(h||y)&&(n=s[l+1]),b&&(r="end"===(c=r)?"start":"start"===c?"end":c),e.placement=n+(r?"-"+r:""),e.offsets.popper=Ce({},e.offsets.popper,Pe(e.instance.popper,e.offsets.reference,e.placement)),e=Le(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,o=n.popper,r=n.reference,s=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return o[s?"left":"top"]=r[i]-(a?o[s?"width":"height"]:0),e.placement=Ne(t),e.offsets.popper=Se(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!We(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.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(e,t){var i=t.x,n=t.y,o=e.offsets.popper,r=je(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,l=void 0!==r?r:t.gpuAcceleration,c=ke(me(e.instance.popper)),u={position:o.position},d={left:Math.floor(o.left),top:Math.round(o.top),bottom:Math.round(o.bottom),right:Math.floor(o.right)},p="bottom"===i?"top":"bottom",h="right"===n?"left":"right",f=He("transform");if(a="bottom"===p?-c.height+d.bottom:d.top,s="right"===h?-c.width+d.right:d.left,l&&f)u[f]="translate3d("+s+"px, "+a+"px, 0)",u[p]=0,u[h]=0,u.willChange="transform";else{var m="bottom"===p?-1:1,g="right"===h?-1:1;u[p]=a*m,u[h]=s*g,u.willChange=p+", "+h}var v={"x-placement":e.placement};return e.attributes=Ce({},v,e.attributes),e.styles=Ce({},u,e.styles),e.arrowStyles=Ce({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,i;return Fe(e.instance.popper,e.styles),t=e.instance.popper,i=e.attributes,Object.keys(i).forEach(function(e){!1!==i[e]?t.setAttribute(e,i[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&Fe(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,i,n,o){var r=Ie(o,t,e,i.positionFixed),s=Oe(i.placement,r,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",s),Fe(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},Ze=function(){function e(t,i){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(t,i){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=ae(this.update.bind(this)),this.options=Ce({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(Ce({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){n.options.modifiers[t]=Ce({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Ce({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&le(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return xe(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oe(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.positionFixed=this.options.positionFixed,e.offsets.popper=Pe(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Le(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Me(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[He("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function(e,t,i,n){i.updateBound=n,Re(e).addEventListener("resize",i.updateBound,{passive:!0});var o=de(e);return function e(t,i,n,o){var r="BODY"===t.nodeName,s=r?t.ownerDocument.defaultView:t;s.addEventListener(i,n,{passive:!0}),r||e(de(s.parentNode),i,n,o),o.push(s)}(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return function(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Re(e).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))}.call(this)}}]),e}();Ze.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ze.placements=qe,Ze.Defaults=Ke;var Ye,Qe,Ve,Xe,Ge,Je,et,tt,it,nt,ot,rt,st,at,lt,ct,ut,dt,pt,ht,ft,mt,gt,vt,yt,wt,bt,_t,xt,Tt,Ct,St,kt,Et,Dt,At,Ot,It,$t,Nt,Pt,jt,Lt,Mt,Ht,Rt,zt,Ft,Wt,qt,Bt,Ut,Kt,Zt,Yt,Qt,Vt,Xt,Gt,Jt,ei,ti,ii,ni,oi,ri,si,ai,li,ci,ui,di,pi,hi,fi,mi,gi,vi,yi,wi,bi,_i,xi,Ti=(Qe="dropdown",Xe="."+(Ve="bs.dropdown"),Ge=".data-api",Je=(Ye=t).fn[Qe],et=new RegExp("38|40|27"),tt={HIDE:"hide"+Xe,HIDDEN:"hidden"+Xe,SHOW:"show"+Xe,SHOWN:"shown"+Xe,CLICK:"click"+Xe,CLICK_DATA_API:"click"+Xe+Ge,KEYDOWN_DATA_API:"keydown"+Xe+Ge,KEYUP_DATA_API:"keyup"+Xe+Ge},it="disabled",nt="show","dropup","dropright","dropleft",ot="dropdown-menu-right","position-static",rt='[data-toggle="dropdown"]',".dropdown form",st=".dropdown-menu",".navbar-nav",".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)","top-start","top-end","bottom-start","bottom-end","right-start","left-start",at={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},lt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},ct=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!Ye(this._element).hasClass(it)){var t=e._getParentFromElement(this._element),i=Ye(this._menu).hasClass(nt);if(e._clearMenus(),!i){var n={relatedTarget:this._element},o=Ye.Event(tt.SHOW,n);if(Ye(t).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar){if(void 0===Ze)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=t:G.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&Ye(t).addClass("position-static"),this._popper=new Ze(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===Ye(t).closest(".navbar-nav").length&&Ye(document.body).children().on("mouseover",null,Ye.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),Ye(this._menu).toggleClass(nt),Ye(t).toggleClass(nt).trigger(Ye.Event(tt.SHOWN,n))}}}},t.dispose=function(){Ye.removeData(this._element,Ve),Ye(this._element).off(Xe),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;Ye(this._element).on(tt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(e){return e=o({},this.constructor.Default,Ye(this._element).data(),e),G.typeCheckConfig(Qe,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(st))}return this._menu},t._getPlacement=function(){var e=Ye(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?(t="top-start",Ye(this._menu).hasClass(ot)&&(t="top-end")):e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":Ye(this._menu).hasClass(ot)&&(t="bottom-end"),t},t._detectNavbar=function(){return 0<Ye(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=o({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var i={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(i.modifiers.applyStyle={enabled:!1}),i},e._jQueryInterface=function(t){return this.each(function(){var i=Ye(this).data(Ve);if(i||(i=new e(this,"object"==typeof t?t:null),Ye(this).data(Ve,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=[].slice.call(document.querySelectorAll(rt)),n=0,o=i.length;n<o;n++){var r=e._getParentFromElement(i[n]),s=Ye(i[n]).data(Ve),a={relatedTarget:i[n]};if(t&&"click"===t.type&&(a.clickEvent=t),s){var l=s._menu;if(Ye(r).hasClass(nt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&Ye.contains(r,t.target))){var c=Ye.Event(tt.HIDE,a);Ye(r).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&Ye(document.body).children().off("mouseover",null,Ye.noop),i[n].setAttribute("aria-expanded","false"),Ye(l).removeClass(nt),Ye(r).removeClass(nt).trigger(Ye.Event(tt.HIDDEN,a)))}}}},e._getParentFromElement=function(e){var t,i=G.getSelectorFromElement(e);return i&&(t=document.querySelector(i)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||Ye(t.target).closest(st).length)):et.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!Ye(this).hasClass(it))){var i=e._getParentFromElement(this),n=Ye(i).hasClass(nt);if((n||27===t.which&&32===t.which)&&(!n||27!==t.which&&32!==t.which)){var o=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"));if(0!==o.length){var r=o.indexOf(t.target);38===t.which&&0<r&&r--,40===t.which&&r<o.length-1&&r++,r<0&&(r=0),o[r].focus()}}else{if(27===t.which){var s=i.querySelector(rt);Ye(s).trigger("focus")}Ye(this).trigger("click")}}},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return at}},{key:"DefaultType",get:function(){return lt}}]),e}(),Ye(document).on(tt.KEYDOWN_DATA_API,rt,ct._dataApiKeydownHandler).on(tt.KEYDOWN_DATA_API,st,ct._dataApiKeydownHandler).on(tt.CLICK_DATA_API+" "+tt.KEYUP_DATA_API,ct._clearMenus).on(tt.CLICK_DATA_API,rt,function(e){e.preventDefault(),e.stopPropagation(),ct._jQueryInterface.call(Ye(this),"toggle")}).on(tt.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),Ye.fn[Qe]=ct._jQueryInterface,Ye.fn[Qe].Constructor=ct,Ye.fn[Qe].noConflict=function(){return Ye.fn[Qe]=Je,ct._jQueryInterface},ct),Ci=(dt="modal",ht="."+(pt="bs.modal"),ft=(ut=t).fn[dt],mt={backdrop:!0,keyboard:!0,focus:!0,show:!0},gt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},vt={HIDE:"hide"+ht,HIDDEN:"hidden"+ht,SHOW:"show"+ht,SHOWN:"shown"+ht,FOCUSIN:"focusin"+ht,RESIZE:"resize"+ht,CLICK_DISMISS:"click.dismiss"+ht,KEYDOWN_DISMISS:"keydown.dismiss"+ht,MOUSEUP_DISMISS:"mouseup.dismiss"+ht,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ht,CLICK_DATA_API:"click"+ht+".data-api"},"modal-scrollbar-measure","modal-backdrop",yt="modal-open",wt="fade",bt="show",_t=".modal-dialog",'[data-toggle="modal"]','[data-dismiss="modal"]',xt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Tt=".sticky-top",Ct=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(_t),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){ut(this._element).hasClass(wt)&&(this._isTransitioning=!0);var i=ut.Event(vt.SHOW,{relatedTarget:e});ut(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),ut(document.body).addClass(yt),this._setEscapeEvent(),this._setResizeEvent(),ut(this._element).on(vt.CLICK_DISMISS,'[data-dismiss="modal"]',function(e){return t.hide(e)}),ut(this._dialog).on(vt.MOUSEDOWN_DISMISS,function(){ut(t._element).one(vt.MOUSEUP_DISMISS,function(e){ut(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=ut.Event(vt.HIDE);if(ut(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=ut(this._element).hasClass(wt);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),ut(document).off(vt.FOCUSIN),ut(this._element).removeClass(bt),ut(this._element).off(vt.CLICK_DISMISS),ut(this._dialog).off(vt.MOUSEDOWN_DISMISS),n){var o=G.getTransitionDurationFromElement(this._element);ut(this._element).one(G.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){ut.removeData(this._element,pt),ut(window,document,this._element,this._backdrop).off(ht),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=o({},mt,e),G.typeCheckConfig(dt,e,gt),e},t._showElement=function(e){var t=this,i=ut(this._element).hasClass(wt);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,i&&G.reflow(this._element),ut(this._element).addClass(bt),this._config.focus&&this._enforceFocus();var n=ut.Event(vt.SHOWN,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,ut(t._element).trigger(n)};if(i){var r=G.getTransitionDurationFromElement(this._element);ut(this._dialog).one(G.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;ut(document).off(vt.FOCUSIN).on(vt.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===ut(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?ut(this._element).on(vt.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||ut(this._element).off(vt.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?ut(window).on(vt.RESIZE,function(t){return e.handleUpdate(t)}):ut(window).off(vt.RESIZE)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){ut(document.body).removeClass(yt),e._resetAdjustments(),e._resetScrollbar(),ut(e._element).trigger(vt.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(ut(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,i=ut(this._element).hasClass(wt)?wt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),ut(this._backdrop).appendTo(document.body),ut(this._element).on(vt.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),i&&G.reflow(this._backdrop),ut(this._backdrop).addClass(bt),!e)return;if(!i)return void e();var n=G.getTransitionDurationFromElement(this._backdrop);ut(this._backdrop).one(G.TRANSITION_END,e).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){ut(this._backdrop).removeClass(bt);var o=function(){t._removeBackdrop(),e&&e()};if(ut(this._element).hasClass(wt)){var r=G.getTransitionDurationFromElement(this._backdrop);ut(this._backdrop).one(G.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else e&&e()},t._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")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(xt)),i=[].slice.call(document.querySelectorAll(Tt));ut(t).each(function(t,i){var n=i.style.paddingRight,o=ut(i).css("padding-right");ut(i).data("padding-right",n).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),ut(i).each(function(t,i){var n=i.style.marginRight,o=ut(i).css("margin-right");ut(i).data("margin-right",n).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")});var n=document.body.style.paddingRight,o=ut(document.body).css("padding-right");ut(document.body).data("padding-right",n).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(xt));ut(e).each(function(e,t){var i=ut(t).data("padding-right");ut(t).removeData("padding-right"),t.style.paddingRight=i||""});var t=[].slice.call(document.querySelectorAll(""+Tt));ut(t).each(function(e,t){var i=ut(t).data("margin-right");void 0!==i&&ut(t).css("margin-right",i).removeData("margin-right")});var i=ut(document.body).data("padding-right");ut(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,i){return this.each(function(){var n=ut(this).data(pt),r=o({},mt,ut(this).data(),"object"==typeof t&&t?t:{});if(n||(n=new e(this,r),ut(this).data(pt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](i)}else r.show&&n.show(i)})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return mt}}]),e}(),ut(document).on(vt.CLICK_DATA_API,'[data-toggle="modal"]',function(e){var t,i=this,n=G.getSelectorFromElement(this);n&&(t=document.querySelector(n));var r=ut(t).data(pt)?"toggle":o({},ut(t).data(),ut(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var s=ut(t).one(vt.SHOW,function(e){e.isDefaultPrevented()||s.one(vt.HIDDEN,function(){ut(i).is(":visible")&&i.focus()})});Ct._jQueryInterface.call(ut(t),r,this)}),ut.fn[dt]=Ct._jQueryInterface,ut.fn[dt].Constructor=Ct,ut.fn[dt].noConflict=function(){return ut.fn[dt]=ft,Ct._jQueryInterface},Ct),Si=(kt="tooltip",Dt="."+(Et="bs.tooltip"),At=(St=t).fn[kt],Ot="bs-tooltip",It=new RegExp("(^|\\s)"+Ot+"\\S+","g"),Pt={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:!(Nt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!($t={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)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},"out",Lt={HIDE:"hide"+Dt,HIDDEN:"hidden"+Dt,SHOW:(jt="show")+Dt,SHOWN:"shown"+Dt,INSERTED:"inserted"+Dt,CLICK:"click"+Dt,FOCUSIN:"focusin"+Dt,FOCUSOUT:"focusout"+Dt,MOUSEENTER:"mouseenter"+Dt,MOUSELEAVE:"mouseleave"+Dt},Mt="fade",Ht="show",".tooltip-inner",".arrow",Rt="hover",zt="focus","click","manual",Ft=function(){function e(e,t){if(void 0===Ze)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");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 t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,i=St(e.currentTarget).data(t);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),St(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(St(this.getTipElement()).hasClass(Ht))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),St.removeData(this.element,this.constructor.DATA_KEY),St(this.element).off(this.constructor.EVENT_KEY),St(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&St(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===St(this.element).css("display"))throw new Error("Please use show on visible elements");var t=St.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){St(this.element).trigger(t);var i=St.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var n=this.getTipElement(),o=G.getUID(this.constructor.NAME);n.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&St(n).addClass(Mt);var r="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,s=this._getAttachment(r);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:St(document).find(this.config.container);St(n).data(this.constructor.DATA_KEY,this),St.contains(this.element.ownerDocument.documentElement,this.tip)||St(n).appendTo(a),St(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ze(this.element,n,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),St(n).addClass(Ht),"ontouchstart"in document.documentElement&&St(document.body).children().on("mouseover",null,St.noop);var l=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,St(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(St(this.tip).hasClass(Mt)){var c=G.getTransitionDurationFromElement(this.tip);St(this.tip).one(G.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},t.hide=function(e){var t=this,i=this.getTipElement(),n=St.Event(this.constructor.Event.HIDE),o=function(){t._hoverState!==jt&&i.parentNode&&i.parentNode.removeChild(i),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),St(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(St(this.element).trigger(n),!n.isDefaultPrevented()){if(St(i).removeClass(Ht),"ontouchstart"in document.documentElement&&St(document.body).children().off("mouseover",null,St.noop),this._activeTrigger.click=!1,this._activeTrigger[zt]=!1,this._activeTrigger[Rt]=!1,St(this.tip).hasClass(Mt)){var r=G.getTransitionDurationFromElement(i);St(i).one(G.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){St(this.getTipElement()).addClass(Ot+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||St(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(St(e.querySelectorAll(".tooltip-inner")),this.getTitle()),St(e).removeClass(Mt+" "+Ht)},t.setElementContent=function(e,t){var i=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?i?St(t).parent().is(e)||e.empty().append(t):e.text(St(t).text()):e[i?"html":"text"](t)},t.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},t._getAttachment=function(e){return Nt[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)St(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if("manual"!==t){var i=t===Rt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,n=t===Rt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;St(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(n,e.config.selector,function(t){return e._leave(t)})}St(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._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",""))},t._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||St(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),St(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?zt:Rt]=!0),St(t.getTipElement()).hasClass(Ht)||t._hoverState===jt?t._hoverState=jt:(clearTimeout(t._timeout),t._hoverState=jt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===jt&&t.show()},t.config.delay.show):t.show())},t._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||St(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),St(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?zt:Rt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){return"number"==typeof(e=o({},this.constructor.Default,St(this.element).data(),"object"==typeof e&&e?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()),G.typeCheckConfig(kt,e,this.constructor.DefaultType),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=St(this.getTipElement()),t=e.attr("class").match(It);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(St(e).removeClass(Mt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each(function(){var i=St(this).data(Et),n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,n),St(this).data(Et,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Pt}},{key:"NAME",get:function(){return kt}},{key:"DATA_KEY",get:function(){return Et}},{key:"Event",get:function(){return Lt}},{key:"EVENT_KEY",get:function(){return Dt}},{key:"DefaultType",get:function(){return $t}}]),e}(),St.fn[kt]=Ft._jQueryInterface,St.fn[kt].Constructor=Ft,St.fn[kt].noConflict=function(){return St.fn[kt]=At,Ft._jQueryInterface},Ft),ki=(qt="popover",Ut="."+(Bt="bs.popover"),Kt=(Wt=t).fn[qt],Zt="bs-popover",Yt=new RegExp("(^|\\s)"+Zt+"\\S+","g"),Qt=o({},Si.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>'}),Vt=o({},Si.DefaultType,{content:"(string|element|function)"}),"fade",".popover-header",".popover-body",Xt={HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:"show"+Ut,SHOWN:"shown"+Ut,INSERTED:"inserted"+Ut,CLICK:"click"+Ut,FOCUSIN:"focusin"+Ut,FOCUSOUT:"focusout"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut},Gt=function(e){var t,i;function o(){return e.apply(this,arguments)||this}i=e,(t=o).prototype=Object.create(i.prototype),(t.prototype.constructor=t).__proto__=i;var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){Wt(this.getTipElement()).addClass(Zt+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||Wt(this.config.template)[0],this.tip},r.setContent=function(){var e=Wt(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=Wt(this.getTipElement()),t=e.attr("class").match(Yt);null!==t&&0<t.length&&e.removeClass(t.join(""))},o._jQueryInterface=function(e){return this.each(function(){var t=Wt(this).data(Bt),i="object"==typeof e?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new o(this,i),Wt(this).data(Bt,t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},n(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Qt}},{key:"NAME",get:function(){return qt}},{key:"DATA_KEY",get:function(){return Bt}},{key:"Event",get:function(){return Xt}},{key:"EVENT_KEY",get:function(){return Ut}},{key:"DefaultType",get:function(){return Vt}}]),o}(Si),Wt.fn[qt]=Gt._jQueryInterface,Wt.fn[qt].Constructor=Gt,Wt.fn[qt].noConflict=function(){return Wt.fn[qt]=Kt,Gt._jQueryInterface},Gt),Ei=(ei="scrollspy",ii="."+(ti="bs.scrollspy"),ni=(Jt=t).fn[ei],oi={offset:10,method:"auto",target:""},ri={offset:"number",method:"string",target:"(string|element)"},si={ACTIVATE:"activate"+ii,SCROLL:"scroll"+ii,LOAD_DATA_API:"load"+ii+".data-api"},"dropdown-item",ai="active",'[data-spy="scroll"]',".active",li=".nav, .list-group",ci=".nav-link",".nav-item",ui=".list-group-item",".dropdown",di=".dropdown-item",".dropdown-toggle","offset",pi="position",hi=function(){function e(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+ci+","+this._config.target+" "+ui+","+this._config.target+" "+di,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Jt(this._scrollElement).on(si.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":pi,i="auto"===this._config.method?t:this._config.method,n=i===pi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,o=G.getSelectorFromElement(e);if(o&&(t=document.querySelector(o)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[Jt(t)[i]().top+n,o]}return 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])})},t.dispose=function(){Jt.removeData(this._element,ti),Jt(this._scrollElement).off(ii),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=o({},oi,"object"==typeof e&&e?e:{})).target){var t=Jt(e.target).attr("id");t||(t=G.getUID(ei),Jt(e.target).attr("id",t)),e.target="#"+t}return G.typeCheckConfig(ei,e,ri),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),i<=e){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=Jt([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass(ai),i.addClass(ai)):(i.addClass(ai),i.parents(li).prev(ci+", "+ui).addClass(ai),i.parents(li).prev(".nav-item").children(ci).addClass(ai)),Jt(this._scrollElement).trigger(si.ACTIVATE,{relatedTarget:e})},t._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));Jt(e).filter(".active").removeClass(ai)},e._jQueryInterface=function(t){return this.each(function(){var i=Jt(this).data(ti);if(i||(i=new e(this,"object"==typeof t&&t),Jt(this).data(ti,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return oi}}]),e}(),Jt(window).on(si.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var i=Jt(e[t]);hi._jQueryInterface.call(i,i.data())}}),Jt.fn[ei]=hi._jQueryInterface,Jt.fn[ei].Constructor=hi,Jt.fn[ei].noConflict=function(){return Jt.fn[ei]=ni,hi._jQueryInterface},hi),Di=(gi="."+(mi="bs.tab"),vi=(fi=t).fn.tab,yi={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,CLICK_DATA_API:"click"+gi+".data-api"},"dropdown-menu",wi="active","disabled","fade","show",".dropdown",".nav, .list-group",bi=".active",_i="> li > .active",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',".dropdown-toggle","> .dropdown-menu .active",xi=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&fi(this._element).hasClass(wi)||fi(this._element).hasClass("disabled"))){var t,i,n=fi(this._element).closest(".nav, .list-group")[0],o=G.getSelectorFromElement(this._element);if(n){var r="UL"===n.nodeName?_i:bi;i=(i=fi.makeArray(fi(n).find(r)))[i.length-1]}var s=fi.Event(yi.HIDE,{relatedTarget:this._element}),a=fi.Event(yi.SHOW,{relatedTarget:i});if(i&&fi(i).trigger(s),fi(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,n);var l=function(){var t=fi.Event(yi.HIDDEN,{relatedTarget:e._element}),n=fi.Event(yi.SHOWN,{relatedTarget:i});fi(i).trigger(t),fi(e._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){fi.removeData(this._element,mi),this._element=null},t._activate=function(e,t,i){var n=this,o=("UL"===t.nodeName?fi(t).find(_i):fi(t).children(bi))[0],r=i&&o&&fi(o).hasClass("fade"),s=function(){return n._transitionComplete(e,o,i)};if(o&&r){var a=G.getTransitionDurationFromElement(o);fi(o).one(G.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(e,t,i){if(t){fi(t).removeClass("show "+wi);var n=fi(t.parentNode).find("> .dropdown-menu .active")[0];n&&fi(n).removeClass(wi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(fi(e).addClass(wi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),G.reflow(e),fi(e).addClass("show"),e.parentNode&&fi(e.parentNode).hasClass("dropdown-menu")){var o=fi(e).closest(".dropdown")[0];if(o){var r=[].slice.call(o.querySelectorAll(".dropdown-toggle"));fi(r).addClass(wi)}e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(t){return this.each(function(){var i=fi(this),n=i.data(mi);if(n||(n=new e(this),i.data(mi,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},n(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),fi(document).on(yi.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),xi._jQueryInterface.call(fi(this),"show")}),fi.fn.tab=xi._jQueryInterface,fi.fn.tab.Constructor=xi,fi.fn.tab.noConflict=function(){return fi.fn.tab=vi,xi._jQueryInterface},xi);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=G,e.Alert=J,e.Button=ee,e.Carousel=te,e.Collapse=ie,e.Dropdown=Ti,e.Modal=Ci,e.Popover=ki,e.Scrollspy=Ei,e.Tab=Di,e.Tooltip=Si,Object.defineProperty(e,"__esModule",{value:!0})}),$(document).ready(function(){$(document).on("click",".dropdown-menu",function(e){e.stopPropagation()}),$('[data-toggle="tooltip"]').length>0&&$('[data-toggle="tooltip"]').tooltip()}),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(){var t=0;return function(i,n){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button"></button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button"></button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return e('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!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},r.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,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(i),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=e(i).data("slick")||{},r.options=e.extend({},r.defaults,n,o),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=t++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):n?e(t).insertBefore(o.$slides.eq(i)):e(t).insertAfter(o.$slides.eq(i)):!0===n?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,i){e(i).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(t=-t),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),e({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),!1===o.options.vertical?(n[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),t=Math.ceil(t),!1===o.options.vertical?n[o.animType]="translate3d("+t+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},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(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(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;!0===t.options.arrows&&(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),!0!==t.options.infinite&&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 t,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)i.append(e("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},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,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).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 class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(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),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,n,o,r,s,a=this;if(n=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),e=0;e<o;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=e*s+(t*a.options.slidesPerRow+i);r.get(u)&&c.appendChild(r.get(u))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var n,o,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||e(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(n in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[n]&&(o=s.breakpoints[n]):r>s.breakpoints[n]&&(o=s.breakpoints[n]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||i)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=o),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},t.prototype.changeSlide=function(t,i){var n,o,r=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===n?r.options.slidesToScroll:r.options.slidesToShow-n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,i);break;case"next":o=0===n?r.options.slidesToScroll:n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,i);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,i),s.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}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)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),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(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&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)},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()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$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"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?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","*",function(i){i.stopImmediatePropagation();var n=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=n.is(":focus"),t.autoPlay())},0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},t.prototype.getLeft=function(e){var t,i,n,o,r=this,s=0;return r.slideOffset=0,i=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,o=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?o=-1.5:1===r.options.slidesToShow&&(o=-2)),s=i*r.options.slidesToShow*o),r.slideCount%r.options.slidesToScroll!=0&&e+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(e>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(e-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(e-r.slideCount))*i*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*i*-1))):e+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(e+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(e+r.options.slidesToShow-r.slideCount)*i),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),t=!1===r.options.vertical?e*r.slideWidth*-1+r.slideOffset:e*i*-1+s,!0===r.options.variableWidth&&(n=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow),t=!0===r.options.rtl?n[0]?-1*(r.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===r.options.centerMode&&(n=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow+1),t=!0===r.options.rtl?n[0]?-1*(r.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(r.$list.width()-n.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,n=0,o=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)o.push(i),i=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(o,r){if(r.offsetLeft-i+e(r).outerWidth()/2>-1*n.swipeLeft)return t=r,!1}),Math.abs(e(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},t.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),n=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var o=n.indexOf(i);e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==o&&e(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+o})}),t.$dots.attr("role","tablist").find("li").each(function(o){var r=n[o];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+o,"aria-controls":"slick-slide"+t.instanceUid+r,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=t.currentSlide,r=o+t.options.slidesToShow;o<r;o++)t.$slides.eq(o).attr("tabindex",0);t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&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),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&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)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&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(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&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&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),i=e(this).attr("data-lazy"),n=e(this).attr("data-srcset"),o=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,function(){n&&(t.attr("srcset",n),o&&t.attr("sizes",o)),t.attr("src",i).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,i])})},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,i])},s.src=i})}var i,n,o,r=this;if(!0===r.options.centerMode?!0===r.options.infinite?o=(n=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),o=r.options.slidesToShow/2+1+2+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,o=Math.ceil(n+r.options.slidesToShow),!0===r.options.fade&&(n>0&&n--,o<=r.slideCount&&o++)),i=r.$slider.find(".slick-slide").slice(n,o),"anticipated"===r.options.lazyLoad)for(var s=n-1,a=o,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)s<0&&(s=r.slideCount-1),i=(i=i.add(l.eq(s))).add(l.eq(a)),s--,a++;t(i),r.slideCount<=r.options.slidesToShow?t(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?t(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&t(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},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(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.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(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var i,n,o,r,s,a=this,l=e("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),r=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){o&&(i.attr("srcset",o),r&&i.attr("sizes",r)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){a.progressiveLazyLoad(t+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},s.src=n):a.$slider.trigger("allImagesLoaded",[a])},t.prototype.refresh=function(t){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),e.extend(o,o.initials,{currentSlide:i}),o.init(),t||o.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,n,o=this,r=o.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in o.respondTo=o.options.respondTo||"window",r)if(n=o.breakpoints.length-1,r.hasOwnProperty(t)){for(i=r[t].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=r[t].settings}o.breakpoints.sort(function(e,t){return o.options.mobileFirst?e-t:t-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),!0===t.options.focusOnSelect&&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,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(e).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},t.prototype.setCSS=function(e){var t,i,n=this,o={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",o[n.positionProp]=e,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+t+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+t+", "+i+", 0px)",n.$slideTrack.css(o)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?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)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each(function(n,o){t=i.slideWidth*n*-1,!0===i.options.rtl?e(o).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}):e(o).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,i,n,o,r,s=this,a=!1;if("object"===e.type(arguments[0])?(n=arguments[0],a=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[n]=o;else if("multiple"===r)e.each(n,function(e,t){s.options[e]=t});else if("responsive"===r)for(i in o)if("array"!==e.type(s.options.responsive))s.options.responsive=[o[i]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===o[i].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(o[i])}a&&(s.unload(),s.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?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=!0===e.options.vertical?"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||!0===e.options.useCSS&&(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&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,i,n,o,r=this;if(i=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode){var s=r.options.slidesToShow%2==0?1:0;t=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(n=r.options.slidesToShow+e,i.slice(n-t+1+s,n+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&i.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=r.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,n=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?i.slice(n-(r.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-n;t-=1)i=t-1,e(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;t<n+o.slideCount;t+=1)i=t,e(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var i=this,n=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));o||(o=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(o,!1,!0):i.slideHandler(o)},t.prototype.slideHandler=function(e,t,i){var n,o,r,s,a,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),n=e,l=c.getLeft(n),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),r=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(r),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,n,o=this;return e=o.touchObject.startX-o.touchObject.curX,t=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(t,e),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===o.options.rtl?"left":"right":n<=360&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-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,!0===t.options.verticalSwiping&&(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 t,i,n,o,r,s,a=this;return r=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,a.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),i=a.swipeDirection(),void 0!==e.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,e.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+n*o:a.swipeLeft=t+n*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=t+n*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},t.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.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;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&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&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(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").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},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,i,n=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1),s=n.length;for(e=0;e<s;e++)if("object"==typeof o||void 0===o?n[e].slick=new t(n[e],o):i=n[e].slick[o].apply(n[e].slick,r),void 0!==i)return i;return n}}),function(e,t,i,n){function o(t,i){this.settings=null,this.options=e.extend({},o.Defaults,i),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,i){this._handlers[i]=e.proxy(this[i],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,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,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",slideTransition:"",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||"",i=!this.settings.autoWidth,n=this.settings.rtl,o={width:"auto","margin-left":n?t:"","margin-right":n?"":t};!i&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,o=!this.settings.autoWidth,r=[];for(e.items={merge:!1,width:t};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,r[n]=o?t*i:this._items[n].width();this._widths=r}},{filter:["items","settings"],run:function(){var t=[],i=this._items,n=this.settings,o=Math.max(2*n.items,4),r=2*Math.ceil(i.length/2),s=n.loop&&i.length?n.rewind?o:Math.max(o,r):0,a="",l="";for(s/=2;s>0;)t.push(this.normalize(t.length/2,!0)),a+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l,s-=1;this._clones=t,e(a).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,n=0,o=0,r=[];++i<t;)n=r[i-1]||0,o=this._widths[this.relative(i)]+this.settings.margin,r.push(n+o*e);this._coordinates=r}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],n.eq(t).css(e.css);else i&&(e.css.width=e.items.width,n.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,i,n,o=this.settings.rtl?1:-1,r=2*this.settings.stagePadding,s=this.coordinates(this.current())+r,a=s+this.width()*o,l=[];for(i=0,n=this._coordinates.length;i<n;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+r*o,(this.op(e,"<=",s)&&this.op(e,">",a)||this.op(t,"<",s)&&this.op(t,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){var e,t,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,i=this.$element.children(t).width(),e.length&&i<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,n=-1,o=null;i?(e.each(i,function(e){e<=t&&e>n&&(n=Number(e))}),"function"==typeof(o=e.extend({},this.options,i[n])).stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=n,this.settings=o,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 i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},o.prototype.update=function(){for(var t=0,i=this._pipe.length,n=e.proxy(function(e){return this[e]},this._invalidated),o={};t<i;)(this._invalidated.all||e.grep(this._pipe[t].filter,n).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.isVisible()&&(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)),!1!==this.settings.responsive&&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 n=null;3!==t.which&&(e.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(e.support.transform?this.animate(n.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=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(t),e(i).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(i).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var n=this.difference(this._drag.pointer,this.pointer(t));e(i).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(e){var t=null,i=null,n=null,o=this.difference(this._drag.pointer,this.pointer(e)),r=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*o.x/5:0,r.x=Math.max(Math.min(r.x,t+n),i+n)),this._drag.stage.current=r,this.animate(r.x))},o.prototype.onDragEnd=function(t){var n=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,r=n.x>0^this.settings.rtl?"left":"right";e(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==n.x?r:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=r,(Math.abs(n.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,i){var o=-1,r=this.width(),s=this.coordinates();return this.settings.freeDrag||e.each(s,e.proxy(function(e,a){return"left"===i&&t>a-30&&t<a+30?o=e:"right"===i&&t>a-r-30&&t<a-r+30?o=e+1:this.op(t,"<",a)&&this.op(t,">",s[e+1]!==n?s[e+1]:a-r)&&(o="left"===i?e+1:e),-1===o},this)),this.settings.loop||(this.op(t,">",s[this.minimum()])?o=t=this.minimum():this.op(t,"<",s[this.maximum()])&&(o=t=this.maximum())),o},o.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(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"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?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===n)return this._current;if(0===this._items.length)return n;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==n&&(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))!==n&&(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 i=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=n:(e<0||e>=i+o)&&(e=((e-o/2)%i+i)%i+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,i,n,o=this.settings,r=this._coordinates.length;if(o.loop)r=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(i=this._items[--t].width(),n=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>n););r=t+1}else r=o.center?this._items.length-1:this._items.length-o.items;return e&&(r-=this._clones.length/2),Math.max(r,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===n?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===n?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var i=this._clones.length/2,o=i+this._items.length,r=function(e){return e%2==0?o+e/2:i-(e+1)/2};return t===n?e.map(this._clones,function(e,t){return r(t)}):e.map(this._clones,function(e,i){return e===t?r(i):null})},o.prototype.speed=function(e){return e!==n&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var i,o=1,r=t-1;return t===n?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(o=-1,r=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[r]||0))/2*o):i=this._coordinates[r]||0,i=Math.ceil(i))},o.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},o.prototype.to=function(e,t){var i=this.current(),n=null,o=e-this.relative(i),r=(o>0)-(o<0),s=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>s/2&&(o+=-1*r*s),(n=(((e=i+o)-a)%s+s)%s+a)!==e&&n-o<=l&&n-o>0&&(i=n-o,e=n,this.reset(i))):this.settings.rewind?e=(e%(l+=1)+l)%l:e=Math.max(a,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.isVisible()&&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!==n&&(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 n;return this.options.responsiveBaseElement!==t?n=e(this.options.responsiveBaseElement).width():t.innerWidth?n=t.innerWidth:i.documentElement&&i.documentElement.clientWidth?n=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},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,i){var o=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,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:i})},o.prototype.remove=function(e){(e=this.normalize(e,!0))!==n&&(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,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},o.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),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,i){var n=this.settings.rtl;switch(t){case"<":return n?e>i:e<i;case">":return n?e<i:e>i;case">=":return n?e<=i:e>=i;case"<=":return n?e>=i:e<=i}},o.prototype.on=function(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n):e.attachEvent&&e.attachEvent("on"+t,i)},o.prototype.off=function(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n):e.detachEvent&&e.detachEvent("on"+t,i)},o.prototype.trigger=function(t,i,n,r,s){var a={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,n],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},a,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:o.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===n&&(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 i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.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(i,n){return e.inArray(i,this._states.tags[t.name])===n},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 i={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},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 i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this),r=n.data("owl.carousel");r||(r=new o(this,"object"==typeof t&&t),n.data("owl.carousel",r),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){r.register({type:o.Type.Event,name:i}),r.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),r[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},r))})),"string"==typeof t&&"_"!==t.charAt(0)&&r[t].apply(r,i)})},e.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){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.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==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,i;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){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)){var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,o=i.center&&-1*n||0,r=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+o,s=this._core.clones().length,a=e.proxy(function(e,t){this.load(t)},this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(r-=i.lazyLoadEager,n++));o++<n;)this.load(s/2+this._core.relative(r)),s&&e.each(this._core.clones(this._core.relative(r)),a),r++}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(i){var n=this._core.$stage.children().eq(i),o=n&&n.find(".owl-lazy");!o||e.inArray(n.get(0),this._loaded)>-1||(o.each(e.proxy(function(i,n){var o,r=e(n),s=t.devicePixelRatio>1&&r.attr("data-src-retina")||r.attr("data-src")||r.attr("data-srcset");this._core.trigger("load",{element:r,url:s},"lazy"),r.is("img")?r.one("load.owl.lazy",e.proxy(function(){r.css("opacity",1),this._core.trigger("loaded",{element:r,url:s},"lazy")},this)).attr("src",s):r.is("source")?r.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:r,url:s},"lazy")},this)).attr("srcset",s):((o=new Image).onload=e.proxy(function(){r.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:r,url:s},"lazy")},this),o.src=s)},this)),this._loaded.push(n.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,t,i,n){var o=function(i){this._core=i,this._previousHeight=null,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),this._intervalId=null;var n=this;e(t).on("load",function(){n._core.settings.autoHeight&&n.update()}),e(t).resize(function(){n._core.settings.autoHeight&&(null!=n._intervalId&&clearTimeout(n._intervalId),n._intervalId=setTimeout(function(){n.update()},250))})};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,i=t+this._core.settings.items,n=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,i),r=[],s=0;e.each(o,function(t,i){r.push(e(i).height())}),(s=Math.max.apply(null,r))<=1&&n&&this._previousHeight&&(s=this._previousHeight),this._previousHeight=s,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,i,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 i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,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 i=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"),o=e.attr("data-width")||this._core.settings.videoWidth,r=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|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[s]={type:i,id:n,width:o,height:r},t.attr("data-video",s),this.thumbnail(e,this._videos[s])},o.prototype.thumbnail=function(t,i){var n,o,r=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",s=t.find("img"),a="src",l="",c=this._core.settings,u=function(i){'<div class="owl-video-play-icon"></div>',n=c.lazyLoad?e("<div/>",{class:"owl-video-tn "+l,srcType:i}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),t.after(n),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:r})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),s.length)return u(s.attr(a)),s.remove(),!1;"youtube"===i.type?(o="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(o)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,u(o)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e.framegrab_url,u(o)}})},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 i,n=e(t.target).closest("."+this._core.settings.itemClass),o=this._videos[n.attr("data-video")],r=o.width||"100%",s=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(i=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",s),i.attr("width",r),"youtube"===o.type?i.attr("src","//www.youtube.com/embed/"+o.id+"?autoplay=1&rel=0&v="+o.id):"vimeo"===o.type?i.attr("src","//player.vimeo.com/video/"+o.id+"?autoplay=1"):"vzaar"===o.type&&i.attr("src","//view.vzaar.com/"+o.id+"/player?autoplay=true"),e(i).wrap('<div class="owl-video-frame" />').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),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,i,n){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,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,i=e.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,s=this.core.settings.animateOut;this.core.current()!==this.previous&&(s&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(s)),r&&o.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(r))}},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,i,n){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,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._paused&&(this._time=0)},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,i){e.namespace&&this.play(t,i)},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._next=function(n){this._call=t.setTimeout(e.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(i,n){var o;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%i-o,this._timeout=i,this._call=t.setTimeout(e.proxy(this._next,this,n),i-o)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;for(e in this.stop(),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,t,i,n){"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:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',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 t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e('<button role="button">').addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var n=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(n,i.dotsSpeed)},this)),this._overrides)this._core[t]=e.proxy(this[t],this)},o.prototype.destroy=function(){var e,t,i,n,o;for(e in o=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},o.prototype.update=function(){var e,t,i=this._core.clones().length/2,n=i+this._core.items().length,o=this._core.maximum(!0),r=this._core.settings,s=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],e=i,t=0,0;e<n;e++){if(t>=s||0===t){if(this._pages.push({start:Math.min(o,e-i),end:e-i+s-1}),Math.min(o,e-i)===o)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},o.prototype.draw=function(){var t,i=this._core.settings,n=this._core.items().length<=i.items,o=this._core.relative(this._core.current()),r=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!r&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!r&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).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 i=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},o.prototype.getPosition=function(t){var i,n,o=this._core.settings;return"page"==o.slideBy?(i=e.inArray(this.current(),this._pages),n=this._pages.length,t?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,t?i+=o.slideBy:i-=o.slideBy),i},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,i,n){var o;!n&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var o=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,function(e,t){return e===n?t:null}).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}},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(e){var i=t.location.hash.substring(1),n=this._core.$stage.children(),o=this._hashes[i]&&n.index(this._hashes[i]);void 0!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var i,n;for(i in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){function o(t,i){var o=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+a.join(r+" ")+r).split(" "),function(e,t){if(s[t]!==n)return o=!i||t,!1}),o}function r(e){return o(e,!0)}var s=e("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c=function(){return!!o("transform")},u=function(){return!!o("perspective")},d=function(){return!!o("animation")};(function(){return!!o("transition")})()&&(e.support.transition=new String(r("transition")),e.support.transition.end=l.transition.end[e.support.transition]),d()&&(e.support.animation=new String(r("animation")),e.support.animation.end=l.animation.end[e.support.animation]),c()&&(e.support.transform=new String(r("transform")),e.support.transform3d=u())}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var o=function(){},r={totalStars:5,useFullStars:!1,starShape:"straight",emptyColor:"lightgray",hoverColor:"orange",activeColor:"gold",ratedColor:"crimson",useGradient:!0,readOnly:!1,disableAfterRate:!0,baseUrl:!1,starGradient:{start:"#FEF7CD",end:"#FF9511"},strokeWidth:4,strokeColor:"black",initialRating:0,starSize:40,callback:o,onHover:o,onLeave:o},s=function(t,i){var n,o;this.element=t,this.$el=e(t),this.settings=e.extend({},r,i),n=this.$el.data("rating")||this.settings.initialRating,o=((this.settings.forceRoundUp?Math.ceil:Math.round)(2*n)/2).toFixed(1),this._state={rating:o},this._uid=Math.floor(999*Math.random()),i.starGradient||this.settings.useGradient||(this.settings.starGradient.start=this.settings.starGradient.end=this.settings.activeColor),this._defaults=r,this._name="starRating",this.init()},a={init:function(){this.renderMarkup(),this.addListeners(),this.initRating()},addListeners:function(){this.settings.readOnly||(this.$stars.on("mouseover",this.hoverRating.bind(this)),this.$stars.on("mouseout",this.restoreState.bind(this)),this.$stars.on("click",this.handleRating.bind(this)))},hoverRating:function(e){var t=this.getIndex(e);this.paintStars(t,"hovered"),this.settings.onHover(t+1,this._state.rating,this.$el)},handleRating:function(e){var t=this.getIndex(e)+1;this.applyRating(t,this.$el),this.executeCallback(t,this.$el),this.settings.disableAfterRate&&this.$stars.off()},applyRating:function(e){var t=e-1;this.paintStars(t,"rated"),this._state.rating=t+1,this._state.rated=!0},restoreState:function(e){var t=this.getIndex(e),i=this._state.rating||-1,n=this._state.rated?"rated":"active";this.paintStars(i-1,n),this.settings.onLeave(t+1,this._state.rating,this.$el)},getIndex:function(t){var i=e(t.currentTarget),n=i.width(),o=e(t.target).attr("data-side"),r=this.settings.minRating;o=o||this.getOffsetByPixel(t,i,n),o=this.settings.useFullStars?"right":o;var s=i.index()-("left"===o?.5:0);return s=s<.5&&t.offsetX<n/4?-1:s,s=r&&r<=this.settings.totalStars&&s<r?r-1:s},getOffsetByPixel:function(e,t,i){return e.pageX-t.offset().left<=i/2&&!this.settings.useFullStars?"left":"right"},initRating:function(){this.paintStars(this._state.rating-1,"active")},paintStars:function(t,i){var n,o,r,s;e.each(this.$stars,function(a,l){n=e(l).find('[data-side="left"]'),o=e(l).find('[data-side="right"]'),r=s=a<=t?i:"empty",r=a-t==.5?i:r,n.attr("class","svg-"+r+"-"+this._uid),o.attr("class","svg-"+s+"-"+this._uid)}.bind(this))},renderMarkup:function(){for(var e=this.settings,t=e.baseUrl?location.href.split("#")[0]:"",i='<div class="jq-star" style="width:'+e.starSize+"px;  height:"+e.starSize+'px;"><svg version="1.0" class="jq-star-svg" shape-rendering="geometricPrecision" xmlns="http://www.w3.org/2000/svg" '+this.getSvgDimensions(e.starShape)+" stroke-width:"+e.strokeWidth+'px;" xml:space="preserve"><style type="text/css">.svg-empty-'+this._uid+"{fill:url("+t+"#"+this._uid+"_SVGID_1_);}.svg-hovered-"+this._uid+"{fill:url("+t+"#"+this._uid+"_SVGID_2_);}.svg-active-"+this._uid+"{fill:url("+t+"#"+this._uid+"_SVGID_3_);}.svg-rated-"+this._uid+"{fill:"+e.ratedColor+";}</style>"+this.getLinearGradient(this._uid+"_SVGID_1_",e.emptyColor,e.emptyColor,e.starShape)+this.getLinearGradient(this._uid+"_SVGID_2_",e.hoverColor,e.hoverColor,e.starShape)+this.getLinearGradient(this._uid+"_SVGID_3_",e.starGradient.start,e.starGradient.end,e.starShape)+this.getVectorPath(this._uid,{starShape:e.starShape,strokeWidth:e.strokeWidth,strokeColor:e.strokeColor})+"</svg></div>",n="",o=0;o<e.totalStars;o++)n+=i;this.$el.append(n),this.$stars=this.$el.find(".jq-star")},getVectorPath:function(e,t){return"rounded"===t.starShape?this.getRoundedVectorPath(e,t):this.getSpikeVectorPath(e,t)},getSpikeVectorPath:function(e,t){return'<polygon data-side="center" class="svg-empty-'+e+'" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 212.9,181.1 213.9,181 306.5,241 " style="fill: transparent; stroke: '+t.strokeColor+';" /><polygon data-side="left" class="svg-empty-'+e+'" points="281.1,129.8 364,55.7 255.5,46.8 214,-59 172.5,46.8 64,55.4 146.8,129.7 121.1,241 213.9,181.1 213.9,181 306.5,241 " style="stroke-opacity: 0;" /><polygon data-side="right" class="svg-empty-'+e+'" points="364,55.7 255.5,46.8 214,-59 213.9,181 306.5,241 281.1,129.8 " style="stroke-opacity: 0;" />'},getRoundedVectorPath:function(e,t){var i="M520.9,336.5c-3.8-11.8-14.2-20.5-26.5-22.2l-140.9-20.5l-63-127.7 c-5.5-11.2-16.8-18.2-29.3-18.2c-12.5,0-23.8,7-29.3,18.2l-63,127.7L28,314.2C15.7,316,5.4,324.7,1.6,336.5S1,361.3,9.9,370 l102,99.4l-24,140.3c-2.1,12.3,2.9,24.6,13,32c5.7,4.2,12.4,6.2,19.2,6.2c5.2,0,10.5-1.2,15.2-3.8l126-66.3l126,66.2 c4.8,2.6,10,3.8,15.2,3.8c6.8,0,13.5-2.1,19.2-6.2c10.1-7.3,15.1-19.7,13-32l-24-140.3l102-99.4 C521.6,361.3,524.8,348.3,520.9,336.5z";return'<path data-side="center" class="svg-empty-'+e+'" d="'+i+'" style="stroke: '+t.strokeColor+'; fill: transparent; " /><path data-side="right" class="svg-empty-'+e+'" d="'+i+'" style="stroke-opacity: 0;" /><path data-side="left" class="svg-empty-'+e+'" d="M121,648c-7.3,0-14.1-2.2-19.8-6.4c-10.4-7.6-15.6-20.3-13.4-33l24-139.9l-101.6-99 c-9.1-8.9-12.4-22.4-8.6-34.5c3.9-12.1,14.6-21.1,27.2-23l140.4-20.4L232,164.6c5.7-11.6,17.3-18.8,30.2-16.8c0.6,0,1,0.4,1,1 v430.1c0,0.4-0.2,0.7-0.5,0.9l-126,66.3C132,646.6,126.6,648,121,648z" style="stroke: '+t.strokeColor+'; stroke-opacity: 0;" />'},getSvgDimensions:function(e){return"rounded"===e?'width="550px" height="500.2px" viewBox="0 146.8 550 500.2" style="enable-background:new 0 0 550 500.2;':'x="0px" y="0px" width="305px" height="305px" viewBox="60 -62 309 309" style="enable-background:new 64 -59 305 305;'},getLinearGradient:function(e,t,i,n){return'<linearGradient id="'+e+'" gradientUnits="userSpaceOnUse" x1="0" y1="-50" x2="0" y2="'+("rounded"===n?500:250)+'"><stop  offset="0" style="stop-color:'+t+'"/><stop  offset="1" style="stop-color:'+i+'"/> </linearGradient>'},executeCallback:function(e,t){(0,this.settings.callback)(e,t)}},l={unload:function(){var t="plugin_starRating",i=e(this);i.data(t).$stars.off(),i.removeData(t).remove()},setRating:function(t,i){var n=e(this).data("plugin_starRating");t>n.settings.totalStars||t<0||(i&&(t=Math.round(t)),n.applyRating(t))},getRating:function(){return e(this).data("plugin_starRating")._state.rating},resize:function(t){var i=e(this).data("plugin_starRating").$stars;t<=1||t>200?console.log("star size out of bounds"):(i=Array.prototype.slice.call(i)).forEach(function(i){e(i).css({width:t+"px",height:t+"px"})})},setReadOnly:function(t){var i=e(this).data("plugin_starRating");!0===t?i.$stars.off("mouseover mouseout click"):(i.settings.readOnly=!1,i.addListeners())}};e.extend(s.prototype,a),e.fn.starRating=function(t){if(!e.isPlainObject(t)){if(l.hasOwnProperty(t))return l[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on starRating.js")}return this.each(function(){e.data(this,"plugin_starRating")||e.data(this,"plugin_starRating",new s(this,t))})}}(jQuery,window,document),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(e,t,i,n){var o={features:null,bind:function(e,t,i,n){var o=(n?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[o](t[r],i,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var i=document.createElement(t||"div");return e&&(i.className=e),i},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,i){o.bind(e,t,i,!0)},removeClass:function(e,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var i=e.firstChild;i;){if(o.hasClass(i,t))return i;i=i.nextSibling}},arraySearch:function(e,t,i){for(var n=e.length;n--;)if(e[n][i]===t)return n;return-1},extend:function(e,t,i){for(var n in t)if(t.hasOwnProperty(n)){if(i&&e.hasOwnProperty(n))continue;e[n]=t[n]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl().style,t="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!i.pointerEvent){var n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<8&&(i.isOldIOSPhone=!0)}var s=n.match(/Android\s([0-9\.]*)/),a=s?s[1]:0;(a=parseFloat(a))>=1&&(a<4.4&&(i.isOldAndroid=!0),i.androidVersion=a),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var l,c,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var h=0;h<3;h++)l=u[h],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!i[l]&&c in e&&(i[l]=c);t&&!i.raf&&(t=t.toLowerCase(),i.raf=window[t+"RequestAnimationFrame"],i.raf&&(i.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!i.raf){var f=0;i.raf=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-f)),n=window.setTimeout(function(){e(t+i)},i);return f=t+i,n},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=i,i}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,i,n){t=t.split(" ");for(var o,r=(n?"detach":"attach")+"Event",s=function(){i.handleEvent.call(i)},a=0;a<t.length;a++)if(o=t[a])if("object"==typeof i&&i.handleEvent){if(n){if(!i["oldIE"+o])return!1}else i["oldIE"+o]=s;e[r]("on"+o,i["oldIE"+o])}else e[r]("on"+o,i)});var r=this,s={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};o.extend(s,n);var a,l,c,u,d,p,h,f,m,g,v,y,w,b,_,x,T,C,S,k,E,D,A,O,I,$,N,P,j,L,M,H,R,z,F,W,q,B,U,K,Z,Y,Q,V,X,G,J,ee,te,ie,ne,oe,re,se,ae,le,ce={x:0,y:0},ue={x:0,y:0},de={x:0,y:0},pe={},he=0,fe={},me={x:0,y:0},ge=0,ve=!0,ye=[],we={},be=!1,_e=function(e,t){o.extend(r,t.publicMethods),ye.push(e)},xe=function(e){var t=Ft();return e>t-1?e-t:e<0?t+e:e},Te={},Ce=function(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t)},Se=function(e){var t=Te[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<t.length;n++)t[n].apply(r,i)}},ke=function(){return(new Date).getTime()},Ee=function(e){se=e,r.bg.style.opacity=e*s.bgOpacity},De=function(e,t,i,n,o){(!be||o&&o!==r.currItem)&&(n/=o?o.fitRatio:r.currItem.fitRatio),e[D]=y+t+"px, "+i+"px"+w+" scale("+n+")"},Ae=function(e){te&&(e&&(g>r.currItem.fitRatio?be||(Vt(r.currItem,!1,!0),be=!0):be&&(Vt(r.currItem),be=!1)),De(te,de.x,de.y,g))},Oe=function(e){e.container&&De(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ie=function(e,t){t[D]=y+e+"px, 0px"+w},$e=function(e,t){if(!s.loop&&t){var i=u+(me.x*he-e)/me.x,n=Math.round(e-ut.x);(i<0&&n>0||i>=Ft()-1&&n<0)&&(e=ut.x+n*s.mainScrollEndFriction)}ut.x=e,Ie(e,d)},Ne=function(e,t){var i=dt[e]-fe[e];return ue[e]+ce[e]+i-i*(t/v)},Pe=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},je=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Le=null,Me=function(){Le&&(o.unbind(document,"mousemove",Me),o.addClass(e,"pswp--has_mouse"),s.mouseUsed=!0,Se("mouseUsed")),Le=setTimeout(function(){Le=null},100)},He=function(e,t){var i=Kt(r.currItem,pe,e);return t&&(ee=i),i},Re=function(e){return e||(e=r.currItem),e.initialZoomLevel},ze=function(e){return e||(e=r.currItem),e.w>0?s.maxSpreadZoom:1},Fe=function(e,t,i,n){return n===r.currItem.initialZoomLevel?(i[e]=r.currItem.initialPosition[e],!0):(i[e]=Ne(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]<t.max[e]&&(i[e]=t.max[e],!0))},We=function(e){var t="";s.escKey&&27===e.keyCode?t="close":s.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,r[t]()))},qe=function(e){e&&(Y||Z||ie||q)&&(e.preventDefault(),e.stopPropagation())},Be=function(){r.setScrollOffset(0,o.getScrollY())},Ue={},Ke=0,Ze=function(e){Ue[e]&&(Ue[e].raf&&$(Ue[e].raf),Ke--,delete Ue[e])},Ye=function(e){Ue[e]&&Ze(e),Ue[e]||(Ke++,Ue[e]={})},Qe=function(){for(var e in Ue)Ue.hasOwnProperty(e)&&Ze(e)},Ve=function(e,t,i,n,o,r,s){var a,l=ke();Ye(e);var c=function(){if(Ue[e]){if((a=ke()-l)>=n)return Ze(e),r(i),void(s&&s());r((i-t)*o(a/n)+t),Ue[e].raf=I(c)}};c()},Xe={shout:Se,listen:Ce,viewportSize:pe,options:s,isMainScrollAnimating:function(){return ie},getZoomLevel:function(){return g},getCurrentIndex:function(){return u},isDragging:function(){return U},isZooming:function(){return G},setScrollOffset:function(e,t){fe.x=e,L=fe.y=t,Se("updateScrollOffset",fe)},applyZoomPan:function(e,t,i,n){de.x=t,de.y=i,g=e,Ae(n)},init:function(){if(!a&&!l){var i;r.framework=o,r.template=e,r.bg=o.getChildByClass(e,"pswp__bg"),N=e.className,a=!0,M=o.detectFeatures(),I=M.raf,$=M.caf,D=M.transform,j=M.oldIE,r.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),r.container=o.getChildByClass(r.scrollWrap,"pswp__container"),d=r.container.style,r.itemHolders=x=[{el:r.container.children[0],wrap:0,index:-1},{el:r.container.children[1],wrap:0,index:-1},{el:r.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",function(){if(D){var t=M.perspective&&!O;return y="translate"+(t?"3d(":"("),void(w=M.perspective?", 0px)":")")}D="left",o.addClass(e,"pswp--ie"),Ie=function(e,t){t.left=e+"px"},Oe=function(e){var t=e.fitRatio>1?1:e.fitRatio,i=e.container.style,n=t*e.w,o=t*e.h;i.width=n+"px",i.height=o+"px",i.left=e.initialPosition.x+"px",i.top=e.initialPosition.y+"px"},Ae=function(){if(te){var e=te,t=r.currItem,i=t.fitRatio>1?1:t.fitRatio,n=i*t.w,o=i*t.h;e.width=n+"px",e.height=o+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),m={resize:r.updateSize,orientationchange:function(){clearTimeout(H),H=setTimeout(function(){pe.x!==r.scrollWrap.clientWidth&&r.updateSize()},500)},scroll:Be,keydown:We,click:qe};var n=M.isOldIOSPhone||M.isOldAndroid||M.isMobileOpera;for(M.animationName&&M.transform&&!n||(s.showAnimationDuration=s.hideAnimationDuration=0),i=0;i<ye.length;i++)r["init"+ye[i]]();t&&(r.ui=new t(r,o)).init(),Se("firstUpdate"),u=u||s.index||0,(isNaN(u)||u<0||u>=Ft())&&(u=0),r.currItem=zt(u),(M.isOldIOSPhone||M.isOldAndroid)&&(ve=!1),e.setAttribute("aria-hidden","false"),s.modal&&(ve?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===L&&(Se("initialLayout"),L=P=o.getScrollY());var c="pswp--open ";for(s.mainClass&&(c+=s.mainClass+" "),s.showHideOpacity&&(c+="pswp--animate_opacity "),c+=O?"pswp--touch":"pswp--notouch",c+=M.animationName?" pswp--css_animation":"",c+=M.svg?" pswp--svg":"",o.addClass(e,c),r.updateSize(),p=-1,ge=null,i=0;i<3;i++)Ie((i+p)*me.x,x[i].el.style);j||o.bind(r.scrollWrap,f,r),Ce("initialZoomInEnd",function(){r.setContent(x[0],u-1),r.setContent(x[2],u+1),x[0].el.style.display=x[2].el.style.display="block",s.focus&&e.focus(),o.bind(document,"keydown",r),M.transform&&o.bind(r.scrollWrap,"click",r),s.mouseUsed||o.bind(document,"mousemove",Me),o.bind(window,"resize scroll orientationchange",r),Se("bindEvents")}),r.setContent(x[1],u),r.updateCurrItem(),Se("afterInit"),ve||(b=setInterval(function(){Ke||U||G||g!==r.currItem.initialZoomLevel||r.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){a&&(a=!1,l=!0,Se("close"),o.unbind(window,"resize scroll orientationchange",r),o.unbind(window,"scroll",m.scroll),o.unbind(document,"keydown",r),o.unbind(document,"mousemove",Me),M.transform&&o.unbind(r.scrollWrap,"click",r),U&&o.unbind(window,h,r),clearTimeout(H),Se("unbindEvents"),Wt(r.currItem,null,!0,r.destroy))},destroy:function(){Se("destroy"),Lt&&clearTimeout(Lt),e.setAttribute("aria-hidden","true"),e.className=N,b&&clearInterval(b),o.unbind(r.scrollWrap,f,r),o.unbind(window,"scroll",r),ft(),Qe(),Te=null},panTo:function(e,t,i){i||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),de.x=e,de.y=t,Ae()},handleEvent:function(e){e=e||window.event,m[e.type]&&m[e.type](e)},goTo:function(e){var t=(e=xe(e))-u;ge=t,u=e,r.currItem=zt(u),he-=t,$e(me.x*he),Qe(),ie=!1,r.updateCurrItem()},next:function(){r.goTo(u+1)},prev:function(){r.goTo(u-1)},updateCurrZoomItem:function(e){if(e&&Se("beforeChange",0),x[1].el.children.length){var t=x[1].el.children[0];te=o.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=r.currItem.bounds,v=g=r.currItem.initialZoomLevel,de.x=ee.center.x,de.y=ee.center.y,e&&Se("afterChange")},invalidateCurrItems:function(){_=!0;for(var e=0;e<3;e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ge){var t,i=Math.abs(ge);if(!(e&&i<2)){r.currItem=zt(u),be=!1,Se("beforeChange",ge),i>=3&&(p+=ge+(ge>0?-3:3),i=3);for(var n=0;n<i;n++)ge>0?(t=x.shift(),x[2]=t,Ie((++p+2)*me.x,t.el.style),r.setContent(t,u-i+n+1+1)):(t=x.pop(),x.unshift(t),Ie(--p*me.x,t.el.style),r.setContent(t,u+i-n-1-1));if(te&&1===Math.abs(ge)){var o=zt(T);o.initialZoomLevel!==g&&(Kt(o,pe),Vt(o),Oe(o))}ge=0,r.updateCurrZoomItem(),T=u,Se("afterChange")}}},updateSize:function(t){if(!ve&&s.modal){var i=o.getScrollY();if(L!==i&&(e.style.top=i+"px",L=i),!t&&we.x===window.innerWidth&&we.y===window.innerHeight)return;we.x=window.innerWidth,we.y=window.innerHeight,e.style.height=we.y+"px"}if(pe.x=r.scrollWrap.clientWidth,pe.y=r.scrollWrap.clientHeight,Be(),me.x=pe.x+Math.round(pe.x*s.spacing),me.y=pe.y,$e(me.x*he),Se("beforeResize"),void 0!==p){for(var n,a,l,c=0;c<3;c++)n=x[c],Ie((c+p)*me.x,n.el.style),l=u+c-1,s.loop&&Ft()>2&&(l=xe(l)),(a=zt(l))&&(_||a.needsUpdate||!a.bounds)?(r.cleanSlide(a),r.setContent(n,l),1===c&&(r.currItem=a,r.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===n.index&&l>=0&&r.setContent(n,l),a&&a.container&&(Kt(a,pe),Vt(a),Oe(a));_=!1}v=g=r.currItem.initialZoomLevel,(ee=r.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Ae(!0)),Se("resize")},zoomTo:function(e,t,i,n,r){t&&(v=g,dt.x=Math.abs(t.x)-de.x,dt.y=Math.abs(t.y)-de.y,Pe(ue,de));var s=He(e,!1),a={};Fe("x",s,a,e),Fe("y",s,a,e);var l=g,c=de.x,u=de.y;je(a);var d=function(t){1===t?(g=e,de.x=a.x,de.y=a.y):(g=(e-l)*t+l,de.x=(a.x-c)*t+c,de.y=(a.y-u)*t+u),r&&r(t),Ae(1===t)};i?Ve("customZoomTo",0,1,i,n||o.easing.sine.inOut,d):d(1)}},Ge={},Je={},et={},tt={},it={},nt=[],ot={},rt=[],st={},at=0,lt={x:0,y:0},ct=0,ut={x:0,y:0},dt={x:0,y:0},pt={x:0,y:0},ht=function(e,t){return st.x=Math.abs(e.x-t.x),st.y=Math.abs(e.y-t.y),Math.sqrt(st.x*st.x+st.y*st.y)},ft=function(){Q&&($(Q),Q=null)},mt=function(){U&&(Q=I(mt),At())},gt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:gt(e.parentNode,t))},vt={},yt=function(e,t){return vt.prevent=!gt(e.target,s.isClickableElement),Se("preventDragEvent",e,t,vt),vt.prevent},wt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},bt=function(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)},_t=function(){var e=de.y-r.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},xt={},Tt={},Ct=[],St=function(e){for(;Ct.length>0;)Ct.pop();return A?(le=0,nt.forEach(function(e){0===le?Ct[0]=e:1===le&&(Ct[1]=e),le++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Ct[0]=wt(e.touches[0],xt),e.touches.length>1&&(Ct[1]=wt(e.touches[1],Tt))):(xt.x=e.pageX,xt.y=e.pageY,xt.id="",Ct[0]=xt),Ct},kt=function(e,t){var i,n,o,a,l=de[e]+t[e],c=t[e]>0,u=ut.x+t.x,d=ut.x-ot.x;return i=l>ee.min[e]||l<ee.max[e]?s.panEndFriction:1,l=de[e]+t[e]*i,!s.allowPanToNext&&g!==r.currItem.initialZoomLevel||(te?"h"!==ne||"x"!==e||Z||(c?(l>ee.min[e]&&(i=s.panEndFriction,ee.min[e],n=ee.min[e]-ue[e]),(n<=0||d<0)&&Ft()>1?(a=u,d<0&&u>ot.x&&(a=ot.x)):ee.min.x!==ee.max.x&&(o=l)):(l<ee.max[e]&&(i=s.panEndFriction,ee.max[e],n=ue[e]-ee.max[e]),(n<=0||d>0)&&Ft()>1?(a=u,d>0&&u<ot.x&&(a=ot.x)):ee.min.x!==ee.max.x&&(o=l))):a=u,"x"!==e)?void(ie||V||g>r.currItem.fitRatio&&(de[e]+=t[e]*i)):(void 0!==a&&($e(a,!0),V=a!==ot.x),ee.min.x!==ee.max.x&&(void 0!==o?de.x=o:V||(de.x+=t.x*i)),void 0!==a)},Et=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Rt)return void e.preventDefault();if(!B||"mousedown"!==e.type){if(yt(e,!0)&&e.preventDefault(),Se("pointerDown"),A){var t=o.arraySearch(nt,e.pointerId,"id");t<0&&(t=nt.length),nt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=St(e),n=i.length;X=null,Qe(),U&&1!==n||(U=oe=!0,o.bind(window,h,r),W=ae=re=q=V=Y=K=Z=!1,ne=null,Se("firstTouchStart",i),Pe(ue,de),ce.x=ce.y=0,Pe(tt,i[0]),Pe(it,tt),ot.x=me.x*he,rt=[{x:tt.x,y:tt.y}],z=R=ke(),He(g,!0),ft(),mt()),!G&&n>1&&!ie&&!V&&(v=g,Z=!1,G=K=!0,ce.y=ce.x=0,Pe(ue,de),Pe(Ge,i[0]),Pe(Je,i[1]),bt(Ge,Je,pt),dt.x=Math.abs(pt.x)-de.x,dt.y=Math.abs(pt.y)-de.y,J=ht(Ge,Je))}}},Dt=function(e){if(e.preventDefault(),A){var t=o.arraySearch(nt,e.pointerId,"id");if(t>-1){var i=nt[t];i.x=e.pageX,i.y=e.pageY}}if(U){var n=St(e);if(ne||Y||G)X=n;else if(ut.x!==me.x*he)ne="h";else{var r=Math.abs(n[0].x-tt.x)-Math.abs(n[0].y-tt.y);Math.abs(r)>=10&&(ne=r>0?"h":"v",X=n)}}},At=function(){if(X){var e=X.length;if(0!==e)if(Pe(Ge,X[0]),et.x=Ge.x-tt.x,et.y=Ge.y-tt.y,G&&e>1){if(tt.x=Ge.x,tt.y=Ge.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}(X[1],Je))return;Pe(Je,X[1]),Z||(Z=!0,Se("zoomGestureStarted"));var t=ht(Ge,Je),i=Pt(t);i>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(ae=!0);var n=1,o=Re(),a=ze();if(i<o)if(s.pinchToClose&&!ae&&v<=r.currItem.initialZoomLevel){var l=1-(o-i)/(o/1.2);Ee(l),Se("onPinchClose",l),re=!0}else(n=(o-i)/o)>1&&(n=1),i=o-n*(o/3);else i>a&&((n=(i-a)/(6*o))>1&&(n=1),i=a+n*o);n<0&&(n=0),bt(Ge,Je,lt),ce.x+=lt.x-pt.x,ce.y+=lt.y-pt.y,Pe(pt,lt),de.x=Ne("x",i),de.y=Ne("y",i),W=i>g,g=i,Ae()}else{if(!ne)return;if(oe&&(oe=!1,Math.abs(et.x)>=10&&(et.x-=X[0].x-it.x),Math.abs(et.y)>=10&&(et.y-=X[0].y-it.y)),tt.x=Ge.x,tt.y=Ge.y,0===et.x&&0===et.y)return;if("v"===ne&&s.closeOnVerticalDrag&&"fit"===s.scaleMode&&g===r.currItem.initialZoomLevel){ce.y+=et.y,de.y+=et.y;var c=_t();return q=!0,Se("onVerticalDrag",c),Ee(c),void Ae()}(function(e,t,i){if(e-z>50){var n=rt.length>2?rt.shift():{};n.x=t,n.y=i,rt.push(n),z=e}})(ke(),Ge.x,Ge.y),Y=!0,ee=r.currItem.bounds,kt("x",et)||(kt("y",et),je(de),Ae())}}},Ot=function(e){if(M.isOldAndroid){if(B&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(B),B=setTimeout(function(){B=0},600))}var t;if(Se("pointerUp"),yt(e,!1)&&e.preventDefault(),A){var i=o.arraySearch(nt,e.pointerId,"id");i>-1&&(t=nt.splice(i,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var n,a=St(e),l=a.length;if("mouseup"===e.type&&(l=0),2===l)return X=null,!0;1===l&&Pe(it,a[0]),0!==l||ne||ie||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Se("touchRelease",e,t));var c=-1;if(0===l&&(U=!1,o.unbind(window,h,r),ft(),G?c=0:-1!==ct&&(c=ke()-ct)),ct=1===l?ke():-1,n=-1!==c&&c<150?"zoom":"swipe",G&&l<2&&(G=!1,1===l&&(n="zoomPointerUp"),Se("zoomGestureEnded")),X=null,Y||Z||ie||q)if(Qe(),F||(F=It()),F.calculateSwipeSpeed("x"),q)if(_t()<s.verticalDragRange)r.close();else{var u=de.y,d=se;Ve("verticalDrag",0,1,300,o.easing.cubic.out,function(e){de.y=(r.currItem.initialPosition.y-u)*e+u,Ee((1-d)*e+d),Ae()}),Se("onVerticalDrag",1)}else{if((V||ie)&&0===l){if(Nt(n,F))return;n="zoomPointerUp"}if(!ie)return"swipe"!==n?void jt():void(!V&&g>r.currItem.fitRatio&&$t(F))}},It=function(){var e,t,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){rt.length>1?(e=ke()-z+50,t=rt[rt.length-2][n]):(e=ke()-R,t=it[n]),i.lastFlickOffset[n]=tt[n]-t,i.lastFlickDist[n]=Math.abs(i.lastFlickOffset[n]),i.lastFlickDist[n]>20?i.lastFlickSpeed[n]=i.lastFlickOffset[n]/e:i.lastFlickSpeed[n]=0,Math.abs(i.lastFlickSpeed[n])<.1&&(i.lastFlickSpeed[n]=0),i.slowDownRatio[n]=.95,i.slowDownRatioReverse[n]=1-i.slowDownRatio[n],i.speedDecelerationRatio[n]=1},calculateOverBoundsAnimOffset:function(e,t){i.backAnimStarted[e]||(de[e]>ee.min[e]?i.backAnimDestination[e]=ee.min[e]:de[e]<ee.max[e]&&(i.backAnimDestination[e]=ee.max[e]),void 0!==i.backAnimDestination[e]&&(i.slowDownRatio[e]=.7,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatioAbs[e]<.05&&(i.lastFlickSpeed[e]=0,i.backAnimStarted[e]=!0,Ve("bounceZoomPan"+e,de[e],i.backAnimDestination[e],t||300,o.easing.sine.out,function(t){de[e]=t,Ae()}))))},calculateAnimOffset:function(e){i.backAnimStarted[e]||(i.speedDecelerationRatio[e]=i.speedDecelerationRatio[e]*(i.slowDownRatio[e]+i.slowDownRatioReverse[e]-i.slowDownRatioReverse[e]*i.timeDiff/10),i.speedDecelerationRatioAbs[e]=Math.abs(i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]),i.distanceOffset[e]=i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]*i.timeDiff,de[e]+=i.distanceOffset[e])},panAnimLoop:function(){if(Ue.zoomPan&&(Ue.zoomPan.raf=I(i.panAnimLoop),i.now=ke(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),Ae(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05))return de.x=Math.round(de.x),de.y=Math.round(de.y),Ae(),void Ze("zoomPan")}};return i},$t=function(e){return e.calculateSwipeSpeed("y"),ee=r.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(Ye("zoomPan"),e.lastNow=ke(),void e.panAnimLoop())},Nt=function(e,t){var i,n,a;if(ie||(at=u),"swipe"===e){var l=tt.x-it.x,c=t.lastFlickDist.x<10;l>30&&(c||t.lastFlickOffset.x>20)?n=-1:l<-30&&(c||t.lastFlickOffset.x<-20)&&(n=1)}n&&((u+=n)<0?(u=s.loop?Ft()-1:0,a=!0):u>=Ft()&&(u=s.loop?0:Ft()-1,a=!0),a&&!s.loop||(ge+=n,he-=n,i=!0));var d,p=me.x*he,h=Math.abs(p-ut.x);return i||p>ut.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?h/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,at===u&&(i=!1),ie=!0,Se("mainScrollAnimStart"),Ve("mainScroll",ut.x,p,d,o.easing.cubic.out,$e,function(){Qe(),ie=!1,at=-1,(i||at!==u)&&r.updateCurrItem(),Se("mainScrollAnimComplete")}),i&&r.updateCurrItem(!0),i},Pt=function(e){return 1/J*e*v},jt=function(){var e=g,t=Re(),i=ze();g<t?e=t:g>i&&(e=i);var n,s=se;return re&&!W&&!ae&&g<t?(r.close(),!0):(re&&(n=function(e){Ee((1-s)*e+s)}),r.zoomTo(e,0,200,o.easing.cubic.out,n),!0)};_e("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,i,n,o){C=e+t,S=e+i,k=e+n,E=o?e+o:""};(A=M.pointerEvent)&&M.touch&&(M.touch=!1),A?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):M.touch?(e("touch","start","move","end","cancel"),O=!0):e("mouse","down","move","up"),h=S+" "+k+" "+E,f=C,A&&!O&&(O=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),r.likelyTouchDevice=O,m[C]=Et,m[S]=Dt,m[k]=Ot,E&&(m[E]=m[k]),M.touch&&(f+=" mousedown",h+=" mousemove mouseup",m.mousedown=m[C],m.mousemove=m[S],m.mouseup=m[k]),O||(s.allowPanToNext=!1)}}});var Lt,Mt,Ht,Rt,zt,Ft,Wt=function(t,i,n,a){var l;Lt&&clearTimeout(Lt),Rt=!0,Ht=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=s.getThumbBoundsFn&&s.getThumbBoundsFn(u);var d=n?s.hideAnimationDuration:s.showAnimationDuration,p=function(){Ze("initialZoom"),n?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(Ee(1),i&&(i.style.display="block"),o.addClass(e,"pswp--animated-in"),Se("initialZoom"+(n?"OutEnd":"InEnd"))),a&&a(),Rt=!1};if(!d||!l||void 0===l.x)return Se("initialZoom"+(n?"Out":"In")),g=t.initialZoomLevel,Pe(de,t.initialPosition),Ae(),e.style.opacity=n?0:1,Ee(1),void(d?setTimeout(function(){p()},d):p());!function(){var i=c,a=!r.currItem.src||r.currItem.loadError||s.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),n||(g=l.w/t.w,de.x=l.x,de.y=l.y-P,r[a?"template":"bg"].style.opacity=.001,Ae()),Ye("initialZoom"),n&&!i&&o.removeClass(e,"pswp--animated-in"),a&&(n?o[(i?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Lt=setTimeout(function(){if(Se("initialZoom"+(n?"Out":"In")),n){var r=l.w/t.w,s={x:de.x,y:de.y},c=g,u=se,h=function(t){1===t?(g=r,de.x=l.x,de.y=l.y-L):(g=(r-c)*t+c,de.x=(l.x-s.x)*t+s.x,de.y=(l.y-L-s.y)*t+s.y),Ae(),a?e.style.opacity=1-t:Ee(u-t*u)};i?Ve("initialZoom",0,1,d,o.easing.cubic.out,h,p):(h(1),Lt=setTimeout(p,d+20))}else g=t.initialZoomLevel,Pe(de,t.initialPosition),Ae(),Ee(1),a?e.style.opacity=1:Ee(1),Lt=setTimeout(p,d+20)},n?25:90)}()},qt={},Bt=[],Ut={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Mt.length}},Kt=function(e,t,i){if(e.src&&!e.loadError){var n=!i;if(n&&(e.vGap||(e.vGap={top:0,bottom:0}),Se("parseVerticalMargin",e)),qt.x=t.x,qt.y=t.y-e.vGap.top-e.vGap.bottom,n){var o=qt.x/e.w,r=qt.y/e.h;e.fitRatio=o<r?o:r;var a=s.scaleMode;"orig"===a?i=1:"fit"===a&&(i=e.fitRatio),i>1&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!i)return;return function(e,t,i){var n=e.bounds;n.center.x=Math.round((qt.x-t)/2),n.center.y=Math.round((qt.y-i)/2)+e.vGap.top,n.max.x=t>qt.x?Math.round(qt.x-t):n.center.x,n.max.y=i>qt.y?Math.round(qt.y-i)+e.vGap.top:n.center.y,n.min.x=t>qt.x?0:n.center.x,n.min.y=i>qt.y?e.vGap.top:n.center.y}(e,e.w*i,e.h*i),n&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Zt=function(e,t,i,n,o,s){t.loadError||n&&(t.imageAppended=!0,Vt(t,n,t===r.currItem&&be),i.appendChild(n),s&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Yt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.createEl("pswp__img","img"),i=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=i,t.onerror=function(){e.loadError=!0,i()},t.src=e.src,t},Qt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=s.errorMsg.replace("%url%",e.src),!0},Vt=function(e,t,i){if(e.src){t||(t=e.container.lastChild);var n=i?e.w:Math.round(e.w*e.fitRatio),o=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=n+"px",e.placeholder.style.height=o+"px"),t.style.width=n+"px",t.style.height=o+"px"}},Xt=function(){if(Bt.length){for(var e,t=0;t<Bt.length;t++)(e=Bt[t]).holder.index===e.index&&Zt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Bt=[]}};_e("Controller",{publicMethods:{lazyLoadItem:function(e){e=xe(e);var t=zt(e);t&&(!t.loaded&&!t.loading||_)&&(Se("gettingData",e,t),t.src&&Yt(t))},initController:function(){o.extend(s,Ut,!0),r.items=Mt=i,zt=r.getItemAt,Ft=s.getNumItemsFn,s.loop,Ft()<3&&(s.loop=!1),Ce("beforeChange",function(e){var t,i=s.preload,n=null===e||e>=0,o=Math.min(i[0],Ft()),a=Math.min(i[1],Ft());for(t=1;t<=(n?a:o);t++)r.lazyLoadItem(u+t);for(t=1;t<=(n?o:a);t++)r.lazyLoadItem(u-t)}),Ce("initialLayout",function(){r.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(u)}),Ce("mainScrollAnimComplete",Xt),Ce("initialZoomInEnd",Xt),Ce("destroy",function(){for(var e,t=0;t<Mt.length;t++)(e=Mt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Bt=null})},getItemAt:function(e){return e>=0&&void 0!==Mt[e]&&Mt[e]},allowProgressiveImg:function(){return s.forceProgressiveLoading||!O||s.mouseUsed||screen.width>1200},setContent:function(e,t){s.loop&&(t=xe(t));var i=r.getItemAt(e.index);i&&(i.container=null);var n,l=r.getItemAt(t);if(l){Se("gettingData",t,l),e.index=t,e.item=l;var c=l.container=o.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?c.appendChild(l.html):c.innerHTML=l.html),Qt(l),Kt(l,pe),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((n=o.createEl("pswp__img","img")).style.opacity=1,n.src=l.src,Vt(l,n),Zt(0,l,c,n));else{if(l.loadComplete=function(i){if(a){if(e&&e.index===t){if(Qt(i,!0))return i.loadComplete=i.img=null,Kt(i,pe),Oe(i),void(e.index===u&&r.updateCurrZoomItem());i.imageAppended?!Rt&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):M.transform&&(ie||Rt)?Bt.push({item:i,baseDiv:c,img:i.img,index:t,holder:e,clearPlaceholder:!0}):Zt(0,i,c,i.img,0,!0)}i.loadComplete=null,i.img=null,Se("imageLoadComplete",t,i)}},o.features.transform){var d="pswp__img pswp__img--placeholder";d+=l.msrc?"":" pswp__img--placeholder--blank";var p=o.createEl(d,l.msrc?"img":"");l.msrc&&(p.src=l.msrc),Vt(l,p),c.appendChild(p),l.placeholder=p}l.loading||Yt(l),r.allowProgressiveImg()&&(!Ht&&M.transform?Bt.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):Zt(0,l,c,l.img,0,!0))}Ht||t!==u?Oe(l):(te=c.style,Wt(l,n||l.img)),e.el.innerHTML="",e.el.appendChild(c)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Gt,Jt,ei={},ti=function(e,t,i){var n=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(n)};_e("Tap",{publicMethods:{initTap:function(){Ce("firstTouchStart",r.onTapStart),Ce("touchRelease",r.onTapRelease),Ce("destroy",function(){ei={},Gt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Gt),Gt=null)},onTapRelease:function(e,t){if(t&&!Y&&!K&&!Ke){var i=t;if(Gt&&(clearTimeout(Gt),Gt=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(i,ei)))return void Se("doubleTap",i);if("mouse"===t.type)return void ti(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void ti(e,t);Pe(ei,i),Gt=setTimeout(function(){ti(e,t),Gt=null},300)}}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){j||(O?Ce("mouseUsed",function(){r.setupDesktopZoom()}):r.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Jt={};var i="wheel mousewheel DOMMouseScroll";Ce("bindEvents",function(){o.bind(e,i,r.handleMouseWheel)}),Ce("unbindEvents",function(){Jt&&o.unbind(e,i,r.handleMouseWheel)}),r.mouseZoomedIn=!1;var n,s=function(){r.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),r.mouseZoomedIn=!1),g<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),a()},a=function(){n&&(o.removeClass(e,"pswp--dragging"),n=!1)};Ce("resize",s),Ce("afterChange",s),Ce("pointerDown",function(){r.mouseZoomedIn&&(n=!0,o.addClass(e,"pswp--dragging"))}),Ce("pointerUp",a),t||s()},handleMouseWheel:function(e){if(g<=r.currItem.fitRatio)return s.modal&&(!s.closeOnScroll||Ke||U?e.preventDefault():D&&Math.abs(e.deltaY)>2&&(c=!0,r.close())),!0;if(e.stopPropagation(),Jt.x=0,"deltaX"in e)1===e.deltaMode?(Jt.x=18*e.deltaX,Jt.y=18*e.deltaY):(Jt.x=e.deltaX,Jt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Jt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Jt.y=-.16*e.wheelDeltaY:Jt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Jt.y=e.detail}He(g,!0);var t=de.x-Jt.x,i=de.y-Jt.y;(s.modal||t<=ee.min.x&&t>=ee.max.x&&i<=ee.min.y&&i>=ee.max.y)&&e.preventDefault(),r.panTo(t,i)},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+fe.x,y:pe.y/2+fe.y};var i=s.getDoubleTapZoom(!0,r.currItem),n=g===i;r.mouseZoomedIn=!n,r.zoomTo(n?r.currItem.initialZoomLevel:i,t,333),o[(n?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var ii,ni,oi,ri,si,ai,li,ci,ui,di,pi,hi,fi={history:!0,galleryUID:1},mi=function(){return pi.hash.substring(1)},gi=function(){ii&&clearTimeout(ii),oi&&clearTimeout(oi)},vi=function(){var e=mi(),t={};if(e.length<5)return t;var i,n=e.split("&");for(i=0;i<n.length;i++)if(n[i]){var o=n[i].split("=");o.length<2||(t[o[0]]=o[1])}if(s.galleryPIDs){var r=t.pid;for(t.pid=0,i=0;i<Mt.length;i++)if(Mt[i].pid===r){t.pid=i;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},yi=function(){if(oi&&clearTimeout(oi),Ke||U)oi=setTimeout(yi,500);else{ri?clearTimeout(ni):ri=!0;var e=u+1,t=zt(u);t.hasOwnProperty("pid")&&(e=t.pid);var i=li+"&gid="+s.galleryUID+"&pid="+e;ci||-1===pi.hash.indexOf(i)&&(di=!0);var n=pi.href.split("#")[0]+"#"+i;hi?"#"+i!==window.location.hash&&history[ci?"replaceState":"pushState"]("",document.title,n):ci?pi.replace(n):pi.hash=i,ci=!0,ni=setTimeout(function(){ri=!1},60)}};_e("History",{publicMethods:{initHistory:function(){if(o.extend(s,fi,!0),s.history){pi=window.location,di=!1,ui=!1,ci=!1,li=mi(),hi="pushState"in history,li.indexOf("gid=")>-1&&(li=(li=li.split("&gid=")[0]).split("?gid=")[0]),Ce("afterChange",r.updateURL),Ce("unbindEvents",function(){o.unbind(window,"hashchange",r.onHashChange)});var e=function(){ai=!0,ui||(di?history.back():li?pi.hash=li:hi?history.pushState("",document.title,pi.pathname+pi.search):pi.hash=""),gi()};Ce("unbindEvents",function(){c&&e()}),Ce("destroy",function(){ai||e()}),Ce("firstUpdate",function(){u=vi().pid});var t=li.indexOf("pid=");t>-1&&"&"===(li=li.substring(0,t)).slice(-1)&&(li=li.slice(0,-1)),setTimeout(function(){a&&o.bind(window,"hashchange",r.onHashChange)},40)}},onHashChange:function(){return mi()===li?(ui=!0,void r.close()):void(ri||(si=!0,r.goTo(vi().pid),si=!1))},updateURL:function(){gi(),si||(ci?ii=setTimeout(yi,800):yi())}}}),o.extend(r,Xe)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var i,n,o,r,s,a,l,c,u,d,p,h,f,m,g,v,y,w,b=this,_=!1,x=!0,T=!0,C={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},S=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!u&&j();for(var i,n,o=(e.target||e.srcElement).getAttribute("class")||"",r=0;r<R.length;r++)(i=R[r]).onTap&&o.indexOf("pswp__"+i.name)>-1&&(i.onTap(),n=!0);if(n){e.stopPropagation&&e.stopPropagation(),v=!0;var s=t.features.isOldAndroid?600:30;setTimeout(function(){v=!1},s)}},k=function(){return!e.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},E=function(e,i,n){t[(n?"add":"remove")+"Class"](e,"pswp__"+i)},D=function(){var e=1===g.getNumItemsFn();e!==m&&(E(n,"ui--one-slide",e),m=e)},A=function(){E(l,"share-modal--hidden",T)},O=function(){return(T=!T)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){T&&A()},300)):(A(),setTimeout(function(){T||t.addClass(l,"pswp__share-modal--fade-in")},30)),T||$(),!1},I=function(t){var i=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,i),!(!i.href||!i.hasAttribute("download")&&(window.open(i.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),T||O(),1))},$=function(){for(var e,t,i,n,o="",r=0;r<g.shareButtons.length;r++)e=g.shareButtons[r],t=g.getImageURLForShare(e),i=g.getPageURLForShare(e),n=g.getTextForShare(e),o+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(n))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",g.parseShareButtonOut&&(o=g.parseShareButtonOut(e,o));l.children[0].innerHTML=o,l.children[0].onclick=I},N=function(e){for(var i=0;i<g.closeElClasses.length;i++)if(t.hasClass(e,"pswp__"+g.closeElClasses[i]))return!0},P=0,j=function(){clearTimeout(w),P=0,u&&b.setIdle(!1)},L=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(w),w=setTimeout(function(){b.setIdle(!0)},g.timeToIdleOutside))},M=function(e){h!==e&&(E(p,"preloader--active",!e),h=e)},H=function(e){var i=e.vGap;if(k()){var s=g.barsSize;if(g.captionEl&&"auto"===s.bottom)if(r||((r=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),n.insertBefore(r,o),t.addClass(n,"pswp__ui--fit")),g.addCaptionHTMLFn(e,r,!0)){var a=r.clientHeight;i.bottom=parseInt(a,10)||44}else i.bottom=s.top;else i.bottom="auto"===s.bottom?0:s.bottom;i.top=s.top}else i.top=i.bottom=0},R=[{name:"caption",option:"captionEl",onInit:function(e){o=e}},{name:"share-modal",option:"shareEl",onInit:function(e){l=e},onTap:function(){O()}},{name:"button--share",option:"shareEl",onInit:function(e){a=e},onTap:function(){O()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){s=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){i.isFullscreen()?i.exit():i.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}];b.init=function(){t.extend(e.options,C,!0),g=e.options,n=t.getChildByClass(e.scrollWrap,"pswp__ui"),d=e.listen,function(){var e;d("onVerticalDrag",function(e){x&&e<.95?b.hideControls():!x&&e>=.95&&b.showControls()}),d("onPinchClose",function(t){x&&t<.9?(b.hideControls(),e=!0):e&&!x&&t>.9&&b.showControls()}),d("zoomGestureEnded",function(){(e=!1)&&!x&&b.showControls()})}(),d("beforeChange",b.update),d("doubleTap",function(t){var i=e.currItem.initialZoomLevel;e.getZoomLevel()!==i?e.zoomTo(i,t,333):e.zoomTo(g.getDoubleTapZoom(!1,e.currItem),t,333)}),d("preventDragEvent",function(e,t,i){var n=e.target||e.srcElement;n&&n.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(n.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),d("bindEvents",function(){t.bind(n,"pswpTap click",S),t.bind(e.scrollWrap,"pswpTap",b.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",b.onMouseOver)}),d("unbindEvents",function(){T||O(),y&&clearInterval(y),t.unbind(document,"mouseout",L),t.unbind(document,"mousemove",j),t.unbind(n,"pswpTap click",S),t.unbind(e.scrollWrap,"pswpTap",b.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",b.onMouseOver),i&&(t.unbind(document,i.eventK,b.updateFullscreen),i.isFullscreen()&&(g.hideAnimationDuration=0,i.exit()),i=null)}),d("destroy",function(){g.captionEl&&(r&&n.removeChild(r),t.removeClass(o,"pswp__caption--empty")),l&&(l.children[0].onclick=null),t.removeClass(n,"pswp__ui--over-close"),t.addClass(n,"pswp__ui--hidden"),b.setIdle(!1)}),g.showAnimationDuration||t.removeClass(n,"pswp__ui--hidden"),d("initialZoomIn",function(){g.showAnimationDuration&&t.removeClass(n,"pswp__ui--hidden")}),d("initialZoomOut",function(){t.addClass(n,"pswp__ui--hidden")}),d("parseVerticalMargin",H),function(){var e,i,o,r=function(n){if(n)for(var r=n.length,s=0;s<r;s++){e=n[s],i=e.className;for(var a=0;a<R.length;a++)o=R[a],i.indexOf("pswp__"+o.name)>-1&&(g[o.option]?(t.removeClass(e,"pswp__element--disabled"),o.onInit&&o.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};r(n.children);var s=t.getChildByClass(n,"pswp__top-bar");s&&r(s.children)}(),g.shareEl&&a&&l&&(T=!0),D(),g.timeToIdle&&d("mouseUsed",function(){t.bind(document,"mousemove",j),t.bind(document,"mouseout",L),y=setInterval(function(){2==++P&&b.setIdle(!0)},g.timeToIdle/2)}),g.fullscreenEl&&!t.features.isOldAndroid&&(i||(i=b.getFullscreenAPI()),i?(t.bind(document,i.eventK,b.updateFullscreen),b.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),g.preloaderEl&&(M(!0),d("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&M(!1):M(!0)},g.loadingIndicatorDelay)}),d("imageLoadComplete",function(t,i){e.currItem===i&&M(!0)}))},b.setIdle=function(e){u=e,E(n,"ui--idle",e)},b.update=function(){x&&e.currItem?(b.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(e.currItem,o),E(o,"caption--empty",!e.currItem.title)),_=!0):_=!1,T||O(),D()},b.updateFullscreen=function(n){n&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(i.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},b.updateIndexIndicator=function(){g.counterEl&&(s.innerHTML=e.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},b.onGlobalTap=function(i){var n=(i=i||window.event).target||i.srcElement;if(!v)if(i.detail&&"mouse"===i.detail.pointerType){if(N(n))return void e.close();t.hasClass(n,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?g.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(i.detail.releasePoint))}else if(g.tapToToggleControls&&(x?b.hideControls():b.showControls()),g.tapToClose&&(t.hasClass(n,"pswp__img")||N(n)))return void e.close()},b.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;E(n,"ui--over-close",N(t))},b.hideControls=function(){t.addClass(n,"pswp__ui--hidden"),x=!1},b.showControls=function(){x=!0,_||b.update(),t.removeClass(n,"pswp__ui--hidden")},b.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},b.getFullscreenAPI=function(){var t,i=document.documentElement,n="fullscreenchange";return i.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:i.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:i.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:i.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){return c=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?e.template[this.enterK]():void e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return g.closeOnScroll=c,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}});var initPhotoSwipeFromDOM=function(e){for(var t=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=function e(t,i){return t&&(i(t)?t:e(t.parentNode,i))}(e.target||e.srcElement,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});if(t){for(var n,o=t.parentNode,r=t.parentNode.childNodes,s=r.length,a=0,l=0;l<s;l++)if(1===r[l].nodeType){if(r[l]===t){n=a;break}a++}return n>=0&&i(n,o),!1}},i=function(e,t,i,n){var o,r,s=document.querySelectorAll(".pswp")[0];if(r=function(e){for(var t,i,n,o,r=e.childNodes,s=r.length,a=[],l=0;l<s;l++)1===(t=r[l]).nodeType&&(n=(i=t).getAttribute("data-size").split("x"),o={src:i.getAttribute("href"),w:parseInt(n[0],10),h:parseInt(n[1],10)},t.children.length>1&&(o.title=t.children[1].innerHTML),i.children.length>0&&(o.msrc=i.children[0].getAttribute("src")),o.el=t,a.push(o));return a}(t),o={galleryUID:t.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(e){var t=r[e].el.getElementsByTagName("img")[0],i=window.pageYOffset||document.documentElement.scrollTop,n=t.getBoundingClientRect();return{x:n.left,y:n.top+i,w:n.width}}},n)if(o.galleryPIDs){for(var a=0;a<r.length;a++)if(r[a].pid==e){o.index=a;break}}else o.index=parseInt(e,10)-1;else o.index=parseInt(e,10);isNaN(o.index)||(i&&(o.showAnimationDuration=0),new PhotoSwipe(s,PhotoSwipeUI_Default,r,o).init())},n=document.querySelectorAll(e)[0].querySelectorAll("a"),o=0,r=n.length;o<r;o++)n[o].setAttribute("data-pswp-uid",o+1),n[o].onclick=t;var s=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var i=e.split("&"),n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(t[o[0]]=o[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();s.pid&&s.gid&&i(s.pid,n[s.gid-1],!0,!0)};function gallery(){document.querySelectorAll(".thumbs-wrap")[0].querySelectorAll("a")[0].click()}function loadMore(e){let t=e.dataset.productId,i=$(".review-item").length;$.ajax({url:addSlash2Url(route("front.review.load.more",{productId:t})),type:"POST",data:{_token:CSRF_TOKEN,skip:i},success:function(e){$("#review-result-area").append(e),""===e&&hideElement("load-more")}})}function getSimilarProducts(){let e=$("#product-id").val(),t=$("#category-id").val();e&&t&&$.ajax({url:addSlash2Url(route("front.product.similar",{product:e,category:t})),type:"POST",beforeSend:function(){$("#loading-div").removeClass("d-none")},data:{_token:CSRF_TOKEN},success:function(e){$("#similar-products").empty().html(e),showElement("similar-product-section")},complete:function(){$("#loading-div").addClass("d-none")}})}document.querySelectorAll(".thumbs-wrap").length&&initPhotoSwipeFromDOM(".thumbs-wrap"),$(document).ready(function(){initRateRater(),getSimilarProducts()}),$(document).ready(function(){initRateRater()});
  