(()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function s(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,s){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,s)},t};this.tree=e();const s=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,i]of this.formData){const n=t.match(s);if(n)if(""===n.groups.array)this.tree.set(n.groups.name,i);else{const t=[...n.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(n.groups.name);const s=t.pop();t.reduce(((t,s)=>{if(/^[0-9]+$/.test(s)&&(s=parseInt(s)),t.get(s)instanceof Map)return t.get(s);const i=e();return t.set(s,i),i}),this.tree).set(s,i)}}}t.r(e),t.d(e,{date:()=>d,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>f,maxdate:()=>z,maxfilesize:()=>I,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>$,minitems:()=>g,minlength:()=>w,minnumber:()=>y,number:()=>c,required:()=>o,requiredfile:()=>a,tel:()=>l,time:()=>m,url:()=>p}),s.prototype.entries=function(){return this.tree.entries()},s.prototype.get=function(t){return this.tree.get(t)},s.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const s=[];if(t instanceof Map)for(const[i,n]of t)s.push(...e(n));else""!==t&&s.push(t);return s};return e(this.get(t))},s.prototype.has=function(t){return this.tree.has(t)},s.prototype.keys=function(){return this.tree.keys()},s.prototype.values=function(){return this.tree.values()};const i=s;function n({rule:t,field:e,error:s,...i}){this.rule=t,this.field=e,this.error=s,this.properties=i}const o=function(t){if(0===t.getAll(this.field).length)throw new n(this)},a=function(t){if(0===t.getAll(this.field).length)throw new n(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,s]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(s))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(s))return!1;const i=s.split(".");if(i.length<2)return!1;for(const t of i){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new n(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new n(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new n(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new n(this)},d=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new n(this)},m=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const s=parseInt(e[1]),i=parseInt(e[2]),n=e[3]?parseInt(e[3]):0;return 0<=s&&s<=23&&0<=i&&i<=59&&0<=n&&n<=59})))throw new n(this)},f=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],s=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(s){const t=s.groups.toplevel.toLowerCase(),i=s.groups.sub.toLowerCase();for(const[n,o]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===i&&o.startsWith(t+"/")||o===s[0])&&e.push(...n.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new n(this)},h=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new n(this)},u=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(s=new Date(t).getDay())?7:s;var s;return this.accept?.some((t=>e===parseInt(t)))})))throw new n(this)},g=function(t){if(t.getAll(this.field).length<parseInt(this.threshold))throw new n(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new n(this)},w=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{"string"==typeof t&&(s+=t.length)})),0!==s&&s<parseInt(this.threshold))throw new n(this)},x=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{"string"==typeof t&&(s+=t.length)})),parseInt(this.threshold)<s)throw new n(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new n(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new n(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new n(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))))throw new n(this)},$=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{t instanceof File&&(s+=t.size)})),s<parseInt(this.threshold))throw new n(this)},I=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{t instanceof File&&(s+=t.size)})),parseInt(this.threshold)<s)throw new n(this)};var E;window.swv={validators:e,validate:(t,s,o={})=>{const a=(t.rules??[]).filter((({rule:t,...s})=>"function"==typeof e[t]&&("function"!=typeof e[t].matches||e[t].matches(s,o))));if(!a.length)return new Map;const r=new i(s),p=a.reduce(((t,s)=>{const{rule:i,...o}=s;if(t.get(o.field)?.error)return t;try{e[i].call({rule:i,...o},r)}catch(e){if(e instanceof n)return t.set(o.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},...null!==(E=window.swv)&&void 0!==E?E:{}}})();
(()=>{"use strict";const e=e=>Math.abs(parseInt(e,10)),t=(e,t)=>{const a=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);a.has(t)&&(t=a.get(t)),Array.from(a.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const n=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),n&&n!==t&&e.classList.remove(n),t},a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return r.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:d,...p}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],d&&(l=JSON.stringify(d),i["Content-Type"]="application/json");const u={code:"fetch_error",message:"You are probably offline."},f={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...p,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw f}));throw f}))),(()=>{throw u}))}))(e)},r=[];function o(e){var a,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{target:o,scope:l=e,...d}=r;if(void 0===(null===(a=e.wpcf7)||void 0===a?void 0:a.schema))return;const p={...e.wpcf7.schema};if(void 0!==o){if(!e.contains(o))return;if(!o.closest(".wpcf7-form-control-wrap[data-name]"))return;if(o.closest(".novalidate"))return}const u=new FormData,f=[];for(const e of l.querySelectorAll(".wpcf7-form-control-wrap"))if(!e.closest(".novalidate")&&(e.querySelectorAll(":where(input, textarea, select):enabled").forEach((e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&u.append(e.name,e.value);break;case"select-multiple":for(const t of e.selectedOptions)u.append(e.name,t.value);break;case"file":for(const t of e.files)u.append(e.name,t);break;default:u.append(e.name,e.value)}})),e.dataset.name&&(f.push(e.dataset.name),e.setAttribute("data-under-validation","1"),e.contains(o))))break;p.rules=(null!==(n=p.rules)&&void 0!==n?n:[]).filter((e=>{let{field:t}=e;return f.includes(t)}));const m=e.getAttribute("data-status");Promise.resolve(t(e,"validating")).then((t=>{if(void 0!==swv){const t=swv.validate(p,u,r);for(const[a,{error:n,validInputs:r}]of t)s(e,a),void 0!==n&&c(e,a,n,{scope:l}),i(e,a,null!=r?r:[])}})).finally((()=>{t(e,m),e.querySelectorAll(".wpcf7-form-control-wrap[data-under-validation]").forEach((e=>{e.removeAttribute("data-under-validation")}))}))}n.use=e=>{r.unshift(e)};const c=(e,t,a,n)=>{var r;const{scope:o=e,...c}=null!=n?n:{},s=`${null===(r=e.wpcf7)||void 0===r?void 0:r.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),i=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",s),i&&i.id?t.insertAdjacentHTML("beforeend",`<a href="#${i.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),o.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((t=>{if("validating"===e.getAttribute("data-status")&&!t.dataset.underValidation)return;const n=document.createElement("span");n.classList.add("wpcf7-not-valid-tip"),n.setAttribute("aria-hidden","true"),n.insertAdjacentText("beforeend",a),t.appendChild(n),t.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),t.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",s),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{n.setAttribute("style","display: none")})),n.addEventListener("click",(e=>{n.setAttribute("style","display: none")})))}))}))},s=(e,t)=>{var a,n;const r=`${null===(a=e.wpcf7)||void 0===a?void 0:a.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");null===(n=e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${r}`))||void 0===n||n.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{var t;null===(t=e.querySelector(".wpcf7-not-valid-tip"))||void 0===t||t.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},i=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function l(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wpcf7.blocked)return d(e),void t(e,"submitting");const o=new FormData(e);r.submitter&&r.submitter.name&&o.append(r.submitter.name,r.submitter.value);const s={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};n({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:s}}).then((n=>{const r=t(e,n.status);return s.status=n.status,s.apiResponse=n,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,s):["sent","failed"].includes(r)&&a(e,`mail${r}`,s),a(e,"submit",s),n})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{c(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}n.use(((e,n)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:n,detail:r}=e.wpcf7;d(n),a(n,"beforesubmit",r),t(n,"submitting")}return n(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&s(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function p(e){const r=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(r,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:r};n({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((n=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,t(e,"mail_sent")):t(e,"init"),o.apiResponse=n,a(e,"reset",o)})).catch((e=>console.error(e)))}n.use(((e,a)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:a,detail:n}=e.wpcf7;d(a),t(a,"resetting")}return a(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},f=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function m(t){const a=new FormData(t);t.wpcf7={id:e(a.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:e(a.get("_wpcf7_container_post")),parent:t.closest(".wpcf7"),schema:void 0},t.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(t),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(t),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(t),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(t),(t=>{const a=(t,a)=>{const n=e(t.getAttribute("data-starting-value")),r=e(t.getAttribute("data-maximum-value")),o=e(t.getAttribute("data-minimum-value")),c=t.classList.contains("down")?n-a.value.length:a.value.length;t.setAttribute("data-current-value",c),t.innerText=c,r&&r<a.value.length?t.classList.add("too-long"):t.classList.remove("too-long"),o&&a.value.length<o?t.classList.add("too-short"):t.classList.remove("too-short")},n=e=>{e={init:!1,...e},t.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=t.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),e.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),t.addEventListener("wpcf7reset",(e=>{n()}))})(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{wpcf7.submit(t,{submitter:e.submitter}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),n({endpoint:`contact-forms/${t.wpcf7.id}/feedback/schema`,method:"GET"}).then((e=>{t.wpcf7.schema=e})),t.addEventListener("change",(e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(t,{target:e.target})}))}document.addEventListener("DOMContentLoaded",(e=>{var t;"undefined"!=typeof wpcf7?void 0!==wpcf7.api?"function"==typeof window.fetch?"function"==typeof window.FormData?"function"==typeof NodeList.prototype.forEach?"function"==typeof String.prototype.replaceAll?(wpcf7={init:m,submit:l,reset:p,validate:o,...null!==(t=wpcf7)&&void 0!==t?t:{}},document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}))):console.error("Your browser does not support String.replaceAll()."):console.error("Your browser does not support NodeList.forEach()."):console.error("Your browser does not support window.FormData()."):console.error("Your browser does not support window.fetch()."):console.error("wpcf7.api is not defined."):console.error("wpcf7 is not defined.")}))})();
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(g,f){var s=f.document;g.fn.share=function(t){var e={init:function(t){this.share.settings=g.extend({},this.share.defaults,t);var i=(this.share.settings,this.share.settings.networks),n=this.share.settings.theme,l=this.share.settings.orientation,c=this.share.settings.affix,u=this.share.settings.margin,d=this.share.settings.title||g(s).attr("title"),m=this.share.settings.urlToShare||g(location).attr("href"),h="";return g.each(g(s).find('meta[name="description"]'),function(t,e){h=g(e).attr("content")}),this.each(function(){var e,s=g(this),t=s.attr("id"),o=encodeURIComponent(m),a=d.replace("|",""),r=h.substring(0,250);i.forEach(function(t){void 0!==p.networkDefs[t]&&(e=(e=p.networkDefs[t].url).replace("|u|",o).replace("|t|",a).replace("|d|",r).replace("|140|",a.substring(0,130)),g("<a href='"+e+"' title='Share this page on "+t+"' class='pop share-"+n+" share-"+n+"-"+t+"'></a>").appendTo(s))}),g("#"+t+".share-"+n).css("margin",u),"horizontal"!=l?g("#"+t+" a.share-"+n).css("display","block"):g("#"+t+" a.share-"+n).css("display","inline-block"),void 0!==c&&(s.addClass("share-affix"),-1!=c.indexOf("right")?(s.css("left","auto"),s.css("right","0px"),-1!=c.indexOf("center")&&s.css("top","40%")):-1!=c.indexOf("left center")&&s.css("top","40%"),-1!=c.indexOf("bottom")&&(s.css("bottom","0px"),s.css("top","auto"),-1!=c.indexOf("center")&&s.css("left","40%"))),g(".pop").click(function(){return f.open(g(this).attr("href"),"t","toolbar=0,resizable=1,status=0,width=640,height=528"),!1})})}},p={networkDefs:{facebook:{url:"http://www.facebook.com/share.php?u=|u|"},twitter:{url:"https://twitter.com/share?via=in1.com&text=|140|"},linkedin:{url:"http://www.linkedin.com/shareArticle?mini=true&url=|u|&title=|t|&summary=|d|&source=in1.com"},in1:{url:"http://www.in1.com/cast?u=|u|",w:"490",h:"529"},tumblr:{url:"http://www.tumblr.com/share?v=3&u=|u|"},digg:{url:"http://digg.com/submit?url=|u|&title=|t|"},googleplus:{url:"https://plusone.google.com/_/+1/confirm?hl=en&url=|u|"},reddit:{url:"http://reddit.com/submit?url=|u|"},pinterest:{url:"http://pinterest.com/pin/create/button/?url=|u|&media=&description=|d|"},posterous:{url:"http://posterous.com/share?linkto=|u|&title=|t|"},stumbleupon:{url:"http://www.stumbleupon.com/submit?url=|u|&title=|t|"},email:{url:"mailto:?subject=|t|"},vk:{url:"http://vk.com/share.php?url=|u|&title=|t|&description=|d|"}}};return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=(void 0===t?"undefined":_typeof(t))&&t?void g.error('Method "'+t+'" does not exist in social plugin'):e.init.apply(this,arguments)},g.fn.share.defaults={networks:["in1","facebook","twitter","linkedin"],theme:"icon",autoShow:!0,margin:"3px",orientation:"horizontal",useIn1:!0},g.fn.share.settings={}}(jQuery,window),function(r){"use strict";var s,o,a;r(function(){var t=r(".share-container"),e=t.data("share");"string"==typeof e&&(e=(e=e.split(",")).map(function(t){return t.trim()})).length&&t.share({networks:e})}),window.cthCaptchaCallback=function(){document.getElementById("loginCaptcha")&&(s=grecaptcha.render("loginCaptcha",{sitekey:_monolit_add_ons.gcaptcha_key})),document.getElementById("regCaptcha")&&(o=grecaptcha.render("regCaptcha",{sitekey:_monolit_add_ons.gcaptcha_key})),document.getElementById("adRegCaptcha")&&(a=grecaptcha.render("adRegCaptcha",{sitekey:_monolit_add_ons.gcaptcha_key}))},r("form#rsUserLogin").on("submit",function(t){t.preventDefault(),r("#logmessage").removeClass("show success");var e=r(this).serialize();return r("#logsubmit").attr("disabled",!0).addClass("submitted"),r.ajax({method:"POST",url:_monolit_add_ons.url,data:e+"&action=monolit-login"}).done(function(t){r("#logsubmit").removeClass("submitted"),0==t.success?(null!=t.error&&r("#logmessage").html(t.error).addClass("show"),r("#logsubmit").attr("disabled",!1).removeClass("submitted"),_monolit_add_ons.gcaptcha&&grecaptcha.reset(s)):(null!=t.message&&r("#logmessage").html(t.message).addClass("show success"),setTimeout(function(){null!=t.redirection?window.location.href=t.redirection:_monolit_add_ons.gcaptcha&&grecaptcha.reset(s)},5e3))}).fail(function(t,e,s){console.log(t)}),!1}),r("form#rsUserRegistration").on("submit",function(t){t.preventDefault(),r("#regmessage").removeClass("show success");var e=r(this).serialize();return r("#regsubmit").attr("disabled",!0).addClass("submitted"),r.ajax({method:"POST",url:_monolit_add_ons.url,data:e+"&action=monolit-register"}).done(function(t){r("#regsubmit").removeClass("submitted"),0==t.success?(null!=t.error&&r("#regmessage").html(t.error).addClass("show"),r("#regsubmit").attr("disabled",!1).removeClass("submitted"),_monolit_add_ons.gcaptcha&&grecaptcha.reset(o)):(null!=t.message&&r("#regmessage").html(t.message).addClass("show success"),setTimeout(function(){null!=t.redirection?window.location.href=t.redirection:_monolit_add_ons.gcaptcha&&grecaptcha.reset(o)},5e3))}).fail(function(t,e,s){console.log(t)}),!1}),r("form#advancedUserRegistration").on("submit",function(t){t.preventDefault(),r("#advregmessage").removeClass("show success");var e=r(this).serialize();return r("#advregsubmit").attr("disabled",!0).addClass("submitted"),r.ajax({method:"POST",url:_monolit_add_ons.url,data:e+"&action=monolit-register"}).done(function(t){r("#advregsubmit").removeClass("submitted"),0==t.success?(null!=t.error&&r("#advregmessage").html(t.error).addClass("show"),r("#advregsubmit").attr("disabled",!1).removeClass("submitted"),_monolit_add_ons.gcaptcha&&grecaptcha.reset(a)):(null!=t.message&&r("#advregmessage").html(t.message).addClass("show success"),setTimeout(function(){null!=t.redirection?window.location.href=t.redirection:_monolit_add_ons.gcaptcha&&grecaptcha.reset(a)},5e3))}).fail(function(t,e,s){console.log(t)}),!1}),r(document).on("click",".monolit_addons-like-button",function(t){t.preventDefault();var o=r(this),e=o.attr("data-post-id"),s=o.attr("data-nonce"),a=o.attr("data-iscomment");return""!==e&&r.ajax({type:"POST",url:_monolit_add_ons.url,data:{action:"monolit_addons_like",post_id:e,nonce:s,is_comment:a},beforeSend:function(){o.addClass("like-process")},success:function(t){if(o.html(t.icon+t.count),"unliked"===t.status){var e=_monolit_add_ons.like;o.prop("title",e),o.removeClass("liked")}else{var s=_monolit_add_ons.unlike;o.prop("title",s),o.addClass("liked")}o.removeClass("like-process")}}),!1})}(jQuery);
var wpcf7_redirect;
(function ($){
function Wpcf7_redirect(){
this.init=function (){
this.wpcf7_redirect_mailsent_handler();
};
this.wpcf7_redirect_mailsent_handler=function (){
document.addEventListener('wpcf7mailsent', function (event){
$(document.body).trigger('wpcf7r-mailsent', [event]);
if(typeof event.detail.apiResponse!='undefined'&&event.detail.apiResponse){
var apiResponse=event.detail.apiResponse;
var actionDelay=0;
if(typeof apiResponse.api_url_request!='undefined'&&apiResponse.api_url_request){
wpcf7_redirect.handle_api_action(apiResponse.api_url_request);
}
if(typeof apiResponse.api_json_xml_request!='undefined'&&apiResponse.api_json_xml_request){
wpcf7_redirect.handle_api_action(apiResponse.api_json_xml_request);
}
if(typeof apiResponse.FireScript!='undefined'&&apiResponse.FireScript){
actionDelay=typeof apiResponse.FireScript.delay_redirect!='undefined' ? apiResponse.FireScript.delay_redirect:actionDelay;
window.setTimeout(function (){
wpcf7_redirect.handle_javascript_action(apiResponse.FireScript);
}, actionDelay);
}
if(typeof apiResponse.popup!='undefined'&&apiResponse.popup){
wpcf7_redirect.handle_popups(apiResponse.popup);
}
if(typeof apiResponse.redirect_to_paypal!='undefined'&&apiResponse.redirect_to_paypal){
actionDelay=typeof apiResponse.redirect_to_paypal.delay_redirect!='undefined' ? apiResponse.redirect_to_paypal.delay_redirect:actionDelay;
window.setTimeout(function (){
wpcf7_redirect.handle_redirect_action(apiResponse.redirect_to_paypal);
}, actionDelay);
}
if(typeof apiResponse.redirect!='undefined'&&apiResponse.redirect){
actionDelay=typeof apiResponse.redirect.delay_redirect!='undefined' ? apiResponse.redirect.delay_redirect:actionDelay;
window.setTimeout(function (){
wpcf7_redirect.handle_redirect_action(apiResponse.redirect);
}, actionDelay);
}}
}, false);
document.addEventListener('wpcf7invalid', function (event){
$(document.body).trigger('wpcf7r-invalid', [event]);
if(typeof event.detail.apiResponse!='undefined'&&event.detail.apiResponse){
response=event.detail.apiResponse;
if(response.invalidFields){
wpcf7_redirect.ninja_multistep_mov_to_invalid_tab(event, response);
}}
});
};
this.handle_popups=function (popups){
$(document.body).trigger('wpcf7r-before-open-popup', [event]);
$.each(popups, function (k, popup){
var $new_elem=$(popup['popup-template']);
$(document.body).append($new_elem);
$(document.body).addClass(popup['template-name']);
window.setTimeout(function (){
$(document.body).addClass('modal-popup-open');
$new_elem.addClass('is-open');
}, 1000);
$new_elem.find('.close-button').on('click', function (){
$new_elem.removeClass('is-open').addClass('fade');
$(document.body).removeClass('modal-popup-open');
window.setTimeout(function (){
$('.wpcf7r-modal').remove();
$(document.body).trigger('wpcf7r-popup-removed', [$new_elem]);
}, 4000);
});
$(document.body).trigger('wpcf7r-popup-appended', [$new_elem]);
});
}
this.handle_api_action=function (send_to_api_result, request){
$.each(send_to_api_result, function (k, v){
if(!v.result_javascript){
return;
}
response=typeof v.api_response!='undefined' ? v.api_response:'';
request=typeof v.request!='undefined' ? v.request:'';
eval(v.result_javascript);
});
};
this.ninja_multistep_mov_to_invalid_tab=function (event, response){
if($('.fieldset-cf7mls-wrapper').length){
var form=$(event.target);
var first_invalid_field=response.invalidFields[0];
var parent_step=$(first_invalid_field.into).parents('fieldset');
form.find('.fieldset-cf7mls').removeClass('cf7mls_current_fs');
parent_step.addClass('cf7mls_current_fs').removeClass('cf7mls_back_fs');
if(form.find('.cf7mls_progress_bar').length){
form.find('.cf7mls_progress_bar li').eq(form.find("fieldset.fieldset-cf7mls").index(previous_fs)).addClass("current");
form.find('.cf7mls_progress_bar li').eq(form.find("fieldset.fieldset-cf7mls").index(current_fs)).removeClass("active current");
}}
}
this.handle_redirect_action=function (redirect){
$(document.body).trigger('wpcf7r-handle_redirect_action', [redirect]);
$.each(redirect, function (k, v){
var delay=typeof v.delay!='undefined'&&v.delay ? v.delay:'';
delay=delay * 1000;
window.setTimeout(function (v){
var redirect_url=typeof v.redirect_url!='undefined'&&v.redirect_url ? v.redirect_url:'';
var type=typeof v.type!='undefined'&&v.type ? v.type:'';
if(typeof v.form!='undefined'&&v.form){
$('body').append(v.form);
$('#cf7r-result-form').submit();
}else{
if(redirect_url&&type=='redirect'){
window.location=redirect_url;
}else if(redirect_url&&type=='new_tab'){
window.open(redirect_url);
}}
}, delay, v);
});
};
this.handle_javascript_action=function (scripts){
$(document.body).trigger('wpcf7r-handle_javascript_action', [scripts]);
$.each(scripts, function (k, script){
eval(script);
});
};
this.htmlspecialchars_decode=function (string){
var map={
'&amp;': '&',
'&#038;': "&",
'&lt;': '<',
'&gt;': '>',
'&quot;': '"',
'&#039;': "'",
'&#8217;': "’",
'&#8216;': "‘",
'&#8211;': "–",
'&#8212;': "—",
'&#8230;': "…",
'&#8221;': '”'
};
return string.replace(/\&[\w\d\#]{2,5}\;/g, function (m){ return map[m]; });
};
this.init();
}
wpcf7_redirect=new Wpcf7_redirect();
})(jQuery);
document.addEventListener("focusin", function(event){
const elem=event&&event.target&&event.target.closest&&event.target.closest("input,select,textarea,button,meter,progress");
if(elem){
window[ gtm4wp_datalayer_name ].push({
'event':'gtm4wp.formElementEnter',
'inputID':elem.getAttribute("id")||"(no input ID)",
'inputName':elem.getAttribute("name")||"(no input name)",
'inputClass': elem.getAttribute("class")||"(no input class)",
'formID':(elem.form&&elem.form.getAttribute("id"))||"(no form ID)",
'formName':(elem.form&&elem.form.getAttribute("name"))||"(no form name)",
'formClass': (elem.form&&elem.form.getAttribute("class"))||"(no form class)"
});
}}, false);
document.addEventListener("focusout", function(event){
const elem=event&&event.target&&event.target.closest&&event.target.closest("input,select,textarea,button,meter,progress");
if(elem){
window[ gtm4wp_datalayer_name ].push({
'event':'gtm4wp.formElementLeave',
'inputID':elem.getAttribute("id")||"(no input ID)",
'inputName':elem.getAttribute("name")||"(no input name)",
'inputClass': elem.getAttribute("class")||"(no input class)",
'formID':(elem.form&&elem.form.getAttribute("id"))||"(no form ID)",
'formName':(elem.form&&elem.form.getAttribute("name"))||"(no form name)",
'formClass': (elem.form&&elem.form.getAttribute("class"))||"(no form class)"
});
};}, false);
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var o=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t);
}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
!function(a,b){"function"==typeof define&&define.amd?define("packery/js/rect",b):"object"==typeof module&&module.exports?module.exports=b():(a.Packery=a.Packery||{},a.Packery.Rect=b())}(window,function(){function a(b){for(var c in a.defaults)this[c]=a.defaults[c];for(c in b)this[c]=b[c]}a.defaults={x:0,y:0,width:0,height:0};var b=a.prototype;return b.contains=function(a){var b=a.width||0,c=a.height||0;return this.x<=a.x&&this.y<=a.y&&this.x+this.width>=a.x+b&&this.y+this.height>=a.y+c},b.overlaps=function(a){var b=this.x+this.width,c=this.y+this.height,d=a.x+a.width,e=a.y+a.height;return this.x<d&&b>a.x&&this.y<e&&c>a.y},b.getMaximalFreeRects=function(b){if(!this.overlaps(b))return!1;var c,d=[],e=this.x+this.width,f=this.y+this.height,g=b.x+b.width,h=b.y+b.height;return this.y<b.y&&(c=new a({x:this.x,y:this.y,width:this.width,height:b.y-this.y}),d.push(c)),e>g&&(c=new a({x:g,y:this.y,width:e-g,height:this.height}),d.push(c)),f>h&&(c=new a({x:this.x,y:h,width:this.width,height:f-h}),d.push(c)),this.x<b.x&&(c=new a({x:this.x,y:this.y,width:b.x-this.x,height:this.height}),d.push(c)),d},b.canFit=function(a){return this.width>=a.width&&this.height>=a.height},a}),function(a,b){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],b);else if("object"==typeof module&&module.exports)module.exports=b(require("./rect"));else{var c=a.Packery=a.Packery||{};c.Packer=b(c.Rect)}}(window,function(a){function b(a,b,c){this.width=a||0,this.height=b||0,this.sortDirection=c||"downwardLeftToRight",this.reset()}var c=b.prototype;c.reset=function(){this.spaces=[];var b=new a({x:0,y:0,width:this.width,height:this.height});this.spaces.push(b),this.sorter=d[this.sortDirection]||d.downwardLeftToRight},c.pack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b];if(c.canFit(a)){this.placeInSpace(a,c);break}}},c.columnPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.x<=a.x&&c.x+c.width>=a.x+a.width&&c.height>=a.height-.01;if(d){a.y=c.y,this.placed(a);break}}},c.rowPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.y<=a.y&&c.y+c.height>=a.y+a.height&&c.width>=a.width-.01;if(d){a.x=c.x,this.placed(a);break}}},c.placeInSpace=function(a,b){a.x=b.x,a.y=b.y,this.placed(a)},c.placed=function(a){for(var b=[],c=0;c<this.spaces.length;c++){var d=this.spaces[c],e=d.getMaximalFreeRects(a);e?b.push.apply(b,e):b.push(d)}this.spaces=b,this.mergeSortSpaces()},c.mergeSortSpaces=function(){b.mergeRects(this.spaces),this.spaces.sort(this.sorter)},c.addSpace=function(a){this.spaces.push(a),this.mergeSortSpaces()},b.mergeRects=function(a){var b=0,c=a[b];a:for(;c;){for(var d=0,e=a[b+d];e;){if(e==c)d++;else{if(e.contains(c)){a.splice(b,1),c=a[b];continue a}c.contains(e)?a.splice(b+d,1):d++}e=a[b+d]}b++,c=a[b]}return a};var d={downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}};return b}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("./rect")):a.Packery.Item=b(a.Outlayer,a.Packery.Rect)}(window,function(a,b){var c=document.documentElement.style,d="string"==typeof c.transform?"transform":"WebkitTransform",e=function(){a.Item.apply(this,arguments)},f=e.prototype=Object.create(a.Item.prototype),g=f._create;f._create=function(){g.call(this),this.rect=new b};var h=f.moveTo;return f.moveTo=function(a,b){var c=Math.abs(this.position.x-a),d=Math.abs(this.position.y-b),e=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>c&&1>d;return e?void this.goTo(a,b):void h.apply(this,arguments)},f.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&d&&(this.element.style[d]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},f.disablePlacing=function(){this.isPlacing=!1},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},f.showDropPlaceholder=function(){var a=this.dropPlaceholder;a||(a=this.dropPlaceholder=document.createElement("div"),a.className="packery-drop-placeholder",a.style.position="absolute"),a.style.width=this.size.width+"px",a.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(a)},f.positionDropPlaceholder=function(){this.dropPlaceholder.style[d]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},f.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):a.Packery=b(a.getSize,a.Outlayer,a.Packery.Rect,a.Packery.Packer,a.Packery.Item)}(window,function(a,b,c,d,e){function f(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function g(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}function h(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}c.prototype.canFit=function(a){return this.width>=a.width-1&&this.height>=a.height-1};var i=b.create("packery");i.Item=e;var j=i.prototype;j._create=function(){b.prototype._create.call(this),this.packer=new d,this.shiftPacker=new d,this.isEnabled=!0,this.dragItemCount=0;var a=this;this.handleDraggabilly={dragStart:function(){a.itemDragStart(this.element)},dragMove:function(){a.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){a.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(b,c){c&&a.itemDragStart(b.currentTarget)},drag:function(b,c){c&&a.itemDragMove(b.currentTarget,c.position.left,c.position.top)},stop:function(b,c){c&&a.itemDragEnd(b.currentTarget)}}},j._resetLayout=function(){this.getSize(),this._getMeasurements();var a,b,c;this._getOption("horizontal")?(a=1/0,b=this.size.innerHeight+this.gutter,c="rightwardTopToBottom"):(a=this.size.innerWidth+this.gutter,b=1/0,c="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=a,this.packer.height=this.shiftPacker.height=b,this.packer.sortDirection=this.shiftPacker.sortDirection=c,this.packer.reset(),this.maxY=0,this.maxX=0},j._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},j._getItemLayoutPosition=function(a){if(this._setRectSize(a.element,a.rect),this.isShifting||this.dragItemCount>0){var b=this._getPackMethod();this.packer[b](a.rect)}else this.packer.pack(a.rect);return this._setMaxXY(a.rect),a.rect},j.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},j._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},j._setMaxXY=function(a){this.maxX=Math.max(a.x+a.width,this.maxX),this.maxY=Math.max(a.y+a.height,this.maxY)},j._setRectSize=function(b,c){var d=a(b),e=d.outerWidth,f=d.outerHeight;(e||f)&&(e=this._applyGridGutter(e,this.columnWidth),f=this._applyGridGutter(f,this.rowHeight)),c.width=Math.min(e,this.packer.width),c.height=Math.min(f,this.packer.height)},j._applyGridGutter=function(a,b){if(!b)return a+this.gutter;b+=this.gutter;var c=a%b,d=c&&1>c?"round":"ceil";return a=Math[d](a/b)*b},j._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},j._manageStamp=function(a){var b,d=this.getItem(a);if(d&&d.isPlacing)b=d.rect;else{var e=this._getElementOffset(a);b=new c({x:this._getOption("originLeft")?e.left:e.right,y:this._getOption("originTop")?e.top:e.bottom})}this._setRectSize(a,b),this.packer.placed(b),this._setMaxXY(b)},j.sortItemsByPosition=function(){var a=this._getOption("horizontal")?g:f;this.items.sort(a)},j.fit=function(a,b,c){var d=this.getItem(a);d&&(this.stamp(d.element),d.enablePlacing(),this.updateShiftTargets(d),b=void 0===b?d.rect.x:b,c=void 0===c?d.rect.y:c,this.shift(d,b,c),this._bindFitEvents(d),d.moveTo(d.rect.x,d.rect.y),this.shiftLayout(),this.unstamp(d.element),this.sortItemsByPosition(),d.disablePlacing())},j._bindFitEvents=function(a){function b(){d++,2==d&&c.dispatchEvent("fitComplete",null,[a])}var c=this,d=0;a.once("layout",b),this.once("layoutComplete",b)},j.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},j.needsResizeLayout=function(){var b=a(this.element),c=this._getOption("horizontal")?"innerHeight":"innerWidth";return b[c]!=this.size[c]},j.resizeShiftPercentLayout=function(){var b=this._getItemsForLayout(this.items),c=this._getOption("horizontal"),d=c?"y":"x",e=c?"height":"width",f=c?"rowHeight":"columnWidth",g=c?"innerHeight":"innerWidth",h=this[f];if(h=h&&h+this.gutter){this._getMeasurements();var i=this[f]+this.gutter;b.forEach(function(a){var b=Math.round(a.rect[d]/h);a.rect[d]=b*i})}else{var j=a(this.element)[g]+this.gutter,k=this.packer[e];b.forEach(function(a){a.rect[d]=a.rect[d]/k*j})}this.shiftLayout()},j.itemDragStart=function(a){if(this.isEnabled){this.stamp(a);var b=this.getItem(a);b&&(b.enablePlacing(),b.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(b))}},j.updateShiftTargets=function(a){this.shiftPacker.reset(),this._getBoundingRect();var b=this._getOption("originLeft"),d=this._getOption("originTop");this.stamps.forEach(function(a){var e=this.getItem(a);if(!e||!e.isPlacing){var f=this._getElementOffset(a),g=new c({x:b?f.left:f.right,y:d?f.top:f.bottom});this._setRectSize(a,g),this.shiftPacker.placed(g)}},this);var e=this._getOption("horizontal"),f=e?"rowHeight":"columnWidth",g=e?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h,i=this[f];if(i=i&&i+this.gutter){var j=Math.ceil(a.rect[g]/i),k=Math.floor((this.shiftPacker[g]+this.gutter)/i);h=(k-j)*i;for(var l=0;k>l;l++)this._addShiftTarget(l*i,0,h)}else h=this.shiftPacker[g]+this.gutter-a.rect[g],this._addShiftTarget(0,0,h);var m=this._getItemsForLayout(this.items),n=this._getPackMethod();m.forEach(function(a){var b=a.rect;this._setRectSize(a.element,b),this.shiftPacker[n](b),this._addShiftTarget(b.x,b.y,h);var c=e?b.x+b.width:b.x,d=e?b.y:b.y+b.height;if(this._addShiftTarget(c,d,h),i)for(var f=Math.round(b[g]/i),j=1;f>j;j++){var k=e?c:b.x+i*j,l=e?b.y+i*j:d;this._addShiftTarget(k,l,h)}},this)},j._addShiftTarget=function(a,b,c){var d=this._getOption("horizontal")?b:a;if(!(0!==d&&d>c)){var e=a+","+b,f=-1!=this.shiftTargetKeys.indexOf(e);f||(this.shiftTargetKeys.push(e),this.shiftTargets.push({x:a,y:b}))}},j.shift=function(a,b,c){var d,e=1/0,f={x:b,y:c};this.shiftTargets.forEach(function(a){var b=h(a,f);e>b&&(d=a,e=b)}),a.rect.x=d.x,a.rect.y=d.y};var k=120;j.itemDragMove=function(a,b,c){function d(){f.shift(e,b,c),e.positionDropPlaceholder(),f.layout()}var e=this.isEnabled&&this.getItem(a);if(e){b-=this.size.paddingLeft,c-=this.size.paddingTop;var f=this,g=new Date;this._itemDragTime&&g-this._itemDragTime<k?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(d,k)):(d(),this._itemDragTime=g)}},j.itemDragEnd=function(a){function b(){d++,2==d&&(c.element.classList.remove("is-positioning-post-drag"),c.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[c]))}var c=this.isEnabled&&this.getItem(a);if(c){clearTimeout(this.dragTimeout),c.element.classList.add("is-positioning-post-drag");var d=0,e=this;c.once("layout",b),this.once("layoutComplete",b),c.moveTo(c.rect.x,c.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),c.disablePlacing(),this.unstamp(c.element)}},j.bindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"on")},j.unbindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"off")},j._bindDraggabillyEvents=function(a,b){var c=this.handleDraggabilly;a[b]("dragStart",c.dragStart),a[b]("dragMove",c.dragMove),a[b]("dragEnd",c.dragEnd)},j.bindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"on")},j.unbindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"off")},j._bindUIDraggableEvents=function(a,b){var c=this.handleUIDraggable;a[b]("dragstart",c.start)[b]("drag",c.drag)[b]("dragstop",c.stop)};var l=j.destroy;return j.destroy=function(){l.apply(this,arguments),this.isEnabled=!1},i.Rect=c,i.Packer=d,i}),function(a,b){"function"==typeof define&&define.amd?define(["isotope-layout/js/layout-mode","packery/js/packery"],b):"object"==typeof module&&module.exports?module.exports=b(require("isotope-layout/js/layout-mode"),require("packery")):b(a.Isotope.LayoutMode,a.Packery)}(window,function(a,b){var c=a.create("packery"),d=c.prototype,e={_getElementOffset:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d._resetLayout;d._resetLayout=function(){this.packer=this.packer||new b.Packer,this.shiftPacker=this.shiftPacker||new b.Packer,g.apply(this,arguments)};var h=d._getItemLayoutPosition;d._getItemLayoutPosition=function(a){return a.rect=a.rect||new b.Rect,h.call(this,a)};var i=d.needsResizeLayout;d.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():i.call(this)};var j=d._getOption;return d._getOption=function(a){return"horizontal"==a?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:j.apply(this.isotope,arguments)},c});
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(b,d){if(this.el=b,this.$el=a(b),this.s=a.extend({},c,d),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=a(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(a(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var c={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};b.prototype.init=function(){var b=this;b.s.preload>b.$items.length&&(b.s.preload=b.$items.length);var c=window.location.hash;c.indexOf("lg="+this.s.galleryId)>0&&(b.index=parseInt(c.split("&slide=")[1],10),a("body").addClass("lg-from-hash"),a("body").hasClass("lg-on")||(setTimeout(function(){b.build(b.index)}),a("body").addClass("lg-on"))),b.s.dynamic?(b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||0,a("body").hasClass("lg-on")||setTimeout(function(){b.build(b.index),a("body").addClass("lg-on")})):b.$items.on("click.lgcustom",function(c){try{c.preventDefault(),c.preventDefault()}catch(a){c.returnValue=!1}b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||b.$items.index(this),a("body").hasClass("lg-on")||(b.build(b.index),a("body").addClass("lg-on"))})},b.prototype.build=function(b){var c=this;c.structure(),a.each(a.fn.lightGallery.modules,function(b){c.modules[b]=new a.fn.lightGallery.modules[b](c.el)}),c.slide(b,!1,!1,!1),c.s.keyPress&&c.keyPress(),c.$items.length>1?(c.arrow(),setTimeout(function(){c.enableDrag(),c.enableSwipe()},50),c.s.mousewheel&&c.mousewheel()):c.$slide.on("click.lg",function(){c.$el.trigger("onSlideClick.lg")}),c.counter(),c.closeGallery(),c.$el.trigger("onAfterOpen.lg"),c.$outer.on("mousemove.lg click.lg touchstart.lg",function(){c.$outer.removeClass("lg-hide-items"),clearTimeout(c.hideBartimeout),c.hideBartimeout=setTimeout(function(){c.$outer.addClass("lg-hide-items")},c.s.hideBarsDelay)}),c.$outer.trigger("mousemove.lg")},b.prototype.structure=function(){var b,c="",d="",e=0,f="",g=this;for(a("body").append('<div class="lg-backdrop"></div>'),a(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),e=0;e<this.$items.length;e++)c+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(d='<div class="lg-actions"><button class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(f='<div class="lg-sub-html"></div>'),b='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+c+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+d+f+"</div></div>",a("body").append(b),this.$outer=a(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),g.setTop(),a(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){g.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var h=this.$outer.find(".lg-inner");h.css("transition-timing-function",this.s.cssEasing),h.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){a(".lg-backdrop").addClass("in")}),setTimeout(function(){g.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=a(window).scrollTop()},b.prototype.setTop=function(){if("100%"!==this.s.height){var b=a(window).height(),c=(b-parseInt(this.s.height,10))/2,d=this.$outer.find(".lg");b>=parseInt(this.s.height,10)?d.css("top",c+"px"):d.css("top","0px")}},b.prototype.doCss=function(){return!!function(){var a=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],b=document.documentElement,c=0;for(c=0;c<a.length;c++)if(a[c]in b.style)return!0}()},b.prototype.isVideo=function(a,b){var c;if(c=this.s.dynamic?this.s.dynamicEl[b].html:this.$items.eq(b).attr("data-html"),!a)return c?{html5:!0}:(console.error("lightGallery :- data-src is not pvovided on slide item "+(b+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var d=a.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),e=a.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),f=a.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),g=a.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return d?{youtube:d}:e?{vimeo:e}:f?{dailymotion:f}:g?{vk:g}:void 0},b.prototype.counter=function(){this.s.counter&&a(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},b.prototype.addHtml=function(b){var c,d,e=null;if(this.s.dynamic?this.s.dynamicEl[b].subHtmlUrl?c=this.s.dynamicEl[b].subHtmlUrl:e=this.s.dynamicEl[b].subHtml:(d=this.$items.eq(b),d.attr("data-sub-html-url")?c=d.attr("data-sub-html-url"):(e=d.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!e&&(e=d.attr("title")||d.find("img").first().attr("alt")))),!c)if(void 0!==e&&null!==e){var f=e.substring(0,1);"."!==f&&"#"!==f||(e=this.s.subHtmlSelectorRelative&&!this.s.dynamic?d.find(e).html():a(e).html())}else e="";".lg-sub-html"===this.s.appendSubHtmlTo?c?this.$outer.find(this.s.appendSubHtmlTo).load(c):this.$outer.find(this.s.appendSubHtmlTo).html(e):c?this.$slide.eq(b).load(c):this.$slide.eq(b).append(e),void 0!==e&&null!==e&&(""===e?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[b])},b.prototype.preload=function(a){var b=1,c=1;for(b=1;b<=this.s.preload&&!(b>=this.$items.length-a);b++)this.loadContent(a+b,!1,0);for(c=1;c<=this.s.preload&&!(a-c<0);c++)this.loadContent(a-c,!1,0)},b.prototype.loadContent=function(b,c,d){var e,f,g,h,i,j,k=this,l=!1,m=function(b){for(var c=[],d=[],e=0;e<b.length;e++){var g=b[e].split(" ");""===g[0]&&g.splice(0,1),d.push(g[0]),c.push(g[1])}for(var h=a(window).width(),i=0;i<c.length;i++)if(parseInt(c[i],10)>h){f=d[i];break}};if(k.s.dynamic){if(k.s.dynamicEl[b].poster&&(l=!0,g=k.s.dynamicEl[b].poster),j=k.s.dynamicEl[b].html,f=k.s.dynamicEl[b].src,k.s.dynamicEl[b].responsive){m(k.s.dynamicEl[b].responsive.split(","))}h=k.s.dynamicEl[b].srcset,i=k.s.dynamicEl[b].sizes}else{if(k.$items.eq(b).attr("data-poster")&&(l=!0,g=k.$items.eq(b).attr("data-poster")),j=k.$items.eq(b).attr("data-html"),f=k.$items.eq(b).attr("href")||k.$items.eq(b).attr("data-src"),k.$items.eq(b).attr("data-responsive")){m(k.$items.eq(b).attr("data-responsive").split(","))}h=k.$items.eq(b).attr("data-srcset"),i=k.$items.eq(b).attr("data-sizes")}var n=!1;k.s.dynamic?k.s.dynamicEl[b].iframe&&(n=!0):"true"===k.$items.eq(b).attr("data-iframe")&&(n=!0);var o=k.isVideo(f,b);if(!k.$slide.eq(b).hasClass("lg-loaded")){if(n)k.$slide.eq(b).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+k.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+f+'"  allowfullscreen="true"></iframe></div></div>');else if(l){var p="";p=o&&o.youtube?"lg-has-youtube":o&&o.vimeo?"lg-has-vimeo":"lg-has-html5",k.$slide.eq(b).prepend('<div class="lg-video-cont '+p+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+g+'" /></div></div>')}else o?(k.$slide.eq(b).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),k.$el.trigger("hasVideo.lg",[b,f,j])):k.$slide.eq(b).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+f+'" /></div>');if(k.$el.trigger("onAferAppendSlide.lg",[b]),e=k.$slide.eq(b).find(".lg-object"),i&&e.attr("sizes",i),h){e.attr("srcset",h);try{picturefill({elements:[e[0]]})}catch(a){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&k.addHtml(b),k.$slide.eq(b).addClass("lg-loaded")}k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){var c=0;d&&!a("body").hasClass("lg-from-hash")&&(c=d),setTimeout(function(){k.$slide.eq(b).addClass("lg-complete"),k.$el.trigger("onSlideItemLoad.lg",[b,d||0])},c)}),o&&o.html5&&!l&&k.$slide.eq(b).addClass("lg-complete"),!0===c&&(k.$slide.eq(b).hasClass("lg-complete")?k.preload(b):k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){k.preload(b)}))},b.prototype.slide=function(b,c,d,e){var f=this.$outer.find(".lg-current").index(),g=this;if(!g.lGalleryOn||f!==b){var h=this.$slide.length,i=g.lGalleryOn?this.s.speed:0;if(!g.lgBusy){if(this.s.download){var j;j=g.s.dynamic?!1!==g.s.dynamicEl[b].downloadUrl&&(g.s.dynamicEl[b].downloadUrl||g.s.dynamicEl[b].src):"false"!==g.$items.eq(b).attr("data-download-url")&&(g.$items.eq(b).attr("data-download-url")||g.$items.eq(b).attr("href")||g.$items.eq(b).attr("data-src")),j?(a("#lg-download").attr("href",j),g.$outer.removeClass("lg-hide-download")):g.$outer.addClass("lg-hide-download")}if(this.$el.trigger("onBeforeSlide.lg",[f,b,c,d]),g.lgBusy=!0,clearTimeout(g.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){g.addHtml(b)},i),this.arrowDisable(b),e||(b<f?e="prev":b>f&&(e="next")),c){this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide");var k,l;h>2?(k=b-1,l=b+1,0===b&&f===h-1?(l=0,k=h-1):b===h-1&&0===f&&(l=0,k=h-1)):(k=0,l=1),"prev"===e?g.$slide.eq(l).addClass("lg-next-slide"):g.$slide.eq(k).addClass("lg-prev-slide"),g.$slide.eq(b).addClass("lg-current")}else g.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(f).addClass("lg-next-slide")):(this.$slide.eq(b).addClass("lg-next-slide"),this.$slide.eq(f).addClass("lg-prev-slide")),setTimeout(function(){g.$slide.removeClass("lg-current"),g.$slide.eq(b).addClass("lg-current"),g.$outer.removeClass("lg-no-trans")},50);g.lGalleryOn?(setTimeout(function(){g.loadContent(b,!0,0)},this.s.speed+50),setTimeout(function(){g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])},this.s.speed)):(g.loadContent(b,!0,g.s.backdropDuration),g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])),g.lGalleryOn=!0,this.s.counter&&a("#lg-counter-current").text(b+1)}g.index=b}},b.prototype.goToNextSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index+1<b.$slide.length?(b.index++,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):c?(b.index=0,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-right-end"),setTimeout(function(){b.$outer.removeClass("lg-right-end")},400)))},b.prototype.goToPrevSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index>0?(b.index--,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):c?(b.index=b.$items.length-1,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-left-end"),setTimeout(function(){b.$outer.removeClass("lg-left-end")},400)))},b.prototype.keyPress=function(){var b=this;this.$items.length>1&&a(window).on("keyup.lg",function(a){b.$items.length>1&&(37===a.keyCode&&(a.preventDefault(),b.goToPrevSlide()),39===a.keyCode&&(a.preventDefault(),b.goToNextSlide()))}),a(window).on("keydown.lg",function(a){!0===b.s.escKey&&27===a.keyCode&&(a.preventDefault(),b.$outer.hasClass("lg-thumb-open")?b.$outer.removeClass("lg-thumb-open"):b.destroy())})},b.prototype.arrow=function(){var a=this;this.$outer.find(".lg-prev").on("click.lg",function(){a.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){a.goToNextSlide()})},b.prototype.arrowDisable=function(a){!this.s.loop&&this.s.hideControlOnEnd&&(a+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),a>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},b.prototype.setTranslate=function(a,b,c){this.s.useLeft?a.css("left",b):a.css({transform:"translate3d("+b+"px, "+c+"px, 0px)"})},b.prototype.touchMove=function(b,c){var d=c-b;Math.abs(d)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),d,0),this.setTranslate(a(".lg-prev-slide"),-this.$slide.eq(this.index).width()+d,0),this.setTranslate(a(".lg-next-slide"),this.$slide.eq(this.index).width()+d,0))},b.prototype.touchEnd=function(a){var b=this;"lg-slide"!==b.s.mode&&b.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){b.$outer.removeClass("lg-dragging"),a<0&&Math.abs(a)>b.s.swipeThreshold?b.goToNextSlide(!0):a>0&&Math.abs(a)>b.s.swipeThreshold?b.goToPrevSlide(!0):Math.abs(a)<5&&b.$el.trigger("onSlideClick.lg"),b.$slide.removeAttr("style")}),setTimeout(function(){b.$outer.hasClass("lg-dragging")||"lg-slide"===b.s.mode||b.$outer.removeClass("lg-slide")},b.s.speed+100)},b.prototype.enableSwipe=function(){var a=this,b=0,c=0,d=!1;a.s.enableSwipe&&a.doCss()&&(a.$slide.on("touchstart.lg",function(c){a.$outer.hasClass("lg-zoomed")||a.lgBusy||(c.preventDefault(),a.manageSwipeClass(),b=c.originalEvent.targetTouches[0].pageX)}),a.$slide.on("touchmove.lg",function(e){a.$outer.hasClass("lg-zoomed")||(e.preventDefault(),c=e.originalEvent.targetTouches[0].pageX,a.touchMove(b,c),d=!0)}),a.$slide.on("touchend.lg",function(){a.$outer.hasClass("lg-zoomed")||(d?(d=!1,a.touchEnd(c-b)):a.$el.trigger("onSlideClick.lg"))}))},b.prototype.enableDrag=function(){var b=this,c=0,d=0,e=!1,f=!1;b.s.enableDrag&&b.doCss()&&(b.$slide.on("mousedown.lg",function(d){b.$outer.hasClass("lg-zoomed")||b.lgBusy||a(d.target).text().trim()||(d.preventDefault(),b.manageSwipeClass(),c=d.pageX,e=!0,b.$outer.scrollLeft+=1,b.$outer.scrollLeft-=1,b.$outer.removeClass("lg-grab").addClass("lg-grabbing"),b.$el.trigger("onDragstart.lg"))}),a(window).on("mousemove.lg",function(a){e&&(f=!0,d=a.pageX,b.touchMove(c,d),b.$el.trigger("onDragmove.lg"))}),a(window).on("mouseup.lg",function(g){f?(f=!1,b.touchEnd(d-c),b.$el.trigger("onDragend.lg")):(a(g.target).hasClass("lg-object")||a(g.target).hasClass("lg-video-play"))&&b.$el.trigger("onSlideClick.lg"),e&&(e=!1,b.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},b.prototype.manageSwipeClass=function(){var a=this.index+1,b=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?b=this.$slide.length-1:this.index===this.$slide.length-1&&(a=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),b>-1&&this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(a).addClass("lg-next-slide")},b.prototype.mousewheel=function(){var a=this;a.$outer.on("mousewheel.lg",function(b){b.deltaY&&(b.deltaY>0?a.goToPrevSlide():a.goToNextSlide(),b.preventDefault())})},b.prototype.closeGallery=function(){var b=this,c=!1;this.$outer.find(".lg-close").on("click.lg",function(){b.destroy()}),b.s.closable&&(b.$outer.on("mousedown.lg",function(b){c=!!(a(b.target).is(".lg-outer")||a(b.target).is(".lg-item ")||a(b.target).is(".lg-img-wrap"))}),b.$outer.on("mousemove.lg",function(){c=!1}),b.$outer.on("mouseup.lg",function(d){(a(d.target).is(".lg-outer")||a(d.target).is(".lg-item ")||a(d.target).is(".lg-img-wrap")&&c)&&(b.$outer.hasClass("lg-dragging")||b.destroy())}))},b.prototype.destroy=function(b){var c=this;b||(c.$el.trigger("onBeforeClose.lg"),a(window).scrollTop(c.prevScrollTop)),b&&(c.s.dynamic||this.$items.off("click.lg click.lgcustom"),a.removeData(c.el,"lightGallery")),this.$el.off(".lg.tm"),a.each(a.fn.lightGallery.modules,function(a){c.modules[a]&&c.modules[a].destroy()}),this.lGalleryOn=!1,clearTimeout(c.hideBartimeout),this.hideBartimeout=!1,a(window).off(".lg"),a("body").removeClass("lg-on lg-from-hash"),c.$outer&&c.$outer.removeClass("lg-visible"),a(".lg-backdrop").removeClass("in"),setTimeout(function(){c.$outer&&c.$outer.remove(),a(".lg-backdrop").remove(),b||c.$el.trigger("onCloseAfter.lg")},c.s.backdropDuration+50)},a.fn.lightGallery=function(c){return this.each(function(){if(a.data(this,"lightGallery"))try{a(this).data("lightGallery").init()}catch(a){console.error("lightGallery has not initiated properly")}else a.data(this,"lightGallery",new b(this,c))})},a.fn.lightGallery.modules={}}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),!(this.core.$items.length<2)&&(this.core.s=a.extend({},b,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};c.prototype.init=function(){var a=this;a.core.s.autoplayControls&&a.controls(),a.core.s.progressBar&&a.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),a.progress(),a.core.s.autoplay&&a.$el.one("onSlideItemLoad.lg.tm",function(){a.startlAuto()}),a.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){a.interval&&(a.cancelAuto(),a.canceledOnTouch=!0)}),a.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!a.interval&&a.canceledOnTouch&&(a.startlAuto(),a.canceledOnTouch=!1)})},c.prototype.progress=function(){var a,b,c=this;c.$el.on("onBeforeSlide.lg.tm",function(){c.core.s.progressBar&&c.fromAuto&&(a=c.core.$outer.find(".lg-progress-bar"),b=c.core.$outer.find(".lg-progress"),c.interval&&(b.removeAttr("style"),a.removeClass("lg-start"),setTimeout(function(){b.css("transition","width "+(c.core.s.speed+c.core.s.pause)+"ms ease 0s"),a.addClass("lg-start")},20))),c.fromAuto||c.core.s.fourceAutoplay||c.cancelAuto(),c.fromAuto=!1})},c.prototype.controls=function(){var b=this;a(this.core.s.appendAutoplayControlsTo).append('<span class="lg-autoplay-button lg-icon"></span>'),b.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){a(b.core.$outer).hasClass("lg-show-autoplay")?(b.cancelAuto(),b.core.s.fourceAutoplay=!1):b.interval||(b.startlAuto(),b.core.s.fourceAutoplay=b.fourceAutoplayTemp)})},c.prototype.startlAuto=function(){var a=this;a.core.$outer.find(".lg-progress").css("transition","width "+(a.core.s.speed+a.core.s.pause)+"ms ease 0s"),a.core.$outer.addClass("lg-show-autoplay"),a.core.$outer.find(".lg-progress-bar").addClass("lg-start"),a.interval=setInterval(function(){a.core.index+1<a.core.$items.length?a.core.index++:a.core.index=0,a.fromAuto=!0,a.core.slide(a.core.index,!1,!1,"next")},a.core.s.speed+a.core.s.pause)},c.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},c.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},a.fn.lightGallery.modules.autoplay=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}var c={fullScreen:!0},d=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},c,this.core.s),this.init(),this};d.prototype.init=function(){var a="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;a='<span class="lg-fullscreen lg-icon"></span>',this.core.$outer.find(".lg-toolbar").append(a),this.fullScreen()}},d.prototype.requestFullscreen=function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},d.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},d.prototype.fullScreen=function(){var c=this;a(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){c.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){b()?c.exitFullscreen():c.requestFullscreen()})},d.prototype.destroy=function(){b()&&this.exitFullscreen(),a(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=d}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={pager:!1},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};c.prototype.init=function(){var b,c,d,e=this,f="";if(e.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),e.core.s.dynamic)for(var g=0;g<e.core.s.dynamicEl.length;g++)f+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e.core.s.dynamicEl[g].thumb+'" /></div></span>';else e.core.$items.each(function(){e.core.s.exThumbImage?f+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).attr(e.core.s.exThumbImage)+'" /></div></span>':f+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).find("img").attr("src")+'" /></div></span>'});c=e.core.$outer.find(".lg-pager-outer"),c.html(f),b=e.core.$outer.find(".lg-pager-cont"),b.on("click.lg touchend.lg",function(){var b=a(this);e.core.index=b.index(),e.core.slide(e.core.index,!1,!0,!1)}),c.on("mouseover.lg",function(){clearTimeout(d),c.addClass("lg-pager-hover")}),c.on("mouseout.lg",function(){d=setTimeout(function(){c.removeClass("lg-pager-hover")})}),e.core.$el.on("onBeforeSlide.lg.tm",function(a,c,d){b.removeClass("lg-pager-active"),b.eq(d).addClass("lg-pager-active")})},c.prototype.destroy=function(){},a.fn.lightGallery.modules.pager=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.$el=a(c),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this};c.prototype.init=function(){var a=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout(function(){a.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},c.prototype.build=function(){function b(a,b,c){var g,h=d.core.isVideo(a,c)||{},i="";h.youtube||h.vimeo||h.dailymotion?h.youtube?g=d.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+h.youtube[1]+"/"+d.core.s.youtubeThumbSize+".jpg":b:h.vimeo?d.core.s.loadVimeoThumbnail?(g="//i.vimeocdn.com/video/error_"+f+".jpg",i=h.vimeo[1]):g=b:h.dailymotion&&(g=d.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+h.dailymotion[1]:b):g=b,e+='<div data-vimeo-id="'+i+'" class="lg-thumb-item" style="width:'+d.core.s.thumbWidth+"px; height: "+d.core.s.thumbHeight+"; margin-right: "+d.core.s.thumbMargin+'px"><img src="'+g+'" /></div>',i=""}var c,d=this,e="",f="",g='<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":f="640";break;case"thumbnail_medium":f="200x150";break;case"thumbnail_small":f="100x75"}if(d.core.$outer.addClass("lg-has-thumb"),d.core.$outer.find(".lg").append(g),d.$thumbOuter=d.core.$outer.find(".lg-thumb-outer"),d.thumbOuterWidth=d.$thumbOuter.width(),d.core.s.animateThumb&&d.core.$outer.find(".lg-thumb").css({width:d.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&d.$thumbOuter.css("height",d.core.s.thumbContHeight+"px"),d.core.s.dynamic)for(var h=0;h<d.core.s.dynamicEl.length;h++)b(d.core.s.dynamicEl[h].src,d.core.s.dynamicEl[h].thumb,h);else d.core.$items.each(function(c){d.core.s.exThumbImage?b(a(this).attr("href")||a(this).attr("data-src"),a(this).attr(d.core.s.exThumbImage),c):b(a(this).attr("href")||a(this).attr("data-src"),a(this).find("img").attr("src"),c)});d.core.$outer.find(".lg-thumb").html(e),c=d.core.$outer.find(".lg-thumb-item"),c.each(function(){var b=a(this),c=b.attr("data-vimeo-id");c&&a.getJSON("//www.vimeo.com/api/v2/video/"+c+".json?callback=?",{format:"json"},function(a){b.find("img").attr("src",a[0][d.core.s.vimeoThumbSize])})}),c.eq(d.core.index).addClass("active"),d.core.$el.on("onBeforeSlide.lg.tm",function(){c.removeClass("active"),c.eq(d.core.index).addClass("active")}),c.on("click.lg touchend.lg",function(){var b=a(this);setTimeout(function(){(d.thumbClickable&&!d.core.lgBusy||!d.core.doCss())&&(d.core.index=b.index(),d.core.slide(d.core.index,!1,!0,!1))},50)}),d.core.$el.on("onBeforeSlide.lg.tm",function(){d.animateThumb(d.core.index)}),a(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){d.animateThumb(d.core.index),d.thumbOuterWidth=d.$thumbOuter.width()},200)})},c.prototype.setTranslate=function(a){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+a+"px, 0px, 0px)"})},c.prototype.animateThumb=function(a){var b=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var c;switch(this.core.s.currentPagerPosition){case"left":c=0;break;case"middle":c=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":c=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*a-1-c,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(b.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||b.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||b.css("left",-this.left+"px"),this.setTranslate(this.left)}},c.prototype.enableThumbDrag=function(){var b=this,c=0,d=0,e=!1,f=!1,g=0;b.$thumbOuter.addClass("lg-grab"),b.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(a){b.thumbTotalWidth>b.thumbOuterWidth&&(a.preventDefault(),c=a.pageX,e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.thumbClickable=!1,b.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.thumb",function(a){e&&(g=b.left,f=!0,d=a.pageX,b.$thumbOuter.addClass("lg-dragging"),g-=d-c,g>b.thumbTotalWidth-b.thumbOuterWidth&&(g=b.thumbTotalWidth-b.thumbOuterWidth),g<0&&(g=0),b.setTranslate(g))}),a(window).on("mouseup.lg.thumb",function(){f?(f=!1,b.$thumbOuter.removeClass("lg-dragging"),b.left=g,Math.abs(d-c)<b.core.s.swipeThreshold&&(b.thumbClickable=!0)):b.thumbClickable=!0,e&&(e=!1,b.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},c.prototype.enableThumbSwipe=function(){var a=this,b=0,c=0,d=!1,e=0;a.core.$outer.find(".lg-thumb").on("touchstart.lg",function(c){a.thumbTotalWidth>a.thumbOuterWidth&&(c.preventDefault(),b=c.originalEvent.targetTouches[0].pageX,a.thumbClickable=!1)}),a.core.$outer.find(".lg-thumb").on("touchmove.lg",function(f){a.thumbTotalWidth>a.thumbOuterWidth&&(f.preventDefault(),c=f.originalEvent.targetTouches[0].pageX,d=!0,a.$thumbOuter.addClass("lg-dragging"),e=a.left,e-=c-b,e>a.thumbTotalWidth-a.thumbOuterWidth&&(e=a.thumbTotalWidth-a.thumbOuterWidth),e<0&&(e=0),a.setTranslate(e))}),a.core.$outer.find(".lg-thumb").on("touchend.lg",function(){a.thumbTotalWidth>a.thumbOuterWidth&&d?(d=!1,a.$thumbOuter.removeClass("lg-dragging"),Math.abs(c-b)<a.core.s.swipeThreshold&&(a.thumbClickable=!0),a.left=e):a.thumbClickable=!0})},c.prototype.toogle=function(){var a=this;a.core.s.toogleThumb&&(a.core.$outer.addClass("lg-can-toggle"),a.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>'),a.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){a.core.$outer.toggleClass("lg-thumb-open")}))},c.prototype.thumbkeyPress=function(){var b=this;a(window).on("keydown.lg.thumb",function(a){38===a.keyCode?(a.preventDefault(),b.core.$outer.addClass("lg-thumb-open")):40===a.keyCode&&(a.preventDefault(),b.core.$outer.removeClass("lg-thumb-open"))})},c.prototype.destroy=function(){
this.core.s.thumbnail&&this.core.$items.length>1&&(a(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},a.fn.lightGallery.modules.Thumbnail=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(a,b,c,d){var e=this;if(e.core.$slide.eq(b).find(".lg-video").append(e.loadVideo(c,"lg-object",!0,b,d)),d)if(e.core.s.videojs)try{videojs(e.core.$slide.eq(b).find(".lg-html5").get(0),e.core.s.videojsOptions,function(){!e.videoLoaded&&e.core.s.autoplayFirstVideo&&this.play()})}catch(a){console.error("Make sure you have included videojs")}else!e.videoLoaded&&e.core.s.autoplayFirstVideo&&e.core.$slide.eq(b).find(".lg-html5").get(0).play()}function c(a,b){var c=this.core.$slide.eq(b).find(".lg-video-cont");c.hasClass("lg-has-iframe")||(c.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}function d(b,c,d){var e=this,f=e.core.$slide.eq(c),g=f.find(".lg-youtube").get(0),h=f.find(".lg-vimeo").get(0),i=f.find(".lg-dailymotion").get(0),j=f.find(".lg-vk").get(0),k=f.find(".lg-html5").get(0);if(g)g.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(h)try{$f(h).api("pause")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(i)i.contentWindow.postMessage("pause","*");else if(k)if(e.core.s.videojs)try{videojs(k).pause()}catch(a){console.error("Make sure you have included videojs")}else k.pause();j&&a(j).attr("src",a(j).attr("src").replace("&autoplay","&noplay"));var l;l=e.core.s.dynamic?e.core.s.dynamicEl[d].src:e.core.$items.eq(d).attr("href")||e.core.$items.eq(d).attr("data-src");var m=e.core.isVideo(l,d)||{};(m.youtube||m.vimeo||m.dailymotion||m.vk)&&e.core.$outer.addClass("lg-hide-download")}var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},f=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this};f.prototype.init=function(){var e=this;e.core.$el.on("hasVideo.lg.tm",b.bind(this)),e.core.$el.on("onAferAppendSlide.lg.tm",c.bind(this)),e.core.doCss()&&e.core.$items.length>1&&(e.core.s.enableSwipe||e.core.s.enableDrag)?e.core.$el.on("onSlideClick.lg.tm",function(){var a=e.core.$slide.eq(e.core.index);e.loadVideoOnclick(a)}):e.core.$slide.on("click.lg",function(){e.loadVideoOnclick(a(this))}),e.core.$el.on("onBeforeSlide.lg.tm",d.bind(this)),e.core.$el.on("onAfterSlide.lg.tm",function(a,b){e.core.$slide.eq(b).removeClass("lg-video-playing")}),e.core.s.autoplayFirstVideo&&e.core.$el.on("onAferAppendSlide.lg.tm",function(a,b){if(!e.core.lGalleryOn){var c=e.core.$slide.eq(b);setTimeout(function(){e.loadVideoOnclick(c)},100)}})},f.prototype.loadVideo=function(b,c,d,e,f){var g="",h=1,i="",j=this.core.isVideo(b,e)||{};if(d&&(h=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),j.youtube)i="?wmode=opaque&autoplay="+h+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(i=i+"&"+a.param(this.core.s.youtubePlayerParams)),g='<iframe class="lg-video-object lg-youtube '+c+'" width="560" height="315" src="//www.youtube.com/embed/'+j.youtube[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.vimeo)i="?autoplay="+h+"&api=1",this.core.s.vimeoPlayerParams&&(i=i+"&"+a.param(this.core.s.vimeoPlayerParams)),g='<iframe class="lg-video-object lg-vimeo '+c+'" width="560" height="315"  src="//player.vimeo.com/video/'+j.vimeo[1]+i+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(j.dailymotion)i="?wmode=opaque&autoplay="+h+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(i=i+"&"+a.param(this.core.s.dailymotionPlayerParams)),g='<iframe class="lg-video-object lg-dailymotion '+c+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+j.dailymotion[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.html5){var k=f.substring(0,1);"."!==k&&"#"!==k||(f=a(f).html()),g=f}else j.vk&&(i="&autoplay="+h,this.core.s.vkPlayerParams&&(i=i+"&"+a.param(this.core.s.vkPlayerParams)),g='<iframe class="lg-video-object lg-vk '+c+'" width="560" height="315" src="//vk.com/video_ext.php?'+j.vk[1]+i+'" frameborder="0" allowfullscreen></iframe>');return g},f.prototype.loadVideoOnclick=function(a){var b=this;if(a.find(".lg-object").hasClass("lg-has-poster")&&a.find(".lg-object").is(":visible"))if(a.hasClass("lg-has-video")){var c=a.find(".lg-youtube").get(0),d=a.find(".lg-vimeo").get(0),e=a.find(".lg-dailymotion").get(0),f=a.find(".lg-html5").get(0);if(c)c.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(d)try{$f(d).api("play")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(e)e.contentWindow.postMessage("play","*");else if(f)if(b.core.s.videojs)try{videojs(f).play()}catch(a){console.error("Make sure you have included videojs")}else f.play();a.addClass("lg-video-playing")}else{a.addClass("lg-video-playing lg-has-video");var g,h,i=function(c,d){if(a.find(".lg-video").append(b.loadVideo(c,"",!1,b.core.index,d)),d)if(b.core.s.videojs)try{videojs(b.core.$slide.eq(b.core.index).find(".lg-html5").get(0),b.core.s.videojsOptions,function(){this.play()})}catch(a){console.error("Make sure you have included videojs")}else b.core.$slide.eq(b.core.index).find(".lg-html5").get(0).play()};b.core.s.dynamic?(g=b.core.s.dynamicEl[b.core.index].src,h=b.core.s.dynamicEl[b.core.index].html,i(g,h)):(g=b.core.$items.eq(b.core.index).attr("href")||b.core.$items.eq(b.core.index).attr("data-src"),h=b.core.$items.eq(b.core.index).attr("data-html"),i(g,h));var j=a.find(".lg-object");a.find(".lg-video").append(j),a.find(".lg-video-object").hasClass("lg-html5")||(a.removeClass("lg-complete"),a.find(".lg-video-object").on("load.lg error.lg",function(){a.addClass("lg-complete")}))}},f.prototype.destroy=function(){this.videoLoaded=!1},a.fn.lightGallery.modules.video=f}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b=function(){var a=!1,b=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return b&&parseInt(b[2],10)<54&&(a=!0),a},c={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:b()},d=function(b){return this.core=a(b).data("lightGallery"),this.core.s=a.extend({},c,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()),this};d.prototype.init=function(){var b=this,c='<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>';b.core.s.actualSize&&(c+='<span id="lg-actual-size" class="lg-icon"></span>'),b.core.s.useLeftForZoom?b.core.$outer.addClass("lg-use-left-for-zoom"):b.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(c),b.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(c,d,e){var f=b.core.s.enableZoomAfter+e;a("body").hasClass("lg-from-hash")&&e?f=0:a("body").removeClass("lg-from-hash"),b.zoomabletimeout=setTimeout(function(){b.core.$slide.eq(d).addClass("lg-zoomable")},f+30)});var d=1,e=function(c){var d,e,f=b.core.$outer.find(".lg-current .lg-image"),g=(a(window).width()-f.prop("offsetWidth"))/2,h=(a(window).height()-f.prop("offsetHeight"))/2+a(window).scrollTop();d=b.pageX-g,e=b.pageY-h;var i=(c-1)*d,j=(c-1)*e;f.css("transform","scale3d("+c+", "+c+", 1)").attr("data-scale",c),b.core.s.useLeftForZoom?f.parent().css({left:-i+"px",top:-j+"px"}).attr("data-x",i).attr("data-y",j):f.parent().css("transform","translate3d(-"+i+"px, -"+j+"px, 0)").attr("data-x",i).attr("data-y",j)},f=function(){d>1?b.core.$outer.addClass("lg-zoomed"):b.resetZoom(),d<1&&(d=1),e(d)},g=function(c,e,g,h){var i,j=e.prop("offsetWidth");i=b.core.s.dynamic?b.core.s.dynamicEl[g].width||e[0].naturalWidth||j:b.core.$items.eq(g).attr("data-width")||e[0].naturalWidth||j;var k;b.core.$outer.hasClass("lg-zoomed")?d=1:i>j&&(k=i/j,d=k||2),h?(b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop()):(b.pageX=c.pageX||c.originalEvent.targetTouches[0].pageX,b.pageY=c.pageY||c.originalEvent.targetTouches[0].pageY),f(),setTimeout(function(){b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},h=!1;b.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(a,c){var d=b.core.$slide.eq(c).find(".lg-image");d.on("dblclick",function(a){g(a,d,c)}),d.on("touchstart",function(a){h?(clearTimeout(h),h=null,g(a,d,c)):h=setTimeout(function(){h=null},300),a.preventDefault()})}),a(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop(),e(d)}),a("#lg-zoom-out").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d-=b.core.s.scale,f())}),a("#lg-zoom-in").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d+=b.core.s.scale,f())}),a("#lg-actual-size").on("click.lg",function(a){g(a,b.core.$slide.eq(b.core.index).find(".lg-image"),b.core.index,!0)}),b.core.$el.on("onBeforeSlide.lg.tm",function(){d=1,b.resetZoom()}),b.zoomDrag(),b.zoomSwipe()},d.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()},d.prototype.zoomSwipe=function(){var a=this,b={},c={},d=!1,e=!1,f=!1;a.core.$slide.on("touchstart.lg",function(c){if(a.core.$outer.hasClass("lg-zoomed")){var d=a.core.$slide.eq(a.core.index).find(".lg-object");f=d.prop("offsetHeight")*d.attr("data-scale")>a.core.$outer.find(".lg").height(),e=d.prop("offsetWidth")*d.attr("data-scale")>a.core.$outer.find(".lg").width(),(e||f)&&(c.preventDefault(),b={x:c.originalEvent.targetTouches[0].pageX,y:c.originalEvent.targetTouches[0].pageY})}}),a.core.$slide.on("touchmove.lg",function(g){if(a.core.$outer.hasClass("lg-zoomed")){var h,i,j=a.core.$slide.eq(a.core.index).find(".lg-img-wrap");g.preventDefault(),d=!0,c={x:g.originalEvent.targetTouches[0].pageX,y:g.originalEvent.targetTouches[0].pageY},a.core.$outer.addClass("lg-zoom-dragging"),i=f?-Math.abs(j.attr("data-y"))+(c.y-b.y):-Math.abs(j.attr("data-y")),h=e?-Math.abs(j.attr("data-x"))+(c.x-b.x):-Math.abs(j.attr("data-x")),(Math.abs(c.x-b.x)>15||Math.abs(c.y-b.y)>15)&&(a.core.s.useLeftForZoom?j.css({left:h+"px",top:i+"px"}):j.css("transform","translate3d("+h+"px, "+i+"px, 0)"))}}),a.core.$slide.on("touchend.lg",function(){a.core.$outer.hasClass("lg-zoomed")&&d&&(d=!1,a.core.$outer.removeClass("lg-zoom-dragging"),a.touchendZoom(b,c,e,f))})},d.prototype.zoomDrag=function(){var b=this,c={},d={},e=!1,f=!1,g=!1,h=!1;b.core.$slide.on("mousedown.lg.zoom",function(d){var f=b.core.$slide.eq(b.core.index).find(".lg-object");h=f.prop("offsetHeight")*f.attr("data-scale")>b.core.$outer.find(".lg").height(),g=f.prop("offsetWidth")*f.attr("data-scale")>b.core.$outer.find(".lg").width(),b.core.$outer.hasClass("lg-zoomed")&&a(d.target).hasClass("lg-object")&&(g||h)&&(d.preventDefault(),c={x:d.pageX,y:d.pageY},e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.zoom",function(a){if(e){var i,j,k=b.core.$slide.eq(b.core.index).find(".lg-img-wrap");f=!0,d={x:a.pageX,y:a.pageY},b.core.$outer.addClass("lg-zoom-dragging"),j=h?-Math.abs(k.attr("data-y"))+(d.y-c.y):-Math.abs(k.attr("data-y")),i=g?-Math.abs(k.attr("data-x"))+(d.x-c.x):-Math.abs(k.attr("data-x")),b.core.s.useLeftForZoom?k.css({left:i+"px",top:j+"px"}):k.css("transform","translate3d("+i+"px, "+j+"px, 0)")}}),a(window).on("mouseup.lg.zoom",function(a){e&&(e=!1,b.core.$outer.removeClass("lg-zoom-dragging"),!f||c.x===d.x&&c.y===d.y||(d={x:a.pageX,y:a.pageY},b.touchendZoom(c,d,g,h)),f=!1),b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},d.prototype.touchendZoom=function(a,b,c,d){var e=this,f=e.core.$slide.eq(e.core.index).find(".lg-img-wrap"),g=e.core.$slide.eq(e.core.index).find(".lg-object"),h=-Math.abs(f.attr("data-x"))+(b.x-a.x),i=-Math.abs(f.attr("data-y"))+(b.y-a.y),j=(e.core.$outer.find(".lg").height()-g.prop("offsetHeight"))/2,k=Math.abs(g.prop("offsetHeight")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").height()+j),l=(e.core.$outer.find(".lg").width()-g.prop("offsetWidth"))/2,m=Math.abs(g.prop("offsetWidth")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").width()+l);(Math.abs(b.x-a.x)>15||Math.abs(b.y-a.y)>15)&&(d&&(i<=-k?i=-k:i>=-j&&(i=-j)),c&&(h<=-m?h=-m:h>=-l&&(h=-l)),d?f.attr("data-y",Math.abs(i)):i=-Math.abs(f.attr("data-y")),c?f.attr("data-x",Math.abs(h)):h=-Math.abs(f.attr("data-x")),e.core.s.useLeftForZoom?f.css({left:h+"px",top:i+"px"}):f.css("transform","translate3d("+h+"px, "+i+"px, 0)"))},d.prototype.destroy=function(){var b=this;b.core.$el.off(".lg.zoom"),a(window).off(".lg.zoom"),b.core.$slide.off(".lg.zoom"),b.core.$el.off(".lg.tm.zoom"),b.resetZoom(),clearTimeout(b.zoomabletimeout),b.zoomabletimeout=!1},a.fn.lightGallery.modules.zoom=d}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={hash:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};c.prototype.init=function(){var b,c=this;c.core.$el.on("onAfterSlide.lg.tm",function(a,b,d){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+c.core.s.galleryId+"&slide="+d):window.location.hash="lg="+c.core.s.galleryId+"&slide="+d}),a(window).on("hashchange.lg.hash",function(){b=window.location.hash;var a=parseInt(b.split("&slide=")[1],10);b.indexOf("lg="+c.core.s.galleryId)>-1?c.core.slide(a,!1,!1):c.core.lGalleryOn&&c.core.destroy()})},c.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=c}()}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(0,function(a){!function(){"use strict";var b={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.share&&this.init(),this};c.prototype.init=function(){var b=this,c='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';c+=b.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",c+=b.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",c+=b.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",c+=b.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",c+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(c),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),a("#lg-share").on("click.lg",function(){b.core.$outer.toggleClass("lg-dropdown-active")}),a("#lg-dropdown-overlay").on("click.lg",function(){b.core.$outer.removeClass("lg-dropdown-active")}),b.core.$el.on("onAfterSlide.lg.tm",function(c,d,e){setTimeout(function(){a("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(b.getSahreProps(e,"facebookShareUrl")||window.location.href)),a("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+b.getSahreProps(e,"tweetText")+"&url="+encodeURIComponent(b.getSahreProps(e,"twitterShareUrl")||window.location.href)),a("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(b.getSahreProps(e,"googleplusShareUrl")||window.location.href)),a("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(b.getSahreProps(e,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(b.getSahreProps(e,"src"))+"&description="+b.getSahreProps(e,"pinterestText"))},100)})},c.prototype.getSahreProps=function(a,b){var c="";if(this.core.s.dynamic)c=this.core.s.dynamicEl[a][b];else{var d=this.core.$items.eq(a).attr("href"),e=this.core.$items.eq(a).data(b);c="src"===b?d||e:e}return c},c.prototype.destroy=function(){},a.fn.lightGallery.modules.share=c}()});
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),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"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.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:b,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"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.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(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),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)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.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")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.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")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.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",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.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"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.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")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].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")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.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())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.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+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"owl-video-tn "+j,srcType:c}):a("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.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")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,
animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,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":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.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":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.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},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var o=!1,t=!1,r=0,i=2e3,s=0,n=e,l=document,a=window,c=n(a),d=[],u=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||!1,h=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.mozCancelAnimationFrame||!1;if(u)a.cancelAnimationFrame||(h=function(e){});else{var p=0;u=function(e,o){var t=(new Date).getTime(),r=Math.max(0,16-(t-p)),i=a.setTimeout(function(){e(t+r)},r);return p=t+r,i},h=function(e){a.clearTimeout(e)}}var m=a.MutationObserver||a.WebKitMutationObserver||!1,f=Date.now||function(){return(new Date).getTime()},g={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var e=l.currentScript||function(){var e=l.getElementsByTagName("script");return!!e.length&&e[e.length-1]}(),o=e?e.src.split("?")[0]:"";return o.split("/").length>0?o.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},v=!1,w=function(){if(v)return v;var e=l.createElement("DIV"),o=e.style,t=navigator.userAgent,r=navigator.platform,i={};return i.haspointerlock="pointerLockElement"in l||"webkitPointerLockElement"in l||"mozPointerLockElement"in l,i.isopera="opera"in a,i.isopera12=i.isopera&&"getUserMedia"in navigator,i.isoperamini="[object OperaMini]"===Object.prototype.toString.call(a.operamini),i.isie="all"in l&&"attachEvent"in e&&!i.isopera,i.isieold=i.isie&&!("msInterpolationMode"in o),i.isie7=i.isie&&!i.isieold&&(!("documentMode"in l)||7===l.documentMode),i.isie8=i.isie&&"documentMode"in l&&8===l.documentMode,i.isie9=i.isie&&"performance"in a&&9===l.documentMode,i.isie10=i.isie&&"performance"in a&&10===l.documentMode,i.isie11="msRequestFullscreen"in e&&l.documentMode>=11,i.ismsedge="msCredentials"in a,i.ismozilla="MozAppearance"in o,i.iswebkit=!i.ismsedge&&"WebkitAppearance"in o,i.ischrome=i.iswebkit&&"chrome"in a,i.ischrome38=i.ischrome&&"touchAction"in o,i.ischrome22=!i.ischrome38&&i.ischrome&&i.haspointerlock,i.ischrome26=!i.ischrome38&&i.ischrome&&"transition"in o,i.cantouch="ontouchstart"in l.documentElement||"ontouchstart"in a,i.hasw3ctouch=(a.PointerEvent||!1)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),i.hasmstouch=!i.hasw3ctouch&&(a.MSPointerEvent||!1),i.ismac=/^mac$/i.test(r),i.isios=i.cantouch&&/iphone|ipad|ipod/i.test(r),i.isios4=i.isios&&!("seal"in Object),i.isios7=i.isios&&"webkitHidden"in l,i.isios8=i.isios&&"hidden"in l,i.isios10=i.isios&&a.Proxy,i.isandroid=/android/i.test(t),i.haseventlistener="addEventListener"in e,i.trstyle=!1,i.hastransform=!1,i.hastranslate3d=!1,i.transitionstyle=!1,i.hastransition=!1,i.transitionend=!1,i.trstyle="transform",i.hastransform="transform"in o||function(){for(var e=["msTransform","webkitTransform","MozTransform","OTransform"],t=0,r=e.length;t<r;t++)if(void 0!==o[e[t]]){i.trstyle=e[t];break}i.hastransform=!!i.trstyle}(),i.hastransform&&(o[i.trstyle]="translate3d(1px,2px,3px)",i.hastranslate3d=/translate3d/.test(o[i.trstyle])),i.transitionstyle="transition",i.prefixstyle="",i.transitionend="transitionend",i.hastransition="transition"in o||function(){i.transitionend=!1;for(var e=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],t=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],r=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],s=0,n=e.length;s<n;s++)if(e[s]in o){i.transitionstyle=e[s],i.prefixstyle=t[s],i.transitionend=r[s];break}i.ischrome26&&(i.prefixstyle=t[1]),i.hastransition=i.transitionstyle}(),i.cursorgrabvalue=function(){var e=["grab","-webkit-grab","-moz-grab"];(i.ischrome&&!i.ischrome38||i.isie)&&(e=[]);for(var t=0,r=e.length;t<r;t++){var s=e[t];if(o.cursor=s,o.cursor==s)return s}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),i.hasmousecapture="setCapture"in e,i.hasMutationObserver=!1!==m,e=null,v=i,i},b=function(e,p){function v(){var e=T.doc.css(P.trstyle);return!(!e||"matrix"!=e.substr(0,6))&&e.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}function b(){var e=T.win;if("zIndex"in e)return e.zIndex();for(;e.length>0;){if(9==e[0].nodeType)return!1;var o=e.css("zIndex");if(!isNaN(o)&&0!==o)return parseInt(o);e=e.parent()}return!1}function x(e,o,t){var r=e.css(o),i=parseFloat(r);if(isNaN(i)){var s=3==(i=I[r]||0)?t?T.win.outerHeight()-T.win.innerHeight():T.win.outerWidth()-T.win.innerWidth():1;return T.isie8&&i&&(i+=1),s?i:0}return i}function S(e,o,t,r){T._bind(e,o,function(r){var i={original:r=r||a.event,target:r.target||r.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==r.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return"mousewheel"==o?(r.wheelDeltaX&&(i.deltaX=-.025*r.wheelDeltaX),r.wheelDeltaY&&(i.deltaY=-.025*r.wheelDeltaY),!i.deltaY&&!i.deltaX&&(i.deltaY=-.025*r.wheelDelta)):i.deltaY=r.detail,t.call(e,i)},r)}function z(e,o,t,r){T.scrollrunning||(T.newscrolly=T.getScrollTop(),T.newscrollx=T.getScrollLeft(),D=f());var i=f()-D;if(D=f(),i>350?A=1:A+=(2-A)/10,e=e*A|0,o=o*A|0,e){if(r)if(e<0){if(T.getScrollLeft()>=T.page.maxw)return!0}else if(T.getScrollLeft()<=0)return!0;var s=e>0?1:-1;X!==s&&(T.scrollmom&&T.scrollmom.stop(),T.newscrollx=T.getScrollLeft(),X=s),T.lastdeltax-=e}if(o){if(function(){var e=T.getScrollTop();if(o<0){if(e>=T.page.maxh)return!0}else if(e<=0)return!0}()){if(M.nativeparentscrolling&&t&&!T.ispage&&!T.zoomactive)return!0;var n=T.view.h>>1;T.newscrolly<-n?(T.newscrolly=-n,o=-1):T.newscrolly>T.page.maxh+n?(T.newscrolly=T.page.maxh+n,o=1):o=0}var l=o>0?1:-1;B!==l&&(T.scrollmom&&T.scrollmom.stop(),T.newscrolly=T.getScrollTop(),B=l),T.lastdeltay-=o}(o||e)&&T.synched("relativexy",function(){var e=T.lastdeltay+T.newscrolly;T.lastdeltay=0;var o=T.lastdeltax+T.newscrollx;T.lastdeltax=0,T.rail.drag||T.doScrollPos(o,e)})}function k(e,o,t){var r,i;return!(t||!q)||(0===e.deltaMode?(r=-e.deltaX*(M.mousescrollstep/54)|0,i=-e.deltaY*(M.mousescrollstep/54)|0):1===e.deltaMode&&(r=-e.deltaX*M.mousescrollstep*50/80|0,i=-e.deltaY*M.mousescrollstep*50/80|0),o&&M.oneaxismousemode&&0===r&&i&&(r=i,i=0,t&&(r<0?T.getScrollLeft()>=T.page.maxw:T.getScrollLeft()<=0)&&(i=r,r=0)),T.isrtlmode&&(r=-r),z(r,i,t,!0)?void(t&&(q=!0)):(q=!1,e.stopImmediatePropagation(),e.preventDefault()))}var T=this;this.version="3.7.6",this.name="nicescroll",this.me=p;var E=n("body"),M=this.opt={doc:E,win:!1};if(n.extend(M,g),M.snapbackspeed=80,e)for(var L in M)void 0!==e[L]&&(M[L]=e[L]);if(M.disablemutationobserver&&(m=!1),this.doc=M.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/^BODY|HTML/.test(M.win?M.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==M.win,this.win=M.win||(this.ispage?c:this.doc),this.docscroll=this.ispage&&!this.haswrapper?c:this.win,this.body=E,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=M.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==M.rtlmode){var C=this.win[0]==a?this.body:this.win,N=C.css("writing-mode")||C.css("-webkit-writing-mode")||C.css("-ms-writing-mode")||C.css("-moz-writing-mode");"horizontal-tb"==N||"lr-tb"==N||""===N?(this.isrtlmode="rtl"==C.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==N||"tb"==N||"tb-rl"==N||"rl-tb"==N,this.isvertical="vertical-rl"==N||"tb"==N||"tb-rl"==N)}else this.isrtlmode=!0===M.rtlmode,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,!1!==M.scrollbarid)this.id=M.scrollbarid;else do{this.id="ascrail"+i++}while(l.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=M.overflowx,this.overflowy=M.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=w();var P=n.extend({},this.detected);this.canhwscroll=P.hastransform&&M.hwacceleration,this.ishwscroll=this.canhwscroll&&T.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(P.iswebkit||P.isie||P.isie11):this.hasreversehr=!(P.iswebkit||P.isie&&!P.isie10&&!P.isie11):this.hasreversehr=!1,this.istouchcapable=!1,P.cantouch||!P.hasw3ctouch&&!P.hasmstouch?!P.cantouch||P.isios||P.isandroid||!P.iswebkit&&!P.ismozilla||(this.istouchcapable=!0):this.istouchcapable=!0,M.enablemouselockapi||(P.hasmousecapture=!1,P.haspointerlock=!1),this.debounced=function(e,o,t){T&&(T.delaylist[e]||!1||(T.delaylist[e]={h:u(function(){T.delaylist[e].fn.call(T),T.delaylist[e]=!1},t)},o.call(T)),T.delaylist[e].fn=o)},this.synched=function(e,o){T.synclist[e]?T.synclist[e]=o:(T.synclist[e]=o,u(function(){T&&(T.synclist[e]&&T.synclist[e].call(T),T.synclist[e]=null)}))},this.unsynched=function(e){T.synclist[e]&&(T.synclist[e]=!1)},this.css=function(e,o){for(var t in o)T.saved.css.push([e,t,e.css(t)]),e.css(t,o[t])},this.scrollTop=function(e){return void 0===e?T.getScrollTop():T.setScrollTop(e)},this.scrollLeft=function(e){return void 0===e?T.getScrollLeft():T.setScrollLeft(e)};var R=function(e,o,t,r,i,s,n){this.st=e,this.ed=o,this.spd=t,this.p1=r||0,this.p2=i||1,this.p3=s||0,this.p4=n||1,this.ts=f(),this.df=o-e};if(R.prototype={B2:function(e){return 3*(1-e)*(1-e)*e},B3:function(e){return 3*(1-e)*e*e},B4:function(e){return e*e*e},getPos:function(){return(f()-this.ts)/this.spd},getNow:function(){var e=(f()-this.ts)/this.spd,o=this.B2(e)+this.B3(e)+this.B4(e);return e>=1?this.ed:this.st+this.df*o|0},update:function(e,o){return this.st=this.getNow(),this.ed=e,this.spd=o,this.ts=f(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},P.hastranslate3d&&P.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(e){if(!e){var o=v();if(o)return 16==o.length?-o[13]:-o[5];if(T.timerscroll&&T.timerscroll.bz)return T.timerscroll.bz.getNow()}return T.doc.translate.y},this.getScrollLeft=function(e){if(!e){var o=v();if(o)return 16==o.length?-o[12]:-o[4];if(T.timerscroll&&T.timerscroll.bh)return T.timerscroll.bh.getNow()}return T.doc.translate.x},this.notifyScrollEvent=function(e){var o=l.createEvent("UIEvents");o.initUIEvent("scroll",!1,!1,a,1),o.niceevent=!0,e.dispatchEvent(o)};var _=this.isrtlmode?1:-1;P.hastranslate3d&&M.enabletranslate3d?(this.setScrollTop=function(e,o){T.doc.translate.y=e,T.doc.translate.ty=-1*e+"px",T.doc.css(P.trstyle,"translate3d("+T.doc.translate.tx+","+T.doc.translate.ty+",0)"),o||T.notifyScrollEvent(T.win[0])},this.setScrollLeft=function(e,o){T.doc.translate.x=e,T.doc.translate.tx=e*_+"px",T.doc.css(P.trstyle,"translate3d("+T.doc.translate.tx+","+T.doc.translate.ty+",0)"),o||T.notifyScrollEvent(T.win[0])}):(this.setScrollTop=function(e,o){T.doc.translate.y=e,T.doc.translate.ty=-1*e+"px",T.doc.css(P.trstyle,"translate("+T.doc.translate.tx+","+T.doc.translate.ty+")"),o||T.notifyScrollEvent(T.win[0])},this.setScrollLeft=function(e,o){T.doc.translate.x=e,T.doc.translate.tx=e*_+"px",T.doc.css(P.trstyle,"translate("+T.doc.translate.tx+","+T.doc.translate.ty+")"),o||T.notifyScrollEvent(T.win[0])})}else this.getScrollTop=function(){return T.docscroll.scrollTop()},this.setScrollTop=function(e){T.docscroll.scrollTop(e)},this.getScrollLeft=function(){return T.hasreversehr?T.detected.ismozilla?T.page.maxw-Math.abs(T.docscroll.scrollLeft()):T.page.maxw-T.docscroll.scrollLeft():T.docscroll.scrollLeft()},this.setScrollLeft=function(e){return setTimeout(function(){if(T)return T.hasreversehr&&(e=T.detected.ismozilla?-(T.page.maxw-e):T.page.maxw-e),T.docscroll.scrollLeft(e)},1)};this.getTarget=function(e){return!!e&&(e.target?e.target:!!e.srcElement&&e.srcElement)},this.hasParent=function(e,o){if(!e)return!1;for(var t=e.target||e.srcElement||e||!1;t&&t.id!=o;)t=t.parentNode||!1;return!1!==t};var I={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:a.pageYOffset||l.documentElement.scrollTop,left:a.pageXOffset||l.documentElement.scrollLeft}},this.getOffset=function(){if(T.isfixed){var e=T.win.offset(),o=T.getDocumentScrollOffset();return e.top-=o.top,e.left-=o.left,e}var t=T.win.offset();if(!T.viewport)return t;var r=T.viewport.offset();return{top:t.top-r.top,left:t.left-r.left}},this.updateScrollBar=function(e){var o,t;if(T.ishwscroll)T.rail.css({height:T.win.innerHeight()-(M.railpadding.top+M.railpadding.bottom)}),T.railh&&T.railh.css({width:T.win.innerWidth()-(M.railpadding.left+M.railpadding.right)});else{var r=T.getOffset();if(o={top:r.top,left:r.left-(M.railpadding.left+M.railpadding.right)},o.top+=x(T.win,"border-top-width",!0),o.left+=T.rail.align?T.win.outerWidth()-x(T.win,"border-right-width")-T.rail.width:x(T.win,"border-left-width"),(t=M.railoffset)&&(t.top&&(o.top+=t.top),t.left&&(o.left+=t.left)),T.railslocked||T.rail.css({top:o.top,left:o.left,height:(e?e.h:T.win.innerHeight())-(M.railpadding.top+M.railpadding.bottom)}),T.zoom&&T.zoom.css({top:o.top+1,left:1==T.rail.align?o.left-20:o.left+T.rail.width+4}),T.railh&&!T.railslocked){o={top:r.top,left:r.left},(t=M.railhoffset)&&(t.top&&(o.top+=t.top),t.left&&(o.left+=t.left));var i=T.railh.align?o.top+x(T.win,"border-top-width",!0)+T.win.innerHeight()-T.railh.height:o.top+x(T.win,"border-top-width",!0),s=o.left+x(T.win,"border-left-width");T.railh.css({top:i-(M.railpadding.top+M.railpadding.bottom),left:s,width:T.railh.width})}}},this.doRailClick=function(e,o,t){var r,i,s,n;T.railslocked||(T.cancelEvent(e),"pageY"in e||(e.pageX=e.clientX+l.documentElement.scrollLeft,e.pageY=e.clientY+l.documentElement.scrollTop),o?(r=t?T.doScrollLeft:T.doScrollTop,s=t?(e.pageX-T.railh.offset().left-T.cursorwidth/2)*T.scrollratio.x:(e.pageY-T.rail.offset().top-T.cursorheight/2)*T.scrollratio.y,T.unsynched("relativexy"),r(0|s)):(r=t?T.doScrollLeftBy:T.doScrollBy,s=t?T.scroll.x:T.scroll.y,n=t?e.pageX-T.railh.offset().left:e.pageY-T.rail.offset().top,i=t?T.view.w:T.view.h,r(s>=n?i:-i)))},T.newscrolly=T.newscrollx=0,T.hasanimationframe="requestAnimationFrame"in a,T.hascancelanimationframe="cancelAnimationFrame"in a,T.hasborderbox=!1,this.init=function(){if(T.saved.css=[],P.isoperamini)return!0;if(P.isandroid&&!("hidden"in l))return!0;M.emulatetouch=M.emulatetouch||M.touchbehavior,T.hasborderbox=a.getComputedStyle&&"border-box"===a.getComputedStyle(l.body)["box-sizing"];var e={"overflow-y":"hidden"};if((P.isie11||P.isie10)&&(e["-ms-overflow-style"]="none"),T.ishwscroll&&(this.doc.css(P.transitionstyle,P.prefixstyle+"transform 0ms ease-out"),P.transitionend&&T.bind(T.doc,P.transitionend,T.onScrollTransitionEnd,!1)),T.zindex="auto",T.ispage||"auto"!=M.zindex?T.zindex=M.zindex:T.zindex=b()||"auto",!T.ispage&&"auto"!=T.zindex&&T.zindex>s&&(s=T.zindex),T.isie&&0===T.zindex&&"auto"==M.zindex&&(T.zindex="auto"),!T.ispage||!P.isieold){var i=T.docscroll;T.ispage&&(i=T.haswrapper?T.win:T.doc),T.css(i,e),T.ispage&&(P.isie11||P.isie)&&T.css(n("html"),e),!P.isios||T.ispage||T.haswrapper||T.css(E,{"-webkit-overflow-scrolling":"touch"});var d=n(l.createElement("div"));d.css({position:"relative",top:0,float:"right",width:M.cursorwidth,height:0,"background-color":M.cursorcolor,border:M.cursorborder,"background-clip":"padding-box","-webkit-border-radius":M.cursorborderradius,"-moz-border-radius":M.cursorborderradius,"border-radius":M.cursorborderradius}),d.addClass("nicescroll-cursors"),T.cursor=d;var u=n(l.createElement("div"));u.attr("id",T.id),u.addClass("nicescroll-rails nicescroll-rails-vr");var h,p,f=["left","right","top","bottom"];for(var g in f)p=f[g],(h=M.railpadding[p]||0)&&u.css("padding-"+p,h+"px");u.append(d),u.width=Math.max(parseFloat(M.cursorwidth),d.outerWidth()),u.css({width:u.width+"px",zIndex:T.zindex,background:M.background,cursor:"default"}),u.visibility=!0,u.scrollable=!0,u.align="left"==M.railalign?0:1,T.rail=u,T.rail.drag=!1;var v=!1;!M.boxzoom||T.ispage||P.isieold||(v=l.createElement("div"),T.bind(v,"click",T.doZoom),T.bind(v,"mouseenter",function(){T.zoom.css("opacity",M.cursoropacitymax)}),T.bind(v,"mouseleave",function(){T.zoom.css("opacity",M.cursoropacitymin)}),T.zoom=n(v),T.zoom.css({cursor:"pointer",zIndex:T.zindex,backgroundImage:"url("+M.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),M.dblclickzoom&&T.bind(T.win,"dblclick",T.doZoom),P.cantouch&&M.gesturezoom&&(T.ongesturezoom=function(e){return e.scale>1.5&&T.doZoomIn(e),e.scale<.8&&T.doZoomOut(e),T.cancelEvent(e)},T.bind(T.win,"gestureend",T.ongesturezoom))),T.railh=!1;var w;if(M.horizrailenabled&&(T.css(i,{overflowX:"hidden"}),(d=n(l.createElement("div"))).css({position:"absolute",top:0,height:M.cursorwidth,width:0,backgroundColor:M.cursorcolor,border:M.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":M.cursorborderradius,"-moz-border-radius":M.cursorborderradius,"border-radius":M.cursorborderradius}),P.isieold&&d.css("overflow","hidden"),d.addClass("nicescroll-cursors"),T.cursorh=d,(w=n(l.createElement("div"))).attr("id",T.id+"-hr"),w.addClass("nicescroll-rails nicescroll-rails-hr"),w.height=Math.max(parseFloat(M.cursorwidth),d.outerHeight()),w.css({height:w.height+"px",zIndex:T.zindex,background:M.background}),w.append(d),w.visibility=!0,w.scrollable=!0,w.align="top"==M.railvalign?0:1,T.railh=w,T.railh.drag=!1),T.ispage)u.css({position:"fixed",top:0,height:"100%"}),u.css(u.align?{right:0}:{left:0}),T.body.append(u),T.railh&&(w.css({position:"fixed",left:0,width:"100%"}),w.css(w.align?{bottom:0}:{top:0}),T.body.append(w));else{if(T.ishwscroll){"static"==T.win.css("position")&&T.css(T.win,{position:"relative"});var x="HTML"==T.win[0].nodeName?T.body:T.win;n(x).scrollTop(0).scrollLeft(0),T.zoom&&(T.zoom.css({position:"absolute",top:1,right:0,"margin-right":u.width+4}),x.append(T.zoom)),u.css({position:"absolute",top:0}),u.css(u.align?{right:0}:{left:0}),x.append(u),w&&(w.css({position:"absolute",left:0,bottom:0}),w.css(w.align?{bottom:0}:{top:0}),x.append(w))}else{T.isfixed="fixed"==T.win.css("position");var S=T.isfixed?"fixed":"absolute";T.isfixed||(T.viewport=T.getViewport(T.win[0])),T.viewport&&(T.body=T.viewport,/fixed|absolute/.test(T.viewport.css("position"))||T.css(T.viewport,{position:"relative"})),u.css({position:S}),T.zoom&&T.zoom.css({position:S}),T.updateScrollBar(),T.body.append(u),T.zoom&&T.body.append(T.zoom),T.railh&&(w.css({position:S}),T.body.append(w))}P.isios&&T.css(T.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),M.disableoutline&&(P.isie&&T.win.attr("hideFocus","true"),P.iswebkit&&T.win.css("outline","none"))}if(!1===M.autohidemode?(T.autohidedom=!1,T.rail.css({opacity:M.cursoropacitymax}),T.railh&&T.railh.css({opacity:M.cursoropacitymax})):!0===M.autohidemode||"leave"===M.autohidemode?(T.autohidedom=n().add(T.rail),P.isie8&&(T.autohidedom=T.autohidedom.add(T.cursor)),T.railh&&(T.autohidedom=T.autohidedom.add(T.railh)),T.railh&&P.isie8&&(T.autohidedom=T.autohidedom.add(T.cursorh))):"scroll"==M.autohidemode?(T.autohidedom=n().add(T.rail),T.railh&&(T.autohidedom=T.autohidedom.add(T.railh))):"cursor"==M.autohidemode?(T.autohidedom=n().add(T.cursor),T.railh&&(T.autohidedom=T.autohidedom.add(T.cursorh))):"hidden"==M.autohidemode&&(T.autohidedom=!1,T.hide(),T.railslocked=!1),P.cantouch||T.istouchcapable||M.emulatetouch||P.hasmstouch){T.scrollmom=new y(T);T.ontouchstart=function(e){if(T.locked)return!1;if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!1;if(T.hasmoving=!1,T.scrollmom.timer&&(T.triggerScrollEnd(),T.scrollmom.stop()),!T.railslocked){var o=T.getTarget(e);if(o&&/INPUT/i.test(o.nodeName)&&/range/i.test(o.type))return T.stopPropagation(e);var t="mousedown"===e.type;if(!("clientX"in e)&&"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),T.forcescreen){var r=e;(e={original:e.original?e.original:e}).clientX=r.screenX,e.clientY=r.screenY}if(T.rail.drag={x:e.clientX,y:e.clientY,sx:T.scroll.x,sy:T.scroll.y,st:T.getScrollTop(),sl:T.getScrollLeft(),pt:2,dl:!1,tg:o},T.ispage||!M.directionlockdeadzone)T.rail.drag.dl="f";else{var i={w:c.width(),h:c.height()},s=T.getContentSize(),l=s.h-i.h,a=s.w-i.w;T.rail.scrollable&&!T.railh.scrollable?T.rail.drag.ck=l>0&&"v":!T.rail.scrollable&&T.railh.scrollable?T.rail.drag.ck=a>0&&"h":T.rail.drag.ck=!1}if(M.emulatetouch&&T.isiframe&&P.isie){var d=T.win.position();T.rail.drag.x+=d.left,T.rail.drag.y+=d.top}if(T.hasmoving=!1,T.lastmouseup=!1,T.scrollmom.reset(e.clientX,e.clientY),o&&t){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(o.nodeName))return P.hasmousecapture&&o.setCapture(),M.emulatetouch?(o.onclick&&!o._onclick&&(o._onclick=o.onclick,o.onclick=function(e){if(T.hasmoving)return!1;o._onclick.call(this,e)}),T.cancelEvent(e)):T.stopPropagation(e);/SUBMIT|CANCEL|BUTTON/i.test(n(o).attr("type"))&&(T.preventclick={tg:o,click:!1})}}},T.ontouchend=function(e){if(!T.rail.drag)return!0;if(2==T.rail.drag.pt){if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!1;T.rail.drag=!1;var o="mouseup"===e.type;if(T.hasmoving&&(T.scrollmom.doMomentum(),T.lastmouseup=!0,T.hideCursor(),P.hasmousecapture&&l.releaseCapture(),o))return T.cancelEvent(e)}else if(1==T.rail.drag.pt)return T.onmouseup(e)};var z=M.emulatetouch&&T.isiframe&&!P.hasmousecapture,k=.3*M.directionlockdeadzone|0;T.ontouchmove=function(e,o){if(!T.rail.drag)return!0;if(e.targetTouches&&M.preventmultitouchscrolling&&e.targetTouches.length>1)return!0;if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!0;if(2==T.rail.drag.pt){"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY);var t,r;if(r=t=0,z&&!o){var i=T.win.position();r=-i.left,t=-i.top}var s=e.clientY+t,n=s-T.rail.drag.y,a=e.clientX+r,c=a-T.rail.drag.x,d=T.rail.drag.st-n;if(T.ishwscroll&&M.bouncescroll)d<0?d=Math.round(d/2):d>T.page.maxh&&(d=T.page.maxh+Math.round((d-T.page.maxh)/2));else if(d<0?(d=0,s=0):d>T.page.maxh&&(d=T.page.maxh,s=0),0===s&&!T.hasmoving)return T.ispage||(T.rail.drag=!1),!0;var u=T.getScrollLeft();if(T.railh&&T.railh.scrollable&&(u=T.isrtlmode?c-T.rail.drag.sl:T.rail.drag.sl-c,T.ishwscroll&&M.bouncescroll?u<0?u=Math.round(u/2):u>T.page.maxw&&(u=T.page.maxw+Math.round((u-T.page.maxw)/2)):(u<0&&(u=0,a=0),u>T.page.maxw&&(u=T.page.maxw,a=0))),!T.hasmoving){if(T.rail.drag.y===e.clientY&&T.rail.drag.x===e.clientX)return T.cancelEvent(e);var h=Math.abs(n),p=Math.abs(c),m=M.directionlockdeadzone;if(T.rail.drag.ck?"v"==T.rail.drag.ck?p>m&&h<=k?T.rail.drag=!1:h>m&&(T.rail.drag.dl="v"):"h"==T.rail.drag.ck&&(h>m&&p<=k?T.rail.drag=!1:p>m&&(T.rail.drag.dl="h")):h>m&&p>m?T.rail.drag.dl="f":h>m?T.rail.drag.dl=p>k?"f":"v":p>m&&(T.rail.drag.dl=h>k?"f":"h"),!T.rail.drag.dl)return T.cancelEvent(e);T.triggerScrollStart(e.clientX,e.clientY,0,0,0),T.hasmoving=!0}return T.preventclick&&!T.preventclick.click&&(T.preventclick.click=T.preventclick.tg.onclick||!1,T.preventclick.tg.onclick=T.onpreventclick),T.rail.drag.dl&&("v"==T.rail.drag.dl?u=T.rail.drag.sl:"h"==T.rail.drag.dl&&(d=T.rail.drag.st)),T.synched("touchmove",function(){T.rail.drag&&2==T.rail.drag.pt&&(T.prepareTransition&&T.resetTransition(),T.rail.scrollable&&T.setScrollTop(d),T.scrollmom.update(a,s),T.railh&&T.railh.scrollable?(T.setScrollLeft(u),T.showCursor(d,u)):T.showCursor(d),P.isie10&&l.selection.clear())}),T.cancelEvent(e)}return 1==T.rail.drag.pt?T.onmousemove(e):void 0},T.ontouchstartCursor=function(e,o){if(!T.rail.drag||3==T.rail.drag.pt){if(T.locked)return T.cancelEvent(e);T.cancelScroll(),T.rail.drag={x:e.touches[0].clientX,y:e.touches[0].clientY,sx:T.scroll.x,sy:T.scroll.y,pt:3,hr:!!o};var t=T.getTarget(e);return!T.ispage&&P.hasmousecapture&&t.setCapture(),T.isiframe&&!P.hasmousecapture&&(T.saved.csspointerevents=T.doc.css("pointer-events"),T.css(T.doc,{"pointer-events":"none"})),T.cancelEvent(e)}},T.ontouchendCursor=function(e){if(T.rail.drag){if(P.hasmousecapture&&l.releaseCapture(),T.isiframe&&!P.hasmousecapture&&T.doc.css("pointer-events",T.saved.csspointerevents),3!=T.rail.drag.pt)return;return T.rail.drag=!1,T.cancelEvent(e)}},T.ontouchmoveCursor=function(e){if(T.rail.drag){if(3!=T.rail.drag.pt)return;if(T.cursorfreezed=!0,T.rail.drag.hr){T.scroll.x=T.rail.drag.sx+(e.touches[0].clientX-T.rail.drag.x),T.scroll.x<0&&(T.scroll.x=0);var o=T.scrollvaluemaxw;T.scroll.x>o&&(T.scroll.x=o)}else{T.scroll.y=T.rail.drag.sy+(e.touches[0].clientY-T.rail.drag.y),T.scroll.y<0&&(T.scroll.y=0);var t=T.scrollvaluemax;T.scroll.y>t&&(T.scroll.y=t)}return T.synched("touchmove",function(){T.rail.drag&&3==T.rail.drag.pt&&(T.showCursor(),T.rail.drag.hr?T.doScrollLeft(Math.round(T.scroll.x*T.scrollratio.x),M.cursordragspeed):T.doScrollTop(Math.round(T.scroll.y*T.scrollratio.y),M.cursordragspeed))}),T.cancelEvent(e)}}}if(T.onmousedown=function(e,o){if(!T.rail.drag||1==T.rail.drag.pt){if(T.railslocked)return T.cancelEvent(e);T.cancelScroll(),T.rail.drag={x:e.clientX,y:e.clientY,sx:T.scroll.x,sy:T.scroll.y,pt:1,hr:o||!1};var t=T.getTarget(e);return P.hasmousecapture&&t.setCapture(),T.isiframe&&!P.hasmousecapture&&(T.saved.csspointerevents=T.doc.css("pointer-events"),T.css(T.doc,{"pointer-events":"none"})),T.hasmoving=!1,T.cancelEvent(e)}},T.onmouseup=function(e){if(T.rail.drag)return 1!=T.rail.drag.pt||(P.hasmousecapture&&l.releaseCapture(),T.isiframe&&!P.hasmousecapture&&T.doc.css("pointer-events",T.saved.csspointerevents),T.rail.drag=!1,T.cursorfreezed=!1,T.hasmoving&&T.triggerScrollEnd(),T.cancelEvent(e))},T.onmousemove=function(e){if(T.rail.drag){if(1!==T.rail.drag.pt)return;if(P.ischrome&&0===e.which)return T.onmouseup(e);if(T.cursorfreezed=!0,T.hasmoving||T.triggerScrollStart(e.clientX,e.clientY,0,0,0),T.hasmoving=!0,T.rail.drag.hr){T.scroll.x=T.rail.drag.sx+(e.clientX-T.rail.drag.x),T.scroll.x<0&&(T.scroll.x=0);var o=T.scrollvaluemaxw;T.scroll.x>o&&(T.scroll.x=o)}else{T.scroll.y=T.rail.drag.sy+(e.clientY-T.rail.drag.y),T.scroll.y<0&&(T.scroll.y=0);var t=T.scrollvaluemax;T.scroll.y>t&&(T.scroll.y=t)}return T.synched("mousemove",function(){T.cursorfreezed&&(T.showCursor(),T.rail.drag.hr?T.scrollLeft(Math.round(T.scroll.x*T.scrollratio.x)):T.scrollTop(Math.round(T.scroll.y*T.scrollratio.y)))}),T.cancelEvent(e)}T.checkarea=0},P.cantouch||M.emulatetouch)T.onpreventclick=function(e){if(T.preventclick)return T.preventclick.tg.onclick=T.preventclick.click,T.preventclick=!1,T.cancelEvent(e)},T.onclick=!P.isios&&function(e){return!T.lastmouseup||(T.lastmouseup=!1,T.cancelEvent(e))},M.grabcursorenabled&&P.cursorgrabvalue&&(T.css(T.ispage?T.doc:T.win,{cursor:P.cursorgrabvalue}),T.css(T.rail,{cursor:P.cursorgrabvalue}));else{var L=function(e){if(T.selectiondrag){if(e){var o=T.win.outerHeight(),t=e.pageY-T.selectiondrag.top;t>0&&t<o&&(t=0),t>=o&&(t-=o),T.selectiondrag.df=t}if(0!==T.selectiondrag.df){var r=-2*T.selectiondrag.df/6|0;T.doScrollBy(r),T.debounced("doselectionscroll",function(){L()},50)}}};T.hasTextSelected="getSelection"in l?function(){return l.getSelection().rangeCount>0}:"selection"in l?function(){return"None"!=l.selection.type}:function(){return!1},T.onselectionstart=function(e){T.ispage||(T.selectiondrag=T.win.offset())},T.onselectionend=function(e){T.selectiondrag=!1},T.onselectiondrag=function(e){T.selectiondrag&&T.hasTextSelected()&&T.debounced("selectionscroll",function(){L(e)},250)}}if(P.hasw3ctouch?(T.css(T.ispage?n("html"):T.win,{"touch-action":"none"}),T.css(T.rail,{"touch-action":"none"}),T.css(T.cursor,{"touch-action":"none"}),T.bind(T.win,"pointerdown",T.ontouchstart),T.bind(l,"pointerup",T.ontouchend),T.delegate(l,"pointermove",T.ontouchmove)):P.hasmstouch?(T.css(T.ispage?n("html"):T.win,{"-ms-touch-action":"none"}),T.css(T.rail,{"-ms-touch-action":"none"}),T.css(T.cursor,{"-ms-touch-action":"none"}),T.bind(T.win,"MSPointerDown",T.ontouchstart),T.bind(l,"MSPointerUp",T.ontouchend),T.delegate(l,"MSPointerMove",T.ontouchmove),T.bind(T.cursor,"MSGestureHold",function(e){e.preventDefault()}),T.bind(T.cursor,"contextmenu",function(e){e.preventDefault()})):P.cantouch&&(T.bind(T.win,"touchstart",T.ontouchstart,!1,!0),T.bind(l,"touchend",T.ontouchend,!1,!0),T.bind(l,"touchcancel",T.ontouchend,!1,!0),T.delegate(l,"touchmove",T.ontouchmove,!1,!0)),M.emulatetouch&&(T.bind(T.win,"mousedown",T.ontouchstart,!1,!0),T.bind(l,"mouseup",T.ontouchend,!1,!0),T.bind(l,"mousemove",T.ontouchmove,!1,!0)),(M.cursordragontouch||!P.cantouch&&!M.emulatetouch)&&(T.rail.css({cursor:"default"}),T.railh&&T.railh.css({cursor:"default"}),T.jqbind(T.rail,"mouseenter",function(){if(!T.ispage&&!T.win.is(":visible"))return!1;T.canshowonmouseevent&&T.showCursor(),T.rail.active=!0}),T.jqbind(T.rail,"mouseleave",function(){T.rail.active=!1,T.rail.drag||T.hideCursor()}),M.sensitiverail&&(T.bind(T.rail,"click",function(e){T.doRailClick(e,!1,!1)}),T.bind(T.rail,"dblclick",function(e){T.doRailClick(e,!0,!1)}),T.bind(T.cursor,"click",function(e){T.cancelEvent(e)}),T.bind(T.cursor,"dblclick",function(e){T.cancelEvent(e)})),T.railh&&(T.jqbind(T.railh,"mouseenter",function(){if(!T.ispage&&!T.win.is(":visible"))return!1;T.canshowonmouseevent&&T.showCursor(),T.rail.active=!0}),T.jqbind(T.railh,"mouseleave",function(){T.rail.active=!1,T.rail.drag||T.hideCursor()}),M.sensitiverail&&(T.bind(T.railh,"click",function(e){T.doRailClick(e,!1,!0)}),T.bind(T.railh,"dblclick",function(e){T.doRailClick(e,!0,!0)}),T.bind(T.cursorh,"click",function(e){T.cancelEvent(e)}),T.bind(T.cursorh,"dblclick",function(e){T.cancelEvent(e)})))),M.cursordragontouch&&(this.istouchcapable||P.cantouch)&&(T.bind(T.cursor,"touchstart",T.ontouchstartCursor),T.bind(T.cursor,"touchmove",T.ontouchmoveCursor),T.bind(T.cursor,"touchend",T.ontouchendCursor),T.cursorh&&T.bind(T.cursorh,"touchstart",function(e){T.ontouchstartCursor(e,!0)}),T.cursorh&&T.bind(T.cursorh,"touchmove",T.ontouchmoveCursor),T.cursorh&&T.bind(T.cursorh,"touchend",T.ontouchendCursor)),M.emulatetouch||P.isandroid||P.isios?(T.bind(P.hasmousecapture?T.win:l,"mouseup",T.ontouchend),T.onclick&&T.bind(l,"click",T.onclick),M.cursordragontouch?(T.bind(T.cursor,"mousedown",T.onmousedown),T.bind(T.cursor,"mouseup",T.onmouseup),T.cursorh&&T.bind(T.cursorh,"mousedown",function(e){T.onmousedown(e,!0)}),T.cursorh&&T.bind(T.cursorh,"mouseup",T.onmouseup)):(T.bind(T.rail,"mousedown",function(e){e.preventDefault()}),T.railh&&T.bind(T.railh,"mousedown",function(e){e.preventDefault()}))):(T.bind(P.hasmousecapture?T.win:l,"mouseup",T.onmouseup),T.bind(l,"mousemove",T.onmousemove),T.onclick&&T.bind(l,"click",T.onclick),T.bind(T.cursor,"mousedown",T.onmousedown),T.bind(T.cursor,"mouseup",T.onmouseup),T.railh&&(T.bind(T.cursorh,"mousedown",function(e){T.onmousedown(e,!0)}),T.bind(T.cursorh,"mouseup",T.onmouseup)),!T.ispage&&M.enablescrollonselection&&(T.bind(T.win[0],"mousedown",T.onselectionstart),T.bind(l,"mouseup",T.onselectionend),T.bind(T.cursor,"mouseup",T.onselectionend),T.cursorh&&T.bind(T.cursorh,"mouseup",T.onselectionend),T.bind(l,"mousemove",T.onselectiondrag)),T.zoom&&(T.jqbind(T.zoom,"mouseenter",function(){T.canshowonmouseevent&&T.showCursor(),T.rail.active=!0}),T.jqbind(T.zoom,"mouseleave",function(){T.rail.active=!1,T.rail.drag||T.hideCursor()}))),M.enablemousewheel&&(T.isiframe||T.mousewheel(P.isie&&T.ispage?l:T.win,T.onmousewheel),T.mousewheel(T.rail,T.onmousewheel),T.railh&&T.mousewheel(T.railh,T.onmousewheelhr)),T.ispage||P.cantouch||/HTML|^BODY/.test(T.win[0].nodeName)||(T.win.attr("tabindex")||T.win.attr({tabindex:++r}),T.bind(T.win,"focus",function(e){o=T.getTarget(e).id||T.getTarget(e)||!1,T.hasfocus=!0,T.canshowonmouseevent&&T.noticeCursor()}),T.bind(T.win,"blur",function(e){o=!1,T.hasfocus=!1}),T.bind(T.win,"mouseenter",function(e){t=T.getTarget(e).id||T.getTarget(e)||!1,T.hasmousefocus=!0,T.canshowonmouseevent&&T.noticeCursor()}),T.bind(T.win,"mouseleave",function(e){t=!1,T.hasmousefocus=!1,T.rail.drag||T.hideCursor()})),T.onkeypress=function(e){if(T.railslocked&&0===T.page.maxh)return!0;e=e||a.event;var r=T.getTarget(e);if(r&&/INPUT|TEXTAREA|SELECT|OPTION/.test(r.nodeName)&&(!(r.getAttribute("type")||r.type||!1)||!/submit|button|cancel/i.tp))return!0;if(n(r).attr("contenteditable"))return!0;if(T.hasfocus||T.hasmousefocus&&!o||T.ispage&&!o&&!t){var i=e.keyCode;if(T.railslocked&&27!=i)return T.cancelEvent(e);var s=e.ctrlKey||!1,l=e.shiftKey||!1,c=!1;switch(i){case 38:case 63233:T.doScrollBy(72),c=!0;break;case 40:case 63235:T.doScrollBy(-72),c=!0;break;case 37:case 63232:T.railh&&(s?T.doScrollLeft(0):T.doScrollLeftBy(72),c=!0);break;case 39:case 63234:T.railh&&(s?T.doScrollLeft(T.page.maxw):T.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:T.doScrollBy(T.view.h),c=!0;break;case 34:case 63277:T.doScrollBy(-T.view.h),c=!0;break;case 36:case 63273:T.railh&&s?T.doScrollPos(0,0):T.doScrollTo(0),c=!0;break;case 35:case 63275:T.railh&&s?T.doScrollPos(T.page.maxw,T.page.maxh):T.doScrollTo(T.page.maxh),c=!0;break;case 32:M.spacebarenabled&&(l?T.doScrollBy(T.view.h):T.doScrollBy(-T.view.h),c=!0);break;case 27:T.zoomactive&&(T.doZoom(),c=!0)}if(c)return T.cancelEvent(e)}},M.enablekeyboard&&T.bind(l,P.isopera&&!P.isopera12?"keypress":"keydown",T.onkeypress),T.bind(l,"keydown",function(e){(e.ctrlKey||!1)&&(T.wheelprevented=!0)}),T.bind(l,"keyup",function(e){e.ctrlKey||!1||(T.wheelprevented=!1)}),T.bind(a,"blur",function(e){T.wheelprevented=!1}),T.bind(a,"resize",T.onscreenresize),T.bind(a,"orientationchange",T.onscreenresize),T.bind(a,"load",T.lazyResize),P.ischrome&&!T.ispage&&!T.haswrapper){var C=T.win.attr("style"),N=parseFloat(T.win.css("width"))+1;T.win.css("width",N),T.synched("chromefix",function(){T.win.attr("style",C)})}if(T.onAttributeChange=function(e){T.lazyResize(T.isieold?250:30)},M.enableobserver&&(T.isie11||!1===m||(T.observerbody=new m(function(e){if(e.forEach(function(e){if("attributes"==e.type)return E.hasClass("modal-open")&&E.hasClass("modal-dialog")&&!n.contains(n(".modal-dialog")[0],T.doc[0])?T.hide():T.show()}),T.me.clientWidth!=T.page.width||T.me.clientHeight!=T.page.height)return T.lazyResize(30)}),T.observerbody.observe(l.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!T.ispage&&!T.haswrapper)){var R=T.win[0];!1!==m?(T.observer=new m(function(e){e.forEach(T.onAttributeChange)}),T.observer.observe(R,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),T.observerremover=new m(function(e){e.forEach(function(e){if(e.removedNodes.length>0)for(var o in e.removedNodes)if(T&&e.removedNodes[o]===R)return T.remove()})}),T.observerremover.observe(R.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(T.bind(R,P.isie&&!P.isie9?"propertychange":"DOMAttrModified",T.onAttributeChange),P.isie9&&R.attachEvent("onpropertychange",T.onAttributeChange),T.bind(R,"DOMNodeRemoved",function(e){e.target===R&&T.remove()}))}!T.ispage&&M.boxzoom&&T.bind(a,"resize",T.resizeZoom),T.istextarea&&(T.bind(T.win,"keydown",T.lazyResize),T.bind(T.win,"mouseup",T.lazyResize)),T.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var _=function(){T.iframexd=!1;var o;try{(o="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(e){T.iframexd=!0,o=!1}if(T.iframexd)return"console"in a&&console.log("NiceScroll error: policy restriced iframe"),!0;if(T.forcescreen=!0,T.isiframe&&(T.iframe={doc:n(o),html:T.doc.contents().find("html")[0],body:T.doc.contents().find("body")[0]},T.getContentSize=function(){return{w:Math.max(T.iframe.html.scrollWidth,T.iframe.body.scrollWidth),h:Math.max(T.iframe.html.scrollHeight,T.iframe.body.scrollHeight)}},T.docscroll=n(T.iframe.body)),!P.isios&&M.iframeautoresize&&!T.isiframe){T.win.scrollTop(0),T.doc.height("");var t=Math.max(o.getElementsByTagName("html")[0].scrollHeight,o.body.scrollHeight);T.doc.height(t)}T.lazyResize(30),T.css(n(T.iframe.body),e),P.isios&&T.haswrapper&&T.css(n(o.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?T.bind(this.contentWindow,"scroll",T.onscroll):T.bind(o,"scroll",T.onscroll),M.enablemousewheel&&T.mousewheel(o,T.onmousewheel),M.enablekeyboard&&T.bind(o,P.isopera?"keypress":"keydown",T.onkeypress),P.cantouch?(T.bind(o,"touchstart",T.ontouchstart),T.bind(o,"touchmove",T.ontouchmove)):M.emulatetouch&&(T.bind(o,"mousedown",T.ontouchstart),T.bind(o,"mousemove",function(e){return T.ontouchmove(e,!0)}),M.grabcursorenabled&&P.cursorgrabvalue&&T.css(n(o.body),{cursor:P.cursorgrabvalue})),T.bind(o,"mouseup",T.ontouchend),T.zoom&&(M.dblclickzoom&&T.bind(o,"dblclick",T.doZoom),T.ongesturezoom&&T.bind(o,"gestureend",T.ongesturezoom))};this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout(function(){_.call(T.doc[0],!1)},500),T.bind(this.doc,"load",_)}},this.showCursor=function(e,o){if(T.cursortimeout&&(clearTimeout(T.cursortimeout),T.cursortimeout=0),T.rail){if(T.autohidedom&&(T.autohidedom.stop().css({opacity:M.cursoropacitymax}),T.cursoractive=!0),T.rail.drag&&1==T.rail.drag.pt||(void 0!==e&&!1!==e&&(T.scroll.y=e/T.scrollratio.y|0),void 0!==o&&(T.scroll.x=o/T.scrollratio.x|0)),T.cursor.css({height:T.cursorheight,top:T.scroll.y}),T.cursorh){var t=T.hasreversehr?T.scrollvaluemaxw-T.scroll.x:T.scroll.x;T.cursorh.css({width:T.cursorwidth,left:!T.rail.align&&T.rail.visibility?t+T.rail.width:t}),T.cursoractive=!0}T.zoom&&T.zoom.stop().css({opacity:M.cursoropacitymax})}},this.hideCursor=function(e){T.cursortimeout||T.rail&&T.autohidedom&&(T.hasmousefocus&&"leave"===M.autohidemode||(T.cursortimeout=setTimeout(function(){T.rail.active&&T.showonmouseevent||(T.autohidedom.stop().animate({opacity:M.cursoropacitymin}),T.zoom&&T.zoom.stop().animate({opacity:M.cursoropacitymin}),T.cursoractive=!1),T.cursortimeout=0},e||M.hidecursordelay)))},this.noticeCursor=function(e,o,t){T.showCursor(o,t),T.rail.active||T.hideCursor(e)},this.getContentSize=T.ispage?function(){return{w:Math.max(l.body.scrollWidth,l.documentElement.scrollWidth),h:Math.max(l.body.scrollHeight,l.documentElement.scrollHeight)}}:T.haswrapper?function(){return{w:T.doc[0].offsetWidth,h:T.doc[0].offsetHeight}}:function(){return{w:T.docscroll[0].scrollWidth,h:T.docscroll[0].scrollHeight}},this.onResize=function(e,o){if(!T||!T.win)return!1;var t=T.page.maxh,r=T.page.maxw,i=T.view.h,s=T.view.w;if(T.view={w:T.ispage?T.win.width():T.win[0].clientWidth,h:T.ispage?T.win.height():T.win[0].clientHeight},T.page=o||T.getContentSize(),T.page.maxh=Math.max(0,T.page.h-T.view.h),T.page.maxw=Math.max(0,T.page.w-T.view.w),T.page.maxh==t&&T.page.maxw==r&&T.view.w==s&&T.view.h==i){if(T.ispage)return T;var n=T.win.offset();if(T.lastposition){var l=T.lastposition;if(l.top==n.top&&l.left==n.left)return T}T.lastposition=n}return 0===T.page.maxh?(T.hideRail(),T.scrollvaluemax=0,T.scroll.y=0,T.scrollratio.y=0,T.cursorheight=0,T.setScrollTop(0),T.rail&&(T.rail.scrollable=!1)):(T.page.maxh-=M.railpadding.top+M.railpadding.bottom,T.rail.scrollable=!0),0===T.page.maxw?(T.hideRailHr(),T.scrollvaluemaxw=0,T.scroll.x=0,T.scrollratio.x=0,T.cursorwidth=0,T.setScrollLeft(0),T.railh&&(T.railh.scrollable=!1)):(T.page.maxw-=M.railpadding.left+M.railpadding.right,T.railh&&(T.railh.scrollable=M.horizrailenabled)),T.railslocked=T.locked||0===T.page.maxh&&0===T.page.maxw,T.railslocked?(T.ispage||T.updateScrollBar(T.view),!1):(T.hidden||(T.rail.visibility||T.showRail(),T.railh&&!T.railh.visibility&&T.showRailHr()),T.istextarea&&T.win.css("resize")&&"none"!=T.win.css("resize")&&(T.view.h-=20),T.cursorheight=Math.min(T.view.h,Math.round(T.view.h*(T.view.h/T.page.h))),T.cursorheight=M.cursorfixedheight?M.cursorfixedheight:Math.max(M.cursorminheight,T.cursorheight),T.cursorwidth=Math.min(T.view.w,Math.round(T.view.w*(T.view.w/T.page.w))),T.cursorwidth=M.cursorfixedheight?M.cursorfixedheight:Math.max(M.cursorminheight,T.cursorwidth),T.scrollvaluemax=T.view.h-T.cursorheight-(M.railpadding.top+M.railpadding.bottom),T.hasborderbox||(T.scrollvaluemax-=T.cursor[0].offsetHeight-T.cursor[0].clientHeight),T.railh&&(T.railh.width=T.page.maxh>0?T.view.w-T.rail.width:T.view.w,T.scrollvaluemaxw=T.railh.width-T.cursorwidth-(M.railpadding.left+M.railpadding.right)),T.ispage||T.updateScrollBar(T.view),T.scrollratio={x:T.page.maxw/T.scrollvaluemaxw,y:T.page.maxh/T.scrollvaluemax},T.getScrollTop()>T.page.maxh?T.doScrollTop(T.page.maxh):(T.scroll.y=T.getScrollTop()/T.scrollratio.y|0,T.scroll.x=T.getScrollLeft()/T.scrollratio.x|0,T.cursoractive&&T.noticeCursor()),T.scroll.y&&0===T.getScrollTop()&&T.doScrollTo(T.scroll.y*T.scrollratio.y|0),T)},this.resize=T.onResize;var O=0;this.onscreenresize=function(e){clearTimeout(O);var o=!T.ispage&&!T.haswrapper;o&&T.hideRails(),O=setTimeout(function(){T&&(o&&T.showRails(),T.resize()),O=0},120)},this.lazyResize=function(e){return clearTimeout(O),e=isNaN(e)?240:e,O=setTimeout(function(){T&&T.resize(),O=0},e),T},this.jqbind=function(e,o,t){T.events.push({e:e,n:o,f:t,q:!0}),n(e).on(o,t)},this.mousewheel=function(e,o,t){var r="jquery"in e?e[0]:e;if("onwheel"in l.createElement("div"))T._bind(r,"wheel",o,t||!1);else{var i=void 0!==l.onmousewheel?"mousewheel":"DOMMouseScroll";S(r,i,o,t||!1),"DOMMouseScroll"==i&&S(r,"MozMousePixelScroll",o,t||!1)}};var Y=!1;if(P.haseventlistener){try{var H=Object.defineProperty({},"passive",{get:function(){Y=!0}});a.addEventListener("test",null,H)}catch(e){}this.stopPropagation=function(e){return!!e&&((e=e.original?e.original:e).stopPropagation(),!1)},this.cancelEvent=function(e){return e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),e.preventManipulation&&e.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},a.constructor.prototype.addEventListener=l.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(e,o,t){this.attachEvent("on"+e,o)},a.constructor.prototype.removeEventListener=l.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(e,o,t){this.detachEvent("on"+e,o)},this.cancelEvent=function(e){return(e=e||a.event)&&(e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1),!1},this.stopPropagation=function(e){return(e=e||a.event)&&(e.cancelBubble=!0),!1};this.delegate=function(e,o,t,r,i){var s=d[o]||!1;s||(s={a:[],l:[],f:function(e){for(var o=s.l,t=!1,r=o.length-1;r>=0;r--)if(!1===(t=o[r].call(e.target,e)))return!1;return t}},T.bind(e,o,s.f,r,i),d[o]=s),T.ispage?(s.a=[T.id].concat(s.a),s.l=[t].concat(s.l)):(s.a.push(T.id),s.l.push(t))},this.undelegate=function(e,o,t,r,i){var s=d[o]||!1;if(s&&s.l)for(var n=0,l=s.l.length;n<l;n++)s.a[n]===T.id&&(s.a.splice(n),s.l.splice(n),0===s.a.length&&(T._unbind(e,o,s.l.f),d[o]=null))},this.bind=function(e,o,t,r,i){var s="jquery"in e?e[0]:e;T._bind(s,o,t,r||!1,i||!1)},this._bind=function(e,o,t,r,i){T.events.push({e:e,n:o,f:t,b:r,q:!1}),Y&&i?e.addEventListener(o,t,{passive:!1,capture:r}):e.addEventListener(o,t,r||!1)},this._unbind=function(e,o,t,r){d[o]?T.undelegate(e,o,t,r):e.removeEventListener(o,t,r)},this.unbindAll=function(){for(var e=0;e<T.events.length;e++){var o=T.events[e];o.q?o.e.unbind(o.n,o.f):T._unbind(o.e,o.n,o.f,o.b)}},this.showRails=function(){return T.showRail().showRailHr()},this.showRail=function(){return 0===T.page.maxh||!T.ispage&&"none"==T.win.css("display")||(T.rail.visibility=!0,T.rail.css("display","block")),T},this.showRailHr=function(){return T.railh&&(0===T.page.maxw||!T.ispage&&"none"==T.win.css("display")||(T.railh.visibility=!0,T.railh.css("display","block"))),T},this.hideRails=function(){return T.hideRail().hideRailHr()},this.hideRail=function(){return T.rail.visibility=!1,T.rail.css("display","none"),T},this.hideRailHr=function(){return T.railh&&(T.railh.visibility=!1,T.railh.css("display","none")),T},this.show=function(){return T.hidden=!1,T.railslocked=!1,T.showRails()},this.hide=function(){return T.hidden=!0,T.railslocked=!0,T.hideRails()},this.toggle=function(){return T.hidden?T.show():T.hide()},this.remove=function(){T.stop(),T.cursortimeout&&clearTimeout(T.cursortimeout);for(var e in T.delaylist)T.delaylist[e]&&h(T.delaylist[e].h);T.doZoomOut(),T.unbindAll(),P.isie9&&T.win[0].detachEvent("onpropertychange",T.onAttributeChange),!1!==T.observer&&T.observer.disconnect(),!1!==T.observerremover&&T.observerremover.disconnect(),!1!==T.observerbody&&T.observerbody.disconnect(),T.events=null,T.cursor&&T.cursor.remove(),T.cursorh&&T.cursorh.remove(),T.rail&&T.rail.remove(),T.railh&&T.railh.remove(),T.zoom&&T.zoom.remove();for(var o=0;o<T.saved.css.length;o++){var t=T.saved.css[o];t[0].css(t[1],void 0===t[2]?"":t[2])}T.saved=!1,T.me.data("__nicescroll","");var r=n.nicescroll;r.each(function(e){if(this&&this.id===T.id){delete r[e];for(var o=++e;o<r.length;o++,e++)r[e]=r[o];--r.length&&delete r[r.length]}});for(var i in T)T[i]=null,delete T[i];T=null},this.scrollstart=function(e){return this.onscrollstart=e,T},this.scrollend=function(e){return this.onscrollend=e,T},this.scrollcancel=function(e){return this.onscrollcancel=e,T},this.zoomin=function(e){return this.onzoomin=e,T},this.zoomout=function(e){return this.onzoomout=e,T},this.isScrollable=function(e){var o=e.target?e.target:e;if("OPTION"==o.nodeName)return!0;for(;o&&1==o.nodeType&&o!==this.me[0]&&!/^BODY|HTML/.test(o.nodeName);){var t=n(o),r=t.css("overflowY")||t.css("overflowX")||t.css("overflow")||"";if(/scroll|auto/.test(r))return o.clientHeight!=o.scrollHeight;o=!!o.parentNode&&o.parentNode}return!1},this.getViewport=function(e){for(var o=!(!e||!e.parentNode)&&e.parentNode;o&&1==o.nodeType&&!/^BODY|HTML/.test(o.nodeName);){var t=n(o);if(/fixed|absolute/.test(t.css("position")))return t;var r=t.css("overflowY")||t.css("overflowX")||t.css("overflow")||"";if(/scroll|auto/.test(r)&&o.clientHeight!=o.scrollHeight)return t;if(t.getNiceScroll().length>0)return t;o=!!o.parentNode&&o.parentNode}return!1},this.triggerScrollStart=function(e,o,t,r,i){if(T.onscrollstart){var s={type:"scrollstart",current:{x:e,y:o},request:{x:t,y:r},end:{x:T.newscrollx,y:T.newscrolly},speed:i};T.onscrollstart.call(T,s)}},this.triggerScrollEnd=function(){if(T.onscrollend){var e=T.getScrollLeft(),o=T.getScrollTop(),t={type:"scrollend",current:{x:e,y:o},end:{x:e,y:o}};T.onscrollend.call(T,t)}};var B=0,X=0,D=0,A=1,q=!1;if(this.onmousewheel=function(e){if(T.wheelprevented||T.locked)return!1;if(T.railslocked)return T.debounced("checkunlock",T.resize,250),!1;if(T.rail.drag)return T.cancelEvent(e);if("auto"===M.oneaxismousemode&&0!==e.deltaX&&(M.oneaxismousemode=!1),M.oneaxismousemode&&0===e.deltaX&&!T.rail.scrollable)return!T.railh||!T.railh.scrollable||T.onmousewheelhr(e);var o=f(),t=!1;if(M.preservenativescrolling&&T.checkarea+600<o&&(T.nativescrollingarea=T.isScrollable(e),t=!0),T.checkarea=o,T.nativescrollingarea)return!0;var r=k(e,!1,t);return r&&(T.checkarea=0),r},this.onmousewheelhr=function(e){if(!T.wheelprevented){if(T.railslocked||!T.railh.scrollable)return!0;if(T.rail.drag)return T.cancelEvent(e);var o=f(),t=!1;return M.preservenativescrolling&&T.checkarea+600<o&&(T.nativescrollingarea=T.isScrollable(e),t=!0),T.checkarea=o,!!T.nativescrollingarea||(T.railslocked?T.cancelEvent(e):k(e,!0,t))}},this.stop=function(){return T.cancelScroll(),T.scrollmon&&T.scrollmon.stop(),T.cursorfreezed=!1,T.scroll.y=Math.round(T.getScrollTop()*(1/T.scrollratio.y)),T.noticeCursor(),T},this.getTransitionSpeed=function(e){return 80+e/72*M.scrollspeed|0},M.smoothscroll)if(T.ishwscroll&&P.hastransition&&M.usetransition&&M.smoothscroll){var j="";this.resetTransition=function(){j="",T.doc.css(P.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(e,o){var t=o?e:T.getTransitionSpeed(e),r=t+"ms";return j!==r&&(j=r,T.doc.css(P.prefixstyle+"transition-duration",r)),t},this.doScrollLeft=function(e,o){var t=T.scrollrunning?T.newscrolly:T.getScrollTop();T.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=T.scrollrunning?T.newscrollx:T.getScrollLeft();T.doScrollPos(t,e,o)},this.cursorupdate={running:!1,start:function(){var e=this;if(!e.running){e.running=!0;var o=function(){e.running&&u(o),T.showCursor(T.getScrollTop(),T.getScrollLeft()),T.notifyScrollEvent(T.win[0])};u(o)}},stop:function(){this.running=!1}},this.doScrollPos=function(e,o,t){var r=T.getScrollTop(),i=T.getScrollLeft();if(((T.newscrolly-r)*(o-r)<0||(T.newscrollx-i)*(e-i)<0)&&T.cancelScroll(),M.bouncescroll?(o<0?o=o/2|0:o>T.page.maxh&&(o=T.page.maxh+(o-T.page.maxh)/2|0),e<0?e=e/2|0:e>T.page.maxw&&(e=T.page.maxw+(e-T.page.maxw)/2|0)):(o<0?o=0:o>T.page.maxh&&(o=T.page.maxh),e<0?e=0:e>T.page.maxw&&(e=T.page.maxw)),T.scrollrunning&&e==T.newscrollx&&o==T.newscrolly)return!1;T.newscrolly=o,T.newscrollx=e;var s=T.getScrollTop(),n=T.getScrollLeft(),l={};l.x=e-n,l.y=o-s;var a=0|Math.sqrt(l.x*l.x+l.y*l.y),c=T.prepareTransition(a);T.scrollrunning||(T.scrollrunning=!0,T.triggerScrollStart(n,s,e,o,c),T.cursorupdate.start()),T.scrollendtrapped=!0,P.transitionend||(T.scrollendtrapped&&clearTimeout(T.scrollendtrapped),T.scrollendtrapped=setTimeout(T.onScrollTransitionEnd,c)),T.setScrollTop(T.newscrolly),T.setScrollLeft(T.newscrollx)},this.cancelScroll=function(){if(!T.scrollendtrapped)return!0;var e=T.getScrollTop(),o=T.getScrollLeft();return T.scrollrunning=!1,P.transitionend||clearTimeout(P.transitionend),T.scrollendtrapped=!1,T.resetTransition(),T.setScrollTop(e),T.railh&&T.setScrollLeft(o),T.timerscroll&&T.timerscroll.tm&&clearInterval(T.timerscroll.tm),T.timerscroll=!1,T.cursorfreezed=!1,T.cursorupdate.stop(),T.showCursor(e,o),T},this.onScrollTransitionEnd=function(){if(T.scrollendtrapped){var e=T.getScrollTop(),o=T.getScrollLeft();if(e<0?e=0:e>T.page.maxh&&(e=T.page.maxh),o<0?o=0:o>T.page.maxw&&(o=T.page.maxw),e!=T.newscrolly||o!=T.newscrollx)return T.doScrollPos(o,e,M.snapbackspeed);T.scrollrunning&&T.triggerScrollEnd(),T.scrollrunning=!1,T.scrollendtrapped=!1,T.resetTransition(),T.timerscroll=!1,T.setScrollTop(e),T.railh&&T.setScrollLeft(o),T.cursorupdate.stop(),T.noticeCursor(!1,e,o),T.cursorfreezed=!1}}}else this.doScrollLeft=function(e,o){var t=T.scrollrunning?T.newscrolly:T.getScrollTop();T.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=T.scrollrunning?T.newscrollx:T.getScrollLeft();T.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){var r=T.getScrollTop(),i=T.getScrollLeft();((T.newscrolly-r)*(o-r)<0||(T.newscrollx-i)*(e-i)<0)&&T.cancelScroll();var s=!1;if(T.bouncescroll&&T.rail.visibility||(o<0?(o=0,s=!0):o>T.page.maxh&&(o=T.page.maxh,s=!0)),T.bouncescroll&&T.railh.visibility||(e<0?(e=0,s=!0):e>T.page.maxw&&(e=T.page.maxw,s=!0)),T.scrollrunning&&T.newscrolly===o&&T.newscrollx===e)return!0;T.newscrolly=o,T.newscrollx=e,T.dst={},T.dst.x=e-i,T.dst.y=o-r,T.dst.px=i,T.dst.py=r;var n=0|Math.sqrt(T.dst.x*T.dst.x+T.dst.y*T.dst.y),l=T.getTransitionSpeed(n);T.bzscroll={};var a=s?1:.58;T.bzscroll.x=new R(i,T.newscrollx,l,0,0,a,1),T.bzscroll.y=new R(r,T.newscrolly,l,0,0,a,1);f();var c=function(){if(T.scrollrunning){var e=T.bzscroll.y.getPos();T.setScrollLeft(T.bzscroll.x.getNow()),T.setScrollTop(T.bzscroll.y.getNow()),e<=1?T.timer=u(c):(T.scrollrunning=!1,T.timer=0,T.triggerScrollEnd())}};T.scrollrunning||(T.triggerScrollStart(i,r,e,o,l),T.scrollrunning=!0,T.timer=u(c))},this.cancelScroll=function(){return T.timer&&h(T.timer),T.timer=0,T.bzscroll=!1,T.scrollrunning=!1,T};else this.doScrollLeft=function(e,o){var t=T.getScrollTop();T.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=T.getScrollLeft();T.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){var r=e>T.page.maxw?T.page.maxw:e;r<0&&(r=0);var i=o>T.page.maxh?T.page.maxh:o;i<0&&(i=0),T.synched("scroll",function(){T.setScrollTop(i),T.setScrollLeft(r)})},this.cancelScroll=function(){};this.doScrollBy=function(e,o){z(0,e)},this.doScrollLeftBy=function(e,o){z(e,0)},this.doScrollTo=function(e,o){var t=o?Math.round(e*T.scrollratio.y):e;t<0?t=0:t>T.page.maxh&&(t=T.page.maxh),T.cursorfreezed=!1,T.doScrollTop(e)},this.checkContentSize=function(){var e=T.getContentSize();e.h==T.page.h&&e.w==T.page.w||T.resize(!1,e)},T.onscroll=function(e){T.rail.drag||T.cursorfreezed||T.synched("scroll",function(){T.scroll.y=Math.round(T.getScrollTop()/T.scrollratio.y),T.railh&&(T.scroll.x=Math.round(T.getScrollLeft()/T.scrollratio.x)),T.noticeCursor()})},T.bind(T.docscroll,"scroll",T.onscroll),this.doZoomIn=function(e){if(!T.zoomactive){T.zoomactive=!0,T.zoomrestore={style:{}};var o=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],t=T.win[0].style;for(var r in o){var i=o[r];T.zoomrestore.style[i]=void 0!==t[i]?t[i]:""}T.zoomrestore.style.width=T.win.css("width"),T.zoomrestore.style.height=T.win.css("height"),T.zoomrestore.padding={w:T.win.outerWidth()-T.win.width(),h:T.win.outerHeight()-T.win.height()},P.isios4&&(T.zoomrestore.scrollTop=c.scrollTop(),c.scrollTop(0)),T.win.css({position:P.isios4?"absolute":"fixed",top:0,left:0,zIndex:s+100,margin:0});var n=T.win.css("backgroundColor");return(""===n||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(n))&&T.win.css("backgroundColor","#fff"),T.rail.css({zIndex:s+101}),T.zoom.css({zIndex:s+102}),T.zoom.css("backgroundPosition","0 -18px"),T.resizeZoom(),T.onzoomin&&T.onzoomin.call(T),T.cancelEvent(e)}},this.doZoomOut=function(e){if(T.zoomactive)return T.zoomactive=!1,T.win.css("margin",""),T.win.css(T.zoomrestore.style),P.isios4&&c.scrollTop(T.zoomrestore.scrollTop),T.rail.css({"z-index":T.zindex}),T.zoom.css({"z-index":T.zindex}),T.zoomrestore=!1,T.zoom.css("backgroundPosition","0 0"),T.onResize(),T.onzoomout&&T.onzoomout.call(T),T.cancelEvent(e)},this.doZoom=function(e){return T.zoomactive?T.doZoomOut(e):T.doZoomIn(e)},this.resizeZoom=function(){if(T.zoomactive){var e=T.getScrollTop();T.win.css({width:c.width()-T.zoomrestore.padding.w+"px",height:c.height()-T.zoomrestore.padding.h+"px"}),T.onResize(),T.setScrollTop(Math.min(T.page.maxh,e))}},this.init(),n.nicescroll.push(this)},y=function(e){var o=this;this.nc=e,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(e,t){o.stop(),o.steptime=0,o.lasttime=f(),o.speedx=0,o.speedy=0,o.lastx=e,o.lasty=t,o.lastscrollx=-1,o.lastscrolly=-1},this.update=function(e,t){var r=f();o.steptime=r-o.lasttime,o.lasttime=r;var i=t-o.lasty,s=e-o.lastx,n=o.nc.getScrollTop()+i,l=o.nc.getScrollLeft()+s;o.snapx=l<0||l>o.nc.page.maxw,o.snapy=n<0||n>o.nc.page.maxh,o.speedx=s,o.speedy=i,o.lastx=e,o.lasty=t},this.stop=function(){o.nc.unsynched("domomentum2d"),o.timer&&clearTimeout(o.timer),o.timer=0,o.lastscrollx=-1,o.lastscrolly=-1},this.doSnapy=function(e,t){var r=!1;t<0?(t=0,r=!0):t>o.nc.page.maxh&&(t=o.nc.page.maxh,r=!0),e<0?(e=0,r=!0):e>o.nc.page.maxw&&(e=o.nc.page.maxw,r=!0),r?o.nc.doScrollPos(e,t,o.nc.opt.snapbackspeed):o.nc.triggerScrollEnd()},this.doMomentum=function(e){var t=f(),r=e?t+e:o.lasttime,i=o.nc.getScrollLeft(),s=o.nc.getScrollTop(),n=o.nc.page.maxh,l=o.nc.page.maxw;o.speedx=l>0?Math.min(60,o.speedx):0,o.speedy=n>0?Math.min(60,o.speedy):0;var a=r&&t-r<=60;(s<0||s>n||i<0||i>l)&&(a=!1);var c=!(!o.speedy||!a)&&o.speedy,d=!(!o.speedx||!a)&&o.speedx;if(c||d){var u=Math.max(16,o.steptime);if(u>50){var h=u/50;o.speedx*=h,o.speedy*=h,u=50}o.demulxy=0,o.lastscrollx=o.nc.getScrollLeft(),o.chkx=o.lastscrollx,o.lastscrolly=o.nc.getScrollTop(),o.chky=o.lastscrolly;var p=o.lastscrollx,m=o.lastscrolly,g=function(){var e=f()-t>600?.04:.02;o.speedx&&(p=Math.floor(o.lastscrollx-o.speedx*(1-o.demulxy)),o.lastscrollx=p,(p<0||p>l)&&(e=.1)),o.speedy&&(m=Math.floor(o.lastscrolly-o.speedy*(1-o.demulxy)),o.lastscrolly=m,(m<0||m>n)&&(e=.1)),o.demulxy=Math.min(1,o.demulxy+e),o.nc.synched("domomentum2d",function(){if(o.speedx){o.nc.getScrollLeft();o.chkx=p,o.nc.setScrollLeft(p)}if(o.speedy){o.nc.getScrollTop();o.chky=m,o.nc.setScrollTop(m)}o.timer||(o.nc.hideCursor(),o.doSnapy(p,m))}),o.demulxy<1?o.timer=setTimeout(g,u):(o.stop(),o.nc.hideCursor(),o.doSnapy(p,m))};g()}else o.doSnapy(o.nc.getScrollLeft(),o.nc.getScrollTop())}},x=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(e,o,t){var r=n.data(e,"__nicescroll")||!1;return r&&r.ishwscroll?r.getScrollTop():x.call(e)},set:function(e,o){var t=n.data(e,"__nicescroll")||!1;return t&&t.ishwscroll?t.setScrollTop(parseInt(o)):x.call(e,o),this}},e.fn.scrollTop=function(e){if(void 0===e){var o=!!this[0]&&(n.data(this[0],"__nicescroll")||!1);return o&&o.ishwscroll?o.getScrollTop():x.call(this)}return this.each(function(){var o=n.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollTop(parseInt(e)):x.call(n(this),e)})};var S=e.fn.scrollLeft;n.cssHooks.pageXOffset={get:function(e,o,t){var r=n.data(e,"__nicescroll")||!1;return r&&r.ishwscroll?r.getScrollLeft():S.call(e)},set:function(e,o){var t=n.data(e,"__nicescroll")||!1;return t&&t.ishwscroll?t.setScrollLeft(parseInt(o)):S.call(e,o),this}},e.fn.scrollLeft=function(e){if(void 0===e){var o=!!this[0]&&(n.data(this[0],"__nicescroll")||!1);return o&&o.ishwscroll?o.getScrollLeft():S.call(this)}return this.each(function(){var o=n.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollLeft(parseInt(e)):S.call(n(this),e)})};var z=function(e){var o=this;if(this.length=0,this.name="nicescrollarray",this.each=function(e){return n.each(o,e),o},this.push=function(e){o[o.length]=e,o.length++},this.eq=function(e){return o[e]},e)for(var t=0;t<e.length;t++){var r=n.data(e[t],"__nicescroll")||!1;r&&(this[this.length]=r,this.length++)}return this};!function(e,o,t){for(var r=0,i=o.length;r<i;r++)t(e,o[r])}(z.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(e,o){e[o]=function(){var e=arguments;return this.each(function(){this[o].apply(this,e)})}}),e.fn.getNiceScroll=function(e){return void 0===e?new z(this):this[e]&&n.data(this[e],"__nicescroll")||!1},(e.expr.pseudos||e.expr[":"]).nicescroll=function(e){return void 0!==n.data(e,"__nicescroll")},n.fn.niceScroll=function(e,o){void 0!==o||"object"!=typeof e||"jquery"in e||(o=e,e=!1);var t=new z;return this.each(function(){var r=n(this),i=n.extend({},o);if(e){var s=n(e);i.doc=s.length>1?n(e,r):s,i.win=r}!("doc"in i)||"win"in i||(i.win=r);var l=r.data("__nicescroll")||!1;l||(i.doc=i.doc||r,l=new b(i,r),r.data("__nicescroll",l)),t.push(l)}),1===t.length?t[0]:t},a.NiceScroll={getjQuery:function(){return e}},n.nicescroll||(n.nicescroll=new z,n.nicescroll.options=g)});
(function($){
$.fn.shuffleLetters=function(prop){
var options=$.extend({
"step":8,
"fps":25,
"text":"",
"callback":function(){}},prop)
return this.each(function(){
var el=$(this),
str="";
if(el.data('animated')){
return true;
}
el.data('animated',true);
if(options.text){
str=options.text.split('');
}else{
str=el.text().split('');
}
var types=[],
letters=[];
for(var i=0;i<str.length;i++){
var ch=str[i];
if(ch==" "){
types[i]="space";
continue;
}
else if(/[a-z]/.test(ch)){
types[i]="lowerLetter";
}
else if(/[A-Z]/.test(ch)){
types[i]="upperLetter";
}else{
types[i]="symbol";
}
letters.push(i);
}
el.html("");
(function shuffle(start){
var i,
len=letters.length,
strCopy=str.slice(0);
if(start>len){
el.data('animated',false);
options.callback(el);
return;
}
for(i=Math.max(start,0); i < len; i++){
if(i < start+options.step){
strCopy[letters[i]]=randomChar(types[letters[i]]);
}else{
strCopy[letters[i]]="";
}}
el.text(strCopy.join(""));
setTimeout(function(){
shuffle(start+1);
},1000/options.fps);
})(-options.step);
});
};
function randomChar(type){
var pool="";
if(type=="lowerLetter"){
pool="abcdefghijklmnopqrstuvwxyz0123456789";
}
else if(type=="upperLetter"){
pool="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
}
else if(type=="symbol"){
pool=",.?/\\(^)![]{}*&^%$#'\"";
}
var arr=pool.split('');
return arr[Math.floor(Math.random()*arr.length)];
}})(jQuery);
(function($){ var selectors=[]; var check_binded=false;var check_lock=false; var defaults={interval: 250, force_process: false};var $window=$(window); var $prior_appeared;function process(){check_lock=false;for (var index in selectors){var $appeared=$(selectors[index]).filter(function(){return $(this).is(':appeared');});$appeared.trigger('appear', [$appeared]);if($prior_appeared){var $disappeared=$prior_appeared.not($appeared);$disappeared.trigger('disappear', [$disappeared]);}$prior_appeared=$appeared;}}$.expr[':']['appeared']=function(element){var $element=$(element);if(!$element.is(':visible')){return false;} var window_left=$window.scrollLeft(); var window_top=$window.scrollTop();var offset=$element.offset();var left=offset.left; var top=offset.top;if(top + $element.height() >=window_top&&top - ($element.data('appear-top-offset')||0) <=window_top + $window.height()&&left + $element.width() >=window_left&&left - ($element.data('appear-left-offset')||0) <=window_left + $window.width()){return true;}else{return false;}};$.fn.extend({appear: function(options){var opts=$.extend({}, defaults, options||{});var selector=this.selector||this;if(!check_binded){var on_check=function(){if(check_lock){return; } check_lock=true;setTimeout(process, opts.interval);};$(window).scroll(on_check).resize(on_check);check_binded=true;} if(opts.force_process){setTimeout(process, opts.interval);}selectors.push(selector);return $(selector);}});$.extend({force_appear: function(){if(check_binded){process();return true;};return false;}});})(jQuery);
if(typeof Object.create!=="function"){
Object.create=function(obj){
function F(){}
F.prototype=obj;
return new F();
};}
(function($, window, document){
var
loadAPI=function loadAPI(callback){
var tag=document.createElement('script'),
head=document.getElementsByTagName('head')[0];
if(window.location.origin=='file://'){
tag.src='http://www.youtube.com/iframe_api';
}else{
tag.src='//www.youtube.com/iframe_api';
}
head.appendChild(tag);
head=null;
tag=null;
iframeIsReady(callback);
},
iframeIsReady=function iframeIsReady(callback){
if(typeof YT==='undefined'&&typeof window.loadingPlayer==='undefined'){
window.loadingPlayer=true;
window.dfd=$.Deferred();
window.onYouTubeIframeAPIReady=function(){
window.onYouTubeIframeAPIReady=null;
window.dfd.resolve("done");
callback();
};}else if(typeof YT==='object'){
callback();
}else{
window.dfd.done(function(name){
callback();
});
}};
YTPlayer={
player: null,
defaults: {
ratio: 16 / 9,
videoId: 'LSmgKRx5pBo',
mute: true,
repeat: true,
width: $(window).width(),
playButtonClass: 'YTPlayer-play',
pauseButtonClass: 'YTPlayer-pause',
muteButtonClass: 'YTPlayer-mute',
volumeUpClass: 'YTPlayer-volume-up',
volumeDownClass: 'YTPlayer-volume-down',
start: 0,
pauseOnScroll: false,
fitToBackground: true,
playerVars: {
iv_load_policy: 3,
modestbranding: 1,
autoplay: 1,
controls: 0,
showinfo: 0,
wmode: 'opaque',
branding: 0,
autohide: 0
},
events: null
},
init: function init(node, userOptions){
var self=this;
self.userOptions=userOptions;
self.$body=$('body'),
self.$node=$(node),
self.$window=$(window);
self.defaults.events={
'onReady': function(e){
self.onPlayerReady(e);
if(self.options.pauseOnScroll){
self.pauseOnScroll();
}
if(typeof self.options.callback=='function'){
self.options.callback.call(this);
}},
'onStateChange': function(e){
if(e.data===1){
self.$node.find('img').fadeOut(400);
self.$node.addClass('loaded');
}else if(e.data===0&&self.options.repeat){
self.player.seekTo(self.options.start);
}}
}
self.options=$.extend(true, {}, self.defaults, self.userOptions);
self.options.height=Math.ceil(self.options.width / self.options.ratio);
self.ID=(new Date()).getTime();
self.holderID='YTPlayer-ID-' + self.ID;
if(self.options.fitToBackground){
self.createBackgroundVideo();
}else{
self.createContainerVideo();
}
self.$window.on('resize.YTplayer' + self.ID, function(){
self.resize(self);
});
loadAPI(self.onYouTubeIframeAPIReady.bind(self));
self.resize(self);
return self;
},
pauseOnScroll: function pauseOnScroll(){
var self=this;
self.$window.on('scroll.YTplayer' + self.ID, function(){
var state=self.player.getPlayerState();
if(state===1){
self.player.pauseVideo();
}});
self.$window.scrollStopped(function(){
var state=self.player.getPlayerState();
if(state===2){
self.player.playVideo();
}});
},
createContainerVideo: function createContainerVideo(){
var self=this;
var $YTPlayerString=$('<div id="ytplayer-container' + self.ID + '" >\
<div id="' + self.holderID + '" class="ytplayer-player-inline"></div> \
</div> \
<div id="ytplayer-shield" class="ytplayer-shield"></div>');
self.$node.append($YTPlayerString);
self.$YTPlayerString=$YTPlayerString;
$YTPlayerString=null;
},
createBackgroundVideo: function createBackgroundVideo(){
var self=this,
$YTPlayerString=$('<div id="ytplayer-container' + self.ID + '" class="ytplayer-container background">\
<div id="' + self.holderID + '" class="ytplayer-player"></div>\
</div>\
<div id="ytplayer-shield" class="ytplayer-shield"></div>');
self.$node.append($YTPlayerString);
self.$YTPlayerString=$YTPlayerString;
$YTPlayerString=null;
},
resize: function resize(self){
var container=$(window);
if(!self.options.fitToBackground){
container=self.$node;
}
var width=container.width(),
pWidth,
height=container.height(),
pHeight,
$YTPlayerPlayer=$('#' + self.holderID);
if(width / self.options.ratio < height){
pWidth=Math.ceil(height * self.options.ratio);
$YTPlayerPlayer.width(pWidth).height(height).css({
left: (width - pWidth) / 2,
top: 0
});
}else{
pHeight=Math.ceil(width / self.options.ratio);
$YTPlayerPlayer.width(width).height(pHeight).css({
left: 0,
top: (height - pHeight) / 2
});
}
$YTPlayerPlayer=null;
container=null;
},
onYouTubeIframeAPIReady: function onYouTubeIframeAPIReady(){
var self=this;
self.player=new window.YT.Player(self.holderID, self.options);
},
onPlayerReady: function onPlayerReady(e){
if(this.options.mute){
e.target.mute();
}},
getPlayer: function getPlayer(){
return this.player;
},
destroy: function destroy(){
var self=this;
self.$node
.removeData('yt-init')
.removeData('ytPlayer')
.removeClass('loaded');
self.$YTPlayerString.remove();
$(window).off('resize.YTplayer' + self.ID);
$(window).off('scroll.YTplayer' + self.ID);
self.$body=null;
self.$node=null;
self.$YTPlayerString=null;
self.player.destroy();
self.player=null;
}};
$.fn.scrollStopped=function(callback){
var $this=$(this), self=this;
$this.scroll(function(){
if($this.data('scrollTimeout')){
clearTimeout($this.data('scrollTimeout'));
}
$this.data('scrollTimeout', setTimeout(callback,250,self));
});
};
$.fn.YTPlayer=function(options){
return this.each(function(){
var el=this;
$(el).data("yt-init", true);
var player=Object.create(YTPlayer);
player.init(el, options);
$.data(el, "ytPlayer", player);
});
};})(jQuery, window, document);
!function(a,b,c,d){"use strict";var e=function(b){this.owl=b,this._thumbcontent=[],this._identifier=0,this.owl_currentitem=this.owl.options.startPosition,this.$element=this.owl.$element,this._handlers={"prepared.owl.carousel":a.proxy(function(b){if(!b.namespace||!this.owl.options.thumbs||this.owl.options.thumbImage||this.owl.options.thumbsPrerendered||this.owl.options.thumbImage){if(b.namespace&&this.owl.options.thumbs&&this.owl.options.thumbImage){var c=a(b.content).find("img");this._thumbcontent.push(c)}}else a(b.content).find("[data-thumb]").attr("data-thumb")!==d&&this._thumbcontent.push(a(b.content).find("[data-thumb]").attr("data-thumb"))},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this.owl.options.thumbs&&(this.render(),this.listen(),this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this.owl.options.thumbs&&(this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this)},this.owl.options=a.extend({},e.Defaults,this.owl.options),this.owl.$element.on(this._handlers)};e.Defaults={thumbs:!0,thumbImage:!1,thumbContainerClass:"owl-thumbs",thumbItemClass:"owl-thumb-item",moveThumbsInside:!1},e.prototype.listen=function(){var b=this.owl.options;b.thumbsPrerendered&&(this._thumbcontent._thumbcontainer=a("."+b.thumbContainerClass)),a(this._thumbcontent._thumbcontainer).on("click",this._thumbcontent._thumbcontainer.children(),a.proxy(function(c){this._identifier=a(c.target).closest("."+b.thumbContainerClass).data("slider-id");var d=a(c.target).parent().is(this._thumbcontent._thumbcontainer)?a(c.target).index():a(c.target).closest("."+b.thumbItemClass).index();b.thumbsPrerendered?a("[data-slider-id="+this._identifier+"]").trigger("to.owl.carousel",[d,b.dotsSpeed,!0]):this.owl.to(d,b.dotsSpeed),c.preventDefault()},this))},e.prototype.render=function(){var b=this.owl.options;b.thumbsPrerendered?(this._thumbcontent._thumbcontainer=a("."+b.thumbContainerClass),b.moveThumbsInside&&this._thumbcontent._thumbcontainer.appendTo(this.$element)):this._thumbcontent._thumbcontainer=a("<div>").addClass(b.thumbContainerClass).appendTo(this.$element);var c;if(b.thumbImage)for(c=0;c<this._thumbcontent.length;++c)this._thumbcontent._thumbcontainer.append("<button class="+b.thumbItemClass+'><img src="'+this._thumbcontent[c].attr("src")+'" alt="'+this._thumbcontent[c].attr("alt")+'" /></button>');else for(c=0;c<this._thumbcontent.length;++c)this._thumbcontent._thumbcontainer.append("<button class="+b.thumbItemClass+">"+this._thumbcontent[c]+"</button>")},e.prototype.setActive=function(){this.owl_currentitem=this.owl._current-this.owl._clones.length/2,this.owl_currentitem===this.owl._items.length&&(this.owl_currentitem=0);var b=this.owl.options,c=b.thumbsPrerendered?a("."+b.thumbContainerClass+'[data-slider-id="'+this._identifier+'"]'):this._thumbcontent._thumbcontainer;c.children().filter(".active").removeClass("active"),c.children().eq(this.owl_currentitem).addClass("active")},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this.owl.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Thumbs=e}(window.Zepto||window.jQuery,window,document);
(function ($, window){
var $window=$(window);
function Constellation (canvas, options){
var $canvas=$(canvas),
context=canvas.getContext('2d'),
defaults={
star: {
color: 'rgba(255, 255, 255, .5)',
width: 1,
randomWidth: true
},
line: {
color: 'rgba(255, 255, 255, .5)',
width: 0.2
},
position: {
x: 0,
y: 0
},
width: window.innerWidth,
height: window.innerHeight,
velocity: 0.1,
length: 100,
distance: 120,
radius: 150,
stars: []
},
config=$.extend(true, {}, defaults, options);
function Star (){
this.x=Math.random() * canvas.width;
this.y=Math.random() * canvas.height;
this.vx=(config.velocity - (Math.random() * 0.5));
this.vy=(config.velocity - (Math.random() * 0.5));
this.radius=config.star.randomWidth ? (Math.random() * config.star.width):config.star.width;
}
Star.prototype={
create: function(){
context.beginPath();
context.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
context.fill();
},
animate: function(){
var i;
for (i=0; i < config.length; i++){
var star=config.stars[i];
if(star.y < 0||star.y > canvas.height){
star.vx=star.vx;
star.vy=- star.vy;
}else if(star.x < 0||star.x > canvas.width){
star.vx=- star.vx;
star.vy=star.vy;
}
star.x +=star.vx;
star.y +=star.vy;
}},
line: function(){
var length=config.length,
iStar,
jStar,
i,
j;
for (i=0; i < length; i++){
for (j=0; j < length; j++){
iStar=config.stars[i];
jStar=config.stars[j];
if((iStar.x - jStar.x) < config.distance &&
(iStar.y - jStar.y) < config.distance &&
(iStar.x - jStar.x) > - config.distance &&
(iStar.y - jStar.y) > - config.distance
){
if((iStar.x - config.position.x) < config.radius &&
(iStar.y - config.position.y) < config.radius &&
(iStar.x - config.position.x) > - config.radius &&
(iStar.y - config.position.y) > - config.radius
){
context.beginPath();
context.moveTo(iStar.x, iStar.y);
context.lineTo(jStar.x, jStar.y);
context.stroke();
context.closePath();
}}
}}
}};
this.createStars=function (){
var length=config.length,
star,
i;
context.clearRect(0, 0, canvas.width, canvas.height);
for (i=0; i < length; i++){
config.stars.push(new Star());
star=config.stars[i];
star.create();
}
star.line();
star.animate();
};
this.setCanvas=function (){
canvas.width=config.width;
canvas.height=config.height;
};
this.setContext=function (){
context.fillStyle=config.star.color;
context.strokeStyle=config.line.color;
context.lineWidth=config.line.width;
};
this.setInitialPosition=function (){
if(!options||!options.hasOwnProperty('position')){
config.position={
x: canvas.width * 0.5,
y: canvas.height * 0.5
};}};
this.loop=function (callback){
callback();
this.rAF=window.requestAnimationFrame(function (){
this.loop(callback);
}.bind(this));
};
this.handlers={
window: {
mousemove: function(e){
config.position.x=e.pageX - $canvas.offset().left;
config.position.y=e.pageY - $canvas.offset().top;
},
resize: function (){
window.cancelAnimationFrame(this.rAF);
}}
};
this.bind=function (){
$window
.on('mousemove', this.handlers.window.mousemove)
.on('resize', this.handlers.window.resize.bind(this));
};
this.unbind=function (){
$window
.off('mousemove', this.handlers.window.mousemove)
.off('resize', this.handlers.window.resize);
}
this.init=function (){
this.setCanvas();
this.setContext();
this.setInitialPosition();
this.loop(this.createStars);
this.bind();
};}
function instantiate(element, options){
var c=new Constellation(element, options);
c.init();
}
$.fn.constellation=function (options){
return this.each(function (){
$window.on('resize', ()=> {
instantiate(this, options);
});
instantiate(this, options);
});
};})(jQuery, window);
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));"string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}});
"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){"use strict";var e={init:function(c,d){this.options=a.extend({},a.fn.singlePageNav.defaults,c),this.container=d,this.$container=a(d),this.$links=this.$container.find("a"),""!==this.options.filter&&(this.$links=this.$links.filter(this.options.filter)),this.$window=a(b),this.$htmlbody=a("html, body"),this.$links.on("click.singlePageNav",a.proxy(this.handleClick,this)),this.didScroll=!1,this.checkPosition(),this.setTimer()},handleClick:function(b){var c=this,d=b.currentTarget,e=a(d.hash);b.preventDefault(),e.length&&(c.clearTimer(),"function"==typeof c.options.beforeStart&&c.options.beforeStart(),c.setActiveLink(d.hash),c.scrollTo(e,function(){c.options.updateHash&&history.pushState&&history.pushState(null,null,d.hash),c.setTimer(),"function"==typeof c.options.onComplete&&c.options.onComplete()}))},scrollTo:function(a,b){var c=this,d=c.getCoords(a).top,e=!1;c.$htmlbody.stop().animate({scrollTop:d},{duration:c.options.speed,easing:c.options.easing,complete:function(){"function"!=typeof b||e||b(),e=!0}})},setTimer:function(){var a=this;a.$window.on("scroll.singlePageNav",function(){a.didScroll=!0}),a.timer=setInterval(function(){a.didScroll&&(a.didScroll=!1,a.checkPosition())},250)},clearTimer:function(){clearInterval(this.timer),this.$window.off("scroll.singlePageNav"),this.didScroll=!1},checkPosition:function(){var a=this.$window.scrollTop(),b=this.getCurrentSection(a);null!==b&&this.setActiveLink(b)},getCoords:function(a){return{top:Math.round(a.offset().top)-this.options.offset}},setActiveLink:function(a){var b=this.$container.find("a[href$='"+a+"']");b.hasClass(this.options.currentClass)||(this.$links.removeClass(this.options.currentClass),b.addClass(this.options.currentClass))},getCurrentSection:function(d){var e,f,g,h;for(e=0;e<this.$links.length;e++)f=this.$links[e].hash,a(f).length&&(g=this.getCoords(a(f)),d>=g.top-this.options.threshold&&(h=f));var i=a(c).height()-a(b).height();if(d==i){var j=this.$links.length;j>0&&(h=this.$links[j-1].hash)}return h||(0===this.$links.length?null:this.$links[0].hash)}};a.fn.singlePageNav=function(a){return this.each(function(){var b=Object.create(e);b.init(a,this)})},a.fn.singlePageNav.defaults={offset:0,threshold:120,speed:400,currentClass:"current",easing:"swing",updateHash:!1,filter:"",onComplete:!1,beforeStart:!1}}(jQuery,window,document);
!function(a,b,c){"use strict";function d(c){if(e=b.documentElement,f=b.body,T(),ha=this,c=c||{},ma=c.constants||{},c.easing)for(var d in c.easing)W[d]=c.easing[d];ta=c.edgeStrategy||"set",ka={beforerender:c.beforerender,render:c.render,keyframe:c.keyframe},la=c.forceHeight!==!1,la&&(Ka=c.scale||1),na=c.mobileDeceleration||y,pa=c.smoothScrolling!==!1,qa=c.smoothScrollingDuration||A,ra={targetTop:ha.getScrollTop()},Sa=(c.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||a.opera)})(),Sa?(ja=b.getElementById(c.skrollrBody||z),ja&&ga(),X(),Ea(e,[s,v],[t])):Ea(e,[s,u],[t]),ha.refresh(),wa(a,"resize orientationchange",function(){var a=e.clientWidth,b=e.clientHeight;(b!==Pa||a!==Oa)&&(Pa=b,Oa=a,Qa=!0)});var g=U();return function h(){$(),va=g(h)}(),ha}var e,f,g={get:function(){return ha},init:function(a){return ha||new d(a)},VERSION:"0.6.30"},h=Object.prototype.hasOwnProperty,i=a.Math,j=a.getComputedStyle,k="touchstart",l="touchmove",m="touchcancel",n="touchend",o="skrollable",p=o+"-before",q=o+"-between",r=o+"-after",s="skrollr",t="no-"+s,u=s+"-desktop",v=s+"-mobile",w="linear",x=1e3,y=.004,z="skrollr-body",A=200,B="start",C="end",D="center",E="bottom",F="___skrollable_id",G=/^(?:input|textarea|button|select)$/i,H=/^\s+|\s+$/g,I=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,J=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,K=/^(@?[a-z\-]+)\[(\w+)\]$/,L=/-([a-z0-9_])/g,M=function(a,b){return b.toUpperCase()},N=/[\-+]?[\d]*\.?[\d]+/g,O=/\{\?\}/g,P=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,Q=/[a-z\-]+-gradient/g,R="",S="",T=function(){var a=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(j){var b=j(f,null);for(var c in b)if(R=c.match(a)||+c==c&&b[c].match(a))break;if(!R)return void(R=S="");R=R[0],"-"===R.slice(0,1)?(S=R,R={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[R]):S="-"+R.toLowerCase()+"-"}},U=function(){var b=a.requestAnimationFrame||a[R.toLowerCase()+"RequestAnimationFrame"],c=Ha();return(Sa||!b)&&(b=function(b){var d=Ha()-c,e=i.max(0,1e3/60-d);return a.setTimeout(function(){c=Ha(),b()},e)}),b},V=function(){var b=a.cancelAnimationFrame||a[R.toLowerCase()+"CancelAnimationFrame"];return(Sa||!b)&&(b=function(b){return a.clearTimeout(b)}),b},W={begin:function(){return 0},end:function(){return 1},linear:function(a){return a},quadratic:function(a){return a*a},cubic:function(a){return a*a*a},swing:function(a){return-i.cos(a*i.PI)/2+.5},sqrt:function(a){return i.sqrt(a)},outCubic:function(a){return i.pow(a-1,3)+1},bounce:function(a){var b;if(.5083>=a)b=3;else if(.8489>=a)b=9;else if(.96208>=a)b=27;else{if(!(.99981>=a))return 1;b=91}return 1-i.abs(3*i.cos(a*b*1.028)/b)}};d.prototype.refresh=function(a){var d,e,f=!1;for(a===c?(f=!0,ia=[],Ra=0,a=b.getElementsByTagName("*")):a.length===c&&(a=[a]),d=0,e=a.length;e>d;d++){var g=a[d],h=g,i=[],j=pa,k=ta,l=!1;if(f&&F in g&&delete g[F],g.attributes){for(var m=0,n=g.attributes.length;n>m;m++){var p=g.attributes[m];if("data-anchor-target"!==p.name)if("data-smooth-scrolling"!==p.name)if("data-edge-strategy"!==p.name)if("data-emit-events"!==p.name){var q=p.name.match(I);if(null!==q){var r={props:p.value,element:g,eventType:p.name.replace(L,M)};i.push(r);var s=q[1];s&&(r.constant=s.substr(1));var t=q[2];/p$/.test(t)?(r.isPercentage=!0,r.offset=(0|t.slice(0,-1))/100):r.offset=0|t;var u=q[3],v=q[4]||u;u&&u!==B&&u!==C?(r.mode="relative",r.anchors=[u,v]):(r.mode="absolute",u===C?r.isEnd=!0:r.isPercentage||(r.offset=r.offset*Ka))}}else l=!0;else k=p.value;else j="off"!==p.value;else if(h=b.querySelector(p.value),null===h)throw'Unable to find anchor target "'+p.value+'"'}if(i.length){var w,x,y;!f&&F in g?(y=g[F],w=ia[y].styleAttr,x=ia[y].classAttr):(y=g[F]=Ra++,w=g.style.cssText,x=Da(g)),ia[y]={element:g,styleAttr:w,classAttr:x,anchorTarget:h,keyFrames:i,smoothScrolling:j,edgeStrategy:k,emitEvents:l,lastFrameIndex:-1},Ea(g,[o],[])}}}for(Aa(),d=0,e=a.length;e>d;d++){var z=ia[a[d][F]];z!==c&&(_(z),ba(z))}return ha},d.prototype.relativeToAbsolute=function(a,b,c){var d=e.clientHeight,f=a.getBoundingClientRect(),g=f.top,h=f.bottom-f.top;return b===E?g-=d:b===D&&(g-=d/2),c===E?g+=h:c===D&&(g+=h/2),g+=ha.getScrollTop(),g+.5|0},d.prototype.animateTo=function(a,b){b=b||{};var d=Ha(),e=ha.getScrollTop(),f=b.duration===c?x:b.duration;return oa={startTop:e,topDiff:a-e,targetTop:a,duration:f,startTime:d,endTime:d+f,easing:W[b.easing||w],done:b.done},oa.topDiff||(oa.done&&oa.done.call(ha,!1),oa=c),ha},d.prototype.stopAnimateTo=function(){oa&&oa.done&&oa.done.call(ha,!0),oa=c},d.prototype.isAnimatingTo=function(){return!!oa},d.prototype.isMobile=function(){return Sa},d.prototype.setScrollTop=function(b,c){return sa=c===!0,Sa?Ta=i.min(i.max(b,0),Ja):a.scrollTo(0,b),ha},d.prototype.getScrollTop=function(){return Sa?Ta:a.pageYOffset||e.scrollTop||f.scrollTop||0},d.prototype.getMaxScrollTop=function(){return Ja},d.prototype.on=function(a,b){return ka[a]=b,ha},d.prototype.off=function(a){return delete ka[a],ha},d.prototype.destroy=function(){var a=V();a(va),ya(),Ea(e,[t],[s,u,v]);for(var b=0,d=ia.length;d>b;b++)fa(ia[b].element);e.style.overflow=f.style.overflow="",e.style.height=f.style.height="",ja&&g.setStyle(ja,"transform","none"),ha=c,ja=c,ka=c,la=c,Ja=0,Ka=1,ma=c,na=c,La="down",Ma=-1,Oa=0,Pa=0,Qa=!1,oa=c,pa=c,qa=c,ra=c,sa=c,Ra=0,ta=c,Sa=!1,Ta=0,ua=c};var X=function(){var d,g,h,j,o,p,q,r,s,t,u,v;wa(e,[k,l,m,n].join(" "),function(a){var e=a.changedTouches[0];for(j=a.target;3===j.nodeType;)j=j.parentNode;switch(o=e.clientY,p=e.clientX,t=a.timeStamp,G.test(j.tagName)||a.preventDefault(),a.type){case k:d&&d.blur(),ha.stopAnimateTo(),d=j,g=q=o,h=p,s=t;break;case l:G.test(j.tagName)&&b.activeElement!==j&&a.preventDefault(),r=o-q,v=t-u,ha.setScrollTop(Ta-r,!0),q=o,u=t;break;default:case m:case n:var f=g-o,w=h-p,x=w*w+f*f;if(49>x){if(!G.test(d.tagName)){d.focus();var y=b.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,a.view,1,e.screenX,e.screenY,e.clientX,e.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null),d.dispatchEvent(y)}return}d=c;var z=r/v;z=i.max(i.min(z,3),-3);var A=i.abs(z/na),B=z*A+.5*na*A*A,C=ha.getScrollTop()-B,D=0;C>Ja?(D=(Ja-C)/B,C=Ja):0>C&&(D=-C/B,C=0),A*=1-D,ha.animateTo(C+.5|0,{easing:"outCubic",duration:A})}}),a.scrollTo(0,0),e.style.overflow=f.style.overflow="hidden"},Y=function(){var a,b,c,d,f,g,h,j,k,l,m,n=e.clientHeight,o=Ba();for(j=0,k=ia.length;k>j;j++)for(a=ia[j],b=a.element,c=a.anchorTarget,d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],l=h.offset,m=o[h.constant]||0,h.frame=l,h.isPercentage&&(l*=n,h.frame=l),"relative"===h.mode&&(fa(b),h.frame=ha.relativeToAbsolute(c,h.anchors[0],h.anchors[1])-l,fa(b,!0)),h.frame+=m,la&&!h.isEnd&&h.frame>Ja&&(Ja=h.frame);for(Ja=i.max(Ja,Ca()),j=0,k=ia.length;k>j;j++){for(a=ia[j],d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],m=o[h.constant]||0,h.isEnd&&(h.frame=Ja-h.offset+m);a.keyFrames.sort(Ia)}},Z=function(a,b){for(var c=0,d=ia.length;d>c;c++){var e,f,i=ia[c],j=i.element,k=i.smoothScrolling?a:b,l=i.keyFrames,m=l.length,n=l[0],s=l[l.length-1],t=k<n.frame,u=k>s.frame,v=t?n:s,w=i.emitEvents,x=i.lastFrameIndex;if(t||u){if(t&&-1===i.edge||u&&1===i.edge)continue;switch(t?(Ea(j,[p],[r,q]),w&&x>-1&&(za(j,n.eventType,La),i.lastFrameIndex=-1)):(Ea(j,[r],[p,q]),w&&m>x&&(za(j,s.eventType,La),i.lastFrameIndex=m)),i.edge=t?-1:1,i.edgeStrategy){case"reset":fa(j);continue;case"ease":k=v.frame;break;default:case"set":var y=v.props;for(e in y)h.call(y,e)&&(f=ea(y[e].value),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f));continue}}else 0!==i.edge&&(Ea(j,[o,q],[p,r]),i.edge=0);for(var z=0;m-1>z;z++)if(k>=l[z].frame&&k<=l[z+1].frame){var A=l[z],B=l[z+1];for(e in A.props)if(h.call(A.props,e)){var C=(k-A.frame)/(B.frame-A.frame);C=A.props[e].easing(C),f=da(A.props[e].value,B.props[e].value,C),f=ea(f),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f)}w&&x!==z&&("down"===La?za(j,A.eventType,La):za(j,B.eventType,La),i.lastFrameIndex=z);break}}},$=function(){Qa&&(Qa=!1,Aa());var a,b,d=ha.getScrollTop(),e=Ha();if(oa)e>=oa.endTime?(d=oa.targetTop,a=oa.done,oa=c):(b=oa.easing((e-oa.startTime)/oa.duration),d=oa.startTop+b*oa.topDiff|0),ha.setScrollTop(d,!0);else if(!sa){var f=ra.targetTop-d;f&&(ra={startTop:Ma,topDiff:d-Ma,targetTop:d,startTime:Na,endTime:Na+qa}),e<=ra.endTime&&(b=W.sqrt((e-ra.startTime)/qa),d=ra.startTop+b*ra.topDiff|0)}if(sa||Ma!==d){La=d>Ma?"down":Ma>d?"up":La,sa=!1;var h={curTop:d,lastTop:Ma,maxTop:Ja,direction:La},i=ka.beforerender&&ka.beforerender.call(ha,h);i!==!1&&(Z(d,ha.getScrollTop()),Sa&&ja&&g.setStyle(ja,"transform","translate(0, "+-Ta+"px) "+ua),Ma=d,ka.render&&ka.render.call(ha,h)),a&&a.call(ha,!1)}Na=e},_=function(a){for(var b=0,c=a.keyFrames.length;c>b;b++){for(var d,e,f,g,h=a.keyFrames[b],i={};null!==(g=J.exec(h.props));)f=g[1],e=g[2],d=f.match(K),null!==d?(f=d[1],d=d[2]):d=w,e=e.indexOf("!")?aa(e):[e.slice(1)],i[f]={value:e,easing:W[d]};h.props=i}},aa=function(a){var b=[];return P.lastIndex=0,a=a.replace(P,function(a){return a.replace(N,function(a){return a/255*100+"%"})}),S&&(Q.lastIndex=0,a=a.replace(Q,function(a){return S+a})),a=a.replace(N,function(a){return b.push(+a),"{?}"}),b.unshift(a),b},ba=function(a){var b,c,d={};for(b=0,c=a.keyFrames.length;c>b;b++)ca(a.keyFrames[b],d);for(d={},b=a.keyFrames.length-1;b>=0;b--)ca(a.keyFrames[b],d)},ca=function(a,b){var c;for(c in b)h.call(a.props,c)||(a.props[c]=b[c]);for(c in a.props)b[c]=a.props[c]},da=function(a,b,c){var d,e=a.length;if(e!==b.length)throw"Can't interpolate between \""+a[0]+'" and "'+b[0]+'"';var f=[a[0]];for(d=1;e>d;d++)f[d]=a[d]+(b[d]-a[d])*c;return f},ea=function(a){var b=1;return O.lastIndex=0,a[0].replace(O,function(){return a[b++]})},fa=function(a,b){a=[].concat(a);for(var c,d,e=0,f=a.length;f>e;e++)d=a[e],c=ia[d[F]],c&&(b?(d.style.cssText=c.dirtyStyleAttr,Ea(d,c.dirtyClassAttr)):(c.dirtyStyleAttr=d.style.cssText,c.dirtyClassAttr=Da(d),d.style.cssText=c.styleAttr,Ea(d,c.classAttr)))},ga=function(){ua="translateZ(0)",g.setStyle(ja,"transform",ua);var a=j(ja),b=a.getPropertyValue("transform"),c=a.getPropertyValue(S+"transform"),d=b&&"none"!==b||c&&"none"!==c;d||(ua="")};g.setStyle=function(a,b,c){var d=a.style;if(b=b.replace(L,M).replace("-",""),"zIndex"===b)isNaN(c)?d[b]=c:d[b]=""+(0|c);else if("float"===b)d.styleFloat=d.cssFloat=c;else try{R&&(d[R+b.slice(0,1).toUpperCase()+b.slice(1)]=c),d[b]=c}catch(e){}};var ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa=g.addEvent=function(b,c,d){var e=function(b){return b=b||a.event,b.target||(b.target=b.srcElement),b.preventDefault||(b.preventDefault=function(){b.returnValue=!1,b.defaultPrevented=!0}),d.call(this,b)};c=c.split(" ");for(var f,g=0,h=c.length;h>g;g++)f=c[g],b.addEventListener?b.addEventListener(f,d,!1):b.attachEvent("on"+f,e),Ua.push({element:b,name:f,listener:d})},xa=g.removeEvent=function(a,b,c){b=b.split(" ");for(var d=0,e=b.length;e>d;d++)a.removeEventListener?a.removeEventListener(b[d],c,!1):a.detachEvent("on"+b[d],c)},ya=function(){for(var a,b=0,c=Ua.length;c>b;b++)a=Ua[b],xa(a.element,a.name,a.listener);Ua=[]},za=function(a,b,c){ka.keyframe&&ka.keyframe.call(ha,a,b,c)},Aa=function(){var a=ha.getScrollTop();Ja=0,la&&!Sa&&(f.style.height=""),Y(),la&&!Sa&&(f.style.height=Ja+e.clientHeight+"px"),Sa?ha.setScrollTop(i.min(ha.getScrollTop(),Ja)):ha.setScrollTop(a,!0),sa=!0},Ba=function(){var a,b,c=e.clientHeight,d={};for(a in ma)b=ma[a],"function"==typeof b?b=b.call(ha):/p$/.test(b)&&(b=b.slice(0,-1)/100*c),d[a]=b;return d},Ca=function(){var a,b=0;return ja&&(b=i.max(ja.offsetHeight,ja.scrollHeight)),a=i.max(b,f.scrollHeight,f.offsetHeight,e.scrollHeight,e.offsetHeight,e.clientHeight),a-e.clientHeight},Da=function(b){var c="className";return a.SVGElement&&b instanceof a.SVGElement&&(b=b[c],c="baseVal"),b[c]},Ea=function(b,d,e){var f="className";if(a.SVGElement&&b instanceof a.SVGElement&&(b=b[f],f="baseVal"),e===c)return void(b[f]=d);for(var g=b[f],h=0,i=e.length;i>h;h++)g=Ga(g).replace(Ga(e[h])," ");g=Fa(g);for(var j=0,k=d.length;k>j;j++)-1===Ga(g).indexOf(Ga(d[j]))&&(g+=" "+d[j]);b[f]=Fa(g)},Fa=function(a){return a.replace(H,"")},Ga=function(a){return" "+a+" "},Ha=Date.now||function(){return+new Date},Ia=function(a,b){return a.frame-b.frame},Ja=0,Ka=1,La="down",Ma=-1,Na=Ha(),Oa=0,Pa=0,Qa=!1,Ra=0,Sa=!1,Ta=0,Ua=[];"function"==typeof define&&define.amd?define([],function(){return g}):"undefined"!=typeof module&&module.exports?module.exports=g:a.skrollr=g}(window,document);
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
jQuery(window).load(function(){
"use strict";
if(jQuery("#monolit-loader").length){
jQuery(".loader").fadeOut(500, function(){
jQuery("#main-theme").animate({
opacity: "1"
},function(){contanimshow();});
});
}else{
contanimshow();
}});
function initMonolit(){
"use strict";
var ss=jQuery(".single-slider");
var ss_ops=ss.data('options') ? ss.data('options'):{smartSpeed:1300,autoplay:false,autoplaySpeed: 3600,items:1,autoplayTimeout:4000,responsive:false,autoHeight:true,loop:true,dots:true,center:false,autoWidth:false};
if(ss_ops.responsive){
var respArr=ss_ops.responsive.split(',');
ss_ops.responsive={};
for (var i=0; i < respArr.length ; i++){
var tempVal=respArr[i].split(':');
ss_ops.responsive[tempVal[0]]={ items: tempVal[1] };}}else{
ss_ops.responsive=false;
}
ss.imagesLoaded(function(){
ss.owlCarousel({
margin: 0,
items: ss_ops.items,
smartSpeed: ss_ops.smartSpeed,
loop: ss_ops.loop,
nav: false,
dots:ss_ops.dots,
autoHeight: ss_ops.autoHeight,
autoplay: ss_ops.autoplay,
autoplayTimeout: ss_ops.autoplayTimeout,
autoplaySpeed: ss_ops.autoplaySpeed,
responsive:ss_ops.responsive,
center:ss_ops.center,
autoWidth:ss_ops.autoWidth,
});
});
jQuery(document).on('keydown.carousel-ss', function(e){
if(e.keyCode==37){
console.log('left arrow');
ss.trigger("prev.owl");
};
if(e.keyCode==39){
ss.trigger("next.owl");
};});
jQuery(".single-slider-holder a.next-slide").on("click", function(){
jQuery(this).closest(".single-slider-holder").find(ss).trigger("next.owl.carousel");
return false;
});
jQuery(".single-slider-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".single-slider-holder").find(ss).trigger("prev.owl.carousel");
return false;
});
var sync1=jQuery(".hero-wrap-image-slider"), sync2=jQuery(".hero-wrap-text-slider"), flag=false, duration=parseInt(sync1.data('dur')), rtlt=eval(jQuery(this).data("rtlt"));
var sync2_ops=sync2.data('options') ? sync2.data('options'):{smartSpeed:1200,autoplay:false,autoplaySpeed: 3600,items:1,autoplayTimeout:4000,responsive:false,loop:false,dots:true,center:false};
if(sync2_ops.responsive){
var respArr=sync2_ops.responsive.split(',');
sync2_ops.responsive={};
for (var i=0; i < respArr.length ; i++){
var tempVal=respArr[i].split(':');
sync2_ops.responsive[tempVal[0]]={ items: tempVal[1] };}}else{
sync2_ops.responsive=false;
}
sync1.owlCarousel({
loop: false,
margin: 0,
nav: false,
items: sync2_ops.items,
dots: false,
smartSpeed: sync2_ops.smartSpeed,
autoHeight: false,
autoplay: false,
autoplayTimeout: sync2_ops.autoplayTimeout,
autoplaySpeed: sync2_ops.autoplaySpeed,
responsive:sync2_ops.responsive,
center:sync2_ops.center,
autoWidth:false,
}).on("changed.owl.carousel", function(a){
if(!flag){
flag=true;
sync2.trigger("to.owl.carousel", [ a.item.index, duration, true ]);
flag=false;
}});
sync2.owlCarousel({
loop: false,
margin: 0,
nav: false,
items: sync2_ops.items,
dots: sync2_ops.dots,
smartSpeed: sync2_ops.smartSpeed,
autoHeight: false,
autoplay: sync2_ops.autoplay,
autoplayTimeout: sync2_ops.autoplayTimeout,
autoplaySpeed: sync2_ops.autoplaySpeed,
responsive:sync2_ops.responsive,
center:sync2_ops.center,
autoWidth:false,
}).on("changed.owl.carousel", function(a){
if(!flag){
flag=true;
sync1.trigger("to.owl.carousel", [ a.item.index, duration, true ]);
flag=false;
}});
jQuery(".hero-wrap-text-slider-holder a.next-slide").on("click", function(){
jQuery(this).closest(".hero-wrap-text-slider-holder").find(sync2).trigger("next.owl.carousel");
return false;
});
jQuery(".hero-wrap-text-slider-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".hero-wrap-text-slider-holder").find(sync2).trigger("prev.owl.carousel");
return false;
});
jQuery('.home-slider-loop').each(function(){
var slloop=jQuery(this);
var slloop_ops=slloop.data('options') ? slloop.data('options'):{smartSpeed:1200,autoplay:false,autoplaySpeed: 3600,items:1,autoplayTimeout:4000,responsive:false,loop:true,dots:true,center:false};
if(slloop_ops.responsive){
var respArr=slloop_ops.responsive.split(',');
slloop_ops.responsive={};
for (var i=0; i < respArr.length ; i++){
var tempVal=respArr[i].split(':');
slloop_ops.responsive[tempVal[0]]={ items: tempVal[1] };}}else{
slloop_ops.responsive=false;
}
slloop.owlCarousel({
loop: slloop_ops.loop,
margin: 0,
nav: false,
items: slloop_ops.items,
dots: slloop_ops.dots,
smartSpeed: slloop_ops.smartSpeed,
autoHeight: false,
autoplay: slloop_ops.autoplay,
autoplayTimeout: slloop_ops.autoplayTimeout,
autoplaySpeed: slloop_ops.autoplaySpeed,
responsive:slloop_ops.responsive,
center:slloop_ops.center,
autoWidth:false,
});
jQuery(".hero-wrap-image-slider-holder a.next-slide").on("click", function(){
jQuery(this).closest(".hero-wrap-image-slider-holder").find(slloop).trigger("next.owl.carousel");
return false;
});
jQuery(".hero-wrap-image-slider-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".hero-wrap-image-slider-holder").find(slloop).trigger("prev.owl.carousel");
return false;
});
});
var gR=jQuery(".gallery_horizontal"), w=jQuery(window);//, cf=jQuery(".gallery_horizontal").data("cen");
var gR_ops=gR.data('options') ? gR.data('options'):{smartSpeed:1300,autoplay:false,items:1,loop:true,center:true,autoWidth:true,thumbs:true};
function initGalleryhorizontal(){
var a=jQuery(window).height(), b=jQuery("header.monolit-header").outerHeight(), c=jQuery(".gallery_horizontal");
var d=0;
if(!jQuery(".control-panel").hasClass('hide-cpanel')) d=jQuery(".control-panel").outerHeight();
c.find("img").css({
height: a - b - d - 20
});
if(w.width() > 1036){
gR.owlCarousel({
autoWidth: gR_ops.autoWidth,
margin: 10,
items: gR_ops.items,
smartSpeed: gR_ops.smartSpeed,
loop: gR_ops.loop,
autoplay: gR_ops.autoplay,
center: gR_ops.center,
nav: false,
thumbs: gR_ops.thumbs,
thumbImage: true,
thumbContainerClass: "owl-thumbs",
thumbItemClass: "owl-thumb-item",
onInitialized: function(){
var c=jQuery(".owl-carousel").find(".active").find(".horizontal_item");
var e=c.data("phdesc");
var f=c.data("phname");
if(e) jQuery(".caption").html("<h4>" + f + "</h4><p>" + e + "</p>");
}}).on("changed.owl.carousel", function(a){
gR.find(".owl-stage").css({
height: a - b - d,
overflow: "hidden"
});
});
var full_in_mousewheel_pro=false;
gR.on("translated.owl.carousel", function(a){
full_in_mousewheel_pro=false;
});
gR.on("mousewheel", ".owl-stage", function(a){
if(!full_in_mousewheel_pro){
full_in_mousewheel_pro=true;
if(a.deltaY < 0) gR.trigger("next.owl"); else gR.trigger("prev.owl");
}
a.preventDefault();
});
gR.closest('.monolit_sec').css('height', a);
}else{
if(gR.find(".owl-stage-outer").length){
gR.trigger("destroy.owl.carousel");
}
gR.closest('.monolit_sec').css('height',c.outerHeight());
}}
if(gR.length){
gR.imagesLoaded(function(){
initGalleryhorizontal();
w.on("resize.destroyhorizontal", function(){
setTimeout(initGalleryhorizontal, 150);
});
});
}
jQuery(document).on('keydown.carousel-hz', function(e){
if(e.keyCode==37){
gR.trigger("prev.owl");
};
if(e.keyCode==39){
gR.trigger("next.owl");
};});
jQuery(".keyboardcontr").each(function(){
var slider=jQuery(this);
jQuery(document).on('keydown.slider-carousel', function(e){
if(e.keyCode==37){
slider.trigger("prev.owl");
};
if(e.keyCode==39){
slider.trigger("next.owl");
};});
});
jQuery(".refrestonresizeowl").each(function(){
var slider=jQuery(this);
jQuery(window).on('resize',function(){
if(slider.find(".owl-stage-outer").length) slider.trigger('refresh.owl.carousel');
});
});
/*if(jQuery('.monolit_folio_head_sec').length==0&&jQuery('.content-footer').length==0){
gR.on("mousewheel", ".owl-stage", function(a){
if(a.deltaY < 0) gR.trigger("next.owl"); else gR.trigger("prev.owl");
a.stopPropagation();
a.preventDefault();
});
}*/
gR.on("translated.owl.carousel", function(a){
var b=jQuery(this).find(".active").find(".horizontal_item").data("phdesc");
var c=jQuery(this).find(".active").find(".horizontal_item").data("phname");
if(b) jQuery(".caption").html("<h4>" + c + "</h4><p>" + b + "</p>");
});
jQuery(".resize-carousel-holder a.next-slide").on("click", function(){
jQuery(this).closest(".resize-carousel-holder").find(gR).trigger("next.owl.carousel");
return false;
});
jQuery(".resize-carousel-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".resize-carousel-holder").find(gR).trigger("prev.owl.carousel");
return false;
});
var gf=jQuery(".full-screen-gallery"), w2=jQuery(window);
var gf_ops=gf.data('options') ? gf.data('options'):{smartSpeed:1300,autoplay:false,items:1,loop:true,center:false,autoWidth:false,thumbs:false,responsive:false};
if(gf_ops.responsive){
var respArr=gf_ops.responsive.split(',');
gf_ops.responsive={};
for (var i=0; i < respArr.length ; i++){
var tempVal=respArr[i].split(':');
gf_ops.responsive[tempVal[0]]={ items: tempVal[1] };}}else{
gf_ops.responsive=false;
}
function initGalleryFullscreen(){
var a=jQuery(window).height(), b=jQuery(".full-screen-gallery"), c=jQuery(".control-panel").outerHeight(), d=jQuery(".resize-carousel-holder").outerHeight(), e=jQuery(".full-screen-gallery .full-screen-item");
if(!b.is('.autowidth-yes')&&!b.is('.autoheight-yes')){
b.css({
height: d - c
});
e.css({
height: d
});
}
gf.owlCarousel({
autoWidth: gf_ops.autoWidth,
margin: 0,
items: gf_ops.items,
smartSpeed: gf_ops.smartSpeed,
loop: gf_ops.loop,
autoplay: gf_ops.autoplay,
center: gf_ops.center,
nav: false,
thumbs: gf_ops.thumbs,
responsive: gf_ops.responsive,
autoHeight: b.is('.autoheight-yes')
});
}
if(gf.length){
gf.imagesLoaded(function(){
initGalleryFullscreen();
w2.on("resize.destroyfullscreen", function(){
setTimeout(initGalleryFullscreen, 150);
});
});
}
jQuery(document).on('keydown.carousel-fs', function(e){
if(e.keyCode==37){
gf.trigger("prev.owl");
};
if(e.keyCode==39){
gf.trigger("next.owl");
};});
/*gf.on("mousewheel", ".owl-stage", function(a){
if(a.deltaY < 0) gf.trigger("next.owl"); else gf.trigger("prev.owl");
a.preventDefault();
});*/
jQuery(".full-screen-gallery-holder a.next-slide").on("click", function(){
jQuery(this).closest(".full-screen-gallery-holder").find(gf).trigger("next.owl.carousel");
return false;
});
jQuery(".full-screen-gallery-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".full-screen-gallery-holder").find(gf).trigger("prev.owl.carousel");
return false;
});
jQuery(".single-popup-image").lightGallery({
selector: "this",
cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
download: false,
counter: false
});
if(jQuery('.woocommerce-product-gallery__wrapper').length){
jQuery('.woocommerce-product-gallery__wrapper').each(function(){
var $woolg=jQuery(this);
$woolg.lightGallery({
selector: ".woocommerce-product-gallery__image a",
cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
download: false,
loop: true,
thumbnail:false
});
});
}
var $lg=jQuery(".lightgallery"), dlt=$lg.data("looped");
$lg.lightGallery({
selector: ".lightgallery a.popup-image",
cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
download: false,
loop: dlt,
thumbnail:false
});
jQuery(".lightgallery").on("onBeforeNextSlide.lg", function(a){
gR.trigger("next.owl.carousel");
gf.trigger("next.owl.carousel");
ss.trigger("next.owl.carousel");
});
jQuery(".lightgallery").on("onBeforePrevSlide.lg", function(a){
gR.trigger("prev.owl.carousel");
gf.trigger("prev.owl.carousel");
ss.trigger("prev.owl.carousel");
});
function initFolioGal(){
console.log('initFolioGal is called');
if(jQuery(".folio-gallery").length){
jQuery(".folio-gallery").each(function(){
var $folg=jQuery(this), dlt=$folg.data("looped");
if($folg.data('lightGallery')!=undefined){
$folg.data('lightGallery').destroy(true);
}
$folg.lightGallery({
selector: ".folio-gallery .portfolio_item:not([style*='display: none']) .folio-popup-gallery,.folio-gallery .gallery-item:not([style*='display: none']) .folio-popup-gallery",
cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)",
download: false,
loop: dlt,
thumbnail:false,
youtubePlayerParams: { modestbranding: 1, showinfo: 0, controls: 1 },
vimeoPlayerParams: { byline:0, portrait:0, color:'CCCCCC' },
dailymotionPlayerParams: {}});
});
}}
initFolioGal();
var slsl=jQuery(".slideshow-item");
var slsl_ops=slsl.data('options') ? slsl.data('options'):{autoplaySpeed: 3600,items:1,autoplayTimeout:4000};
slsl.owlCarousel({
loop: true,
margin: 0,
nav: false,
items: slsl_ops.items,
dots: false,
animateOut: "fadeOut",
animateIn: "fadeIn",
autoplay: true,
autoplayTimeout: slsl_ops.autoplayTimeout,
autoplayHoverPause: false,
autoplaySpeed: slsl_ops.autoplaySpeed
});
var tsh=jQuery(".testimon-slider");
var tsh_ops=tsh.data('options') ? tsh.data('options'):{smartSpeed:1300,autoplay:false,autoplaySpeed: 3600,items:1,autoplayTimeout:4000,responsive:false,autoHeight:true,loop:true,dots:false,center:false,autoWidth:false};
if(tsh_ops.responsive){
var respArr=tsh_ops.responsive.split(',');
tsh_ops.responsive={};
for (var i=0; i < respArr.length ; i++){
var tempVal=respArr[i].split(':');
tsh_ops.responsive[tempVal[0]]={ items: tempVal[1] };}}else{
tsh_ops.responsive=false;
}
tsh.owlCarousel({
margin: 0,
items: tsh_ops.items,
smartSpeed: tsh_ops.smartSpeed,
loop: tsh_ops.loop,
nav: false,
dots:tsh_ops.dots,
autoHeight: tsh_ops.autoHeight,
autoplay: tsh_ops.autoplay,
autoplayTimeout: tsh_ops.autoplayTimeout,
autoplaySpeed: tsh_ops.autoplaySpeed,
responsive:tsh_ops.responsive,
center:tsh_ops.center,
autoWidth:tsh_ops.autoWidth,
});
jQuery(".testimon-slider-holder a.next-slide").on("click", function(){
jQuery(this).closest(".testimon-slider-holder").find(tsh).trigger("next.owl.carousel");
});
jQuery(".testimon-slider-holder a.prev-slide").on("click", function(){
jQuery(this).closest(".testimon-slider-holder").find(tsh).trigger("prev.owl.carousel");
});
var ts=jQuery(".show-thumbs").data("textshow");
var th=jQuery(".show-thumbs").data("texthide");
jQuery(".show-thumbs").text(ts);
function showThumbs(){
jQuery(".show-thumbs").removeClass("vis-t");
jQuery(".owl-thumbs").addClass("vis-thumbs");
jQuery(".show-thumbs").text(th);
setTimeout(function(){
jQuery(".owl-thumb-item").addClass("himask");
}, 650);
}
function hideThumbs(){
jQuery(".show-thumbs").text(ts);
jQuery(".show-thumbs").addClass("vis-t");
jQuery(".owl-thumbs").removeClass("vis-thumbs");
jQuery(".owl-thumb-item").removeClass("himask");
}
jQuery(".show-thumbs").on("click", function(){
if(jQuery(this).hasClass("vis-t")) showThumbs(); else hideThumbs();
return false;
});
jQuery(document).on("click", ".owl-thumb-item", function(){
hideThumbs();
return false;
});
function a(){
jQuery(".hero-wrap-image-slider .item").css({
height: jQuery(".hero-wrap-image-slider").outerHeight(true)
});
jQuery(".hero-wrap-text-slider .item").css({
height: jQuery(".hero-wrap-text-slider").outerHeight(true)
});
jQuery(".home-slider-loop .item").css({
height: jQuery(".home-slider-loop").outerHeight(true)
});
jQuery(".slideshow-item .item").css({
height: jQuery(".slideshow-item ").outerHeight(true)
});
setTimeout(function(){
jQuery(".height-emulator").css({
height: jQuery(".content-footer").outerHeight(true)
});
}, 1000);
jQuery(".team-social").css({
"margin-top": -1 * jQuery(".team-social").height() / 2 + "px"
});
var a=jQuery(window).height(), b=jQuery("header.monolit-header").outerHeight(), c=jQuery(".p_horizontal_wrap");
var d=jQuery(window).width();
var e=0;
if(jQuery('.portfolio-pagination').length)
e=jQuery('.portfolio-pagination').outerHeight();
c.css("height", a - b - 30 - e);
if(jQuery('.portfolio-pagination').length)
jQuery(".resize-carousel-holder").css("height", a - b - e);
var hoz_folio_height=jQuery("#portfolio_horizontal_container").outerHeight();
if(d <=768) c.css("height", hoz_folio_height);
jQuery(" #portfolio_horizontal_container .portfolio_item img  ").css({
height: jQuery(".portfolio_item").outerHeight(true)
});
if(jQuery(window).width() > 1036){
jQuery('.nav-holder').css('display','block');
}else{
jQuery('.nav-holder').css('display','none');
}
if(jQuery(".landing-logo-inner").length){
jQuery(".landing-logo-inner").css({
"margin-top": -1 * jQuery(".landing-logo-inner").height() / 2 + "px"
});
jQuery(".box-inner").css({
"margin-top": -1 * jQuery(".box-inner").height() / 2 + "px"
});
}}
a();
jQuery(window).resize(function(){
a();
});
if(jQuery('#iframe-demo').length){
jQuery(".box li a").on("mouseenter", function(){
var goTo=jQuery(this).attr("href");
jQuery("#iframe-demo").attr("src",goTo);
});
}
var i=1;
jQuery(document.body).on("appear", ".stats", function(a){
if(1===i) k(2600);
i++;
});
function number(a, b, c, d){
if(d){
var e=0;
var f=parseInt(d / a)
var g=setInterval(function(){
if(e - 1 < a) c.html(e); else {
c.html(b);
clearInterval(g);
}
e++;
}, f);
} else c.html(b);
}
function k(a){
jQuery(".stats .num").each(function(){
var b=jQuery(this);
var c=b.attr("data-num");
var d=b.attr("data-content");
number(c, d, b, a);
});
}
jQuery(".animaper").appear();
jQuery(document.body).on("appear", ".piechart-holder", function(){
jQuery(this).find(".chart").each(function(){
var a=jQuery(".piechart-holder").data("skcolor"),
b=jQuery(".piechart-holder").data("pies"),
c=jQuery(".piechart-holder").data("pielw");
jQuery(".chart").easyPieChart({
barColor: a,
trackColor: "transparent",
scaleColor: "transparent",
size: b,
lineWidth: c,
lineCap: "butt",
onStep: function(a, b, c){
jQuery(this.el).find(".percent").text(Math.round(c));
}});
});
});
jQuery(document.body).on("appear", ".skillbar-box", function(){
jQuery(this).find("div.skillbar-bg").each(function(){
jQuery(this).find(".custom-skillbar").delay(600).animate({
width: jQuery(this).attr("data-percent")
}, 1500);
});
});
jQuery(".background-youtube").each(function(){
var $that=jQuery(this),
vid=$that.data('vid'),
mt=$that.data('mv'),
ql=$that.data('ql') ? $that.data('ql'):'highres',
pos=$that.data('pos');
$that.YTPlayer({
fitToBackground: true,
videoId: vid,
pauseOnScroll: pos,
mute: mt,
callback: function(){
var a=$that.data("ytPlayer").player;
a.setPlaybackQuality(ql);
},
});
});
jQuery(".background-vimeo").each(function(){
var $that=jQuery(this),
options=$that.data('opts') ? $that.data('opts'):{video: '143243001',quality: '1080p',mute: '1', loop: '1'};
var url='//player.vimeo.com/video/' + options.video;
if(options.mute=='1') url +='?background=1&quality='+options.quality+'&loop='+options.loop;
else url +='?autoplay=1&quality='+options.quality+'&loop='+options.loop;
$that.append('<iframe src="' + url + '"  frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe>');
});
jQuery(".video-holder").height(jQuery(".media-container").height());
if(jQuery(window).width() > 1024){
if(jQuery(".video-holder").length > 0){
if(jQuery(".media-container").height() / 9 * 16 > jQuery(".media-container").width()){
jQuery(".background-vimeo iframe ").height(jQuery(".media-container").height()).width(jQuery(".media-container").height() / 9 * 16);
jQuery(".background-vimeo iframe ").css({
"margin-left": -1 * jQuery("iframe").width() / 2 + "px",
top: "-75px",
"margin-top": "0px"
});
}else{
jQuery(".background-vimeo iframe ").width(jQuery(window).width()).height(jQuery(window).width() / 16 * 9);
jQuery(".background-vimeo iframe ").css({
"margin-left": -1 * jQuery("iframe").width() / 2 + "px",
"margin-top": -1 * jQuery("iframe").height() / 2 + "px",
top: "50%"
});
}}
}else if(jQuery(window).width() < 760){
jQuery(".video-holder").height(jQuery(".media-container").height());
jQuery(".background-vimeo iframe ").height(jQuery(".media-container").height());
}else{
jQuery(".video-holder").height(jQuery(".media-container").height());
jQuery(".background-vimeo iframe ").height(jQuery(".media-container").height());
}
jQuery(".cthiso-filters").on("click", "a.cthiso-filter", function(b){
b.preventDefault();
var c=jQuery(this).attr("data-filter"),
$wrap=jQuery(this).closest('.cthiso-wrapper');
if(c=='*'){
$wrap.find('.cthiso-flex').children().fadeIn()
}else{
$wrap.find('.cthiso-flex').children().not(c).fadeOut('fast')
$wrap.find('.cthiso-flex').children(c).fadeIn()
}
jQuery(".cthiso-filters a.cthiso-filter").removeClass("gallery-filter_active");
jQuery(this).addClass("gallery-filter_active");
return false;
});
function n(){
if(jQuery(".gallery-items").length){
var a=jQuery(".gallery-items").isotope({
itemSelector: ".gallery-item, .gallery-item-second, .gallery-item-three",
percentPosition: true,
masonry: {
columnWidth: ".grid-sizer, .grid-sizer-second, .grid-sizer-three",
},
transformsEnabled: true,
transitionDuration: "700ms",
});
a.imagesLoaded(function(){
a.isotope("layout");
});
jQuery(".gallery-filters").on("click", "a.gallery-filter", function(b){
b.preventDefault();
var c=jQuery(this).attr("data-filter");
a.isotope({
filter: c
});
jQuery(".gallery-filters a.gallery-filter").removeClass("gallery-filter-active");
jQuery(this).addClass("gallery-filter-active");
return false;
});
a.isotope("on", "layoutComplete", function(a, b){
jQuery.each(a, function(index,value){
var $this=jQuery(value.element);
if($this.is('.is_folio_video')){
var a=$this.outerHeight();
}});
var b=a.length;
jQuery(".num-album").html(b);
});
a.on('arrangeComplete', function(event, filteredItems){
initFolioGal();
});
}
var b={
touchbehavior: false,
cursoropacitymax: 1,
cursorborderradius: "0",
background: "transparent",
cursorwidth: "4px",
cursorborder: "0px",
cursorcolor: "transparent",
autohidemode: true,
bouncescroll: false,
scrollspeed: 120,
mousescrollstep: 90,
grabcursorenabled: true,
horizrailenabled: false,
preservenativescrolling: true,
cursordragontouch: true
};
jQuery(".hid-sidebar").niceScroll(b);
var c={
touchbehavior: true,
cursoropacitymax: 1,
cursorborderradius: "0",
background: "transparent",
cursorwidth: "10px",
cursorborder: "0px",
cursorcolor: "#191919",
autohidemode: false,
bouncescroll: false,
scrollspeed: 120,
mousescrollstep: 90,
grabcursorenabled: true,
horizrailenabled: true,
preservenativescrolling: true,
cursordragontouch: true,
railpadding: {
top: -10,
right: 0,
left: 0,
bottom: 0
},
zindex: 22,
};
if(jQuery(".p_horizontal_wrap").is('.hoz_has_headfoot_wrap')) c.enablemousewheel=false;
var d=jQuery("#portfolio_horizontal_container");
d.imagesLoaded(function(a, b, e){
var f={
itemSelector: ".portfolio_item",
layoutMode: "packery",
packery: {
isHorizontal: true,
gutter: 0
},
resizable: true,
transformsEnabled: true,
transitionDuration: "700ms"
};
var g={
itemSelector: ".portfolio_item",
layoutMode: "packery",
packery: {
isHorizontal: false,
gutter: 0
},
resizable: true,
transformsEnabled: true,
transitionDuration: "700ms"
};
if(jQuery(window).width() <=768){
if(d.is('.hoz_has_headfoot'))
d.isotope({
itemSelector: ".portfolio_item",
percentPosition: true,
masonry: {
},
transformsEnabled: true,
transitionDuration: "700ms",
});
else
d.isotope(g);
d.isotope("layout");
if(jQuery(".p_horizontal_wrap").getNiceScroll()) jQuery(".p_horizontal_wrap").getNiceScroll().remove();
}else{
d.isotope(f);
d.isotope("layout");
jQuery(".p_horizontal_wrap").niceScroll(c);
}
jQuery(".gallery-filters").on("click", "a", function(a){
a.preventDefault();
var b=jQuery(this).attr("data-filter");
d.isotope({
filter: b
});
jQuery(".gallery-filters a").removeClass("gallery-filter_active");
jQuery(this).addClass("gallery-filter_active");
});
d.isotope("on", "layoutComplete", function(a, b){
jQuery.each(a, function(index,value){
var $this=jQuery(value.element);
if($this.is('.is_folio_video')){
var a=$this.outerHeight();
$this.find(".resp-video-holder").css("height", a).find("iframe").css("height", a);
$this.find(".resp-video-holder").css("width", a*1.61).find("iframe").css("width", a*1.61);
}});
var hoz_folio_height=jQuery("#portfolio_horizontal_container").outerHeight();
if(jQuery(window).width() <=768){
jQuery('.p_horizontal_wrap').css("height", hoz_folio_height);
jQuery('.resize-carousel-holder').css("height", hoz_folio_height);
jQuery('.portfolio-horizontal').css("height", hoz_folio_height + jQuery('.portfolio-pagination').outerHeight() + 60);
}
var b=a.length;
jQuery(".num-album").html(b);
});
d.on('arrangeComplete', function(event, filteredItems){
initFolioGal();
});
});
}
jQuery(".grid-item a").on("click", function(){
var a=jQuery(this).attr("href");
window.location.href=a;
return false;
});
var j=jQuery(".portfolio_item , .gallery-item").length;
jQuery(".all-album , .num-album").html(j);
jQuery(window).on('load',function (){
n();
});
jQuery(".filter-button").addClass("act-filter");
jQuery(".filter-button").on("click", function(){
if(jQuery(this).hasClass("act-filter")){
showfilter();
}else{
hidefilter();
}
return false;
});
function showfilter(){
jQuery(".filter-button").removeClass("act-filter");
jQuery(".hid-filter").slideDown(500);
jQuery(".resize-carousel-holder").addClass("visfilb");
}
function hidefilter(){
jQuery(".filter-button").addClass("act-filter");
jQuery(".hid-filter").slideUp(500);
jQuery(".resize-carousel-holder").removeClass("visfilb");
}
jQuery(".team-box").hover(function(){
jQuery(this).find("ul.team-social").fadeIn();
jQuery(this).find(".team-social a").each(function(a){
var b=jQuery(this);
setTimeout(function(){
b.animate({
opacity: 1,
top: "0"
}, 400);
}, 150 * a);
});
}, function(){
jQuery(this).find(".team-social a").each(function(a){
var b=jQuery(this);
setTimeout(function(){
b.animate({
opacity: 0,
top: "50px"
}, 400);
}, 150 * a);
});
setTimeout(function(){
jQuery(this).find("ul.team-social").fadeOut();
}, 150);
});
jQuery(".to-top").click(function(){
jQuery("html, body").animate({
scrollTop: 0
}, 1500);
return false;
});
jQuery(document).on("click", ".serv-item", function(a){
var b=jQuery(this);
a.preventDefault();
jQuery(".serv-item").removeClass("act-ser");
b.addClass("act-ser");
jQuery("html, body").animate({
scrollTop: b.closest('.services-main-holder').find(".serv-post").offset().top - 120 
}, {
queue: false,
duration: 1200,
easing: "easeInOutExpo"
});
jQuery(".serv-details").stop(true, true).css("display", "none");
jQuery(b.attr("href")).stop(true, true).fadeIn(500);
});
jQuery(".to-top").hover(function(){
if(_monolit.shuffle_off!='1')
jQuery(this).shuffleLetters({});
jQuery(".footer-wrap").addClass("tth");
}, function(){
jQuery(".footer-wrap").removeClass("tth");
});
jQuery(".scroll-nav  ul").singlePageNav({
filter: ":not(.external)",
updateHash: false,
offset: 70,
threshold: 120,
speed: 1200,
currentClass: "act-link",
beforeStart:function(){
if(jQuery(window).width() < 1037) hideMenu();
},
onComplete: function(){
if(jQuery(".scroll-nav  a").hasClass("act-link")) jQuery(".scroll-nav  a.act-link").each(function(){
var a=jQuery(this).attr("title")!=undefined ? jQuery(this).attr("title"):jQuery(this).text();
if(_monolit.shuffle_off!='1')
jQuery(".footer-title h2").html(a);
else
jQuery(".footer-title h2").html(a).shuffleLetters({});
});
}});
jQuery(".scroll-page-nav  ul").singlePageNav({
filter: ":not(.external)",
updateHash: false,
offset: 70,
threshold: 120,
speed: 1200,
currentClass: "act-link"
});
jQuery(".custom-scroll-link,.menu-scroll-link").on("click", function(){
var a=80;
if(location.pathname.replace(/^\//, "")==this.pathname.replace(/^\//, "")||location.hostname==this.hostname){
var b=jQuery(this.hash);
b=b.length ? b:jQuery("[name=" + this.hash.slice(1) + "]");
if(b.length){
jQuery("html,body").animate({
scrollTop: b.offset().top - a
}, {
queue: false,
duration: 1600,
easing: "easeInOutExpo"
});
return false;
}}
});
if(jQuery('.particular').length){
jQuery(window).scroll(function(){
if(jQuery(window).scrollTop() + jQuery(window).height() > jQuery(document).height() - 50) jQuery(".particular.footer-canvas").fadeIn(1); else jQuery(".particular.footer-canvas").fadeOut(1);
});
var cscl=jQuery('.particular').data('color') ? jQuery('.particular').data('color'):"rgba(255, 255, 255, .5)";
jQuery(".particular").constellation({
star: {
width: 1
},
line: {
color: cscl
},
radius: 350
});
}
jQuery.fn.duplicate=function(a, b){
var c=[];
for (var d=0; d < a; d++) jQuery.merge(c, this.clone(b).get());
return this.pushStack(c);
};
jQuery("<div class='scale-callback'></div>").duplicate(12).appendTo(".sb-bg");
jQuery(".show-hid-sidebar").on("click", function(a){
a.preventDefault();
jQuery(".hid-sidebar").addClass("vissb");
setTimeout(function(){
jQuery(".scale-callback").addClass("scale-bg5");
}, 450);
setTimeout(function(){
jQuery(".sb-inner").addClass("sb-innervis");
if(jQuery(".gallery-items").length){
var a=jQuery(".gallery-items").isotope({
itemSelector: ".gallery-item, .gallery-item-second, .gallery-item-three",
percentPosition: true,
masonry: {
columnWidth: ".grid-sizer, .grid-sizer-second, .grid-sizer-three",
},
transformsEnabled: true,
transitionDuration: "700ms",
});
a.imagesLoaded(function(){
a.isotope("layout");
});
}}, 800);
jQuery(".sb-overlay").addClass("vis-overlay");
return false;
});
jQuery(".close-sidebar , .sb-overlay").on("click", function(){
jQuery(".hid-sidebar").removeClass("vissb");
jQuery(".sb-inner").removeClass("sb-innervis");
jQuery(".scale-callback").removeClass("scale-bg5");
jQuery(".sb-overlay").removeClass("vis-overlay");
return false;
});
var bgImage=jQuery(".bg");
bgImage.each(function(a){
if(jQuery(this).attr("data-bg")) jQuery(this).css("background-image", "url(" + jQuery(this).data("bg") + ")");
});
if(jQuery(".hor-nav-layout").hasClass("hor-content")){
jQuery("header.monolit-header").addClass("fw-head");
jQuery(".share-inner").addClass("hor-inner");
jQuery(".content-holder").children('.content:first').css('padding-top','80px');
jQuery(window).trigger('resize.destroyfullscreen');
}
var shs=eval(jQuery(".share-container").attr("data-share"));
if(shs){
jQuery(".share-container").share({
networks: shs
});
}
var blshs=eval(jQuery(".blog-share-container").attr("data-share"));
if(blshs){
jQuery(".blog-share-container").share({
networks: blshs
});
}
function hideShare(){
jQuery(".share-inner").removeClass("visshare");
jQuery(".show-share").addClass("isShare");
jQuery(".share-container ").removeClass("vissc");
jQuery("header.monolit-header").removeClass("vis-header-b");
}
function showShare(){
jQuery(".share-inner").addClass("visshare");
jQuery(".show-share").removeClass("isShare");
setTimeout(function(){
jQuery("header.monolit-header").addClass("vis-header-b");
jQuery(".share-container ").addClass("vissc");
}, 400);
}
jQuery(".show-share").on("click", function(a){
a.preventDefault();
if(jQuery(".show-share").hasClass("isShare")) showShare(); else hideShare();
});
var nb=jQuery(".nav-button"), nh=jQuery(".nav-holder");
function showMenu(){
nb.removeClass("vis-m");
nh.slideDown(500);
}
function hideMenu(){
nb.addClass("vis-m");
nh.slideUp(500);
}
nb.on("click", function(){
if(jQuery(this).hasClass("vis-m")) showMenu(); else hideMenu();
});
var mobileHover=function (){
jQuery('.portfolio_item,.grid-item-holder , nav li').on('touchstart', function (){
jQuery(this).trigger('hover');
}).on('touchend', function (){
jQuery(this).trigger('hover');
});
};
mobileHover();
}
function contanimshow(){
var a=window.location.href;
var b=jQuery(".dynamic-title").text();
var ua=window.navigator.userAgent;
var msie=ua.indexOf("MSIE ");
jQuery(".footer-title a").attr("href", a);
if(msie > 0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){
jQuery(".footer-title a").html(b);
}else{
jQuery(".footer-title a").html(b);
if(_monolit.shuffle_off!='1')
jQuery(".footer-title a").shuffleLetters({});
}
return false;
}
function initparallax(){
var a={
Android: function(){
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function(){
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function(){
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function(){
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function(){
return navigator.userAgent.match(/IEMobile/i);
},
any: function(){
return a.Android()||a.BlackBerry()||a.iOS()||a.Opera()||a.Windows();
}};
trueMobile=a.any();
if(null==trueMobile&&_monolit.parallax_off!='1'){
var b=jQuery("#main-theme");
if(b.find("[data-top-bottom]").length > 0){
b.imagesLoaded(function(){
s=skrollr.init();
s.destroy();
jQuery(window).resize(function(){
var a=jQuery(window).width();
if(a < 1036) s.destroy(); else skrollr.init({
forceHeight: !1,
easing: "easeInOutElastic",
mobileCheck: function(){
return !1;
}});
});
skrollr.init({
forceHeight: !1,
easing: "easeInOutElastic",
mobileCheck: function(){
return !1;
}});
});
}
var c=jQuery(window).width();
if(c < 1036){
s=skrollr.init();
s.destroy();
}}
if(trueMobile) jQuery(".background-youtube , .background-vimeo").remove();
}
jQuery(document).ready(function($){
initMonolit();
initparallax();
if(_monolit.enable_image_click=='1'){
$(".gallery-item:not(.has-popup) .port-desc-holder").on("click", function(e){
e.preventDefault();
var a=$(this).find('h3 a').attr("href");
window.location.href=a;
});
$(".portfolio_item:not(.has-popup) .port-desc-holder").on("click", function(e){
e.preventDefault();
var a=$(this).find('h3 a').attr("href");
window.location.href=a;
});
}
$(document).on("click",'li.menu-item-language a', function(e){
e.preventDefault();
var a=$(this).attr("href");
window.location.href=a;
});
if(jQuery('main .products > .product').length){
jQuery(".gallery-filters").on("click", "a.gallery-filter", function(b){
b.preventDefault();
var c=jQuery(this).attr("data-filter");
var $products=jQuery('.products > .product');
if(c=='*'){
$products.fadeIn();
}else{
$products.fadeOut();
jQuery('.products > .product'+c).fadeIn();
}
jQuery(".gallery-filters a.gallery-filter").removeClass("gallery-filter-active");
jQuery(this).addClass("gallery-filter-active");
return false;
});
}});
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i<prefix.length;i++)prefix[i]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")}(),function($){"function"!=typeof window.vc_js&&(window.vc_js=function(){"use strict";vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){($parent?$parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var this_element=jQuery(this),sliderTimeout=1e3*parseInt(this_element.attr("data-interval"),10),sliderFx=this_element.attr("data-flex_fx"),slideshow=0==sliderTimeout?!1:!0;this_element.is(":visible")&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0})})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var po,s;0<jQuery(".wpb_googleplus").length&&((po=document.createElement("script")).type="text/javascript",po.async=!0,po.src="https://apis.google.com/js/plusone.js",(s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po,s))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var po,s;0<jQuery(".wpb_pinterest").length&&((po=document.createElement("script")).type="text/javascript",po.async=!0,po.src="https://assets.pinterest.com/js/pinit.js",(s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po,s))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.find(".vc_single_bar").each(function(index){var bar=jQuery(this).find(".vc_bar"),val=bar.data("percentage-value");setTimeout(function(){bar.css({width:val+"%"})},200*index)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){function event(e){e&&e.preventDefault&&e.preventDefault();var element=jQuery(this).closest(".vc_toggle"),e=element.find(".vc_toggle_content");element.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){element.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){element.addClass("vc_toggle_active")}})}($el?$el.hasClass("vc_toggle_title")?$el.unbind("click"):$el.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",event)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function($tab){var ver,old_version;jQuery.ui&&($tab=$tab||jQuery(".wpb_tabs, .wpb_tour"),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",old_version=1===parseInt(ver[0],10)&&parseInt(ver[1],10)<9,$tab.each(function(index){var interval=jQuery(this).attr("data-interval"),tabs_array=[],$tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}});if(interval&&0<interval)try{$tabs.tabs("rotate",1e3*interval)}catch(err){window.console&&window.console.warn&&console.warn("tabs behaviours error",err)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var index;e&&e.preventDefault&&e.preventDefault(),old_version?(index=$tabs.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,index<0?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),e=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?e<=index+1?0:index+1:index-1<0?e-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt($this.data("active-tab"),10)&&parseInt($this.data("active-tab"),10)-1),collapsible=!1===active_tab||"yes"===$this.data("collapsible"),active_tab=$this.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&(active_tab.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),($this=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":$this.css("margin-left"),"margin-left":0}),($this=jQuery(this).find("ul.wpb_thumbnails-fluid")).width($this.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var $=window.jQuery;function fullWidthRow(){var $elements;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||($elements=$('[data-vc-full-width="true"]'),$.each($elements,function(key,item){var el_margin_left,el_margin_right,offset,width,cssProps,padding,paddingRight,$el=$(this),$el_full=($el.addClass("vc_hidden"),$el.next(".vc_row-full-width"));($el_full=$el_full.length?$el_full:$el.parent().next(".vc_row-full-width")).length&&(el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width(),cssProps={position:"relative",left:offset="rtl"===$el.css("direction")?(offset=offset-$el_full.width()+width)+el_margin_left+el_margin_right:offset,"box-sizing":"border-box",width:width,"max-width":width},$el.css(cssProps),$el.data("vcStretchContent")||("rtl"===$el.css("direction")?((padding=offset)<0&&(padding=0),(paddingRight=offset)<0&&(paddingRight=0)):(paddingRight=width-(padding=(padding=-1*offset)<0?0:padding)-$el_full.width()+el_margin_left+el_margin_right)<0&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})),$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width,maxWidth:width}))}),$(document).trigger("vc-full-width-row",$elements))}function fullHeightRow(){var windowHeight,offsetTop,$element=$(".vc_row-o-full-height:first");$element.length&&(windowHeight=$(window).height(),(offsetTop=$element.offset().top)<windowHeight&&$element.css("min-height",100-offsetTop/(windowHeight/100)+"vh")),$(document).trigger("vc-full-height-row",$element)}$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var callSkrollInit=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),$parallaxElement.attr("data-bottom-top","top: "+-(skrollrSize-100)+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui=panel.find(".isotope, .wpb_image_grid_ul"),$pie_charts=panel.find(".wpb_gmaps_widget"),0<ui.length&&ui.isotope("layout"),$pie_charts.length&&!$pie_charts.is(".map_ready")&&(($round_charts=$pie_charts.find("iframe")).attr("src",$round_charts.attr("src")),$pie_charts.addClass("map_ready")),panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),$(document).trigger("wpb_prepare_tab_content",panel)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(event,ui){var $pie_charts,$round_charts,$line_charts,$carousel;ui.newPanel.length&&ui.newHeader.length&&($pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")}))}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),(youtubeUrl=vcExtractYoutubeId(youtubeUrl))&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeUrl)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).on("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){return void 0!==url&&(null!==(url=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&url[1])}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width();$this.css("perspective",4*width+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner"),frontHeight=(hoverBoxInner.css("min-height",0),$this.find(".vc-hoverbox-front-inner").outerHeight()),$this=$this.find(".vc-hoverbox-back-inner").outerHeight(),frontHeight=$this<frontHeight?frontHeight:$this;hoverBoxInner.css("min-height",(frontHeight=frontHeight<250?250:frontHeight)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()})}(window.jQuery);
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):(global="undefined"!=typeof globalThis?globalThis:global||self).Swiper=factory()}(this,(function(){"use strict";function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}).apply(this,arguments)}function isObject$1(obj){return null!==obj&&"object"==typeof obj&&"constructor"in obj&&obj.constructor===Object}function extend$1(target,src){void 0===target&&(target={}),void 0===src&&(src={}),Object.keys(src).forEach((function(key){void 0===target[key]?target[key]=src[key]:isObject$1(src[key])&&isObject$1(target[key])&&Object.keys(src[key]).length>0&&extend$1(target[key],src[key])}))}var ssrDocument={body:{},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){var doc="undefined"!=typeof document?document:{};return extend$1(doc,ssrDocument),doc}var ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(callback){return"undefined"==typeof setTimeout?(callback(),null):setTimeout(callback,0)},cancelAnimationFrame:function cancelAnimationFrame(id){"undefined"!=typeof setTimeout&&clearTimeout(id)}};function getWindow(){var win="undefined"!=typeof window?window:{};return extend$1(win,ssrWindow),win}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){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}}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor,instance=new(Function.bind.apply(Parent,a));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!_isNativeFunction(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function makeReactive(obj){var proto=obj.__proto__;Object.defineProperty(obj,"__proto__",{get:function get(){return proto},set:function set(value){proto.__proto__=value}})}var Dom7=function(_Array){function Dom7(items){var _this;return makeReactive(_assertThisInitialized(_this=_Array.call.apply(_Array,[this].concat(items))||this)),_this}return _inheritsLoose(Dom7,_Array),Dom7}(_wrapNativeSuper(Array));function arrayFlat(arr){void 0===arr&&(arr=[]);var res=[];return arr.forEach((function(el){Array.isArray(el)?res.push.apply(res,arrayFlat(el)):res.push(el)})),res}function arrayFilter(arr,callback){return Array.prototype.filter.call(arr,callback)}function arrayUnique(arr){for(var uniqueArray=[],i=0;i<arr.length;i+=1)-1===uniqueArray.indexOf(arr[i])&&uniqueArray.push(arr[i]);return uniqueArray}function qsa(selector,context){if("string"!=typeof selector)return[selector];for(var a=[],res=context.querySelectorAll(selector),i=0;i<res.length;i+=1)a.push(res[i]);return a}function $(selector,context){var window=getWindow(),document=getDocument(),arr=[];if(!context&&selector instanceof Dom7)return selector;if(!selector)return new Dom7(arr);if("string"==typeof selector){var html=selector.trim();if(html.indexOf("<")>=0&&html.indexOf(">")>=0){var toCreate="div";0===html.indexOf("<li")&&(toCreate="ul"),0===html.indexOf("<tr")&&(toCreate="tbody"),0!==html.indexOf("<td")&&0!==html.indexOf("<th")||(toCreate="tr"),0===html.indexOf("<tbody")&&(toCreate="table"),0===html.indexOf("<option")&&(toCreate="select");var tempParent=document.createElement(toCreate);tempParent.innerHTML=html;for(var i=0;i<tempParent.childNodes.length;i+=1)arr.push(tempParent.childNodes[i])}else arr=qsa(selector.trim(),context||document)}else if(selector.nodeType||selector===window||selector===document)arr.push(selector);else if(Array.isArray(selector)){if(selector instanceof Dom7)return selector;arr=selector}return new Dom7(arrayUnique(arr))}function addClass(){for(var _len=arguments.length,classes=new Array(_len),_key=0;_key<_len;_key++)classes[_key]=arguments[_key];var classNames=arrayFlat(classes.map((function(c){return c.split(" ")})));return this.forEach((function(el){var _el$classList;(_el$classList=el.classList).add.apply(_el$classList,classNames)})),this}function removeClass(){for(var _len2=arguments.length,classes=new Array(_len2),_key2=0;_key2<_len2;_key2++)classes[_key2]=arguments[_key2];var classNames=arrayFlat(classes.map((function(c){return c.split(" ")})));return this.forEach((function(el){var _el$classList2;(_el$classList2=el.classList).remove.apply(_el$classList2,classNames)})),this}function toggleClass(){for(var _len3=arguments.length,classes=new Array(_len3),_key3=0;_key3<_len3;_key3++)classes[_key3]=arguments[_key3];var classNames=arrayFlat(classes.map((function(c){return c.split(" ")})));this.forEach((function(el){classNames.forEach((function(className){el.classList.toggle(className)}))}))}function hasClass(){for(var _len4=arguments.length,classes=new Array(_len4),_key4=0;_key4<_len4;_key4++)classes[_key4]=arguments[_key4];var classNames=arrayFlat(classes.map((function(c){return c.split(" ")})));return arrayFilter(this,(function(el){return classNames.filter((function(className){return el.classList.contains(className)})).length>0})).length>0}function attr(attrs,value){if(1===arguments.length&&"string"==typeof attrs)return this[0]?this[0].getAttribute(attrs):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(attrs,value);else for(var attrName in attrs)this[i][attrName]=attrs[attrName],this[i].setAttribute(attrName,attrs[attrName]);return this}function removeAttr(attr){for(var i=0;i<this.length;i+=1)this[i].removeAttribute(attr);return this}function transform(transform){for(var i=0;i<this.length;i+=1)this[i].style.transform=transform;return this}function transition$1(duration){for(var i=0;i<this.length;i+=1)this[i].style.transitionDuration="string"!=typeof duration?duration+"ms":duration;return this}function on(){for(var _len5=arguments.length,args=new Array(_len5),_key5=0;_key5<_len5;_key5++)args[_key5]=arguments[_key5];var eventType=args[0],targetSelector=args[1],listener=args[2],capture=args[3];function handleLiveEvent(e){var target=e.target;if(target){var eventData=e.target.dom7EventData||[];if(eventData.indexOf(e)<0&&eventData.unshift(e),$(target).is(targetSelector))listener.apply(target,eventData);else for(var _parents=$(target).parents(),k=0;k<_parents.length;k+=1)$(_parents[k]).is(targetSelector)&&listener.apply(_parents[k],eventData)}}function handleEvent(e){var eventData=e&&e.target&&e.target.dom7EventData||[];eventData.indexOf(e)<0&&eventData.unshift(e),listener.apply(this,eventData)}"function"==typeof args[1]&&(eventType=args[0],listener=args[1],capture=args[2],targetSelector=void 0),capture||(capture=!1);for(var events=eventType.split(" "),j,i=0;i<this.length;i+=1){var el=this[i];if(targetSelector)for(j=0;j<events.length;j+=1){var _event=events[j];el.dom7LiveListeners||(el.dom7LiveListeners={}),el.dom7LiveListeners[_event]||(el.dom7LiveListeners[_event]=[]),el.dom7LiveListeners[_event].push({listener:listener,proxyListener:handleLiveEvent}),el.addEventListener(_event,handleLiveEvent,capture)}else for(j=0;j<events.length;j+=1){var event=events[j];el.dom7Listeners||(el.dom7Listeners={}),el.dom7Listeners[event]||(el.dom7Listeners[event]=[]),el.dom7Listeners[event].push({listener:listener,proxyListener:handleEvent}),el.addEventListener(event,handleEvent,capture)}}return this}function off(){for(var _len6=arguments.length,args=new Array(_len6),_key6=0;_key6<_len6;_key6++)args[_key6]=arguments[_key6];var eventType=args[0],targetSelector=args[1],listener=args[2],capture=args[3];"function"==typeof args[1]&&(eventType=args[0],listener=args[1],capture=args[2],targetSelector=void 0),capture||(capture=!1);for(var events=eventType.split(" "),i=0;i<events.length;i+=1)for(var event=events[i],j=0;j<this.length;j+=1){var el=this[j],handlers=void 0;if(!targetSelector&&el.dom7Listeners?handlers=el.dom7Listeners[event]:targetSelector&&el.dom7LiveListeners&&(handlers=el.dom7LiveListeners[event]),handlers&&handlers.length)for(var k=handlers.length-1;k>=0;k-=1){var handler=handlers[k];listener&&handler.listener===listener?(el.removeEventListener(event,handler.proxyListener,capture),handlers.splice(k,1)):listener&&handler.listener&&handler.listener.dom7proxy&&handler.listener.dom7proxy===listener?(el.removeEventListener(event,handler.proxyListener,capture),handlers.splice(k,1)):listener||(el.removeEventListener(event,handler.proxyListener,capture),handlers.splice(k,1))}}return this}function trigger(){for(var window=getWindow(),_len9=arguments.length,args=new Array(_len9),_key9=0;_key9<_len9;_key9++)args[_key9]=arguments[_key9];for(var events=args[0].split(" "),eventData=args[1],i=0;i<events.length;i+=1)for(var event=events[i],j=0;j<this.length;j+=1){var el=this[j];if(window.CustomEvent){var evt=new window.CustomEvent(event,{detail:eventData,bubbles:!0,cancelable:!0});el.dom7EventData=args.filter((function(data,dataIndex){return dataIndex>0})),el.dispatchEvent(evt),el.dom7EventData=[],delete el.dom7EventData}}return this}function transitionEnd$1(callback){var dom=this;function fireCallBack(e){e.target===this&&(callback.call(this,e),dom.off("transitionend",fireCallBack))}return callback&&dom.on("transitionend",fireCallBack),this}function outerWidth(includeMargins){if(this.length>0){if(includeMargins){var _styles=this.styles();return this[0].offsetWidth+parseFloat(_styles.getPropertyValue("margin-right"))+parseFloat(_styles.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function outerHeight(includeMargins){if(this.length>0){if(includeMargins){var _styles2=this.styles();return this[0].offsetHeight+parseFloat(_styles2.getPropertyValue("margin-top"))+parseFloat(_styles2.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function offset(){if(this.length>0){var window=getWindow(),document=getDocument(),el=this[0],box=el.getBoundingClientRect(),body=document.body,clientTop=el.clientTop||body.clientTop||0,clientLeft=el.clientLeft||body.clientLeft||0,scrollTop=el===window?window.scrollY:el.scrollTop,scrollLeft=el===window?window.scrollX:el.scrollLeft;return{top:box.top+scrollTop-clientTop,left:box.left+scrollLeft-clientLeft}}return null}function styles(){var window=getWindow();return this[0]?window.getComputedStyle(this[0],null):{}}function css(props,value){var window=getWindow(),i;if(1===arguments.length){if("string"!=typeof props){for(i=0;i<this.length;i+=1)for(var _prop in props)this[i].style[_prop]=props[_prop];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(props)}if(2===arguments.length&&"string"==typeof props){for(i=0;i<this.length;i+=1)this[i].style[props]=value;return this}return this}function each(callback){return callback?(this.forEach((function(el,index){callback.apply(el,[el,index])})),this):this}function filter(callback){var result;return $(arrayFilter(this,callback))}function html(html){if(void 0===html)return this[0]?this[0].innerHTML:null;for(var i=0;i<this.length;i+=1)this[i].innerHTML=html;return this}function text(text){if(void 0===text)return this[0]?this[0].textContent.trim():null;for(var i=0;i<this.length;i+=1)this[i].textContent=text;return this}function is(selector){var window=getWindow(),document=getDocument(),el=this[0],compareWith,i;if(!el||void 0===selector)return!1;if("string"==typeof selector){if(el.matches)return el.matches(selector);if(el.webkitMatchesSelector)return el.webkitMatchesSelector(selector);if(el.msMatchesSelector)return el.msMatchesSelector(selector);for(compareWith=$(selector),i=0;i<compareWith.length;i+=1)if(compareWith[i]===el)return!0;return!1}if(selector===document)return el===document;if(selector===window)return el===window;if(selector.nodeType||selector instanceof Dom7){for(compareWith=selector.nodeType?[selector]:selector,i=0;i<compareWith.length;i+=1)if(compareWith[i]===el)return!0;return!1}return!1}function index(){var child=this[0],i;if(child){for(i=0;null!==(child=child.previousSibling);)1===child.nodeType&&(i+=1);return i}}function eq(index){if(void 0===index)return this;var length=this.length;if(index>length-1)return $([]);if(index<0){var returnIndex=length+index;return $(returnIndex<0?[]:[this[returnIndex]])}return $([this[index]])}function append(){for(var newChild,document=getDocument(),k=0;k<arguments.length;k+=1){newChild=k<0||arguments.length<=k?void 0:arguments[k];for(var i=0;i<this.length;i+=1)if("string"==typeof newChild){var tempDiv=document.createElement("div");for(tempDiv.innerHTML=newChild;tempDiv.firstChild;)this[i].appendChild(tempDiv.firstChild)}else if(newChild instanceof Dom7)for(var j=0;j<newChild.length;j+=1)this[i].appendChild(newChild[j]);else this[i].appendChild(newChild)}return this}function prepend(newChild){var document=getDocument(),i,j;for(i=0;i<this.length;i+=1)if("string"==typeof newChild){var tempDiv=document.createElement("div");for(tempDiv.innerHTML=newChild,j=tempDiv.childNodes.length-1;j>=0;j-=1)this[i].insertBefore(tempDiv.childNodes[j],this[i].childNodes[0])}else if(newChild instanceof Dom7)for(j=0;j<newChild.length;j+=1)this[i].insertBefore(newChild[j],this[i].childNodes[0]);else this[i].insertBefore(newChild,this[i].childNodes[0]);return this}function next(selector){return this.length>0?selector?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(selector)?$([this[0].nextElementSibling]):$([]):this[0].nextElementSibling?$([this[0].nextElementSibling]):$([]):$([])}function nextAll(selector){var nextEls=[],el=this[0];if(!el)return $([]);for(;el.nextElementSibling;){var _next=el.nextElementSibling;selector?$(_next).is(selector)&&nextEls.push(_next):nextEls.push(_next),el=_next}return $(nextEls)}function prev(selector){if(this.length>0){var el=this[0];return selector?el.previousElementSibling&&$(el.previousElementSibling).is(selector)?$([el.previousElementSibling]):$([]):el.previousElementSibling?$([el.previousElementSibling]):$([])}return $([])}function prevAll(selector){var prevEls=[],el=this[0];if(!el)return $([]);for(;el.previousElementSibling;){var _prev=el.previousElementSibling;selector?$(_prev).is(selector)&&prevEls.push(_prev):prevEls.push(_prev),el=_prev}return $(prevEls)}function parent(selector){for(var parents=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(selector?$(this[i].parentNode).is(selector)&&parents.push(this[i].parentNode):parents.push(this[i].parentNode));return $(parents)}function parents(selector){for(var parents=[],i=0;i<this.length;i+=1)for(var _parent=this[i].parentNode;_parent;)selector?$(_parent).is(selector)&&parents.push(_parent):parents.push(_parent),_parent=_parent.parentNode;return $(parents)}function closest(selector){var closest=this;return void 0===selector?$([]):(closest.is(selector)||(closest=closest.parents(selector).eq(0)),closest)}function find(selector){for(var foundElements=[],i=0;i<this.length;i+=1){try{var found=this[i].querySelectorAll(selector)}catch(err){console.log(selector)}for(var j=0;j<found.length;j+=1)foundElements.push(found[j])}return $(foundElements)}function children(selector){for(var children=[],i=0;i<this.length;i+=1)for(var childNodes=this[i].children,j=0;j<childNodes.length;j+=1)selector&&!$(childNodes[j]).is(selector)||children.push(childNodes[j]);return $(children)}function remove(){for(var i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this}$.fn=Dom7.prototype;var Methods={addClass:addClass,removeClass:removeClass,hasClass:hasClass,toggleClass:toggleClass,attr:attr,removeAttr:removeAttr,transform:transform,transition:transition$1,on:on,off:off,trigger:trigger,transitionEnd:transitionEnd$1,outerWidth:outerWidth,outerHeight:outerHeight,styles:styles,offset:offset,css:css,each:each,html:html,text:text,is:is,index:index,eq:eq,append:append,prepend:prepend,next:next,nextAll:nextAll,prev:prev,prevAll:prevAll,parent:parent,parents:parents,closest:closest,find:find,children:children,filter:filter,remove:remove},support,device,browser;function deleteProps(obj){var object=obj;Object.keys(object).forEach((function(key){try{object[key]=null}catch(e){}try{delete object[key]}catch(e){}}))}function nextTick(callback,delay){return void 0===delay&&(delay=0),setTimeout(callback,delay)}function now(){return Date.now()}function getComputedStyle$1(el){var window=getWindow(),style;return window.getComputedStyle&&(style=window.getComputedStyle(el,null)),!style&&el.currentStyle&&(style=el.currentStyle),style||(style=el.style),style}function getTranslate(el,axis){void 0===axis&&(axis="x");var window=getWindow(),matrix,curTransform,transformMatrix,curStyle=getComputedStyle$1(el);return window.WebKitCSSMatrix?((curTransform=curStyle.transform||curStyle.webkitTransform).split(",").length>6&&(curTransform=curTransform.split(", ").map((function(a){return a.replace(",",".")})).join(", ")),transformMatrix=new window.WebKitCSSMatrix("none"===curTransform?"":curTransform)):matrix=(transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===axis&&(curTransform=window.WebKitCSSMatrix?transformMatrix.m41:16===matrix.length?parseFloat(matrix[12]):parseFloat(matrix[4])),"y"===axis&&(curTransform=window.WebKitCSSMatrix?transformMatrix.m42:16===matrix.length?parseFloat(matrix[13]):parseFloat(matrix[5])),curTransform||0}function isObject(o){return"object"==typeof o&&null!==o&&o.constructor&&"Object"===Object.prototype.toString.call(o).slice(8,-1)}function extend(){for(var to=Object(arguments.length<=0?void 0:arguments[0]),noExtend=["__proto__","constructor","prototype"],i=1;i<arguments.length;i+=1){var nextSource=i<0||arguments.length<=i?void 0:arguments[i];if(null!=nextSource)for(var keysArray=Object.keys(Object(nextSource)).filter((function(key){return noExtend.indexOf(key)<0})),nextIndex=0,len=keysArray.length;nextIndex<len;nextIndex+=1){var nextKey=keysArray[nextIndex],desc=Object.getOwnPropertyDescriptor(nextSource,nextKey);void 0!==desc&&desc.enumerable&&(isObject(to[nextKey])&&isObject(nextSource[nextKey])?nextSource[nextKey].__swiper__?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey]):!isObject(to[nextKey])&&isObject(nextSource[nextKey])?(to[nextKey]={},nextSource[nextKey].__swiper__?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey])):to[nextKey]=nextSource[nextKey])}}return to}function bindModuleMethods(instance,obj){Object.keys(obj).forEach((function(key){isObject(obj[key])&&Object.keys(obj[key]).forEach((function(subKey){"function"==typeof obj[key][subKey]&&(obj[key][subKey]=obj[key][subKey].bind(instance))})),instance[key]=obj[key]}))}function classesToSelector(classes){return void 0===classes&&(classes=""),"."+classes.trim().replace(/([\.:\/])/g,"\\$1").replace(/ /g,".")}function calcSupport(){var window=getWindow(),document=getDocument();return{touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),pointerEvents:!!window.PointerEvent&&"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>=0,observer:function checkObserver(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function checkPassiveListener(){var supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function get(){supportsPassive=!0}});window.addEventListener("testPassiveListener",null,opts)}catch(e){}return supportsPassive}(),gestures:function checkGestures(){return"ongesturestart"in window}()}}function getSupport(){return support||(support=calcSupport()),support}function calcDevice(_temp){var _ref,userAgent=(void 0===_temp?{}:_temp).userAgent,support=getSupport(),window=getWindow(),platform=window.navigator.platform,ua=userAgent||window.navigator.userAgent,device={ios:!1,android:!1},screenWidth=window.screen.width,screenHeight=window.screen.height,android=ua.match(/(Android);?[\s\/]+([\d.]+)?/),ipad=ua.match(/(iPad).*OS\s([\d_]+)/),ipod=ua.match(/(iPod)(.*OS\s([\d_]+))?/),iphone=!ipad&&ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/),windows="Win32"===platform,macos="MacIntel"===platform,iPadScreens=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!ipad&&macos&&support.touch&&iPadScreens.indexOf(screenWidth+"x"+screenHeight)>=0&&((ipad=ua.match(/(Version)\/([\d.]+)/))||(ipad=[0,1,"13_0_0"]),macos=!1),android&&!windows&&(device.os="android",device.android=!0),(ipad||iphone||ipod)&&(device.os="ios",device.ios=!0),device}function getDevice(overrides){return void 0===overrides&&(overrides={}),device||(device=calcDevice(overrides)),device}function calcBrowser(){var window=getWindow();function isSafari(){var ua=window.navigator.userAgent.toLowerCase();return ua.indexOf("safari")>=0&&ua.indexOf("chrome")<0&&ua.indexOf("android")<0}return{isEdge:!!window.navigator.userAgent.match(/Edge/g),isSafari:isSafari(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}Object.keys(Methods).forEach((function(methodName){Object.defineProperty($.fn,methodName,{value:Methods[methodName],writable:!0})}));var supportsResizeObserver=function supportsResizeObserver(){var window;return void 0!==getWindow().ResizeObserver},Resize={name:"resize",create:function create(){var swiper=this;extend(swiper,{resize:{observer:null,createObserver:function createObserver(){swiper&&!swiper.destroyed&&swiper.initialized&&(swiper.resize.observer=new ResizeObserver((function(entries){var width=swiper.width,height=swiper.height,newWidth=width,newHeight=height;entries.forEach((function(_ref){var contentBoxSize=_ref.contentBoxSize,contentRect=_ref.contentRect,target=_ref.target;target&&target!==swiper.el||(newWidth=contentRect?contentRect.width:(contentBoxSize[0]||contentBoxSize).inlineSize,newHeight=contentRect?contentRect.height:(contentBoxSize[0]||contentBoxSize).blockSize)})),newWidth===width&&newHeight===height||swiper.resize.resizeHandler()})),swiper.resize.observer.observe(swiper.el))},removeObserver:function removeObserver(){swiper.resize.observer&&swiper.resize.observer.unobserve&&swiper.el&&(swiper.resize.observer.unobserve(swiper.el),swiper.resize.observer=null)},resizeHandler:function resizeHandler(){swiper&&!swiper.destroyed&&swiper.initialized&&(swiper.emit("beforeResize"),swiper.emit("resize"))},orientationChangeHandler:function orientationChangeHandler(){swiper&&!swiper.destroyed&&swiper.initialized&&swiper.emit("orientationchange")}}})},on:{init:function init(swiper){var window=getWindow();swiper.params.resizeObserver&&supportsResizeObserver()?swiper.resize.createObserver():(window.addEventListener("resize",swiper.resize.resizeHandler),window.addEventListener("orientationchange",swiper.resize.orientationChangeHandler))},destroy:function destroy(swiper){var window=getWindow();swiper.resize.removeObserver(),window.removeEventListener("resize",swiper.resize.resizeHandler),window.removeEventListener("orientationchange",swiper.resize.orientationChangeHandler)}}},Observer={attach:function attach(target,options){void 0===options&&(options={});var window=getWindow(),swiper=this,ObserverFunc,observer=new(window.MutationObserver||window.WebkitMutationObserver)((function(mutations){if(1!==mutations.length){var observerUpdate=function observerUpdate(){swiper.emit("observerUpdate",mutations[0])};window.requestAnimationFrame?window.requestAnimationFrame(observerUpdate):window.setTimeout(observerUpdate,0)}else swiper.emit("observerUpdate",mutations[0])}));observer.observe(target,{attributes:void 0===options.attributes||options.attributes,childList:void 0===options.childList||options.childList,characterData:void 0===options.characterData||options.characterData}),swiper.observer.observers.push(observer)},init:function init(){var swiper=this;if(this.support.observer&&this.params.observer){if(this.params.observeParents)for(var containerParents=this.$el.parents(),i=0;i<containerParents.length;i+=1)this.observer.attach(containerParents[i]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function destroy(){var swiper=this;this.observer.observers.forEach((function(observer){observer.disconnect()})),this.observer.observers=[]}},Observer$1={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function create(){var swiper=this;bindModuleMethods(this,{observer:_extends({},Observer,{observers:[]})})},on:{init:function init(swiper){swiper.observer.init()},destroy:function destroy(swiper){swiper.observer.destroy()}}},modular,eventsEmitter,update,translate,transition,slide,loop,grabCursor,manipulation;function updateSize(){var swiper=this,width,height,$el=this.$el;width=void 0!==this.params.width&&null!==this.params.width?this.params.width:$el[0].clientWidth,height=void 0!==this.params.height&&null!==this.params.height?this.params.height:$el[0].clientHeight,0===width&&this.isHorizontal()||0===height&&this.isVertical()||(width=width-parseInt($el.css("padding-left")||0,10)-parseInt($el.css("padding-right")||0,10),height=height-parseInt($el.css("padding-top")||0,10)-parseInt($el.css("padding-bottom")||0,10),Number.isNaN(width)&&(width=0),Number.isNaN(height)&&(height=0),extend(this,{width:width,height:height,size:this.isHorizontal()?width:height}))}function updateSlides(){var swiper=this,getDirectionLabel=function getDirectionLabel(property){return swiper.isHorizontal()?property:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[property]},getDirectionPropertyValue=function getDirectionPropertyValue(node,label){return parseFloat(node.getPropertyValue(getDirectionLabel(label))||0)},params=swiper.params,$wrapperEl=swiper.$wrapperEl,swiperSize=swiper.size,rtl=swiper.rtlTranslate,wrongRTL=swiper.wrongRTL,isVirtual=swiper.virtual&&params.virtual.enabled,previousSlidesLength=isVirtual?swiper.virtual.slides.length:swiper.slides.length,slides=$wrapperEl.children("."+swiper.params.slideClass),slidesLength=isVirtual?swiper.virtual.slides.length:slides.length,snapGrid=[],slidesGrid=[],slidesSizesGrid=[];function slidesForMargin(slideEl,slideIndex){return!params.cssMode||slideIndex!==slides.length-1}var offsetBefore=params.slidesOffsetBefore;"function"==typeof offsetBefore&&(offsetBefore=params.slidesOffsetBefore.call(swiper));var offsetAfter=params.slidesOffsetAfter;"function"==typeof offsetAfter&&(offsetAfter=params.slidesOffsetAfter.call(swiper));var previousSnapGridLength=swiper.snapGrid.length,previousSlidesGridLength=swiper.slidesGrid.length,spaceBetween=params.spaceBetween,slidePosition=-offsetBefore,prevSlideSize=0,index=0;if(void 0!==swiperSize){var slidesNumberEvenToRows,slideSize;"string"==typeof spaceBetween&&spaceBetween.indexOf("%")>=0&&(spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*swiperSize),swiper.virtualSize=-spaceBetween,rtl?slides.css({marginLeft:"",marginTop:""}):slides.css({marginRight:"",marginBottom:""}),params.slidesPerColumn>1&&(slidesNumberEvenToRows=Math.floor(slidesLength/params.slidesPerColumn)===slidesLength/swiper.params.slidesPerColumn?slidesLength:Math.ceil(slidesLength/params.slidesPerColumn)*params.slidesPerColumn,"auto"!==params.slidesPerView&&"row"===params.slidesPerColumnFill&&(slidesNumberEvenToRows=Math.max(slidesNumberEvenToRows,params.slidesPerView*params.slidesPerColumn)));for(var slidesPerColumn=params.slidesPerColumn,slidesPerRow=slidesNumberEvenToRows/slidesPerColumn,numFullColumns=Math.floor(slidesLength/params.slidesPerColumn),i=0,newSlidesGrid,_$wrapperEl$css,_$wrapperEl$css2;i<slidesLength;i+=1){slideSize=0;var slide=slides.eq(i);if(params.slidesPerColumn>1){var newSlideOrderIndex=void 0,column=void 0,row=void 0;if("row"===params.slidesPerColumnFill&&params.slidesPerGroup>1){var groupIndex=Math.floor(i/(params.slidesPerGroup*params.slidesPerColumn)),slideIndexInGroup=i-params.slidesPerColumn*params.slidesPerGroup*groupIndex,columnsInGroup=0===groupIndex?params.slidesPerGroup:Math.min(Math.ceil((slidesLength-groupIndex*slidesPerColumn*params.slidesPerGroup)/slidesPerColumn),params.slidesPerGroup);newSlideOrderIndex=(column=slideIndexInGroup-(row=Math.floor(slideIndexInGroup/columnsInGroup))*columnsInGroup+groupIndex*params.slidesPerGroup)+row*slidesNumberEvenToRows/slidesPerColumn,slide.css({"-webkit-box-ordinal-group":newSlideOrderIndex,"-moz-box-ordinal-group":newSlideOrderIndex,"-ms-flex-order":newSlideOrderIndex,"-webkit-order":newSlideOrderIndex,order:newSlideOrderIndex})}else"column"===params.slidesPerColumnFill?(row=i-(column=Math.floor(i/slidesPerColumn))*slidesPerColumn,(column>numFullColumns||column===numFullColumns&&row===slidesPerColumn-1)&&(row+=1)>=slidesPerColumn&&(row=0,column+=1)):column=i-(row=Math.floor(i/slidesPerRow))*slidesPerRow;slide.css(getDirectionLabel("margin-top"),0!==row&&params.spaceBetween&&params.spaceBetween+"px")}if("none"!==slide.css("display")){if("auto"===params.slidesPerView){var slideStyles=getComputedStyle(slide[0]),currentTransform=slide[0].style.transform,currentWebKitTransform=slide[0].style.webkitTransform;if(currentTransform&&(slide[0].style.transform="none"),currentWebKitTransform&&(slide[0].style.webkitTransform="none"),params.roundLengths)slideSize=swiper.isHorizontal()?slide.outerWidth(!0):slide.outerHeight(!0);else{var width=getDirectionPropertyValue(slideStyles,"width"),paddingLeft=getDirectionPropertyValue(slideStyles,"padding-left"),paddingRight=getDirectionPropertyValue(slideStyles,"padding-right"),marginLeft=getDirectionPropertyValue(slideStyles,"margin-left"),marginRight=getDirectionPropertyValue(slideStyles,"margin-right"),boxSizing=slideStyles.getPropertyValue("box-sizing");if(boxSizing&&"border-box"===boxSizing)slideSize=width+marginLeft+marginRight;else{var _slide$=slide[0],clientWidth=_slide$.clientWidth,offsetWidth;slideSize=width+paddingLeft+paddingRight+marginLeft+marginRight+(_slide$.offsetWidth-clientWidth)}}currentTransform&&(slide[0].style.transform=currentTransform),currentWebKitTransform&&(slide[0].style.webkitTransform=currentWebKitTransform),params.roundLengths&&(slideSize=Math.floor(slideSize))}else slideSize=(swiperSize-(params.slidesPerView-1)*spaceBetween)/params.slidesPerView,params.roundLengths&&(slideSize=Math.floor(slideSize)),slides[i]&&(slides[i].style[getDirectionLabel("width")]=slideSize+"px");slides[i]&&(slides[i].swiperSlideSize=slideSize),slidesSizesGrid.push(slideSize),params.centeredSlides?(slidePosition=slidePosition+slideSize/2+prevSlideSize/2+spaceBetween,0===prevSlideSize&&0!==i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),0===i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),Math.abs(slidePosition)<.001&&(slidePosition=0),params.roundLengths&&(slidePosition=Math.floor(slidePosition)),index%params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition)):(params.roundLengths&&(slidePosition=Math.floor(slidePosition)),(index-Math.min(swiper.params.slidesPerGroupSkip,index))%swiper.params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition),slidePosition=slidePosition+slideSize+spaceBetween),swiper.virtualSize+=slideSize+spaceBetween,prevSlideSize=slideSize,index+=1}}if(swiper.virtualSize=Math.max(swiper.virtualSize,swiperSize)+offsetAfter,rtl&&wrongRTL&&("slide"===params.effect||"coverflow"===params.effect)&&$wrapperEl.css({width:swiper.virtualSize+params.spaceBetween+"px"}),params.setWrapperSize)$wrapperEl.css(((_$wrapperEl$css={})[getDirectionLabel("width")]=swiper.virtualSize+params.spaceBetween+"px",_$wrapperEl$css));if(params.slidesPerColumn>1)if(swiper.virtualSize=(slideSize+params.spaceBetween)*slidesNumberEvenToRows,swiper.virtualSize=Math.ceil(swiper.virtualSize/params.slidesPerColumn)-params.spaceBetween,$wrapperEl.css(((_$wrapperEl$css2={})[getDirectionLabel("width")]=swiper.virtualSize+params.spaceBetween+"px",_$wrapperEl$css2)),params.centeredSlides){newSlidesGrid=[];for(var _i=0;_i<snapGrid.length;_i+=1){var slidesGridItem=snapGrid[_i];params.roundLengths&&(slidesGridItem=Math.floor(slidesGridItem)),snapGrid[_i]<swiper.virtualSize+snapGrid[0]&&newSlidesGrid.push(slidesGridItem)}snapGrid=newSlidesGrid}if(!params.centeredSlides){newSlidesGrid=[];for(var _i2=0;_i2<snapGrid.length;_i2+=1){var _slidesGridItem=snapGrid[_i2];params.roundLengths&&(_slidesGridItem=Math.floor(_slidesGridItem)),snapGrid[_i2]<=swiper.virtualSize-swiperSize&&newSlidesGrid.push(_slidesGridItem)}snapGrid=newSlidesGrid,Math.floor(swiper.virtualSize-swiperSize)-Math.floor(snapGrid[snapGrid.length-1])>1&&snapGrid.push(swiper.virtualSize-swiperSize)}if(0===snapGrid.length&&(snapGrid=[0]),0!==params.spaceBetween){var _slides$filter$css,key=swiper.isHorizontal()&&rtl?"marginLeft":getDirectionLabel("marginRight");slides.filter(slidesForMargin).css(((_slides$filter$css={})[key]=spaceBetween+"px",_slides$filter$css))}if(params.centeredSlides&&params.centeredSlidesBounds){var allSlidesSize=0;slidesSizesGrid.forEach((function(slideSizeValue){allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0)}));var maxSnap=(allSlidesSize-=params.spaceBetween)-swiperSize;snapGrid=snapGrid.map((function(snap){return snap<0?-offsetBefore:snap>maxSnap?maxSnap+offsetAfter:snap}))}if(params.centerInsufficientSlides){var _allSlidesSize=0;if(slidesSizesGrid.forEach((function(slideSizeValue){_allSlidesSize+=slideSizeValue+(params.spaceBetween?params.spaceBetween:0)})),(_allSlidesSize-=params.spaceBetween)<swiperSize){var allSlidesOffset=(swiperSize-_allSlidesSize)/2;snapGrid.forEach((function(snap,snapIndex){snapGrid[snapIndex]=snap-allSlidesOffset})),slidesGrid.forEach((function(snap,snapIndex){slidesGrid[snapIndex]=snap+allSlidesOffset}))}}extend(swiper,{slides:slides,snapGrid:snapGrid,slidesGrid:slidesGrid,slidesSizesGrid:slidesSizesGrid}),slidesLength!==previousSlidesLength&&swiper.emit("slidesLengthChange"),snapGrid.length!==previousSnapGridLength&&(swiper.params.watchOverflow&&swiper.checkOverflow(),swiper.emit("snapGridLengthChange")),slidesGrid.length!==previousSlidesGridLength&&swiper.emit("slidesGridLengthChange"),(params.watchSlidesProgress||params.watchSlidesVisibility)&&swiper.updateSlidesOffset()}}function updateAutoHeight(speed){var swiper=this,activeSlides=[],newHeight=0,i;if("number"==typeof speed?this.setTransition(speed):!0===speed&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)this.visibleSlides.each((function(slide){activeSlides.push(slide)}));else for(i=0;i<Math.ceil(this.params.slidesPerView);i+=1){var index=this.activeIndex+i;if(index>this.slides.length)break;activeSlides.push(this.slides.eq(index)[0])}else activeSlides.push(this.slides.eq(this.activeIndex)[0]);for(i=0;i<activeSlides.length;i+=1)if(void 0!==activeSlides[i]){var height=activeSlides[i].offsetHeight;newHeight=height>newHeight?height:newHeight}newHeight&&this.$wrapperEl.css("height",newHeight+"px")}function updateSlidesOffset(){for(var swiper=this,slides=this.slides,i=0;i<slides.length;i+=1)slides[i].swiperSlideOffset=this.isHorizontal()?slides[i].offsetLeft:slides[i].offsetTop}function updateSlidesProgress(translate){void 0===translate&&(translate=this&&this.translate||0);var swiper=this,params=this.params,slides=this.slides,rtl=this.rtlTranslate;if(0!==slides.length){void 0===slides[0].swiperSlideOffset&&this.updateSlidesOffset();var offsetCenter=-translate;rtl&&(offsetCenter=translate),slides.removeClass(params.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var i=0;i<slides.length;i+=1){var slide=slides[i],slideProgress=(offsetCenter+(params.centeredSlides?this.minTranslate():0)-slide.swiperSlideOffset)/(slide.swiperSlideSize+params.spaceBetween);if(params.watchSlidesVisibility||params.centeredSlides&&params.autoHeight){var slideBefore=-(offsetCenter-slide.swiperSlideOffset),slideAfter=slideBefore+this.slidesSizesGrid[i],isVisible;(slideBefore>=0&&slideBefore<this.size-1||slideAfter>1&&slideAfter<=this.size||slideBefore<=0&&slideAfter>=this.size)&&(this.visibleSlides.push(slide),this.visibleSlidesIndexes.push(i),slides.eq(i).addClass(params.slideVisibleClass))}slide.progress=rtl?-slideProgress:slideProgress}this.visibleSlides=$(this.visibleSlides)}}function updateProgress(translate){var swiper=this;if(void 0===translate){var multiplier=this.rtlTranslate?-1:1;translate=this&&this.translate&&this.translate*multiplier||0}var params=this.params,translatesDiff=this.maxTranslate()-this.minTranslate(),progress=this.progress,isBeginning=this.isBeginning,isEnd=this.isEnd,wasBeginning=isBeginning,wasEnd=isEnd;0===translatesDiff?(progress=0,isBeginning=!0,isEnd=!0):(isBeginning=(progress=(translate-this.minTranslate())/translatesDiff)<=0,isEnd=progress>=1),extend(this,{progress:progress,isBeginning:isBeginning,isEnd:isEnd}),(params.watchSlidesProgress||params.watchSlidesVisibility||params.centeredSlides&&params.autoHeight)&&this.updateSlidesProgress(translate),isBeginning&&!wasBeginning&&this.emit("reachBeginning toEdge"),isEnd&&!wasEnd&&this.emit("reachEnd toEdge"),(wasBeginning&&!isBeginning||wasEnd&&!isEnd)&&this.emit("fromEdge"),this.emit("progress",progress)}function updateSlidesClasses(){var swiper=this,slides=this.slides,params=this.params,$wrapperEl=this.$wrapperEl,activeIndex=this.activeIndex,realIndex=this.realIndex,isVirtual=this.virtual&&params.virtual.enabled,activeSlide;slides.removeClass(params.slideActiveClass+" "+params.slideNextClass+" "+params.slidePrevClass+" "+params.slideDuplicateActiveClass+" "+params.slideDuplicateNextClass+" "+params.slideDuplicatePrevClass),(activeSlide=isVirtual?this.$wrapperEl.find("."+params.slideClass+'[data-swiper-slide-index="'+activeIndex+'"]'):slides.eq(activeIndex)).addClass(params.slideActiveClass),params.loop&&(activeSlide.hasClass(params.slideDuplicateClass)?$wrapperEl.children("."+params.slideClass+":not(."+params.slideDuplicateClass+')[data-swiper-slide-index="'+realIndex+'"]').addClass(params.slideDuplicateActiveClass):$wrapperEl.children("."+params.slideClass+"."+params.slideDuplicateClass+'[data-swiper-slide-index="'+realIndex+'"]').addClass(params.slideDuplicateActiveClass));var nextSlide=activeSlide.nextAll("."+params.slideClass).eq(0).addClass(params.slideNextClass);params.loop&&0===nextSlide.length&&(nextSlide=slides.eq(0)).addClass(params.slideNextClass);var prevSlide=activeSlide.prevAll("."+params.slideClass).eq(0).addClass(params.slidePrevClass);params.loop&&0===prevSlide.length&&(prevSlide=slides.eq(-1)).addClass(params.slidePrevClass),params.loop&&(nextSlide.hasClass(params.slideDuplicateClass)?$wrapperEl.children("."+params.slideClass+":not(."+params.slideDuplicateClass+')[data-swiper-slide-index="'+nextSlide.attr("data-swiper-slide-index")+'"]').addClass(params.slideDuplicateNextClass):$wrapperEl.children("."+params.slideClass+"."+params.slideDuplicateClass+'[data-swiper-slide-index="'+nextSlide.attr("data-swiper-slide-index")+'"]').addClass(params.slideDuplicateNextClass),prevSlide.hasClass(params.slideDuplicateClass)?$wrapperEl.children("."+params.slideClass+":not(."+params.slideDuplicateClass+')[data-swiper-slide-index="'+prevSlide.attr("data-swiper-slide-index")+'"]').addClass(params.slideDuplicatePrevClass):$wrapperEl.children("."+params.slideClass+"."+params.slideDuplicateClass+'[data-swiper-slide-index="'+prevSlide.attr("data-swiper-slide-index")+'"]').addClass(params.slideDuplicatePrevClass)),this.emitSlidesClasses()}function updateActiveIndex(newActiveIndex){var swiper=this,translate=this.rtlTranslate?this.translate:-this.translate,slidesGrid=this.slidesGrid,snapGrid=this.snapGrid,params=this.params,previousIndex=this.activeIndex,previousRealIndex=this.realIndex,previousSnapIndex=this.snapIndex,activeIndex=newActiveIndex,snapIndex;if(void 0===activeIndex){for(var i=0;i<slidesGrid.length;i+=1)void 0!==slidesGrid[i+1]?translate>=slidesGrid[i]&&translate<slidesGrid[i+1]-(slidesGrid[i+1]-slidesGrid[i])/2?activeIndex=i:translate>=slidesGrid[i]&&translate<slidesGrid[i+1]&&(activeIndex=i+1):translate>=slidesGrid[i]&&(activeIndex=i);params.normalizeSlideIndex&&(activeIndex<0||void 0===activeIndex)&&(activeIndex=0)}if(snapGrid.indexOf(translate)>=0)snapIndex=snapGrid.indexOf(translate);else{var skip=Math.min(params.slidesPerGroupSkip,activeIndex);snapIndex=skip+Math.floor((activeIndex-skip)/params.slidesPerGroup)}if(snapIndex>=snapGrid.length&&(snapIndex=snapGrid.length-1),activeIndex!==previousIndex){var realIndex=parseInt(this.slides.eq(activeIndex).attr("data-swiper-slide-index")||activeIndex,10);extend(this,{snapIndex:snapIndex,realIndex:realIndex,previousIndex:previousIndex,activeIndex:activeIndex}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),previousRealIndex!==realIndex&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else snapIndex!==previousSnapIndex&&(this.snapIndex=snapIndex,this.emit("snapIndexChange"))}function updateClickedSlide(e){var swiper=this,params=this.params,slide=$(e.target).closest("."+params.slideClass)[0],slideFound=!1,slideIndex;if(slide)for(var i=0;i<this.slides.length;i+=1)if(this.slides[i]===slide){slideFound=!0,slideIndex=i;break}if(!slide||!slideFound)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=slide,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt($(slide).attr("data-swiper-slide-index"),10):this.clickedIndex=slideIndex,params.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}function getSwiperTranslate(axis){void 0===axis&&(axis=this.isHorizontal()?"x":"y");var swiper=this,params=this.params,rtl=this.rtlTranslate,translate=this.translate,$wrapperEl=this.$wrapperEl;if(params.virtualTranslate)return rtl?-translate:translate;if(params.cssMode)return translate;var currentTranslate=getTranslate($wrapperEl[0],axis);return rtl&&(currentTranslate=-currentTranslate),currentTranslate||0}function setTranslate(translate,byController){var swiper=this,rtl=this.rtlTranslate,params=this.params,$wrapperEl=this.$wrapperEl,wrapperEl=this.wrapperEl,progress=this.progress,x=0,y=0,z=0,newProgress;this.isHorizontal()?x=rtl?-translate:translate:y=translate,params.roundLengths&&(x=Math.floor(x),y=Math.floor(y)),params.cssMode?wrapperEl[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-x:-y:params.virtualTranslate||$wrapperEl.transform("translate3d("+x+"px, "+y+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?x:y;var translatesDiff=this.maxTranslate()-this.minTranslate();(newProgress=0===translatesDiff?0:(translate-this.minTranslate())/translatesDiff)!==progress&&this.updateProgress(translate),this.emit("setTranslate",this.translate,byController)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(translate,speed,runCallbacks,translateBounds,internal){void 0===translate&&(translate=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===translateBounds&&(translateBounds=!0);var swiper=this,params=swiper.params,wrapperEl=swiper.wrapperEl;if(swiper.animating&&params.preventInteractionOnTransition)return!1;var minTranslate=swiper.minTranslate(),maxTranslate=swiper.maxTranslate(),newTranslate;if(newTranslate=translateBounds&&translate>minTranslate?minTranslate:translateBounds&&translate<maxTranslate?maxTranslate:translate,swiper.updateProgress(newTranslate),params.cssMode){var isH=swiper.isHorizontal(),_wrapperEl$scrollTo;if(0===speed)wrapperEl[isH?"scrollLeft":"scrollTop"]=-newTranslate;else if(wrapperEl.scrollTo)wrapperEl.scrollTo(((_wrapperEl$scrollTo={})[isH?"left":"top"]=-newTranslate,_wrapperEl$scrollTo.behavior="smooth",_wrapperEl$scrollTo));else wrapperEl[isH?"scrollLeft":"scrollTop"]=-newTranslate;return!0}return 0===speed?(swiper.setTransition(0),swiper.setTranslate(newTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionEnd"))):(swiper.setTransition(speed),swiper.setTranslate(newTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionStart")),swiper.animating||(swiper.animating=!0,swiper.onTranslateToWrapperTransitionEnd||(swiper.onTranslateToWrapperTransitionEnd=function transitionEnd(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.$wrapperEl[0].removeEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd),swiper.$wrapperEl[0].removeEventListener("webkitTransitionEnd",swiper.onTranslateToWrapperTransitionEnd),swiper.onTranslateToWrapperTransitionEnd=null,delete swiper.onTranslateToWrapperTransitionEnd,runCallbacks&&swiper.emit("transitionEnd"))}),swiper.$wrapperEl[0].addEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd),swiper.$wrapperEl[0].addEventListener("webkitTransitionEnd",swiper.onTranslateToWrapperTransitionEnd))),!0}function setTransition(duration,byController){var swiper=this;this.params.cssMode||this.$wrapperEl.transition(duration),this.emit("setTransition",duration,byController)}function transitionStart(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,activeIndex=this.activeIndex,params=this.params,previousIndex=this.previousIndex;if(!params.cssMode){params.autoHeight&&this.updateAutoHeight();var dir=direction;if(dir||(dir=activeIndex>previousIndex?"next":activeIndex<previousIndex?"prev":"reset"),this.emit("transitionStart"),runCallbacks&&activeIndex!==previousIndex){if("reset"===dir)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===dir?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}}function transitionEnd(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,activeIndex=this.activeIndex,previousIndex=this.previousIndex,params=this.params;if(this.animating=!1,!params.cssMode){this.setTransition(0);var dir=direction;if(dir||(dir=activeIndex>previousIndex?"next":activeIndex<previousIndex?"prev":"reset"),this.emit("transitionEnd"),runCallbacks&&activeIndex!==previousIndex){if("reset"===dir)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===dir?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}function slideTo(index,speed,runCallbacks,internal){if(void 0===index&&(index=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),"number"!=typeof index&&"string"!=typeof index)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof index+"] given.");if("string"==typeof index){var indexAsNumber=parseInt(index,10),isValidNumber;if(!isFinite(indexAsNumber))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+index+"] given.");index=indexAsNumber}var swiper=this,slideIndex=index;slideIndex<0&&(slideIndex=0);var params=swiper.params,snapGrid=swiper.snapGrid,slidesGrid=swiper.slidesGrid,previousIndex=swiper.previousIndex,activeIndex=swiper.activeIndex,rtl=swiper.rtlTranslate,wrapperEl=swiper.wrapperEl;if(swiper.animating&&params.preventInteractionOnTransition)return!1;var skip=Math.min(swiper.params.slidesPerGroupSkip,slideIndex),snapIndex=skip+Math.floor((slideIndex-skip)/swiper.params.slidesPerGroup);snapIndex>=snapGrid.length&&(snapIndex=snapGrid.length-1),(activeIndex||params.initialSlide||0)===(previousIndex||0)&&runCallbacks&&swiper.emit("beforeSlideChangeStart");var translate=-snapGrid[snapIndex],direction;if(swiper.updateProgress(translate),params.normalizeSlideIndex)for(var i=0;i<slidesGrid.length;i+=1){var normalizedTranslate=-Math.floor(100*translate),normalizedGird=Math.floor(100*slidesGrid[i]),normalizedGridNext=Math.floor(100*slidesGrid[i+1]);void 0!==slidesGrid[i+1]?normalizedTranslate>=normalizedGird&&normalizedTranslate<normalizedGridNext-(normalizedGridNext-normalizedGird)/2?slideIndex=i:normalizedTranslate>=normalizedGird&&normalizedTranslate<normalizedGridNext&&(slideIndex=i+1):normalizedTranslate>=normalizedGird&&(slideIndex=i)}if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&translate<swiper.translate&&translate<swiper.minTranslate())return!1;if(!swiper.allowSlidePrev&&translate>swiper.translate&&translate>swiper.maxTranslate()&&(activeIndex||0)!==slideIndex)return!1}if(direction=slideIndex>activeIndex?"next":slideIndex<activeIndex?"prev":"reset",rtl&&-translate===swiper.translate||!rtl&&translate===swiper.translate)return swiper.updateActiveIndex(slideIndex),params.autoHeight&&swiper.updateAutoHeight(),swiper.updateSlidesClasses(),"slide"!==params.effect&&swiper.setTranslate(translate),"reset"!==direction&&(swiper.transitionStart(runCallbacks,direction),swiper.transitionEnd(runCallbacks,direction)),!1;if(params.cssMode){var isH=swiper.isHorizontal(),t=-translate,_wrapperEl$scrollTo;if(rtl&&(t=wrapperEl.scrollWidth-wrapperEl.offsetWidth-t),0===speed)wrapperEl[isH?"scrollLeft":"scrollTop"]=t;else if(wrapperEl.scrollTo)wrapperEl.scrollTo(((_wrapperEl$scrollTo={})[isH?"left":"top"]=t,_wrapperEl$scrollTo.behavior="smooth",_wrapperEl$scrollTo));else wrapperEl[isH?"scrollLeft":"scrollTop"]=t;return!0}return 0===speed?(swiper.setTransition(0),swiper.setTranslate(translate),swiper.updateActiveIndex(slideIndex),swiper.updateSlidesClasses(),swiper.emit("beforeTransitionStart",speed,internal),swiper.transitionStart(runCallbacks,direction),swiper.transitionEnd(runCallbacks,direction)):(swiper.setTransition(speed),swiper.setTranslate(translate),swiper.updateActiveIndex(slideIndex),swiper.updateSlidesClasses(),swiper.emit("beforeTransitionStart",speed,internal),swiper.transitionStart(runCallbacks,direction),swiper.animating||(swiper.animating=!0,swiper.onSlideToWrapperTransitionEnd||(swiper.onSlideToWrapperTransitionEnd=function transitionEnd(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.$wrapperEl[0].removeEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd),swiper.$wrapperEl[0].removeEventListener("webkitTransitionEnd",swiper.onSlideToWrapperTransitionEnd),swiper.onSlideToWrapperTransitionEnd=null,delete swiper.onSlideToWrapperTransitionEnd,swiper.transitionEnd(runCallbacks,direction))}),swiper.$wrapperEl[0].addEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd),swiper.$wrapperEl[0].addEventListener("webkitTransitionEnd",swiper.onSlideToWrapperTransitionEnd))),!0}function slideToLoop(index,speed,runCallbacks,internal){void 0===index&&(index=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,newIndex=index;return this.params.loop&&(newIndex+=this.loopedSlides),this.slideTo(newIndex,speed,runCallbacks,internal)}function slideNext(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,params=this.params,animating=this.animating,increment=this.activeIndex<params.slidesPerGroupSkip?1:params.slidesPerGroup;if(params.loop){if(animating&&params.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+increment,speed,runCallbacks,internal)}function slidePrev(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,params=this.params,animating=this.animating,snapGrid=this.snapGrid,slidesGrid=this.slidesGrid,rtlTranslate=this.rtlTranslate,translate;if(params.loop){if(animating&&params.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function normalize(val){return val<0?-Math.floor(Math.abs(val)):Math.floor(val)}var normalizedTranslate=normalize(rtlTranslate?this.translate:-this.translate),normalizedSnapGrid=snapGrid.map((function(val){return normalize(val)}));snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)];var prevSnap=snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)-1],prevIndex;return void 0===prevSnap&&params.cssMode&&snapGrid.forEach((function(snap){!prevSnap&&normalizedTranslate>=snap&&(prevSnap=snap)})),void 0!==prevSnap&&(prevIndex=slidesGrid.indexOf(prevSnap))<0&&(prevIndex=this.activeIndex-1),this.slideTo(prevIndex,speed,runCallbacks,internal)}function slideReset(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this;return this.slideTo(this.activeIndex,speed,runCallbacks,internal)}function slideToClosest(speed,runCallbacks,internal,threshold){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===threshold&&(threshold=.5);var swiper=this,index=this.activeIndex,skip=Math.min(this.params.slidesPerGroupSkip,index),snapIndex=skip+Math.floor((index-skip)/this.params.slidesPerGroup),translate=this.rtlTranslate?this.translate:-this.translate;if(translate>=this.snapGrid[snapIndex]){var currentSnap=this.snapGrid[snapIndex],nextSnap;translate-currentSnap>(this.snapGrid[snapIndex+1]-currentSnap)*threshold&&(index+=this.params.slidesPerGroup)}else{var prevSnap=this.snapGrid[snapIndex-1],_currentSnap;translate-prevSnap<=(this.snapGrid[snapIndex]-prevSnap)*threshold&&(index-=this.params.slidesPerGroup)}return index=Math.max(index,0),index=Math.min(index,this.slidesGrid.length-1),this.slideTo(index,speed,runCallbacks,internal)}function slideToClickedSlide(){var swiper=this,params=swiper.params,$wrapperEl=swiper.$wrapperEl,slidesPerView="auto"===params.slidesPerView?swiper.slidesPerViewDynamic():params.slidesPerView,slideToIndex=swiper.clickedIndex,realIndex;if(params.loop){if(swiper.animating)return;realIndex=parseInt($(swiper.clickedSlide).attr("data-swiper-slide-index"),10),params.centeredSlides?slideToIndex<swiper.loopedSlides-slidesPerView/2||slideToIndex>swiper.slides.length-swiper.loopedSlides+slidesPerView/2?(swiper.loopFix(),slideToIndex=$wrapperEl.children("."+params.slideClass+'[data-swiper-slide-index="'+realIndex+'"]:not(.'+params.slideDuplicateClass+")").eq(0).index(),nextTick((function(){swiper.slideTo(slideToIndex)}))):swiper.slideTo(slideToIndex):slideToIndex>swiper.slides.length-slidesPerView?(swiper.loopFix(),slideToIndex=$wrapperEl.children("."+params.slideClass+'[data-swiper-slide-index="'+realIndex+'"]:not(.'+params.slideDuplicateClass+")").eq(0).index(),nextTick((function(){swiper.slideTo(slideToIndex)}))):swiper.slideTo(slideToIndex)}else swiper.slideTo(slideToIndex)}function loopCreate(){var swiper=this,document=getDocument(),params=swiper.params,$wrapperEl=swiper.$wrapperEl;$wrapperEl.children("."+params.slideClass+"."+params.slideDuplicateClass).remove();var slides=$wrapperEl.children("."+params.slideClass);if(params.loopFillGroupWithBlank){var blankSlidesNum=params.slidesPerGroup-slides.length%params.slidesPerGroup;if(blankSlidesNum!==params.slidesPerGroup){for(var i=0;i<blankSlidesNum;i+=1){var blankNode=$(document.createElement("div")).addClass(params.slideClass+" "+params.slideBlankClass);$wrapperEl.append(blankNode)}slides=$wrapperEl.children("."+params.slideClass)}}"auto"!==params.slidesPerView||params.loopedSlides||(params.loopedSlides=slides.length),swiper.loopedSlides=Math.ceil(parseFloat(params.loopedSlides||params.slidesPerView,10)),swiper.loopedSlides+=params.loopAdditionalSlides,swiper.loopedSlides>slides.length&&(swiper.loopedSlides=slides.length);var prependSlides=[],appendSlides=[];slides.each((function(el,index){var slide=$(el);index<swiper.loopedSlides&&appendSlides.push(el),index<slides.length&&index>=slides.length-swiper.loopedSlides&&prependSlides.push(el),slide.attr("data-swiper-slide-index",index)}));for(var _i=0;_i<appendSlides.length;_i+=1)$wrapperEl.append($(appendSlides[_i].cloneNode(!0)).addClass(params.slideDuplicateClass));for(var _i2=prependSlides.length-1;_i2>=0;_i2-=1)$wrapperEl.prepend($(prependSlides[_i2].cloneNode(!0)).addClass(params.slideDuplicateClass))}function loopFix(){var swiper=this;this.emit("beforeLoopFix");var activeIndex=this.activeIndex,slides=this.slides,loopedSlides=this.loopedSlides,allowSlidePrev=this.allowSlidePrev,allowSlideNext=this.allowSlideNext,snapGrid=this.snapGrid,rtl=this.rtlTranslate,newIndex;this.allowSlidePrev=!0,this.allowSlideNext=!0;var snapTranslate,diff=-snapGrid[activeIndex]-this.getTranslate(),slideChanged;if(activeIndex<loopedSlides)newIndex=slides.length-3*loopedSlides+activeIndex,newIndex+=loopedSlides,this.slideTo(newIndex,0,!1,!0)&&0!==diff&&this.setTranslate((rtl?-this.translate:this.translate)-diff);else if(activeIndex>=slides.length-loopedSlides){var _slideChanged;newIndex=-slides.length+activeIndex+loopedSlides,newIndex+=loopedSlides,this.slideTo(newIndex,0,!1,!0)&&0!==diff&&this.setTranslate((rtl?-this.translate:this.translate)-diff)}this.allowSlidePrev=allowSlidePrev,this.allowSlideNext=allowSlideNext,this.emit("loopFix")}function loopDestroy(){var swiper=this,$wrapperEl=this.$wrapperEl,params=this.params,slides=this.slides;$wrapperEl.children("."+params.slideClass+"."+params.slideDuplicateClass+",."+params.slideClass+"."+params.slideBlankClass).remove(),slides.removeAttr("data-swiper-slide-index")}function setGrabCursor(moving){var swiper=this;if(!(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var el=this.el;el.style.cursor="move",el.style.cursor=moving?"-webkit-grabbing":"-webkit-grab",el.style.cursor=moving?"-moz-grabbin":"-moz-grab",el.style.cursor=moving?"grabbing":"grab"}}function unsetGrabCursor(){var swiper=this;this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}function appendSlide(slides){var swiper=this,$wrapperEl=this.$wrapperEl,params=this.params;if(params.loop&&this.loopDestroy(),"object"==typeof slides&&"length"in slides)for(var i=0;i<slides.length;i+=1)slides[i]&&$wrapperEl.append(slides[i]);else $wrapperEl.append(slides);params.loop&&this.loopCreate(),params.observer&&this.support.observer||this.update()}function prependSlide(slides){var swiper=this,params=this.params,$wrapperEl=this.$wrapperEl,activeIndex=this.activeIndex;params.loop&&this.loopDestroy();var newActiveIndex=activeIndex+1;if("object"==typeof slides&&"length"in slides){for(var i=0;i<slides.length;i+=1)slides[i]&&$wrapperEl.prepend(slides[i]);newActiveIndex=activeIndex+slides.length}else $wrapperEl.prepend(slides);params.loop&&this.loopCreate(),params.observer&&this.support.observer||this.update(),this.slideTo(newActiveIndex,0,!1)}function addSlide(index,slides){var swiper=this,$wrapperEl=this.$wrapperEl,params=this.params,activeIndex,activeIndexBuffer=this.activeIndex;params.loop&&(activeIndexBuffer-=this.loopedSlides,this.loopDestroy(),this.slides=$wrapperEl.children("."+params.slideClass));var baseLength=this.slides.length;if(index<=0)this.prependSlide(slides);else if(index>=baseLength)this.appendSlide(slides);else{for(var newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+1:activeIndexBuffer,slidesBuffer=[],i=baseLength-1;i>=index;i-=1){var currentSlide=this.slides.eq(i);currentSlide.remove(),slidesBuffer.unshift(currentSlide)}if("object"==typeof slides&&"length"in slides){for(var _i=0;_i<slides.length;_i+=1)slides[_i]&&$wrapperEl.append(slides[_i]);newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+slides.length:activeIndexBuffer}else $wrapperEl.append(slides);for(var _i2=0;_i2<slidesBuffer.length;_i2+=1)$wrapperEl.append(slidesBuffer[_i2]);params.loop&&this.loopCreate(),params.observer&&this.support.observer||this.update(),params.loop?this.slideTo(newActiveIndex+this.loopedSlides,0,!1):this.slideTo(newActiveIndex,0,!1)}}function removeSlide(slidesIndexes){var swiper=this,params=this.params,$wrapperEl=this.$wrapperEl,activeIndex,activeIndexBuffer=this.activeIndex;params.loop&&(activeIndexBuffer-=this.loopedSlides,this.loopDestroy(),this.slides=$wrapperEl.children("."+params.slideClass));var newActiveIndex=activeIndexBuffer,indexToRemove;if("object"==typeof slidesIndexes&&"length"in slidesIndexes){for(var i=0;i<slidesIndexes.length;i+=1)indexToRemove=slidesIndexes[i],this.slides[indexToRemove]&&this.slides.eq(indexToRemove).remove(),indexToRemove<newActiveIndex&&(newActiveIndex-=1);newActiveIndex=Math.max(newActiveIndex,0)}else indexToRemove=slidesIndexes,this.slides[indexToRemove]&&this.slides.eq(indexToRemove).remove(),indexToRemove<newActiveIndex&&(newActiveIndex-=1),newActiveIndex=Math.max(newActiveIndex,0);params.loop&&this.loopCreate(),params.observer&&this.support.observer||this.update(),params.loop?this.slideTo(newActiveIndex+this.loopedSlides,0,!1):this.slideTo(newActiveIndex,0,!1)}function removeAllSlides(){for(var swiper=this,slidesIndexes=[],i=0;i<this.slides.length;i+=1)slidesIndexes.push(i);this.removeSlide(slidesIndexes)}function onTouchStart(event){var swiper=this,document=getDocument(),window=getWindow(),data=this.touchEventsData,params=this.params,touches=this.touches;if(!this.animating||!params.preventInteractionOnTransition){var e=event;e.originalEvent&&(e=e.originalEvent);var $targetEl=$(e.target),swipingClassHasValue;if("wrapper"!==params.touchEventsTarget||$targetEl.closest(this.wrapperEl).length)if(data.isTouchEvent="touchstart"===e.type,data.isTouchEvent||!("which"in e)||3!==e.which)if(!(!data.isTouchEvent&&"button"in e&&e.button>0))if(!data.isTouched||!data.isMoved)if(!!params.noSwipingClass&&""!==params.noSwipingClass&&e.target&&e.target.shadowRoot&&event.path&&event.path[0]&&($targetEl=$(event.path[0])),params.noSwiping&&$targetEl.closest(params.noSwipingSelector?params.noSwipingSelector:"."+params.noSwipingClass)[0])this.allowClick=!0;else if(!params.swipeHandler||$targetEl.closest(params.swipeHandler)[0]){touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;var startX=touches.currentX,startY=touches.currentY,edgeSwipeDetection=params.edgeSwipeDetection||params.iOSEdgeSwipeDetection,edgeSwipeThreshold=params.edgeSwipeThreshold||params.iOSEdgeSwipeThreshold;if(edgeSwipeDetection&&(startX<=edgeSwipeThreshold||startX>=window.innerWidth-edgeSwipeThreshold)){if("prevent"!==edgeSwipeDetection)return;event.preventDefault()}if(extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),touches.startX=startX,touches.startY=startY,data.touchStartTime=now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,params.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==e.type){var preventDefault=!0;$targetEl.is(data.formElements)&&(preventDefault=!1),document.activeElement&&$(document.activeElement).is(data.formElements)&&document.activeElement!==$targetEl[0]&&document.activeElement.blur();var shouldPreventDefault=preventDefault&&this.allowTouchMove&&params.touchStartPreventDefault;!params.touchStartForcePreventDefault&&!shouldPreventDefault||$targetEl[0].isContentEditable||e.preventDefault()}this.emit("touchStart",e)}}}function onTouchMove(event){var document=getDocument(),swiper=this,data=this.touchEventsData,params=this.params,touches=this.touches,rtl=this.rtlTranslate,e=event;if(e.originalEvent&&(e=e.originalEvent),data.isTouched){if(!data.isTouchEvent||"touchmove"===e.type){var targetTouch="touchmove"===e.type&&e.targetTouches&&(e.targetTouches[0]||e.changedTouches[0]),pageX="touchmove"===e.type?targetTouch.pageX:e.pageX,pageY="touchmove"===e.type?targetTouch.pageY:e.pageY;if(e.preventedByNestedSwiper)return touches.startX=pageX,void(touches.startY=pageY);if(!this.allowTouchMove)return this.allowClick=!1,void(data.isTouched&&(extend(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY}),data.touchStartTime=now()));if(data.isTouchEvent&&params.touchReleaseOnEdges&&!params.loop)if(this.isVertical()){if(pageY<touches.startY&&this.translate<=this.maxTranslate()||pageY>touches.startY&&this.translate>=this.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(pageX<touches.startX&&this.translate<=this.maxTranslate()||pageX>touches.startX&&this.translate>=this.minTranslate())return;if(data.isTouchEvent&&document.activeElement&&e.target===document.activeElement&&$(e.target).is(data.formElements))return data.isMoved=!0,void(this.allowClick=!1);if(data.allowTouchCallbacks&&this.emit("touchMove",e),!(e.targetTouches&&e.targetTouches.length>1)){touches.currentX=pageX,touches.currentY=pageY;var diffX=touches.currentX-touches.startX,diffY=touches.currentY-touches.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(diffX,2)+Math.pow(diffY,2))<this.params.threshold)){var touchAngle;if(void 0===data.isScrolling)this.isHorizontal()&&touches.currentY===touches.startY||this.isVertical()&&touches.currentX===touches.startX?data.isScrolling=!1:diffX*diffX+diffY*diffY>=25&&(touchAngle=180*Math.atan2(Math.abs(diffY),Math.abs(diffX))/Math.PI,data.isScrolling=this.isHorizontal()?touchAngle>params.touchAngle:90-touchAngle>params.touchAngle);if(data.isScrolling&&this.emit("touchMoveOpposite",e),void 0===data.startMoving&&(touches.currentX===touches.startX&&touches.currentY===touches.startY||(data.startMoving=!0)),data.isScrolling)data.isTouched=!1;else if(data.startMoving){this.allowClick=!1,!params.cssMode&&e.cancelable&&e.preventDefault(),params.touchMoveStopPropagation&&!params.nested&&e.stopPropagation(),data.isMoved||(params.loop&&this.loopFix(),data.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce=!1,!params.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",e)),this.emit("sliderMove",e),data.isMoved=!0;var diff=this.isHorizontal()?diffX:diffY;touches.diff=diff,diff*=params.touchRatio,rtl&&(diff=-diff),this.swipeDirection=diff>0?"prev":"next",data.currentTranslate=diff+data.startTranslate;var disableParentSwiper=!0,resistanceRatio=params.resistanceRatio;if(params.touchReleaseOnEdges&&(resistanceRatio=0),diff>0&&data.currentTranslate>this.minTranslate()?(disableParentSwiper=!1,params.resistance&&(data.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+data.startTranslate+diff,resistanceRatio))):diff<0&&data.currentTranslate<this.maxTranslate()&&(disableParentSwiper=!1,params.resistance&&(data.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-data.startTranslate-diff,resistanceRatio))),disableParentSwiper&&(e.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),this.allowSlidePrev||this.allowSlideNext||(data.currentTranslate=data.startTranslate),params.threshold>0){if(!(Math.abs(diff)>params.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);if(!data.allowThresholdMove)return data.allowThresholdMove=!0,touches.startX=touches.currentX,touches.startY=touches.currentY,data.currentTranslate=data.startTranslate,void(touches.diff=this.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY)}params.followFinger&&!params.cssMode&&((params.freeMode||params.watchSlidesProgress||params.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),params.freeMode&&(0===data.velocities.length&&data.velocities.push({position:touches[this.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:touches[this.isHorizontal()?"currentX":"currentY"],time:now()})),this.updateProgress(data.currentTranslate),this.setTranslate(data.currentTranslate))}}}}}else data.startMoving&&data.isScrolling&&this.emit("touchMoveOpposite",e)}function onTouchEnd(event){var swiper=this,data=swiper.touchEventsData,params=swiper.params,touches=swiper.touches,rtl=swiper.rtlTranslate,$wrapperEl=swiper.$wrapperEl,slidesGrid=swiper.slidesGrid,snapGrid=swiper.snapGrid,e=event;if(e.originalEvent&&(e=e.originalEvent),data.allowTouchCallbacks&&swiper.emit("touchEnd",e),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&params.grabCursor&&swiper.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);params.grabCursor&&data.isMoved&&data.isTouched&&(!0===swiper.allowSlideNext||!0===swiper.allowSlidePrev)&&swiper.setGrabCursor(!1);var touchEndTime=now(),timeDiff=touchEndTime-data.touchStartTime,currentPos;if(swiper.allowClick&&(swiper.updateClickedSlide(e),swiper.emit("tap click",e),timeDiff<300&&touchEndTime-data.lastClickTime<300&&swiper.emit("doubleTap doubleClick",e)),data.lastClickTime=now(),nextTick((function(){swiper.destroyed||(swiper.allowClick=!0)})),!data.isTouched||!data.isMoved||!swiper.swipeDirection||0===touches.diff||data.currentTranslate===data.startTranslate)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,currentPos=params.followFinger?rtl?swiper.translate:-swiper.translate:-data.currentTranslate,!params.cssMode)if(params.freeMode){if(currentPos<-swiper.minTranslate())return void swiper.slideTo(swiper.activeIndex);if(currentPos>-swiper.maxTranslate())return void(swiper.slides.length<snapGrid.length?swiper.slideTo(snapGrid.length-1):swiper.slideTo(swiper.slides.length-1));if(params.freeModeMomentum){if(data.velocities.length>1){var lastMoveEvent=data.velocities.pop(),velocityEvent=data.velocities.pop(),distance=lastMoveEvent.position-velocityEvent.position,time=lastMoveEvent.time-velocityEvent.time;swiper.velocity=distance/time,swiper.velocity/=2,Math.abs(swiper.velocity)<params.freeModeMinimumVelocity&&(swiper.velocity=0),(time>150||now()-lastMoveEvent.time>300)&&(swiper.velocity=0)}else swiper.velocity=0;swiper.velocity*=params.freeModeMomentumVelocityRatio,data.velocities.length=0;var momentumDuration=1e3*params.freeModeMomentumRatio,momentumDistance=swiper.velocity*momentumDuration,newPosition=swiper.translate+momentumDistance;rtl&&(newPosition=-newPosition);var doBounce=!1,afterBouncePosition,bounceAmount=20*Math.abs(swiper.velocity)*params.freeModeMomentumBounceRatio,needsLoopFix;if(newPosition<swiper.maxTranslate())params.freeModeMomentumBounce?(newPosition+swiper.maxTranslate()<-bounceAmount&&(newPosition=swiper.maxTranslate()-bounceAmount),afterBouncePosition=swiper.maxTranslate(),doBounce=!0,data.allowMomentumBounce=!0):newPosition=swiper.maxTranslate(),params.loop&&params.centeredSlides&&(needsLoopFix=!0);else if(newPosition>swiper.minTranslate())params.freeModeMomentumBounce?(newPosition-swiper.minTranslate()>bounceAmount&&(newPosition=swiper.minTranslate()+bounceAmount),afterBouncePosition=swiper.minTranslate(),doBounce=!0,data.allowMomentumBounce=!0):newPosition=swiper.minTranslate(),params.loop&&params.centeredSlides&&(needsLoopFix=!0);else if(params.freeModeSticky){for(var nextSlide,j=0;j<snapGrid.length;j+=1)if(snapGrid[j]>-newPosition){nextSlide=j;break}newPosition=-(newPosition=Math.abs(snapGrid[nextSlide]-newPosition)<Math.abs(snapGrid[nextSlide-1]-newPosition)||"next"===swiper.swipeDirection?snapGrid[nextSlide]:snapGrid[nextSlide-1])}if(needsLoopFix&&swiper.once("transitionEnd",(function(){swiper.loopFix()})),0!==swiper.velocity){if(momentumDuration=rtl?Math.abs((-newPosition-swiper.translate)/swiper.velocity):Math.abs((newPosition-swiper.translate)/swiper.velocity),params.freeModeSticky){var moveDistance=Math.abs((rtl?-newPosition:newPosition)-swiper.translate),currentSlideSize=swiper.slidesSizesGrid[swiper.activeIndex];momentumDuration=moveDistance<currentSlideSize?params.speed:moveDistance<2*currentSlideSize?1.5*params.speed:2.5*params.speed}}else if(params.freeModeSticky)return void swiper.slideToClosest();params.freeModeMomentumBounce&&doBounce?(swiper.updateProgress(afterBouncePosition),swiper.setTransition(momentumDuration),swiper.setTranslate(newPosition),swiper.transitionStart(!0,swiper.swipeDirection),swiper.animating=!0,$wrapperEl.transitionEnd((function(){swiper&&!swiper.destroyed&&data.allowMomentumBounce&&(swiper.emit("momentumBounce"),swiper.setTransition(params.speed),setTimeout((function(){swiper.setTranslate(afterBouncePosition),$wrapperEl.transitionEnd((function(){swiper&&!swiper.destroyed&&swiper.transitionEnd()}))}),0))}))):swiper.velocity?(swiper.updateProgress(newPosition),swiper.setTransition(momentumDuration),swiper.setTranslate(newPosition),swiper.transitionStart(!0,swiper.swipeDirection),swiper.animating||(swiper.animating=!0,$wrapperEl.transitionEnd((function(){swiper&&!swiper.destroyed&&swiper.transitionEnd()})))):(swiper.emit("_freeModeNoMomentumRelease"),swiper.updateProgress(newPosition)),swiper.updateActiveIndex(),swiper.updateSlidesClasses()}else{if(params.freeModeSticky)return void swiper.slideToClosest();params.freeMode&&swiper.emit("_freeModeNoMomentumRelease")}(!params.freeModeMomentum||timeDiff>=params.longSwipesMs)&&(swiper.updateProgress(),swiper.updateActiveIndex(),swiper.updateSlidesClasses())}else{for(var stopIndex=0,groupSize=swiper.slidesSizesGrid[0],i=0;i<slidesGrid.length;i+=i<params.slidesPerGroupSkip?1:params.slidesPerGroup){var _increment=i<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;void 0!==slidesGrid[i+_increment]?currentPos>=slidesGrid[i]&&currentPos<slidesGrid[i+_increment]&&(stopIndex=i,groupSize=slidesGrid[i+_increment]-slidesGrid[i]):currentPos>=slidesGrid[i]&&(stopIndex=i,groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2])}var ratio=(currentPos-slidesGrid[stopIndex])/groupSize,increment=stopIndex<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;if(timeDiff>params.longSwipesMs){if(!params.longSwipes)return void swiper.slideTo(swiper.activeIndex);"next"===swiper.swipeDirection&&(ratio>=params.longSwipesRatio?swiper.slideTo(stopIndex+increment):swiper.slideTo(stopIndex)),"prev"===swiper.swipeDirection&&(ratio>1-params.longSwipesRatio?swiper.slideTo(stopIndex+increment):swiper.slideTo(stopIndex))}else{if(!params.shortSwipes)return void swiper.slideTo(swiper.activeIndex);var isNavButtonTarget;swiper.navigation&&(e.target===swiper.navigation.nextEl||e.target===swiper.navigation.prevEl)?e.target===swiper.navigation.nextEl?swiper.slideTo(stopIndex+increment):swiper.slideTo(stopIndex):("next"===swiper.swipeDirection&&swiper.slideTo(stopIndex+increment),"prev"===swiper.swipeDirection&&swiper.slideTo(stopIndex))}}}function onResize(){var swiper=this,params=this.params,el=this.el;if(!el||0!==el.offsetWidth){params.breakpoints&&this.setBreakpoint();var allowSlideNext=this.allowSlideNext,allowSlidePrev=this.allowSlidePrev,snapGrid=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===params.slidesPerView||params.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=allowSlidePrev,this.allowSlideNext=allowSlideNext,this.params.watchOverflow&&snapGrid!==this.snapGrid&&this.checkOverflow()}}function onClick(e){var swiper=this;this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function onScroll(){var swiper=this,wrapperEl=this.wrapperEl,rtlTranslate=this.rtlTranslate,newProgress;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=rtlTranslate?wrapperEl.scrollWidth-wrapperEl.offsetWidth-wrapperEl.scrollLeft:-wrapperEl.scrollLeft:this.translate=-wrapperEl.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var translatesDiff=this.maxTranslate()-this.minTranslate();(newProgress=0===translatesDiff?0:(this.translate-this.minTranslate())/translatesDiff)!==this.progress&&this.updateProgress(rtlTranslate?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}var dummyEventAttached=!1,events,breakpoints,classes,images;function dummyEventListener(){}function attachEvents(){var swiper=this,document=getDocument(),params=this.params,touchEvents=this.touchEvents,el=this.el,wrapperEl=this.wrapperEl,device=this.device,support=this.support;this.onTouchStart=onTouchStart.bind(this),this.onTouchMove=onTouchMove.bind(this),this.onTouchEnd=onTouchEnd.bind(this),params.cssMode&&(this.onScroll=onScroll.bind(this)),this.onClick=onClick.bind(this);var capture=!!params.nested;if(!support.touch&&support.pointerEvents)el.addEventListener(touchEvents.start,this.onTouchStart,!1),document.addEventListener(touchEvents.move,this.onTouchMove,capture),document.addEventListener(touchEvents.end,this.onTouchEnd,!1);else{if(support.touch){var passiveListener=!("touchstart"!==touchEvents.start||!support.passiveListener||!params.passiveListeners)&&{passive:!0,capture:!1};el.addEventListener(touchEvents.start,this.onTouchStart,passiveListener),el.addEventListener(touchEvents.move,this.onTouchMove,support.passiveListener?{passive:!1,capture:capture}:capture),el.addEventListener(touchEvents.end,this.onTouchEnd,passiveListener),touchEvents.cancel&&el.addEventListener(touchEvents.cancel,this.onTouchEnd,passiveListener),dummyEventAttached||(document.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0)}(params.simulateTouch&&!device.ios&&!device.android||params.simulateTouch&&!support.touch&&device.ios)&&(el.addEventListener("mousedown",this.onTouchStart,!1),document.addEventListener("mousemove",this.onTouchMove,capture),document.addEventListener("mouseup",this.onTouchEnd,!1))}(params.preventClicks||params.preventClicksPropagation)&&el.addEventListener("click",this.onClick,!0),params.cssMode&&wrapperEl.addEventListener("scroll",this.onScroll),params.updateOnWindowResize?this.on(device.ios||device.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):this.on("observerUpdate",onResize,!0)}function detachEvents(){var swiper=this,document=getDocument(),params=this.params,touchEvents=this.touchEvents,el=this.el,wrapperEl=this.wrapperEl,device=this.device,support=this.support,capture=!!params.nested;if(!support.touch&&support.pointerEvents)el.removeEventListener(touchEvents.start,this.onTouchStart,!1),document.removeEventListener(touchEvents.move,this.onTouchMove,capture),document.removeEventListener(touchEvents.end,this.onTouchEnd,!1);else{if(support.touch){var passiveListener=!("onTouchStart"!==touchEvents.start||!support.passiveListener||!params.passiveListeners)&&{passive:!0,capture:!1};el.removeEventListener(touchEvents.start,this.onTouchStart,passiveListener),el.removeEventListener(touchEvents.move,this.onTouchMove,capture),el.removeEventListener(touchEvents.end,this.onTouchEnd,passiveListener),touchEvents.cancel&&el.removeEventListener(touchEvents.cancel,this.onTouchEnd,passiveListener)}(params.simulateTouch&&!device.ios&&!device.android||params.simulateTouch&&!support.touch&&device.ios)&&(el.removeEventListener("mousedown",this.onTouchStart,!1),document.removeEventListener("mousemove",this.onTouchMove,capture),document.removeEventListener("mouseup",this.onTouchEnd,!1))}(params.preventClicks||params.preventClicksPropagation)&&el.removeEventListener("click",this.onClick,!0),params.cssMode&&wrapperEl.removeEventListener("scroll",this.onScroll),this.off(device.ios||device.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize)}function setBreakpoint(){var swiper=this,activeIndex=this.activeIndex,initialized=this.initialized,_swiper$loopedSlides=this.loopedSlides,loopedSlides=void 0===_swiper$loopedSlides?0:_swiper$loopedSlides,params=this.params,$el=this.$el,breakpoints=params.breakpoints;if(breakpoints&&(!breakpoints||0!==Object.keys(breakpoints).length)){var breakpoint=this.getBreakpoint(breakpoints,this.params.breakpointsBase,this.el);if(breakpoint&&this.currentBreakpoint!==breakpoint){var breakpointOnlyParams=breakpoint in breakpoints?breakpoints[breakpoint]:void 0;breakpointOnlyParams&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(param){var paramValue=breakpointOnlyParams[param];void 0!==paramValue&&(breakpointOnlyParams[param]="slidesPerView"!==param||"AUTO"!==paramValue&&"auto"!==paramValue?"slidesPerView"===param?parseFloat(paramValue):parseInt(paramValue,10):"auto")}));var breakpointParams=breakpointOnlyParams||this.originalParams,wasMultiRow=params.slidesPerColumn>1,isMultiRow=breakpointParams.slidesPerColumn>1;wasMultiRow&&!isMultiRow?($el.removeClass(params.containerModifierClass+"multirow "+params.containerModifierClass+"multirow-column"),this.emitContainerClasses()):!wasMultiRow&&isMultiRow&&($el.addClass(params.containerModifierClass+"multirow"),"column"===breakpointParams.slidesPerColumnFill&&$el.addClass(params.containerModifierClass+"multirow-column"),this.emitContainerClasses());var directionChanged=breakpointParams.direction&&breakpointParams.direction!==params.direction,needsReLoop=params.loop&&(breakpointParams.slidesPerView!==params.slidesPerView||directionChanged);directionChanged&&initialized&&this.changeDirection(),extend(this.params,breakpointParams),extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=breakpoint,this.emit("_beforeBreakpoint",breakpointParams),needsReLoop&&initialized&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(activeIndex-loopedSlides+this.loopedSlides,0,!1)),this.emit("breakpoint",breakpointParams)}}}function getBreakpoint(breakpoints,base,containerEl){if(void 0===base&&(base="window"),breakpoints&&("container"!==base||containerEl)){var breakpoint=!1,window=getWindow(),currentWidth="window"===base?window.innerWidth:containerEl.clientWidth,currentHeight="window"===base?window.innerHeight:containerEl.clientHeight,points=Object.keys(breakpoints).map((function(point){if("string"==typeof point&&0===point.indexOf("@")){var minRatio=parseFloat(point.substr(1)),value;return{value:currentHeight*minRatio,point:point}}return{value:point,point:point}}));points.sort((function(a,b){return parseInt(a.value,10)-parseInt(b.value,10)}));for(var i=0;i<points.length;i+=1){var _points$i=points[i],point=_points$i.point,value;_points$i.value<=currentWidth&&(breakpoint=point)}return breakpoint||"max"}}function prepareClasses(entries,prefix){var resultClasses=[];return entries.forEach((function(item){"object"==typeof item?Object.keys(item).forEach((function(classNames){item[classNames]&&resultClasses.push(prefix+classNames)})):"string"==typeof item&&resultClasses.push(prefix+item)})),resultClasses}function addClasses(){var swiper=this,classNames=this.classNames,params=this.params,rtl=this.rtl,$el=this.$el,device=this.device,support=this.support,suffixes=prepareClasses(["initialized",params.direction,{"pointer-events":support.pointerEvents&&!support.touch},{"free-mode":params.freeMode},{autoheight:params.autoHeight},{rtl:rtl},{multirow:params.slidesPerColumn>1},{"multirow-column":params.slidesPerColumn>1&&"column"===params.slidesPerColumnFill},{android:device.android},{ios:device.ios},{"css-mode":params.cssMode}],params.containerModifierClass);classNames.push.apply(classNames,suffixes),$el.addClass([].concat(classNames).join(" ")),this.emitContainerClasses()}function removeClasses(){var swiper=this,$el=this.$el,classNames=this.classNames;$el.removeClass(classNames.join(" ")),this.emitContainerClasses()}function loadImage(imageEl,src,srcset,sizes,checkForComplete,callback){var window=getWindow(),image,isPicture;function onReady(){callback&&callback()}$(imageEl).parent("picture")[0]||imageEl.complete&&checkForComplete?onReady():src?((image=new window.Image).onload=onReady,image.onerror=onReady,sizes&&(image.sizes=sizes),srcset&&(image.srcset=srcset),src&&(image.src=src)):onReady()}function preloadImages(){var swiper=this;function onReady(){null!=swiper&&swiper&&!swiper.destroyed&&(void 0!==swiper.imagesLoaded&&(swiper.imagesLoaded+=1),swiper.imagesLoaded===swiper.imagesToLoad.length&&(swiper.params.updateOnImagesReady&&swiper.update(),swiper.emit("imagesReady")))}swiper.imagesToLoad=swiper.$el.find("img");for(var i=0;i<swiper.imagesToLoad.length;i+=1){var imageEl=swiper.imagesToLoad[i];swiper.loadImage(imageEl,imageEl.currentSrc||imageEl.getAttribute("src"),imageEl.srcset||imageEl.getAttribute("srcset"),imageEl.sizes||imageEl.getAttribute("sizes"),!0,onReady)}}function checkOverflow(){var swiper=this,params=this.params,wasLocked=this.isLocked,lastSlidePosition=this.slides.length>0&&params.slidesOffsetBefore+params.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;params.slidesOffsetBefore&&params.slidesOffsetAfter&&lastSlidePosition?this.isLocked=lastSlidePosition<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,wasLocked!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),wasLocked&&wasLocked!==this.isLocked&&(this.isEnd=!1,this.navigation&&this.navigation.update())}var checkOverflow$1,defaults={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},prototypes={modular:{useParams:function useParams(instanceParams){var instance=this;instance.modules&&Object.keys(instance.modules).forEach((function(moduleName){var module=instance.modules[moduleName];module.params&&extend(instanceParams,module.params)}))},useModules:function useModules(modulesParams){void 0===modulesParams&&(modulesParams={});var instance=this;instance.modules&&Object.keys(instance.modules).forEach((function(moduleName){var module=instance.modules[moduleName],moduleParams=modulesParams[moduleName]||{};module.on&&instance.on&&Object.keys(module.on).forEach((function(moduleEventName){instance.on(moduleEventName,module.on[moduleEventName])})),module.create&&module.create.bind(instance)(moduleParams)}))}},eventsEmitter:{on:function on(events,handler,priority){var self=this;if("function"!=typeof handler)return self;var method=priority?"unshift":"push";return events.split(" ").forEach((function(event){self.eventsListeners[event]||(self.eventsListeners[event]=[]),self.eventsListeners[event][method](handler)})),self},once:function once(events,handler,priority){var self=this;if("function"!=typeof handler)return self;function onceHandler(){self.off(events,onceHandler),onceHandler.__emitterProxy&&delete onceHandler.__emitterProxy;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];handler.apply(self,args)}return onceHandler.__emitterProxy=handler,self.on(events,onceHandler,priority)},onAny:function onAny(handler,priority){var self=this;if("function"!=typeof handler)return this;var method=priority?"unshift":"push";return this.eventsAnyListeners.indexOf(handler)<0&&this.eventsAnyListeners[method](handler),this},offAny:function offAny(handler){var self=this;if(!this.eventsAnyListeners)return this;var index=this.eventsAnyListeners.indexOf(handler);return index>=0&&this.eventsAnyListeners.splice(index,1),this},off:function off(events,handler){var self=this;return self.eventsListeners?(events.split(" ").forEach((function(event){void 0===handler?self.eventsListeners[event]=[]:self.eventsListeners[event]&&self.eventsListeners[event].forEach((function(eventHandler,index){(eventHandler===handler||eventHandler.__emitterProxy&&eventHandler.__emitterProxy===handler)&&self.eventsListeners[event].splice(index,1)}))})),self):self},emit:function emit(){var self=this,events,data,context;if(!self.eventsListeners)return self;for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];"string"==typeof args[0]||Array.isArray(args[0])?(events=args[0],data=args.slice(1,args.length),context=self):(events=args[0].events,data=args[0].data,context=args[0].context||self),data.unshift(context);var eventsArray=Array.isArray(events)?events:events.split(" ");return eventsArray.forEach((function(event){self.eventsAnyListeners&&self.eventsAnyListeners.length&&self.eventsAnyListeners.forEach((function(eventHandler){eventHandler.apply(context,[event].concat(data))})),self.eventsListeners&&self.eventsListeners[event]&&self.eventsListeners[event].forEach((function(eventHandler){eventHandler.apply(context,data)}))})),self}},update:{updateSize:updateSize,updateSlides:updateSlides,updateAutoHeight:updateAutoHeight,updateSlidesOffset:updateSlidesOffset,updateSlidesProgress:updateSlidesProgress,updateProgress:updateProgress,updateSlidesClasses:updateSlidesClasses,updateActiveIndex:updateActiveIndex,updateClickedSlide:updateClickedSlide},translate:{getTranslate:getSwiperTranslate,setTranslate:setTranslate,minTranslate:minTranslate,maxTranslate:maxTranslate,translateTo:translateTo},transition:{setTransition:setTransition,transitionStart:transitionStart,transitionEnd:transitionEnd},slide:{slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide},loop:{loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy},grabCursor:{setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor},manipulation:{appendSlide:appendSlide,prependSlide:prependSlide,addSlide:addSlide,removeSlide:removeSlide,removeAllSlides:removeAllSlides},events:{attachEvents:attachEvents,detachEvents:detachEvents},breakpoints:{setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint},checkOverflow:{checkOverflow:checkOverflow},classes:{addClasses:addClasses,removeClasses:removeClasses},images:{loadImage:loadImage,preloadImages:preloadImages}},extendedDefaults={},Swiper=function(){function Swiper(){for(var el,params,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];if(1===args.length&&args[0].constructor&&"Object"===Object.prototype.toString.call(args[0]).slice(8,-1)?params=args[0]:(el=args[0],params=args[1]),params||(params={}),params=extend({},params),el&&!params.el&&(params.el=el),params.el&&$(params.el).length>1){var swipers=[];return $(params.el).each((function(containerEl){var newParams=extend({},params,{el:containerEl});swipers.push(new Swiper(newParams))})),swipers}var swiper=this;swiper.__swiper__=!0,swiper.support=getSupport(),swiper.device=getDevice({userAgent:params.userAgent}),swiper.browser=getBrowser(),swiper.eventsListeners={},swiper.eventsAnyListeners=[],void 0===swiper.modules&&(swiper.modules={}),Object.keys(swiper.modules).forEach((function(moduleName){var module=swiper.modules[moduleName];if(module.params){var moduleParamName=Object.keys(module.params)[0],moduleParams=module.params[moduleParamName];if("object"!=typeof moduleParams||null===moduleParams)return;if(!(moduleParamName in params&&"enabled"in moduleParams))return;!0===params[moduleParamName]&&(params[moduleParamName]={enabled:!0}),"object"!=typeof params[moduleParamName]||"enabled"in params[moduleParamName]||(params[moduleParamName].enabled=!0),params[moduleParamName]||(params[moduleParamName]={enabled:!1})}}));var swiperParams=extend({},defaults);return swiper.useParams(swiperParams),swiper.params=extend({},swiperParams,extendedDefaults,params),swiper.originalParams=extend({},swiper.params),swiper.passedParams=extend({},params),swiper.params&&swiper.params.on&&Object.keys(swiper.params.on).forEach((function(eventName){swiper.on(eventName,swiper.params.on[eventName])})),swiper.params&&swiper.params.onAny&&swiper.onAny(swiper.params.onAny),swiper.$=$,extend(swiper,{el:el,classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function isHorizontal(){return"horizontal"===swiper.params.direction},isVertical:function isVertical(){return"vertical"===swiper.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,touchEvents:function touchEvents(){var touch=["touchstart","touchmove","touchend","touchcancel"],desktop=["mousedown","mousemove","mouseup"];return swiper.support.pointerEvents&&(desktop=["pointerdown","pointermove","pointerup"]),swiper.touchEventsTouch={start:touch[0],move:touch[1],end:touch[2],cancel:touch[3]},swiper.touchEventsDesktop={start:desktop[0],move:desktop[1],end:desktop[2]},swiper.support.touch||!swiper.params.simulateTouch?swiper.touchEventsTouch:swiper.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),swiper.useModules(),swiper.emit("_swiper"),swiper.params.init&&swiper.init(),swiper}var _proto=Swiper.prototype;return _proto.setProgress=function setProgress(progress,speed){var swiper=this;progress=Math.min(Math.max(progress,0),1);var min=this.minTranslate(),max,current=(this.maxTranslate()-min)*progress+min;this.translateTo(current,void 0===speed?0:speed),this.updateActiveIndex(),this.updateSlidesClasses()},_proto.emitContainerClasses=function emitContainerClasses(){var swiper=this;if(swiper.params._emitClasses&&swiper.el){var classes=swiper.el.className.split(" ").filter((function(className){return 0===className.indexOf("swiper-container")||0===className.indexOf(swiper.params.containerModifierClass)}));swiper.emit("_containerClasses",classes.join(" "))}},_proto.getSlideClasses=function getSlideClasses(slideEl){var swiper=this;return slideEl.className.split(" ").filter((function(className){return 0===className.indexOf("swiper-slide")||0===className.indexOf(swiper.params.slideClass)})).join(" ")},_proto.emitSlidesClasses=function emitSlidesClasses(){var swiper=this;if(swiper.params._emitClasses&&swiper.el){var updates=[];swiper.slides.each((function(slideEl){var classNames=swiper.getSlideClasses(slideEl);updates.push({slideEl:slideEl,classNames:classNames}),swiper.emit("_slideClass",slideEl,classNames)})),swiper.emit("_slideClasses",updates)}},_proto.slidesPerViewDynamic=function slidesPerViewDynamic(){var swiper=this,params=this.params,slides=this.slides,slidesGrid=this.slidesGrid,swiperSize=this.size,activeIndex=this.activeIndex,spv=1;if(params.centeredSlides){for(var slideSize=slides[activeIndex].swiperSlideSize,breakLoop,i=activeIndex+1;i<slides.length;i+=1)slides[i]&&!breakLoop&&(spv+=1,(slideSize+=slides[i].swiperSlideSize)>swiperSize&&(breakLoop=!0));for(var _i=activeIndex-1;_i>=0;_i-=1)slides[_i]&&!breakLoop&&(spv+=1,(slideSize+=slides[_i].swiperSlideSize)>swiperSize&&(breakLoop=!0))}else for(var _i2=activeIndex+1;_i2<slides.length;_i2+=1)slidesGrid[_i2]-slidesGrid[activeIndex]<swiperSize&&(spv+=1);return spv},_proto.update=function update(){var swiper=this;if(swiper&&!swiper.destroyed){var snapGrid=swiper.snapGrid,params=swiper.params,translated;params.breakpoints&&swiper.setBreakpoint(),swiper.updateSize(),swiper.updateSlides(),swiper.updateProgress(),swiper.updateSlidesClasses(),swiper.params.freeMode?(setTranslate(),swiper.params.autoHeight&&swiper.updateAutoHeight()):(translated=("auto"===swiper.params.slidesPerView||swiper.params.slidesPerView>1)&&swiper.isEnd&&!swiper.params.centeredSlides?swiper.slideTo(swiper.slides.length-1,0,!1,!0):swiper.slideTo(swiper.activeIndex,0,!1,!0))||setTranslate(),params.watchOverflow&&snapGrid!==swiper.snapGrid&&swiper.checkOverflow(),swiper.emit("update")}function setTranslate(){var translateValue=swiper.rtlTranslate?-1*swiper.translate:swiper.translate,newTranslate=Math.min(Math.max(translateValue,swiper.maxTranslate()),swiper.minTranslate());swiper.setTranslate(newTranslate),swiper.updateActiveIndex(),swiper.updateSlidesClasses()}},_proto.changeDirection=function changeDirection(newDirection,needUpdate){void 0===needUpdate&&(needUpdate=!0);var swiper=this,currentDirection=this.params.direction;return newDirection||(newDirection="horizontal"===currentDirection?"vertical":"horizontal"),newDirection===currentDirection||"horizontal"!==newDirection&&"vertical"!==newDirection?this:(this.$el.removeClass(""+this.params.containerModifierClass+currentDirection).addClass(""+this.params.containerModifierClass+newDirection),this.emitContainerClasses(),this.params.direction=newDirection,this.slides.each((function(slideEl){"vertical"===newDirection?slideEl.style.width="":slideEl.style.height=""})),this.emit("changeDirection"),needUpdate&&this.update(),this)},_proto.mount=function mount(el){var swiper=this;if(this.mounted)return!0;var $el=$(el||this.params.el),$wrapperEl;return!!(el=$el[0])&&(el.swiper=this,el&&el.shadowRoot&&el.shadowRoot.querySelector?($wrapperEl=$(el.shadowRoot.querySelector("."+this.params.wrapperClass))).children=function(options){return $el.children(options)}:$wrapperEl=$el.children("."+this.params.wrapperClass),extend(this,{$el:$el,el:el,$wrapperEl:$wrapperEl,wrapperEl:$wrapperEl[0],mounted:!0,rtl:"rtl"===el.dir.toLowerCase()||"rtl"===$el.css("direction"),rtlTranslate:"horizontal"===this.params.direction&&("rtl"===el.dir.toLowerCase()||"rtl"===$el.css("direction")),wrongRTL:"-webkit-box"===$wrapperEl.css("display")}),!0)},_proto.init=function init(el){var swiper=this,mounted;return this.initialized?this:!1===this.mount(el)?this:(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit"),this)},_proto.destroy=function destroy(deleteInstance,cleanStyles){void 0===deleteInstance&&(deleteInstance=!0),void 0===cleanStyles&&(cleanStyles=!0);var swiper=this,params=swiper.params,$el=swiper.$el,$wrapperEl=swiper.$wrapperEl,slides=swiper.slides;return void 0===swiper.params||swiper.destroyed?null:(swiper.emit("beforeDestroy"),swiper.initialized=!1,swiper.detachEvents(),params.loop&&swiper.loopDestroy(),cleanStyles&&(swiper.removeClasses(),$el.removeAttr("style"),$wrapperEl.removeAttr("style"),slides&&slides.length&&slides.removeClass([params.slideVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),swiper.emit("destroy"),Object.keys(swiper.eventsListeners).forEach((function(eventName){swiper.off(eventName)})),!1!==deleteInstance&&(swiper.$el[0].swiper=null,deleteProps(swiper)),swiper.destroyed=!0,null)},Swiper.extendDefaults=function extendDefaults(newDefaults){extend(extendedDefaults,newDefaults)},Swiper.installModule=function installModule(module){Swiper.prototype.modules||(Swiper.prototype.modules={});var name=module.name||Object.keys(Swiper.prototype.modules).length+"_"+now();Swiper.prototype.modules[name]=module},Swiper.use=function use(module){return Array.isArray(module)?(module.forEach((function(m){return Swiper.installModule(m)})),Swiper):(Swiper.installModule(module),Swiper)},_createClass(Swiper,null,[{key:"extendedDefaults",get:function get(){return extendedDefaults}},{key:"defaults",get:function get(){return defaults}}]),Swiper}();Object.keys(prototypes).forEach((function(prototypeGroup){Object.keys(prototypes[prototypeGroup]).forEach((function(protoMethod){Swiper.prototype[protoMethod]=prototypes[prototypeGroup][protoMethod]}))})),Swiper.use([Resize,Observer$1]);var Virtual={update:function update(force){var swiper=this,_swiper$params=swiper.params,slidesPerView=_swiper$params.slidesPerView,slidesPerGroup=_swiper$params.slidesPerGroup,centeredSlides=_swiper$params.centeredSlides,_swiper$params$virtua=swiper.params.virtual,addSlidesBefore=_swiper$params$virtua.addSlidesBefore,addSlidesAfter=_swiper$params$virtua.addSlidesAfter,_swiper$virtual=swiper.virtual,previousFrom=_swiper$virtual.from,previousTo=_swiper$virtual.to,slides=_swiper$virtual.slides,previousSlidesGrid=_swiper$virtual.slidesGrid,renderSlide=_swiper$virtual.renderSlide,previousOffset=_swiper$virtual.offset;swiper.updateActiveIndex();var activeIndex=swiper.activeIndex||0,offsetProp,slidesAfter,slidesBefore;offsetProp=swiper.rtlTranslate?"right":swiper.isHorizontal()?"left":"top",centeredSlides?(slidesAfter=Math.floor(slidesPerView/2)+slidesPerGroup+addSlidesAfter,slidesBefore=Math.floor(slidesPerView/2)+slidesPerGroup+addSlidesBefore):(slidesAfter=slidesPerView+(slidesPerGroup-1)+addSlidesAfter,slidesBefore=slidesPerGroup+addSlidesBefore);var from=Math.max((activeIndex||0)-slidesBefore,0),to=Math.min((activeIndex||0)+slidesAfter,slides.length-1),offset=(swiper.slidesGrid[from]||0)-(swiper.slidesGrid[0]||0);function onRendered(){swiper.updateSlides(),swiper.updateProgress(),swiper.updateSlidesClasses(),swiper.lazy&&swiper.params.lazy.enabled&&swiper.lazy.load()}if(extend(swiper.virtual,{from:from,to:to,offset:offset,slidesGrid:swiper.slidesGrid}),previousFrom===from&&previousTo===to&&!force)return swiper.slidesGrid!==previousSlidesGrid&&offset!==previousOffset&&swiper.slides.css(offsetProp,offset+"px"),void swiper.updateProgress();if(swiper.params.virtual.renderExternal)return swiper.params.virtual.renderExternal.call(swiper,{offset:offset,from:from,to:to,slides:function getSlides(){for(var slidesToRender=[],i=from;i<=to;i+=1)slidesToRender.push(slides[i]);return slidesToRender}()}),void(swiper.params.virtual.renderExternalUpdate&&onRendered());var prependIndexes=[],appendIndexes=[];if(force)swiper.$wrapperEl.find("."+swiper.params.slideClass).remove();else for(var i=previousFrom;i<=previousTo;i+=1)(i<from||i>to)&&swiper.$wrapperEl.find("."+swiper.params.slideClass+'[data-swiper-slide-index="'+i+'"]').remove();for(var _i=0;_i<slides.length;_i+=1)_i>=from&&_i<=to&&(void 0===previousTo||force?appendIndexes.push(_i):(_i>previousTo&&appendIndexes.push(_i),_i<previousFrom&&prependIndexes.push(_i)));appendIndexes.forEach((function(index){swiper.$wrapperEl.append(renderSlide(slides[index],index))})),prependIndexes.sort((function(a,b){return b-a})).forEach((function(index){swiper.$wrapperEl.prepend(renderSlide(slides[index],index))})),swiper.$wrapperEl.children(".swiper-slide").css(offsetProp,offset+"px"),onRendered()},renderSlide:function renderSlide(slide,index){var swiper=this,params=this.params.virtual;if(params.cache&&this.virtual.cache[index])return this.virtual.cache[index];var $slideEl=params.renderSlide?$(params.renderSlide.call(this,slide,index)):$('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+index+'">'+slide+"</div>");return $slideEl.attr("data-swiper-slide-index")||$slideEl.attr("data-swiper-slide-index",index),params.cache&&(this.virtual.cache[index]=$slideEl),$slideEl},appendSlide:function appendSlide(slides){var swiper=this;if("object"==typeof slides&&"length"in slides)for(var i=0;i<slides.length;i+=1)slides[i]&&this.virtual.slides.push(slides[i]);else this.virtual.slides.push(slides);this.virtual.update(!0)},prependSlide:function prependSlide(slides){var swiper=this,activeIndex=this.activeIndex,newActiveIndex=activeIndex+1,numberOfNewSlides=1;if(Array.isArray(slides)){for(var i=0;i<slides.length;i+=1)slides[i]&&this.virtual.slides.unshift(slides[i]);newActiveIndex=activeIndex+slides.length,numberOfNewSlides=slides.length}else this.virtual.slides.unshift(slides);if(this.params.virtual.cache){var cache=this.virtual.cache,newCache={};Object.keys(cache).forEach((function(cachedIndex){var $cachedEl=cache[cachedIndex],cachedElIndex=$cachedEl.attr("data-swiper-slide-index");cachedElIndex&&$cachedEl.attr("data-swiper-slide-index",parseInt(cachedElIndex,10)+1),newCache[parseInt(cachedIndex,10)+numberOfNewSlides]=$cachedEl})),this.virtual.cache=newCache}this.virtual.update(!0),this.slideTo(newActiveIndex,0)},removeSlide:function removeSlide(slidesIndexes){var swiper=this;if(null!=slidesIndexes){var activeIndex=this.activeIndex;if(Array.isArray(slidesIndexes))for(var i=slidesIndexes.length-1;i>=0;i-=1)this.virtual.slides.splice(slidesIndexes[i],1),this.params.virtual.cache&&delete this.virtual.cache[slidesIndexes[i]],slidesIndexes[i]<activeIndex&&(activeIndex-=1),activeIndex=Math.max(activeIndex,0);else this.virtual.slides.splice(slidesIndexes,1),this.params.virtual.cache&&delete this.virtual.cache[slidesIndexes],slidesIndexes<activeIndex&&(activeIndex-=1),activeIndex=Math.max(activeIndex,0);this.virtual.update(!0),this.slideTo(activeIndex,0)}},removeAllSlides:function removeAllSlides(){var swiper=this;this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},Virtual$1={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function create(){var swiper=this;bindModuleMethods(this,{virtual:_extends({},Virtual,{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function beforeInit(swiper){if(swiper.params.virtual.enabled){swiper.classNames.push(swiper.params.containerModifierClass+"virtual");var overwriteParams={watchSlidesProgress:!0};extend(swiper.params,overwriteParams),extend(swiper.originalParams,overwriteParams),swiper.params.initialSlide||swiper.virtual.update()}},setTranslate:function setTranslate(swiper){swiper.params.virtual.enabled&&swiper.virtual.update()}}},Keyboard={handle:function handle(event){var swiper=this,window=getWindow(),document=getDocument(),rtl=this.rtlTranslate,e=event;e.originalEvent&&(e=e.originalEvent);var kc=e.keyCode||e.charCode,pageUpDown=this.params.keyboard.pageUpDown,isPageUp=pageUpDown&&33===kc,isPageDown=pageUpDown&&34===kc,isArrowLeft=37===kc,isArrowRight=39===kc,isArrowUp=38===kc,isArrowDown=40===kc;if(!this.allowSlideNext&&(this.isHorizontal()&&isArrowRight||this.isVertical()&&isArrowDown||isPageDown))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&isArrowLeft||this.isVertical()&&isArrowUp||isPageUp))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(isPageUp||isPageDown||isArrowLeft||isArrowRight||isArrowUp||isArrowDown)){var inView=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var $el=this.$el,swiperWidth=$el[0].clientWidth,swiperHeight=$el[0].clientHeight,windowWidth=window.innerWidth,windowHeight=window.innerHeight,swiperOffset=this.$el.offset();rtl&&(swiperOffset.left-=this.$el[0].scrollLeft);for(var swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+swiperWidth,swiperOffset.top],[swiperOffset.left,swiperOffset.top+swiperHeight],[swiperOffset.left+swiperWidth,swiperOffset.top+swiperHeight]],i=0;i<swiperCoord.length;i+=1){var point=swiperCoord[i];if(point[0]>=0&&point[0]<=windowWidth&&point[1]>=0&&point[1]<=windowHeight){if(0===point[0]&&0===point[1])continue;inView=!0}}if(!inView)return}this.isHorizontal()?((isPageUp||isPageDown||isArrowLeft||isArrowRight)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((isPageDown||isArrowRight)&&!rtl||(isPageUp||isArrowLeft)&&rtl)&&this.slideNext(),((isPageUp||isArrowLeft)&&!rtl||(isPageDown||isArrowRight)&&rtl)&&this.slidePrev()):((isPageUp||isPageDown||isArrowUp||isArrowDown)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(isPageDown||isArrowDown)&&this.slideNext(),(isPageUp||isArrowUp)&&this.slidePrev()),this.emit("keyPress",kc)}},enable:function enable(){var swiper=this,document=getDocument();this.keyboard.enabled||($(document).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function disable(){var swiper=this,document=getDocument();this.keyboard.enabled&&($(document).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},Keyboard$1={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function create(){var swiper=this;bindModuleMethods(this,{keyboard:_extends({enabled:!1},Keyboard)})},on:{init:function init(swiper){swiper.params.keyboard.enabled&&swiper.keyboard.enable()},destroy:function destroy(swiper){swiper.keyboard.enabled&&swiper.keyboard.disable()}}};function isEventSupported(){var document=getDocument(),eventName="onwheel",isSupported="onwheel"in document;if(!isSupported){var element=document.createElement("div");element.setAttribute("onwheel","return;"),isSupported="function"==typeof element.onwheel}return!isSupported&&document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")&&(isSupported=document.implementation.hasFeature("Events.wheel","3.0")),isSupported}var Mousewheel={lastScrollTime:now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function event(){var window;return getWindow().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":isEventSupported()?"wheel":"mousewheel"},normalize:function normalize(e){var PIXEL_STEP=10,LINE_HEIGHT=40,PAGE_HEIGHT=800,sX=0,sY=0,pX=0,pY=0;return"detail"in e&&(sY=e.detail),"wheelDelta"in e&&(sY=-e.wheelDelta/120),"wheelDeltaY"in e&&(sY=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(sX=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(sX=sY,sY=0),pX=10*sX,pY=10*sY,"deltaY"in e&&(pY=e.deltaY),"deltaX"in e&&(pX=e.deltaX),e.shiftKey&&!pX&&(pX=pY,pY=0),(pX||pY)&&e.deltaMode&&(1===e.deltaMode?(pX*=40,pY*=40):(pX*=800,pY*=800)),pX&&!sX&&(sX=pX<1?-1:1),pY&&!sY&&(sY=pY<1?-1:1),{spinX:sX,spinY:sY,pixelX:pX,pixelY:pY}},handleMouseEnter:function handleMouseEnter(){var swiper=this;this.mouseEntered=!0},handleMouseLeave:function handleMouseLeave(){var swiper=this;this.mouseEntered=!1},handle:function handle(event){var e=event,disableParentSwiper=!0,swiper=this,params=swiper.params.mousewheel;swiper.params.cssMode&&e.preventDefault();var target=swiper.$el;if("container"!==swiper.params.mousewheel.eventsTarget&&(target=$(swiper.params.mousewheel.eventsTarget)),!swiper.mouseEntered&&!target[0].contains(e.target)&&!params.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var delta=0,rtlFactor=swiper.rtlTranslate?-1:1,data=Mousewheel.normalize(e);if(params.forceToAxis)if(swiper.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;delta=-data.pixelX*rtlFactor}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;delta=-data.pixelY}else delta=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*rtlFactor:-data.pixelY;if(0===delta)return!0;params.invert&&(delta=-delta);var positions=swiper.getTranslate()+delta*params.sensitivity;if(positions>=swiper.minTranslate()&&(positions=swiper.minTranslate()),positions<=swiper.maxTranslate()&&(positions=swiper.maxTranslate()),(disableParentSwiper=!!swiper.params.loop||!(positions===swiper.minTranslate()||positions===swiper.maxTranslate()))&&swiper.params.nested&&e.stopPropagation(),swiper.params.freeMode){var _newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta)},lastEventBeforeSnap=swiper.mousewheel.lastEventBeforeSnap,ignoreWheelEvents=lastEventBeforeSnap&&_newEvent.time<lastEventBeforeSnap.time+500&&_newEvent.delta<=lastEventBeforeSnap.delta&&_newEvent.direction===lastEventBeforeSnap.direction;if(!ignoreWheelEvents){swiper.mousewheel.lastEventBeforeSnap=void 0,swiper.params.loop&&swiper.loopFix();var position=swiper.getTranslate()+delta*params.sensitivity,wasBeginning=swiper.isBeginning,wasEnd=swiper.isEnd;if(position>=swiper.minTranslate()&&(position=swiper.minTranslate()),position<=swiper.maxTranslate()&&(position=swiper.maxTranslate()),swiper.setTransition(0),swiper.setTranslate(position),swiper.updateProgress(),swiper.updateActiveIndex(),swiper.updateSlidesClasses(),(!wasBeginning&&swiper.isBeginning||!wasEnd&&swiper.isEnd)&&swiper.updateSlidesClasses(),swiper.params.freeModeSticky){clearTimeout(swiper.mousewheel.timeout),swiper.mousewheel.timeout=void 0;var _recentWheelEvents=swiper.mousewheel.recentWheelEvents;_recentWheelEvents.length>=15&&_recentWheelEvents.shift();var _prevEvent=_recentWheelEvents.length?_recentWheelEvents[_recentWheelEvents.length-1]:void 0,firstEvent=_recentWheelEvents[0];if(_recentWheelEvents.push(_newEvent),_prevEvent&&(_newEvent.delta>_prevEvent.delta||_newEvent.direction!==_prevEvent.direction))_recentWheelEvents.splice(0);else if(_recentWheelEvents.length>=15&&_newEvent.time-firstEvent.time<500&&firstEvent.delta-_newEvent.delta>=1&&_newEvent.delta<=6){var snapToThreshold=delta>0?.8:.2;swiper.mousewheel.lastEventBeforeSnap=_newEvent,_recentWheelEvents.splice(0),swiper.mousewheel.timeout=nextTick((function(){swiper.slideToClosest(swiper.params.speed,!0,void 0,snapToThreshold)}),0)}swiper.mousewheel.timeout||(swiper.mousewheel.timeout=nextTick((function(){var snapToThreshold=.5;swiper.mousewheel.lastEventBeforeSnap=_newEvent,_recentWheelEvents.splice(0),swiper.slideToClosest(swiper.params.speed,!0,void 0,.5)}),500))}if(ignoreWheelEvents||swiper.emit("scroll",e),swiper.params.autoplay&&swiper.params.autoplayDisableOnInteraction&&swiper.autoplay.stop(),position===swiper.minTranslate()||position===swiper.maxTranslate())return!0}}else{var newEvent={time:now(),delta:Math.abs(delta),direction:Math.sign(delta),raw:event},recentWheelEvents=swiper.mousewheel.recentWheelEvents;recentWheelEvents.length>=2&&recentWheelEvents.shift();var prevEvent=recentWheelEvents.length?recentWheelEvents[recentWheelEvents.length-1]:void 0;if(recentWheelEvents.push(newEvent),prevEvent?(newEvent.direction!==prevEvent.direction||newEvent.delta>prevEvent.delta||newEvent.time>prevEvent.time+150)&&swiper.mousewheel.animateSlider(newEvent):swiper.mousewheel.animateSlider(newEvent),swiper.mousewheel.releaseScroll(newEvent))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function animateSlider(newEvent){var swiper=this,window=getWindow();return!(this.params.mousewheel.thresholdDelta&&newEvent.delta<this.params.mousewheel.thresholdDelta)&&(!(this.params.mousewheel.thresholdTime&&now()-this.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime)&&(newEvent.delta>=6&&now()-this.mousewheel.lastScrollTime<60||(newEvent.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",newEvent.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",newEvent.raw)),this.mousewheel.lastScrollTime=(new window.Date).getTime(),!1)))},releaseScroll:function releaseScroll(newEvent){var swiper=this,params=this.params.mousewheel;if(newEvent.direction<0){if(this.isEnd&&!this.params.loop&&params.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&params.releaseOnEdges)return!0;return!1},enable:function enable(){var swiper=this,event=Mousewheel.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(event,this.mousewheel.handle),!0;if(!event)return!1;if(this.mousewheel.enabled)return!1;var target=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(target=$(this.params.mousewheel.eventsTarget)),target.on("mouseenter",this.mousewheel.handleMouseEnter),target.on("mouseleave",this.mousewheel.handleMouseLeave),target.on(event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function disable(){var swiper=this,event=Mousewheel.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(event,this.mousewheel.handle),!0;if(!event)return!1;if(!this.mousewheel.enabled)return!1;var target=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(target=$(this.params.mousewheel.eventsTarget)),target.off(event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},Mousewheel$1,Navigation={toggleEl:function toggleEl($el,disabled){$el[disabled?"addClass":"removeClass"](this.params.navigation.disabledClass),$el[0]&&"BUTTON"===$el[0].tagName&&($el[0].disabled=disabled)},update:function update(){var swiper=this,params=this.params.navigation,toggleEl=this.navigation.toggleEl;if(!this.params.loop){var _swiper$navigation=this.navigation,$nextEl=_swiper$navigation.$nextEl,$prevEl=_swiper$navigation.$prevEl;$prevEl&&$prevEl.length>0&&(this.isBeginning?toggleEl($prevEl,!0):toggleEl($prevEl,!1),$prevEl[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](params.lockClass)),$nextEl&&$nextEl.length>0&&(this.isEnd?toggleEl($nextEl,!0):toggleEl($nextEl,!1),$nextEl[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](params.lockClass))}},onPrevClick:function onPrevClick(e){var swiper=this;e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function onNextClick(e){var swiper=this;e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function init(){var swiper=this,params=this.params.navigation,$nextEl,$prevEl;(params.nextEl||params.prevEl)&&(params.nextEl&&($nextEl=$(params.nextEl),this.params.uniqueNavElements&&"string"==typeof params.nextEl&&$nextEl.length>1&&1===this.$el.find(params.nextEl).length&&($nextEl=this.$el.find(params.nextEl))),params.prevEl&&($prevEl=$(params.prevEl),this.params.uniqueNavElements&&"string"==typeof params.prevEl&&$prevEl.length>1&&1===this.$el.find(params.prevEl).length&&($prevEl=this.$el.find(params.prevEl))),$nextEl&&$nextEl.length>0&&$nextEl.on("click",this.navigation.onNextClick),$prevEl&&$prevEl.length>0&&$prevEl.on("click",this.navigation.onPrevClick),extend(this.navigation,{$nextEl:$nextEl,nextEl:$nextEl&&$nextEl[0],$prevEl:$prevEl,prevEl:$prevEl&&$prevEl[0]}))},destroy:function destroy(){var swiper=this,_swiper$navigation2=this.navigation,$nextEl=_swiper$navigation2.$nextEl,$prevEl=_swiper$navigation2.$prevEl;$nextEl&&$nextEl.length&&($nextEl.off("click",this.navigation.onNextClick),$nextEl.removeClass(this.params.navigation.disabledClass)),$prevEl&&$prevEl.length&&($prevEl.off("click",this.navigation.onPrevClick),$prevEl.removeClass(this.params.navigation.disabledClass))}},Navigation$1,Pagination={update:function update(){var swiper=this,rtl=this.rtl,params=this.params.pagination;if(params.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var slidesLength=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,$el=this.pagination.$el,current,total=this.params.loop?Math.ceil((slidesLength-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((current=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>slidesLength-1-2*this.loopedSlides&&(current-=slidesLength-2*this.loopedSlides),current>total-1&&(current-=total),current<0&&"bullets"!==this.params.paginationType&&(current=total+current)):current=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===params.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var bullets=this.pagination.bullets,firstIndex,lastIndex,midIndex;if(params.dynamicBullets&&(this.pagination.bulletSize=bullets.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),$el.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(params.dynamicMainBullets+4)+"px"),params.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=current-this.previousIndex,this.pagination.dynamicBulletIndex>params.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=params.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),firstIndex=current-this.pagination.dynamicBulletIndex,midIndex=((lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1))+firstIndex)/2),bullets.removeClass(params.bulletActiveClass+" "+params.bulletActiveClass+"-next "+params.bulletActiveClass+"-next-next "+params.bulletActiveClass+"-prev "+params.bulletActiveClass+"-prev-prev "+params.bulletActiveClass+"-main"),$el.length>1)bullets.each((function(bullet){var $bullet=$(bullet),bulletIndex=$bullet.index();bulletIndex===current&&$bullet.addClass(params.bulletActiveClass),params.dynamicBullets&&(bulletIndex>=firstIndex&&bulletIndex<=lastIndex&&$bullet.addClass(params.bulletActiveClass+"-main"),bulletIndex===firstIndex&&$bullet.prev().addClass(params.bulletActiveClass+"-prev").prev().addClass(params.bulletActiveClass+"-prev-prev"),bulletIndex===lastIndex&&$bullet.next().addClass(params.bulletActiveClass+"-next").next().addClass(params.bulletActiveClass+"-next-next"))}));else{var $bullet=bullets.eq(current),bulletIndex=$bullet.index();if($bullet.addClass(params.bulletActiveClass),params.dynamicBullets){for(var $firstDisplayedBullet=bullets.eq(firstIndex),$lastDisplayedBullet=bullets.eq(lastIndex),i=firstIndex;i<=lastIndex;i+=1)bullets.eq(i).addClass(params.bulletActiveClass+"-main");if(this.params.loop)if(bulletIndex>=bullets.length-params.dynamicMainBullets){for(var _i=params.dynamicMainBullets;_i>=0;_i-=1)bullets.eq(bullets.length-_i).addClass(params.bulletActiveClass+"-main");bullets.eq(bullets.length-params.dynamicMainBullets-1).addClass(params.bulletActiveClass+"-prev")}else $firstDisplayedBullet.prev().addClass(params.bulletActiveClass+"-prev").prev().addClass(params.bulletActiveClass+"-prev-prev"),$lastDisplayedBullet.next().addClass(params.bulletActiveClass+"-next").next().addClass(params.bulletActiveClass+"-next-next");else $firstDisplayedBullet.prev().addClass(params.bulletActiveClass+"-prev").prev().addClass(params.bulletActiveClass+"-prev-prev"),$lastDisplayedBullet.next().addClass(params.bulletActiveClass+"-next").next().addClass(params.bulletActiveClass+"-next-next")}}if(params.dynamicBullets){var dynamicBulletsLength=Math.min(bullets.length,params.dynamicMainBullets+4),bulletsOffset=(this.pagination.bulletSize*dynamicBulletsLength-this.pagination.bulletSize)/2-midIndex*this.pagination.bulletSize,offsetProp=rtl?"right":"left";bullets.css(this.isHorizontal()?offsetProp:"top",bulletsOffset+"px")}}if("fraction"===params.type&&($el.find(classesToSelector(params.currentClass)).text(params.formatFractionCurrent(current+1)),$el.find(classesToSelector(params.totalClass)).text(params.formatFractionTotal(total))),"progressbar"===params.type){var progressbarDirection;progressbarDirection=params.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var scale=(current+1)/total,scaleX=1,scaleY=1;"horizontal"===progressbarDirection?scaleX=scale:scaleY=scale,$el.find(classesToSelector(params.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+scaleX+") scaleY("+scaleY+")").transition(this.params.speed)}"custom"===params.type&&params.renderCustom?($el.html(params.renderCustom(this,current+1,total)),this.emit("paginationRender",$el[0])):this.emit("paginationUpdate",$el[0]),$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](params.lockClass)}},render:function render(){var swiper=this,params=this.params.pagination;if(params.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var slidesLength=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,$el=this.pagination.$el,paginationHTML="";if("bullets"===params.type){var numberOfBullets=this.params.loop?Math.ceil((slidesLength-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;this.params.freeMode&&!this.params.loop&&numberOfBullets>slidesLength&&(numberOfBullets=slidesLength);for(var i=0;i<numberOfBullets;i+=1)params.renderBullet?paginationHTML+=params.renderBullet.call(this,i,params.bulletClass):paginationHTML+="<"+params.bulletElement+' class="'+params.bulletClass+'"></'+params.bulletElement+">";$el.html(paginationHTML),this.pagination.bullets=$el.find(classesToSelector(params.bulletClass))}"fraction"===params.type&&(paginationHTML=params.renderFraction?params.renderFraction.call(this,params.currentClass,params.totalClass):'<span class="'+params.currentClass+'"></span> / <span class="'+params.totalClass+'"></span>',$el.html(paginationHTML)),"progressbar"===params.type&&(paginationHTML=params.renderProgressbar?params.renderProgressbar.call(this,params.progressbarFillClass):'<span class="'+params.progressbarFillClass+'"></span>',$el.html(paginationHTML)),"custom"!==params.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function init(){var swiper=this,params=swiper.params.pagination;if(params.el){var $el=$(params.el);0!==$el.length&&(swiper.params.uniqueNavElements&&"string"==typeof params.el&&$el.length>1&&($el=swiper.$el.find(params.el)),"bullets"===params.type&&params.clickable&&$el.addClass(params.clickableClass),$el.addClass(params.modifierClass+params.type),"bullets"===params.type&&params.dynamicBullets&&($el.addClass(""+params.modifierClass+params.type+"-dynamic"),swiper.pagination.dynamicBulletIndex=0,params.dynamicMainBullets<1&&(params.dynamicMainBullets=1)),"progressbar"===params.type&&params.progressbarOpposite&&$el.addClass(params.progressbarOppositeClass),params.clickable&&$el.on("click",classesToSelector(params.bulletClass),(function onClick(e){e.preventDefault();var index=$(this).index()*swiper.params.slidesPerGroup;swiper.params.loop&&(index+=swiper.loopedSlides),swiper.slideTo(index)})),extend(swiper.pagination,{$el:$el,el:$el[0]}))}},destroy:function destroy(){var swiper=this,params=this.params.pagination;if(params.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var $el=this.pagination.$el;$el.removeClass(params.hiddenClass),$el.removeClass(params.modifierClass+params.type),this.pagination.bullets&&this.pagination.bullets.removeClass(params.bulletActiveClass),params.clickable&&$el.off("click",classesToSelector(params.bulletClass))}}},Pagination$1,Scrollbar={setTranslate:function setTranslate(){var swiper=this;if(this.params.scrollbar.el&&this.scrollbar.el){var scrollbar=this.scrollbar,rtl=this.rtlTranslate,progress=this.progress,dragSize=scrollbar.dragSize,trackSize=scrollbar.trackSize,$dragEl=scrollbar.$dragEl,$el=scrollbar.$el,params=this.params.scrollbar,newSize=dragSize,newPos=(trackSize-dragSize)*progress;rtl?(newPos=-newPos)>0?(newSize=dragSize-newPos,newPos=0):-newPos+dragSize>trackSize&&(newSize=trackSize+newPos):newPos<0?(newSize=dragSize+newPos,newPos=0):newPos+dragSize>trackSize&&(newSize=trackSize-newPos),this.isHorizontal()?($dragEl.transform("translate3d("+newPos+"px, 0, 0)"),$dragEl[0].style.width=newSize+"px"):($dragEl.transform("translate3d(0px, "+newPos+"px, 0)"),$dragEl[0].style.height=newSize+"px"),params.hide&&(clearTimeout(this.scrollbar.timeout),$el[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){$el[0].style.opacity=0,$el.transition(400)}),1e3))}},setTransition:function setTransition(duration){var swiper=this;this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(duration)},updateSize:function updateSize(){var swiper=this;if(this.params.scrollbar.el&&this.scrollbar.el){var scrollbar=this.scrollbar,$dragEl=scrollbar.$dragEl,$el=scrollbar.$el;$dragEl[0].style.width="",$dragEl[0].style.height="";var trackSize=this.isHorizontal()?$el[0].offsetWidth:$el[0].offsetHeight,divider=this.size/this.virtualSize,moveDivider=divider*(trackSize/this.size),dragSize;dragSize="auto"===this.params.scrollbar.dragSize?trackSize*divider:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?$dragEl[0].style.width=dragSize+"px":$dragEl[0].style.height=dragSize+"px",$el[0].style.display=divider>=1?"none":"",this.params.scrollbar.hide&&($el[0].style.opacity=0),extend(scrollbar,{trackSize:trackSize,divider:divider,moveDivider:moveDivider,dragSize:dragSize}),scrollbar.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function getPointerPosition(e){var swiper=this;return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function setDragPosition(e){var swiper=this,scrollbar=this.scrollbar,rtl=this.rtlTranslate,$el=scrollbar.$el,dragSize=scrollbar.dragSize,trackSize=scrollbar.trackSize,dragStartPos=scrollbar.dragStartPos,positionRatio;positionRatio=(scrollbar.getPointerPosition(e)-$el.offset()[this.isHorizontal()?"left":"top"]-(null!==dragStartPos?dragStartPos:dragSize/2))/(trackSize-dragSize),positionRatio=Math.max(Math.min(positionRatio,1),0),rtl&&(positionRatio=1-positionRatio);var position=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*positionRatio;this.updateProgress(position),this.setTranslate(position),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function onDragStart(e){var swiper=this,params=this.params.scrollbar,scrollbar=this.scrollbar,$wrapperEl=this.$wrapperEl,$el=scrollbar.$el,$dragEl=scrollbar.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===$dragEl[0]||e.target===$dragEl?scrollbar.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),$wrapperEl.transition(100),$dragEl.transition(100),scrollbar.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),$el.transition(0),params.hide&&$el.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function onDragMove(e){var swiper=this,scrollbar=this.scrollbar,$wrapperEl=this.$wrapperEl,$el=scrollbar.$el,$dragEl=scrollbar.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,scrollbar.setDragPosition(e),$wrapperEl.transition(0),$el.transition(0),$dragEl.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function onDragEnd(e){var swiper=this,params=this.params.scrollbar,scrollbar=this.scrollbar,$wrapperEl=this.$wrapperEl,$el=scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),$wrapperEl.transition("")),params.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=nextTick((function(){$el.css("opacity",0),$el.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),params.snapOnRelease&&this.slideToClosest())},enableDraggable:function enableDraggable(){var swiper=this;if(this.params.scrollbar.el){var document=getDocument(),scrollbar=this.scrollbar,touchEventsTouch=this.touchEventsTouch,touchEventsDesktop=this.touchEventsDesktop,params=this.params,support=this.support,$el,target=scrollbar.$el[0],activeListener=!(!support.passiveListener||!params.passiveListeners)&&{passive:!1,capture:!1},passiveListener=!(!support.passiveListener||!params.passiveListeners)&&{passive:!0,capture:!1};target&&(support.touch?(target.addEventListener(touchEventsTouch.start,this.scrollbar.onDragStart,activeListener),target.addEventListener(touchEventsTouch.move,this.scrollbar.onDragMove,activeListener),target.addEventListener(touchEventsTouch.end,this.scrollbar.onDragEnd,passiveListener)):(target.addEventListener(touchEventsDesktop.start,this.scrollbar.onDragStart,activeListener),document.addEventListener(touchEventsDesktop.move,this.scrollbar.onDragMove,activeListener),document.addEventListener(touchEventsDesktop.end,this.scrollbar.onDragEnd,passiveListener)))}},disableDraggable:function disableDraggable(){var swiper=this;if(this.params.scrollbar.el){var document=getDocument(),scrollbar=this.scrollbar,touchEventsTouch=this.touchEventsTouch,touchEventsDesktop=this.touchEventsDesktop,params=this.params,support=this.support,$el,target=scrollbar.$el[0],activeListener=!(!support.passiveListener||!params.passiveListeners)&&{passive:!1,capture:!1},passiveListener=!(!support.passiveListener||!params.passiveListeners)&&{passive:!0,capture:!1};target&&(support.touch?(target.removeEventListener(touchEventsTouch.start,this.scrollbar.onDragStart,activeListener),target.removeEventListener(touchEventsTouch.move,this.scrollbar.onDragMove,activeListener),target.removeEventListener(touchEventsTouch.end,this.scrollbar.onDragEnd,passiveListener)):(target.removeEventListener(touchEventsDesktop.start,this.scrollbar.onDragStart,activeListener),document.removeEventListener(touchEventsDesktop.move,this.scrollbar.onDragMove,activeListener),document.removeEventListener(touchEventsDesktop.end,this.scrollbar.onDragEnd,passiveListener)))}},init:function init(){var swiper=this;if(this.params.scrollbar.el){var scrollbar=this.scrollbar,$swiperEl=this.$el,params=this.params.scrollbar,$el=$(params.el);this.params.uniqueNavElements&&"string"==typeof params.el&&$el.length>1&&1===$swiperEl.find(params.el).length&&($el=$swiperEl.find(params.el));var $dragEl=$el.find("."+this.params.scrollbar.dragClass);0===$dragEl.length&&($dragEl=$('<div class="'+this.params.scrollbar.dragClass+'"></div>'),$el.append($dragEl)),extend(scrollbar,{$el:$el,el:$el[0],$dragEl:$dragEl,dragEl:$dragEl[0]}),params.draggable&&scrollbar.enableDraggable()}},destroy:function destroy(){var swiper=this;this.scrollbar.disableDraggable()}},Scrollbar$1,Parallax={setTransform:function setTransform(el,progress){var swiper=this,rtl=this.rtl,$el=$(el),rtlFactor=rtl?-1:1,p=$el.attr("data-swiper-parallax")||"0",x=$el.attr("data-swiper-parallax-x"),y=$el.attr("data-swiper-parallax-y"),scale=$el.attr("data-swiper-parallax-scale"),opacity=$el.attr("data-swiper-parallax-opacity");if(x||y?(x=x||"0",y=y||"0"):this.isHorizontal()?(x=p,y="0"):(y=p,x="0"),x=x.indexOf("%")>=0?parseInt(x,10)*progress*rtlFactor+"%":x*progress*rtlFactor+"px",y=y.indexOf("%")>=0?parseInt(y,10)*progress+"%":y*progress+"px",null!=opacity){var currentOpacity=opacity-(opacity-1)*(1-Math.abs(progress));$el[0].style.opacity=currentOpacity}if(null==scale)$el.transform("translate3d("+x+", "+y+", 0px)");else{var currentScale=scale-(scale-1)*(1-Math.abs(progress));$el.transform("translate3d("+x+", "+y+", 0px) scale("+currentScale+")")}},setTranslate:function setTranslate(){var swiper=this,$el=swiper.$el,slides=swiper.slides,progress=swiper.progress,snapGrid=swiper.snapGrid;$el.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(el){swiper.parallax.setTransform(el,progress)})),slides.each((function(slideEl,slideIndex){var slideProgress=slideEl.progress;swiper.params.slidesPerGroup>1&&"auto"!==swiper.params.slidesPerView&&(slideProgress+=Math.ceil(slideIndex/2)-progress*(snapGrid.length-1)),slideProgress=Math.min(Math.max(slideProgress,-1),1),$(slideEl).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(el){swiper.parallax.setTransform(el,slideProgress)}))}))},setTransition:function setTransition(duration){void 0===duration&&(duration=this.params.speed);var swiper=this,$el;this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(parallaxEl){var $parallaxEl=$(parallaxEl),parallaxDuration=parseInt($parallaxEl.attr("data-swiper-parallax-duration"),10)||duration;0===duration&&(parallaxDuration=0),$parallaxEl.transition(parallaxDuration)}))}},Parallax$1,Zoom={getDistanceBetweenTouches:function getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;var x1=e.targetTouches[0].pageX,y1=e.targetTouches[0].pageY,x2=e.targetTouches[1].pageX,y2=e.targetTouches[1].pageY,distance;return Math.sqrt(Math.pow(x2-x1,2)+Math.pow(y2-y1,2))},onGestureStart:function onGestureStart(e){var swiper=this,support=this.support,params=this.params.zoom,zoom=this.zoom,gesture=zoom.gesture;if(zoom.fakeGestureTouched=!1,zoom.fakeGestureMoved=!1,!support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;zoom.fakeGestureTouched=!0,gesture.scaleStart=Zoom.getDistanceBetweenTouches(e)}gesture.$slideEl&&gesture.$slideEl.length||(gesture.$slideEl=$(e.target).closest("."+this.params.slideClass),0===gesture.$slideEl.length&&(gesture.$slideEl=this.slides.eq(this.activeIndex)),gesture.$imageEl=gesture.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),gesture.$imageWrapEl=gesture.$imageEl.parent("."+params.containerClass),gesture.maxRatio=gesture.$imageWrapEl.attr("data-swiper-zoom")||params.maxRatio,0!==gesture.$imageWrapEl.length)?(gesture.$imageEl&&gesture.$imageEl.transition(0),this.zoom.isScaling=!0):gesture.$imageEl=void 0},onGestureChange:function onGestureChange(e){var swiper=this,support=this.support,params=this.params.zoom,zoom=this.zoom,gesture=zoom.gesture;if(!support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;zoom.fakeGestureMoved=!0,gesture.scaleMove=Zoom.getDistanceBetweenTouches(e)}gesture.$imageEl&&0!==gesture.$imageEl.length?(support.gestures?zoom.scale=e.scale*zoom.currentScale:zoom.scale=gesture.scaleMove/gesture.scaleStart*zoom.currentScale,zoom.scale>gesture.maxRatio&&(zoom.scale=gesture.maxRatio-1+Math.pow(zoom.scale-gesture.maxRatio+1,.5)),zoom.scale<params.minRatio&&(zoom.scale=params.minRatio+1-Math.pow(params.minRatio-zoom.scale+1,.5)),gesture.$imageEl.transform("translate3d(0,0,0) scale("+zoom.scale+")")):"gesturechange"===e.type&&zoom.onGestureStart(e)},onGestureEnd:function onGestureEnd(e){var swiper=this,device=this.device,support=this.support,params=this.params.zoom,zoom=this.zoom,gesture=zoom.gesture;if(!support.gestures){if(!zoom.fakeGestureTouched||!zoom.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!device.android)return;zoom.fakeGestureTouched=!1,zoom.fakeGestureMoved=!1}gesture.$imageEl&&0!==gesture.$imageEl.length&&(zoom.scale=Math.max(Math.min(zoom.scale,gesture.maxRatio),params.minRatio),gesture.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+zoom.scale+")"),zoom.currentScale=zoom.scale,zoom.isScaling=!1,1===zoom.scale&&(gesture.$slideEl=void 0))},onTouchStart:function onTouchStart(e){var swiper=this,device=this.device,zoom=this.zoom,gesture=zoom.gesture,image=zoom.image;gesture.$imageEl&&0!==gesture.$imageEl.length&&(image.isTouched||(device.android&&e.cancelable&&e.preventDefault(),image.isTouched=!0,image.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function onTouchMove(e){var swiper=this,zoom=this.zoom,gesture=zoom.gesture,image=zoom.image,velocity=zoom.velocity;if(gesture.$imageEl&&0!==gesture.$imageEl.length&&(this.allowClick=!1,image.isTouched&&gesture.$slideEl)){image.isMoved||(image.width=gesture.$imageEl[0].offsetWidth,image.height=gesture.$imageEl[0].offsetHeight,image.startX=getTranslate(gesture.$imageWrapEl[0],"x")||0,image.startY=getTranslate(gesture.$imageWrapEl[0],"y")||0,gesture.slideWidth=gesture.$slideEl[0].offsetWidth,gesture.slideHeight=gesture.$slideEl[0].offsetHeight,gesture.$imageWrapEl.transition(0),this.rtl&&(image.startX=-image.startX,image.startY=-image.startY));var scaledWidth=image.width*zoom.scale,scaledHeight=image.height*zoom.scale;if(!(scaledWidth<gesture.slideWidth&&scaledHeight<gesture.slideHeight)){if(image.minX=Math.min(gesture.slideWidth/2-scaledWidth/2,0),image.maxX=-image.minX,image.minY=Math.min(gesture.slideHeight/2-scaledHeight/2,0),image.maxY=-image.minY,image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!image.isMoved&&!zoom.isScaling){if(this.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x))return void(image.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y))return void(image.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),image.isMoved=!0,image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX,image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY,image.currentX<image.minX&&(image.currentX=image.minX+1-Math.pow(image.minX-image.currentX+1,.8)),image.currentX>image.maxX&&(image.currentX=image.maxX-1+Math.pow(image.currentX-image.maxX+1,.8)),image.currentY<image.minY&&(image.currentY=image.minY+1-Math.pow(image.minY-image.currentY+1,.8)),image.currentY>image.maxY&&(image.currentY=image.maxY-1+Math.pow(image.currentY-image.maxY+1,.8)),velocity.prevPositionX||(velocity.prevPositionX=image.touchesCurrent.x),velocity.prevPositionY||(velocity.prevPositionY=image.touchesCurrent.y),velocity.prevTime||(velocity.prevTime=Date.now()),velocity.x=(image.touchesCurrent.x-velocity.prevPositionX)/(Date.now()-velocity.prevTime)/2,velocity.y=(image.touchesCurrent.y-velocity.prevPositionY)/(Date.now()-velocity.prevTime)/2,Math.abs(image.touchesCurrent.x-velocity.prevPositionX)<2&&(velocity.x=0),Math.abs(image.touchesCurrent.y-velocity.prevPositionY)<2&&(velocity.y=0),velocity.prevPositionX=image.touchesCurrent.x,velocity.prevPositionY=image.touchesCurrent.y,velocity.prevTime=Date.now(),gesture.$imageWrapEl.transform("translate3d("+image.currentX+"px, "+image.currentY+"px,0)")}}},onTouchEnd:function onTouchEnd(){var swiper=this,zoom=this.zoom,gesture=zoom.gesture,image=zoom.image,velocity=zoom.velocity;if(gesture.$imageEl&&0!==gesture.$imageEl.length){if(!image.isTouched||!image.isMoved)return image.isTouched=!1,void(image.isMoved=!1);image.isTouched=!1,image.isMoved=!1;var momentumDurationX=300,momentumDurationY=300,momentumDistanceX=velocity.x*momentumDurationX,newPositionX=image.currentX+momentumDistanceX,momentumDistanceY=velocity.y*momentumDurationY,newPositionY=image.currentY+momentumDistanceY;0!==velocity.x&&(momentumDurationX=Math.abs((newPositionX-image.currentX)/velocity.x)),0!==velocity.y&&(momentumDurationY=Math.abs((newPositionY-image.currentY)/velocity.y));var momentumDuration=Math.max(momentumDurationX,momentumDurationY);image.currentX=newPositionX,image.currentY=newPositionY;var scaledWidth=image.width*zoom.scale,scaledHeight=image.height*zoom.scale;image.minX=Math.min(gesture.slideWidth/2-scaledWidth/2,0),image.maxX=-image.minX,image.minY=Math.min(gesture.slideHeight/2-scaledHeight/2,0),image.maxY=-image.minY,image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX),image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY),gesture.$imageWrapEl.transition(momentumDuration).transform("translate3d("+image.currentX+"px, "+image.currentY+"px,0)")}},onTransitionEnd:function onTransitionEnd(){var swiper=this,zoom=this.zoom,gesture=zoom.gesture;gesture.$slideEl&&this.previousIndex!==this.activeIndex&&(gesture.$imageEl&&gesture.$imageEl.transform("translate3d(0,0,0) scale(1)"),gesture.$imageWrapEl&&gesture.$imageWrapEl.transform("translate3d(0,0,0)"),zoom.scale=1,zoom.currentScale=1,gesture.$slideEl=void 0,gesture.$imageEl=void 0,gesture.$imageWrapEl=void 0)},toggle:function toggle(e){var swiper=this,zoom=this.zoom;zoom.scale&&1!==zoom.scale?zoom.out():zoom.in(e)},in:function _in(e){var swiper=this,window=getWindow(),zoom=this.zoom,params=this.params.zoom,gesture=zoom.gesture,image=zoom.image,touchX,touchY,offsetX,offsetY,diffX,diffY,translateX,translateY,imageWidth,imageHeight,scaledWidth,scaledHeight,translateMinX,translateMinY,translateMaxX,translateMaxY,slideWidth,slideHeight;(gesture.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?gesture.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):gesture.$slideEl=this.slides.eq(this.activeIndex),gesture.$imageEl=gesture.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),gesture.$imageWrapEl=gesture.$imageEl.parent("."+params.containerClass)),gesture.$imageEl&&0!==gesture.$imageEl.length)&&(gesture.$slideEl.addClass(""+params.zoomedSlideClass),void 0===image.touchesStart.x&&e?(touchX="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,touchY="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(touchX=image.touchesStart.x,touchY=image.touchesStart.y),zoom.scale=gesture.$imageWrapEl.attr("data-swiper-zoom")||params.maxRatio,zoom.currentScale=gesture.$imageWrapEl.attr("data-swiper-zoom")||params.maxRatio,e?(slideWidth=gesture.$slideEl[0].offsetWidth,slideHeight=gesture.$slideEl[0].offsetHeight,diffX=(offsetX=gesture.$slideEl.offset().left+window.scrollX)+slideWidth/2-touchX,diffY=(offsetY=gesture.$slideEl.offset().top+window.scrollY)+slideHeight/2-touchY,imageWidth=gesture.$imageEl[0].offsetWidth,imageHeight=gesture.$imageEl[0].offsetHeight,scaledWidth=imageWidth*zoom.scale,scaledHeight=imageHeight*zoom.scale,translateMaxX=-(translateMinX=Math.min(slideWidth/2-scaledWidth/2,0)),translateMaxY=-(translateMinY=Math.min(slideHeight/2-scaledHeight/2,0)),(translateX=diffX*zoom.scale)<translateMinX&&(translateX=translateMinX),translateX>translateMaxX&&(translateX=translateMaxX),(translateY=diffY*zoom.scale)<translateMinY&&(translateY=translateMinY),translateY>translateMaxY&&(translateY=translateMaxY)):(translateX=0,translateY=0),gesture.$imageWrapEl.transition(300).transform("translate3d("+translateX+"px, "+translateY+"px,0)"),gesture.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+zoom.scale+")"))},out:function out(){var swiper=this,zoom=this.zoom,params=this.params.zoom,gesture=zoom.gesture;gesture.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?gesture.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):gesture.$slideEl=this.slides.eq(this.activeIndex),gesture.$imageEl=gesture.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),gesture.$imageWrapEl=gesture.$imageEl.parent("."+params.containerClass)),gesture.$imageEl&&0!==gesture.$imageEl.length&&(zoom.scale=1,zoom.currentScale=1,gesture.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),gesture.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),gesture.$slideEl.removeClass(""+params.zoomedSlideClass),gesture.$slideEl=void 0)},toggleGestures:function toggleGestures(method){var swiper=this,zoom=this.zoom,selector=zoom.slideSelector,passive=zoom.passiveListener;this.$wrapperEl[method]("gesturestart",selector,zoom.onGestureStart,passive),this.$wrapperEl[method]("gesturechange",selector,zoom.onGestureChange,passive),this.$wrapperEl[method]("gestureend",selector,zoom.onGestureEnd,passive)},enableGestures:function enableGestures(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function disableGestures(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function enable(){var swiper=this,support=this.support,zoom=this.zoom;if(!zoom.enabled){zoom.enabled=!0;var passiveListener=!("touchstart"!==this.touchEvents.start||!support.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture=!support.passiveListener||{passive:!1,capture:!0},slideSelector="."+this.params.slideClass;this.zoom.passiveListener=passiveListener,this.zoom.slideSelector=slideSelector,support.gestures?(this.$wrapperEl.on(this.touchEvents.start,this.zoom.enableGestures,passiveListener),this.$wrapperEl.on(this.touchEvents.end,this.zoom.disableGestures,passiveListener)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,slideSelector,zoom.onGestureStart,passiveListener),this.$wrapperEl.on(this.touchEvents.move,slideSelector,zoom.onGestureChange,activeListenerWithCapture),this.$wrapperEl.on(this.touchEvents.end,slideSelector,zoom.onGestureEnd,passiveListener),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,slideSelector,zoom.onGestureEnd,passiveListener)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,zoom.onTouchMove,activeListenerWithCapture)}},disable:function disable(){var swiper=this,zoom=this.zoom;if(zoom.enabled){var support=this.support;this.zoom.enabled=!1;var passiveListener=!("touchstart"!==this.touchEvents.start||!support.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture=!support.passiveListener||{passive:!1,capture:!0},slideSelector="."+this.params.slideClass;support.gestures?(this.$wrapperEl.off(this.touchEvents.start,this.zoom.enableGestures,passiveListener),this.$wrapperEl.off(this.touchEvents.end,this.zoom.disableGestures,passiveListener)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,slideSelector,zoom.onGestureStart,passiveListener),this.$wrapperEl.off(this.touchEvents.move,slideSelector,zoom.onGestureChange,activeListenerWithCapture),this.$wrapperEl.off(this.touchEvents.end,slideSelector,zoom.onGestureEnd,passiveListener),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,slideSelector,zoom.onGestureEnd,passiveListener)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,zoom.onTouchMove,activeListenerWithCapture)}}},Zoom$1,Lazy={loadInSlide:function loadInSlide(index,loadInDuplicate){void 0===loadInDuplicate&&(loadInDuplicate=!0);var swiper=this,params=swiper.params.lazy;if(void 0!==index&&0!==swiper.slides.length){var isVirtual,$slideEl=swiper.virtual&&swiper.params.virtual.enabled?swiper.$wrapperEl.children("."+swiper.params.slideClass+'[data-swiper-slide-index="'+index+'"]'):swiper.slides.eq(index),$images=$slideEl.find("."+params.elementClass+":not(."+params.loadedClass+"):not(."+params.loadingClass+")");!$slideEl.hasClass(params.elementClass)||$slideEl.hasClass(params.loadedClass)||$slideEl.hasClass(params.loadingClass)||$images.push($slideEl[0]),0!==$images.length&&$images.each((function(imageEl){var $imageEl=$(imageEl);$imageEl.addClass(params.loadingClass);var background=$imageEl.attr("data-background"),src=$imageEl.attr("data-src"),srcset=$imageEl.attr("data-srcset"),sizes=$imageEl.attr("data-sizes"),$pictureEl=$imageEl.parent("picture");swiper.loadImage($imageEl[0],src||background,srcset,sizes,!1,(function(){if(null!=swiper&&swiper&&(!swiper||swiper.params)&&!swiper.destroyed){if(background?($imageEl.css("background-image",'url("'+background+'")'),$imageEl.removeAttr("data-background")):(srcset&&($imageEl.attr("srcset",srcset),$imageEl.removeAttr("data-srcset")),sizes&&($imageEl.attr("sizes",sizes),$imageEl.removeAttr("data-sizes")),$pictureEl.length&&$pictureEl.children("source").each((function(sourceEl){var $source=$(sourceEl);$source.attr("data-srcset")&&($source.attr("srcset",$source.attr("data-srcset")),$source.removeAttr("data-srcset"))})),src&&($imageEl.attr("src",src),$imageEl.removeAttr("data-src"))),$imageEl.addClass(params.loadedClass).removeClass(params.loadingClass),$slideEl.find("."+params.preloaderClass).remove(),swiper.params.loop&&loadInDuplicate){var slideOriginalIndex=$slideEl.attr("data-swiper-slide-index");if($slideEl.hasClass(swiper.params.slideDuplicateClass)){var originalSlide=swiper.$wrapperEl.children('[data-swiper-slide-index="'+slideOriginalIndex+'"]:not(.'+swiper.params.slideDuplicateClass+")");swiper.lazy.loadInSlide(originalSlide.index(),!1)}else{var duplicatedSlide=swiper.$wrapperEl.children("."+swiper.params.slideDuplicateClass+'[data-swiper-slide-index="'+slideOriginalIndex+'"]');swiper.lazy.loadInSlide(duplicatedSlide.index(),!1)}}swiper.emit("lazyImageReady",$slideEl[0],$imageEl[0]),swiper.params.autoHeight&&swiper.updateAutoHeight()}})),swiper.emit("lazyImageLoad",$slideEl[0],$imageEl[0])}))}},load:function load(){var swiper=this,$wrapperEl=swiper.$wrapperEl,swiperParams=swiper.params,slides=swiper.slides,activeIndex=swiper.activeIndex,isVirtual=swiper.virtual&&swiperParams.virtual.enabled,params=swiperParams.lazy,slidesPerView=swiperParams.slidesPerView;function slideExist(index){if(isVirtual){if($wrapperEl.children("."+swiperParams.slideClass+'[data-swiper-slide-index="'+index+'"]').length)return!0}else if(slides[index])return!0;return!1}function slideIndex(slideEl){return isVirtual?$(slideEl).attr("data-swiper-slide-index"):$(slideEl).index()}if("auto"===slidesPerView&&(slidesPerView=0),swiper.lazy.initialImageLoaded||(swiper.lazy.initialImageLoaded=!0),swiper.params.watchSlidesVisibility)$wrapperEl.children("."+swiperParams.slideVisibleClass).each((function(slideEl){var index=isVirtual?$(slideEl).attr("data-swiper-slide-index"):$(slideEl).index();swiper.lazy.loadInSlide(index)}));else if(slidesPerView>1)for(var i=activeIndex;i<activeIndex+slidesPerView;i+=1)slideExist(i)&&swiper.lazy.loadInSlide(i);else swiper.lazy.loadInSlide(activeIndex);if(params.loadPrevNext)if(slidesPerView>1||params.loadPrevNextAmount&&params.loadPrevNextAmount>1){for(var amount=params.loadPrevNextAmount,spv=slidesPerView,maxIndex=Math.min(activeIndex+spv+Math.max(amount,spv),slides.length),minIndex=Math.max(activeIndex-Math.max(spv,amount),0),_i=activeIndex+slidesPerView;_i<maxIndex;_i+=1)slideExist(_i)&&swiper.lazy.loadInSlide(_i);for(var _i2=minIndex;_i2<activeIndex;_i2+=1)slideExist(_i2)&&swiper.lazy.loadInSlide(_i2)}else{var nextSlide=$wrapperEl.children("."+swiperParams.slideNextClass);nextSlide.length>0&&swiper.lazy.loadInSlide(slideIndex(nextSlide));var prevSlide=$wrapperEl.children("."+swiperParams.slidePrevClass);prevSlide.length>0&&swiper.lazy.loadInSlide(slideIndex(prevSlide))}},checkInViewOnLoad:function checkInViewOnLoad(){var window=getWindow(),swiper=this;if(this&&!this.destroyed){var $scrollElement=this.params.lazy.scrollingElement?$(this.params.lazy.scrollingElement):$(window),isWindow=$scrollElement[0]===window,scrollElementWidth=isWindow?window.innerWidth:$scrollElement[0].offsetWidth,scrollElementHeight=isWindow?window.innerHeight:$scrollElement[0].offsetHeight,swiperOffset=this.$el.offset(),rtl,inView=!1;this.rtlTranslate&&(swiperOffset.left-=this.$el[0].scrollLeft);for(var swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+this.width,swiperOffset.top],[swiperOffset.left,swiperOffset.top+this.height],[swiperOffset.left+this.width,swiperOffset.top+this.height]],i=0;i<swiperCoord.length;i+=1){var point=swiperCoord[i];if(point[0]>=0&&point[0]<=scrollElementWidth&&point[1]>=0&&point[1]<=scrollElementHeight){if(0===point[0]&&0===point[1])continue;inView=!0}}inView?(this.lazy.load(),$scrollElement.off("scroll",this.lazy.checkInViewOnLoad)):this.lazy.scrollHandlerAttached||(this.lazy.scrollHandlerAttached=!0,$scrollElement.on("scroll",this.lazy.checkInViewOnLoad))}}},Lazy$1,Controller={LinearSpline:function LinearSpline(x,y){var binarySearch=function search(){var maxIndex,minIndex,guess;return function(array,val){for(minIndex=-1,maxIndex=array.length;maxIndex-minIndex>1;)array[guess=maxIndex+minIndex>>1]<=val?minIndex=guess:maxIndex=guess;return maxIndex}}(),i1,i3;return this.x=x,this.y=y,this.lastIndex=x.length-1,this.interpolate=function interpolate(x2){return x2?(i3=binarySearch(this.x,x2),i1=i3-1,(x2-this.x[i1])*(this.y[i3]-this.y[i1])/(this.x[i3]-this.x[i1])+this.y[i1]):0},this},getInterpolateFunction:function getInterpolateFunction(c){var swiper=this;this.controller.spline||(this.controller.spline=this.params.loop?new Controller.LinearSpline(this.slidesGrid,c.slidesGrid):new Controller.LinearSpline(this.snapGrid,c.snapGrid))},setTranslate:function setTranslate(_setTranslate,byController){var swiper=this,controlled=swiper.controller.control,multiplier,controlledTranslate,Swiper=swiper.constructor;function setControlledTranslate(c){var translate=swiper.rtlTranslate?-swiper.translate:swiper.translate;"slide"===swiper.params.controller.by&&(swiper.controller.getInterpolateFunction(c),controlledTranslate=-swiper.controller.spline.interpolate(-translate)),controlledTranslate&&"container"!==swiper.params.controller.by||(multiplier=(c.maxTranslate()-c.minTranslate())/(swiper.maxTranslate()-swiper.minTranslate()),controlledTranslate=(translate-swiper.minTranslate())*multiplier+c.minTranslate()),swiper.params.controller.inverse&&(controlledTranslate=c.maxTranslate()-controlledTranslate),c.updateProgress(controlledTranslate),c.setTranslate(controlledTranslate,swiper),c.updateActiveIndex(),c.updateSlidesClasses()}if(Array.isArray(controlled))for(var i=0;i<controlled.length;i+=1)controlled[i]!==byController&&controlled[i]instanceof Swiper&&setControlledTranslate(controlled[i]);else controlled instanceof Swiper&&byController!==controlled&&setControlledTranslate(controlled)},setTransition:function setTransition(duration,byController){var swiper=this,Swiper=swiper.constructor,controlled=swiper.controller.control,i;function setControlledTransition(c){c.setTransition(duration,swiper),0!==duration&&(c.transitionStart(),c.params.autoHeight&&nextTick((function(){c.updateAutoHeight()})),c.$wrapperEl.transitionEnd((function(){controlled&&(c.params.loop&&"slide"===swiper.params.controller.by&&c.loopFix(),c.transitionEnd())})))}if(Array.isArray(controlled))for(i=0;i<controlled.length;i+=1)controlled[i]!==byController&&controlled[i]instanceof Swiper&&setControlledTransition(controlled[i]);else controlled instanceof Swiper&&byController!==controlled&&setControlledTransition(controlled)}},Controller$1,A11y={getRandomNumber:function getRandomNumber(size){void 0===size&&(size=16);var randomChar=function randomChar(){return Math.round(16*Math.random()).toString(16)};return"x".repeat(size).replace(/x/g,randomChar)},makeElFocusable:function makeElFocusable($el){return $el.attr("tabIndex","0"),$el},makeElNotFocusable:function makeElNotFocusable($el){return $el.attr("tabIndex","-1"),$el},addElRole:function addElRole($el,role){return $el.attr("role",role),$el},addElRoleDescription:function addElRoleDescription($el,description){return $el.attr("aria-roledescription",description),$el},addElControls:function addElControls($el,controls){return $el.attr("aria-controls",controls),$el},addElLabel:function addElLabel($el,label){return $el.attr("aria-label",label),$el},addElId:function addElId($el,id){return $el.attr("id",id),$el},addElLive:function addElLive($el,live){return $el.attr("aria-live",live),$el},disableEl:function disableEl($el){return $el.attr("aria-disabled",!0),$el},enableEl:function enableEl($el){return $el.attr("aria-disabled",!1),$el},onEnterOrSpaceKey:function onEnterOrSpaceKey(e){if(13===e.keyCode||32===e.keyCode){var swiper=this,params=this.params.a11y,$targetEl=$(e.target);this.navigation&&this.navigation.$nextEl&&$targetEl.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(params.lastSlideMessage):this.a11y.notify(params.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&$targetEl.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(params.firstSlideMessage):this.a11y.notify(params.prevSlideMessage)),this.pagination&&$targetEl.is(classesToSelector(this.params.pagination.bulletClass))&&$targetEl[0].trigger("click")}},notify:function notify(message){var swiper=this,notification=this.a11y.liveRegion;0!==notification.length&&(notification.html(""),notification.html(message))},updateNavigation:function updateNavigation(){var swiper=this;if(!this.params.loop&&this.navigation){var _swiper$navigation=this.navigation,$nextEl=_swiper$navigation.$nextEl,$prevEl=_swiper$navigation.$prevEl;$prevEl&&$prevEl.length>0&&(this.isBeginning?(this.a11y.disableEl($prevEl),this.a11y.makeElNotFocusable($prevEl)):(this.a11y.enableEl($prevEl),this.a11y.makeElFocusable($prevEl))),$nextEl&&$nextEl.length>0&&(this.isEnd?(this.a11y.disableEl($nextEl),this.a11y.makeElNotFocusable($nextEl)):(this.a11y.enableEl($nextEl),this.a11y.makeElFocusable($nextEl)))}},updatePagination:function updatePagination(){var swiper=this,params=swiper.params.a11y;swiper.pagination&&swiper.params.pagination.clickable&&swiper.pagination.bullets&&swiper.pagination.bullets.length&&swiper.pagination.bullets.each((function(bulletEl){var $bulletEl=$(bulletEl);swiper.a11y.makeElFocusable($bulletEl),swiper.params.pagination.renderBullet||(swiper.a11y.addElRole($bulletEl,"button"),swiper.a11y.addElLabel($bulletEl,params.paginationBulletMessage.replace(/\{\{index\}\}/,$bulletEl.index()+1)))}))},init:function init(){var swiper=this,params=swiper.params.a11y;swiper.$el.append(swiper.a11y.liveRegion);var $containerEl=swiper.$el;params.containerRoleDescriptionMessage&&swiper.a11y.addElRoleDescription($containerEl,params.containerRoleDescriptionMessage),params.containerMessage&&swiper.a11y.addElLabel($containerEl,params.containerMessage);var $wrapperEl=swiper.$wrapperEl,wrapperId=$wrapperEl.attr("id")||"swiper-wrapper-"+swiper.a11y.getRandomNumber(16),live,$nextEl,$prevEl;swiper.a11y.addElId($wrapperEl,wrapperId),live=swiper.params.autoplay&&swiper.params.autoplay.enabled?"off":"polite",swiper.a11y.addElLive($wrapperEl,live),params.itemRoleDescriptionMessage&&swiper.a11y.addElRoleDescription($(swiper.slides),params.itemRoleDescriptionMessage),swiper.a11y.addElRole($(swiper.slides),"group"),swiper.slides.each((function(slideEl){var $slideEl=$(slideEl),ariaLabelMessage=params.slideLabelMessage.replace(/\{\{index\}\}/,$slideEl.index()+1).replace(/\{\{slidesLength\}\}/,swiper.slides.length);swiper.a11y.addElLabel($slideEl,ariaLabelMessage)})),swiper.navigation&&swiper.navigation.$nextEl&&($nextEl=swiper.navigation.$nextEl),swiper.navigation&&swiper.navigation.$prevEl&&($prevEl=swiper.navigation.$prevEl),$nextEl&&$nextEl.length&&(swiper.a11y.makeElFocusable($nextEl),"BUTTON"!==$nextEl[0].tagName&&(swiper.a11y.addElRole($nextEl,"button"),$nextEl.on("keydown",swiper.a11y.onEnterOrSpaceKey)),swiper.a11y.addElLabel($nextEl,params.nextSlideMessage),swiper.a11y.addElControls($nextEl,wrapperId)),$prevEl&&$prevEl.length&&(swiper.a11y.makeElFocusable($prevEl),"BUTTON"!==$prevEl[0].tagName&&(swiper.a11y.addElRole($prevEl,"button"),$prevEl.on("keydown",swiper.a11y.onEnterOrSpaceKey)),swiper.a11y.addElLabel($prevEl,params.prevSlideMessage),swiper.a11y.addElControls($prevEl,wrapperId)),swiper.pagination&&swiper.params.pagination.clickable&&swiper.pagination.bullets&&swiper.pagination.bullets.length&&swiper.pagination.$el.on("keydown",classesToSelector(swiper.params.pagination.bulletClass),swiper.a11y.onEnterOrSpaceKey)},destroy:function destroy(){var swiper=this,$nextEl,$prevEl;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&($nextEl=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&($prevEl=this.navigation.$prevEl),$nextEl&&$nextEl.off("keydown",this.a11y.onEnterOrSpaceKey),$prevEl&&$prevEl.off("keydown",this.a11y.onEnterOrSpaceKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",classesToSelector(this.params.pagination.bulletClass),this.a11y.onEnterOrSpaceKey)}},A11y$1,History={init:function init(){var swiper=this,window=getWindow();if(this.params.history){if(!window.history||!window.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var history=this.history;history.initialized=!0,history.paths=History.getPathValues(this.params.url),(history.paths.key||history.paths.value)&&(history.scrollToSlide(0,history.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||window.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function destroy(){var swiper=this,window=getWindow();this.params.history.replaceState||window.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function setHistoryPopState(){var swiper=this;this.history.paths=History.getPathValues(this.params.url),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function getPathValues(urlOverride){var window=getWindow(),location,pathArray=(location=urlOverride?new URL(urlOverride):window.location).pathname.slice(1).split("/").filter((function(part){return""!==part})),total=pathArray.length,key,value;return{key:pathArray[total-2],value:pathArray[total-1]}},setHistory:function setHistory(key,index){var swiper=this,window=getWindow();if(this.history.initialized&&this.params.history.enabled){var location;location=this.params.url?new URL(this.params.url):window.location;var slide=this.slides.eq(index),value=History.slugify(slide.attr("data-history"));location.pathname.includes(key)||(value=key+"/"+value);var currentState=window.history.state;currentState&&currentState.value===value||(this.params.history.replaceState?window.history.replaceState({value:value},null,value):window.history.pushState({value:value},null,value))}},slugify:function slugify(text){return text.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function scrollToSlide(speed,value,runCallbacks){var swiper=this;if(value)for(var i=0,length=this.slides.length;i<length;i+=1){var slide=this.slides.eq(i),slideHistory;if(History.slugify(slide.attr("data-history"))===value&&!slide.hasClass(this.params.slideDuplicateClass)){var index=slide.index();this.slideTo(index,speed,runCallbacks)}}else this.slideTo(0,speed,runCallbacks)}},History$1,HashNavigation={onHashCange:function onHashCange(){var swiper=this,document=getDocument();this.emit("hashChange");var newHash=document.location.hash.replace("#",""),activeSlideHash;if(newHash!==this.slides.eq(this.activeIndex).attr("data-hash")){var newIndex=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+newHash+'"]').index();if(void 0===newIndex)return;this.slideTo(newIndex)}},setHash:function setHash(){var swiper=this,window=getWindow(),document=getDocument();if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||""),this.emit("hashSet");else{var slide=this.slides.eq(this.activeIndex),hash=slide.attr("data-hash")||slide.attr("data-history");document.location.hash=hash||"",this.emit("hashSet")}},init:function init(){var swiper=this,document=getDocument(),window=getWindow();if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var hash=document.location.hash.replace("#","");if(hash)for(var speed=0,i=0,length=this.slides.length;i<length;i+=1){var slide=this.slides.eq(i),slideHash;if((slide.attr("data-hash")||slide.attr("data-history"))===hash&&!slide.hasClass(this.params.slideDuplicateClass)){var index=slide.index();this.slideTo(index,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&$(window).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function destroy(){var swiper=this,window=getWindow();this.params.hashNavigation.watchState&&$(window).off("hashchange",this.hashNavigation.onHashCange)}},HashNavigation$1,Autoplay={run:function run(){var swiper=this,$activeSlideEl=swiper.slides.eq(swiper.activeIndex),delay=swiper.params.autoplay.delay;$activeSlideEl.attr("data-swiper-autoplay")&&(delay=$activeSlideEl.attr("data-swiper-autoplay")||swiper.params.autoplay.delay),clearTimeout(swiper.autoplay.timeout),swiper.autoplay.timeout=nextTick((function(){var autoplayResult;swiper.params.autoplay.reverseDirection?swiper.params.loop?(swiper.loopFix(),autoplayResult=swiper.slidePrev(swiper.params.speed,!0,!0),swiper.emit("autoplay")):swiper.isBeginning?swiper.params.autoplay.stopOnLastSlide?swiper.autoplay.stop():(autoplayResult=swiper.slideTo(swiper.slides.length-1,swiper.params.speed,!0,!0),swiper.emit("autoplay")):(autoplayResult=swiper.slidePrev(swiper.params.speed,!0,!0),swiper.emit("autoplay")):swiper.params.loop?(swiper.loopFix(),autoplayResult=swiper.slideNext(swiper.params.speed,!0,!0),swiper.emit("autoplay")):swiper.isEnd?swiper.params.autoplay.stopOnLastSlide?swiper.autoplay.stop():(autoplayResult=swiper.slideTo(0,swiper.params.speed,!0,!0),swiper.emit("autoplay")):(autoplayResult=swiper.slideNext(swiper.params.speed,!0,!0),swiper.emit("autoplay")),swiper.params.cssMode&&swiper.autoplay.running?swiper.autoplay.run():!1===autoplayResult&&swiper.autoplay.run()}),delay)},start:function start(){var swiper=this;return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function stop(){var swiper=this;return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function pause(speed){var swiper=this;this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==speed&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))},onVisibilityChange:function onVisibilityChange(){var swiper=this,document=getDocument();"hidden"===document.visibilityState&&this.autoplay.running&&this.autoplay.pause(),"visible"===document.visibilityState&&this.autoplay.paused&&(this.autoplay.run(),this.autoplay.paused=!1)},onTransitionEnd:function onTransitionEnd(e){var swiper=this;this&&!this.destroyed&&this.$wrapperEl&&e.target===this.$wrapperEl[0]&&(this.$wrapperEl[0].removeEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].removeEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd),this.autoplay.paused=!1,this.autoplay.running?this.autoplay.run():this.autoplay.stop())}},Autoplay$1,Fade={setTranslate:function setTranslate(){for(var swiper=this,slides=this.slides,i=0;i<slides.length;i+=1){var $slideEl=this.slides.eq(i),offset,tx=-$slideEl[0].swiperSlideOffset;this.params.virtualTranslate||(tx-=this.translate);var ty=0;this.isHorizontal()||(ty=tx,tx=0);var slideOpacity=this.params.fadeEffect.crossFade?Math.max(1-Math.abs($slideEl[0].progress),0):1+Math.min(Math.max($slideEl[0].progress,-1),0);$slideEl.css({opacity:slideOpacity}).transform("translate3d("+tx+"px, "+ty+"px, 0px)")}},setTransition:function setTransition(duration){var swiper=this,slides=swiper.slides,$wrapperEl=swiper.$wrapperEl;if(slides.transition(duration),swiper.params.virtualTranslate&&0!==duration){var eventTriggered=!1;slides.transitionEnd((function(){if(!eventTriggered&&swiper&&!swiper.destroyed){eventTriggered=!0,swiper.animating=!1;for(var triggerEvents=["webkitTransitionEnd","transitionend"],i=0;i<triggerEvents.length;i+=1)$wrapperEl.trigger(triggerEvents[i])}}))}}},EffectFade,Cube={setTranslate:function setTranslate(){var swiper=this,$el=this.$el,$wrapperEl=this.$wrapperEl,slides=this.slides,swiperWidth=this.width,swiperHeight=this.height,rtl=this.rtlTranslate,swiperSize=this.size,browser=this.browser,params=this.params.cubeEffect,isHorizontal=this.isHorizontal(),isVirtual=this.virtual&&this.params.virtual.enabled,wrapperRotate=0,$cubeShadowEl;params.shadow&&(isHorizontal?(0===($cubeShadowEl=$wrapperEl.find(".swiper-cube-shadow")).length&&($cubeShadowEl=$('<div class="swiper-cube-shadow"></div>'),$wrapperEl.append($cubeShadowEl)),$cubeShadowEl.css({height:swiperWidth+"px"})):0===($cubeShadowEl=$el.find(".swiper-cube-shadow")).length&&($cubeShadowEl=$('<div class="swiper-cube-shadow"></div>'),$el.append($cubeShadowEl)));for(var i=0;i<slides.length;i+=1){var $slideEl=slides.eq(i),slideIndex=i;isVirtual&&(slideIndex=parseInt($slideEl.attr("data-swiper-slide-index"),10));var slideAngle=90*slideIndex,round=Math.floor(slideAngle/360);rtl&&(slideAngle=-slideAngle,round=Math.floor(-slideAngle/360));var progress=Math.max(Math.min($slideEl[0].progress,1),-1),tx=0,ty=0,tz=0;slideIndex%4==0?(tx=4*-round*swiperSize,tz=0):(slideIndex-1)%4==0?(tx=0,tz=4*-round*swiperSize):(slideIndex-2)%4==0?(tx=swiperSize+4*round*swiperSize,tz=swiperSize):(slideIndex-3)%4==0&&(tx=-swiperSize,tz=3*swiperSize+4*swiperSize*round),rtl&&(tx=-tx),isHorizontal||(ty=tx,tx=0);var transform="rotateX("+(isHorizontal?0:-slideAngle)+"deg) rotateY("+(isHorizontal?slideAngle:0)+"deg) translate3d("+tx+"px, "+ty+"px, "+tz+"px)";if(progress<=1&&progress>-1&&(wrapperRotate=90*slideIndex+90*progress,rtl&&(wrapperRotate=90*-slideIndex-90*progress)),$slideEl.transform(transform),params.slideShadows){var shadowBefore=isHorizontal?$slideEl.find(".swiper-slide-shadow-left"):$slideEl.find(".swiper-slide-shadow-top"),shadowAfter=isHorizontal?$slideEl.find(".swiper-slide-shadow-right"):$slideEl.find(".swiper-slide-shadow-bottom");0===shadowBefore.length&&(shadowBefore=$('<div class="swiper-slide-shadow-'+(isHorizontal?"left":"top")+'"></div>'),$slideEl.append(shadowBefore)),0===shadowAfter.length&&(shadowAfter=$('<div class="swiper-slide-shadow-'+(isHorizontal?"right":"bottom")+'"></div>'),$slideEl.append(shadowAfter)),shadowBefore.length&&(shadowBefore[0].style.opacity=Math.max(-progress,0)),shadowAfter.length&&(shadowAfter[0].style.opacity=Math.max(progress,0))}}if($wrapperEl.css({"-webkit-transform-origin":"50% 50% -"+swiperSize/2+"px","-moz-transform-origin":"50% 50% -"+swiperSize/2+"px","-ms-transform-origin":"50% 50% -"+swiperSize/2+"px","transform-origin":"50% 50% -"+swiperSize/2+"px"}),params.shadow)if(isHorizontal)$cubeShadowEl.transform("translate3d(0px, "+(swiperWidth/2+params.shadowOffset)+"px, "+-swiperWidth/2+"px) rotateX(90deg) rotateZ(0deg) scale("+params.shadowScale+")");else{var shadowAngle=Math.abs(wrapperRotate)-90*Math.floor(Math.abs(wrapperRotate)/90),multiplier=1.5-(Math.sin(2*shadowAngle*Math.PI/360)/2+Math.cos(2*shadowAngle*Math.PI/360)/2),scale1=params.shadowScale,scale2=params.shadowScale/multiplier,offset=params.shadowOffset;$cubeShadowEl.transform("scale3d("+scale1+", 1, "+scale2+") translate3d(0px, "+(swiperHeight/2+offset)+"px, "+-swiperHeight/2/scale2+"px) rotateX(-90deg)")}var zFactor=browser.isSafari||browser.isWebView?-swiperSize/2:0;$wrapperEl.transform("translate3d(0px,0,"+zFactor+"px) rotateX("+(this.isHorizontal()?0:wrapperRotate)+"deg) rotateY("+(this.isHorizontal()?-wrapperRotate:0)+"deg)")},setTransition:function setTransition(duration){var swiper=this,$el=this.$el,slides;this.slides.transition(duration).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(duration),this.params.cubeEffect.shadow&&!this.isHorizontal()&&$el.find(".swiper-cube-shadow").transition(duration)}},EffectCube,Flip={setTranslate:function setTranslate(){for(var swiper=this,slides=this.slides,rtl=this.rtlTranslate,i=0;i<slides.length;i+=1){var $slideEl=slides.eq(i),progress=$slideEl[0].progress;this.params.flipEffect.limitRotation&&(progress=Math.max(Math.min($slideEl[0].progress,1),-1));var offset,rotate,rotateY=-180*progress,rotateX=0,tx=-$slideEl[0].swiperSlideOffset,ty=0;if(this.isHorizontal()?rtl&&(rotateY=-rotateY):(ty=tx,tx=0,rotateX=-rotateY,rotateY=0),$slideEl[0].style.zIndex=-Math.abs(Math.round(progress))+slides.length,this.params.flipEffect.slideShadows){var shadowBefore=this.isHorizontal()?$slideEl.find(".swiper-slide-shadow-left"):$slideEl.find(".swiper-slide-shadow-top"),shadowAfter=this.isHorizontal()?$slideEl.find(".swiper-slide-shadow-right"):$slideEl.find(".swiper-slide-shadow-bottom");0===shadowBefore.length&&(shadowBefore=$('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),$slideEl.append(shadowBefore)),0===shadowAfter.length&&(shadowAfter=$('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),$slideEl.append(shadowAfter)),shadowBefore.length&&(shadowBefore[0].style.opacity=Math.max(-progress,0)),shadowAfter.length&&(shadowAfter[0].style.opacity=Math.max(progress,0))}$slideEl.transform("translate3d("+tx+"px, "+ty+"px, 0px) rotateX("+rotateX+"deg) rotateY("+rotateY+"deg)")}},setTransition:function setTransition(duration){var swiper=this,slides=swiper.slides,activeIndex=swiper.activeIndex,$wrapperEl=swiper.$wrapperEl;if(slides.transition(duration).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(duration),swiper.params.virtualTranslate&&0!==duration){var eventTriggered=!1;slides.eq(activeIndex).transitionEnd((function onTransitionEnd(){if(!eventTriggered&&swiper&&!swiper.destroyed){eventTriggered=!0,swiper.animating=!1;for(var triggerEvents=["webkitTransitionEnd","transitionend"],i=0;i<triggerEvents.length;i+=1)$wrapperEl.trigger(triggerEvents[i])}}))}}},EffectFlip,Coverflow={setTranslate:function setTranslate(){for(var swiper=this,swiperWidth=this.width,swiperHeight=this.height,slides=this.slides,slidesSizesGrid=this.slidesSizesGrid,params=this.params.coverflowEffect,isHorizontal=this.isHorizontal(),transform=this.translate,center=isHorizontal?swiperWidth/2-transform:swiperHeight/2-transform,rotate=isHorizontal?params.rotate:-params.rotate,translate=params.depth,i=0,length=slides.length;i<length;i+=1){var $slideEl=slides.eq(i),slideSize=slidesSizesGrid[i],slideOffset,offsetMultiplier=(center-$slideEl[0].swiperSlideOffset-slideSize/2)/slideSize*params.modifier,rotateY=isHorizontal?rotate*offsetMultiplier:0,rotateX=isHorizontal?0:rotate*offsetMultiplier,translateZ=-translate*Math.abs(offsetMultiplier),stretch=params.stretch;"string"==typeof stretch&&-1!==stretch.indexOf("%")&&(stretch=parseFloat(params.stretch)/100*slideSize);var translateY=isHorizontal?0:stretch*offsetMultiplier,translateX=isHorizontal?stretch*offsetMultiplier:0,scale=1-(1-params.scale)*Math.abs(offsetMultiplier);Math.abs(translateX)<.001&&(translateX=0),Math.abs(translateY)<.001&&(translateY=0),Math.abs(translateZ)<.001&&(translateZ=0),Math.abs(rotateY)<.001&&(rotateY=0),Math.abs(rotateX)<.001&&(rotateX=0),Math.abs(scale)<.001&&(scale=0);var slideTransform="translate3d("+translateX+"px,"+translateY+"px,"+translateZ+"px)  rotateX("+rotateX+"deg) rotateY("+rotateY+"deg) scale("+scale+")";if($slideEl.transform(slideTransform),$slideEl[0].style.zIndex=1-Math.abs(Math.round(offsetMultiplier)),params.slideShadows){var $shadowBeforeEl=isHorizontal?$slideEl.find(".swiper-slide-shadow-left"):$slideEl.find(".swiper-slide-shadow-top"),$shadowAfterEl=isHorizontal?$slideEl.find(".swiper-slide-shadow-right"):$slideEl.find(".swiper-slide-shadow-bottom");0===$shadowBeforeEl.length&&($shadowBeforeEl=$('<div class="swiper-slide-shadow-'+(isHorizontal?"left":"top")+'"></div>'),$slideEl.append($shadowBeforeEl)),0===$shadowAfterEl.length&&($shadowAfterEl=$('<div class="swiper-slide-shadow-'+(isHorizontal?"right":"bottom")+'"></div>'),$slideEl.append($shadowAfterEl)),$shadowBeforeEl.length&&($shadowBeforeEl[0].style.opacity=offsetMultiplier>0?offsetMultiplier:0),$shadowAfterEl.length&&($shadowAfterEl[0].style.opacity=-offsetMultiplier>0?-offsetMultiplier:0)}}},setTransition:function setTransition(duration){var swiper=this;this.slides.transition(duration).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(duration)}},EffectCoverflow,Thumbs={init:function init(){var swiper=this,thumbsParams=this.params.thumbs;if(this.thumbs.initialized)return!1;this.thumbs.initialized=!0;var SwiperClass=this.constructor;return thumbsParams.swiper instanceof SwiperClass?(this.thumbs.swiper=thumbsParams.swiper,extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):isObject(thumbsParams.swiper)&&(this.thumbs.swiper=new SwiperClass(extend({},thumbsParams.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick),!0},onThumbClick:function onThumbClick(){var swiper=this,thumbsSwiper=this.thumbs.swiper;if(thumbsSwiper){var clickedIndex=thumbsSwiper.clickedIndex,clickedSlide=thumbsSwiper.clickedSlide;if(!(clickedSlide&&$(clickedSlide).hasClass(this.params.thumbs.slideThumbActiveClass)||null==clickedIndex)){var slideToIndex;if(slideToIndex=thumbsSwiper.params.loop?parseInt($(thumbsSwiper.clickedSlide).attr("data-swiper-slide-index"),10):clickedIndex,this.params.loop){var currentIndex=this.activeIndex;this.slides.eq(currentIndex).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,currentIndex=this.activeIndex);var prevIndex=this.slides.eq(currentIndex).prevAll('[data-swiper-slide-index="'+slideToIndex+'"]').eq(0).index(),nextIndex=this.slides.eq(currentIndex).nextAll('[data-swiper-slide-index="'+slideToIndex+'"]').eq(0).index();slideToIndex=void 0===prevIndex?nextIndex:void 0===nextIndex?prevIndex:nextIndex-currentIndex<currentIndex-prevIndex?nextIndex:prevIndex}this.slideTo(slideToIndex)}}},update:function update(initial){var swiper=this,thumbsSwiper=this.thumbs.swiper;if(thumbsSwiper){var slidesPerView="auto"===thumbsSwiper.params.slidesPerView?thumbsSwiper.slidesPerViewDynamic():thumbsSwiper.params.slidesPerView,autoScrollOffset=this.params.thumbs.autoScrollOffset,useOffset=autoScrollOffset&&!thumbsSwiper.params.loop;if(this.realIndex!==thumbsSwiper.realIndex||useOffset){var currentThumbsIndex=thumbsSwiper.activeIndex,newThumbsIndex,direction;if(thumbsSwiper.params.loop){thumbsSwiper.slides.eq(currentThumbsIndex).hasClass(thumbsSwiper.params.slideDuplicateClass)&&(thumbsSwiper.loopFix(),thumbsSwiper._clientLeft=thumbsSwiper.$wrapperEl[0].clientLeft,currentThumbsIndex=thumbsSwiper.activeIndex);var prevThumbsIndex=thumbsSwiper.slides.eq(currentThumbsIndex).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),nextThumbsIndex=thumbsSwiper.slides.eq(currentThumbsIndex).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();newThumbsIndex=void 0===prevThumbsIndex?nextThumbsIndex:void 0===nextThumbsIndex?prevThumbsIndex:nextThumbsIndex-currentThumbsIndex==currentThumbsIndex-prevThumbsIndex?currentThumbsIndex:nextThumbsIndex-currentThumbsIndex<currentThumbsIndex-prevThumbsIndex?nextThumbsIndex:prevThumbsIndex,direction=this.activeIndex>this.previousIndex?"next":"prev"}else direction=(newThumbsIndex=this.realIndex)>this.previousIndex?"next":"prev";useOffset&&(newThumbsIndex+="next"===direction?autoScrollOffset:-1*autoScrollOffset),thumbsSwiper.visibleSlidesIndexes&&thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex)<0&&(thumbsSwiper.params.centeredSlides?newThumbsIndex=newThumbsIndex>currentThumbsIndex?newThumbsIndex-Math.floor(slidesPerView/2)+1:newThumbsIndex+Math.floor(slidesPerView/2)-1:newThumbsIndex>currentThumbsIndex&&(newThumbsIndex=newThumbsIndex-slidesPerView+1),thumbsSwiper.slideTo(newThumbsIndex,initial?0:void 0))}var thumbsToActivate=1,thumbActiveClass=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(thumbsToActivate=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(thumbsToActivate=1),thumbsToActivate=Math.floor(thumbsToActivate),thumbsSwiper.slides.removeClass(thumbActiveClass),thumbsSwiper.params.loop||thumbsSwiper.params.virtual&&thumbsSwiper.params.virtual.enabled)for(var i=0;i<thumbsToActivate;i+=1)thumbsSwiper.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+i)+'"]').addClass(thumbActiveClass);else for(var _i=0;_i<thumbsToActivate;_i+=1)thumbsSwiper.slides.eq(this.realIndex+_i).addClass(thumbActiveClass)}}},Thumbs$1,components=[Virtual$1,Keyboard$1,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function create(){var swiper=this;bindModuleMethods(this,{mousewheel:{enabled:!1,lastScrollTime:now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:Mousewheel.enable,disable:Mousewheel.disable,handle:Mousewheel.handle,handleMouseEnter:Mousewheel.handleMouseEnter,handleMouseLeave:Mousewheel.handleMouseLeave,animateSlider:Mousewheel.animateSlider,releaseScroll:Mousewheel.releaseScroll}})},on:{init:function init(swiper){!swiper.params.mousewheel.enabled&&swiper.params.cssMode&&swiper.mousewheel.disable(),swiper.params.mousewheel.enabled&&swiper.mousewheel.enable()},destroy:function destroy(swiper){swiper.params.cssMode&&swiper.mousewheel.enable(),swiper.mousewheel.enabled&&swiper.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function create(){var swiper=this;bindModuleMethods(this,{navigation:_extends({},Navigation)})},on:{init:function init(swiper){swiper.navigation.init(),swiper.navigation.update()},toEdge:function toEdge(swiper){swiper.navigation.update()},fromEdge:function fromEdge(swiper){swiper.navigation.update()},destroy:function destroy(swiper){swiper.navigation.destroy()},click:function click(swiper,e){var _swiper$navigation3=swiper.navigation,$nextEl=_swiper$navigation3.$nextEl,$prevEl=_swiper$navigation3.$prevEl,targetEl=e.target;if(swiper.params.navigation.hideOnClick&&!$(targetEl).is($prevEl)&&!$(targetEl).is($nextEl)){if(swiper.pagination&&swiper.params.pagination&&swiper.params.pagination.clickable&&(swiper.pagination.el===targetEl||swiper.pagination.el.contains(targetEl)))return;var isHidden;$nextEl?isHidden=$nextEl.hasClass(swiper.params.navigation.hiddenClass):$prevEl&&(isHidden=$prevEl.hasClass(swiper.params.navigation.hiddenClass)),!0===isHidden?swiper.emit("navigationShow"):swiper.emit("navigationHide"),$nextEl&&$nextEl.toggleClass(swiper.params.navigation.hiddenClass),$prevEl&&$prevEl.toggleClass(swiper.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function formatFractionCurrent(number){return number},formatFractionTotal:function formatFractionTotal(number){return number},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function create(){var swiper=this;bindModuleMethods(this,{pagination:_extends({dynamicBulletIndex:0},Pagination)})},on:{init:function init(swiper){swiper.pagination.init(),swiper.pagination.render(),swiper.pagination.update()},activeIndexChange:function activeIndexChange(swiper){swiper.params.loop?swiper.pagination.update():void 0===swiper.snapIndex&&swiper.pagination.update()},snapIndexChange:function snapIndexChange(swiper){swiper.params.loop||swiper.pagination.update()},slidesLengthChange:function slidesLengthChange(swiper){swiper.params.loop&&(swiper.pagination.render(),swiper.pagination.update())},snapGridLengthChange:function snapGridLengthChange(swiper){swiper.params.loop||(swiper.pagination.render(),swiper.pagination.update())},destroy:function destroy(swiper){swiper.pagination.destroy()},click:function click(swiper,e){var targetEl=e.target;if(swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&swiper.pagination.$el.length>0&&!$(targetEl).hasClass(swiper.params.pagination.bulletClass)){if(swiper.navigation&&(swiper.navigation.nextEl&&targetEl===swiper.navigation.nextEl||swiper.navigation.prevEl&&targetEl===swiper.navigation.prevEl))return;var isHidden;!0===swiper.pagination.$el.hasClass(swiper.params.pagination.hiddenClass)?swiper.emit("paginationShow"):swiper.emit("paginationHide"),swiper.pagination.$el.toggleClass(swiper.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function create(){var swiper=this;bindModuleMethods(this,{scrollbar:_extends({isTouched:!1,timeout:null,dragTimeout:null},Scrollbar)})},on:{init:function init(swiper){swiper.scrollbar.init(),swiper.scrollbar.updateSize(),swiper.scrollbar.setTranslate()},update:function update(swiper){swiper.scrollbar.updateSize()},resize:function resize(swiper){swiper.scrollbar.updateSize()},observerUpdate:function observerUpdate(swiper){swiper.scrollbar.updateSize()},setTranslate:function setTranslate(swiper){swiper.scrollbar.setTranslate()},setTransition:function setTransition(swiper,duration){swiper.scrollbar.setTransition(duration)},destroy:function destroy(swiper){swiper.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function create(){var swiper=this;bindModuleMethods(this,{parallax:_extends({},Parallax)})},on:{beforeInit:function beforeInit(swiper){swiper.params.parallax.enabled&&(swiper.params.watchSlidesProgress=!0,swiper.originalParams.watchSlidesProgress=!0)},init:function init(swiper){swiper.params.parallax.enabled&&swiper.parallax.setTranslate()},setTranslate:function setTranslate(swiper){swiper.params.parallax.enabled&&swiper.parallax.setTranslate()},setTransition:function setTransition(swiper,duration){swiper.params.parallax.enabled&&swiper.parallax.setTransition(duration)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function create(){var swiper=this;bindModuleMethods(swiper,{zoom:_extends({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},Zoom)});var scale=1;Object.defineProperty(swiper.zoom,"scale",{get:function get(){return scale},set:function set(value){if(scale!==value){var imageEl=swiper.zoom.gesture.$imageEl?swiper.zoom.gesture.$imageEl[0]:void 0,slideEl=swiper.zoom.gesture.$slideEl?swiper.zoom.gesture.$slideEl[0]:void 0;swiper.emit("zoomChange",value,imageEl,slideEl)}scale=value}})},on:{init:function init(swiper){swiper.params.zoom.enabled&&swiper.zoom.enable()},destroy:function destroy(swiper){swiper.zoom.disable()},touchStart:function touchStart(swiper,e){swiper.zoom.enabled&&swiper.zoom.onTouchStart(e)},touchEnd:function touchEnd(swiper,e){swiper.zoom.enabled&&swiper.zoom.onTouchEnd(e)},doubleTap:function doubleTap(swiper,e){!swiper.animating&&swiper.params.zoom.enabled&&swiper.zoom.enabled&&swiper.params.zoom.toggle&&swiper.zoom.toggle(e)},transitionEnd:function transitionEnd(swiper){swiper.zoom.enabled&&swiper.params.zoom.enabled&&swiper.zoom.onTransitionEnd()},slideChange:function slideChange(swiper){swiper.zoom.enabled&&swiper.params.zoom.enabled&&swiper.params.cssMode&&swiper.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function create(){var swiper=this;bindModuleMethods(this,{lazy:_extends({initialImageLoaded:!1},Lazy)})},on:{beforeInit:function beforeInit(swiper){swiper.params.lazy.enabled&&swiper.params.preloadImages&&(swiper.params.preloadImages=!1)},init:function init(swiper){swiper.params.lazy.enabled&&!swiper.params.loop&&0===swiper.params.initialSlide&&(swiper.params.lazy.checkInView?swiper.lazy.checkInViewOnLoad():swiper.lazy.load())},scroll:function scroll(swiper){swiper.params.freeMode&&!swiper.params.freeModeSticky&&swiper.lazy.load()},"scrollbarDragMove resize _freeModeNoMomentumRelease":function lazyLoad(swiper){swiper.params.lazy.enabled&&swiper.lazy.load()},transitionStart:function transitionStart(swiper){swiper.params.lazy.enabled&&(swiper.params.lazy.loadOnTransitionStart||!swiper.params.lazy.loadOnTransitionStart&&!swiper.lazy.initialImageLoaded)&&swiper.lazy.load()},transitionEnd:function transitionEnd(swiper){swiper.params.lazy.enabled&&!swiper.params.lazy.loadOnTransitionStart&&swiper.lazy.load()},slideChange:function slideChange(swiper){swiper.params.lazy.enabled&&swiper.params.cssMode&&swiper.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function create(){var swiper=this;bindModuleMethods(this,{controller:_extends({control:this.params.controller.control},Controller)})},on:{update:function update(swiper){swiper.controller.control&&swiper.controller.spline&&(swiper.controller.spline=void 0,delete swiper.controller.spline)},resize:function resize(swiper){swiper.controller.control&&swiper.controller.spline&&(swiper.controller.spline=void 0,delete swiper.controller.spline)},observerUpdate:function observerUpdate(swiper){swiper.controller.control&&swiper.controller.spline&&(swiper.controller.spline=void 0,delete swiper.controller.spline)},setTranslate:function setTranslate(swiper,translate,byController){swiper.controller.control&&swiper.controller.setTranslate(translate,byController)},setTransition:function setTransition(swiper,duration,byController){swiper.controller.control&&swiper.controller.setTransition(duration,byController)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null}},create:function create(){var swiper=this;bindModuleMethods(this,{a11y:_extends({},A11y,{liveRegion:$('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function afterInit(swiper){swiper.params.a11y.enabled&&(swiper.a11y.init(),swiper.a11y.updateNavigation())},toEdge:function toEdge(swiper){swiper.params.a11y.enabled&&swiper.a11y.updateNavigation()},fromEdge:function fromEdge(swiper){swiper.params.a11y.enabled&&swiper.a11y.updateNavigation()},paginationUpdate:function paginationUpdate(swiper){swiper.params.a11y.enabled&&swiper.a11y.updatePagination()},destroy:function destroy(swiper){swiper.params.a11y.enabled&&swiper.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function create(){var swiper=this;bindModuleMethods(this,{history:_extends({},History)})},on:{init:function init(swiper){swiper.params.history.enabled&&swiper.history.init()},destroy:function destroy(swiper){swiper.params.history.enabled&&swiper.history.destroy()},transitionEnd:function transitionEnd(swiper){swiper.history.initialized&&swiper.history.setHistory(swiper.params.history.key,swiper.activeIndex)},slideChange:function slideChange(swiper){swiper.history.initialized&&swiper.params.cssMode&&swiper.history.setHistory(swiper.params.history.key,swiper.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function create(){var swiper=this;bindModuleMethods(this,{hashNavigation:_extends({initialized:!1},HashNavigation)})},on:{init:function init(swiper){swiper.params.hashNavigation.enabled&&swiper.hashNavigation.init()},destroy:function destroy(swiper){swiper.params.hashNavigation.enabled&&swiper.hashNavigation.destroy()},transitionEnd:function transitionEnd(swiper){swiper.hashNavigation.initialized&&swiper.hashNavigation.setHash()},slideChange:function slideChange(swiper){swiper.hashNavigation.initialized&&swiper.params.cssMode&&swiper.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function create(){var swiper=this;bindModuleMethods(this,{autoplay:_extends({},Autoplay,{running:!1,paused:!1})})},on:{init:function init(swiper){var document;swiper.params.autoplay.enabled&&(swiper.autoplay.start(),getDocument().addEventListener("visibilitychange",swiper.autoplay.onVisibilityChange))},beforeTransitionStart:function beforeTransitionStart(swiper,speed,internal){swiper.autoplay.running&&(internal||!swiper.params.autoplay.disableOnInteraction?swiper.autoplay.pause(speed):swiper.autoplay.stop())},sliderFirstMove:function sliderFirstMove(swiper){swiper.autoplay.running&&(swiper.params.autoplay.disableOnInteraction?swiper.autoplay.stop():swiper.autoplay.pause())},touchEnd:function touchEnd(swiper){swiper.params.cssMode&&swiper.autoplay.paused&&!swiper.params.autoplay.disableOnInteraction&&swiper.autoplay.run()},destroy:function destroy(swiper){var document;swiper.autoplay.running&&swiper.autoplay.stop(),getDocument().removeEventListener("visibilitychange",swiper.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function create(){var swiper=this;bindModuleMethods(this,{fadeEffect:_extends({},Fade)})},on:{beforeInit:function beforeInit(swiper){if("fade"===swiper.params.effect){swiper.classNames.push(swiper.params.containerModifierClass+"fade");var overwriteParams={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};extend(swiper.params,overwriteParams),extend(swiper.originalParams,overwriteParams)}},setTranslate:function setTranslate(swiper){"fade"===swiper.params.effect&&swiper.fadeEffect.setTranslate()},setTransition:function setTransition(swiper,duration){"fade"===swiper.params.effect&&swiper.fadeEffect.setTransition(duration)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function create(){var swiper=this;bindModuleMethods(this,{cubeEffect:_extends({},Cube)})},on:{beforeInit:function beforeInit(swiper){if("cube"===swiper.params.effect){swiper.classNames.push(swiper.params.containerModifierClass+"cube"),swiper.classNames.push(swiper.params.containerModifierClass+"3d");var overwriteParams={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};extend(swiper.params,overwriteParams),extend(swiper.originalParams,overwriteParams)}},setTranslate:function setTranslate(swiper){"cube"===swiper.params.effect&&swiper.cubeEffect.setTranslate()},setTransition:function setTransition(swiper,duration){"cube"===swiper.params.effect&&swiper.cubeEffect.setTransition(duration)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function create(){var swiper=this;bindModuleMethods(this,{flipEffect:_extends({},Flip)})},on:{beforeInit:function beforeInit(swiper){if("flip"===swiper.params.effect){swiper.classNames.push(swiper.params.containerModifierClass+"flip"),swiper.classNames.push(swiper.params.containerModifierClass+"3d");var overwriteParams={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};extend(swiper.params,overwriteParams),extend(swiper.originalParams,overwriteParams)}},setTranslate:function setTranslate(swiper){"flip"===swiper.params.effect&&swiper.flipEffect.setTranslate()},setTransition:function setTransition(swiper,duration){"flip"===swiper.params.effect&&swiper.flipEffect.setTransition(duration)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function create(){var swiper=this;bindModuleMethods(this,{coverflowEffect:_extends({},Coverflow)})},on:{beforeInit:function beforeInit(swiper){"coverflow"===swiper.params.effect&&(swiper.classNames.push(swiper.params.containerModifierClass+"coverflow"),swiper.classNames.push(swiper.params.containerModifierClass+"3d"),swiper.params.watchSlidesProgress=!0,swiper.originalParams.watchSlidesProgress=!0)},setTranslate:function setTranslate(swiper){"coverflow"===swiper.params.effect&&swiper.coverflowEffect.setTranslate()},setTransition:function setTransition(swiper,duration){"coverflow"===swiper.params.effect&&swiper.coverflowEffect.setTransition(duration)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function create(){var swiper=this;bindModuleMethods(this,{thumbs:_extends({swiper:null,initialized:!1},Thumbs)})},on:{beforeInit:function beforeInit(swiper){var thumbs=swiper.params.thumbs;thumbs&&thumbs.swiper&&(swiper.thumbs.init(),swiper.thumbs.update(!0))},slideChange:function slideChange(swiper){swiper.thumbs.swiper&&swiper.thumbs.update()},update:function update(swiper){swiper.thumbs.swiper&&swiper.thumbs.update()},resize:function resize(swiper){swiper.thumbs.swiper&&swiper.thumbs.update()},observerUpdate:function observerUpdate(swiper){swiper.thumbs.swiper&&swiper.thumbs.update()},setTransition:function setTransition(swiper,duration){var thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&thumbsSwiper.setTransition(duration)},beforeDestroy:function beforeDestroy(swiper){var thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&swiper.thumbs.swiperCreated&&thumbsSwiper&&thumbsSwiper.destroy()}}}];return Swiper.use(components),Swiper}));
jQuery(document).ready((function($){function carousel_starts_on_screen(splc_container_id,splcSwiper){splcSwiper.autoplay.stop();const $spLogoCarouselSection=$("#"+splc_container_id+".logo-carousel-free-area");$(window).on("scroll",(function(){const sectionOffset=$spLogoCarouselSection.offset(),sectionHeight=$spLogoCarouselSection.height(),sectionTop=sectionOffset.top-$(window).scrollTop(),sectionBottom=sectionTop+sectionHeight,isSectionVisible=sectionTop<=$(window).height()&&sectionBottom>=0;isSectionVisible?splcSwiper.autoplay.start():splcSwiper.autoplay.stop()}))}$(".sp-lc-container").each((function(index){var splc_container,splc_container_id=$(this).attr("id"),spLogoCarousel=$("#"+splc_container_id+" .sp-logo-carousel"),spLogoCarouselData=spLogoCarousel.data("carousel"),spLogoCarouselStartsOnscreen=spLogoCarousel.data("carousel-starts-onscreen");if(spLogoCarousel.length>0&&!$("#"+splc_container_id+' .sp-logo-carousel[class*="-initialized"]').length>0){var splcSwiper=new Swiper("#"+splc_container_id+" .sp-logo-carousel",{speed:spLogoCarouselData.speed,slidesPerView:spLogoCarouselData.slidesPerView.mobile,spaceBetween:spLogoCarouselData.spaceBetween,loop:spLogoCarouselData.infinite,loopFillGroupWithBlank:!0,simulateTouch:spLogoCarouselData.simulateTouch,allowTouchMove:spLogoCarouselData.allowTouchMove,freeMode:spLogoCarouselData.freeMode,pagination:1==spLogoCarouselData.pagination&&{el:"#"+splc_container_id+" .swiper-pagination",clickable:!0,renderBullet:function(index,className){return'<span class="'+className+'"></span>'}},autoplay:{delay:spLogoCarouselData.autoplay_speed},navigation:1==spLogoCarouselData.navigation&&{nextEl:"#"+splc_container_id+" .sp-lc-button-next",prevEl:"#"+splc_container_id+" .sp-lc-button-prev"},breakpoints:{576:{slidesPerView:spLogoCarouselData.slidesPerView.mobile_landscape},768:{slidesPerView:spLogoCarouselData.slidesPerView.tablet},992:{slidesPerView:spLogoCarouselData.slidesPerView.desktop},1200:{slidesPerView:spLogoCarouselData.slidesPerView.lg_desktop}},fadeEffect:{crossFade:!0},keyboard:{enabled:!0}});!1===spLogoCarouselData.autoplay&&splcSwiper.autoplay.stop(),spLogoCarouselData.stop_onHover&&spLogoCarouselData.autoplay&&$(spLogoCarousel).on({mouseenter:function(){splcSwiper.autoplay.stop()},mouseleave:function(){splcSwiper.autoplay.start()}}),spLogoCarouselStartsOnscreen&&carousel_starts_on_screen(splc_container_id,splcSwiper),$(window).on("resize",(function(){splcSwiper.update()})),$(window).trigger("resize")}})),jQuery("body").find(".sp-logo-carousel.lcp-preloader").each((function(){var logo_carousel_id=$(this).attr("id"),parents_class,parents_siblings_id=jQuery("#"+logo_carousel_id).parent(".logo-carousel-free-area").find(".sp-logo-carousel-preloader").attr("id");$(document).ready((function(){$("#"+parents_siblings_id).animate({opacity:0},600).remove()}))})),$(".logo-carousel-free-area").addClass("splc-logo-carousel-loaded")}));
var lastTime=0;
var vendors=['webkit', 'moz', 'ms', 'o'];
for (var x=0; x < vendors.length&&!window.requestAnimationFrame; ++x){
window.requestAnimationFrame=window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame =
window[vendors[x] + 'CancelAnimationFrame']||window[vendors[x] + 'CancelRequestAnimationFrame'];
}
if(!window.requestAnimationFrame){
window.requestAnimationFrame=function (callback, element){
var currTime=new Date().getTime();
var timeToCall=Math.max(0, 16 - (currTime - lastTime));
var id=window.setTimeout(function (){
callback(currTime + timeToCall);
},
timeToCall);
lastTime=currTime + timeToCall;
return id;
}}
if(!window.cancelAnimationFrame){
window.cancelAnimationFrame=function (id){
clearTimeout(id);
}}
(function ($){
'use strict';
var dataKey='lazyLinePainter';
var className='lazylinepainter';
var methods={
init: function (userOpts){
return this.each(function (){
var $this=$(this);
var data=$this.data(dataKey);
$this.addClass(className);
if(!data){
var options=_getOptions($this, userOpts);
var totalDuration=options.delay + _getTotalDuration(options.paths);
var longestDuration=options.delay + _getLongestDuration(options.paths);
options.totalDuration=options.drawSequential ? totalDuration:longestDuration;
_setupPaths(options);
options.totalDuration *=options.speedMultiplier;
$this.append(options.svg);
$this.data(dataKey, options);
$this.lazylinepainter('resize');
}});
},
paint: function (){
return this.each(function (){
var $this=$(this);
var data=$this.data(dataKey);
$this.lazylinepainter('erase');
_AnimateQueue(data, 0);
});
},
pause: function (){
return this.each(function (){
var data=$(this).data(dataKey);
if(!data.paused){
data.paused=true;
cancelAnimationFrame(data.rAF);
}});
},
resume: function (){
return this.each(function (){
var data=$(this).data(dataKey);
if(data.paused){
requestAnimationFrame(function (timestamp){
adjustStartTime(timestamp, data);
});
data.paused=false;
}});
},
erase: function (){
return this.each(function (){
var $this=$(this);
var data=$this.data(dataKey);
data.startTime=null;
data.elapsedTime=null;
cancelAnimationFrame(data.rAF);
data.onStrokeCompleteDone=false;
data.paused=false;
for (var i=0; i < data.paths.length; i++){
var path=data.paths[i];
path.el.style.strokeDashoffset=path.length;
if(path.animate&&path.animate=='opacity'){
path.el.style.opacity='0';
}
path.onStrokeCompleteDone=false;
path.onStrokeStartDone=false;
path.paused=false;
}});
},
destroy: function (){
return this.each(function (){
var $this=$(this);
$this.removeData(dataKey);
$this.empty();
$this.removeClass(className);
});
},
set: function (progress){
return this.each(function (){
var $this=$(this);
var data=$this.data(dataKey);
data.progress=progress;
_updatePaths(data);
});
},
get: function (){
var $this=$(this);
var data=$this.data(dataKey);
return data;
},
resize: function (){
this.each(function (){
var $this=$(this);
var data=$this.data(dataKey);
data.offset=$this.offset();
for (var i=0; i < data.paths.length; i++){
_updatePosition(data, data.paths[i]);
}});
},
scroll: function (){
this.each(function (){
var $this=$(this);
var data=$this.data(dataKey), breakPoint=0;
if(data&&data.breakPoint){
breakPoint=data.breakPoint;
}
_AnimateQueue(data, breakPoint);
});
}};
var _AnimateQueue=function(data, i){
if(!data||!data.paths[i]){
return;
}
var current=$.extend(true, {}, data);
if(!data.paths[i].drawOnScroll){
if(!data.paths[i].rendered){
data.rAF=requestAnimationFrame(function (timestamp){
_paint(timestamp, current);
});
data.paths[i].rendered=true;
if(data.onStart!==null){
data.onStart();
}
data.breakPoint=i;
}}else{
current.paths=[data.paths[i]];
if(current.paths[0].$el.isOnScreen()){
if(!data.paths[i].rendered){
data.rAF=requestAnimationFrame(function (timestamp){
_paint(timestamp, current);
});
}
data.paths[i].rendered=true;
if(data.onStart!==null){
data.onStart();
}
if(i < data.paths.length - 1){
i++;
setTimeout(function (){
_AnimateQueue(data, i);
}, current.paths[0].delay + 10);
}}else{
data.breakPoint=i;
}}
}
var _getOptions=function ($this, userOpts){
var defaultOpts={
'strokeWidth': 2,
'strokeDash': null,
'strokeColor': '#000',
'strokeOverColor': null,
'strokeCap': 'round',
'strokeJoin': 'round',
'strokeOpacity': 1,
'onComplete': null,
'onUpdate': null,
'onStart': null,
'onStrokeStart': null,
'onStrokeComplete': null,
'delay': 0,
'ease': null,
'overrideKey': null,
'drawSequential': false,
'speedMultiplier': 1,
'reverse': false,
'paused': false,
'progress': 0,
'longestDuration': 0,
'playhead': 0,
'drawOnScroll': false
};
var options=$.extend(defaultOpts, userOpts);
var target=options.overrideKey ? options.overrideKey:$this.attr('id').replace('#', '');
options.width=options.svgData[target].dimensions.width;
options.height=options.svgData[target].dimensions.height;
options.paths=$.extend(true, [], options.svgData[target].paths);
options.svg=_getSVGElement('0 0 ' + options.width + ' ' + options.height);
if(options.groups){
for (var i=0; i < options.groups.length; i++){
_getSVGGroup(options, i);
}}
return options;
};
var _setupPaths=function (options){
var startTime=options.reverse ? options.totalDuration:0;
for (var i=0; i < options.paths.length; i++){
var path=options.paths[i];
path.progress=0;
path.index=i;
path.el=_getPath(options, i);
path.length=_getPathLength(path.el);
path.delay=path.delay||0;
path.positions=_getPathPoints(path.el, path.length);
path.ease=path.ease||null;
path.el.style.strokeDasharray=_getStrokeDashArray(path, options, path.length);
path.el.style.strokeDashoffset=path.length;
path.el.style.display='block';
path.el.getBoundingClientRect();
path.onStrokeStart=path.onStrokeStart||null;
path.onStrokeComplete=path.onStrokeComplete||null;
path.onStrokeStartDone=false;
path.onStrokeCompleteDone=false;
path.onStrokeUpdate=path.onStrokeUpdate||null;
var startProgress;
var durationProgress=path.duration / options.totalDuration;
if(options.reverse){
startTime -=path.duration;
startProgress=startTime / options.totalDuration;
}else{
if(options.drawSequential){
startTime=options.playhead + options.delay;
}else{
startTime=path.delay + options.delay;
}
startProgress=startTime / options.totalDuration;
}
path.startTime=startTime;
path.startProgress=startProgress;
path.durationProgress=durationProgress;
options.playhead +=(path.duration + path.delay);
}}
var adjustStartTime=function (timestamp, data){
requestAnimationFrame(function (timestamp){
_paint(timestamp, data);
});
};
var _paint=function (timestamp, data){
if(!data.startTime){
data.startTime=timestamp;
}
if(data.onUpdate!==null){
data.onUpdate();
}
data.elapsedTime=timestamp - data.startTime;
data.progress=_getProgress(data.totalDuration, data.startTime, data.elapsedTime, data.ease);
_updatePaths(data);
if(data.progress < 1){
data.rAF=requestAnimationFrame(function (timestamp){
_paint(timestamp, data);
});
}else{
if(data.onComplete!==null){
data.onComplete();
}}
};
var _updatePaths=function (data){
for (var i=0; i < data.paths.length; i++){
var path=data.paths[i];
var elapsedProgress=_getElapsedProgress(data, path);
path.progress=_getProgress(1, 0, elapsedProgress, path.ease);
_setLine(data, path);
_updatePosition(data, path);
_updateStrokeCallbacks(data, path);
}};
var _getElapsedProgress=function (data, path){
var elapsedProgress;
if(data.progress > path.startProgress&&data.progress < (path.startProgress + path.durationProgress)){
elapsedProgress=(data.progress - path.startProgress) / path.durationProgress;
}else{
if(data.progress >=(path.startProgress + path.durationProgress)){
elapsedProgress=1;
}else{
if(data.progress <=path.startProgress){
elapsedProgress=0;
}}
}
return elapsedProgress;
};
var _getProgress=function (duration, start, elapsed, ease){
var progress;
if(elapsed > 0&&elapsed < duration){
if(ease){
progress=easing[ease](elapsed, 0, 1, duration);
}else{
progress=elapsed / duration;
}}else{
if(elapsed >=duration){
progress=1;
}else{
if(elapsed <=start){
progress=0;
}}
}
return progress;
};
var _setLine=function (data, path){
var el=path.el;
var length=path.progress * path.length;
if(data.reverse||path.reverse){
el.style.strokeDashoffset=-path.length + length;
}else{
el.style.strokeDashoffset=path.length - length;
}
if(path.animate&&path.animate=='opacity'){
path.el.style.opacity=path.progress;
}};
var _updateStrokeCallbacks=function (data, path){
if(path.progress===1){
if(data.onStrokeComplete&&!path.onStrokeCompleteDone){
data.onStrokeComplete(path);
if(!path.onStrokeComplete){
path.onStrokeCompleteDone=true;
}}
if(path.onStrokeComplete&&!path.onStrokeCompleteDone){
path.onStrokeComplete(path);
path.onStrokeCompleteDone=true;
}}else{
if(path.progress > 0.00001){
if(data.onStrokeStart&&!path.onStrokeStartDone){
data.onStrokeStart(path);
if(!path.onStrokeStart){
path.onStrokeStartDone=true;
}}
if(path.onStrokeStart&&!path.onStrokeStartDone){
path.onStrokeStart(path);
path.onStrokeStartDone=true;
}
if(path.onStrokeUpdate){
path.onStrokeUpdate(path);
}}
}};
var _updatePosition=function (data, path){
var index=Math.round((path.progress * (path.length - 1)));
var position=path.positions[index];
if(!position){
position={
x: 0,
y: 0
}}
path.position={
x: data.offset.left + position.x,
y: data.offset.top + position.y
};};
var _getTotalDuration=function (paths){
var totalDuration=0;
for (var i=0; i < paths.length; i++){
var pathDelay=paths[i].delay||0;
totalDuration +=(paths[i].duration + pathDelay);
}
return totalDuration;
};
var _getLongestDuration=function (paths){
var longestDuration=0;
for (var i=0; i < paths.length; i++){
var pathDelay=paths[i].delay||0;
if((paths[i].duration + pathDelay) > longestDuration){
longestDuration=(paths[i].duration + pathDelay);
}}
return longestDuration;
};
var _getPath=function (data, i){
var path=document.createElementNS('http://www.w3.org/2000/svg', 'path');
var $path=$(path);
if(!data.paths[i].delay){
data.paths[i].delay=1;
}
data.paths[i].$el=$path;
$path.attr(_getAttributes(data, data.paths[i]));
_appendPath(data, i);
return path;
};
var _appendPath=function (data, i){
if(data.paths[i]){
var path=data.paths[i];
if(path.group){
data.svg.find('#' + path.group).append(path.$el);
}else{
data.svg.append(path.$el);
}}
return data;
}
var _getPathLength=function (el){
return Math.ceil(el.getTotalLength());
};
var _getPathPoints=function (el, length){
var arr=[];
for (var i=0; i < length; i++){
var position=el.getPointAtLength(i);
arr.push({
x: position.x,
y: position.y
});
}
;
return arr;
};
var _getAttributes=function (data, value){
return {
'd': value.path,
'stroke': !value.strokeColor ? data.strokeColor:value.strokeColor,
'fill':value.fill ? value.fill:false,
'fill-opacity': value.fillOpacity ? value.fillOpacity:0,
'stroke-opacity': !value.strokeOpacity ? data.strokeOpacity:value.strokeOpacity,
'stroke-width': !value.strokeWidth ? data.strokeWidth:value.strokeWidth,
'stroke-linecap': !value.strokeCap ? data.strokeCap:value.strokeCap,
'stroke-linejoin': !value.strokeJoin ? data.strokeJoin:value.strokeJoin
};};
var _getSVGElement=function (viewBox){
var svg=document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttributeNS(null, 'viewBox', viewBox);
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
return $(svg);
};
var _getSVGGroup=function (data, i){
var group=document.createElementNS('http://www.w3.org/2000/svg', 'g');
var $group=$(group);
data.svg.append($group);
$group.attr(data.groups[i]);
return group;
};
var _getStrokeDashArray=function (path, options, length){
var strokeDash;
if(path.strokeDash){
strokeDash=_getStrokeDashString(path.strokeDash, length);
}else{
if(options.strokeDash){
strokeDash=_getStrokeDashString(options.strokeDash, length);
}else{
strokeDash=length + ' ' + length;
}}
;
return strokeDash;
};
var _getStrokeDashString=function (dashArray, length){
var strokeDashString='';
var strokeDashArray=dashArray.split(',');
var strokeDashTotal=0;
var strokeDashNum;
var strokeDashRemainder;
for (var i=strokeDashArray.length - 1; i >=0; i--){
strokeDashTotal +=Number(strokeDashArray[i]);
}
;
strokeDashNum=Math.floor(length / strokeDashTotal);
strokeDashRemainder=length - (strokeDashNum * strokeDashTotal);
for (var i=strokeDashNum - 1; i >=0; i--){
strokeDashString +=(dashArray + ', ');
}
;
var preArray=strokeDashString + strokeDashRemainder + ', ' + length;
return preArray.split(',').join('px,') + 'px';
};
$.fn.lazylinepainter=function (method){
if(methods[method]){
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
}else{
if(typeof method==='object'||!method){
$(this).addClass('lazylinepainter-element');
return methods.init.apply(this, arguments);
}else{
console.log('opps - issue finding method');
}}
};
var easing={
easeLinear: function (t, b, c, d){
return c * t / d + b;
},
easeInQuad: function (t, b, c, d){
return c * (t /=d) * t + b;
},
easeOutQuad: function (t, b, c, d){
return -c * (t /=d) * (t - 2) + b;
},
easeInOutQuad: function (t, b, c, d){
if((t /=d / 2) < 1){
return c / 2 * t * t + b;
}
return -c / 2 * ((--t) * (t - 2) - 1) + b;
},
easeInCubic: function (t, b, c, d){
return c * (t /=d) * t * t + b;
},
easeOutCubic: function (t, b, c, d){
return c * ((t=t / d - 1) * t * t + 1) + b;
},
easeInOutCubic: function (t, b, c, d){
if((t /=d / 2) < 1){
return c / 2 * t * t * t + b;
}
return c / 2 * ((t -=2) * t * t + 2) + b;
},
easeInQuart: function (t, b, c, d){
return c * (t /=d) * t * t * t + b;
},
easeOutQuart: function (t, b, c, d){
return -c * ((t=t / d - 1) * t * t * t - 1) + b;
},
easeInOutQuart: function (t, b, c, d){
if((t /=d / 2) < 1){
return c / 2 * t * t * t * t + b;
}
return -c / 2 * ((t -=2) * t * t * t - 2) + b;
},
easeInQuint: function (t, b, c, d){
return c * (t /=d) * t * t * t * t + b;
},
easeOutQuint: function (t, b, c, d){
return c * ((t=t / d - 1) * t * t * t * t + 1) + b;
},
easeInOutQuint: function (t, b, c, d){
if((t /=d / 2) < 1){
return c / 2 * t * t * t * t * t + b;
}
return c / 2 * ((t -=2) * t * t * t * t + 2) + b;
},
easeInSine: function (t, b, c, d){
return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
},
easeOutSine: function (t, b, c, d){
return c * Math.sin(t / d * (Math.PI / 2)) + b;
},
easeInOutSine: function (t, b, c, d){
return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
},
easeInExpo: function (t, b, c, d){
return (t==0) ? b:c * Math.pow(2, 10 * (t / d - 1)) + b;
},
easeOutExpo: function (t, b, c, d){
return (t==d) ? b + c:c * (-Math.pow(2, -10 * t / d) + 1) + b;
},
easeInOutExpo: function (t, b, c, d){
if(t==0){
return b;
}
if(t==d){
return b + c;
}
if((t /=d / 2) < 1){
return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
}
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
easeInCirc: function (t, b, c, d){
return -c * (Math.sqrt(1 - (t /=d) * t) - 1) + b;
},
easeOutCirc: function (t, b, c, d){
return c * Math.sqrt(1 - (t=t / d - 1) * t) + b;
},
easeInOutCirc: function (t, b, c, d){
if((t /=d / 2) < 1){
return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
}
return c / 2 * (Math.sqrt(1 - (t -=2) * t) + 1) + b;
},
easeInElastic: function (t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0){
return b;
}
if((t /=d)==1){
return b + c;
}
if(!p){
p=d * .3;
}
if(a < Math.abs(c)){
a=c;
var s=p / 4;
}else{
var s=p / (2 * Math.PI) * Math.asin(c / a);
}
return -(a * Math.pow(2, 10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
},
easeOutElastic: function (t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0){
return b;
}
if((t /=d)==1){
return b + c;
}
if(!p){
p=d * .3;
}
if(a < Math.abs(c)){
a=c;
var s=p / 4;
}else{
var s=p / (2 * Math.PI) * Math.asin(c / a);
}
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
},
easeInOutElastic: function (t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0){
return b;
}
if((t /=d / 2)==2){
return b + c;
}
if(!p){
p=d * (.3 * 1.5);
}
if(a < Math.abs(c)){
a=c;
var s=p / 4;
}else{
var s=p / (2 * Math.PI) * Math.asin(c / a);
}
if(t < 1){
return -.5 * (a * Math.pow(2, 10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
}
return a * Math.pow(2, -10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b;
},
easeInBack: function (t, b, c, d, s){
if(s==undefined){
s=1.70158;
}
return c * (t /=d) * t * ((s + 1) * t - s) + b;
},
easeOutBack: function (t, b, c, d, s){
if(s==undefined){
s=1.70158;
}
return c * ((t=t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
},
easeInOutBack: function (t, b, c, d, s){
if(s==undefined){
s=1.70158;
}
if((t /=d / 2) < 1){
return c / 2 * (t * t * (((s *=(1.525)) + 1) * t - s)) + b;
}
return c / 2 * ((t -=2) * t * (((s *=(1.525)) + 1) * t + s) + 2) + b;
},
easeInBounce: function (t, b, c, d){
return c - easing.easeOutBounce(d - t, 0, c, d) + b;
},
easeOutBounce: function (t, b, c, d){
if((t /=d) < (1 / 2.75)){
return c * (7.5625 * t * t) + b;
}else{
if(t < (2 / 2.75)){
return c * (7.5625 * (t -=(1.5 / 2.75)) * t + .75) + b;
}else{
if(t < (2.5 / 2.75)){
return c * (7.5625 * (t -=(2.25 / 2.75)) * t + .9375) + b;
}else{
return c * (7.5625 * (t -=(2.625 / 2.75)) * t + .984375) + b;
}}
}},
easeInOutBounce: function (t, b, c, d){
if(t < d / 2){
return easing.easeInBounce(t * 2, 0, c, d) * .5 + b;
}
return easing.easeOutBounce(t * 2 - d, 0, c, d) * .5 + c * .5 + b;
}}
$.fn.isOnScreen=function (){
var winTop=$(window).scrollTop();
var winBottom=winTop + $(window).height();
var elTop=$(this).offset().top;
var elBottom=elTop + $(this).height();
return ((elBottom <=winBottom)&&(elTop >=winTop));
}
$(window)
.off('scroll.lazyline')
.on('scroll.lazyline', function (){
$('.lazylinepainter-element').lazylinepainter('scroll');
});
})(jQuery);
(function($){
var MemoryLinesDot=function(element, container){
this.$el=element;
this.$container=container;
}
MemoryLinesDot.prototype={
setDirection: function(direction){
this.direction=this.$el.data('dot-direction')||direction||'forward';
return this;
},
setOffset: function(){
this.offset={
x: this.$el.data('dot-offset-x')||this.$container.data('dot-offset-x')||0,
y: this.$el.data('dot-offset-y')||this.$container.data('dot-offset-y')||0
}
return this;
},
setLine: function(){
this.line={
color: this.$el.data('line-color')||this.$container.data('line-color')||'#f0f0f0',
width: this.$el.data('line-width')||this.$container.data('line-width')||10,
type: this.$el.data('line-type')||this.$container.data('line-type')||'round',
time: this.$el.data('line-time')||this.$container.data('line-time')||600,
animate: Boolean(this.$el.data('animation'))||Boolean(this.$container.data('animation'))||false,
dash: this.$el.data('line-dash')||this.$container.data('line-dash')||'line'
}
if(!this.line.animate){
this.line.time=1;
}
return this;
},
setDot: function(){
this.dot={
$el: this.$el,
radius: this.$el.data('dot-radius')||this.$container.data('dot-radius')||8,
color: this.$el.data('dot-color')||this.$container.data('dot-color')||'#ff6c00',
time: this.$el.data('dot-time')||this.$container.data('dot-time')||100,
animate: Boolean(this.$el.data('animation'))||Boolean(this.$container.data('animation'))||false
}
if(!this.dot.animate){
this.dot.time=1;
}
this.dot.x=this.$el.offset().left - this.$container.offset().left + this.offset.x + this.dot.radius;
this.dot.y=this.$el.offset().top - this.$container.offset().top + this.offset.y - this.dot.radius /2;
this.checkBoundary();
return this;
},
setDotMobile: function(){
this.dot={
$el: this.$el,
radius: this.$el.data('dot-radius')||this.$container.data('dot-radius')||8,
color: this.$el.data('dot-color')||this.$container.data('dot-color')||'#ff6c00',
time: this.$el.data('dot-time')||this.$container.data('dot-time')||100,
animate: Boolean(this.$el.data('animation'))||Boolean(this.$container.data('animation'))||false
}
if(!this.dot.animate){
this.dot.time=1;
}
this.dot.x=this.$el.offset().left - this.$container.offset().left - this.dot.radius;
this.dot.y=this.$el.offset().top - this.$container.offset().top + this.dot.radius /2;
this.offset.x=0;
this.offset.y=0;
},
checkBoundary: function(){
this.gap=20;
if(this.dot.x < this.dot.radius + this.gap){
this.dot.x=this.dot.radius + this.gap;
}
else if(this.dot.x > this.$container.innerWidth() + this.gap- this.dot.radius){
this.dot.x=this.$container.innerWidth() + this.gap - this.dot.radius;
}
if(this.dot.y < this.dot.radius + this.gap){
this.dot.y=this.dot.radius + this.gap;
}
else if(this.dot.y > this.$container.innerHeight() + this.gap - this.dot.radius){
this.dot.y=this.$container.innerHeight() - this.dot.radius + this.gap;
}
return this;
},
process: function(){
this
.setDirection()
.setOffset()
.setLine()
.setDot();
return this;
}}
var MemoryLinesConnector=function(element, canvas, children){
this.$el=element;
this.$canvas=canvas;
this.$children=children;
this.dots={};
this.line={
color: this.$el.data('line-color')||'#f0f0f0',
width: this.$el.data('line-width')||10,
type: this.$el.data('line-type')||'round',
time: this.$el.data('dot-time')||600,
animate: Boolean(this.$el.data('animation'))||false
}
if(!this.line.animate){
this.time=1;
}
this.offset={
x: this.$el.data('line-offset-x')||0,
y: this.$el.data('line-offset-y')||2
}
this.strokeJoin='miter';
this.strokeDash=false;
this.svg=[];
this.timer=100;
return this;
}
MemoryLinesConnector.prototype={
setSource: function(dot){
this.source=dot;
return this;
},
setTarget: function(dot){
this.target=dot;
return this;
},
addDot: function(delta, dot){
this.dots[delta]=dot;
return this;
},
getDot: function(delta){
return this.dots[delta]||false;
},
checkHorizontal: function(){
if((this.source.$el.outerWidth(true)==this.$el.innerWidth())
&& (this.target.$el.outerWidth(true)==this.$el.innerWidth())
&& this.source.dot.x==this.target.dot.x){
this.setDirection('horizontal')
}
else if(this.source.dot.y==this.target.dot.y){
this.setDirection('horizontal');
}
if($(window).width() < 768){
this.setDirection('horizontal');
}
return this;
},
setRadius: function(radius){
this.radius=radius||Math.abs((this.target.dot.y - this.source.dot.y) / 2);
return this;
},
setDirection: function(direction){
this.direction=direction||this.source.direction;
return this;
},
setArc: function(){
this.setRadius();
this.gap=20;
this.lineX=this.source.line.width||this.line.width;
switch (this.direction){
case 'forward' :
this.maxSpaceX=this.$el.innerWidth() - (this.source.$el.innerWidth() + this.source.dot.x);
if(this.maxSpaceX < 0){
this.setRadius(0);
}
else if(this.radius > this.maxSpaceX){
this.setRadius(this.maxSpaceX - this.gap - this.lineX);
}
this.radiusX=this.source.dot.x + this.source.$el.innerWidth();
if(this.radiusX < this.target.dot.x){
this.radiusX=this.target.dot.x;
}
this.dotX=(this.radiusX + this.radius) - this.lineX - this.gap;
if(this.dotX > this.$el.outerWidth()){
this.dotX=this.$el.outerWidth() - this.lineX;
}
if(this.radiusX > this.$el.outerWidth()){
this.radiusX=this.$el.outerWidth() - this.lineX;
}
if(this.radiusX > this.dotX){
this.radiusX=this.dotX;
this.setRadius(0);
}
break;
case 'reverse' :
this.maxSpaceX=this.target.dot.x;
this.radiusX=this.target.dot.x;
if(this.radiusX > this.source.dot.x){
this.maxSpaceX=this.source.dot.x;
this.radiusX=this.source.dot.x;
}
if(this.maxSpaceX < 0){
this.setRadius(0);
}
else if(this.radius > this.maxSpaceX){
this.setRadius(this.maxSpaceX - this.gap - this.lineX);
}
this.dotX=(this.radiusX - this.radius) + this.gap + this.lineX;
if(this.dotX < this.lineX){
this.dotX=this.lineX;
}
if(this.radiusX < this.lineX){
this.radiusX=this.lineX;
}
if(this.dotX > this.radiusX){
this.dotX=this.radiusX;
this.setRadius(0);
}
break;
}
if(this.radiusX==this.dotX){
this.setRadius(0);
}
if(this.radius < 0){
this.setRadius(this.radius * -1);
}
this.arc={
one: {
initial: {
x: this.radiusX,
y: this.source.dot.y
},
control: {
x: this.dotX,
y: this.source.dot.y
},
end: {
x: this.dotX,
y: this.source.dot.y + this.radius
},
radius: this.radius
},
two: {
initial: {
x: this.dotX,
y: this.target.dot.y - this.radius
},
control: {
x: this.dotX,
y: this.target.dot.y
},
end: {
x: this.radiusX,
y: this.target.dot.y
},
radius: this.radius
},
connector:{
one: {
start: {
x: this.source.dot.x,
y: this.source.dot.y
},
end: {
x: this.radiusX,
y: this.source.dot.y
}},
two: {
start: {
x: this.dotX,
y: this.source.dot.y + this.radius
},
end: {
x: this.dotX,
y: this.target.dot.y - this.radius
}},
three: {
start: {
x: this.radiusX,
y: this.target.dot.y
},
end: {
x: this.target.dot.x,
y: this.target.dot.y
}}
}}
return this;
},
clearCanvas: function(){
this.ctx||this.setCanvas();
this.ctx.clearRect(0, 0, this.$canvas.width(), this.$canvas.height());
return this;
},
polarToCartesian: function(centerX, centerY, radius, angleInDegrees){
var angleInRadians=(angleInDegrees-90) * Math.PI / 180.0;
return {
x: centerX + (radius * Math.cos(angleInRadians)),
y: centerY + (radius * Math.sin(angleInRadians))
};},
describeArc: function(x, y, radius, startAngle, endAngle){
var start=this.polarToCartesian(x, y, radius, endAngle);
var end=this.polarToCartesian(x, y, radius, startAngle);
var arcSweep=endAngle - startAngle <=180 ? "0":"1";
var d=[
"M", start.x - 0.1, start.y,
"A", radius, radius, 0, arcSweep, 0, end.x, end.y
].join(" ");
return d;
},
detectStroke: function(line){
switch (line.type){
case 'round' :
this.strokeJoin='round';
break;
case 'square' :
this.strokeJoin='bevel';
break;
case 'butt' :
this.strokeJoin='miter';
break;
}
switch (line.dash){
case 'dotted' :
this.strokeDash=line.width / 4 + ', ' + line.width * 2;
break;
case 'line' :
this.strokeDash=false;
break;
case 'dashed' :
this.strokeDash=line.width + ', ' + line.width * 2;
break;
}},
drawDot: function(dot){
if(!dot.animate){
this.timer=1;
dot.$el.addClass('no-animation');
}else{
dot.$el.addClass('with-animation');
}
this.time=dot.time;
this.svg.push({
path: this.describeArc(dot.x, dot.y, dot.radius, 0, 360),
strokeWidth: 1,
strokeColor: dot.color,
strokeFill: dot.color,
fill: dot.color,
fillOpacity: 1,
drawSequential: true,
delay: this.timer,
duration: this.time,
group: 'dots',
animate: 'opacity',
drawOnScroll: dot.animate,
dot: dot
});
this.timer=this.time;
return this;
},
drawCurve: function(arc, line){
if(!line.animate){
this.timer=1;
}
this.detectStroke(line);
this.time=line.time;
this.svg.push({
path:  [
'M' +
arc.initial.x,
arc.initial.y,
'Q' +
arc.control.x,
arc.control.y,
arc.end.x,
arc.end.y
].join(' '),
strokeColor: line.color,
strokeWidth: line.width,
strokeJoin: this.strokeJoin,
strokeDash: this.strokeDash,
strokeCap: line.type,
drawSequential: true,
delay: this.timer,
duration: this.time,
group: 'lines',
drawOnScroll: line.animate
});
this.timer=this.time;
return this;
},
drawLine: function(start, end, line){
if(!line.animate){
this.timer=1;
}
this.time=line.time;
if(start.x==end.x&&start.y==end.y){
return this;
}
this.detectStroke(line);
this.svg.push({
path: [
'M',
start.x,
start.y,
end.x,
end.y
].join(' '),
strokeColor: line.color,
strokeWidth: line.width,
strokeJoin: this.strokeJoin,
strokeDash: this.strokeDash,
strokeCap: line.type,
drawSequential: true,
delay: this.timer,
duration: this.time,
group: 'lines',
drawOnScroll: line.animate
});
this.timer=this.time;
return this;
},
drawConnector: function(){
this
.setDirection()
.checkHorizontal();
switch(this.direction){
case 'horizontal' :
this.drawLine(this.source.dot, this.target.dot, this.source.line||this.line);
break;
default:
this
.setArc()
.drawLine(this.arc.connector.one.start, this.arc.connector.one.end, this.source.line||this.line)
.drawCurve(this.arc.one, this.source.line||this.line)
.drawLine(this.arc.connector.two.start, this.arc.connector.two.end, this.source.line||this.line)
.drawCurve(this.arc.two, this.source.line||this.line)
.drawLine(this.arc.connector.three.start, this.arc.connector.three.end, this.source.line||this.line);
break;
}
return this;
},
drawObject: function(){
var that=this, mode='normal';
if($(window).width() < 768){
mode='mobile';
}
this.$children.each(function(delta, element){
var Target=new MemoryLinesDot($(this), that.$el);
var Source=that.getDot(delta - 1);
Target.process();
if(mode=='mobile'){
Target.setDotMobile();
}
that
.addDot(delta, Target);
if(!Source){
that.drawDot(Target.dot);
}
Source&&that.setSource(Source).setTarget(Target).drawConnector().drawDot(Target.dot);
});
this.$el.data('svg-path', this.svg);
var options={};
options[this.$canvas.attr('id')]={
overrideKey: this.$canvas.attr('id'),
paths: this.svg,
dimensions: {
width: this.$el.width(),
height: this.$el.height()
}};
this.$canvas.lazylinepainter({
svgData: options,
onStrokeComplete: function(path){
that.pathDrawComplete(path);
},
groups: [
{
id: 'lines'
},
{
id: 'dots'
}
]
});
this.$canvas.lazylinepainter('paint');
return this;
},
pathDrawComplete: function(path){
path.dot&&path.dot.$el&&path.dot.$el.addClass('animated');
}}
$.fn.memoryLineConnect=function(options){
return this.each(function(){
if($(this).children('.lazylinepainter').length){
$(this).children('.lazylinepainter').lazylinepainter('destroy').remove();
}
var MemoryDate=new Date();
var MemoryID='memory-line-' + MemoryDate.getTime();
var Canvas=$('<div id="' + MemoryID + '"></div>');
Canvas.prependTo($(this));
var MemoryLineObject=new MemoryLinesConnector($(this), Canvas, $(this).find('.memoryline-content'));
MemoryLineObject.drawObject();
$(this).data('memory-line-object', MemoryLineObject);
});
};
var MemoryHelper={
wwidth: $(window).width(),
timer: false
};
if($('#page').length&&$('#page').hasClass('animsition')){
$(window)
.on('animsitionPageIn.memoryline', function(){
$('.memoryline-connector').memoryLineConnect();
$(window)
.on('sortupdate.memoryline', function(){
$('.memoryline-connector').memoryLineConnect();
})
.on('resize.memoryline', function(){
if(MemoryHelper.wwidth!=$(window).width()){
clearTimeout(MemoryHelper.timer);
MemoryHelper.timer=setTimeout(function(){
$('.memoryline-connector').memoryLineConnect();
MemoryHelper.wwidth=$(window).width();
}, 1);
}});
});
}else{
$(window)
.on('load.memoryline sortupdate.memoryline', function (){
$('.memoryline-connector').memoryLineConnect();
})
.on('resize.memoryline', function(){
if(MemoryHelper.wwidth!=$(window).width()){
clearTimeout(MemoryHelper.timer);
MemoryHelper.timer=setTimeout(function(){
$('.memoryline-connector').memoryLineConnect();
MemoryHelper.wwidth=$(window).width();
}, 1);
}});
}})(jQuery);