
/* info: https://kaosbusters.com/wp-includes/js/dist/i18n.min.js */
/*! This file is auto-generated */
(()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n<h;n++)if("string"==typeof t[n])g+=t[n];else if("object"==typeof t[n]){if((s=t[n]).keys)for(r=e[d],o=0;o<s.keys.length;o++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?e[s.param_no]:e[d++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(c=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue t}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];return s={args:a,val:t.apply(null,a)},r?(r.prev=s,s.next=r):n=s,i===e.maxSize?(n=n.prev).next=null:i++,r=s,s.val}return e=e||{},a.clear=function(){r=null,n=null,i=0},a}(console.error);function a(t,...r){try{return e().sprintf(t,...r)}catch(e){return e instanceof Error&&i("sprintf error: \n\n"+e.toString()),t}}var o,s,l,u;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]<o[r]){p.push(i);break}a.push(i)}l[r]||p.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&a.push(t),a.concat(p.reverse())}(t);return function(t){return function(t,e){var r,n,i,a,o,s,l=[];for(r=0;r<t.length;r++){if(o=t[r],a=p[o]){for(n=a.length,i=Array(n);n--;)i[n]=l.pop();try{s=a.apply(null,i)}catch(t){return t}}else s=e.hasOwnProperty(o)?e[o]:+o;l.push(s)}return l[0]}(e,t)}}var f={contextDelimiter:"",onMissingKey:null};function d(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},f)this.options[r]=void 0!==e&&r in e?e[r]:f[r]}d.prototype.getPluralForm=function(t,e){var r,n,i,a=this.pluralForms[t];return a||("function"!=typeof(i=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=c(t);return function(t){return+e({n:t})}}(n)),a=this.pluralForms[t]=i),a(e)},d.prototype.dcnpgettext=function(t,e,r,n,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(t,i),o=r,e&&(o=e+this.options.contextDelimiter+r),(s=this.data[t][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};const h={plural_forms:t=>1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})();


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-includes/js/jquery/jquery.form.min.js */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),a(t),t}:a(jQuery)}(function(O){"use strict";var d=/\r?\n/g,h={},X=(h.fileapi=void 0!==O('<input type="file">').get(0).files,h.formdata=void 0!==window.FormData,!!O.fn.prop);function o(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),O(e.target).closest("form").ajaxSubmit(t))}function i(e){var t=e.target,a=O(t);if(!a.is("[type=submit],[type=image]")){var r=a.closest("[type=submit]");if(0===r.length)return;t=r[0]}var n=t.form;"image"===(n.clk=t).type&&(void 0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeof O.fn.offset?(r=a.offset(),n.clk_x=e.pageX-r.left,n.clk_y=e.pageY-r.top):(n.clk_x=e.pageX-t.offsetLeft,n.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}function C(){var e;O.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}O.fn.attr2=function(){var e;return X&&((e=this.prop.apply(this,arguments))&&e.jquery||"string"==typeof e)?e:this.attr.apply(this,arguments)},O.fn.ajaxSubmit=function(F,e,t,a){if(this.length){var E,L=this,e=("function"==typeof F?F={success:F}:"string"==typeof F||!1===F&&0<arguments.length?(F={url:F,data:e,dataType:t},"function"==typeof a&&(F.success=a)):void 0===F&&(F={}),E=F.method||F.type||this.attr2("method"),t=(t=(t="string"==typeof(e=F.url||this.attr2("action"))?O.trim(e):"")||window.location.href||"")&&(t.match(/^([^#]+)/)||[])[1],a=/(MSIE|Trident)/.test(navigator.userAgent||"")&&/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",F=O.extend(!0,{url:t,success:O.ajaxSettings.success,type:E||O.ajaxSettings.type,iframeSrc:a},F),{});if(this.trigger("form-pre-serialize",[this,F,e]),e.veto)C("ajaxSubmit: submit vetoed via form-pre-serialize trigger");else if(F.beforeSerialize&&!1===F.beforeSerialize(this,F))C("ajaxSubmit: submit aborted via beforeSerialize callback");else{var t=F.traditional,M=(void 0===t&&(t=O.ajaxSettings.traditional),[]),r=this.formToArray(F.semantic,M,F.filtering);if(F.data&&(a=O.isFunction(F.data)?F.data(r):F.data,F.extraData=a,l=O.param(a,t)),F.beforeSubmit&&!1===F.beforeSubmit(r,this,F))C("ajaxSubmit: submit aborted via beforeSubmit callback");else if(this.trigger("form-submit-validate",[r,this,F,e]),e.veto)C("ajaxSubmit: submit vetoed via form-submit-validate trigger");else{var o,n,i,a=O.param(r,t),s=(l&&(a=a?a+"&"+l:l),"GET"===F.type.toUpperCase()?(F.url+=(0<=F.url.indexOf("?")?"&":"?")+a,F.data=null):F.data=a,[]);F.resetForm&&s.push(function(){L.resetForm()}),F.clearForm&&s.push(function(){L.clearForm(F.includeHidden)}),!F.dataType&&F.target?(o=F.success||function(){},s.push(function(e,t,a){var r=arguments,n=F.replaceTarget?"replaceWith":"html";O(F.target)[n](e).each(function(){o.apply(this,r)})})):F.success&&(O.isArray(F.success)?O.merge(s,F.success):s.push(F.success)),F.success=function(e,t,a){for(var r=F.context||this,n=0,o=s.length;n<o;n++)s[n].apply(r,[e,t,a||L,L])},F.error&&(n=F.error,F.error=function(e,t,a){var r=F.context||this;n.apply(r,[e,t,a,L])}),F.complete&&(i=F.complete,F.complete=function(e,t){var a=F.context||this;i.apply(a,[e,t,L])});var c,e=0<O("input[type=file]:enabled",this).filter(function(){return""!==O(this).val()}).length,t="multipart/form-data",l=L.attr("enctype")===t||L.attr("encoding")===t,a=h.fileapi&&h.formdata;C("fileAPI :"+a),!1!==F.iframe&&(F.iframe||(e||l)&&!a)?F.closeKeepAlive?O.get(F.closeKeepAlive,function(){c=f(r)}):c=f(r):c=(e||l)&&a?function(e){for(var a=new FormData,t=0;t<e.length;t++)a.append(e[t].name,e[t].value);if(F.extraData){var r=function(e){var t,a,r=O.param(e,F.traditional).split("&"),n=r.length,o=[];for(t=0;t<n;t++)r[t]=r[t].replace(/\+/g," "),a=r[t].split("="),o.push([decodeURIComponent(a[0]),decodeURIComponent(a[1])]);return o}(F.extraData);for(t=0;t<r.length;t++)r[t]&&a.append(r[t][0],r[t][1])}F.data=null;var n=O.extend(!0,{},O.ajaxSettings,F,{contentType:!1,processData:!1,cache:!1,type:E||"POST"});F.uploadProgress&&(n.xhr=function(){var e=O.ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",function(e){var t=0,a=e.loaded||e.position,r=e.total;e.lengthComputable&&(t=Math.ceil(a/r*100)),F.uploadProgress(e,a,r,t)},!1),e});n.data=null;var o=n.beforeSend;return n.beforeSend=function(e,t){F.formData?t.data=F.formData:t.data=a,o&&o.call(this,e,t)},O.ajax(n)}(r):O.ajax(F),L.removeData("jqxhr").data("jqxhr",c);for(var u=0;u<M.length;u++)M[u]=null;this.trigger("form-submit-notify",[this,F])}}}else C("ajaxSubmit: skipping submit process - no element selected");return this;function f(e){var t,a,l,u,f,d,m,p,h,o=L[0],g=O.Deferred();if(g.abort=function(e){m.abort(e)},e)for(a=0;a<M.length;a++)t=O(M[a]),X?t.prop("disabled",!1):t.removeAttr("disabled");(l=O.extend(!0,{},O.ajaxSettings,F)).context=l.context||l;var v,x,r,y,b,T,j,w,i,S,s="jqFormIO"+(new Date).getTime(),c=o.ownerDocument,k=L.closest("body");return l.iframeTarget?(r=(f=O(l.iframeTarget,c)).attr2("name"))?s=r:f.attr2("name",s):(f=O('<iframe name="'+s+'" src="'+l.iframeSrc+'" />',c)).css({position:"absolute",top:"-1000px",left:"-1000px"}),d=f[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";C("aborting upload... "+t),this.aborted=1;try{d.contentWindow.document.execCommand&&d.contentWindow.document.execCommand("Stop")}catch(e){}f.attr("src",l.iframeSrc),m.error=t,l.error&&l.error.call(l.context,m,t,e),u&&O.event.trigger("ajaxError",[m,l,t]),l.complete&&l.complete.call(l.context,m,t)}},(u=l.global)&&0==O.active++&&O.event.trigger("ajaxStart"),u&&O.event.trigger("ajaxSend",[m,l]),l.beforeSend&&!1===l.beforeSend.call(l.context,m,l)?(l.global&&O.active--,g.reject()):m.aborted?g.reject():((e=o.clk)&&(r=e.name)&&!e.disabled&&(l.extraData=l.extraData||{},l.extraData[r]=e.value,"image"===e.type)&&(l.extraData[r+".x"]=o.clk_x,l.extraData[r+".y"]=o.clk_y),v=1,x=2,e=O("meta[name=csrf-token]").attr("content"),(r=O("meta[name=csrf-param]").attr("content"))&&e&&(l.extraData=l.extraData||{},l.extraData[r]=e),l.forceSync?n():setTimeout(n,10),T=50,w=O.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},i=O.parseJSON||function(e){return window.eval("("+e+")")},S=function(e,t,a){var r=e.getResponseHeader("content-type")||"",n=("xml"===t||!t)&&0<=r.indexOf("xml"),e=n?e.responseXML:e.responseText;return n&&"parsererror"===e.documentElement.nodeName&&O.error&&O.error("parsererror"),"string"==typeof(e=a&&a.dataFilter?a.dataFilter(e,t):e)&&(("json"===t||!t)&&0<=r.indexOf("json")?e=i(e):("script"===t||!t)&&0<=r.indexOf("javascript")&&O.globalEval(e)),e}),g;function D(t){var a=null;try{t.contentWindow&&(a=t.contentWindow.document)}catch(e){C("cannot get iframe.contentWindow document: "+e)}if(!a)try{a=t.contentDocument||t.document}catch(e){C("cannot get iframe.contentDocument: "+e),a=t.document}return a}function n(){var e=L.attr2("target"),t=L.attr2("action"),a=L.attr("enctype")||L.attr("encoding")||"multipart/form-data";o.setAttribute("target",s),E&&!/post/i.test(E)||o.setAttribute("method","POST"),t!==l.url&&o.setAttribute("action",l.url),l.skipEncodingOverride||E&&!/post/i.test(E)||L.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),l.timeout&&(h=setTimeout(function(){p=!0,A(v)},l.timeout));var r=[];try{if(l.extraData)for(var n in l.extraData)l.extraData.hasOwnProperty(n)&&(O.isPlainObject(l.extraData[n])&&l.extraData[n].hasOwnProperty("name")&&l.extraData[n].hasOwnProperty("value")?r.push(O('<input type="hidden" name="'+l.extraData[n].name+'">',c).val(l.extraData[n].value).appendTo(o)[0]):r.push(O('<input type="hidden" name="'+n+'">',c).val(l.extraData[n]).appendTo(o)[0]));l.iframeTarget||f.appendTo(k),d.attachEvent?d.attachEvent("onload",A):d.addEventListener("load",A,!1),setTimeout(function e(){try{var t=D(d).readyState;C("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(e){C("Server abort: ",e," (",e.name,")"),A(x),h&&clearTimeout(h),h=void 0}},15);try{o.submit()}catch(e){document.createElement("form").submit.apply(o)}}finally{o.setAttribute("action",t),o.setAttribute("enctype",a),e?o.setAttribute("target",e):L.removeAttr("target"),O(r).remove()}}function A(t){if(!m.aborted&&!j)if((b=D(d))||(C("cannot access response document"),t=x),t===v&&m)m.abort("timeout"),g.reject(m,"timeout");else if(t===x&&m)m.abort("server abort"),g.reject(m,"error","server abort");else if(b&&b.location.href!==l.iframeSrc||p){d.detachEvent?d.detachEvent("onload",A):d.removeEventListener("load",A,!1);var a,t="success";try{if(p)throw"timeout";var e="xml"===l.dataType||b.XMLDocument||O.isXMLDoc(b);if(C("isXml="+e),!e&&window.opera&&(null===b.body||!b.body.innerHTML)&&--T)return C("requeing onLoad callback, DOM not available"),void setTimeout(A,250);var r,n,o,i=b.body||b.documentElement,s=(m.responseText=i?i.innerHTML:null,m.responseXML=b.XMLDocument||b,e&&(l.dataType="xml"),m.getResponseHeader=function(e){return{"content-type":l.dataType}[e.toLowerCase()]},i&&(m.status=Number(i.getAttribute("status"))||m.status,m.statusText=i.getAttribute("statusText")||m.statusText),(l.dataType||"").toLowerCase()),c=/(json|script|text)/.test(s);c||l.textarea?(r=b.getElementsByTagName("textarea")[0])?(m.responseText=r.value,m.status=Number(r.getAttribute("status"))||m.status,m.statusText=r.getAttribute("statusText")||m.statusText):c&&(n=b.getElementsByTagName("pre")[0],o=b.getElementsByTagName("body")[0],n?m.responseText=n.textContent||n.innerText:o&&(m.responseText=o.textContent||o.innerText)):"xml"===s&&!m.responseXML&&m.responseText&&(m.responseXML=w(m.responseText));try{y=S(m,s,l)}catch(e){t="parsererror",m.error=a=e||t}}catch(e){C("error caught: ",e),t="error",m.error=a=e||t}m.aborted&&(C("upload aborted"),t=null),"success"===(t=m.status?200<=m.status&&m.status<300||304===m.status?"success":"error":t)?(l.success&&l.success.call(l.context,y,"success",m),g.resolve(m.responseText,"success",m),u&&O.event.trigger("ajaxSuccess",[m,l])):t&&(void 0===a&&(a=m.statusText),l.error&&l.error.call(l.context,m,t,a),g.reject(m,"error",a),u)&&O.event.trigger("ajaxError",[m,l,a]),u&&O.event.trigger("ajaxComplete",[m,l]),u&&!--O.active&&O.event.trigger("ajaxStop"),l.complete&&l.complete.call(l.context,m,t),j=!0,l.timeout&&clearTimeout(h),setTimeout(function(){l.iframeTarget?f.attr("src",l.iframeSrc):f.remove(),m.responseXML=null},100)}}}},O.fn.ajaxForm=function(e,t,a,r){var n;return("string"==typeof e||!1===e&&0<arguments.length)&&(e={url:e,data:t,dataType:a},"function"==typeof r)&&(e.success=r),(e=e||{}).delegation=e.delegation&&O.isFunction(O.fn.on),e.delegation||0!==this.length?e.delegation?(O(document).off("submit.form-plugin",this.selector,o).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,e,o).on("click.form-plugin",this.selector,e,i),this):(e.beforeFormUnbind&&e.beforeFormUnbind(this,e),this.ajaxFormUnbind().on("submit.form-plugin",e,o).on("click.form-plugin",e,i)):(n={s:this.selector,c:this.context},!O.isReady&&n.s?(C("DOM not ready, queuing ajaxForm"),O(function(){O(n.s,n.c).ajaxForm(e)})):C("terminating; zero elements found by selector"+(O.isReady?"":" (DOM not ready)")),this)},O.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},O.fn.formToArray=function(e,t,a){var r=[];if(0!==this.length){var n=this[0],o=this.attr("id"),i=(i=e||void 0===n.elements?n.getElementsByTagName("*"):n.elements)&&O.makeArray(i);if((i=o&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(o=O(':input[form="'+o+'"]').get()).length?(i||[]).concat(o):i)&&i.length){for(var s,c,l,u,f,d=0,m=(i=O.isFunction(a)?O.map(i,a):i).length;d<m;d++)if((f=(l=i[d]).name)&&!l.disabled)if(e&&n.clk&&"image"===l.type)n.clk===l&&(r.push({name:f,value:O(l).val(),type:l.type}),r.push({name:f+".x",value:n.clk_x},{name:f+".y",value:n.clk_y}));else if((c=O.fieldValue(l,!0))&&c.constructor===Array)for(t&&t.push(l),s=0,u=c.length;s<u;s++)r.push({name:f,value:c[s]});else if(h.fileapi&&"file"===l.type){t&&t.push(l);var p=l.files;if(p.length)for(s=0;s<p.length;s++)r.push({name:f,value:p[s],type:l.type});else r.push({name:f,value:"",type:l.type})}else null!=c&&(t&&t.push(l),r.push({name:f,value:c,type:l.type,required:l.required}));!e&&n.clk&&(f=(a=(o=O(n.clk))[0]).name)&&!a.disabled&&"image"===a.type&&(r.push({name:f,value:o.val()}),r.push({name:f+".x",value:n.clk_x},{name:f+".y",value:n.clk_y}))}}return r},O.fn.formSerialize=function(e){return O.param(this.formToArray(e))},O.fn.fieldSerialize=function(n){var o=[];return this.each(function(){var e=this.name;if(e){var t=O.fieldValue(this,n);if(t&&t.constructor===Array)for(var a=0,r=t.length;a<r;a++)o.push({name:e,value:t[a]});else null!=t&&o.push({name:this.name,value:t})}}),O.param(o)},O.fn.fieldValue=function(e){for(var t=[],a=0,r=this.length;a<r;a++){var n=this[a],n=O.fieldValue(n,e);null==n||n.constructor===Array&&!n.length||(n.constructor===Array?O.merge(t,n):t.push(n))}return t},O.fieldValue=function(e,t){var a=e.name,r=e.type,n=e.tagName.toLowerCase();if((t=void 0===t?!0:t)&&(!a||e.disabled||"reset"===r||"button"===r||("checkbox"===r||"radio"===r)&&!e.checked||("submit"===r||"image"===r)&&e.form&&e.form.clk!==e||"select"===n&&-1===e.selectedIndex))return null;if("select"!==n)return O(e).val().replace(d,"\r\n");t=e.selectedIndex;if(t<0)return null;for(var o=[],i=e.options,s="select-one"===r,c=s?t+1:i.length,l=s?t:0;l<c;l++){var u=i[l];if(u.selected&&!u.disabled){var f=(f=u.value)||(u.attributes&&u.attributes.value&&!u.attributes.value.specified?u.text:u.value);if(s)return f;o.push(f)}}return o},O.fn.clearForm=function(e){return this.each(function(){O("input,select,textarea",this).clearFields(e)})},O.fn.clearFields=O.fn.clearInputs=function(a){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();r.test(e)||"textarea"===t?this.value="":"checkbox"===e||"radio"===e?this.checked=!1:"select"===t?this.selectedIndex=-1:"file"===e?/MSIE/.test(navigator.userAgent)?O(this).replaceWith(O(this).clone(!0)):O(this).val(""):a&&(!0===a&&/hidden/.test(e)||"string"==typeof a&&O(this).is(a))&&(this.value="")})},O.fn.resetForm=function(){return this.each(function(){var t=O(this),e=this.tagName.toLowerCase();switch(e){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var a=t.parents("select");return a.length&&a[0].multiple?"option"===e?this.selected=this.defaultSelected:t.find("option").resetForm():a.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var a=O(t.attr("for")),r=t.find("input,select,textarea");return a[0]&&r.unshift(a[0]),r.resetForm(),!0;case"form":return"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},O.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},O.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var e=this.type;"checkbox"===e||"radio"===e?this.checked=t:"option"===this.tagName.toLowerCase()&&(e=O(this).parent("select"),t&&e[0]&&"select-one"===e[0].type&&e.find("option").selected(!1),this.selected=t)})},O.fn.ajaxSubmit.debug=!1});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/plugins/salient-social/js/salient-social.js */
jQuery(document).ready(function($){"use strict";function NectarSocial(){this.$body=$('body');this.$window=$(window);this.$wpAdminBar=$('#wpadminbar');this.usingMobileBrowser=(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/))?!0:!1;this.mouseEvents();this.nectarLove();if($('body').find('.nectar-social.fixed').length>0){this.fixedStyle()}}
NectarSocial.prototype.mouseEvents=function(){this.$body.on('click','#single-below-header .nectar-social a',function(){return!1});$('body.single-product .nectar-social').addClass('woo');this.$body.on('click','.facebook-share:not(.inactive)',this.facebookShare);this.$body.on('click','.nectar-social:not(".woo") .twitter-share:not(.inactive)',this.twitterShare);this.$body.on('click','.nectar-social.woo .twitter-share',this.wooTwitterShare);this.$body.on('click','.nectar-social:not(".woo") .linkedin-share:not(.inactive)',this.linkedInShare);this.$body.on('click','.nectar-social.woo .linkedin-share',this.woolinkedInShare);this.$body.on('click','.nectar-social:not(".woo") .pinterest-share:not(.inactive)',this.pinterestShare);this.$body.on('click','.nectar-social.woo .pinterest-share',this.wooPinterestShare);this.$body.on('click','.nectar-social.fixed > a',function(){return!1});if(!this.usingMobileBrowser){var $socialTimeout;this.$body.on('mouseenter','.nectar-social.hover .share-btn',function(){clearTimeout($socialTimeout);if($(this).parents('[id*="-meta"]').length>0){$(this).parents('[id*="-meta"]').addClass('social-hovered')}
if($(this).parents('#single-below-header').length>0){$(this).parents('#single-below-header').addClass('social-hovered')}
$(this).parent().addClass('visible')});this.$body.on('mouseleave','.nectar-social.hover',function(){var $that=$(this);$socialTimeout=setTimeout(function(){$that.removeClass('visible');if($that.parents('[id*="-meta"]').length>0){$that.parents('[id*="-meta"]').removeClass('social-hovered')}
if($that.parents('#single-below-header').length>0){$that.parents('#single-below-header').removeClass('social-hovered')}},200)})}else{this.$body.on('click','.nectar-social.hover .share-btn',function(){if($(this).parents('[id*="-meta"]').length>0){$(this).parents('[id*="-meta"]').addClass('social-hovered')}
if($(this).parents('#single-below-header').length>0){$(this).parents('#single-below-header').addClass('social-hovered')}
$(this).parent().addClass('visible');return!1})}};NectarSocial.prototype.facebookShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');window.open('https://www.facebook.com/sharer/sharer.php?u='+windowLocation,"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.facebookShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');window.open('https://www.facebook.com/sharer/sharer.php?u='+windowLocation,"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.twitterShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');var $pageTitle;if($(".section-title h1").length>0){$pageTitle=encodeURIComponent($(".section-title h1").text())}else{$pageTitle=encodeURIComponent($(document).find("title").text())}
window.open('http://twitter.com/intent/tweet?text='+$pageTitle+' '+windowLocation,"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.wooTwitterShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');window.open('http://twitter.com/intent/tweet?text='+$("h1.product_title").text()+' '+windowLocation,"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.linkedInShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');var $pageTitle;if($(".section-title h1").length>0){$pageTitle=encodeURIComponent($(".section-title h1").text())}else{$pageTitle=encodeURIComponent($(document).find("title").text())}
window.open('http://www.linkedin.com/shareArticle?mini=true&url='+windowLocation+'&title='+$pageTitle+'',"linkedInWindow","height=480,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.woolinkedInShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');window.open('http://www.linkedin.com/shareArticle?mini=true&url='+windowLocation+'&title='+$("h1.product_title").text(),"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.pinterestShare=function(){var windowLocation=window.location.href.replace(window.location.hash,'');var $sharingImg=($('.single-portfolio').length>0&&$('div[data-featured-img]').attr('data-featured-img')!='empty')?$('div[data-featured-img]').attr('data-featured-img'):$('#ajax-content-wrap img').first().attr('src');var $pageTitle;if($(".section-title h1").length>0){$pageTitle=encodeURIComponent($(".section-title h1").text())}else{$pageTitle=encodeURIComponent($(document).find("title").text())}
window.open('http://pinterest.com/pin/create/button/?url='+windowLocation+'&media='+$sharingImg+'&description='+$pageTitle,"pinterestWindow","height=640,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.wooPinterestShare=function(){var $imgToShare=($('img.attachment-shop_single').length>0)?$('img.attachment-shop_single').first().attr('src'):$('.single-product-main-image img').first().attr('src');var windowLocation=window.location.href.replace(window.location.hash,'');window.open('http://pinterest.com/pin/create/button/?url='+windowLocation+'&media='+$imgToShare+'&description='+$('h1.product_title').text(),"pinterestWindow","height=640,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return!1};NectarSocial.prototype.nectarLove=function(){this.$body.on('click','.nectar-love',function(){var $loveLink=$(this),$id=$(this).attr('id'),$that=$(this);if($loveLink.hasClass('loved')||$(this).hasClass('inactive')){return!1}
var $dataToPass={action:'nectar-love',loves_id:$id,love_nonce:window.nectarLove.loveNonce};$.post(window.nectarLove.ajaxurl,$dataToPass,function(data){$loveLink.find('.nectar-love-count').html(data);$loveLink.addClass('loved').attr('title','You already love this!');$that.find('.icon-salient-heart-2').addClass('loved')});$(this).addClass('inactive');return!1})};NectarSocial.prototype.fixedStyle=function(){$('.wpb_wrapper .nectar-social.fixed').each(function(i){if(i!==0){$(this).remove()}else{var $fixedMarkup=$(this).clone();$('body').append($fixedMarkup);$(this).remove()}});function showFixedSharing(){if($(window).scrollTop()>150){$('.nectar-social.fixed').addClass('visible');$(window).off('scroll',showFixedSharing);$(window).on('scroll',hideFixedSharing)}}
function hideFixedSharing(){if($(window).scrollTop()<150){$('.nectar-social.fixed').removeClass('visible');$(window).off('scroll',hideFixedSharing);$(window).on('scroll',showFixedSharing)}}
if($('.nectar-social.fixed').length>0){if($(window).width()<1000){if($(window).scrollTop()>150){$(window).on('scroll',hideFixedSharing)}else{$(window).on('scroll',showFixedSharing)}}
$(window).on('smartresize',function(){if($(window).width()>1000){$('.nectar-social.fixed').addClass('visible')}else if($(window).scrollTop()<150){$(window).off('scroll',hideFixedSharing);$(window).on('scroll',showFixedSharing);$('.nectar-social.fixed').removeClass('visible')}else{$(window).off('scroll',showFixedSharing);$(window).on('scroll',hideFixedSharing)}})}};var nectarSocialInit=new NectarSocial();window.NectarSocial=NectarSocial});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/jquery.easing.js */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/jquery.mousewheel.js */
/*!
 * jQuery Mousewheel 3.1.13
 * Copyright OpenJS Foundation and other contributors
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(u){var f,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],w=Array.prototype.slice;if(u.event.fixHooks)for(var i=e.length;i;)u.event.fixHooks[e[--i]]=u.event.mouseHooks;var c=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,{passive:!1});else this.onmousewheel=n;u.data(this,"mousewheel-line-height",c.getLineHeight(this)),u.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),i=t["offsetParent"in u.fn?"offsetParent":"parent"]();return i.length||(i=u("body")),parseInt(i.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,i=e||window.event,n=w.call(arguments,1),o=0,l=0,s=0;if((e=u.event.fix(i)).type="mousewheel","detail"in i&&(s=-1*i.detail),"wheelDelta"in i&&(s=i.wheelDelta),"wheelDeltaY"in i&&(s=i.wheelDeltaY),"wheelDeltaX"in i&&(l=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(l=-1*s,s=0),o=0===s?l:s,"deltaY"in i&&(o=s=-1*i.deltaY),"deltaX"in i&&(l=i.deltaX,0===s&&(o=-1*l)),0!==s||0!==l){if(1===i.deltaMode){var a=u.data(this,"mousewheel-line-height");o*=a,s*=a,l*=a}else if(2===i.deltaMode){var h=u.data(this,"mousewheel-page-height");o*=h,s*=h,l*=h}if(t=Math.max(Math.abs(s),Math.abs(l)),(!d||t<d)&&g(i,d=t)&&(d/=40),g(i,t)&&(o/=40,l/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/d),l=Math[1<=l?"floor":"ceil"](l/d),s=Math[1<=s?"floor":"ceil"](s/d),c.settings.normalizeOffset&&this.getBoundingClientRect){var r=this.getBoundingClientRect();e.offsetX=e.clientX-r.left,e.offsetY=e.clientY-r.top}return e.deltaX=l,e.deltaY=s,e.deltaFactor=d,e.deltaMode=0,n.unshift(e,o,l,s),f&&window.clearTimeout(f),f=window.setTimeout(m,200),(u.event.dispatch||u.event.handle).apply(this,n)}}function m(){d=null}function g(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}u.fn.extend({mousewheel:function(e){return e?this.on("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.off("mousewheel",e)}})});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/priority.js */
var headerEl=document.getElementById('header-outer');var headerSpaceEl=document.getElementById('header-space');if(typeof(headerEl)!='undefined'&&headerEl!=null&&typeof(headerSpaceEl)!='undefined'&&headerSpaceEl!=null&&headerSpaceEl.hasAttribute('data-secondary-header-display')){headerSpaceEl.style.height=headerEl.clientHeight+'px'}
jQuery(function($){"use strict";var using_mobile_browser=!1;if(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)){using_mobile_browser=!0}
var nectarPageHeader;function fullscreenHeightCalc(){var pageHeaderOffset=nectarPageHeader.offset().top;$('#page-header-wrap.fullscreen-header').css('height','auto');nectarPageHeader.css('height',(parseInt(window.innerHeight)-parseInt(pageHeaderOffset))+'px')}
if(using_mobile_browser&&$('#page-header-bg.fullscreen-header').length>0){nectarPageHeader=$('#page-header-bg');fullscreenHeightCalc();var $windowDOMWidth=window.innerWidth,$windowDOMHeight=window.innerHeight;$(window).resize(function(){if(($(window).width()!=$windowDOMWidth&&$(window).height!=$windowDOMHeight)){fullscreenHeightCalc();$windowDOMWidth=window.innerWidth;$windowDOMHeight=window.innerHeight}})}
function portfolioFullScreenSliderCalcs(){var $bodyBorderSize=($('.body-border-top').length>0&&$(window).width()>1000)?$('.body-border-top').height():0;$('.nectar_fullscreen_zoom_recent_projects').each(function(){if($(this).parents('.first-section').length>0){$(this).css('height',$(window).height()-$(this).offset().top-$bodyBorderSize)}else{$(this).css('height',$(window).height())}})}
if(using_mobile_browser&&$('.nectar_fullscreen_zoom_recent_projects').length>0){portfolioFullScreenSliderCalcs()}
function centeredNavBottomBarReposition(){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');var $headerSpan3=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3');var $secondaryHeader=$('#header-secondary-outer');var $logoLinkClone=$headerSpan3.find('#logo').clone();if($logoLinkClone.is('[data-supplied-ml="true"]')){$logoLinkClone.find('img:not(.mobile-only-logo)').remove()}
$logoLinkClone.find('img.starting-logo').remove();if($secondaryHeader.length>0){$secondaryHeader.addClass('centered-menu-bottom-bar')}
if($('#header-outer[data-condense="true"]').length>0&&$('#header-outer[data-menu-bottom-bar-align="left"]').length==0){$headerSpan9.prepend($logoLinkClone)}}
if($('#header-outer[data-format="centered-menu-bottom-bar"]').length>0){centeredNavBottomBarReposition()}
$('#page-header-bg[data-animate-in-effect="zoom-out"]').addClass('loaded');function sliderFontOverrides(){var $overrideCSS='';$('.nectar-slider-wrap').each(function(){if($(this).find('.swiper-container[data-tho]').length>0){var $tho=$(this).find('.swiper-container').attr('data-tho');var $tco=$(this).find('.swiper-container').attr('data-tco');var $pho=$(this).find('.swiper-container').attr('data-pho');var $pco=$(this).find('.swiper-container').attr('data-pco');if($tho!='auto'||$tco!='auto'){$overrideCSS+='@media only screen and (max-width: 1000px) and (min-width: 690px) {';if($tho!='auto')
$overrideCSS+='#'+$(this).attr('id')+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content h2, #boxed .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content h2, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="true"] .swiper-slide .content h2, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="boxed-full-width"] .swiper-slide .content h2, body .full-width-content .vc_span12 .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content h2 { font-size:'+$tho+'px!important; line-height:'+(parseInt($tho)+10)+'px!important;  }';if($pho!='auto')
$overrideCSS+='#'+$(this).attr('id')+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content p, #boxed .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content p, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="true"] .swiper-slide .content p, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="boxed-full-width"] .swiper-slide .content p, body .full-width-content .vc_span12 .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content p { font-size:'+$tco+'px!important; line-height:'+(parseInt($tco)+10)+'px!important;  }';$overrideCSS+='}'}
if($pho!='auto'||$pco!='auto'){$overrideCSS+='@media only screen and (max-width: 690px) {';if($pho!='auto')
$overrideCSS+='#'+$(this).attr('id')+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content h2, #boxed .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content h2, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="true"] .swiper-slide .content h2, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="boxed-full-width"] .swiper-slide .content h2, body .full-width-content .vc_span12 .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content h2 { font-size:'+$pho+'px!important; line-height:'+(parseInt($pho)+10)+'px!important;  }';if($pho!='auto')
$overrideCSS+='#'+$(this).attr('id')+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content p, #boxed .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content p,  body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="true"] .swiper-slide .content p, body .nectar-slider-wrap#'+$(this).attr('id')+'[data-full-width="boxed-full-width"] .swiper-slide .content p, body .full-width-content .vc_span12 .nectar-slider-wrap#'+$(this).attr('id')+' .swiper-slide .content p { font-size:'+$pco+'px!important; line-height:'+(parseInt($pco)+10)+'px!important;  }';$overrideCSS+='}'}}});if($overrideCSS.length>1){var head=document.head||document.getElementsByTagName('head')[0];var style=document.createElement('style');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=$overrideCSS}else{style.appendChild(document.createTextNode($overrideCSS))}
head.appendChild(style);$('.nectar-slider-wrap .content').css('visibility','visible')}}
sliderFontOverrides()});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/transit.js */
/*!
* jQuery Transit - CSS3 transitions and transformations
* (c) 2011-2012 Rico Sta. Cruz <rico@ricostacruz.com>
* MIT Licensed.
*/
(function(k){k.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var d=document.createElement("div");var q={};function b(v){if(v in d.style){return v}var u=["Moz","Webkit","O","ms"];var r=v.charAt(0).toUpperCase()+v.substr(1);if(v in d.style){return v}for(var t=0;t<u.length;++t){var s=u[t]+r;if(s in d.style){return s}}}function e(){d.style[q.transform]="";d.style[q.transform]="rotateY(90deg)";return d.style[q.transform]!==""}var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;q.transition=b("transition");q.transitionDelay=b("transitionDelay");q.transform=b("transform");q.transformOrigin=b("transformOrigin");q.transform3d=e();var i={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var f=q.transitionEnd=i[q.transition]||null;for(var p in q){if(q.hasOwnProperty(p)&&typeof k.support[p]==="undefined"){k.support[p]=q[p]}}d=null;k.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};k.cssHooks["transit:transform"]={get:function(r){return k(r).data("transform")||new j()},set:function(s,r){var t=r;if(!(t instanceof j)){t=new j(t)}if(q.transform==="WebkitTransform"&&!a){s.style[q.transform]=t.toString(!0)}else{s.style[q.transform]=t.toString()}k(s).data("transform",t)}};k.cssHooks.transform={set:k.cssHooks["transit:transform"].set};if(k.fn.jquery<"1.8"){k.cssHooks.transformOrigin={get:function(r){return r.style[q.transformOrigin]},set:function(r,s){r.style[q.transformOrigin]=s}};k.cssHooks.transition={get:function(r){return r.style[q.transition]},set:function(r,s){r.style[q.transition]=s}}}n("scale");n("translate");n("rotate");n("rotateX");n("rotateY");n("rotate3d");n("perspective");n("skewX");n("skewY");n("x",!0);n("y",!0);function j(r){if(typeof r==="string"){this.parse(r)}return this}j.prototype={setFromString:function(t,s){var r=(typeof s==="string")?s.split(","):(s.constructor===Array)?s:[s];r.unshift(t);j.prototype.set.apply(this,r)},set:function(s){var r=Array.prototype.slice.apply(arguments,[1]);if(this.setter[s]){this.setter[s].apply(this,r)}else{this[s]=r.join(",")}},get:function(r){if(this.getter[r]){return this.getter[r].apply(this)}else{return this[r]||0}},setter:{rotate:function(r){this.rotate=o(r,"deg")},rotateX:function(r){this.rotateX=o(r,"deg")},rotateY:function(r){this.rotateY=o(r,"deg")},scale:function(r,s){if(s===undefined){s=r}this.scale=r+","+s},skewX:function(r){this.skewX=o(r,"deg")},skewY:function(r){this.skewY=o(r,"deg")},perspective:function(r){this.perspective=o(r,"px")},x:function(r){this.set("translate",r,null)},y:function(r){this.set("translate",null,r)},translate:function(r,s){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(r!==null&&r!==undefined){this._translateX=o(r,"px")}if(s!==null&&s!==undefined){this._translateY=o(s,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var r=(this.scale||"1,1").split(",");if(r[0]){r[0]=parseFloat(r[0])}if(r[1]){r[1]=parseFloat(r[1])}return(r[0]===r[1])?r[0]:r},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var r=0;r<=3;++r){if(t[r]){t[r]=parseFloat(t[r])}}if(t[3]){t[3]=o(t[3],"deg")}return t}},parse:function(s){var r=this;s.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,v,u){r.setFromString(v,u)})},toString:function(t){var s=[];for(var r in this){if(this.hasOwnProperty(r)){if((!q.transform3d)&&((r==="rotateX")||(r==="rotateY")||(r==="perspective")||(r==="transformOrigin"))){continue}if(r[0]!=="_"){if(t&&(r==="scale")){s.push(r+"3d("+this[r]+",1)")}else{if(t&&(r==="translate")){s.push(r+"3d("+this[r]+",0)")}else{s.push(r+"("+this[r]+")")}}}}}return s.join(" ")}};function m(s,r,t){if(r===!0){s.queue(t)}else{if(r){s.queue(r,t)}else{t()}}}function h(s){var r=[];k.each(s,function(t){t=k.camelCase(t);t=k.transit.propertyMap[t]||k.cssProps[t]||t;t=c(t);if(k.inArray(t,r)===-1){r.push(t)}});return r}function g(s,v,x,r){var t=h(s);if(k.cssEase[x]){x=k.cssEase[x]}var w=""+l(v)+" "+x;if(parseInt(r,10)>0){w+=" "+l(r)}var u=[];k.each(t,function(z,y){u.push(y+" "+w)});return u.join(", ")}k.fn.transition=k.fn.transit=function(z,s,y,C){var D=this;var u=0;var w=!0;if(typeof s==="function"){C=s;s=undefined}if(typeof y==="function"){C=y;y=undefined}if(typeof z.easing!=="undefined"){y=z.easing;delete z.easing}if(typeof z.duration!=="undefined"){s=z.duration;delete z.duration}if(typeof z.complete!=="undefined"){C=z.complete;delete z.complete}if(typeof z.queue!=="undefined"){w=z.queue;delete z.queue}if(typeof z.delay!=="undefined"){u=z.delay;delete z.delay}if(typeof s==="undefined"){s=k.fx.speeds._default}if(typeof y==="undefined"){y=k.cssEase._default}s=l(s);var E=g(z,s,y,u);var B=k.transit.enabled&&q.transition;var t=B?(parseInt(s,10)+parseInt(u,10)):0;if(t===0){var A=function(F){D.css(z);if(C){C.apply(D)}if(F){F()}};m(D,w,A);return D}var x={};var r=function(H){var G=!1;var F=function(){if(G){D.unbind(f,F)}if(t>0){D.each(function(){this.style[q.transition]=(x[this]||null)})}if(typeof C==="function"){C.apply(D)}if(typeof H==="function"){H()}};if((t>0)&&(f)&&(k.transit.useTransitionEnd)){G=!0;D.bind(f,F)}else{window.setTimeout(F,t)}D.each(function(){if(t>0){this.style[q.transition]=E}k(this).css(z)})};var v=function(F){this.offsetWidth;r(F)};m(D,w,v);return this};function n(s,r){if(!r){k.cssNumber[s]=!0}k.transit.propertyMap[s]=q.transform;k.cssHooks[s]={get:function(v){var u=k(v).css("transit:transform");return u.get(s)},set:function(v,w){var u=k(v).css("transit:transform");u.setFromString(s,w);k(v).css({"transit:transform":u})}}}function c(r){return r.replace(/([A-Z])/g,function(s){return"-"+s.toLowerCase()})}function o(s,r){if((typeof s==="string")&&(!s.match(/^[\-0-9\.]+$/))){return s}else{return""+s+r}}function l(s){var r=s;if(k.fx.speeds[r]){r=k.fx.speeds[r]}return o(r,"ms")}k.transit.getTransitionValue=g})(jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/waypoints.js */
/*!
Waypoints - 4.0.1
Copyright © 2011-2016 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
(function(){'use strict'
var keyCounter=0
var allWaypoints={}
function Waypoint(options){if(!options){throw new Error('No options passed to Waypoint constructor')}
if(!options.element){throw new Error('No element option passed to Waypoint constructor')}
if(!options.handler){throw new Error('No handler option passed to Waypoint constructor')}
this.key='waypoint-'+keyCounter
this.options=Waypoint.Adapter.extend({},Waypoint.defaults,options)
this.element=this.options.element
this.adapter=new Waypoint.Adapter(this.element)
this.callback=options.handler
this.axis=this.options.horizontal?'horizontal':'vertical'
this.enabled=this.options.enabled
this.triggerPoint=null
this.group=Waypoint.Group.findOrCreate({name:this.options.group,axis:this.axis})
this.context=Waypoint.Context.findOrCreateByElement(this.options.context)
if(Waypoint.offsetAliases[this.options.offset]){this.options.offset=Waypoint.offsetAliases[this.options.offset]}
this.group.add(this)
this.context.add(this)
allWaypoints[this.key]=this
keyCounter+=1}
Waypoint.prototype.queueTrigger=function(direction){this.group.queueTrigger(this,direction)}
Waypoint.prototype.trigger=function(args){if(!this.enabled){return}
if(this.callback){this.callback.apply(this,args)}}
Waypoint.prototype.destroy=function(){this.context.remove(this)
this.group.remove(this)
delete allWaypoints[this.key]}
Waypoint.prototype.disable=function(){this.enabled=!1
return this}
Waypoint.prototype.enable=function(){this.context.refresh()
this.enabled=!0
return this}
Waypoint.prototype.next=function(){return this.group.next(this)}
Waypoint.prototype.previous=function(){return this.group.previous(this)}
Waypoint.invokeAll=function(method){var allWaypointsArray=[]
for(var waypointKey in allWaypoints){allWaypointsArray.push(allWaypoints[waypointKey])}
for(var i=0,end=allWaypointsArray.length;i<end;i++){allWaypointsArray[i][method]()}}
Waypoint.destroyAll=function(){Waypoint.invokeAll('destroy')}
Waypoint.disableAll=function(){Waypoint.invokeAll('disable')}
Waypoint.enableAll=function(){Waypoint.Context.refreshAll()
for(var waypointKey in allWaypoints){allWaypoints[waypointKey].enabled=!0}
return this}
Waypoint.refreshAll=function(){Waypoint.Context.refreshAll()}
Waypoint.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight}
Waypoint.viewportWidth=function(){return document.documentElement.clientWidth}
Waypoint.adapters=[]
Waypoint.defaults={context:window,continuous:!0,enabled:!0,group:'default',horizontal:!1,offset:0}
Waypoint.offsetAliases={'bottom-in-view':function(){return this.context.innerHeight()-this.adapter.outerHeight()},'right-in-view':function(){return this.context.innerWidth()-this.adapter.outerWidth()}}
window.Waypoint=Waypoint}());(function(){'use strict'
function requestAnimationFrameShim(callback){window.setTimeout(callback,1000/60)}
var keyCounter=0
var contexts={}
var Waypoint=window.Waypoint
var oldWindowLoad=window.onload
function Context(element){this.element=element
this.Adapter=Waypoint.Adapter
this.adapter=new this.Adapter(element)
this.key='waypoint-context-'+keyCounter
this.didScroll=!1
this.didResize=!1
this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()}
this.waypoints={vertical:{},horizontal:{}}
element.waypointContextKey=this.key
contexts[element.waypointContextKey]=this
keyCounter+=1
if(!Waypoint.windowContext){Waypoint.windowContext=!0
Waypoint.windowContext=new Context(window)}
this.createThrottledScrollHandler()
this.createThrottledResizeHandler()}
Context.prototype.add=function(waypoint){var axis=waypoint.options.horizontal?'horizontal':'vertical'
this.waypoints[axis][waypoint.key]=waypoint
this.refresh()}
Context.prototype.checkEmpty=function(){var horizontalEmpty=this.Adapter.isEmptyObject(this.waypoints.horizontal)
var verticalEmpty=this.Adapter.isEmptyObject(this.waypoints.vertical)
var isWindow=this.element==this.element.window
if(horizontalEmpty&&verticalEmpty&&!isWindow){this.adapter.off('.waypoints')
delete contexts[this.key]}}
Context.prototype.createThrottledResizeHandler=function(){var self=this
function resizeHandler(){self.handleResize()
self.didResize=!1}
this.adapter.on('resize.waypoints',function(){if(!self.didResize){self.didResize=!0
Waypoint.requestAnimationFrame(resizeHandler)}})}
Context.prototype.createThrottledScrollHandler=function(){var self=this
function scrollHandler(){self.handleScroll()
self.didScroll=!1}
this.adapter.on('scroll.waypoints',function(){if(!self.didScroll||Waypoint.isTouch){self.didScroll=!0
Waypoint.requestAnimationFrame(scrollHandler)}})}
Context.prototype.handleResize=function(){setTimeout(function(){Waypoint.Context.refreshAll()},150)}
Context.prototype.handleScroll=function(){var triggeredGroups={}
var axes={horizontal:{newScroll:0,oldScroll:0,forward:'right',backward:'left'},vertical:{newScroll:window.nectarDOMInfo.scrollTop,oldScroll:this.oldScroll.y,forward:'down',backward:'up'}}
for(var axisKey in axes){var axis=axes[axisKey]
var isForward=axis.newScroll>axis.oldScroll
var direction=isForward?axis.forward:axis.backward
for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey]
if(waypoint.triggerPoint===null){continue}
var wasBeforeTriggerPoint=axis.oldScroll<waypoint.triggerPoint
var nowAfterTriggerPoint=axis.newScroll>=waypoint.triggerPoint
var crossedForward=wasBeforeTriggerPoint&&nowAfterTriggerPoint
var crossedBackward=!wasBeforeTriggerPoint&&!nowAfterTriggerPoint
if(crossedForward||crossedBackward){waypoint.queueTrigger(direction)
triggeredGroups[waypoint.group.id]=waypoint.group}}}
for(var groupKey in triggeredGroups){triggeredGroups[groupKey].flushTriggers()}
this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}}
Context.prototype.innerHeight=function(){if(this.element==this.element.window){return Waypoint.viewportHeight()}
return this.adapter.innerHeight()}
Context.prototype.remove=function(waypoint){delete this.waypoints[waypoint.axis][waypoint.key]
this.checkEmpty()}
Context.prototype.innerWidth=function(){if(this.element==this.element.window){return Waypoint.viewportWidth()}
return this.adapter.innerWidth()}
Context.prototype.destroy=function(){var allWaypoints=[]
for(var axis in this.waypoints){for(var waypointKey in this.waypoints[axis]){allWaypoints.push(this.waypoints[axis][waypointKey])}}
for(var i=0,end=allWaypoints.length;i<end;i++){allWaypoints[i].destroy()}}
Context.prototype.refresh=function(){var isWindow=this.element==this.element.window
var contextOffset=isWindow?undefined:this.adapter.offset()
var triggeredGroups={}
var axes
this.handleScroll()
axes={horizontal:{contextOffset:isWindow?0:contextOffset.left,contextScroll:isWindow?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:'right',backward:'left',offsetProp:'left'},vertical:{contextOffset:isWindow?0:contextOffset.top,contextScroll:isWindow?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:'down',backward:'up',offsetProp:'top'}}
for(var axisKey in axes){var axis=axes[axisKey]
for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey]
var adjustment=waypoint.options.offset
var oldTriggerPoint=waypoint.triggerPoint
var elementOffset=0
var freshWaypoint=oldTriggerPoint==null
var contextModifier,wasBeforeScroll,nowAfterScroll
var triggeredBackward,triggeredForward
if(waypoint.element!==waypoint.element.window){elementOffset=waypoint.adapter.offset()[axis.offsetProp]}
if(typeof adjustment==='function'){adjustment=adjustment.apply(waypoint)}else if(typeof adjustment==='string'){adjustment=parseFloat(adjustment)
if(waypoint.options.offset.indexOf('%')>-1){adjustment=Math.ceil(axis.contextDimension*adjustment/100)}}
contextModifier=axis.contextScroll-axis.contextOffset
waypoint.triggerPoint=Math.floor(elementOffset+contextModifier-adjustment)
wasBeforeScroll=oldTriggerPoint<axis.oldScroll
nowAfterScroll=waypoint.triggerPoint>=axis.oldScroll
triggeredBackward=wasBeforeScroll&&nowAfterScroll
triggeredForward=!wasBeforeScroll&&!nowAfterScroll
if(!freshWaypoint&&triggeredBackward){waypoint.queueTrigger(axis.backward)
triggeredGroups[waypoint.group.id]=waypoint.group}else if(!freshWaypoint&&triggeredForward){waypoint.queueTrigger(axis.forward)
triggeredGroups[waypoint.group.id]=waypoint.group}else if(freshWaypoint&&axis.oldScroll>=waypoint.triggerPoint){waypoint.queueTrigger(axis.forward)
triggeredGroups[waypoint.group.id]=waypoint.group}}}
Waypoint.requestAnimationFrame(function(){for(var groupKey in triggeredGroups){triggeredGroups[groupKey].flushTriggers()}})
return this}
Context.findOrCreateByElement=function(element){return Context.findByElement(element)||new Context(element)}
Context.refreshAll=function(){for(var contextId in contexts){contexts[contextId].refresh()}}
Context.findByElement=function(element){return contexts[element.waypointContextKey]}
window.onload=function(){if(oldWindowLoad){oldWindowLoad()}
Context.refreshAll()}
Waypoint.requestAnimationFrame=function(callback){var requestFn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||requestAnimationFrameShim
requestFn.call(window,callback)}
Waypoint.Context=Context}());(function(){'use strict'
function byTriggerPoint(a,b){return a.triggerPoint-b.triggerPoint}
function byReverseTriggerPoint(a,b){return b.triggerPoint-a.triggerPoint}
var groups={vertical:{},horizontal:{}}
var Waypoint=window.Waypoint
function Group(options){this.name=options.name
this.axis=options.axis
this.id=this.name+'-'+this.axis
this.waypoints=[]
this.clearTriggerQueues()
groups[this.axis][this.name]=this}
Group.prototype.add=function(waypoint){this.waypoints.push(waypoint)}
Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}}
Group.prototype.flushTriggers=function(){for(var direction in this.triggerQueues){var waypoints=this.triggerQueues[direction]
var reverse=direction==='up'||direction==='left'
waypoints.sort(reverse?byReverseTriggerPoint:byTriggerPoint)
for(var i=0,end=waypoints.length;i<end;i+=1){var waypoint=waypoints[i]
if(waypoint.options.continuous||i===waypoints.length-1){waypoint.trigger([direction])}}}
this.clearTriggerQueues()}
Group.prototype.next=function(waypoint){this.waypoints.sort(byTriggerPoint)
var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
var isLast=index===this.waypoints.length-1
return isLast?null:this.waypoints[index+1]}
Group.prototype.previous=function(waypoint){this.waypoints.sort(byTriggerPoint)
var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
return index?this.waypoints[index-1]:null}
Group.prototype.queueTrigger=function(waypoint,direction){this.triggerQueues[direction].push(waypoint)}
Group.prototype.remove=function(waypoint){var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
if(index>-1){this.waypoints.splice(index,1)}}
Group.prototype.first=function(){return this.waypoints[0]}
Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]}
Group.findOrCreate=function(options){return groups[options.axis][options.name]||new Group(options)}
Waypoint.Group=Group}());(function(){'use strict'
var $=window.jQuery
var Waypoint=window.Waypoint
function JQueryAdapter(element){this.$element=$(element)}
$.each(['innerHeight','innerWidth','off','offset','on','outerHeight','outerWidth','scrollLeft','scrollTop'],function(i,method){JQueryAdapter.prototype[method]=function(){var args=Array.prototype.slice.call(arguments)
return this.$element[method].apply(this.$element,args)}})
$.each(['extend','inArray','isEmptyObject'],function(i,method){JQueryAdapter[method]=$[method]})
Waypoint.adapters.push({name:'jquery',Adapter:JQueryAdapter})
Waypoint.Adapter=JQueryAdapter}());(function(){'use strict'
var Waypoint=window.Waypoint
function createExtension(framework){return function(){var waypoints=[]
var overrides=arguments[0]
if(framework.isFunction(arguments[0])){overrides=framework.extend({},arguments[1])
overrides.handler=arguments[0]}
this.each(function(){var options=framework.extend({},overrides,{element:this})
if(typeof options.context==='string'){options.context=framework(this).closest(options.context)[0]}
waypoints.push(new Waypoint(options))})
return waypoints}}
if(window.jQuery){window.jQuery.fn.waypoint=createExtension(window.jQuery)}
if(window.Zepto){window.Zepto.fn.waypoint=createExtension(window.Zepto)}}());


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/plugins/salient-portfolio/js/third-party/imagesLoaded.min.js */
/*!
 * imagesLoaded PACKAGED v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

!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});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/hoverintent.js */
/*!
 * hoverIntent v1.9.0 // 2017.09.01 // jQuery v1.7.0+
 * http://briancherne.github.io/jquery-hoverIntent/
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007-2017 Brian Cherne
 */
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)},delay=function(ev,$el,s,out){return delete $el.data("hoverIntent")[s.id],out.apply($el[0],[ev])};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var handleHover=function(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){delay(ev,$el,state,cfg.out)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/jquery.fancybox.min.js */
// ==================================================
// fancyBox v3.5.7
//
// Licensed GPLv3 for open source use
// or fancyBox Commercial License for commercial use
//
// http://fancyapps.com/fancybox/
// Copyright 2019 fancyApps
//
// ==================================================
!function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),n.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"===n.type(o.opts.caption)&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio,select")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity,
"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(0))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isFunction(o)&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),n.isNumeric(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),n.isFunction(i)&&i(c))}),n.isNumeric(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},
tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/third-party/superfish.js */
(function($){"use strict";$(window).on('resize',function(){$('.sf-menu ul.tracked-pos').removeClass('tracked-pos')});var methods=(function(){var c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',menuArrowClass:'sf-arrows'},ios=(function(){var ios=/iPhone|iPad|iPod/i.test(navigator.userAgent);if(ios){$('html').css('cursor','pointer').on('click',$.noop)}
return ios})(),wp7=(function(){var style=document.documentElement.style;return('behavior' in style&&'fill' in style&&/iemobile/i.test(navigator.userAgent))})(),toggleMenuClasses=function($menu,o){var classes=c.menuClass;if(o.cssArrows){classes+=' '+c.menuArrowClass}
$menu.toggleClass(classes)},setPathToCurrent=function($menu,o){return $menu.find('li.'+o.pathClass).slice(0,o.pathLevels).addClass(o.hoverClass+' '+c.bcClass).filter(function(){return($(this).children(o.popUpSelector).hide().show().length)}).removeClass(o.pathClass)},toggleAnchorClass=function($li){$li.children('a').toggleClass(c.anchorClass)},toggleTouchAction=function($menu){var touchAction=$menu.css('ms-touch-action');touchAction=(touchAction==='pan-y')?'auto':'pan-y';$menu.css('ms-touch-action',touchAction)},applyHandlers=function($menu,o){var targets='li:has('+o.popUpSelector+')';if($.fn.hoverIntent&&!o.disableHI){$menu.hoverIntent(over,out,targets)}else{$menu.on('mouseenter.superfish',targets,over).on('mouseleave.superfish',targets,out)}
var touchevent='MSPointerDown.superfish';if(!ios){touchevent+=' touchend.superfish'}
if(wp7){touchevent+=' mousedown.superfish'}
$menu.on('focusin.superfish','li',over).on('focusout.superfish','li',out).on(touchevent,'a',o,touchHandler)},touchHandler=function(e){var $this=$(this),$ul=$this.siblings(e.data.popUpSelector);if($ul.length>0&&$ul.is(':hidden')){$this.one('click.superfish',!1);if(e.type==='MSPointerDown'){$this.trigger('focus')}else{$.proxy(over,$this.parent('li'))()}}},over=function(){var $this=$(this),o=getOptions($this);if($(this).parents('.megamenu').length>0)return;clearTimeout(o.sfTimer);$this.siblings().superfish('hide').end().superfish('show')},out=function(){var $this=$(this),o=getOptions($this);if(ios){$.proxy(close,$this,o)()}else{clearTimeout(o.sfTimer);o.sfTimer=setTimeout($.proxy(close,$this,o),o.delay)}},close=function(o){o.retainPath=($.inArray(this[0],o.$path)>-1);this.superfish('hide');if(!this.parents('.'+o.hoverClass).length){o.onIdle.call(getMenu(this));if(o.$path.length){$.proxy(over,o.$path)()}}},getMenu=function($el){return $el.closest('.'+c.menuClass)},getOptions=function($el){return getMenu($el).data('sf-options')};return{hide:function(instant){if(this.length){var $this=this,o=getOptions($this);if(!o){return this}
if($(this).hasClass('menu-item-over')&&$(this).hasClass('megamenu')){return!0}
var not=(o.retainPath===!0)?o.$path:'',$ul=$this.find('li.'+o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),speed=o.speedOut;if(instant){$ul.show();speed=0}
o.retainPath=!1;o.onBeforeHide.call($ul);if(o.dropdownStyle=='minimal'){var $this=$(this);o.onHide.call($this)}else{$ul.stop(!0,!0).animate(o.animationOut,speed,function(){var $this=$(this);o.onHide.call($this)})}
if($(this).parents('.megamenu').length>0)return;if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0){if($('#header-outer.scrolled-down').length==0&&$('#header-outer.small-nav').length==0&&$('#header-outer.detached').length==0&&$('#header-outer.fixed-menu').length==0){$('#header-outer').addClass('transparent')}
if($('#header-outer[data-permanent-transparent="1"][data-transparent-header="true"]').length>0){$('#header-outer').addClass('transparent')}}}
return this},show:function(){if($(this).parents('.megamenu').length>0)return;var o=getOptions(this);if(!o){return this}
var $this=this.addClass(o.hoverClass),$ul=$this.children(o.popUpSelector);if($('#header-outer[data-megamenu-rt="1"]').length>0&&$(this).hasClass('megamenu')&&!$(this).hasClass('width-75')&&!$(this).hasClass('width-50')&&$('#header-outer').attr('data-transparent-header')=='true'){$('#header-outer').addClass('no-transition');$('#header-outer').removeClass('transparent')}
o.onBeforeShow.call($ul);if(!$ul.hasClass('tracked-pos')&&!$($ul).parents('li').hasClass('megamenu')&&!$($ul).parents('ul').hasClass('sub-menu')&&$ul.offset()){$ul.addClass('temp-hidden-display');var docW=$("#top .container").width();var elm=$ul;var off=elm.offset();var l=off.left-($(window).width()-docW)/2;var w=elm.width();var isEntirelyVisible=(l+w<=$(window).width()-100);if(!isEntirelyVisible){$ul.parents('li').addClass('edge')}else{$ul.parents('li').removeClass('edge')}
$ul.removeClass('temp-hidden-display')}
if(o.dropdownStyle=='minimal'){o.onShow.call($ul)}else{$ul.stop(!0,!0).animate(o.animation,o.speed,function(){o.onShow.call($ul)})}
if(!$ul.hasClass('tracked-pos')){if($ul.length>0&&$ul.parents('.sub-menu').length>0&&$ul.parents('.sf-menu').length>0){if($ul.offset().left+$ul.outerWidth()>$(window).width()){$ul.addClass('on-left-side');$ul.find('ul').addClass('on-left-side')}}}
$ul.addClass('tracked-pos');return this},destroy:function(){return this.each(function(){var $this=$(this),o=$this.data('sf-options'),$hasPopUp;if(!o){return!1}
$hasPopUp=$this.find(o.popUpSelector).parent('li');clearTimeout(o.sfTimer);toggleMenuClasses($this,o);toggleAnchorClass($hasPopUp);toggleTouchAction($this);$this.off('.superfish').off('.hoverIntent');$hasPopUp.children(o.popUpSelector).attr('style',function(i,style){return style.replace(/display[^;]+;?/g,'')});o.$path.removeClass(o.hoverClass+' '+c.bcClass).addClass(o.pathClass);$this.find('.'+o.hoverClass).removeClass(o.hoverClass);o.onDestroy.call($this);$this.removeData('sf-options')})},init:function(op){return this.each(function(){var $this=$(this);if($this.data('sf-options')){return!1}
var o=$.extend({},$.fn.superfish.defaults,op),$hasPopUp=$this.find(o.popUpSelector).parent('li');o.$path=setPathToCurrent($this,o);$this.data('sf-options',o);toggleMenuClasses($this,o);toggleAnchorClass($hasPopUp);toggleTouchAction($this);applyHandlers($this,o);$hasPopUp.not('.'+c.bcClass).superfish('hide',!0);o.onInit.call(this)})}}})();$.fn.superfish=function(method,args){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{return $.error('Method '+method+' does not exist on jQuery.fn.superfish')}};$.fn.superfish.defaults={popUpSelector:'ul,.sf-mega',hoverClass:'sfHover',pathClass:'overrideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},animationOut:{opacity:'hide'},speed:'normal',speedOut:'fast',cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,dropdownStyle:($('body[data-dropdown-style="minimal"]').length>0)?'minimal':'classic'};$.fn.extend({hideSuperfishUl:methods.hide,showSuperfishUl:methods.show})})(jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/themes/salient/js/init.js */
(function($,window,document){"use strict";var $window=$(window),$body=$('body'),$offCanvasEl=$('#slide-out-widget-area'),$offCanvasBG=$('#slide-out-widget-area-bg'),$headerOuterEl=$('#header-outer'),$headerSecondaryEl=$('#header-secondary-outer'),$searchButtonEl=$('#header-outer #search-btn a'),$wpAdminBar=$('#wpadminbar'),$loadingScreenEl=$('#ajax-loading-screen'),$bodyBorderTop=$('.body-border-top'),$pageHeaderBG=$('#page-header-bg'),$footerOuterEl=$('#footer-outer'),$bodyBorderWidth=($('.body-border-right').length>0)?$('.body-border-right').width():0,$logoHeight=($headerOuterEl.is('[data-logo-height]'))?parseInt($headerOuterEl.attr('data-logo-height')):30,headerPadding=($headerOuterEl.is('[data-padding]'))?parseInt($headerOuterEl.attr('data-padding')):28,logoShrinkNum=($headerOuterEl.is('[data-shrink-num]'))?$headerOuterEl.attr('data-shrink-num'):6,condenseHeaderLayout=($headerOuterEl.is('[data-condense="true"]'))?!0:!1,usingLogoImage=($headerOuterEl.is('[data-using-logo="1"]'))?!0:!1,headerResize=($headerOuterEl.is('[data-header-resize="1"]'))?!0:!1,headerTransparent=($headerOuterEl.is('[data-transparent-header="true"]'))?!0:!1,headerMobileFixed=($headerOuterEl.is('[data-mobile-fixed="1"]'))?!0:!1,headerLayoutFormat=($body.is('[data-header-format]'))?$body.attr('data-header-format'):'default',headerHideUntilNeeded=($body.is('[data-hhun]'))?$body.attr('data-hhun'):'',$animationEasing=($body.is('[data-cae]')&&$body.attr('data-cae')!=='swing')?$body.attr('data-cae'):'easeOutCubic',$animationDuration=($body.is('[data-cad]'))?$body.attr('data-cad'):'650',bypassAnimations=(!$body.is('[data-m-animate="1"]')&&navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/))?!0:!1,$portfolio_containers=[],$svgIcons=[],$nectarCustomSliderRotate=[],$flickitySliders=[],flickityDragArr=[],viewIndicatorArr=[],iconMouseFollowArr=[],postGridImgMouseFollowArr=[],parallaxItemsArr=[],$fsProjectSliderArr=[],$wooFlickityCarousels=[],$liquidBG_EL=[],$testimonialSliders=[],$mouseParallaxScenes=[],$nectarMasonryBlogs=[],$standAnimatedColTimeout=[],$animatedSVGIconTimeout=[],$projectCarouselSliderArr=[],$nectarPostGridArr=[],$verticalScrollingTabs=[],$tabbedClickCount=0,$fullscreenSelector='',$fullscreenMarkupBool=!1,$bodyBorderHeaderColorMatch=!1,nectarBoxRoll={animating:'false',perspect:'not-rolled'},$nectarFullPage={$usingFullScreenRows:!1},$svgResizeTimeout,$bodyBorderSizeToRemove;if($bodyBorderTop.length>0){if($bodyBorderTop.css('background-color')=='#ffffff'&&$body.attr('data-header-color')=='light'||$bodyBorderTop.css('background-color')=='rgb(255, 255, 255)'&&$body.attr('data-header-color')=='light'||$bodyBorderTop.css('background-color')==$headerOuterEl.attr('data-user-set-bg')){$bodyBorderHeaderColorMatch=!0}}
var nectarDOMInfo={usingMobileBrowser:(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/))?!0:!1,usingFrontEndEditor:(typeof window.vc_iframe==='undefined')?!1:!0,getWindowSize:function(){nectarDOMInfo.winH=window.innerHeight;nectarDOMInfo.winW=window.innerWidth;nectarDOMInfo.adminBarHeight=($wpAdminBar.length>0)?$wpAdminBar.height():0;nectarDOMInfo.secondaryHeaderHeight=($headerSecondaryEl.length>0&&$headerSecondaryEl.css('display')!='none')?$headerSecondaryEl.outerHeight():0;nectarDOMInfo.footerOuterHeight=($footerOuterEl.length>0)?$footerOuterEl.outerHeight():0},scrollTop:0,clientX:0,clientY:0,scrollPosMouse:function(){return window.scrollY||$window.scrollTop()},scrollPosRAF:function(){nectarDOMInfo.scrollTop=window.scrollY||$window.scrollTop();requestAnimationFrame(nectarDOMInfo.scrollPosRAF)},bindEvents:function(){if(!nectarDOMInfo.usingMobileBrowser){$window.on('scroll',function(){nectarDOMInfo.scrollTop=nectarDOMInfo.scrollPosMouse()});document.addEventListener("mousemove",function(e){nectarDOMInfo.clientX=e.clientX;nectarDOMInfo.clientY=e.clientY})}else{requestAnimationFrame(nectarDOMInfo.scrollPosRAF)}
$window.on('resize',nectarDOMInfo.getWindowSize)},init:function(){$wpAdminBar=$('#wpadminbar');this.getWindowSize();this.scrollTop=this.scrollPosMouse();this.bindEvents();this.usingFrontEndEditor=(typeof window.vc_iframe==='undefined')?!1:!0}};window.nectarDOMInfo=nectarDOMInfo;var nectarState={materialOffCanvasOpen:!1,materialSearchOpen:!1,permanentTransHeader:($headerOuterEl.is('[data-permanent-transparent="1"]'))?!0:!1,animatedScrolling:!1,preventScroll:!1,mobileHeader:''}
function smartResizeInit(){fullWidthContentColumns();if(!nectarDOMInfo.usingMobileBrowser){parallaxRowsBGCals()}
headerSpace();OCM_overflowState();showOnLeftSubMenu();inlineMegaMenuPos()}
function orientationChangeInit(){parallaxRowsBGCals()}
function resizeInit(){fullWidthSections();fullWidthContentColumns();addOrRemoveSF();responsiveVideoIframes();if(!nectarDOMInfo.usingMobileBrowser){parallaxRowsBGCals()}}
function flexsliderInit(){$('.flex-gallery').each(function(){if(!$().flexslider){return}
var $that=$(this);imagesLoaded($(this),function(){var autorotate=($that.find('ul').is('[data-d-autorotate="true"]'))?!1:!0;$that.flexslider({animation:'fade',smoothHeight:!1,animationSpeed:500,useCSS:!1,touch:!0,slideshow:autorotate,});$('.flex-gallery .flex-direction-nav li a.flex-next').html('<i class="fa fa-angle-right"></i>');$('.flex-gallery .flex-direction-nav li a.flex-prev').html('<i class="fa fa-angle-left"></i>')})})}
function NectarIconMouseFollow($el,iconType){this.lastX=nectarDOMInfo.clientX;this.lastY=nectarDOMInfo.clientY;this.$el=$el;this.iconType=iconType;this.timeout=!1;this.overEl=!1;this.initialCalc=!1;this.bgElSelector='';this.$dragEl='';this.$viewEl='';this.$closeEl='';this.lerpDamp=0.18;this.createMarkup();this.setup();this.mouseBind()}
NectarIconMouseFollow.prototype.setup=function(){if(this.iconType==='post-grid-images'){this.viewportTracking()}};NectarIconMouseFollow.prototype.viewportTracking=function(){var that=this;if('IntersectionObserver' in window){var options={rootMargin:'0px',threshold:0}
this.observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){that.$el.addClass('active');that.$el.find(that.bgElSelector).css('visibility','visible');that.activeViewRAF=!0}else{that.$el.find(that.bgElSelector).css('visibility','hidden');that.activeViewRAF=!1}})},options);this.observer.observe(this.$el[0])}};NectarIconMouseFollow.prototype.createMarkup=function(){var that=this;if(this.iconType==='horizontal-movement'){if($('.nectar-drag-indicator').length==0){var $usingBoxedClass=($('body > #boxed').length>0)?' in-boxed':'';$('body').append('<div class="nectar-drag-indicator'+$usingBoxedClass+'"><span><i class="fa fa-angle-left"></i><i class="fa fa-angle-right"></i></span></div>');this.$dragEl=$('.nectar-drag-indicator');this.dragRAF()}else{this.$dragEl=$('.nectar-drag-indicator')}}
if(this.iconType==='view-indicator'){this.activeViewRAF=!0;if($('.nectar-view-indicator').length==0){var $usingBoxedClass=($('body > #boxed').length>0)?' in-boxed':'';$('body').append('<div class="nectar-view-indicator'+$usingBoxedClass+'"><div class="color-circle"></div><span></span></div>');if(this.iconType!=='gallery-zoom-indicator'){$('.nectar-view-indicator span').text($('.nectar-post-grid').attr('data-indicator-text'))}
this.$viewEl=$('.nectar-view-indicator');setTimeout(function(){that.lastY=nectarDOMInfo.clientY;that.lastX=nectarDOMInfo.clientX;that.viewRAF()},100)}else{this.$viewEl=$('.nectar-view-indicator')}}
if(this.iconType==='close-indicator'){if($('.nectar-view-indicator').length==0){var $usingBoxedClass=($('body > #boxed').length>0)?' in-boxed':'';$('body').append('<div class="nectar-close-indicator'+$usingBoxedClass+'"><div class="inner"></div></div>');this.$closeEl=$('.nectar-close-indicator');this.closeRAF()}else{this.$closeEl=$('.nectar-close-indicator')}}
if(this.iconType==='post-grid-images'){this.activeViewRAF=!0;this.bgElSelector=(!this.$el.hasClass('nectar-category-grid'))?'.nectar-post-grid-item-bg-wrap':'.nectar-category-grid-item-bg';if(!this.$el.hasClass('mouse-move-bound')){this.$viewEl=this.$el.find(this.bgElSelector);this.$el.addClass('mouse-move-bound');this.viewRAF()}else{this.$viewEl=this.$el.find(this.bgElSelector);this.viewRAF()}}}
NectarIconMouseFollow.prototype.mouseBind=function(){var that=this;if(this.iconType==='horizontal-movement'){that.$el.find('.flickity-viewport').on('mouseenter',function(){that.$dragEl.addClass('visible');var $iconColor=(that.$el.is('[data-touch-icon-color]'))?'color-'+that.$el.attr('data-touch-icon-color'):'';that.$dragEl.removeClass('color-dark').removeClass('color-light').removeClass('color-default');that.$dragEl.addClass($iconColor)});that.$el.find('.flickity-viewport').on('mouseleave',function(){that.$dragEl.removeClass('visible')});that.$el.find('.product-add-to-cart a').on('mouseenter',function(){that.$dragEl.removeClass('visible')});that.$el.find('.product-add-to-cart a').on('mouseleave',function(){that.$dragEl.addClass('visible')})}else if(this.iconType==='close-indicator'){$('body').on('click','.team-member[data-style*="bio_fullscreen"]',function(){if($('.nectar_team_member_overlay:not(.open)').length>0){return}
that.$closeEl.addClass('visible');that.$closeEl.find('.inner').addClass('visible')});$('body').on('click','.nectar_team_member_overlay:not(.animating)',function(){that.$closeEl.removeClass('visible');that.$closeEl.find('.inner').removeClass('visible')});$('body').on('mouseenter','.nectar_team_member_overlay .bio-inner a',function(){that.$closeEl.removeClass('visible')});$('body').on('mouseleave','.nectar_team_member_overlay .bio-inner a',function(){that.$closeEl.addClass('visible')})}else if(this.iconType==='view-indicator'){var $color=that.$el.attr('data-indicator-color');var $style=that.$el.attr('data-indicator-style');that.$el.find('.nectar-post-grid-item').off();that.$el.find('.nectar-post-grid-item').on('mouseenter',function(){that.$viewEl.addClass('visible');that.$viewEl.attr('class',function(i,c){return c.replace(/(^|\s)style-\S+/g,'')});that.$viewEl.addClass('style-'+$style);if($style!=='see-through'){that.$viewEl.find('.color-circle').css('background-color',$color)}
clearTimeout(that.timeout)});that.$el.find('.nectar-post-grid-item').on('mouseleave',function(){that.timeout=setTimeout(function(){that.$viewEl.removeClass('visible')},100)});that.$el.find('.nectar-post-grid-item .meta-category a').on('mouseenter',function(){that.$viewEl.removeClass('visible')});that.$el.find('.nectar-post-grid-item .meta-category a').on('mouseleave',function(){that.$viewEl.addClass('visible')})}else if(this.iconType==='post-grid-images'){that.$el.on('mouseenter',function(){$(this).addClass('mouse-over')});that.$el.on('mouseleave',function(){$(this).removeClass('mouse-over')})}};NectarIconMouseFollow.prototype.dragRAF=function(){this.lastY=linearInterpolate(this.lastY,nectarDOMInfo.clientY,this.lerpDamp);this.lastX=linearInterpolate(this.lastX,nectarDOMInfo.clientX,this.lerpDamp);this.$dragEl[0].style.transform='translateX('+this.lastX+'px) translateY('+this.lastY+'px)';requestAnimationFrame(this.dragRAF.bind(this))};NectarIconMouseFollow.prototype.viewRAF=function(){this.lastY=linearInterpolate(this.lastY,nectarDOMInfo.clientY,this.lerpDamp);this.lastX=linearInterpolate(this.lastX,nectarDOMInfo.clientX,this.lerpDamp);if(this.activeViewRAF){for(var i=0;i<this.$viewEl.length;i++){this.$viewEl[i].style.transform='translateX('+this.lastX+'px) translateY('+this.lastY+'px)'}}
requestAnimationFrame(this.viewRAF.bind(this))};NectarIconMouseFollow.prototype.closeRAF=function(){this.lastY=linearInterpolate(this.lastY,nectarDOMInfo.clientY,this.lerpDamp);this.lastX=linearInterpolate(this.lastX,nectarDOMInfo.clientX,this.lerpDamp);this.$closeEl.css({'transform':'translateX('+this.lastX+'px) translateY('+this.lastY+'px)'});requestAnimationFrame(this.closeRAF.bind(this))};function flickityLazyCalcs(){$('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').each(function(){$(this).css({'height':'','width':''});var heightAttr=parseInt($(this).find('img').attr('height'));var widthAttr=parseInt($(this).find('img').attr('width'));var dimensions=calculateAspectRatio(widthAttr,heightAttr,2000,parseInt($(this).find('img').height()));var captionHeight=($(this).find('.item-meta').length>0)?$(this).find('.item-meta').outerHeight():0;$(this).css({'height':(dimensions.height+captionHeight)+'px','width':dimensions.width+'px'})})}
function flickityLazyInit(){if($('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').length>0){flickityLazyCalcs();$window.on('smartresize',flickityLazyCalcs)}}
function flickityInit(){if($('.nectar-flickity:not(.masonry)').length==0){return!1}
$flickitySliders=[];flickityDragArr=[];$('.nectar-flickity:not(.masonry)').each(function(i){$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});$(this).addClass('instance-'+i);var $freeScrollBool=($(this).is('[data-free-scroll]')&&$(this).attr('data-free-scroll')=='true')?!0:!1,$groupCellsBool=!0,$flickContainBool=!0,$flcikAttr=0.025,$paginationBool=!1,$nextPrevArrowBool=!0,$setGallerySizeBool=!0,$imagesLoaded=!0,$flickCellAlign='center';if($(this).is('[data-format="fixed_text_content_fullwidth"]')){$flickCellAlign='left';$groupCellsBool=!1;$flickContainBool=!1;$flcikAttr=0.02;if($(this).parent().is('[data-alignment="right"]')){$flickCellAlign='right'}}
if($freeScrollBool==!0){$groupCellsBool=!1}
if($(this).attr('data-controls').length>0&&$(this).attr('data-controls')=='next_prev_arrows'||$(this).attr('data-controls').length>0&&$(this).attr('data-controls')=='next_prev_arrows_overlaid'){$paginationBool=!1;$nextPrevArrowBool=!0}else{$paginationBool=!0;$nextPrevArrowBool=!1}
if($(this).attr('data-controls').length>0&&$(this).attr('data-controls')=='none'){$paginationBool=!1;$nextPrevArrowBool=!1}
var $flickity_autoplay=!1;var $flickity_stored_autoplay=!1;if($(this).is('[data-autoplay]')&&$(this).attr('data-autoplay')=='true'){$flickity_autoplay=!0;$flickity_stored_autoplay=5000;if($(this).is('[data-autoplay-dur]')&&$(this).attr('data-autoplay-dur').length>0){if(parseInt($(this).attr('data-autoplay-dur'))>100&&parseInt($(this).attr('data-autoplay-dur'))<30000){$flickity_autoplay=parseInt($(this).attr('data-autoplay-dur'));$flickity_stored_autoplay=$flickity_autoplay}}}
var $that=$(this);var $frontEndEditorDrag=($('body.vc_editor').length>0)?!1:!0;var $frontEndEditorPause=($('body.vc_editor').length>0)?!0:!1;var $arrowShape='';var $wrapAround=($(this).is('[data-wrap]')&&$(this).attr('data-wrap')=='no-wrap')?!1:!0;if($(this).is('[data-centered-cells="true"]')){$groupCellsBool=1}
var $flickity_adaptive_height=!1;if($(this).is('[data-adaptive-height="true"]')){$flickity_adaptive_height=!0}
var $lazyload=($(this).find('img[data-flickity-lazyload]').length>0)?1:!1;if($(this).find('img[data-flickity-lazyload]').length>0&&$(this).is('[data-overflow="visible"]')&&$(this).is('[data-wrap="no-wrap"]')){$lazyload=2}
var $flickity_rtl=($body.hasClass('rtl'))?!0:!1;if($(this).attr('data-controls').length>0&&$(this).attr('data-controls')=='next_prev_arrows_overlaid'||$(this).attr('data-controls').length>0&&$(this).attr('data-controls')=='touch_total'||$(this).hasClass('nectar-simple-slider')){$arrowShape={x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}else{$arrowShape={x0:20,x1:70,y1:30,x2:70,y2:25,x3:70}}
if($(this).is('[data-format="fixed_text_content_fullwidth"]')&&$(this).parents('.full-width-content.wpb_row').length>0){$(this).parents('.full-width-content.wpb_row').removeClass('full-width-content').addClass('full-width-section')}
if($(this).hasClass('nectar-simple-slider')){$flickity_adaptive_height=!1;$paginationBool=!1;$nextPrevArrowBool=!1;$setGallerySizeBool=!1;$wrapAround=!1;$imagesLoaded=!1;$flcikAttr=0.022;if($(this).attr('data-pagination')=='true'){$paginationBool=!0}
if($(this).attr('data-wrap')=='true'){$wrapAround=!0}}
$flickitySliders[i]=new Flickity('.nectar-flickity.instance-'+i,{setGallerySize:$setGallerySizeBool,contain:$flickContainBool,draggable:$frontEndEditorDrag,lazyLoad:$lazyload,imagesLoaded:$imagesLoaded,percentPosition:!0,adaptiveHeight:$flickity_adaptive_height,cellAlign:$flickCellAlign,groupCells:$groupCellsBool,prevNextButtons:$nextPrevArrowBool,freeScroll:$freeScrollBool,pageDots:$paginationBool,resize:!0,selectedAttraction:$flcikAttr,autoPlay:$flickity_autoplay,rightToLeft:$flickity_rtl,pauseAutoPlayOnHover:$frontEndEditorPause,wrapAround:$wrapAround,accessibility:!1,arrowShape:$arrowShape});if($that.attr('data-arrows')=='true'){if($that.find('.flickity-prev-next-button').length==0){$that.append('<button class="flickity-button flickity-prev-next-button previous" aria-label="'+nectar_front_i18n.previous+'" type="button"><svg class="flickity-button-icon" viewBox="0 0 100 100"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z" class="arrow"></path></svg></button>');$that.append('<button class="flickity-button flickity-prev-next-button next" aria-label="'+nectar_front_i18n.next+'" type="button"><svg class="flickity-button-icon" viewBox="0 0 100 100"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z" class="arrow" transform="translate(100, 100) rotate(180) "></path></svg></button>');$that.find('.flickity-prev-next-button.previous').on('click',function(){if($wrapAround===!1&&$flickitySliders[i].selectedIndex==0&&($flickitySliders[i].isAnimating==!1||typeof $flickitySliders[i].isAnimating==='undefined')){var currentX=$flickitySliders[i].x;anime({targets:$flickitySliders[i],x:currentX+100,duration:350,easing:'easeOutCubic'});$flickitySliders[i].startAnimation()}
$flickitySliders[i].previous()});$that.find('.flickity-prev-next-button.next').on('click',function(){if($wrapAround===!1&&$flickitySliders[i].selectedIndex==$flickitySliders[i].slides.length-1&&$flickitySliders[i].isAnimating==!1){var currentX=$flickitySliders[i].x;anime({targets:$flickitySliders[i],x:currentX-100,duration:350,easing:'easeOutCubic'});$flickitySliders[i].startAnimation()}
$flickitySliders[i].next()})}}
if($(this).hasClass('nectar-simple-slider')&&$that.find('.bg-layer[data-nectar-img-src]').length>0){var waypoint=new Waypoint({element:$that,handler:function(){$that.find('.bg-layer[data-nectar-img-src]').each(function(){var entry=$(this)[0];var imgSrc=entry.getAttribute('data-nectar-img-src');entry.style.backgroundImage="url('"+imgSrc+"')";entry.classList.add('loaded')});waypoint.destroy()},offset:'95%'})}
if($(this).hasClass('nectar-simple-slider')&&$(this).is('[data-parallax="true"]')){var slides=$(this).find('.cell');var j=i;if($wrapAround===!0){$that.find('.flickity-prev-next-button').on('click',function(){$that.addClass('disabled-nav');setTimeout(function(){$that.removeClass('disabled-nav')},500)})}
$flickitySliders[i].on('scroll',function(){$.each($flickitySliders[i].slides,function(i,slide){var imageBG=slides[i].querySelector('.bg-layer');var content=slides[i].querySelector('.inner');var flkty=$flickitySliders[j];var x=0;if(0===i){x=Math.abs(flkty.x)>flkty.slidesWidth?(flkty.slidesWidth+flkty.x+flkty.slides[flkty.slides.length-1].outerWidth+slide.target):(slide.target+flkty.x)}else if(i===flkty.slides.length-1){x=Math.abs(flkty.x)+flkty.slides[i].outerWidth<flkty.slidesWidth?(slide.target-flkty.slidesWidth+flkty.x-flkty.slides[i].outerWidth):(slide.target+flkty.x)}else{x=slide.target+flkty.x}
imageBG.style.transform='translate3d('+x*(-1/2)+'px,0,0)';content.style.transform='translate3d('+x*(-1/4)+'px,0,0)'})})}
if($(this).hasClass('nectar-simple-slider')&&!0==$paginationBool){$(this).find('.flickity-page-dots li').append('<svg width="65px" height="65px" viewBox="0 0 72 72" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><circle class="time" stroke-width="5" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle></svg>');if($flickity_stored_autoplay){$(this).find('.flickity-page-dots li circle.time').css('transition','stroke-dashoffset '+(parseInt($flickity_stored_autoplay)+100)+'ms linear, stroke 0.2s ease');$(this).find('.flickity-page-dots li:first').addClass('no-trans');setTimeout(function(){$that.find('.flickity-page-dots li:first').removeClass('no-trans')},60);$flickitySliders[i].on('select',function(event){$flickitySliders[i].playPlayer()});$flickitySliders[i].on('dragEnd',function(event){$flickitySliders[i].playPlayer();$that.find('.flickity-page-dots .is-selected').removeClass('no-trans')});$flickitySliders[i].on('dragStart',function(event){$that.find('.flickity-page-dots .is-selected').addClass('no-trans')})}}
if($(this).is('[data-controls="touch_total"]')){if($(this).find('.visualized-total').length==0){if($(this).parents('.full-width-content').length>0&&$(this).parents('.vc_col-sm-12').length>0){$(this).append('<div class="container normal-container"><div class="visualized-total"><span></span></div></div>')}else{$(this).append('<div class="visualized-total"><span></span></div>')}}
if(!nectarDOMInfo.usingMobileBrowser){flickityDragArr[i]=new NectarIconMouseFollow($(this),'horizontal-movement');$flickitySliders[i].on('dragMove',function(event,pointer){nectarDOMInfo.clientY=pointer.clientY;nectarDOMInfo.clientX=pointer.clientX});$flickitySliders[i].on('pointerDown',function(event,pointer){$('.nectar-drag-indicator').addClass('pointer-down')});$flickitySliders[i].on('pointerUp',function(event,pointer){$('.nectar-drag-indicator').removeClass('pointer-down')})}
var $totalImgs=$(this).find('.flickity-page-dots li').length;var $totalIndicator=$(this).find('.visualized-total span');var $totalPosition=1;var $totalWidth=$(this).find('.visualized-total').width();$window.on('smartresize',function(){setTimeout(function(){$totalImgs=$that.find('.flickity-page-dots li').length;$totalWidth=$that.find('.visualized-total').width();$totalPosition=($totalWidth/$totalImgs)*$that.find('.flickity-page-dots .is-selected').index();$totalIndicator.css('width',100/$totalImgs+'%');$totalIndicator.css({'x':$totalPosition+'px'})},200)});setTimeout(function(){$totalImgs=$that.find('.flickity-page-dots li').length;$totalWidth=$that.find('.visualized-total').width();$totalIndicator.css('width',100/$totalImgs+'%')},200);$flickitySliders[i].on('change',function(event,progress){$totalPosition=($totalWidth/$totalImgs)*$that.find('.flickity-page-dots .is-selected').index();$totalIndicator.css({'x':$totalPosition+'px'})})}
if($(this).is('[data-format="fixed_text_content_fullwidth"]')&&!nectarDOMInfo.usingFrontEndEditor){var $onMobileBrowser=nectarDOMInfo.usingMobileBrowser;$flickitySliders[i].on('scroll',function(){if($onMobileBrowser){return}
var $flkSlideWidth=$that.find('.cell').outerWidth()+25,$leftHeaderSize=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?275:0,$extraWindowSpace=(($window.width()+$leftHeaderSize)-$that.parents('.main-content').width())/2;$extraWindowSpace+=parseInt($that.css('margin-left'))+2;$flickitySliders[i].slides.forEach(function(slide,j){var $scaleAmt=1,$translateXAmt=0,$rotateAmt=0,$slideZIndex=10,$opacityAmt=1,$slideOffset=$(slide.cells[0].element).offset().left,flkInstanceSlide=$('.nectar-flickity.instance-'+i+' .cell:nth-child('+(j+1)+')');if($slideOffset-$extraWindowSpace<0&&$slideOffset-$extraWindowSpace>$flkSlideWidth*-1){$scaleAmt=1+(($slideOffset-$extraWindowSpace)/1500);$opacityAmt=1+(($slideOffset-$extraWindowSpace+70)/550);$translateXAmt=(($slideOffset-$extraWindowSpace))*-1;$rotateAmt=(($slideOffset-$extraWindowSpace)/25)*-1}else{$scaleAmt=1;$opacityAmt=1;$translateXAmt=0;$rotateAmt=0}
if($slideOffset+5-$extraWindowSpace<0&&$slideOffset-$extraWindowSpace>$flkSlideWidth*-1){$slideZIndex=5}else{$slideZIndex=10}
flkInstanceSlide.css({'z-index':$slideZIndex});flkInstanceSlide.find('.inner-wrap-outer').css({'transform':'perspective(800px) translateX('+$translateXAmt+'px) rotateY('+$rotateAmt+'deg) translateZ(0)','opacity':$opacityAmt});flkInstanceSlide.find('.inner-wrap').css({'transform':'scale('+$scaleAmt+') translateZ(0)'})})})}
var $removeHiddenTimeout;var $removeMovingTimeout;$flickitySliders[i].on('dragStart',function(){clearTimeout($removeHiddenTimeout);clearTimeout($removeMovingTimeout);$that.addClass('is-dragging');$that.addClass('is-moving');$that.find('.flickity-prev-next-button').addClass('hidden')});$flickitySliders[i].on('dragEnd',function(){$that.removeClass('is-dragging');$removeHiddenTimeout=setTimeout(function(){$that.removeClass('is-moving');$that.find('.flickity-prev-next-button').removeClass('hidden')},600);$removeMovingTimeout=setTimeout(function(){$that.removeClass('is-moving')},300)});$('.flickity-prev-next-button').on('click',function(){clearTimeout($removeHiddenTimeout);$(this).parents('.nectar-flickity').find('.flickity-prev-next-button').addClass('hidden');$removeHiddenTimeout=setTimeout(function(){$that.find('.flickity-prev-next-button').removeClass('hidden')},600)});if($that.hasClass('nectar-carousel')){imagesLoaded($that,function(){nectarCarouselFlkEH($that)})}});var $usingNectarCarouselFlk=($('.nectar-carousel.nectar-flickity:not(.masonry)').length>0)?!0:!1;if($usingNectarCarouselFlk){if(!nectarDOMInfo.usingMobileBrowser){$window.on('resize',setNectarCarouselFlkEH)}else{window.addEventListener("orientationchange",setNectarCarouselFlkEH)}}
var handleCaptions=($('.wpb_gallery_slidesflickity_static_height_style .item-meta').length>0)?!0:!1;if(handleCaptions){$window.on('resize',setNectarFlickityCaptions);setNectarFlickityCaptions()}}
function setNectarCarouselFlkEH(){$('.nectar-carousel.nectar-flickity:not(.masonry)').each(function(){nectarCarouselFlkEH($(this))})}
function setNectarFlickityCaptions(){$('.wpb_gallery_slidesflickity_static_height_style .item-meta').each(function(){$(this).css({'width':$(this).parent().find('img').width()})})}
function nectarCarouselFlkEH($slider_instance){var $tallestSlideCol=0;$slider_instance.find('.flickity-slider > .cell').css('height','auto');$slider_instance.find('.flickity-slider > .cell').each(function(){if($(this).height()>$tallestSlideCol){$tallestSlideCol=$(this).height()}});if($tallestSlideCol<10){$tallestSlideCol='auto'}
$slider_instance.find('.flickity-slider > .cell').css('height',$tallestSlideCol+'px')}
function twentytwentyInit(){$('.twentytwenty-container').each(function(){var $that=$(this);if($that.find('.twentytwenty-handle').length==0){$(this).imagesLoaded(function(){$that.twentytwenty()})}})}
function initSF(){addOrRemoveSF();if($('body[data-header-format="left-header"]').length==0){var $disableHI;if(!($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0)){$disableHI=!0}else{$disableHI=!1}
$(".sf-menu:not(.buttons)").superfish({delay:500,speed:'fast',disableHI:$disableHI,speedOut:'fast',animation:{opacity:'show'}});$('#header-outer .sf-menu.buttons li.menu-item').on('mouseover',function(){$(this).addClass('sfHover')});$('#header-outer .sf-menu.buttons li.menu-item').on('mouseleave',function(){var $that=$(this);if($that.is('.menu-item-has-children')){setTimeout(function(){if(!$that.is(':hover')){$that.removeClass('sfHover')}},200)}else{$that.removeClass('sfHover')}});$('#header-secondary-outer li.megamenu:not(.nectar-megamenu-menu-item), #header-outer:not([data-format="menu-left-aligned"]):not([data-format="centered-logo-between-menu-alt"]) .sf-menu.buttons li.megamenu').removeClass('nectar-megamenu-menu-item').removeClass('megamenu');$('#header-outer[data-format="centered-menu-bottom-bar"] .right-side .sf-menu li.nectar-megamenu-menu-item').removeClass('align-left').removeClass('align-middle').addClass('align-right');$('#header-outer[data-format="centered-menu-bottom-bar"] .left-side .sf-menu li.nectar-megamenu-menu-item').removeClass('align-right').removeClass('align-middle').addClass('align-left');$('#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul').each(function(){if($(this).offset().left+$(this).outerWidth()>$window.width()){$(this).addClass('on-left-side');$(this).find('ul').addClass('on-left-side')}});$('body:not([data-header-format="left-header"]) header#top nav > ul > li.megamenu > ul > li > ul > li:has("> ul")').addClass('has-ul');if($('body[data-megamenu-width="full-width"]').length>0&&$('ul.sub-menu').length>0){megamenuFullwidth();$window.on('smartresize',megamenuFullwidth);$('header#top nav > ul > li.megamenu > .sub-menu').css('box-sizing','content-box')}
$('header#top nav > ul.sf-menu > li.menu-item').on('mouseenter',function(){$(this).addClass('menu-item-over')});$('header#top nav > ul.sf-menu > li.menu-item').on('mouseleave',function(){$(this).removeClass('menu-item-over')});$('#header-outer nav .megamenu .sub-menu a.sf-with-ul .sf-sub-indicator, #header-outer .megamenu .sub-menu a .sf-sub-indicator').remove();$('.sf-menu > .nectar-megamenu-menu-item > a .menu-title-text .megamenu-bg-lazy[data-bg-src]').each(function(){var parentLI=$(this).parents('.nectar-megamenu-menu-item');var bgImgSrc=$(this).attr('data-bg-src');var bgImgAlign=$(this).attr('data-align').replace('_',' ');parentLI.find('> ul').css({'background-position':bgImgAlign,'background-image':'url("'+bgImgSrc+'")'});$(this).remove()});$('.sf-menu > .nectar-megamenu-menu-item > ul > li > a .menu-title-text .megamenu-col-bg-lazy[data-bg-src]').each(function(){var parentLI=$(this).closest('.menu-item');var bgImgSrc=$(this).attr('data-bg-src');var bgImgAlign=$(this).attr('data-align').replace('_',' ');parentLI.css({'background-position':bgImgAlign,'background-image':'url("'+bgImgSrc+'")'});$(this).remove()});$('#header-outer nav > ul > li.megamenu > ul.sub-menu > li > a').each(function(){if($(this).text()=='-'||$(this).text()=='–'||$(this).parent().hasClass('hide-title')){$(this).remove()}})}
if('IntersectionObserver' in window){var options={rootMargin:'0px',threshold:0}
var menuObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){var lazyItem=entry.target;lazyItem.classList.add('loaded');var lazySrc=lazyItem.getAttribute('data-menu-img-src');if(lazySrc){lazyItem.setAttribute('src',lazySrc);lazyItem.removeAttribute('data-menu-img-src')}
menuObserver.unobserve(lazyItem)}})},options);var lazyMenuIcons=[].slice.call(document.querySelectorAll('.nectar-menu-icon-img[data-menu-img-src], #header-outer .nectar-ext-menu-item .image-layer'));lazyMenuIcons.forEach(function(lazyItem){menuObserver.observe(lazyItem)})}else{$('.sf-menu .nectar-menu-icon-img[data-menu-img-src]').each(function(){$(this).attr('src',$(this).attr('data-menu-img-src'));$(this).removeAttr('data-menu-img-src')});$('.nectar-ext-menu-item .image-layer').addClass('loaded')}
$('.sub-menu .nectar-menu-icon, .sub-menu .nectar-menu-icon-img, .off-canvas-menu-container > ul > li > a .nectar-menu-icon, .off-canvas-menu-container > ul > li > a .nectar-menu-icon-img').each(function(){var $parent=$(this).parent();var $icon=$(this).detach();if($parent.parents('.nectar-ext-menu-item').length==0){$parent.wrapInner('<span class="nectar-menu-icon-text" />');$parent.addClass('nectar-menu-item-with-icon')}
$parent.prepend($icon)});$('#slide-out-widget-area:not(.fullscreen) .nectar-menu-label').each(function(){if($(this).parents('.nectar-ext-menu-item').length==0){$(this).closest('a').addClass('nectar-menu-item-with-icon')}});if(window.nectarOptions&&window.nectarOptions.ocm_remove_ext_menu_items&&window.nectarOptions.ocm_remove_ext_menu_items=='remove_images'){$('.off-canvas-menu-container .title[class*="inherit-h"], #mobile-menu .title[class*="inherit-h"]').removeClass(function(index,className){return(className.match(/(^|\s)inherit-h\S+/g)||[]).join(' ')});$('.off-canvas-menu-container .nectar-ext-menu-item .image-layer-outer, #mobile-menu .nectar-ext-menu-item .image-layer-outer').remove();$('.off-canvas-menu-container .nectar-ext-menu-item .menu-item-desc').removeClass('menu-item-desc').addClass('item_desc');$('.off-canvas-menu-container .nectar-ext-menu-item .inner-content > .title').each(function(){if($(this).find('.menu-title-text').length==0){$(this).removeClass('title').addClass('menu-title-text')}})}
$('.off-canvas-menu-container .item_desc').each(function(){var $parent=$(this).parents('.menu-item');$parent.addClass('nectar-extra-menu-item-spacing')});$('.off-canvas-menu-container .nectar-menu-icon, .off-canvas-menu-container .nectar-menu-icon-img').each(function(){var $parent=$(this).parent();if($parent.find('.item_desc').length>0||$parent.find('.nav_desc').length>0){$parent.addClass('nectar-menu-item-with-desc')}});if(nectarDOMInfo.usingMobileBrowser&&$('#header-outer[data-remove-fixed="1"]').length==0){$body.attr('data-hhun','0')}
inlineMegaMenuPos()}
function inlineMegaMenuPos(){$('nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-left:not(.width-100)').each(function(){var $parentEl=$(this);var $headerContainer=$('header#top > .container > .row');var $submenu=$(this).find('> ul.sub-menu');if($parentEl){if($submenu.width()+$parentEl.offset().left>nectarDOMInfo.winW){$(this).addClass('align-middle');return!0}
$(this).find('> ul.sub-menu').css({'right':$headerContainer.width()-(($parentEl.offset().left+$parentEl.width())-$headerContainer.offset().left)-$(this).find('> ul.sub-menu').width()+$parentEl.width(),'left':'auto'});$(this).removeClass('align-middle')}});$('nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-right:not(.width-100)').each(function(){var $parentEl=$(this);var $headerContainer=$('header#top > .container > .row');var $submenu=$(this).find('> ul.sub-menu');if($parentEl){if(($parentEl.offset().left+$parentEl.width()-$submenu.width())<0){$(this).addClass('align-middle');return!0}
$(this).find('> ul.sub-menu').css({'right':$headerContainer.width()-(($parentEl.offset().left+$parentEl.width())-$headerContainer.offset().left),'left':'auto'});$(this).removeClass('align-middle')}});$('nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-middle:not(.width-100)').each(function(){var $parentEl=$(this);var $headerContainer=$('header#top > .container > .row');var $submenu=$(this).find('> ul.sub-menu');if($parentEl){var headerContainerW=$headerContainer.width(),headerContainerOffsetL=$headerContainer.offset().left,menuItemOffsetL=$parentEl.offset().left,menuItemW=$parentEl.width(),megaMenuW=$submenu.width();$submenu.css({'right':headerContainerW-((menuItemOffsetL+menuItemW)-headerContainerOffsetL)-megaMenuW/2+menuItemW/2,'left':'auto'});var megaMenuOffset=$submenu.offset();if(megaMenuOffset.left<0){$submenu.css({'right':'auto','left':'0px'})}else if(megaMenuOffset.left+megaMenuW>nectarDOMInfo.winW){$submenu.css({'right':'0px','left':'auto'})}}})}
function megamenuFullwidth(){var $windowWidth=$window.width();var $headerContainerWidth=$('header#top > .container').width();$('header#top nav:not(.left-side):not(.right-side) > ul > li.megamenu:not(.width-50):not(.width-75) > .sub-menu').css({'padding-left':($windowWidth-$headerContainerWidth)/2+'px','padding-right':($windowWidth+2-$headerContainerWidth)/2+'px','width':$headerContainerWidth,'left':'-'+($windowWidth-$headerContainerWidth)/2+'px'})}
function addOrRemoveSF(){if(nectarDOMInfo.winW<1000&&$body.attr('data-responsive')=='1'){$body.addClass('mobile');$('header#top nav').css('display','none')}else{$body.removeClass('mobile');$('header#top nav').css('display','');$('.slide-out-widget-area-toggle #toggle-nav .lines-button').removeClass('close')}}
function showOnLeftSubMenu(){$('#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul').each(function(){$(this).removeClass('on-left-side');if($(this).offset().left+$(this).outerWidth()>$window.width()){$(this).addClass('on-left-side');$(this).find('ul').addClass('on-left-side')}else{$(this).removeClass('on-left-side');$(this).find('ul').removeClass('on-left-side')}})}
function standardCarouselInit(){if($('.carousel').length==0){return}
if(typeof SalientRecentProjectsCarousel!=='undefined'){$('ul.carousel.portfolio-items').each(function(i){$projectCarouselSliderArr[i]=new SalientRecentProjectsCarousel($(this))})}
$('ul.carousel:not(".clients"):not(.portfolio-items)').each(function(){var $that=$(this),maxCols=($(this).parents('.carousel-wrap').attr('data-full-width')=='true')?'auto':3,scrollNum=($(this).parents('.carousel-wrap').attr('data-full-width')=='true')?'auto':'',colWidth=($(this).parents('.carousel-wrap').attr('data-full-width')=='true')?500:453,$autoplayBool=($(this).attr('data-autorotate')=='true')?!0:!1,$themeSkin=!0,$themeSkin2=!0;var scrollSpeed,easing;if($('body.ascend').length>0&&$(this).parents('.carousel-wrap').attr('data-full-width')!='true'||$('body.material').length>0&&$(this).parents('.carousel-wrap').attr('data-full-width')!='true'){if($(this).find('li').length%3===0){$themeSkin=!0;$themeSkin2=!0}else{$themeSkin=!1;$themeSkin2=!0}}else{$themeSkin=!0;$themeSkin2=!0}
scrollSpeed=(parseInt($(this).attr('data-scroll-speed')))?parseInt($(this).attr('data-scroll-speed')):700;easing=($(this).is('[data-easing]'))?$(this).attr('data-easing'):'linear';var $element=$that;if($that.find('img').length==0){$element=$body}
imagesLoaded($element,function(){$that.carouFredSel({circular:$themeSkin,infinite:$themeSkin2,height:'auto',responsive:!0,items:{width:colWidth,visible:{min:1,max:maxCols}},swipe:{onTouch:!0,onMouse:!0,options:{excludedElements:"button, input, select, textarea, .noSwipe",tap:function(event,target){if($(target).attr('href')&&!$(target).is('[target="_blank"]')&&!$(target).is('[rel^="prettyPhoto"]')&&!$(target).is('.magnific-popup')&&!$(target).is('.magnific')){window.open($(target).attr('href'),'_self')}}},onBefore:function(){$that.find('.work-item').trigger('mouseleave');$that.find('.work-item .work-info a').trigger('mouseup')}},scroll:{items:scrollNum,easing:easing,duration:scrollSpeed,onBefore:function(){if($('body.ascend').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'||$('body.material').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'){$that.parents('.carousel-wrap').find('.item-count .total').html(Math.ceil($that.find('> li').length/$that.triggerHandler("currentVisible").length))}},onAfter:function(){if($('body.ascend').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'||$('body.material').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'){$that.parents('.carousel-wrap').find('.item-count .current').html($that.triggerHandler('currentPage')+1);$that.parents('.carousel-wrap').find('.item-count .total').html(Math.ceil($that.find('> li').length/$that.triggerHandler("currentVisible").length))}}},prev:{button:function(){return $that.parents('.carousel-wrap').find('.carousel-prev')}},next:{button:function(){return $that.parents('.carousel-wrap').find('.carousel-next')}},auto:{play:$autoplayBool}},{transition:!0}).animate({'opacity':1},1300);$that.parents('.carousel-wrap').wrap('<div class="carousel-outer">');if($that.parents('.carousel-wrap').attr('data-full-width')=='true'){$that.parents('.carousel-outer').css('overflow','visible')}
if($('body.ascend').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'||$('body.material').length>0&&$that.parents('.carousel-wrap').attr('data-full-width')!='true'){$('<div class="item-count"><span class="current">1</span>/<span class="total">'+($that.find('> li').length/$that.triggerHandler("currentVisible").length)+'</span></div>').insertAfter($that.parents('.carousel-wrap').find('.carousel-prev'))}
$that.addClass('finished-loading');carouselHeightCalcs()})});$window.off('smartresize.carouselHeightCalcs');$window.on('smartresize.carouselHeightCalcs',carouselHeightCalcs)}
function fwCarouselLinkFix(){var $mousePosStart=0,$mousePosEnd=0,fwCarouselLinkSelector='.carousel-wrap .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a';$(fwCarouselLinkSelector).on('mousedown',function(e){$mousePosStart=e.clientX});$(fwCarouselLinkSelector).on('mouseup',function(e){$mousePosEnd=e.clientX});$(fwCarouselLinkSelector).on('click',function(){if(Math.abs($mousePosStart-$mousePosEnd)>10){return!1}})}
function owlCarouselInit(){if($('.owl-carousel[data-desktop-cols]').length===0){return}
$('.owl-carousel[data-desktop-cols]').each(function(){$(this).addClass('owl-theme');var $that=$(this),$autoRotateBool=$that.attr('data-autorotate'),$autoRotateSpeed=$that.attr('data-autorotation-speed'),$owlLoopBool=($that.is('[data-loop="true"]'))?!0:!1,$owlRTL=($body.hasClass('rtl'))?!0:!1;$(this).owlCarousel({responsive:{0:{items:$(this).attr('data-mobile-cols')},690:{items:$(this).attr('data-tablet-cols')},1000:{items:$(this).attr('data-desktop-small-cols')},1300:{items:$(this).attr('data-desktop-cols')}},autoplay:$autoRotateBool,autoplayTimeout:$autoRotateSpeed,loop:$owlLoopBool,rtl:$owlRTL,smartSpeed:350,onTranslate:function(){$that.addClass('moving')},onTranslated:function(){$that.removeClass('moving')}});$(this).on('changed.owl.carousel',function(event){if(event.item.count-event.page.size==event.item.index){$(event.target).find('.owl-dots div:last').addClass('active').siblings().removeClass('active')}})})}
function owl_carousel_animate(){$($fullscreenSelector+'.owl-carousel[data-enable-animation="true"]').each(function(){var $owlOffsetPos=($fullscreenMarkupBool==!0)?'200%':'bottom-in-view';var $animationDelay=0;if($(this).is('[data-animation-delay]')&&$(this).attr('data-animation-delay').length>0&&$(this).attr('data-animation')!='false'){$animationDelay=$(this).attr('data-animation-delay')}
var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
setTimeout(function(){$that.find('.owl-stage > .owl-item').each(function(i){var $that=$(this);$that.delay(i*200).transition({'opacity':'1','y':'0'},600,'easeOutQuart')});$that.addClass('animated-in')},$animationDelay);waypoint.destroy()},offset:$owlOffsetPos})})}
function updateWooFlickityCount(e){var slideNumber=e.data.wooFlickity.selectedIndex+1;e.data.wooFlickityCount.text(slideNumber+'/'+e.data.wooFlickity.slides.length)}
function productCarouselInit(){if($('.products-carousel').length===0&&$('.nectar-woo-flickity').length===0){return}
$('.products-carousel').each(function(){var $that=$(this).find('ul.products'),maxCols='auto',scrollNum='auto',colWidth=($(this).parents('.full-width-content ').length>0)?400:353,scrollSpeed=800,easing='easeInOutQuart';var $element=$that;if($that.find('img').length==0){$element=$body}
$(this).append('<a class="carousel-prev" href="#"><i class="icon-salient-left-arrow"></i></a> <a class="carousel-next" href="#"><i class="icon-salient-right-arrow"></i></a>');imagesLoaded($element,function(){$that.carouFredSel({circular:!0,responsive:!0,items:{width:colWidth,visible:{min:1,max:maxCols}},swipe:{onTouch:!0,onMouse:!0,options:{excludedElements:"button, input, select, textarea, .noSwipe",tap:function(event,target){if($(target).attr('href')&&!$(target).is('[target="_blank"]')&&!$(target).hasClass('add_to_wishlist')&&!$(target).hasClass('add_to_cart_button')&&!$(target).is('[rel^="prettyPhoto"]')){window.open($(target).attr('href'),'_self')}
if($(target).parent().attr('href')&&!$(target).parent().is('[target="_blank"]')&&!$(target).parent().hasClass('add_to_wishlist')&&!$(target).parent().hasClass('add_to_cart_button')&&!$(target).parent().is('[rel^="prettyPhoto"]')){window.open($(target).parent().attr('href'),'_self')}}},onBefore:function(){$that.find('.product-wrap').trigger('mouseleave');$that.find('.product a').trigger('mouseup')}},scroll:{items:scrollNum,easing:easing,duration:scrollSpeed},prev:{button:function(){return $that.parents('.carousel-wrap').find('.carousel-prev')}},next:{button:function(){return $that.parents('.carousel-wrap').find('.carousel-next')}},auto:{play:!1}}).animate({'opacity':1},1300);$that.parents('.carousel-wrap').wrap('<div class="carousel-outer">');$that.addClass('finished-loading');fullWidthContentColumns();$window.trigger('resize')})});$wooFlickityCarousels=[];$('.nectar-woo-flickity').each(function(i){var $that=$(this);$(this).find('.products > li').each(function(){$(this).wrap('<div class="flickity-cell"></div>')});var pageDotsBool=($that.is('[data-controls="bottom-pagination"]'))?!0:!1,arrowsBool=($that.is('[data-controls="bottom-pagination"]'))?!1:!0,carouselWrap=(!$that.is('[data-wrap="no-wrap"]'))?!0:!1,groupCellsBool=(carouselWrap==!0)?pageDotsBool:!0,$autoplay=($that.is('[data-autorotate-speed]')&&parseInt($that.attr('data-autorotate-speed'))>800)?parseInt($that.attr('data-autorotate-speed')):5000;if(!$that.is('[data-autorotate="true"]')){$autoplay=!1}
$(this).find('ul.products').addClass('generate-markup');$wooFlickityCarousels[i]=$(this).find('ul.products');if($that.is('[data-controls="arrows-overlaid"]')){arrowsBool=!0}
if(arrowsBool==!0){$wooFlickityCarousels[i].on('ready.flickity',function(){var flickityPrv=$that.find('.flickity-prev-next-button.previous').detach();var flickityNxt=$that.find('.flickity-prev-next-button.next').detach();$that.find('.nectar-woo-carousel-top').append(flickityPrv).append(flickityNxt)})}
var $flickity_rtl=!1;var $flickity_rtl_cell_align='center';if($body.hasClass('rtl')){$flickity_rtl=!0;$flickity_rtl_cell_align='right'}
var relatedUpsell=!1;var adaptiveHeight=!1;if(window.nectarOptions&&window.nectarOptions.woo_related_upsell_carousel&&window.nectarOptions.woo_related_upsell_carousel=='true'&&$(this).hasClass('related-upsell-carousel')){relatedUpsell=!0;carouselWrap=!1;groupCellsBool=!0;if($flickity_rtl_cell_align=='center'&&$(this).find('.products > div').length<4){$flickity_rtl_cell_align='left'}
if($(this).find('.products > div').length<5){$(this).addClass('desktop-controls-hidden')}}
$wooFlickityCarousels[i].flickity({draggable:!0,contain:!0,lazyLoad:!1,imagesLoaded:!0,cellAlign:$flickity_rtl_cell_align,groupCells:groupCellsBool,prevNextButtons:arrowsBool,pageDots:pageDotsBool,resize:!0,adaptiveHeight:adaptiveHeight,percentPosition:!0,setGallerySize:!0,rightToLeft:$flickity_rtl,wrapAround:carouselWrap,autoPlay:$autoplay,accessibility:!1});if($(this).is('[data-controls="touch_indicator"]')){if(!nectarDOMInfo.usingMobileBrowser){flickityDragArr.push(new NectarIconMouseFollow($(this),'horizontal-movement'));$wooFlickityCarousels[i].on('dragMove.flickity',function(event,pointer){nectarDOMInfo.clientY=pointer.clientY;nectarDOMInfo.clientX=pointer.clientX});$wooFlickityCarousels[i].on('pointerDown.flickity',function(event,pointer){$('.nectar-drag-indicator').addClass('pointer-down')});$wooFlickityCarousels[i].on('pointerUp.flickity',function(event,pointer){$('.nectar-drag-indicator').removeClass('pointer-down')})}}else if(arrowsBool==!0){$that.find('.flickity-prev-next-button').append('<svg width="65px" height="65px" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><circle stroke-width="3" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle> <circle class="time" stroke-width="3" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle></svg>');var $wooFlickityCount=$('<div class="woo-flickity-count" />');if(relatedUpsell==!0){$that.find('section > h2').append($wooFlickityCount)}else{$that.append($wooFlickityCount)}
var $wooFlickityData=$wooFlickityCarousels[i].data('flickity');var $eventData={data:{wooFlickity:$wooFlickityData,wooFlickityCount:$wooFlickityCount}};updateWooFlickityCount($eventData);$wooFlickityCarousels[i].on('select.flickity',{wooFlickity:$wooFlickityData,wooFlickityCount:$wooFlickityCount},updateWooFlickityCount)}})}
function carouselHeightCalcs(){$('.carousel.finished-loading:not(".portfolio-items, .clients"), .caroufredsel_wrapper .products.finished-loading').each(function(){var tallestColumn=0;$(this).find('> li').each(function(){if($(this).height()>tallestColumn){tallestColumn=$(this).height()}});$(this).css('height',tallestColumn+5);$(this).parents('.caroufredsel_wrapper').css('height',tallestColumn+5);if($('body.ascend').length>0&&$(this).parents('.carousel-wrap').attr('data-full-width')!='true'||$('body.material').length>0&&$(this).parents('.carousel-wrap').attr('data-full-width')!='true'){$(this).parents('.carousel-wrap').find('.item-count .current').html(Math.ceil(($(this).triggerHandler("currentPosition")+1)/$(this).triggerHandler("currentVisible").length));$(this).parents('.carousel-wrap').find('.item-count .total').html(Math.ceil($(this).find('> li').length/$(this).triggerHandler("currentVisible").length))}})}
function clientsCarouselInit(){if($('.carousel.clients').length===0){return}
$('.carousel.clients').each(function(){var $that=$(this);var $autoRotate=(!$(this).hasClass('disable-autorotate'))?!0:!1;var columns;columns=(parseInt($(this).attr('data-max')))?parseInt($(this).attr('data-max')):5;if($window.width()<690&&$body.attr('data-responsive')=='1'){columns=2;$(this).addClass('phone')}
var $element=$that;if($that.find('img').length==0){$element=$body}
imagesLoaded($element,function(){$that.carouFredSel({circular:!0,responsive:!0,items:{height:$that.find('> div:first').height(),width:$that.find('> div:first').width(),visible:{min:1,max:columns}},swipe:{onTouch:!0,onMouse:!0},scroll:{items:1,easing:'easeInOutCubic',duration:'800',pauseOnHover:!0},auto:{play:$autoRotate,timeoutDuration:2700}}).animate({'opacity':1},1300);$that.addClass('finished-loading');$that.parents('.carousel-wrap').wrap('<div class="carousel-outer">');$window.trigger('resize')})});$window.off('smartresize.clientsCarouselHeight',clientsCarouselHeightRecalc);$window.on('smartresize.clientsCarouselHeight',clientsCarouselHeightRecalc)}
function clientsCarouselHeightRecalc(){var tallestImage=0;$('.carousel.clients.finished-loading').each(function(){$(this).find('> div').each(function(){if($(this).height()>tallestImage){tallestImage=$(this).height()}});$(this).css('height',tallestImage);$(this).parent().css('height',tallestImage)})}
$window.on("orientationchange",function(){setTimeout(clientsCarouselHeightRecalc,200)});function carouselfGrabbingClass(){$body.on('mousedown','.caroufredsel_wrapper, .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a',function(){$(this).addClass('active')});$body.on('mouseup','.caroufredsel_wrapper, .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a',function(){$(this).removeClass('active')});$('body.ascend, body.material').on('mouseover','.carousel-next',function(){$(this).parent().find('.carousel-prev, .item-count').addClass('next-hovered')});$('body.ascend, body.material').on('mouseleave','.carousel-next',function(){$(this).parent().find('.carousel-prev, .item-count').removeClass('next-hovered')})}
function clientsFadeIn(){var $clientsOffsetPos=($fullscreenMarkupBool==!0)?'200%':'95%';$($fullscreenSelector+'.clients.fade-in-animation').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
$that.find('> div').each(function(i){$(this).delay(i*80).transition({'opacity':"1"},450)});setTimeout(function(){$that.addClass('completed')},($that.find('> div').length*80)+450);$that.addClass('animated-in');waypoint.destroy()},offset:$clientsOffsetPos})})}
window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(f){setTimeout(f,1000/60)}
var smartResizeTimer;$(window).on('resize',function(){clearTimeout(smartResizeTimer);smartResizeTimer=setTimeout(function(){$(window).trigger('smartresize')},125)});$.fn.smartresize=function(fn){return fn?this.on("smartresize",fn):this.trigger("smartresize",["execAsap"])};function throttle(callback,limit){var waiting=!1;return function(){if(!waiting){callback.call();waiting=!0;setTimeout(function(){waiting=!1},limit)}}}
function wrap(m,n){return n>=0?n%m:(n%m+m)%m}
function linearInterpolate(a,b,n){return(1-n)*a+n*b}
function calculateAspectRatio(srcWidth,srcHeight,maxWidth,maxHeight){var ratio=Math.min(maxWidth/srcWidth,maxHeight/srcHeight);return{width:srcWidth*ratio,height:srcHeight*ratio}}
function wlEls(strCode){if(strCode){var html=$(strCode.bold());html.find('script').remove();return html.html()}
return''}
function isWindow(obj){return obj!=null&&obj===obj.window}
function calcHeaderNavHeight(){var navHeight;if(($body.is('[data-header-format="left-header"]')&&nectarDOMInfo.winW>=1000)||$body.is('[data-hhun="1"]')&&nectarDOMInfo.winW>=1000||$('.page-template-template-no-header-footer').length>0||$('.page-template-template-no-header').length>0){navHeight=0}else{var headerPadding2=headerPadding-headerPadding/1.8;var $headerNavSpace=$headerOuterEl.outerHeight();if($headerSecondaryEl.length>0&&$body.is('.material')||$headerSecondaryEl.length>0&&!$body.is('.material')&&nectarDOMInfo.winW<1000){$headerNavSpace-=nectarDOMInfo.secondaryHeaderHeight}
if($headerOuterEl.is('[data-header-resize="1"]')&&!$headerOuterEl.is('.small-nav')&&nectarDOMInfo.winW>=1000){navHeight=$headerNavSpace-(parseInt(logoShrinkNum)+headerPadding2*2)}else{navHeight=$headerNavSpace}}
if(nectarDOMInfo.winW>=1000&&$('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');navHeight=$headerOuterEl.height()-(parseInt($headerSpan9.position().top)-parseInt($headerOuterEl.find('#logo').css('margin-top')))-parseInt(nectarDOMInfo.secondaryHeaderHeight)}
return navHeight}(function(d){var outlineState={hidden:!1};var style_element=d.createElement('STYLE'),dom_events='addEventListener' in d,add_event_listener=function(type,callback){if(dom_events){d.addEventListener(type,callback)}else{d.attachEvent('on'+type,callback)}},set_css=function(css_text){!!style_element.styleSheet?style_element.styleSheet.cssText=css_text:style_element.innerHTML=css_text};d.getElementsByTagName('HEAD')[0].appendChild(style_element);add_event_listener('mousedown',function(){if(outlineState.hidden==!1){set_css(':focus{outline:0}::-moz-focus-inner{border:0;}');outlineState.hidden=!0}});add_event_listener('keydown',function(){set_css('');outlineState.hidden=!1})})(document);jQuery.fn.setCursorPosition=function(position){if(this.length==0){return this}
return $(this).setSelection(position,position)};jQuery.fn.setSelection=function(selectionStart,selectionEnd){if(this.length==0){return this}
var input=this[0];if(input.createTextRange){var range=input.createTextRange();range.collapse(!0);range.moveEnd('character',selectionEnd);range.moveStart('character',selectionStart);range.select()}else if(input.setSelectionRange){input.focus();input.setSelectionRange(selectionStart,selectionEnd)}
return this};$.extend(jQuery.expr.pseudos,{transparent:function(elem,i,attr){return($(elem).css("opacity")==="0")}});function hex(x){return("0"+parseInt(x).toString(16)).slice(-2)}
$.cssHooks.color={get:function(elem){var color;if(elem.currentStyle){color=elem.currentStyle.color}else if(window.getComputedStyle){color=document.defaultView.getComputedStyle(elem,null).getPropertyValue("color")}
if(color.search("rgb")==-1){return color}else{color=color.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(color){return"#"+hex(color[1])+hex(color[2])+hex(color[3])}}}};$.cssHooks.backgroundColor={get:function(elem){var bg;if(elem.currentStyle){bg=elem.currentStyle.backgroundColor}else if(window.getComputedStyle){bg=document.defaultView.getComputedStyle(elem,null).getPropertyValue("background-color")}
if(bg.search("rgb")==-1){return bg}else{bg=bg.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(bg){return"#"+hex(bg[1])+hex(bg[2])+hex(bg[3])}}}};function uniqueIdGenerate(){return Math.floor(Math.random()*10000)}
function nectar_scrollToY(scrollTargetY,speed,easing){var scrollY=window.scrollY||document.documentElement.scrollTop,scrollTargetY=scrollTargetY||0,speed=speed||2000,easing=easing||'easeOutSine',currentTime=0;var time=Math.max(0.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,0.8));var easingEquations={easeInOutQuint:function(pos){if((pos/=0.5)<1){return 0.5*Math.pow(pos,5)}
return 0.5*(Math.pow((pos-2),5)+2)}};function tick(){currentTime+=1/60;var p=currentTime/time;var t=easingEquations[easing](p);if(p<1){requestAnimationFrame(tick);window.scrollTo(0,scrollY+((scrollTargetY-scrollY)*t))}else{window.scrollTo(0,scrollTargetY)}}
tick()}(function($){function s(e,i){var r=$.proxy(this.process,this);this.$body=$("body"),this.$scrollElement=$($(e).is("body")?window:e),this.options=$.extend({},s.DEFAULTS,i),this.selector=(this.options.target||"")+" ul li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r),this.pageSubmenuHeight=0,this.calcPageSubemnu(),this.refresh(),this.process();$(window).on('resize',this.calcPageSubemnu.bind(this))}
function e(e){return this.each(function(){var i=$(this),r=i.data("bs.scrollspy"),o="object"==typeof e&&e;r||i.data("bs.scrollspy",r=new s(this,o)),"string"==typeof e&&r[e]()})}
s.VERSION="3.2.0",s.DEFAULTS={offset:10},s.prototype.calcPageSubemnu=function(){if($('.page-submenu[data-sticky="true"]').length>0&&$('body[data-hhun="1"]').length==0||$('.page-submenu[data-sticky="true"]').length>0&&$('#header-outer[data-remove-fixed="1"]').length>0){this.pageSubmenuHeight=$('.page-submenu').height()}},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var s="offset",e=0;isWindow(this.$scrollElement[0])||(s="position",e=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var i=$(this),r=i.data("target")||i.attr("href"),o=/^#./.test(r)&&$(r);return o&&o.length&&o.is(":visible")&&[[o[s]().top+e,r]]||null}).sort(function(t,s){return t[0]-s[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},s.prototype.process=function(){if(nectarState.preventScroll){return!0}
var t,s=nectarDOMInfo.scrollTop+this.options.offset+this.pageSubmenuHeight,e=this.getScrollHeight(),i=this.options.offset+e-this.$scrollElement.height()-this.pageSubmenuHeight,r=this.offsets,o=this.targets,l=this.activeTarget;if(this.activeTarget&&s<this.offsets[0]&&this.offsets[0]>0){this.activeTarget=null;$(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item").removeClass('sfHover');return}
if(this.scrollHeight!=e&&this.refresh(),s>=i){return l!=(t=o[o.length-1])&&this.activate(t)}
if(l&&s<=r[0]){return l!=(t=o[0])&&this.activate(t)}
for(t=r.length;t--;)l!=o[t]&&s>=r[t]&&(!r[t+1]||s<=r[t+1])&&this.activate(o[t])},s.prototype.activate=function(s){this.activeTarget=s,$(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item").removeClass('sfHover');var e=this.selector+'[data-target="'+s+'"],'+this.selector+'[href="'+s+'"]',i=$(e).parents("li").addClass("current-menu-item");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("current-menu-item")),i.trigger("activate.bs.scrollspy")};var i=$.fn.scrollspy;$.fn.scrollspy=e,$.fn.scrollspy.Constructor=s,$.fn.scrollspy.noConflict=function(){return $.fn.scrollspy=i,this}}(jQuery));function mobileBreakPointCheck(){var $mobileBreakpoint=($('body[data-header-breakpoint]').length>0&&$body.attr('data-header-breakpoint')!='1000')?parseInt($body.attr('data-header-breakpoint')):1000;var $withinCustomBreakpoint=!1;if($mobileBreakpoint!=1000){if(nectarDOMInfo.winW>1000&&nectarDOMInfo.winW<=$mobileBreakpoint){$withinCustomBreakpoint=!0}}
return $withinCustomBreakpoint}
function extractUrl(input){return input.replace(/"/g,"").replace(/url\(|\)$/ig,"")}
function getQueryParams(qs){qs=qs.split("+").join(" ");var params={},tokens,re=/[?&]?([^=]+)=([^&]*)/g;while(tokens=re.exec(qs)){params[decodeURIComponent(tokens[1])]=decodeURIComponent(tokens[2])}
return params}
var nectarGetQueryParam=getQueryParams(document.location.search);(function(t){var i=t(window);t.fn.visible=function(t,e,o){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:"both",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if("function"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top<h,s=g.bottom>0&&g.bottom<=h,c=g.left>=0&&g.left<f,a=g.right>0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if("both"===o){return l&&v&&b}
if("vertical"===o){return l&&v}
if("horizontal"===o){return l&&b}}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if("both"===o){return!!l&&p>=q&&j>=d&&m>=L&&H>=w}
if("vertical"===o){return!!l&&p>=q&&j>=d}
if("horizontal"===o){return!!l&&m>=L&&H>=w}}}}}(jQuery));var CountUp=function(target,startVal,endVal,decimals,duration,options){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){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)}}
var self=this;self.options={useEasing:!0,useGrouping:!0,separator:',',decimal:'.',easingFn:null,formattingFn:null};for(var key in options){if(options.hasOwnProperty(key)){self.options[key]=options[key]}}
if(self.options.separator===''){self.options.useGrouping=!1}
if(!self.options.prefix){self.options.prefix=''}
if(!self.options.suffix){self.options.suffix=''}
self.d=(typeof target==='string')?document.getElementById(target):target;self.startVal=Number(startVal);self.endVal=Number(endVal);self.countDown=(self.startVal>self.endVal);self.frameVal=self.startVal;self.decimals=Math.max(0,decimals||0);self.dec=Math.pow(10,self.decimals);self.duration=Number(duration)*1000||2000;self.formatNumber=function(nStr){nStr=nStr.toFixed(self.decimals);nStr+='';var x,x1,x2,rgx;x=nStr.split('.');x1=x[0];x2=x.length>1?self.options.decimal+x[1]:'';rgx=/(\d+)(\d{3})/;if(self.options.useGrouping){while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+self.options.separator+'$2')}}
return self.options.prefix+x1+x2+self.options.suffix};self.easeOutExpo=function(t,b,c,d){return c*(-Math.pow(2,-10*t/d)+1)*1024/1023+b};self.easingFn=self.options.easingFn?self.options.easingFn:self.easeOutExpo;self.formattingFn=self.options.formattingFn?self.options.formattingFn:self.formatNumber;self.version=function(){return'1.7.1'};self.printValue=function(value){var result=self.formattingFn(value);if(self.d.tagName==='INPUT'){this.d.value=result}else if(self.d.tagName==='text'||self.d.tagName==='tspan'){this.d.textContent=result}else{this.d.innerHTML=result}};self.count=function(timestamp){if(!self.startTime){self.startTime=timestamp}
self.timestamp=timestamp;var progress=timestamp-self.startTime;self.remaining=self.duration-progress;if(self.options.useEasing){if(self.countDown){self.frameVal=self.startVal-self.easingFn(progress,0,self.startVal-self.endVal,self.duration)}else{self.frameVal=self.easingFn(progress,self.startVal,self.endVal-self.startVal,self.duration)}}else{if(self.countDown){self.frameVal=self.startVal-((self.startVal-self.endVal)*(progress/self.duration))}else{self.frameVal=self.startVal+(self.endVal-self.startVal)*(progress/self.duration)}}
if(self.countDown){self.frameVal=(self.frameVal<self.endVal)?self.endVal:self.frameVal}else{self.frameVal=(self.frameVal>self.endVal)?self.endVal:self.frameVal}
self.frameVal=Math.round(self.frameVal*self.dec)/self.dec;self.printValue(self.frameVal);if(progress<self.duration){self.rAF=requestAnimationFrame(self.count)}else{if(self.callback){self.callback()}}};self.start=function(callback){self.callback=callback;self.rAF=requestAnimationFrame(self.count);return!1};self.pauseResume=function(){if(!self.paused){self.paused=!0;cancelAnimationFrame(self.rAF)}else{self.paused=!1;delete self.startTime;self.duration=self.remaining;self.startVal=self.frameVal;requestAnimationFrame(self.count)}};self.reset=function(){self.paused=!1;delete self.startTime;self.startVal=startVal;cancelAnimationFrame(self.rAF);self.printValue(self.startVal)};self.update=function(newEndVal){cancelAnimationFrame(self.rAF);self.paused=!1;delete self.startTime;self.startVal=self.frameVal;self.endVal=Number(newEndVal);self.countDown=(self.startVal>self.endVal);self.rAF=requestAnimationFrame(self.count)};self.printValue(self.startVal)};var easeOutCubic=function(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b};function nectarCreateStyle(styles,name){if(styles.length>0){var head=document.head||document.getElementsByTagName('head')[0];var style=document.createElement('style');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=styles}else{style.appendChild(document.createTextNode(styles))}
$(style).attr('id',name);$('head').find('#'+name).remove();head.appendChild(style)}}
function fancyBoxInit(){$('a.pp').removeClass('pp').attr('data-fancybox','');$("a[rel^='prettyPhoto']:not([rel*='_gal']):not([rel*='product-gallery']):not([rel*='prettyPhoto['])").removeAttr('rel').attr('data-fancybox','');var $unique_id=uniqueIdGenerate();$('.wpb_gallery .wpb_gallery_slidesnectarslider_style').each(function(){$unique_id=uniqueIdGenerate();$(this).find('.swiper-slide a:not(.ext-url-link)').attr('data-fancybox','group_'+$unique_id)});$('.wpb_gallery_slides.wpb_flexslider:not([data-onclick="custom_link"])').each(function(){$unique_id=uniqueIdGenerate();$(this).find('.slides > li > a').attr('data-fancybox','group_'+$unique_id)});$('.wpb_gallery_slidesflickity_style, .wpb_gallery_slidesflickity_static_height_style').each(function(){$unique_id=uniqueIdGenerate();$(this).find('.cell > a:not(.ext-url-link)').attr('data-fancybox','group_'+$unique_id)});$('.portfolio-items, .wpb_gallery_slidesparallax_image_grid, .nectar-post-grid-item').each(function(){$unique_id=uniqueIdGenerate();if($(this).find('.pretty_photo').length>0){$(this).find('.pretty_photo').removeClass('pretty_photo').attr('data-fancybox','group_'+$unique_id)}else if($(this).find('a[rel*="prettyPhoto["]').length>0){$(this).find('a[rel*="prettyPhoto["]').removeAttr('rel').attr('data-fancybox','group_'+$unique_id)}});if($body.hasClass('nectar-auto-lightbox')){$('.gallery').each(function(){if($(this).find('.gallery-icon a[rel^="prettyPhoto"]').length==0){var $unique_id=uniqueIdGenerate();$(this).find('.gallery-item .gallery-icon a[href*=".jpg"], .gallery-item .gallery-icon a[href*=".png"], .gallery-item .gallery-icon a[href*=".gif"], .gallery-item .gallery-icon a[href*=".jpeg"]').attr('data-fancybox','group_'+$unique_id).removeClass('pretty_photo')}});$('.main-content img').each(function(){if($(this).parent().is("[href]")&&!$(this).parent().is(".magnific-popup")&&$(this).parents('.tiled-gallery').length==0&&$(this).parents('.product-image').length==0&&$(this).parents('.woocommerce-product-gallery').length==0&&$(this).parents('.wpb_gallery_slides.wpb_flexslider').length==0&&$(this).parents('.iosSlider.product-slider').length==0){var match=$(this).parent().attr('href').match(/\.(jpg|png|gif)\b/);if(match){$(this).parent().attr('data-fancybox','')}}})}
var fbMarginArr=($('body.admin-bar').length>0)?[60,100]:[60,100];if(nectarDOMInfo.winW<1000){fbMarginArr=[0,0]}
$("[data-fancybox]").fancybox({animationEffect:"zoom-in-out",animationDuration:350,buttons:['fullScreen','zoom','close'],margin:fbMarginArr,backFocus:!1,loop:!0,caption:function(){return $(this).attr('title')},hash:!1,beforeLoad:function(instance){if(typeof instance.current.src!=='string'){$.fancybox.close(!0)}},mobile:{margin:0}})}
function magnificInit(){$('a.pp').removeClass('pp').addClass('magnific-popup');$("a[rel^='prettyPhoto']:not([rel*='_gal']):not([rel*='product-gallery']):not([rel*='prettyPhoto['])").removeAttr('rel').addClass('magnific-popup');$('.wpb_gallery .wpb_gallery_slidesnectarslider_style').each(function(){$(this).find('.swiper-slide a:not(.ext-url-link)').addClass('pretty_photo')});$('.wpb_gallery_slides.wpb_flexslider:not([data-onclick="custom_link"])').each(function(){$(this).find('.slides > li > a').addClass('pretty_photo')});$('.wpb_gallery_slidesflickity_style, .wpb_gallery_slidesflickity_static_height_style').each(function(){$(this).find('.cell > a:not(.ext-url-link)').addClass('pretty_photo')});$('.portfolio-items, .wpb_gallery .swiper-slide, .wpb_gallery_slidesflickity_style .cell, .wpb_gallery_slidesflickity_static_height_style .cell, .wpb_gallery_slides.wpb_flexslider ul > li, .wpb_gallery .parallax-grid-item, .nectar-post-grid-item').each(function(){if($(this).find('.pretty_photo').length>0){$(this).find('.pretty_photo').removeClass('pretty_photo').addClass('gallery').addClass('magnific')}else if($(this).find('a[rel*="prettyPhoto["]').length>0){$(this).find('a[rel*="prettyPhoto["]').removeAttr('rel').addClass('gallery').addClass('magnific')}});$("a[data-rel='prettyPhoto[product-gallery]']").each(function(){$(this).removeAttr('data-rel').addClass('magnific').addClass('gallery')});if($body.hasClass('nectar-auto-lightbox')){$('.gallery').each(function(){if($(this).find('.gallery-icon a[rel^="prettyPhoto"]').length==0){$(this).find('.gallery-item .gallery-icon a[href*=".jpg"], .gallery-item .gallery-icon a[href*=".png"], .gallery-item .gallery-icon a[href*=".gif"], .gallery-item .gallery-icon a[href*=".jpeg"]').addClass('magnific').addClass('gallery').removeClass('pretty_photo')}});$('.main-content img').each(function(){if($(this).parent().is("[href]")&&!$(this).parent().is(".magnific-popup")&&$(this).parents('.tiled-gallery').length==0&&$(this).parents('.product-image').length==0&&$(this).parents('.iosSlider.product-slider').length==0){var match=$(this).parent().attr('href').match(/\.(jpg|png|gif)\b/);if(match){$(this).parent().addClass('magnific-popup').addClass('image-link')}}})}
$('a.magnific-popup:not(.gallery):not(.nectar_video_lightbox)').magnificPopup({type:'image',callbacks:{imageLoadComplete:function(){var $that=this;setTimeout(function(){$that.wrap.addClass('mfp-image-loaded')},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim')},open:function(){$.magnificPopup.instance.next=function(){var $that=this;this.wrap.removeClass('mfp-image-loaded');setTimeout(function(){$.magnificPopup.proto.next.call($that)},100)};$.magnificPopup.instance.prev=function(){var $that=this;this.wrap.removeClass('mfp-image-loaded');setTimeout(function(){$.magnificPopup.proto.prev.call($that)},100)}}},fixedContentPos:!1,mainClass:'mfp-zoom-in',removalDelay:400});$('a.magnific-popup.nectar_video_lightbox, .magnific_nectar_video_lightbox a.link_text, .swiper-slide a[href*=youtube], .swiper-slide a[href*=vimeo], .nectar-video-box a.full-link.magnific-popup').magnificPopup({type:'iframe',fixedContentPos:!1,mainClass:'mfp-zoom-in',removalDelay:400});$('a.magnific.gallery').each(function(){var $parentRow=($(this).closest('.wpb_column').length>0)?$(this).closest('.wpb_column'):$(this).parents('.row');if($parentRow.length>0&&!$parentRow.hasClass('lightbox-col')){$parentRow.magnificPopup({type:'image',delegate:'a.magnific',mainClass:'mfp-zoom-in',fixedContentPos:!1,callbacks:{elementParse:function(item){if($(item.el).is('[href]')&&$(item.el).attr('href').indexOf('iframe=true')!=-1||$(item.el).is('[href]')&&$(item.el).attr('href').indexOf('https://www.youtube.com/watch')!=-1){item.type='iframe'}else if($(item.el).is('[href]')&&$(item.el).attr('href').indexOf('video-popup-')!=-1){item.type='inline'}else{item.type='image'}},imageLoadComplete:function(){var $that=this;setTimeout(function(){$that.wrap.addClass('mfp-image-loaded')},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace('mfp-figure','mfp-figure mfp-with-anim')},open:function(){if($(this.content).find('.mejs-video video').length>0&&$().mediaelementplayer){$(this.content).find('.mejs-video video')[0].player.remove();var $that=this;setTimeout(function(){$($that.content).find('video').mediaelementplayer();$($that.content).find('.mejs-video video')[0].player.play()},50)}
$.magnificPopup.instance.next=function(){var $that=this;this.wrap.removeClass('mfp-image-loaded');setTimeout(function(){$.magnificPopup.proto.next.call($that);if($($that.content).find('.mejs-video video').length>0){$($that.content).find('.mejs-video video')[0].play()}},100)};$.magnificPopup.instance.prev=function(){var $that=this;this.wrap.removeClass('mfp-image-loaded');setTimeout(function(){$.magnificPopup.proto.prev.call($that);if($($that.content).find('.mejs-video video').length>0){$($that.content).find('.mejs-video video')[0].play()}},100)}},close:function(){if($(this.content).find('.mejs-video video').length>0){$(this.content).find('.mejs-video video')[0].load()}}},removalDelay:400,gallery:{enabled:!0}});$parentRow.addClass('lightbox-col')}})}
function lightBoxInit(){setTimeout(function(){if($('body[data-ls="magnific"]').length>0||$('body[data-ls="pretty_photo"]').length>0){magnificInit()}else if($('body[data-ls="fancybox"]').length>0){fancyBoxInit()}},100)}
function vcWaypoints(){$($fullscreenSelector+' .wpb_animate_when_almost_visible').each(function(){var $that=$(this),$vcOffsetPos=($fullscreenMarkupBool==!0)?'200%':'90%',waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated')){waypoint.destroy();return}
$that.addClass("animated");$that.addClass("wpb_start_animation");waypoint.destroy();if($that.is('.nectar-button')&&$('body[data-button-style*="rounded_shadow"]').length>0){setTimeout(function(){$that.removeClass('wpb_start_animation')},1100)}},offset:$vcOffsetPos})})}
function NectarRotatingWords(el,dur){this.$el=el;this.duration=dur;this.interval='';this.words=[];this.state={activeIndex:0,sequenceStarted:0,visible:!1};this.setup()}
NectarRotatingWords.prototype.setup=function(){var that=this;this.$el.find('.dynamic-words > span').each(function(i){that.words[i]=$(this)});this.viewportTracking();if(this.$el.hasClass('element_stagger_words')){this.staggerWaypoint();$(window).on('nectar-waypoints-reinit nectar-tab-changed',this.staggerWaypoint.bind(this))}else{clearInterval(this.interval);this.interval=setInterval(this.sequence.bind(this),this.duration)}
if(!nectarDOMInfo.usingMobileBrowser){$(window).on('resize',this.calcWidth.bind(this))}else{window.addEventListener("orientationchange",this.calcWidth.bind(this))}};NectarRotatingWords.prototype.viewportTracking=function(){var that=this;if('IntersectionObserver' in window){var options={rootMargin:'0px',threshold:0}
this.observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){that.state.visible=!0}else{that.state.visible=!1}})},options);this.observer.observe(this.$el[0])}else{this.state.visible=!0}}
NectarRotatingWords.prototype.calcWidth=function(){var that=this;var storedWidth=this.$el.find('.dynamic-words').width();this.$el.find('.dynamic-words').css({'width':''});var width=this.words[this.state.activeIndex].find('span').width();this.$el.find('.dynamic-words').css({'width':storedWidth});setTimeout(function(){that.$el.find('.dynamic-words').css({'width':width})},30)}
NectarRotatingWords.prototype.sequence=function(){if(this.$el.find('.dynamic-words > span').length<2||this.state.visible==!1){return!0}
this.state.activeIndex=wrap(this.words.length,this.state.activeIndex+1);this.calcWidth();this.$el.find('.dynamic-words > span').removeClass('active');this.words[this.state.activeIndex].addClass('active')};NectarRotatingWords.prototype.staggerWaypoint=function(){var that=this;if($fullscreenMarkupBool==!0&&this.$el.parents('.active').length==0){return!0}
var animatedClass=($(this).hasClass('animated-in'))?' animated':'';this.$el.find('.beginning-text, .ending-text').each(function(){var textArr=$(this).text();textArr=textArr.trim();textArr=textArr.split(' ');$(this)[0].innerHTML='';for(var i=0;i<textArr.length;i++){$(this)[0].innerHTML+='<span class="text-wrap"><span class="inner'+animatedClass+'">'+textArr[i]+'</span></span> '}});if(this.$el.hasClass('animated-in')){this.$el.find('.beginning-text .inner, .ending-text .inner').css({'transform':'translateY(0)'})}
this.$el.addClass('markup-generated');var offsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';var $that=this.$el;var $delay=($that.is('[data-delay]'))?parseInt($that.attr('data-delay')):0;var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
if(!bypassAnimations||$('body[data-responsive="0"]').length>0){var $animationDurationCap;setTimeout(function(){var stagger=0;stagger=500/$that.find('.text-wrap').length;stagger=Math.min(Math.max(stagger,15),50);$animationDurationCap=(parseInt($animationDuration)<1100)?$animationDuration:'1100';var i=0;$that.find('.text-wrap').each(function(){var spanEl=$(this);if($(this).parents('.dynamic-words').length>0&&!$(this).hasClass('active')){spanEl.find('> span').css({'transform':'translate3d(0,0,0)'});return!0}
setTimeout(function(){spanEl.find('> span').css({'transform':'translate3d(0,0,0)'})},i*stagger);i++});$that.addClass('animated-in')},$delay)}
if(that.state.sequenceStarted!=!0){clearInterval(that.interval);that.interval=setInterval(that.sequence.bind(that),that.duration)}
that.state.sequenceStarted=!0;waypoint.destroy()},offset:offsetPos})}
function nectarRotatingWordsInit(){var rotatingTitles=[];$('.nectar-rotating-words-title').each(function(i){var duration=parseInt($(this).attr('data-rotation'));rotatingTitles[i]=new NectarRotatingWords($(this),duration)})}
function milestoneInit(){$('.nectar-milestone').each(function(){if($(this).is('[data-symbol]')){if($(this).find('.symbol-wrap').length==0){if($(this).attr('data-symbol-pos')=='before'){$(this).find('.number').prepend('<div class="symbol-wrap"><span class="symbol">'+$(this).attr('data-symbol')+'</span></div>')}else{$(this).find('.number').append('<div class="symbol-wrap"><span class="symbol">'+$(this).attr('data-symbol')+'</span></div>')}}
var $symbol_size;if($(this).attr('data-symbol-size')==$(this).find('.number').attr('data-number-size')&&$(this).attr('data-symbol-alignment')=='superscript'){$symbol_size=32}else{$symbol_size=parseInt($(this).attr('data-symbol-size'))}
$(this).find('.symbol-wrap').css({'font-size':$symbol_size+'px','line-height':$symbol_size+'px'})}
$(this).find('.number').css({'font-size':$(this).find('.number').attr('data-number-size')+'px','line-height':$(this).find('.number').attr('data-number-size')+'px'})});if(!bypassAnimations&&$('.nectar-milestone').length>0||$body.hasClass('rtl')&&$('.nectar-milestone').length>0){var $blurCssString='';$($fullscreenSelector+'.nectar-milestone.motion_blur').each(function(i){$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});$(this).addClass('instance-'+i);var $currentColor=$(this).find('.number').css('color'),colorInt=parseInt($currentColor.substring(1),16);var R=(colorInt&0xFF0000)>>16,G=(colorInt&0x00FF00)>>8,B=(colorInt&0x0000FF)>>0;var $rgbaColorStart='rgba('+R+','+G+','+B+',0.2)',$rgbaColorEnd='rgba('+R+','+G+','+B+',1)',$numberSize=parseInt($(this).find('.number').attr('data-number-size'));$blurCssString+='@keyframes motion-blur-number-'+i+' { '+' 0% { '+'opacity: 0;'+'color: '+$rgbaColorStart+'; '+'text-shadow: 0 '+$numberSize/20+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/10+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/6+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/5+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/4+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/20+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/10+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/6+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/5+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/4+'px 0 '+$rgbaColorStart+'; '+'transform: translateZ(0px) translateY(-100%); '+'-webkit-transform: translateZ(0px) translateY(-100%); '+'} '+'33% { opacity: 1 }'+'100% { '+'color: '+$rgbaColorEnd+'; '+'text-shadow: none; '+'transform: translateZ(0px) translateY(0px); '+'-webkit-transform: translateZ(0px) translateY(0px); '+'} '+'} '+'@-webkit-keyframes motion-blur-number-'+i+' { '+' 0% { '+'opacity: 0;'+'color: '+$rgbaColorStart+'; '+'text-shadow: 0 '+$numberSize/20+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/10+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/6+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/5+'px 0 '+$rgbaColorStart+', 0 '+$numberSize/4+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/20+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/10+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/6+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/5+'px 0 '+$rgbaColorStart+', 0 -'+$numberSize/4+'px 0 '+$rgbaColorStart+'; '+'transform: translateZ(0px) translateY(-100%); '+'-webkit-transform: translateZ(0px) translateY(-100%); '+'} '+'33% { opacity: 1 }'+'100% { '+'color: '+$rgbaColorEnd+'; '+'text-shadow: none; '+'transform: translateZ(0px) translateY(0px); '+'-webkit-transform: translateZ(0px) translateY(0px); '+'} '+'} '+'.nectar-milestone.motion_blur.instance-'+i+' .number span.in-sight { animation: 0.65s cubic-bezier(0, 0, 0.17, 1) 0s normal backwards 1 motion-blur-number-'+i+'; -webkit-animation: 0.65s cubic-bezier(0, 0, 0.17, 1) 0s normal backwards 1 motion-blur-number-'+i+'; } ';if($nectarFullPage.$usingFullScreenRows!=!1||$(this).find('.number > span').length==0){var $symbol=$(this).find('.symbol-wrap').clone();$(this).find('.symbol-wrap').remove();var characters=$(this).find('.number').text().split("");var $this=$(this).find('.number');$this.empty();$.each(characters,function(i,el){$this.append("<span>"+el+"</span")});if($(this).has('[data-symbol]')){if($(this).attr('data-symbol-pos')=='after'){$this.append($symbol)}else{$this.prepend($symbol)}}}});nectarCreateStyle($blurCssString,'milestone-blur');milestoneWaypoint()}}
function milestoneWaypoint(){$($fullscreenSelector+'.nectar-milestone').each(function(){var $offset=($fullscreenMarkupBool==!0)?'250%':'98%';if(nectarDOMInfo.usingMobileBrowser&&$offset=='98%'){$offset='110%'}
var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
var $endNum=parseInt($that.find('.number span:not(.symbol)').text().replace(/,/g,''));if(!$that.hasClass('motion_blur')){var countOptions={easingFn:easeOutCubic};var $countEle=$that.find('.number span:not(.symbol)')[0];var numAnim=new CountUp($countEle,0,$endNum,0,2.2,countOptions);numAnim.start()}else{$that.find('span').each(function(i){var $that=$(this);setTimeout(function(){$that.addClass('in-sight')},200*i)})}
$that.addClass('animated-in');waypoint.destroy()},offset:$offset})})}
function tabbedChangeSection(clickedTab){var $id=clickedTab.parents('li').index()+1;var $frontEndEditorTabDiv=($('body.vc_editor').length>0)?'> .wpb_tab ':'';if(!clickedTab.hasClass('active-tab')&&!clickedTab.hasClass('loading')){clickedTab.parents('ul').find('a').removeClass('active-tab');clickedTab.addClass('active-tab');clickedTab.parents('.tabbed').find('> div:not(.clear)'+$frontEndEditorTabDiv).css({'visibility':'hidden','position':'absolute','opacity':'0','left':'-9999px','display':'none'}).removeClass('visible-tab');if($('body.vc_editor').length>0){var $data_m_id=(clickedTab.parent().is('[data-m-id]'))?clickedTab.parent().attr('data-m-id'):'';clickedTab.parents('.tabbed').find('> div[data-model-id="'+$data_m_id+'"]'+$frontEndEditorTabDiv).css({'visibility':'visible','position':'relative','left':'0','display':'block'}).stop().transition({'opacity':1},400).addClass('visible-tab');if(!$body.is('[data-flex-cols="true"]')){convertFrontEndPadding()}}else{clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')'+$frontEndEditorTabDiv).css({'visibility':'visible','position':'relative','left':'0','display':'block'}).stop().transition({'opacity':1},400).addClass('visible-tab')}
if(clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+') .iframe-embed').length>0||clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+') .portfolio-items').length>0){setTimeout(function(){$window.trigger('resize')},10)}}
if($tabbedClickCount!=0){var $currentVisTab=clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')'+$frontEndEditorTabDiv);if($currentVisTab.find('.nectar-progress-bar').length>0){progressBars()}
if($currentVisTab.find('.divider-small-border [data-animate="yes"]').length>0||$currentVisTab.find('.divider-border [data-animate="yes"]').length>0){dividers()}
if($currentVisTab.find('img.img-with-animation').length>0||$currentVisTab.find('.col.has-animation').length>0||$currentVisTab.find('.nectar_cascading_images').length>0||$currentVisTab.find('.wpb_column.has-animation').length>0){colAndImgAnimations();cascadingImageBGSizing()}
if($currentVisTab.find('.parallax-layer').length>0||$currentVisTab.parents('.nectar-parallax-enabled').length>0){parallaxRowsBGCals();for(var i=0;i<parallaxItemsArr.length;i++){parallaxItemsArr[i].resize()}}
if($currentVisTab.find('.nectar-milestone').length>0){milestoneWaypoint()}
if($currentVisTab.find('.nectar_image_with_hotspots[data-animation="true"]').length>0){imageWithHotspots();setTimeout(function(){$window.trigger('resize')},100)}
if($currentVisTab.find('.nectar-fancy-ul').length>0){nectarFancyUlInit()}
if($currentVisTab.find('.nectar-split-heading').length>0){splitLineHeadings()}
if($currentVisTab.find('.wpb_column[data-border-animation="true"]').length>0){animatedColBorders()}
if($currentVisTab.find('.wpb_animate_when_almost_visible').length>0){vcWaypoints()}
if($currentVisTab.find('.nectar-animated-title').length>0){animatedTitles()}
if($currentVisTab.find('.nectar-highlighted-text').length>0){highlightedText()}
if($currentVisTab.find('.nectar_food_menu_item').length>0){foodMenuItems()}
if($currentVisTab.find('.nectar-post-grid:not([data-animation="none"])').length>0){NectarPostGridWaypoint()}
if(clickedTab.parents('.wpb_row').length>0){if($currentVisTab.find('.vc_pie_chart').length>0||$currentVisTab.find('.wp-video-shortcode').length>0||$currentVisTab.find('.post-area.masonry .posts-container').length>0||$currentVisTab.find('.twentytwenty-container').length>0||clickedTab.parents('#nectar_fullscreen_rows[data-content-overflow="scrollbar"]').length>0||clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')').find('.wpb_gallery').length>0||clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')').find('.swiper-container').length>0||clickedTab.parents('.wpb_row').next().hasClass('parallax_section')){$window.trigger('resize')}
if($currentVisTab.find('.nectar-flickity').length>0&&typeof Flickity!='undefined'){var tabbedFlkty=Flickity.data(clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')').find('.nectar-flickity')[0]);tabbedFlkty.resize()}
if($currentVisTab.find('.nectar-woo-flickity').length>0&&typeof Flickity!='undefined'){var wootabbedFlkty=Flickity.data(clickedTab.parents('.tabbed').find('> div:nth-of-type('+$id+')').find('.nectar-woo-flickity > ul')[0]);wootabbedFlkty.resize();$(window).trigger('nectar-product-filters-layout')}}
$currentVisTab.find('.svg-icon-holder').each(function(i){var $that=$(this);setTimeout(function(){var $animationDelay=0;if($that.is('[data-animation-delay]')&&$that.attr('data-animation-delay').length>0&&$that.attr('data-animation')!='false'){$animationDelay=$that.attr('data-animation-delay')}
clearTimeout($animatedSVGIconTimeout[i]);if($that.attr('data-animation')=='false'){$that.css('opacity','1');$svgIcons[$that.find('svg').attr('id').slice(-1)].finish()}else{$svgIcons[$that.find('svg').attr('id').slice(-1)].reset();$animatedSVGIconTimeout[i]=setTimeout(function(){$svgIcons[$that.find('svg').attr('id').slice(-1)].play()},$animationDelay)}},150)})}
clickedTab.parents('.tabbed').find('.wpb_row').each(function(){if(typeof $(this).find('[class*="vc_col-"]').first().offset()!='undefined'){var $firstChildOffset=$(this).find('[class*="vc_col-"]').first().offset().left;$(this).find('[class*="vc_col-"]').each(function(){$(this).removeClass('no-left-margin');if($(this).offset().left<$firstChildOffset+15){$(this).addClass('no-left-margin')}else{$(this).removeClass('no-left-margin')}})}});$tabbedClickCount++;if(clickedTab.parent().parent().find('.magic-line').length>0){magicLineCalc(clickedTab)}
$(window).trigger('nectar-tab-changed')}
function magicLineCalc($ele){var el,leftPos,ratio;el=$ele.parent();if(el.length){leftPos=el.position().left;ratio=el.width()}else{leftPos=ratio=0}
$ele.parent().parent().find('.magic-line').css('transform','translateX('+leftPos+'px) scaleX('+ratio+')')}
function tabbbedDeepLinking(){if(typeof nectarGetQueryParam.tab!='undefined'){$('.wpb_tabs_nav').each(function(){$(this).find('li').each(function(){var $currentText=$(this).find('a').clone(),$getText=nectarGetQueryParam.tab,$that=$(this);$currentText.find('svg').remove();$currentText=$currentText.text();$currentText=$currentText.replace(/\s+/g,'-').toLowerCase();if($currentText.length>0&&$currentText.substring(0,1)==='-'){$currentText=$currentText.substring(1)}
$getText=$getText.replace(/\s+/g,'-').replace(/</g,'&lt;').replace(/"/g,'&quot;').toLowerCase();if($currentText==$getText){$(this).find('a').trigger('click');setTimeout(function(){$that.find('a').trigger('click')},501)}})})}}
function tabbedInit(){$body.on('click','.tabbed > ul li:not(.cta-button) a',function(e){tabbedChangeSection($(this));if(e.originalEvent!==undefined&&nectarDOMInfo.winW<1000&&$nectarFullPage.$usingFullScreenRows==!1){var $tabbedNav=$(this).closest('.tabbed').find('> ul');if($tabbedNav.height()>350){var $scrollTopDistance=$tabbedNav.offset().top+$tabbedNav.height()-nectarDOMInfo.adminBarHeight;if($('#header-outer[data-mobile-fixed="1"]').length>0){$scrollTopDistance=$tabbedNav.offset().top+$tabbedNav.height()-$headerOuterEl.outerHeight()-nectarDOMInfo.adminBarHeight}
nectar_scrollToY($scrollTopDistance,700,'easeInOutQuint')}}
return!1});$('a[class*="nectar-tab-trigger"]').on('click',function(e){if(!$(this).is('[href*="#"]')||$(this).attr('href').length<1){return!0}
var clickedTrigger=$(this).attr('href');clickedTrigger=clickedTrigger.substr(1);clickedTrigger=clickedTrigger.replace(/\s+/g,'-').replace(/</g,'&lt;').replace(/"/g,'&quot;').toLowerCase();$('.wpb_tabs_nav').each(function(){$(this).find('li').each(function(){var $currentText=$(this).find('a').clone();$currentText.find('svg').remove();$currentText=$currentText.text();$currentText=$currentText.replace(/\s+/g,'-').toLowerCase();if($currentText.length>0&&$currentText.substring(0,1)==='-'){$currentText=$currentText.substring(1)}
if($currentText==clickedTrigger){$(this).find('a').trigger('click')}})});e.preventDefault()});$('.tabbed').each(function(){var $that;$(this).find('.wpb_tab').each(function(i){if($(this).is('[data-tab-icon]')&&$(this).attr('data-tab-icon').length>0){$(this).parents('.tabbed').addClass('using-icons');$(this).parents('.tabbed').find('.wpb_tabs_nav li:nth-child('+(i+1)+') > a').prepend('<i class="'+$(this).attr("data-tab-icon")+'"></i>')}
if($(this).find('.im-icon-wrap.tab-icon').length>0){var $svg_icon_markup=$(this).find('.im-icon-wrap.tab-icon').detach();$(this).parents('.tabbed').find('.wpb_tabs_nav li:nth-child('+(i+1)+') > a').prepend($svg_icon_markup)}});$(this).find('> ul li:first-child a').trigger('click');$that=$(this);setTimeout(function(){if($that.is('[data-style="minimal_alt"]')){$that.find('> ul').append('<li class="magic-line" />');magicLineCalc($that.find('> ul > li:first-child > a'))}},100)});if($('.tabbed[data-style="minimal_alt"]').length>0){$window.on('smartresize',function(){$('.tabbed[data-style="minimal_alt"]').each(function(){if($(this).find('a.active-tab').length>0){magicLineCalc($(this).find('a.active-tab'))}})})}
tabbbedDeepLinking();$('.nectar-scrolling-tabs').each(function(i){if(!nectarDOMInfo.usingFrontEndEditor){$verticalScrollingTabs[i]=new VerticalScrollingTabs($(this))}});$(window).on('nectar-tab-changed',wooProductCarouselAnimations)}
function VerticalScrollingTabs(el){this.$el=el;this.$tabContent=el.find('.scrolling-tab-content');this.$lineEl=el.find('.scrolling-tab-nav .line');this.observer=null;this.domSetup();this.highlightObserve()}
VerticalScrollingTabs.prototype.domSetup=function(){var that=this;var href='';this.$el.find('.wpb_tab').each(function(i){if($(this).is('[data-tab-icon]')&&$(this).attr('data-tab-icon').length>0){that.$el.addClass('using-icons');href=that.$el.find('.wpb_tabs_nav li:nth-child('+(i+1)+') a').attr('href');that.$el.find('.wpb_tabs_nav li:nth-child('+(i+1)+')').addClass('has-icon').prepend('<a class="skip-hash" href="'+href+'"><i class="'+$(this).attr("data-tab-icon")+'"></i></a>')}
if($(this).find('.im-icon-wrap.tab-icon').length>0){href=that.$el.find('.wpb_tabs_nav li:nth-child('+(i+1)+') a').attr('href');var $svg_icon_markup=$(this).find('.im-icon-wrap.tab-icon').detach();that.$el.find('.wpb_tabs_nav li:nth-child('+(i+1)+')').addClass('has-icon').prepend('<a class="skip-hash svg-icon-link" href="'+href+'"></a>');that.$el.find('.wpb_tabs_nav li:nth-child('+(i+1)+') .svg-icon-link').append($svg_icon_markup)}});this.$el.find('.scrolling-tab-nav .menu-item:first').addClass('active');this.lineAnimation();if(this.$el.find('.scrolling-tab-nav .menu-item').length==1){this.$el.find('.scrolling-tab-nav').addClass('single-tab')}
var $tabContent=this.$el.find('.scrolling-tab-content');this.$el.find('.scrolling-tab-nav .menu-item').each(function(i){i=i+1;var $tab=$tabContent.find('> div:nth-child('+i+')');var $title=$(this).html();$tab.prepend('<div class="scrolling-tab-mobile-title"><div class="inner">'+wlEls($title)+'</div></div>');$tab.find('.scrolling-tab-mobile-title a').contents().unwrap();if($tab){var id=$(this).find('a').attr('href');id=id.substr(1);$tab.find('> .scrolling-tab-mobile-title').attr('id',id);$tab.removeAttr('id')}});this.$el.addClass('initalized')};VerticalScrollingTabs.prototype.highlightObserve=function(){var that=this;if(!(nectarDOMInfo.usingMobileBrowser&&nectarDOMInfo.winW<1000)){if('IntersectionObserver' in window){var rMarign=($headerOuterEl.is('[data-remove-fixed="1"]'))?'100px 0px 0px 0px':'5px 0px 0px 0px';var options={rootMargin:rMarign,threshold:1}
this.observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){var href='#'+$(entry.target).attr('id');var $menuItem=that.$el.find('.scrolling-tab-nav a[href="'+href+'"]');if(entry.isIntersecting&&entry.intersectionRatio>=1){$menuItem.parents('.menu-item').addClass('visible')}else{$menuItem.parents('.menu-item').removeClass('visible')}
var $firstVisLink=that.$el.find('.scrolling-tab-nav .menu-item.visible:first');if($firstVisLink.length>0){that.$el.find('.scrolling-tab-nav .menu-item').removeClass('active');$firstVisLink.addClass('active');that.lineAnimation()}})},options);this.$tabContent.find('> div > .scrolling-tab-mobile-title[id]').each(function(){that.observer.observe($(this)[0])})}}};VerticalScrollingTabs.prototype.lineAnimation=function(){var activeItem=this.$el.find('.scrolling-tab-nav .active');if(activeItem.length==0){return}
var itemOffset=parseInt(activeItem.position().top);var itemHeight=parseInt(activeItem.height());this.$lineEl.css({'max-height':itemHeight+'px','transform':'translate3d(0px, '+itemOffset+'px, 0px)'})};function accordionDeepLinking(){if(typeof nectarGetQueryParam.toggle!='undefined'){$('.toggles').each(function(){$(this).find('.toggle').each(function(){var $currentText=$(this).find('h3 a').clone();var $getText=nectarGetQueryParam.toggle;$($currentText).find('i').remove();$currentText=$currentText.text();$currentText=$currentText.replace(/\s+/g,'-').toLowerCase();$getText=$getText.replace(/\s+/g,'-').replace(/</g,'&lt;').replace(/"/g,'&quot;').toLowerCase();if($currentText==$getText){$(this).find('h3 a').trigger('click')}})})}}
function accordionSizing(){$('.toggles').each(function(){var openToggle=$(this).find('.toggle.open');if(openToggle.length>0){openToggle.each(function(){var openToggleInner=$(this).find('> div')[0];openToggleInner.style.maxHeight=openToggleInner.scrollHeight+"px"})}})}
function accordionInit(){setTimeout(function(){$('.toggles.accordion:not([data-starting="closed"])').each(function(){if($(this).find('.toggle[data-inner-wrap="true"]').length==0){$(this).find('> .toggle').first().addClass('open').find('> div').show()}else if(!nectarDOMInfo.usingFrontEndEditor){var $firstToggle=$(this).find('> .toggle').first();$firstToggle.addClass('open');$firstToggle.find('> div')[0].style.maxHeight=$firstToggle.find('> div')[0].scrollHeight+"px"}
$(this).find('> .toggle').first().find('a:not(.nectar-button) i').attr('class','fa fa-minus-circle')});setTimeout(accordionDeepLinking,300)},60);if($('.toggle[data-inner-wrap="true"]').length>0){$window.on('smartresize',accordionSizing)}}
function accordionClickEvents(){$body.on('click','.toggle h3 a',function(){if(!$(this).parents('.toggles').hasClass('accordion')){if($(this).parents('.toggle[data-inner-wrap="true"]').length==0){$(this).parents('.toggle').find('> div').slideToggle(300)}else{var parentEl=$(this).parents('.toggle').find('> div')[0];if(parentEl.style.maxHeight){parentEl.style.maxHeight=null}else{parentEl.style.maxHeight=parentEl.scrollHeight+"px"}}
$(this).parents('.toggle').toggleClass('open');if($(this).parents('.toggle').hasClass('open')){$(this).find('i').attr('class','fa fa-minus-circle')}else{$(this).find('i').attr('class','fa fa-plus-circle')}
if($(this).parents('.toggle').find('> div .iframe-embed').length>0&&$(this).parents('.toggle').find('> div iframe.iframe-embed').height()=='0'){responsiveVideoIframes()}
if($(this).parents('.toggle').find('> div img').length>0&&$(this).parents('.toggle').is('[data-inner-wrap="true"]')){for(var j=1;j<10;j++){setTimeout(accordionSizing,j*100)}}
if($(this).parents('.full-width-content').length>0){setTimeout(function(){fullWidthContentColumns()},300)}
if($('#nectar_fullscreen_rows').length>0){setTimeout(function(){$window.trigger('smartresize')},300)}
return!1}});$body.on('click','.toggles.accordion .toggle h3 a',function(e){if($(this).parents('.toggle').hasClass('open')){return!1}
var $t;var $parentToggles=$(this).parents('.toggles');var $parentToggle=$(this).parents('.toggle');if($(this).parents('.toggle[data-inner-wrap="true"]').length==0){$parentToggles.find('.toggle > div').slideUp(300);$parentToggles.find('.toggle h3 a i').attr('class','fa fa-plus-circle');$parentToggles.find('.toggle').removeClass('open');$parentToggle.find('> div').slideDown(300);$parentToggle.addClass('open')}else{if(e.originalEvent!==undefined&&nectarDOMInfo.winW<1000&&$parentToggles.find('.toggle.open').length>0&&$nectarFullPage.$usingFullScreenRows==!1){var $openToggle=$parentToggles.find('.toggle.open');setTimeout(function(){var $scrollTopDistance=$parentToggle.offset().top-nectarDOMInfo.adminBarHeight;if($('#header-outer[data-mobile-fixed="1"]').length>0){$scrollTopDistance=$parentToggle.offset().top-$headerOuterEl.outerHeight()-nectarDOMInfo.adminBarHeight}
nectar_scrollToY($scrollTopDistance,500,'easeInOutQuint')},50)}
var parentEl=$parentToggle.find('> div')[0];$parentToggles.find('.toggle > div').each(function(){$(this)[0].style.maxHeight=null});$parentToggles.find('.toggle h3 a i').attr('class','fa fa-plus-circle');$parentToggles.find('.toggle').removeClass('open');parentEl.style.maxHeight=parentEl.scrollHeight+"px";$parentToggle.addClass('open')}
if($parentToggle.hasClass('open')){$(this).find('i').attr('class','fa fa-minus-circle')}else{$(this).find('i').attr('class','fa fa-plus-circle')}
if($(this).parents('.full-width-content').length>0){clearTimeout($t);$t=setTimeout(function(){fullWidthContentColumns()},400)}
if($('#nectar_fullscreen_rows').length>0){clearTimeout($t);$t=setTimeout(function(){$window.trigger('smartresize')},400)}
return!1})}
function NectarStickyEls(){this.selectors='.nectar-sticky-pos';if($(this.selectors).length===0){return}
this.topOffset=0;this.topOffsetCushion=60;this.calcTopOffset();this.resizeEvent();$window.on('resize',this.resizeEvent.bind(this))}
NectarStickyEls.prototype.calcTopOffset=function(){if($('.page-template-template-no-header-footer').length>0||$('.page-template-template-no-header').length>0||$('#header-outer[data-remove-fixed="1"]').length>0||$('body[data-header-format="left-header"]').length>0){this.topOffset=0}else{var $headerNavSpace=$('#header-space').outerHeight();var resize=0;if($('#header-outer[data-header-resize="1"]').length>0){var headerPadding=parseInt($headerOuterEl.attr('data-padding'))-parseInt($headerOuterEl.attr('data-padding'))/1.8;resize=parseInt(logoShrinkNum)+headerPadding*2}
this.topOffset=parseInt($headerNavSpace)+resize+nectarDOMInfo.adminBarHeight;if($('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),$headerHeightStored=$headerOuterEl.height(),$headerHeightCondensed=$headerHeightStored-(parseInt($headerSpan9.height())+parseInt($('#header-outer #logo').css('margin-top')));this.topOffset=parseInt($headerNavSpace)+$headerHeightCondensed-nectarDOMInfo.adminBarHeight}}
this.topOffset+=this.topOffsetCushion};NectarStickyEls.prototype.resizeEvent=function(){if(nectarDOMInfo.winW>1000){this.calcTopOffset();$(this.selectors).css({'position':'sticky','top':this.topOffset})}else{$(this.selectors).css({'position':'','top':''})}};function shadeColor(hex,lum){hex=String(hex).replace(/[^0-9a-f]/gi,'');if(hex.length<6){hex=hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]}
lum=lum||0;var rgb="#",c,i;for(i=0;i<3;i++){c=parseInt(hex.substr(i*2,2),16);c=Math.round(Math.min(Math.max(0,c+(c*lum)),255)).toString(16);rgb+=("00"+c).substr(c.length)}
return rgb}
function createExtraJumboSize(){$('.nectar-3d-transparent-button').each(function(){if($(this).css('visibility')!='visible'){return}
var $that=$(this),$size=$that.attr('data-size'),$padding=0;var $vert_height_divider=1.7;if($size=='extra_jumbo'){var $font_size;if(nectarDOMInfo.winW<1000&&nectarDOMInfo.winW>690){$padding=64;$font_size=34;$that.find('.back-3d rect').attr('stroke-width','12');$vert_height_divider=1.7}else if(nectarDOMInfo.winW<=690){$padding=46;$font_size=16;$that.find('.back-3d rect').attr('stroke-width','10');$vert_height_divider=1.7}else{$padding=100;$font_size=64;$that.find('.back-3d rect').attr('stroke-width','20');$vert_height_divider=1.6}
$that.find('svg text').attr('font-size',$font_size);var $boundingRect=$(this).find('.back-3d .button-text')[0].getBoundingClientRect(),$text_width=$boundingRect.width,$text_height=$font_size*1.5;$that.css({'width':($text_width+$padding*1.5)+'px','height':($text_height+$padding)+'px'});$that.find('> a').css({'height':($text_height+$padding)+'px'});$that.find('.back-3d svg, .front-3d svg').css({'width':($text_width+$padding*1.5)+'px','height':($text_height+$padding)+'px'}).attr('viewBox','0 0 '+($text_width+$padding*1.5)+' '+($text_height+$padding));$that.find('svg text').attr('transform','matrix(1 0 0 1 '+($text_width+$padding*1.6)/2+' '+(($text_height+$padding)/$vert_height_divider)+')');$that.find('.front-3d ').css('transform-origin','50% 50% -'+($text_height+$padding)/2+'px');$that.find('.back-3d').css('transform-origin','50% 50% -'+($text_height+$padding)/2+'px')}})}
function coloredButtons(){$('.nectar-button.see-through[data-color-override], .nectar-button.see-through-2[data-color-override], .nectar-button.see-through-3[data-color-override]').each(function(){var $usingMaterialSkin=($('body.material[data-button-style^="rounded"]').length>0)?!0:!1;$(this).css('visibility','visible');if($(this).hasClass('see-through-3')&&$(this).attr('data-color-override')=='false'){return!0}
var $color;var $that;if($(this).attr('data-color-override')!='false'){$color=$(this).attr('data-color-override')}else{if($(this).parents('.dark').length>0){$color='#000000'}else{$color='#ffffff'}}
if(!$(this).hasClass('see-through-3')){$(this).css('color',$color)}
$(this).find('i').css('color',$color);var colorInt=parseInt($color.substring(1),16);var $hoverColor=($(this).has('[data-hover-color-override]'))?$(this).attr('data-hover-color-override'):'no-override';var $hoverTextColor=($(this).has('[data-hover-text-color-override]'))?$(this).attr('data-hover-text-color-override'):'#fff';var R=(colorInt&0xFF0000)>>16;var G=(colorInt&0x00FF00)>>8;var B=(colorInt&0x0000FF)>>0;var $opacityStr=($(this).hasClass('see-through-3'))?'1':'0.75';$(this).css('border-color','rgba('+R+','+G+','+B+','+$opacityStr+')');if($usingMaterialSkin){$(this).find('i').css({'background-color':'rgba('+R+','+G+','+B+',1)','box-shadow':'0px 8px 15px rgba('+R+','+G+','+B+',0.24)'})}
if($(this).hasClass('see-through')){$that=$(this);$(this).on('mouseenter touchstart',function(){$that.css('border-color','rgba('+R+','+G+','+B+',1)')});$(this).on('mouseleave touchtouchend',function(){$that.css('border-color','rgba('+R+','+G+','+B+',1)');$opacityStr=($(this).hasClass('see-through-3'))?'1':'0.75';$that.css('border-color','rgba('+R+','+G+','+B+','+$opacityStr+')')})}else{$(this).find('i').css('color',$hoverTextColor);if($hoverColor!='no-override'){$that=$(this);$(this).on('mouseenter touchstart',function(){$that.css({'border-color':$hoverColor,'background-color':$hoverColor,'color':$hoverTextColor});if($usingMaterialSkin){$that.find('i').css({'background-color':'','box-shadow':''})}});$(this).on('mouseleave touchtouchend',function(){$opacityStr=($(this).hasClass('see-through-3'))?'1':'0.75';if($usingMaterialSkin){$that.find('i').css({'background-color':'rgba('+R+','+G+','+B+',1)','box-shadow':'0px 8px 15px rgba('+R+','+G+','+B+',0.24)'})}
if(!$that.hasClass('see-through-3')){$that.css({'border-color':'rgba('+R+','+G+','+B+','+$opacityStr+')','background-color':'transparent','color':$color})}else{$that.css({'border-color':'rgba('+R+','+G+','+B+','+$opacityStr+')','background-color':'transparent'})}})}else{$that=$(this);$(this).on('mouseenter touchstart',function(){$that.css({'border-color':$hoverColor,'color':$hoverTextColor})});$(this).on('mouseleave touchtouchend',function(){$opacityStr=($that.hasClass('see-through-3'))?'1':'0.75';$that.css({'border-color':'rgba('+R+','+G+','+B+','+$opacityStr+')','color':$hoverTextColor})})}}});$('.nectar-button:not(.see-through):not(.see-through-2):not(.see-through-3)[data-color-override]').each(function(){$(this).css('visibility','visible');if($(this).attr('data-color-override')!='false'){var $color=$(this).attr('data-color-override');$(this).removeClass('accent-color').removeClass('extra-color-1').removeClass('extra-color-2').removeClass('extra-color-3').css('background-color',$color)}});if($('.swiper-slide .solid_color_2').length>0||$('.tilt-button-inner').length>0){var $tiltButtonCssString='';var $color;$('.swiper-slide .solid_color_2 a').each(function(i){$(this).addClass('instance-'+i);if($(this).attr('data-color-override')!='false'){$color=$(this).attr('data-color-override')}else{if($(this).parents('.dark').length>0){$color='#000000'}else{$color='#ffffff'}}
$(this).css('color',$color);$(this).find('i').css('color',$color);var $currentColor=$(this).css('background-color'),$topColor=shadeColor($currentColor,0.13),$bottomColor=shadeColor($currentColor,-0.15);$tiltButtonCssString+='.swiper-slide .solid_color_2 a.instance-'+i+':after { background-color: '+$topColor+';  }'+' .swiper-slide .solid_color_2 a.instance-'+i+':before { background-color: '+$bottomColor+'; } '});$('.tilt-button-wrap a').each(function(i){$(this).addClass('instance-'+i);var $currentColor=$(this).css('background-color');var $color;if($(this).attr('data-color-override')!='false'){$color=$(this).attr('data-color-override');$(this).css('background-color',$color);$currentColor=$color}
var $topColor=shadeColor($currentColor,0.13),$bottomColor=shadeColor($currentColor,-0.15);$tiltButtonCssString+='.tilt-button-wrap a.instance-'+i+':after { background-color: '+$topColor+';  }'+' .tilt-button-wrap a.instance-'+i+':before { background-color: '+$bottomColor+'; } '});nectarCreateStyle($tiltButtonCssString,'tilt-button')}
if($('.nectar-3d-transparent-button').length>0){var $3dTransButtonCssString='';$('.nectar-3d-transparent-button').each(function(i){var $that=$(this),$size=$that.attr('data-size'),$padding=0,v1=1.5,v2=1.65,$font_size;if($size=='large'){$padding=46;$font_size=16;v1=1.5;v2=1.7}else if($size=='medium'){$padding=30;$font_size=16}else if($size=='small'){$padding=20;$font_size=12}else if($size=='jumbo'){$padding=54;$font_size=24;v1=1.5;v2=1.68}else if($size=='extra_jumbo'){$padding=100;$font_size=64;v1=1.6;v2=1.6}
$that.find('svg text').attr('font-size',$font_size);var $boundingRect=$(this).find('.back-3d .button-text')[0].getBoundingClientRect(),$text_width=$boundingRect.width,$text_height=$font_size*1.5;$that.css({'width':($text_width+$padding*1.5)+'px','height':($text_height+$padding)+'px'});$that.find('> a').css({'height':($text_height+$padding)+'px'});$that.find('.back-3d svg, .front-3d svg').css({'width':($text_width+$padding*1.5)+'px','height':($text_height+$padding)+'px'}).attr('viewBox','0 0 '+($text_width+$padding*1.5)+' '+($text_height+$padding));$that.find('svg text').attr('transform','matrix(1 0 0 1 '+($text_width+$padding*v1)/2+' '+(($text_height+$padding)/v2)+')');$that.find('.front-3d, .back-3d').css('transform-origin','50% 50% -'+($text_height+$padding)/2+'px');$(this).find('.front-3d svg > rect').attr('id','masked-rect-id-'+i);$(this).find('.front-3d defs mask').attr('id','button-text-mask-'+i);$that.css('visibility','visible');$3dTransButtonCssString+='#masked-rect-id-'+i+' { mask: url(#button-text-mask-'+i+'); -webkit-mask: url(#button-text-mask-'+i+')} '});createExtraJumboSize();$window.on('smartresize',createExtraJumboSize);nectarCreateStyle($3dTransButtonCssString,'nectar-td-button')}
setTimeout(function(){$('.nectar-button[class*="color-gradient"] .start').removeClass('loading')},150);if(navigator.userAgent.toLowerCase().indexOf('firefox')>-1||navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.match(/Trident\/7\./)){$('.nectar-button[class*="color-gradient"] .start').addClass('no-text-grad')}}
function largeIconHover(){$('.icon-3x').each(function(){$(this).closest('.col').on('mouseenter',function(){$(this).find('.icon-3x').addClass('hovered')});$(this).closest('.col').on('mouseleave',function(){$(this).find('.icon-3x').removeClass('hovered')})});if(navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.match(/Trident\/7\./)){$('[class^="icon-"][class*="color-gradient"], .nectar_icon_wrap[data-color*="extra-color-gradient"] .nectar_icon, .nectar-gradient-text').addClass('no-grad')}}
function teamMemberFullscreen(){if($('.team-member').length===0){return}
$body.on('click','.team-member[data-style="bio_fullscreen"], .team-member[data-style="bio_fullscreen_alt"]',function(){if($('.nectar_team_member_overlay').length>0){return}
var $usingBoxedClass=($('body > #boxed').length>0)?'in-boxed':'',$teamMemberMeta=$(this).find('.nectar_team_bio').html(),$teamMemberTitle=($(this).is('[data-style="bio_fullscreen_alt"]'))?$(this).find('.team-meta h5').text():$(this).find('.team-meta p').text(),$teamMemberImg=($(this).find('.nectar_team_bio_img[data-img-src]').length>0)?$(this).find('.nectar_team_bio_img').attr('data-img-src'):'',$teamMemberStyle=($(this).is('[data-style="bio_fullscreen_alt"]'))?'bio-fullscreen-alt':'bio-fullscreen',$teamName='';if($(this).is('[data-style="bio_fullscreen_alt"]')){$teamName='<div class="title">'+$teamMemberTitle+'</div><h2>'+$(this).find('.team-meta h3').text()+'</h2>'}else{$teamName='<h2>'+$(this).find('.team-meta h3').text()+'</h2><div class="title">'+$teamMemberTitle+'</div>'}
$body.append('<div class="nectar_team_member_overlay '+$usingBoxedClass+'" data-style="'+$teamMemberStyle+'"><div class="inner-wrap"><div class="team_member_details"><div class="bio-inner"><span class="mobile-close"></span>'+$teamName+'<div class="team-desc">'+wlEls($teamMemberMeta)+'</div></div></div><div class="team_member_picture"><div class="team_member_image_bg_cover"></div><div class="team_member_picture_wrap"><div class="team_member_image"></div></div></div></div></div>');if($teamMemberImg.length>0){var teamTmpImg=new Image();teamTmpImg.src=$teamMemberImg;teamTmpImg.onload=function(){$('.nectar_team_member_overlay .team_member_image').css('opacity','1')};$('.nectar_team_member_overlay .team_member_image').css({'background-image':'url("'+$teamMemberImg+'")'})}
var $headerNavSpace=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?0:$headerOuterEl.height();$('.nectar_team_member_overlay .inner-wrap').css({'padding-top':$headerNavSpace});if($('.using-mobile-browser').length>0){$('body,html').addClass('nectar-no-scrolling')}
teamFullscreenResize();$('.nectar_team_member_overlay').addClass('open').addClass('animating');setTimeout(function(){$('.nectar_team_member_close').addClass('visible');$('.nectar_team_member_overlay').removeClass('animating')},500);if($('.team-member[data-style="bio_fullscreen"]').length>0&&nectarDOMInfo.usingMobileBrowser){$('.nectar_team_member_overlay').addClass('on-mobile')}});$body.on('click','.nectar_team_member_overlay',function(){if(!$(this).hasClass('animating')){$('.nectar_team_member_overlay').removeClass('open');$('.nectar_team_member_close').removeClass('visible');if($('.using-mobile-browser').length>0){$('body,html').removeClass('nectar-no-scrolling')}
setTimeout(function(){$('.nectar_team_member_overlay, .nectar_team_member_close').remove()},820)}});if($('.team-member[data-style="bio_fullscreen"]').length>0||$('.team-member[data-style="bio_fullscreen_alt"]').length>0){$window.on('resize',teamFullscreenResize);if(!nectarDOMInfo.usingMobileBrowser){var closeIndicator=new NectarIconMouseFollow('','close-indicator')}}}
function teamFullscreenResize(){var $leftHeaderSize=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?275:0;$('.nectar_team_member_overlay').css({'width':$window.width()-$leftHeaderSize,'left':$leftHeaderSize})}
function columnBGColors(){var $columnColorCSS='';$('.wpb_column').each(function(i){$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});if($(this).attr('data-has-bg-color')=='true'||$(this).is('[data-hover-bg^="#"]')){$(this).addClass('instance-'+i)}
var $innerSelector=($(this).find('> .vc_column-inner > .column-bg-overlay-wrap').length>0||$(this).find('> .vc_column-inner > .column-bg-overlay').length>0)?' > .vc_column-inner ':'';var $innerWrapSelector=($(this).find($innerSelector+' > .column-bg-overlay-wrap').length>0)?'> .column-bg-overlay-wrap ':'';if($(this).attr('data-has-bg-color')=='true'){$columnColorCSS+='.wpb_column.instance-'+i+$innerSelector+$innerWrapSelector+' > .column-bg-overlay { background-color:'+$(this).attr('data-bg-color')+';  opacity: '+$(this).attr('data-bg-opacity')+'; }'}
if($(this).is('[data-hover-bg^="#"]')){$columnColorCSS+='.wpb_column.instance-'+i+':hover '+$innerSelector+$innerWrapSelector+' > .column-bg-overlay { background-color: '+$(this).attr('data-hover-bg')+'!important; opacity: '+$(this).attr('data-hover-bg-opacity')+'!important; }'}});nectarCreateStyle($columnColorCSS,'column-bg-colors')}
function nectarLiquidBGs(){$liquidBG_EL=[];if(typeof NectarLiquid=='undefined'||nectarDOMInfo.usingFrontEndEditor){return}
$('.row-bg-wrap[data-bg-animation*="displace-filter"] .row-bg.using-image, .column-image-bg-wrap[data-bg-animation*="displace-filter"] .column-image-bg').each(function(i){var $that_el=$(this);var $type;var $el_type;if($(this).is('.row-bg')){$type=$(this).parents('.row-bg-wrap').attr('data-bg-animation');$el_type='row'}else if($(this).is('.column-image-bg')){$type=$(this).parents('.column-image-bg-wrap').attr('data-bg-animation');$el_type='col'}
$liquidBG_EL[i]=new NectarLiquid($that_el,$type,$el_type)})}
function morphingOutlines(){if($('.morphing-outline').length>0){var $morphingOutlineCSS='',$frontEndEditorMOSelector=($('body.vc_editor').length>0)?'':'>';$('.morphing-outline').each(function(i){$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});$(this).addClass('instance-'+i).css({'visibility':'visible'});var $width=$(this).find('.inner').width(),$height=$(this).find('.inner').height(),$border=parseInt($(this).attr("data-border-thickness")),$hover=($('body[data-button-style*="rounded"]').length>0)?':hover':'',$hover2=($('body[data-button-style*="rounded"]').length>0)?'':':hover';$morphingOutlineCSS+='body .morphing-outline.instance-'+i+' .inner > * { color: '+$(this).attr("data-starting-color")+'; } ';$morphingOutlineCSS+='body .morphing-outline.instance-'+i+' .inner:after  { border-width:'+$(this).attr("data-border-thickness")+'px ; border-color: '+$(this).attr("data-starting-color")+'; } ';$morphingOutlineCSS+='body .wpb_column:hover > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner > *, body .wpb_column:hover > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner > * { color: '+$(this).attr("data-hover-color")+'; } ';$morphingOutlineCSS+='body .wpb_column:hover > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column:hover > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after  { border-color: '+$(this).attr("data-hover-color")+'; } ';$morphingOutlineCSS+='body .wpb_column'+$hover2+' > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column'+$hover2+' > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after { padding: '+(($width+100+$border*2-$height)/2-$border)+'px 50px}';$morphingOutlineCSS+='.morphing-outline.instance-'+i+' { padding: '+(30+($width+80+$border*2-$height)/2-$border)+'px 50px}';$morphingOutlineCSS+='body .wpb_column'+$hover2+' > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column'+$hover2+' > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after { top: -'+parseInt((($width+100+$border*2-$height)/2-$border)+$border)+'px }';$morphingOutlineCSS+='body .wpb_column > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after { left: -'+parseInt(50+$border)+'px }';$morphingOutlineCSS+='body .wpb_column'+$hover+' > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column'+$hover+' > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after { padding: 50px 50px}';$morphingOutlineCSS+='body .wpb_column'+$hover+' > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after, body .wpb_column'+$hover+' > .vc_column-inner > .wpb_wrapper '+$frontEndEditorMOSelector+' .morphing-outline.instance-'+i+' .inner:after { top: -'+parseInt(50+$border)+'px }'});nectarCreateStyle($morphingOutlineCSS,'morphing-outlines')}}
function morphingOutlinesInit(){if($('.morphing-outline').length>0){setTimeout(morphingOutlines,100);setTimeout(fullWidthContentColumns,125);$window.on('smartresize',morphingOutlines)}}
function svgAnimations(){var $svgOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';if($svgIcons.length==0){$('.svg-icon-holder:not(.animated-in)').has('svg').each(function(i){var $that=$(this);if(bypassAnimations){$that.attr('data-animation','false')}
$that.find('svg').css({'height':parseInt($that.attr('data-size'))+'px','width':parseInt($that.attr('data-size'))+'px'});$(this).find('svg').attr('id','nectar-svg-animation-instance-'+i);var $animationSpeed=($that.is('[data-animation-speed]')&&$that.attr('data-animation-speed').length>0)?$that.attr('data-animation-speed'):200;if($that.attr('data-animation')=='false'){$animationSpeed=1;$that.css('opacity','1')}
if(!$that.hasClass('bound')){$svgIcons[i]=new Vivus($that.find('svg').attr('id'),{type:'delayed',pathTimingFunction:Vivus.EASE_OUT,animTimingFunction:Vivus.LINEAR,duration:$animationSpeed,onReady:svgInit})}
if($animationSpeed!==1){var waypoint=new Waypoint({element:$that,handler:function(){if($that.hasClass('animated-in')){waypoint.destroy();return}
checkIfReady();$that.addClass('animated-in');waypoint.destroy()},offset:$svgOffsetPos})}else{checkIfReady()}
function checkIfReady(){var $animationDelay=0;if($that.is('[data-animation-delay]')&&$that.attr('data-animation-delay').length>0&&$that.attr('data-animation')!='false'){$animationDelay=$that.attr('data-animation-delay')}
var $iconID=$that.find('svg').attr('id').replace(/[^0-9]/g,'');if($svgIcons[$iconID].isReady==!0){setTimeout(function(){$that.css('opacity','1');$svgIcons[$iconID].reset().play()},$animationDelay)}else{setTimeout(checkIfReady,50)}}
function svgInit(){$that.css({'height':parseInt($that.attr('data-size'))+'px','width':parseInt($that.attr('data-size'))+'px'})}
$that.addClass('bound')});if($('.vc_row-o-equal-height .svg-icon-holder[data-animation="true"]').length>0&&$('#nectar_fullscreen_rows').length==0){$window.on('smartresize',function(){clearTimeout($svgResizeTimeout);$svgResizeTimeout=setTimeout(function(){if($svgIcons.length>0){$('.svg-icon-holder.animated-in').each(function(){$(this).css('opacity','1');if($(this).is('[id]')){var $iconID=$(this).attr('id').replace(/[^0-9]/g,'');$svgIcons[$iconID].finish()}})}},300)})}}else{$('.svg-icon-holder').addClass('animated-in').css('opacity','1')}
$('#nectar_fullscreen_rows .svg-icon-holder.animated-in').has('svg').each(function(i){var $animationDelay=0;if($(this).is('[data-animation-delay]')&&$(this).attr('data-animation-delay').length>0&&$(this).attr('data-animation')!='false'){$animationDelay=$(this).attr('data-animation-delay')}
var $that=$(this);var $iconID=$that.find('svg').attr('id').replace(/[^0-9]/g,'');clearTimeout($animatedSVGIconTimeout[i]);if($that.attr('data-animation')=='false'){$that.css('opacity','1');$svgIcons[$iconID].finish()}else{if($(this).parents('.active').length>0||$(this).parents('#footer-outer').length>0||$('body.mobile').length>0){$svgIcons[$iconID].reset();$animatedSVGIconTimeout[i]=setTimeout(function(){$svgIcons[$iconID].play()},$animationDelay)}else{$svgIcons[$iconID].reset().stop()}}})}
function nectarFancyUlInit(){$($fullscreenSelector+'.nectar-fancy-ul').each(function(){var $animation=$(this).attr('data-animation'),$animationDelay=0;if($(this).is('[data-animation-delay]')&&$(this).attr('data-animation-delay').length>0&&$(this).attr('data-animation')!='false'){$animationDelay=$(this).attr('data-animation-delay')}
if($animation=='true'){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
setTimeout(function(){$that.find('li').each(function(i){var $that=$(this);$that.delay(i*220).transition({'opacity':'1','left':'0'},220,'easeOutCubic')})},$animationDelay);$that.addClass('animated-in');waypoint.destroy()},offset:'bottom-in-view'})}})}
function nectarFancyUlIcons(){$('.nectar-fancy-ul:not([data-list-icon="dot"]):not([data-list-icon="none"])').each(function(){var $icon=$(this).attr('data-list-icon'),$color=$(this).attr('data-color');$(this).find('li').each(function(){$(this).find('> i').remove();$(this).prepend('<i class="icon-default-style '+$icon+' '+$color+'"></i> ')})})}
function flipBoxHeights(){$('.nectar-flip-box').each(function(){var $flipBoxMinHeight=parseInt($(this).attr('data-min-height')),$flipBoxHeight=$(this).find('.flip-box-front .inner').height();if($(this).find('.flip-box-back .inner').height()>$(this).find('.flip-box-front .inner').height()){$flipBoxHeight=$(this).find('.flip-box-back .inner').height()}
if($flipBoxHeight>=$flipBoxMinHeight-80){$(this).find('> div').css('height',$flipBoxHeight+80)}else{$(this).find('> div').css('height','auto')}
if($(this).parent().hasClass('wpb_wrapper')){$(this).parent().css('transform','translateZ(0)')}})}
function flipBoxInit(){if($('.nectar-flip-box').length>0){if(nectarDOMInfo.usingMobileBrowser){$body.on('click','.nectar-flip-box',function(){$(this).toggleClass('flipped')})}
flipBoxHeights();$window.on('smartresize',flipBoxHeights)}}
function fullWidthSectionsPreInit(){$('.wpb_row .vc_col-sm-12 .nectar-slider-wrap[data-full-width="true"]').each(function(){if($(this).parents('.wpb_row.full-width-section').length==0&&$(this).parents('.wpb_row.full-width-content').length==0){$(this).parents('.wpb_row').addClass('full-width-section')}});if(!nectarDOMInfo.usingMobileBrowser&&$('body[data-boxed-style="1"]').length>0&&$('#boxed').length>0){fullWidthRowPaddingAdjustCalcBoxed()}}
function fullWidthSections(){var $windowInnerWidth=nectarDOMInfo.winW,$bodyBorderWidth=($('.body-border-right').length>0&&$windowInnerWidth>1000)?parseInt($('.body-border-right').width())*2:0,$container_width=($('.container-wrap').length>0)?parseInt($('.container-wrap').outerWidth()):$window.width(),$extended_padding=($('body[data-ext-padding]').length>0)?parseInt($('body').attr('data-ext-padding'))*2:180;var $windowWidth,$justOutOfSight,$mainContentWidth;if($('#boxed').length==1){$justOutOfSight=((parseInt($('.container-wrap').width())-parseInt($('.main-content').width()))/2)+4}else{var $extResponsivePadding=($('body[data-ext-responsive="true"]').length>0&&$windowInnerWidth>=1000)?$extended_padding:0;if($container_width-$bodyBorderWidth<=parseInt($('.main-content').css('max-width'))){$windowWidth=parseInt($('.main-content').css('max-width'))}else{$windowWidth=$container_width-$bodyBorderWidth}
var $contentWidth=parseInt($('.main-content').css('max-width'));if($('body.single-post[data-ext-responsive="true"]').length>0&&$('.container-wrap.no-sidebar').length>0){$contentWidth=$('.post-area').width();$extResponsivePadding=0}
$justOutOfSight=Math.ceil((($windowWidth+$extResponsivePadding-$contentWidth)/2))}
$('.carousel-outer').has('.carousel-wrap[data-full-width="true"]').css('overflow','visible');$('.carousel-wrap[data-full-width="true"], .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), #boxed .full-width-content').each(function(){var $leftHeaderSize=($('#header-outer[data-format="left-header"]').length>0&&$windowInnerWidth>=1000)?parseInt($('#header-outer[data-format="left-header"]').width()):0;var $bodyBorderWidth=($('.body-border-right').length>0&&$windowInnerWidth>1000)?(parseInt($('.body-border-right').width())*2)-2:0;if($('#boxed').length==1){$mainContentWidth=($('#nectar_fullscreen_rows').length==0)?parseInt($('.main-content').width()):parseInt($(this).parents('.container').width());if($('body.single-post[data-ext-responsive="true"]').length>0&&$('.container-wrap.no-sidebar').length>0&&$(this).parents('.post-area').length>0){$contentWidth=$('.post-area').width();$extResponsivePadding=0;$windowWidth=$container_width-$bodyBorderWidth;$justOutOfSight=Math.ceil((($windowWidth+$extResponsivePadding-$contentWidth)/2))}else{if($(this).parents('.page-submenu').length>0){$justOutOfSight=((parseInt($('.container-wrap').width())-$mainContentWidth)/2)}else{$justOutOfSight=((parseInt($('.container-wrap').width())-$mainContentWidth)/2)+4}}}else{if($('body.single-post[data-ext-responsive="true"]').length>0&&$('.container-wrap.no-sidebar').length>0&&$(this).parents('.post-area').length>0){$contentWidth=$('.post-area').width();$extResponsivePadding=0;$windowWidth=$container_width-$bodyBorderWidth}else{var $mainContentMaxWidth=($('#nectar_fullscreen_rows').length==0)?parseInt($('.main-content').css('max-width')):parseInt($(this).parents('.container').css('max-width'));if($container_width-$bodyBorderWidth<=$mainContentMaxWidth){$windowWidth=$mainContentMaxWidth}
$contentWidth=$mainContentMaxWidth;$extResponsivePadding=($('body[data-ext-responsive="true"]').length>0&&nectarDOMInfo.winW>=1000)?$extended_padding:0;if($leftHeaderSize>0){$extResponsivePadding=($('body[data-ext-responsive="true"]').length>0&&nectarDOMInfo.winW>=1000)?120:0}}
$justOutOfSight=Math.ceil((($windowWidth+$extResponsivePadding-$contentWidth)/2))}
var $extraSpace=0;if($(this).hasClass('carousel-wrap')){$extraSpace=1}
if($(this).hasClass('portfolio-items')){$extraSpace=5}
var $carouselWidth=($('#boxed').length==1)?$mainContentWidth+parseInt($justOutOfSight*2):$container_width-$bodyBorderWidth+$extraSpace;if($('#boxed').length==0&&$(this).hasClass('portfolio-items')&&$(this).is('[data-gutter*="px"]')&&$(this).attr('data-gutter').length>0&&$(this).attr('data-gutter')!='none'){if($container_width>1000){$carouselWidth=$container_width-$bodyBorderWidth+3}else{$carouselWidth=$container_width-$bodyBorderWidth}}
if($(this).parent().hasClass('default-style')){$mainContentWidth=($('#nectar_fullscreen_rows').length==0)?parseInt($('.main-content').width()):parseInt($(this).parents('.container').width());if($('#boxed').length!=0){$carouselWidth=($('#boxed').length==1)?$mainContentWidth+parseInt($justOutOfSight*2):$container_width+$extraSpace}else{$carouselWidth=($('#boxed').length==1)?$mainContentWidth+parseInt($justOutOfSight*2):($container_width-$bodyBorderWidth)-(($container_width-$bodyBorderWidth)*0.025)+$extraSpace;$windowWidth=($container_width-$bodyBorderWidth<=$mainContentWidth)?$mainContentWidth:($container_width-$bodyBorderWidth)-(($container_width-$bodyBorderWidth)*0.025);$justOutOfSight=Math.ceil((($windowWidth-$mainContentWidth)/2))}}else if($(this).parent().hasClass('spaced')){$mainContentWidth=($('#nectar_fullscreen_rows').length==0)?parseInt($('.main-content').width()):parseInt($(this).parents('.container').width());if($('#boxed').length!=0){$carouselWidth=($('#boxed').length==1)?$mainContentWidth+parseInt($justOutOfSight*2)-($container_width*0.02):$container_width+$extraSpace}else{$carouselWidth=($('#boxed').length==1)?$mainContentWidth+parseInt($justOutOfSight*2):($container_width-$bodyBorderWidth)-Math.ceil(($container_width-$bodyBorderWidth)*0.02)+$extraSpace;var $windowWidth2=($container_width-$bodyBorderWidth<=$mainContentWidth)?$mainContentWidth:($container_width-$bodyBorderWidth)-(($container_width-$bodyBorderWidth)*0.02);$justOutOfSight=Math.ceil((($windowWidth2-$mainContentWidth)/2)+2)}}
if(!$(this).parents('.span_9').length>0&&!$(this).parent().hasClass('span_3')&&$(this).parent().attr('id')!='sidebar-inner'&&!$(this).find('.nectar-carousel-flickity-fixed-content').length>0&&$(this).parent().attr('id')!='portfolio-extra'){if($('.single-product').length>0&&$(this).parents('#tab-description').length>0&&$(this).parents('.full-width-tabs').length==0){$(this).css({'visibility':'visible'})}else{if($(this).hasClass('portfolio-items')){if($(this).parents('.full-width-content').length==0){$(this).css({'margin-left':-$justOutOfSight,'left':0,'width':$carouselWidth,'visibility':'visible'})}}else{if($('#nectar_fullscreen_rows').length>0&&$(this).hasClass('wpb_row')){$(this).css({'margin-left':-$justOutOfSight,'width':$carouselWidth,'visibility':'visible'})}else{if($(this).parents('.full-width-content').length==0){$(this).css({'left':0,'margin-left':-$justOutOfSight,'width':$carouselWidth,'visibility':'visible'})}}}}}else if($(this).parent().attr('id')=='portfolio-extra'&&$('#full_width_portfolio').length!=0){if(!$(this).find('.nectar-carousel-flickity-fixed-content').length>0){$(this).css({'left':0,'margin-left':-$justOutOfSight,'width':$carouselWidth,'visibility':'visible'})}}else{$(this).css({'margin-left':0,'width':'auto','left':'0','visibility':'visible'})}})}
function firstFWSection(){$('.full-width-section.wpb_row, .full-width-content.wpb_row').each(function(){if(!$(this).parent().hasClass('span_9')&&!$(this).parent().hasClass('span_3')&&$(this).parent().attr('id')!='sidebar-inner'){if($(this).parents('#portfolio-extra').length>0&&$('#full_width_portfolio').length==0){return!1}
if($(this).index()=='0'&&$pageHeaderBG.length==0&&$('.page-header-no-bg').length==0&&$('.project-title').length==0&&$('body.single').length==0&&$('.project-title').length==0){$(this).addClass('first-section');var $that=$(this);setTimeout(function(){$that.addClass('loaded')},50)}}})}
function NectarParallaxScroll(el,parallaxElClass,speed,type){this.$el=el;this.$parallaxEl=this.$el.find(parallaxElClass);this.firstSection=!1;this.type=type;this.speed=speed;this.storedWinH=nectarDOMInfo.winH;this.setup();this.resize();this.update()}
NectarParallaxScroll.prototype.setup=function(){var that=this;if(this.$el.parents('#page-header-bg').length>0){this.type='page-header'}
if(this.$el.parents('.top-level').length>0&&this.$el.parents('.parallax_slider_outer').length>0||this.$el.parents('.top-level').length>0&&this.$el.hasClass('nectar-simple-slider')||this.$el.parents('.top-level').length>0&&this.$el.hasClass('nectar-recent-posts-single_featured')||this.$el.parents('.top-level').length>0&&this.$el.hasClass('column-image-bg-wrap')&&this.$el.parent().parent().is('.vc_col-sm-12:not(.child_column)')||this.$el.is('.wpb_row.top-level')||this.type=='page-header'||$('.wpb_row').length==0){this.firstSection=!0}
if($('.wpb_row').length==0&&this.$el.parents('.parallax_slider_outer').length>0&&this.$el.is('[data-full-width="true"]')||($('#portfolio-extra').length>0&&this.$el.parents('.parallax_slider_outer').length>0&&this.$el.parents('.wpb_row').length>0&&this.$el.parents('.wpb_row').index()=='0')){this.firstSection=!0}
if(nectarDOMInfo.usingFrontEndEditor&&this.type!='page-header'){this.firstSection=!1}
this.$parallaxEl.addClass('translate');setInterval(function(){if(nectarState.materialOffCanvasOpen!=!0){that.offsetTop=that.$el.offset().top;that.height=that.$el.outerHeight(!0)}},800);$(window).on('nectar-column-animation-start',this.checkColumnAnimation.bind(this));$(window).on('resize load',this.resize.bind(this));window.addEventListener("orientationchange",this.orientationChange.bind(this))};NectarParallaxScroll.prototype.checkColumnAnimation=function(){if(this.$parallaxEl.parents('.col.has-animation.triggered-animation:not(.animated-in)').length>0){this.realtimeOffsetUpdate()}};NectarParallaxScroll.prototype.realtimeOffsetUpdate=function(){var that=this;var realTimeOffset=setInterval(function(){if(nectarState.materialOffCanvasOpen!=!0){that.offsetTop=that.$el.offset().top;that.height=that.$el.outerHeight(!0)}},30);setTimeout(function(){clearInterval(realTimeOffset)},2000)}
NectarParallaxScroll.prototype.resize=function(){this.offsetTop=this.$el.offset().top;this.height=this.$el.outerHeight(!0);if(!nectarDOMInfo.usingMobileBrowser){this.storedWinH=nectarDOMInfo.winH}};NectarParallaxScroll.prototype.orientationChange=function(){if(nectarDOMInfo.usingMobileBrowser){this.offsetTop=this.$el.offset().top;this.height=this.$el.outerHeight(!0);this.storedWinH=nectarDOMInfo.winH}};NectarParallaxScroll.prototype.update=function(){if(this.offsetTop+this.height<nectarDOMInfo.scrollTop||this.offsetTop>nectarDOMInfo.scrollTop+nectarDOMInfo.winH||nectarState.materialOffCanvasOpen==!0){for(var i=0;i<this.$parallaxEl.length;i++){this.$parallaxEl[i].style.willChange='auto'}
requestAnimationFrame(this.update.bind(this));return}
for(var i=0;i<this.$parallaxEl.length;i++){if(this.firstSection===!0){this.$parallaxEl[i].style.transform='translate3d(0, '+parseInt(nectarDOMInfo.scrollTop*this.speed)+'px, 0)'}else{this.$parallaxEl[i].style.transform='translate3d(0, '+parseInt(((this.storedWinH+nectarDOMInfo.scrollTop-this.offsetTop)*this.speed))+'px, 0) scale(1.005)'}
this.$parallaxEl[i].style.willChange='transform'}
requestAnimationFrame(this.update.bind(this))};function parallaxSrollSpeed(speedString){var speed;switch(speedString){case 'slow':speed=0.6;break;case 'medium':speed=0.4;break;case 'medium_fast':speed=0.28;break;case 'fast':speed=0.20;break;case 'very_subtle':speed=0.12;break}
return speed}
function parallaxScrollInit(){if(nectarDOMInfo.usingMobileBrowser&&$('body[data-remove-m-parallax="1"]').length>0){return}
parallaxRowsBGCals();var parallaxItemCount=0;$('.nectar-recent-posts-single_featured, [data-n-parallax-bg="true"], .wpb_row.parallax_section, #page-header-bg[data-parallax="1"] .page-header-bg-image-wrap, #page-header-bg[data-parallax="1"] .nectar-video-wrap, .parallax_slider_outer .nectar-slider-wrap').each(function(){if($(this).is('[data-n-parallax-bg][data-parallax-speed]')){parallaxItemsArr[parallaxItemCount]=new NectarParallaxScroll($(this),'.parallax-layer',parallaxSrollSpeed($(this).attr('data-parallax-speed')),'regular');parallaxItemCount++}else{if($(this).find('[data-parallax-speed="fixed"]').length==0){if($(this).hasClass('nectar-slider-wrap')){parallaxItemsArr[parallaxItemCount]=new NectarParallaxScroll($(this),'.video-wrap, .image-bg',0.25,'nectar-slider')}else if($(this).hasClass('page-header-bg-image-wrap')){parallaxItemsArr[parallaxItemCount]=new NectarParallaxScroll($(this),'.page-header-bg-image',0.25,'page-header')}else if($(this).hasClass('nectar-video-wrap')&&$(this).parents('#page-header-bg').length>0){parallaxItemsArr[parallaxItemCount]=new NectarParallaxScroll($(this),'.nectar-video-bg',0.25,'page-header')}else{parallaxItemsArr[parallaxItemCount]=new NectarParallaxScroll($(this),'.row-bg.using-image',parallaxSrollSpeed($(this).find('.row-bg').attr('data-parallax-speed')),'regular')}
parallaxItemCount++}}
$(this).addClass('nectar-parallax-enabled')});$('.woocommerce-tabs .wc-tabs li').on('click',function(){setTimeout(parallaxRowsBGCals,100)})}
function parallaxRowsBGCals(){if(nectarDOMInfo.usingMobileBrowser&&$('body[data-remove-m-parallax="1"]').length>0){return}
$('.nectar-recent-posts-single_featured, [data-n-parallax-bg="true"], .wpb_row.parallax_section, #page-header-bg[data-parallax="1"] .page-header-bg-image-wrap, .parallax_slider_outer .nectar-slider-wrap .slide-bg-wrap').each(function(){var $non_page_builder_slider;if($(this).parents('.wpb_tab:not(.visible-tab)').length>0||$(this).parents('.wc-tab').length>0&&$(this).parents('.wc-tab').css('display')!=='block'){return!0}
if($(this).find('.row-bg').length==0&&$(this).find('.page-header-bg-image').length>0){}else if($(this).find('.row-bg').length==0&&$(this).find('.image-bg').length>0){$non_page_builder_slider=!1;if($('.wpb_row').length==0&&$(this).parents('.nectar-slider-wrap[data-full-width="true"]').length>0&&$(this).parents('.parallax_slider_outer').length>0&&$(this).parents('.parallax_slider_outer').index()=='1'){$non_page_builder_slider=!0}
if($('#portfolio-extra').length>0&&$(this).parents('.wpb_row').length>0&&$(this).parents('.parallax_slider_outer').length>0&&$(this).parents('.wpb_row').index()=='0'){$non_page_builder_slider=!0}
if($(this).parents('.top-level').length>0&&!nectarDOMInfo.usingFrontEndEditor||$non_page_builder_slider&&!nectarDOMInfo.usingFrontEndEditor){$(this).find('.image-bg').css({'height':Math.ceil($(this).parent().offset().top*0.25)+$(this).outerHeight(!0)})}else{$(this).find('.image-bg').css({'height':Math.ceil($window.height()*0.25)+$(this).outerHeight(!0)})}}else if($(this).find('.row-bg').length==0&&$(this).find('.video-wrap').length>0){$non_page_builder_slider=!1;if($('.wpb_row').length==0&&$(this).parents('.nectar-slider-wrap[data-full-width="true"]').length>0&&$(this).parents('.parallax_slider_outer').length>0&&$(this).parents('.parallax_slider_outer').index()=='1'){$non_page_builder_slider=!0}
if($('#portfolio-extra').length>0&&$(this).parents('.wpb_row').length>0&&$(this).parents('.parallax_slider_outer').length>0&&$(this).parents('.wpb_row').index()=='0'){$non_page_builder_slider=!0}
if($(this).parents('.top-level').length>0&&!nectarDOMInfo.usingFrontEndEditor||$non_page_builder_slider&&!nectarDOMInfo.usingFrontEndEditor){$(this).find('.video-wrap').css({'height':Math.ceil($(this).parent().offset().top*0.25)+$(this).outerHeight(!0)})}else{$(this).find('.video-wrap').css({'height':Math.ceil($window.height()*0.25)+$(this).outerHeight(!0)})}
var vid=$(this).find('.video-wrap video'),vid_w_orig=1280,vid_h_orig=720;var container_w=vid.parent().width(),container_h=vid.parent().height(),scale_w=container_w/vid_w_orig,scale_h=container_h/vid_h_orig;var scale=scale_w>scale_h?scale_w:scale_h;vid.width(scale*vid_w_orig);vid.height(scale*vid_h_orig)}else{if($(this).is('.nectar-recent-posts-single_featured')&&$(this).parents('.top-level').length>0&&!nectarDOMInfo.usingFrontEndEditor){}else if($(this).is('.nectar-simple-slider')&&$(this).parents('.top-level').length>0&&!nectarDOMInfo.usingFrontEndEditor){}else if($(this).is('.column-image-bg-wrap')&&$(this).parents('.top-level').length>0&&$(this).parent().parent().is('.vc_col-sm-12:not(.child_column)')){}else if(!$(this).hasClass('top-level')||nectarDOMInfo.usingFrontEndEditor||$(this).find('.parallax-layer').length>0){var classSelector='.row-bg';var parallaxSpeed=$(this).find('.row-bg').attr('data-parallax-speed');if($(this).find('.parallax-layer').length>0){classSelector='.parallax-layer';parallaxSpeed=$(this).attr('data-parallax-speed')}
var $ifFast=($(this).find(classSelector+'[data-parallax-speed="fast"]').length>0)?60:0;$(this).find(classSelector).css({'height':Math.ceil($window.height()*parallaxSrollSpeed(parallaxSpeed))+$(this).outerHeight(!0)+$ifFast})}}})}
function fwsClasses(){$('.wpb_wrapper > .nectar-slider-wrap[data-full-width="true"]').each(function(){if(!$(this).parent().hasClass('span_9')&&!$(this).parent().hasClass('span_3')&&$(this).parent().attr('id')!='sidebar-inner'){if($(this).parents('.wpb_row').index()=='0'){$(this).addClass('first-nectar-slider')}}});var $contentElementsNum=($('#portfolio-extra').length==0)?$('.main-content > .row > *').length:$('.main-content > .row #portfolio-extra > *').length;if($('#portfolio-extra').length==0){$contentElementsNum=($('.main-content > .row > .wpb_row').length>0)?$('.main-content > .row > .wpb_row').length:$('.main-content > .row > *').length}else{$contentElementsNum=$('.main-content > .row #portfolio-extra > *').length}
$('.container-wrap .full-width-section, .container-wrap .full-width-content:not(.page-submenu .full-width-content):not(.blog-fullwidth-wrap), .row > .nectar-slider-wrap[data-full-width="true"], .wpb_wrapper > .nectar-slider-wrap[data-full-width="true"], .portfolio-items[data-col-num="elastic"]').each(function(){if($(this).parents('.nectar-global-section.before-footer').length>0){return!0}
if(!$(this).parent().hasClass('span_9')&&!$(this).parent().hasClass('span_3')&&$(this).parent().attr('id')!='sidebar-inner'){if($(this).parents('.wpb_row').length>0){if($(this).parents('#portfolio-extra').length>0&&$('#full_width_portfolio').length==0){return!1}
if($(this).parents('.wpb_row').index()=='0'&&$pageHeaderBG.length!=0){}else if($(this).parents('.wpb_row').index()=='0'&&$pageHeaderBG.length==0&&$('.page-header-no-bg').length==0&&$('.project-title').length==0&&$(this).parents('.wpb_row').index()=='0'&&$('.project-title').length==0&&$('body[data-bg-header="true"]').length==0){if($('.single').length==0){$('.container-wrap').css('padding-top','0px')}else{$(this).addClass('first-section')}}
if($(this).parents('.wpb_row').index()==$contentElementsNum-1&&$('#respond').length==0){if($(this).attr('id')!='portfolio-filters-inline'){$('.container-wrap').css('padding-bottom','0px');$('#call-to-action .triangle').remove()}}}else{if($(this).parents('#portfolio-extra').length>0&&$('#full_width_portfolio').length==0){return!1}
if($(this).find('.portfolio-filters-inline').length==0&&$(this).attr('id')!='post-area'){if($(this).index()=='0'&&$pageHeaderBG.length!=0){}else if($(this).index()=='0'&&$pageHeaderBG.length==0&&$(this).index()=='0'&&$('.page-header-no-bg').length==0&&$(this).index()=='0'&&!$(this).hasClass('blog_next_prev_buttons')&&!$(this).hasClass('nectar-shop-outer')&&$(this).parents('.pum-container').length==0){if($('body[data-header-resize="0"]').length==1&&$('.single').length==0||$('body.material').length>0&&$('.single').length==0){if(!$('body.blog .blog-fullwidth-wrap > .masonry:not(.meta-overlaid)').length>0){$('.container-wrap').css('padding-top','0px')}}else{$(this).addClass('first-section')}}
if($(this).index()==$contentElementsNum-1&&$('#respond').length==0&&$('body.woocommerce-checkout').length==0){$('.container-wrap').css('padding-bottom','0px');$('.bottom_controls').css('margin-top','0px');$('#call-to-action .triangle').remove()}}}}});$('#portfolio-extra > .nectar-slider-wrap[data-full-width="true"], .portfolio-wrap').each(function(){if($(this).index()==$contentElementsNum-1&&$('#commentform').length==0&&$('#pagination').length==0){if(parseInt($('.container-wrap').css('padding-bottom'))>0){$(this).css('margin-bottom','-40px')}
$('#call-to-action .triangle').remove()}});$('.portfolio-filters').each(function(){if($(this).index()=='0'&&$pageHeaderBG.length!=0||$(this).index()=='0'){$(this).addClass('first-section nder-page-header')}else if($(this).index()=='0'&&$pageHeaderBG.length==0||$(this).index()=='0'){$(this).css({'margin-top':'0px'}).addClass('first-section')}});$('.portfolio-filters-inline').each(function(){if($(this).parents('.wpb_row').length>0){}else{if($(this).index()=='0'&&$pageHeaderBG.length!=0||$(this).index()=='0'){$(this).addClass('first-section nder-page-header')}else if($(this).index()=='0'&&$pageHeaderBG.length==0||$(this).index()=='0'){$(this).css({'margin-top':'-30px','padding-top':'50px'}).addClass('first-section')}}})}
function fullWidthRowPaddingAdjustCalc(){if($('#boxed').length==0){$('.full-width-section[data-top-percent], .full-width-section[data-bottom-percent], .full-width-content[data-top-percent], .full-width-content[data-bottom-percent]').each(function(){var $windowHeight=$window.width(),$topPadding=($(this).attr('data-top-percent'))?$(this).attr('data-top-percent'):'skip',$bottomPadding=($(this).attr('data-bottom-percent'))?$(this).attr('data-bottom-percent'):'skip';if($topPadding!='skip'){$(this).css('padding-top',$windowHeight*(parseInt($topPadding)/100))}
if($bottomPadding!='skip'){$(this).css('padding-bottom',$windowHeight*(parseInt($bottomPadding)/100))}})}}
function fullWidthRowPaddingAdjustCalcBoxed(){if($('#boxed').length>0){$('.full-width-section[data-top-percent], .full-width-section[data-bottom-percent], .full-width-content[data-top-percent], .full-width-content[data-bottom-percent]').each(function(){var $topPadding=($(this).attr('data-top-percent'))?$(this).attr('data-top-percent'):'skip',$bottomPadding=($(this).attr('data-bottom-percent'))?$(this).attr('data-bottom-percent'):'skip';if($topPadding!='skip'){$(this).css('padding-top',$topPadding)}
if($bottomPadding!='skip'){$(this).css('padding-bottom',$bottomPadding)}})}}
function fullWidthRowPaddingAdjust(){if(nectarDOMInfo.usingMobileBrowser){fullWidthRowPaddingAdjustCalc()}
$window.on('resize',fullWidthRowPaddingAdjustCalc)}
function fullWidthContentColumns(){var $frontEndEditorElDiv=($('body.vc_editor').length>0)?'.vc_element > ':'';$('.main-content > .row > '+$frontEndEditorElDiv+' .full-width-content, #portfolio-extra > '+$frontEndEditorElDiv+' .full-width-content, .woocommerce-tabs #tab-description > .full-width-content, .post-area.span_12 article .content-inner > .full-width-content').each(function(){if($(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col').length>1){var tallestColumn=0;var $columnInnerHeight=0;var $column_inner_selector;$(this).find('> .span_12 > '+$frontEndEditorElDiv+'  .col').each(function(){$column_inner_selector=($(this).find('> .vc_column-inner > .wpb_wrapper').length>0)?'.vc_column-inner':'.column-inner-wrap > .column-inner';var $padding=($body.is('[data-flex-cols="true"]'))?parseInt($(this).find('> .vc_column-inner').css('padding-top')):parseInt($(this).css('padding-top'));var $frontEndEditorElPadding=($frontEndEditorElDiv.length>2&&$(this).find('> .vc_column-inner').length>0)?parseInt($(this).find('> .vc_column-inner').css('padding-top')):0;if($(this).find('> '+$column_inner_selector+' > .wpb_wrapper').height()+($padding*2)+$frontEndEditorElPadding>tallestColumn){tallestColumn=$(this).find('> '+$column_inner_selector+' > .wpb_wrapper').height()+($padding*2)+$frontEndEditorElPadding}});$(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col').each(function(){$column_inner_selector=($(this).find('> .vc_column-inner > .wpb_wrapper').length>0)?'.vc_column-inner':'.column-inner-wrap > .column-inner';if($(this).find('> '+$column_inner_selector+' > .wpb_wrapper > *').length>0){if($frontEndEditorElDiv.length<2&&!$(this).parent().parent().hasClass('vc_row-o-equal-height')){$(this).css('height',tallestColumn);if($body.is('[data-flex-cols="true"]')){$(this).find('> .vc_column-inner').css('height',tallestColumn)}}else if($frontEndEditorElDiv.length>2&&!$(this).parent().parent().parent().hasClass('vc_row-o-equal-height')){$(this).css('height',tallestColumn);if($body.is('[data-flex-cols="true"]')){$(this).find('> .vc_column-inner').css('height',tallestColumn)}}}else{if($(this).is('[data-using-bg="true"]')){$(this).css('min-height',tallestColumn);if($body.is('[data-flex-cols="true"]')){$(this).find('> .vc_column-inner').css('min-height',tallestColumn)}
if($(this).is('[data-animation*="reveal"]')){$(this).find('.column-inner').css('min-height',tallestColumn)}}}});if(nectarDOMInfo.winW<1000){$(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col .wpb_row .col').css('min-height','0px')}
if($(this).hasClass('vertically-align-columns')&&nectarDOMInfo.winW>1000&&!$(this).hasClass('vc_row-o-equal-height')){$(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col').each(function(){$column_inner_selector=($(this).find('> .vc_column-inner > .wpb_wrapper').length>0)?'.vc_column-inner':'.column-inner-wrap > .column-inner';$columnInnerHeight=$(this).find('> '+$column_inner_selector+' > .wpb_wrapper').height();var $marginCalc=($(this).height()/2)-($columnInnerHeight/2);if($marginCalc<=0){$marginCalc=0}
$(this).find('> '+$column_inner_selector+' > .wpb_wrapper').css('margin-top',$marginCalc).css('margin-bottom',$marginCalc)})}}});if($('body[data-flex-cols="true"]').length==0){$('.main-content > .row > .wpb_row:not(.full-width-content).vc_row-o-equal-height').each(function(){if($(this).find('>.span_12 > '+$frontEndEditorElDiv+' .wpb_column[data-animation*="reveal"]').length>0){var tallestColumn=0;$(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col').each(function(){var $padding=parseInt($(this).find('> .column-inner-wrap > .column-inner').css('padding-top'));if($(this).find('> .column-inner-wrap > .column-inner').height()+($padding*2)>tallestColumn){tallestColumn=$(this).find('> .column-inner-wrap > .column-inner').height()+($padding*2)}});$(this).find('> .span_12 > '+$frontEndEditorElDiv+' .col').each(function(){if($(this).find('> .column-inner-wrap > .column-inner .wpb_wrapper > *').length>0){$(this).find('> .column-inner-wrap').css('height',tallestColumn)}else{$(this).css('min-height',tallestColumn);if($(this).is('[data-animation*="reveal"]')){$(this).find('.column-inner').css('min-height',tallestColumn)}}})}});$('.wpb_row.vc_row-o-equal-height>.span_12> '+$frontEndEditorElDiv+'.wpb_column[class*="padding-"][data-padding-pos="all"]').each(function(){if($(this).parents('.tabbed').length==0){$(this).css({'padding-top':$(this).css('padding-left'),'padding-bottom':$(this).css('padding-left')})}})}}
function mouseParallaxInit(){$('.wpb_row:has(.nectar-parallax-scene)').each(function(i){var $strength=parseInt($(this).find('.nectar-parallax-scene').attr('data-scene-strength'));$mouseParallaxScenes[i]=$(this).find('.nectar-parallax-scene').parallax({scalarX:$strength,scalarY:$strength});var images=$(this).find('.nectar-parallax-scene li');$.each(images,function(){if($(this).find('div').length>0){var el=$(this).find('div'),image=el.css('background-image').replace(/"/g,'').replace(/url\(|\)$/ig,'');if(image&&image!==''&&image!=='none'){images=images.add($('<img>').attr('src',image))}}})})}
function ulCheckmarks(){$('ul.checks li').each(function(){if($(this).find('i.fa-check-circle').length==0){$(this).prepend('<i class="fa fa-check-circle"></i>')}})}
function ctaLinkBG(){$body.on('click','.nectar-cta[data-using-bg="true"]:not([data-style="material"]) .link_wrap',function(e){if(!$(e.target).is('a')){$(this).find('a.link_text')[0].click()}})}
function nectarKeyframeAssist(){$('.nectar-cta[data-style="arrow-animation"]').addClass('loaded')}
function rowBGAnimations(){var $rowBGAnimationsOffsetPos=($fullscreenMarkupBool==!0)?'500%':'93%';var $rowBGAnimationsRevealOffsetPos=($fullscreenMarkupBool==!0)?'500%':'97%';var $rowBGOffset;$($fullscreenSelector+'.row-bg-wrap[data-bg-animation]:not([data-bg-animation="none"]) .row-bg').each(function(){var $animation=$(this).parents('.row-bg-wrap').attr('data-bg-animation');if($animation!='zoom-out-reveal'&&$animation.indexOf('reveal-from-')==-1){$rowBGOffset=$rowBGAnimationsOffsetPos}else{$rowBGOffset=$rowBGAnimationsRevealOffsetPos}
if(!$(this).hasClass('using-image')&&$(this).parents('.nectar-scrolling-text').length==0){if($animation!='zoom-out-reveal'&&$animation.indexOf('reveal-from-')==-1){return}}
var $that=$(this);var waypoint=new Waypoint({element:$that.parents('.row-bg-wrap'),handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
$that.parents('.inner-wrap').addClass('animated-in');if($animation=='zoom-out-reveal'||$animation.indexOf('reveal-from-')>-1||$that.parents('.nectar-scrolling-text').length>0){$that.parents('.row-bg-wrap').addClass('animated-in')}
waypoint.destroy()},offset:$rowBGOffset})})}
function columnBGAnimations(){var $colBGAnimationsOffsetPos=($fullscreenMarkupBool==!0)?'500%':'93%';var $colBGAnimationsRevealOffsetPos=($fullscreenMarkupBool==!0)?'500%':'80%';var $colBGOffset;$($fullscreenSelector+'.column-image-bg-wrap[data-bg-animation]:not([data-bg-animation="none"]):not([data-bg-animation*="displace-filter"]) .column-image-bg').each(function(){var $animation=$(this).parents('.column-image-bg-wrap').attr('data-bg-animation');if($animation!='zoom-out-reveal'&&$animation.indexOf('reveal-from-')==-1){$colBGOffset=$colBGAnimationsOffsetPos}else{if($animation=='ro-reveal-from-bottom'&&$fullscreenMarkupBool==!1){$colBGOffset='95%'}else if($animation=='ro-reveal-from-top'&&$fullscreenMarkupBool==!1){$colBGOffset='65%'}else{$colBGOffset=$colBGAnimationsRevealOffsetPos}}
var $that=$(this);var waypoint=new Waypoint({element:$that.parents('.column-image-bg-wrap'),handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
$that.parents('.inner-wrap').addClass('animated-in');if($animation=='zoom-out-reveal'||$animation.indexOf('reveal-from-')>-1){$that.parents('.column-image-bg-wrap').addClass('animated-in');$that.parents('.column-image-bg-wrap').siblings('.column-bg-overlay-wrap').addClass('animated-in');$that.parents('.vc_column-inner').addClass('revealed-bg')}
waypoint.destroy()},offset:$colBGOffset})});$($fullscreenSelector+'.column-bg-overlay-wrap[data-bg-animation]').each(function(){$colBGOffset=$colBGAnimationsRevealOffsetPos;var $that=$(this);var $animation=$(this).attr('data-bg-animation');if($animation=='zoom-out-reveal'||$animation.indexOf('reveal-from-')>0){if($that.parent().find('.column-image-bg-wrap').length==0){var waypoint=new Waypoint({element:$that,handler:function(){if($that.hasClass('animated-in')){waypoint.destroy();return}
$that.addClass('animated-in');$that.parents('.vc_column-inner').addClass('revealed-bg');waypoint.destroy()},offset:$colBGOffset})}}})}
function colAndImgAnimations(){var $colAndImgOffsetPos=($fullscreenMarkupBool==!0)?'500%':'88%';var $cascadingOffsetPos=($fullscreenMarkupBool==!0)?'500%':'70%';var $colAndImgRevealOffsetPos=($fullscreenMarkupBool==!0)?'500%':'70%';$($fullscreenSelector+'.img-with-animation').each(function(){var $that=$(this);var $animationType=($that.is('[data-animation]'))?$that.attr('data-animation'):'fade-in';if($animationType=='ro-reveal-from-right'&&$colAndImgOffsetPos=='88%'||$animationType=='ro-reveal-from-left'&&$colAndImgOffsetPos=='88%'){$colAndImgOffsetPos='75%'}
var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
if(!bypassAnimations||$('body[data-responsive="0"]').length>0){var $delay=($that.is('[data-delay]'))?$that.attr('data-delay'):0;var $elToAnimate=($that.parents('.hover-wrap').length>0)?$that.parents('.hover-wrap'):$that;if($animationType=='fade-in-from-left'||$animationType=='fade-in-from-right'){$elToAnimate.delay($delay).transition({'opacity':1,'x':'0px'},$animationDuration,$animationEasing)}else if($animationType=='fade-in-from-bottom'){$elToAnimate.delay($delay).transition({'opacity':1,'y':'0px'},$animationDuration,$animationEasing)}else if($animationType=='fade-in'){$elToAnimate.delay($delay).transition({'opacity':1},$animationDuration,$animationEasing)}else if($animationType=='grow-in'){setTimeout(function(){$elToAnimate.transition({scale:1,'opacity':1},$animationDuration,$animationEasing)},$delay)}else if($animationType=='flip-in'){setTimeout(function(){$elToAnimate.transition({rotateY:0,'opacity':1},$animationDuration,$animationEasing)},$delay)}else if($animationType=='flip-in-vertical'){setTimeout(function(){$elToAnimate.transition({rotateX:0,'opacity':1},$animationDuration,$animationEasing)},$delay)}else if($animationType=='ro-reveal-from-left'||$animationType=='ro-reveal-from-right'||$animationType=='ro-reveal-from-bottom'||$animationType=='ro-reveal-from-top'){$that.parents('.img-with-aniamtion-wrap').addClass('animated-in')}
$that.addClass('animated-in')}
waypoint.destroy()},offset:$colAndImgOffsetPos})});$($fullscreenSelector+'.nectar_cascading_images').each(function(){var $that=$(this);var $animationDelay=($(this).is('[data-animation-timing]'))?$(this).attr('data-animation-timing'):175;$animationDelay=parseInt($animationDelay);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
if(!bypassAnimations||$('body[data-responsive="0"]').length>0){$that.find('.cascading-image').each(function(i){var $that2=$(this);if($that2.attr('data-animation')=='flip-in'||$that2.attr('data-animation')=='flip-in-vertical'){setTimeout(function(){$that2.find('.inner-wrap').css({'opacity':1,'transform':'rotate(0deg) translateZ(0px)'})},i*$animationDelay)}else if($that2.attr('data-animation')=='grow-in-reveal'){setTimeout(function(){$that2.find('.inner-wrap').css({'opacity':1,'transform':'translateX(0px) translateY(0px) scale(1,1) translateZ(0px)'});$that2.find('.inner-wrap img').css({'transform':'translateX(0px) translateY(0px) scale(1,1) translateZ(0px)'})},i*$animationDelay)}else{setTimeout(function(){$that2.find('.inner-wrap').css({'opacity':1,'transform':'translateX(0px) translateY(0px) scale(1,1) translateZ(0px)'})},i*$animationDelay)}});$that.addClass('animated-in')}
waypoint.destroy()},offset:$cascadingOffsetPos})});$($fullscreenSelector+'.col.has-animation:not([data-animation*="reveal"]), '+$fullscreenSelector+'.wpb_column.has-animation:not([data-animation*="reveal"]), '+$fullscreenSelector+'.nectar-fancy-box.has-animation').each(function(i){var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
if(!bypassAnimations||$('body[data-responsive="0"]').length>0){$that.addClass('triggered-animation');$(window).trigger('nectar-column-animation-start');var $delay=$that.attr('data-delay');if($that.attr('data-animation')=='fade-in-from-left'||$that.attr('data-animation')=='fade-in-from-right'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({'opacity':1,'x':'0px'},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='fade-in-from-bottom'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({'opacity':1,'y':'0px'},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='fade-in'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({'opacity':1},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='grow-in'||$that.attr('data-animation')=='zoom-out'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({scale:1,'opacity':1},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='flip-in'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({rotateY:'0','opacity':1},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='flip-in-vertical'){$standAnimatedColTimeout[i]=setTimeout(function(){$that.transition({rotateX:'0',y:'0','opacity':1},$animationDuration,$animationEasing)},$delay)}else if($that.attr('data-animation')=='slight-twist'){$standAnimatedColTimeout[i]=setTimeout(function(){anime({targets:$that[0],rotateY:[20,0],rotateZ:[-4,0],opacity:1,easing:$animationEasing,duration:$animationDuration})},$delay)}
if($that.hasClass('boxed')){$that.addClass('no-pointer-events');setTimeout(function(){$that.removeClass('no-pointer-events')},parseInt($animationDuration)+parseInt($delay)+30)}
if($that.find('.nectar-post-grid-wrap[data-style="mouse_follow_image"]')){setTimeout(function(){$that[0].style.transform='none'},parseInt($animationDuration)+parseInt($delay)+30)}
$that.addClass('animated-in')}
waypoint.destroy()},offset:$colAndImgOffsetPos})});$($fullscreenSelector+'.wpb_column.has-animation[data-animation*="reveal"]').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
var $delay=$that.attr('data-delay');if(!bypassAnimations||$('body[data-responsive="0"]').length>0){var $columnInnerSelector=($that.find('> .vc_column-inner').length>0)?!0:!1;if($that.attr('data-animation')=='reveal-from-bottom'||$that.attr('data-animation')=='reveal-from-top'){setTimeout(function(){if($that.hasClass('animated-in')){if($columnInnerSelector==!0){$that.find('> .vc_column-inner').transition({'y':0},$animationDuration,$animationEasing)}else{$that.find('.column-inner-wrap, .column-inner').transition({'y':0},$animationDuration,$animationEasing,function(){$that.find('.column-inner-wrap, .column-inner').addClass('no-transform')})}}},$delay)}else if($that.attr('data-animation')=='reveal-from-right'||$that.attr('data-animation')=='reveal-from-left'){setTimeout(function(){if($that.hasClass('animated-in')){if($columnInnerSelector==!0){$that.find('> .vc_column-inner').transition({'x':0},$animationDuration,$animationEasing)}else{$that.find('.column-inner-wrap, .column-inner').transition({'x':0},$animationDuration,$animationEasing,function(){$that.find('.column-inner-wrap, .column-inner').addClass('no-transform')})}}},$delay)}
$that.addClass('animated-in')}
waypoint.destroy()},offset:$colAndImgRevealOffsetPos})})}
function cascadingImageBGSizing(){$('.nectar_cascading_images').each(function(){var forcedAspect=($(this).hasClass('forced-aspect'))?!0:!1;if($(this).parents('.vc_row-o-equal-height').length>0&&$(this).parents('.wpb_column').length>0){$(this).css('max-width',$(this).parents('.wpb_column').width())}
$(this).find('.bg-color').each(function(){if(forcedAspect==!0&&$(this).parents('.cascading-image').index()==0){return!0}
var $bgColorHeight=0;var $bgColorWidth=0;if($(this).parent().find('.img-wrap').length==0){var $firstSibling=$(this).parents('.cascading-image').siblings('.cascading-image[data-has-img="true"]').first();$bgColorHeight=$firstSibling.find('.img-wrap').height();$bgColorWidth=$firstSibling.find('.img-wrap').width()}else{$bgColorHeight=$(this).parent().find('.img-wrap').height();$bgColorWidth=$(this).parent().find('.img-wrap').width()}
$(this).css({'height':$bgColorHeight,'width':$bgColorWidth}).addClass('calculated')})})}
function cascadingImageInit(){if($('.nectar_cascading_images').length>0){var cascadingParallax=[];$('.nectar_cascading_images').each(function(i){imagesLoaded($(this),function(instance){cascadingImageBGSizing();if($(instance.elements[0]).is('[data-parallax="yes"]')&&!nectarDOMInfo.usingMobileBrowser&&$('#nectar_fullscreen_rows').length==0){cascadingParallax[i]=new CascadingParallax($(instance.elements[0]),$(instance.elements[0]).attr('data-parallax-intensity'))}})});$window.on('resize',cascadingImageBGSizing)}}
function CascadingParallax(el,intensity){this.$element=el;this.inView=!1;this.topLevel=!1;this.lastY=0;this.layer1Parallax=(this.$element.is('[data-layer-1-parallax="yes"]'))?!0:!1;switch(intensity){case 'subtle':this.intensity=0.09;break;case 'medium':this.intensity=0.15;break;case 'high':this.intensity=0.25;break}
this.calculatePos();this.trackView();this.animate();if($('.portfolio-filters').length>0||$('.portfolio-filters-inline').length>0){setInterval(this.calculatePos.bind(this),700)}
$window.on('resize',this.calculatePos.bind(this))}
CascadingParallax.prototype.calculatePos=function(){this.offsetTop=this.$element.offset().top;this.height=this.$element.outerHeight();this.vertCenter=nectarDOMInfo.winH/2-this.height/2};CascadingParallax.prototype.trackView=function(){var that=this;if(this.$element.parents('.top-level').length>0){this.topLevel=!0}
if('IntersectionObserver' in window){var options={rootMargin:'250px',}
var observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){var isIntersecting=entry.isIntersecting;if(isIntersecting){that.inView=!0}else{that.inView=!1}})},options);observer.observe(this.$element[0])}};CascadingParallax.prototype.animate=function(){if(nectarState.materialOffCanvasOpen==!0){window.requestAnimationFrame(this.animate.bind(this));return}
this.lastY=linearInterpolate(this.lastY,nectarDOMInfo.scrollTop,0.2);if(this.inView){var that=this;this.$element.find('.bg-layer').each(function(i){var $scale=$(this).data('scale');if(that.layer1Parallax){i=(i/1.5)+1}
if(that.topLevel===!0&&nectarDOMInfo.winW>1000){$(this)[0].style.transform='translateY('+ -(that.lastY*that.intensity*i)+'px) translateZ(0) scale('+$scale+')'}else{$(this)[0].style.transform='translateY('+ -((that.lastY-that.offsetTop+that.vertCenter)*that.intensity*i)+'px) translateZ(0) scale('+$scale+')'}})}
window.requestAnimationFrame(this.animate.bind(this))};function splitLineHeadings(){var $splitLineOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';$($fullscreenSelector+'.nectar-split-heading').each(function(){var $that=$(this);var $delay=($that.is('[data-animation-delay]'))?parseInt($that.attr('data-animation-delay')):0;var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
if(!bypassAnimations||$('body[data-responsive="0"]').length>0){var $animationDurationCap;setTimeout(function(){if($that.is('[data-animation-type="line-reveal-by-space"]')){var stagger=0;if($that.is('[data-stagger="true"]')){stagger=500/$that.find('> * > span').length;stagger=Math.min(Math.max(stagger,15),50)}
$animationDurationCap=(parseInt($animationDuration)<1100)?$animationDuration:'1100';if($that.is('[data-m-rm-animation="true"]')&&nectarDOMInfo.winW<1000){$that.find('> * > span .inner').css({'transform':'translateY(0)'})}else{$that.find('> * > span').each(function(i){if(stagger==0){$(this).find('> .inner').delay(i*stagger).transition({'y':'0px'},$animationDurationCap,$animationEasing)}else{var spanEl=$(this);var $innerEl=spanEl.find('> .inner');setTimeout(function(){$innerEl[0].style.transform='translateY(0em)'},i*stagger)}})}}else if($that.is('[data-animation-type="letter-fade-reveal"]')){$animationDurationCap=(parseInt($animationDuration)<1000)?$animationDuration:'1000';$that.find('> * > span span').each(function(i){$(this).delay(i*8).transition({'y':'0px','opacity':'1'},$animationDurationCap,$animationEasing)})}else{$that.find('.heading-line').each(function(i){$(this).find('> div').delay(i*70).transition({'y':'0px'},$animationDuration,$animationEasing)})}
$that.addClass('animated-in')},$delay)}
waypoint.destroy()},offset:$splitLineOffsetPos})})}
function progressBars(){var $progressBarsOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';var $progressSelector=($('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&nectarDOMInfo.usingMobileBrowser)?'.nectar-progress-bar':$fullscreenSelector+'.nectar-progress-bar';if(nectarDOMInfo.usingMobileBrowser&&$progressBarsOffsetPos=='bottom-in-view'){$progressBarsOffsetPos='70%'}
$($progressSelector).each(function(){var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
if($progressBarsOffsetPos=='100%'){$that.find('.bar-wrap').css('opacity','1')}
var percent=$that.find('span').attr('data-width'),$endNum=parseInt($that.find('span strong i').text());$that.find('span').transition({'width':percent+'%'},800,'easeInOutCubic');var countOptions={useEasing:!1};var $countEle=$that.find('span strong i')[0];var numAnim=new CountUp($countEle,0,$endNum,0,1,countOptions);numAnim.start();$that.find('span strong').transition({'opacity':1},550,'easeInCirc');if(percent=='100'){$that.find('span strong').addClass('full')}
$that.addClass('completed');waypoint.destroy()},offset:$progressBarsOffsetPos})})}
function animatedColBorders(){var $progressBarsOffsetPos=($fullscreenMarkupBool==!0)?'500%':'75%';$($fullscreenSelector+'.wpb_column[data-border-animation="true"]').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
var $borderDelay=($that.attr('data-border-animation-delay').length>0)?parseInt($that.attr('data-border-animation-delay')):0;setTimeout(function(){$that.find('.border-wrap').addClass('animation');$that.find('.border-wrap').addClass('completed')},$borderDelay);waypoint.destroy()},offset:$progressBarsOffsetPos})})}
function foodMenuItems(){var $foodItemOffsetPos=($fullscreenMarkupBool==!0)?'500%':'80%';$($fullscreenSelector+'.nectar_food_menu_item').parent().each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.find('.nectar_food_menu_item').each(function(i){var $that=$(this);setTimeout(function(){$that.addClass('animated-in')},i*150)});waypoint.destroy()},offset:$foodItemOffsetPos})})}
function dividers(){var $dividerOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';$($fullscreenSelector+'.divider-small-border[data-animate="yes"], '+$fullscreenSelector+'.divider-border[data-animate="yes"]').each(function(){var $lineDur=($(this).hasClass('divider-small-border'))?1300:1500,$that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.each(function(){$(this).css({'transform':'scale(0,1)','visibility':'visible'});var $that=$(this);$that.delay($that.attr('data-animation-delay')).transition({'transform':'scale(1, 1)'},$lineDur,'cubic-bezier(.18,1,.22,1)')});$that.addClass('completed');waypoint.destroy()},offset:$dividerOffsetPos})})}
function hotSpotHoverBind(){$('.nectar_image_with_hotspots[data-hotspot-icon="numerical"]').each(function(){$(this).find('.nectar_hotspot_wrap').each(function(i){var $that=$(this);setTimeout(function(){$that.find('.nectar_hotspot').addClass('pulse')},i*300)})});var hotSpotHoverTimeout=[];$('.nectar_image_with_hotspots:not([data-tooltip-func="click"]) .nectar_hotspot').each(function(i){hotSpotHoverTimeout[i]='';$(this).on('mouseover',function(){clearTimeout(hotSpotHoverTimeout[i]);$(this).parent().css({'z-index':'400','height':'auto','width':'auto'})});$(this).on('mouseleave',function(){var $that=$(this);$that.parent().css({'z-index':'auto'});hotSpotHoverTimeout[i]=setTimeout(function(){$that.parent().css({'height':'30px','width':'30px'})},300)})})}
function responsiveTooltips(){$('.nectar_image_with_hotspots').each(function(){$(this).find('.nectar_hotspot_wrap').each(function(){if(nectarDOMInfo.winW>690){if($(this).parents('.nectar_image_with_hotspots[data-tooltip-func="hover"]').length>0){$(this).find('.nectar_hotspot').removeClass('click');$(this).find('.nttip').removeClass('open')}
$(this).find('.nttip .inner a.tipclose').remove();$('.nttip').css('height','auto');$(this).css({'width':'auto','height':'auto'});$(this).find('.nttip').removeClass('force-right').removeClass('force-left').removeClass('force-top').css('width','auto');var $tipOffset=$(this).find('.nttip').offset();if($tipOffset.left>$(this).parents('.nectar_image_with_hotspots').width()-200){$(this).find('.nttip').css('width','250px')}else{$(this).find('.nttip').css('width','auto')}
if($tipOffset.left<0){$(this).find('.nttip').addClass('force-right')}else if($tipOffset.left+$(this).find('.nttip').outerWidth(!0)>nectarDOMInfo.winW){$(this).find('.nttip').addClass('force-left').css('width','250px')}else if($tipOffset.top+$(this).find('.nttip').height()+35>$window.height()&&$('#nectar_fullscreen_rows').length>0){$(this).find('.nttip').addClass('force-top')}
if($(this).find('> .open').length==0){$(this).css({'width':'30px','height':'30px'})}}else{$(this).find('.nttip').removeClass('force-left').removeClass('force-right').removeClass('force-top');$(this).find('.nectar_hotspot').addClass('click');if($(this).find('.nttip a.tipclose').length==0){$(this).find('.nttip .inner').append('<a href="#" class="tipclose"><span></span></a>')}
$('.nttip').css('height',$window.height())}})})}
function imageWithHotspotEvents(){if($('.nectar_image_with_hotspots').length==0){return}
hotSpotHoverBind();$body.on('click','.nectar_hotspot.click',function(){$(this).parents('.nectar_image_with_hotspots').find('.nttip').removeClass('open');$(this).parent().find('.nttip').addClass('open');$(this).parents('.nectar_image_with_hotspots').find('.nectar_hotspot').removeClass('open');$(this).parent().find('.nectar_hotspot').addClass('open');if(nectarDOMInfo.winW>690){$(this).parent().css({'z-index':'120','height':'auto','width':'auto'});var $that=$(this);setTimeout(function(){$that.parents('.nectar_image_with_hotspots').find('.nectar_hotspot_wrap').each(function(){if($(this).find('> .open').length==0){$(this).css({'height':'30px','width':'30px','z-index':'auto'})}})},300)}
if(nectarDOMInfo.winW<=690){$(this).parents('.wpb_row, [class*="vc_col-"]').css('z-index','200')}
return!1});$body.on('click','.nectar_hotspot.open',function(){$(this).parent().find('.nttip').removeClass('open');$(this).parent().find('.nectar_hotspot').removeClass('open');$(this).parents('.wpb_row').css('z-index','auto');return!1});$body.on('click','.nttip.open',function(e){if(nectarDOMInfo.winW<690){if(e.target&&$(e.target).is('a')){return}
$(this).parents('.nectar_image_with_hotspots').find('.nttip').removeClass('open');$(this).parents('.nectar_image_with_hotspots').find('.nectar_hotspot').removeClass('open');$(this).parents('.wpb_row').css('z-index','auto');return!1}});responsiveTooltips();$window.on('resize',responsiveTooltips)}
function imageWithHotspots(){var $imageWithHotspotsOffsetPos=($fullscreenMarkupBool==!0)?'500%':'50%';$($fullscreenSelector+'.nectar_image_with_hotspots[data-animation="true"]').each(function(){var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.addClass('completed');$that.find('.nectar_hotspot_wrap').each(function(i){var $that2=$(this);var $extrai=($that2.parents('.col.has-animation').length>0)?1:0;setTimeout(function(){$that2.addClass('animated-in')},175*(i+$extrai))});waypoint.destroy()},offset:$imageWithHotspotsOffsetPos})})}
function nectarLazyImageLoading(){var lazyItems=[].slice.call(document.querySelectorAll('[data-nectar-img-src]'));if('IntersectionObserver' in window){var options={rootMargin:'300px',}
nectarLazyImageSizing();$window.off('resize.nectarLazySizing',nectarLazyImageSizing);$window.on('resize.nectarLazySizing',nectarLazyImageSizing);var lazyItemObserver=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){var lazyItem=entry.target;var imgSrc=lazyItem.getAttribute('data-nectar-img-src');if(imgSrc){if(lazyItem.classList.contains('nectar-lazy')){lazyItem.addEventListener('load',function(){lazyItem.style.height="";lazyItem.style.width="";lazyItem.classList.add('loaded');lazyItem.removeAttribute('data-nectar-img-src');lazyItemObserver.unobserve(lazyItem)});lazyItem.src=imgSrc;var srcset=lazyItem.getAttribute('data-nectar-img-srcset');if(srcset){lazyItem.setAttribute('srcset',srcset);lazyItem.removeAttribute('data-nectar-img-srcset')}
lazyItem.parentNode.classList.add('img-loaded')}else{lazyItem.style.backgroundImage="url('"+imgSrc+"')";lazyItem.classList.add('loaded');lazyItem.removeAttribute('data-nectar-img-src');lazyItemObserver.unobserve(lazyItem)}}}})},options);lazyItems.forEach(function(lazyItem){lazyItemObserver.observe(lazyItem)})}else{lazyItems.forEach(function(lazyItem){if(lazyItem.classList.contains('nectar-lazy')){lazyItem.style.height="";lazyItem.style.width="";lazyItem.src=lazyItem.getAttribute('data-nectar-img-src');var srcset=lazyItem.getAttribute('data-nectar-img-srcset');if(srcset){lazyItem.setAttribute('srcset',srcset);lazyItem.removeAttribute('data-nectar-img-srcset')}
lazyItem.parentNode.classList.add('img-loaded');lazyItem.classList.add('loaded');lazyItem.removeAttribute('data-nectar-img-src')}else{lazyItem.style.backgroundImage="url('"+lazyItem.getAttribute('data-nectar-img-src')+"')";lazyItem.classList.add('loaded');lazyItem.removeAttribute('data-nectar-img-src')}})}}
function nectarLazyImageSizing(){$('img.nectar-lazy:not(.loaded)').each(function(){if($(this).hasClass('attachment-shop_thumbnail')||$(this).hasClass('attachment-woocommerce_thumbnail')){return!0}
$(this).css({'height':'','width':''});var heightAttr=parseInt($(this).attr('height'));var widthAttr=parseInt($(this).attr('width'));var width=($(this).parents('.nectar_cascading_images').length>0)?$(this).parents('.bg-layer').width():$(this).width();if($(this).parents('.img-with-aniamtion-wrap[data-shadow*="depth"]').length>0){width=$(this).parents('.img-with-aniamtion-wrap').width()}
if($(this).parents('.nectar-post-grid-item-bg-wrap-inner').length>0){width=$(this).parents('.nectar-post-grid-item-bg-wrap-inner').width()}
var dimensions=calculateAspectRatio(widthAttr,heightAttr,width,2000);$(this).css({'height':dimensions.height+'px','width':dimensions.width+'px'})})}
function nectarPostGridMouse(){viewIndicatorArr=[];postGridImgMouseFollowArr=[];if(!nectarDOMInfo.usingMobileBrowser){$('.nectar-post-grid[data-indicator="yes"]').each(function(i){viewIndicatorArr[i]=new NectarIconMouseFollow($(this),'view-indicator')});$('.nectar-post-grid-wrap[data-style="mouse_follow_image"] .nectar-post-grid').each(function(i){postGridImgMouseFollowArr[i]=new NectarIconMouseFollow($(this),'post-grid-images')});$('.nectar-category-grid[data-style="mouse_follow_image"]').each(function(i){postGridImgMouseFollowArr[i]=new NectarIconMouseFollow($(this),'post-grid-images')})}}
function nectarPostGridInit(){$nectarPostGridArr=[];nectarPostGridMouse();$('.nectar-post-grid-wrap').each(function(i){$nectarPostGridArr[i]=new NectarPostGrid($(this))})}
function NectarPostGrid(el){this.el=el;this.currentPage=0;this.activeFilter=1;this.activeCatTotal=0;this.settingsData=JSON.parse(this.el.attr('data-el-settings'));this.queryData=JSON.parse(this.el.attr('data-query'));this.sortable=this.el.find('.nectar-post-grid-filters').attr('data-sortable');this.initialMarkup();this.clickEvents();this.deepLinking();this.lightboxGroups();this.externalProjectLinks()}
NectarPostGrid.prototype.initialMarkup=function(){if(this.el.find('.nectar-post-grid-filters a.active').length==0){this.el.find('.nectar-post-grid-filters a:first-child').addClass('active')}
if(this.settingsData.pagination==='load-more'&&this.el.find('.load-more-wrap').length==0){if(this.el.find('.active.all-filter').length>0){this.activeFilter=this.el.find('.active.all-filter').index()+1}
this.activeCatTotal=parseInt(this.el.find('.nectar-post-grid-filters a:nth-child('+this.activeFilter+')').attr('data-total-count'));if(this.el.find('.nectar-post-grid-item').length>=this.activeCatTotal){this.el.append('<div class="load-more-wrap inactive"><a href="#" class="load-more">'+this.el.attr('data-load-more-text')+'</a></div>')}else{this.el.append('<div class="load-more-wrap"><a href="#" class="load-more">'+this.el.attr('data-load-more-text')+'</a></div>')}}};NectarPostGrid.prototype.lightboxGroups=function(){var unique_id=uniqueIdGenerate();var usingLightbox=(this.el.find('.nectar-post-grid-link.pretty_photo').length>0)?!0:!1;if($('body[data-ls="magnific"]').length>0){this.el.find('.nectar-post-grid-link.pretty_photo').addClass('magnific').addClass('gallery').removeClass('pretty_photo')}else if($('body[data-ls="fancybox"]').length>0){this.el.find('.nectar-post-grid-link.pretty_photo').attr('data-fancybox','group_'+unique_id).removeClass('pretty_photo');this.el.find('.nectar-post-grid-link[data-fancybox]').attr('data-fancybox','group_'+unique_id)}
if(usingLightbox){lightBoxInit()}}
NectarPostGrid.prototype.externalProjectLinks=function(){if(this.el.hasClass('target-blank-external-urls')){this.el.find(".nectar-post-grid-item a[href*='http://']:not([href*='"+window.location.hostname+"'])").attr("target","_blank");this.el.find(".nectar-post-grid-item a[href*='https://']:not([href*='"+window.location.hostname+"'])").attr("target","_blank")}}
NectarPostGrid.prototype.clickEvents=function(){this.el.find('.nectar-post-grid-filters h4').on('click',function(){$(this).parent().find('div').toggleClass('visible');$(this).toggleClass('visible')});var settingsData=this.settingsData;var queryData=this.queryData;var instance=this;this.el.find('.nectar-post-grid-filters a, .load-more-wrap .load-more').on('click',function(){var $that=$(this);if($that.parents('.nectar-post-grid-wrap.loading').length>0||$(this).hasClass('active')||$(this).hasClass('inactive')){return!1}
if($(this).parents('.nectar-post-grid-filters').length>0){$that.parent().find('a').removeClass('active');$that.addClass('active');instance.currentPage=0;instance.activeFilter=$that.index()+1}else{instance.currentPage++}
var $gridEl=$that.parents('.nectar-post-grid-wrap').find('.nectar-post-grid')
var $pagination=settingsData.pagination;var $action=($that.hasClass('load-more')&&$pagination==='load-more')?'load-more':'filter';var $category='';var $custom_query='';if(instance.sortable==='yes'){$category=$that.parents('.nectar-post-grid-wrap').find('.nectar-post-grid-filters a.active').attr('data-filter');$custom_query=$that.parents('.nectar-post-grid-wrap').find('.nectar-post-grid-filters a.active').attr('data-filter')}else{var skipAll=($that.parents('.nectar-post-grid-wrap').find('.nectar-post-grid-filters a').length>1)?':not(.all-filter)':'';$that.parents('.nectar-post-grid-wrap').find('.nectar-post-grid-filters a'+skipAll).each(function(){$category+=$(this).attr('data-filter')+', ';$custom_query+=$(this).attr('data-filter')+', '});$category=$category.substring(0,$category.length-2);$custom_query=$custom_query.substring(0,$custom_query.length-2)}
var $dataToPass={action:'nectar_get_post_grid_segment',post_type:queryData.post_type,cpt_name:queryData.cpt_name,custom_query_tax:$custom_query,category:$category,posts_per_page:queryData.posts_per_page,current_page:instance.currentPage,offset:queryData.offset,order:queryData.order,orderby:queryData.orderby,load_action:$action,settings:{pagination:$pagination,post_type:settingsData.post_type,image_size:settingsData.image_size,aspect_ratio_image_size:settingsData.aspect_ratio_image_size,card_bg_color:settingsData.card_bg_color,display_categories:settingsData.display_categories,display_excerpt:settingsData.display_excerpt,display_date:settingsData.display_date,color_overlay:settingsData.color_overlay,color_overlay_opacity:settingsData.color_overlay_opacity,color_overlay_hover_opacity:settingsData.color_overlay_hover_opacity,grid_style:settingsData.grid_style,heading_tag:settingsData.heading_tag,post_title_overlay:settingsData.post_title_overlay,enable_gallery_lightbox:settingsData.enable_gallery_lightbox}};$that.parents('.nectar-post-grid-wrap').addClass('loading');$.post(window.nectarLove.ajaxurl,$dataToPass,function(data){if($action==='load-more'){$gridEl.append(data)}else{$gridEl.html(data)}
if($gridEl.is('[data-animation="fade-in-from-bottom"]')){$that.parents('.nectar-post-grid-wrap').removeClass('finished-animating');$gridEl.find('.nectar-post-grid-item:not(.animated-in)').each(function(i){var $storedEl=$(this);setTimeout(function(){$storedEl.addClass('animated-in')},i*90)});setTimeout(function(){$that.parents('.nectar-post-grid-wrap').addClass('finished-animating')},950)}
if($pagination==='load-more'){instance.activeCatTotal=parseInt(instance.el.find('.nectar-post-grid-filters a:nth-child('+instance.activeFilter+')').attr('data-total-count'));if($gridEl.find('.nectar-post-grid-item').length>=instance.activeCatTotal){instance.el.find('.load-more-wrap').addClass('inactive')}else{instance.el.find('.load-more-wrap').removeClass('inactive')}}
instance.lightboxGroups();instance.externalProjectLinks();$that.parents('.nectar-post-grid-wrap').removeClass('loading');$window.trigger('resize');nectarPostGridMouse()});return!1})};NectarPostGrid.prototype.deepLinking=function(){if(typeof nectarGetQueryParam['grid-filter']!='undefined'){this.el.find('.nectar-post-grid-filters a').each(function(){var $currentText=$(this).clone(),$getText=nectarGetQueryParam['grid-filter'],$that=$(this);$currentText=$currentText.text();$currentText=$currentText.replace(/\s+/g,'-').toLowerCase();if($currentText.length>0&&$currentText.substring(0,1)==='-'){$currentText=$currentText.substring(1)}
$getText=$getText.replace(/\s+/g,'-').replace(/</g,'&lt;').replace(/"/g,'&quot;').toLowerCase();if($currentText==$getText){$(this).trigger('click')}})}};function NectarPostGridWaypoint(){var postGridOffsetPos=($fullscreenMarkupBool==!0)?'200%':'75%';$($fullscreenSelector+'.nectar-post-grid-wrap').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.find('.nectar-post-grid-filters').addClass('animated-in');$that.find('.nectar-post-grid-item').each(function(i){var $item=$(this);setTimeout(function(){$item.addClass('animated-in')},i*90)});setTimeout(function(){$that.addClass('finished-animating')},950);waypoint.destroy()},offset:postGridOffsetPos})})}
function animatedTitles(){var $animatedTitlesOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';$($fullscreenSelector+'.nectar-animated-title').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.addClass('completed');waypoint.destroy()},offset:$animatedTitlesOffsetPos})})}
function highlightedText(){var $highlightedTextOffsetPos=($fullscreenMarkupBool==!0)?'500%':'bottom-in-view';if(nectarDOMInfo.usingMobileBrowser&&$highlightedTextOffsetPos=='bottom-in-view'){$highlightedTextOffsetPos='85%'}
$($fullscreenSelector+'.nectar-highlighted-text').each(function(i){var $animationDelay=0;$(this).find('i').each(function(){$(this).replaceWith(function(){return $('<em />').append($(this).html())})});if($(this).is('[data-animation-delay]')&&$(this).attr('data-animation-delay').length>0&&$(this).attr('data-animation')!='false'){$animationDelay=$(this).attr('data-animation-delay')}
$(this).find('em:has(a)').addClass('has-link');if(bypassAnimations){$(this).find('em').addClass('animated')}
var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated')){waypoint.destroy();return}
setTimeout(function(){$that.find('em').each(function(i){var $highlighted_em=$(this);setTimeout(function(){$highlighted_em.addClass('animated')},i*300)})},$animationDelay);waypoint.destroy()},offset:$highlightedTextOffsetPos})})}
function wooProductCarouselAnimations(){var $wooProductOffsetPos=($fullscreenMarkupBool==!0)?'500%':'75%';$($fullscreenSelector+'.nectar-woo-flickity[data-animation*="fade-in"]').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('animated-in')){waypoint.destroy();return}
$that.addClass('animated-in');$that.find('.flickity-cell').each(function(i){var $el=$(this);setTimeout(function(){$el.css({'transform':'translate3d(0,0,0)','opacity':'1'})},i*100)});waypoint.destroy()},offset:$wooProductOffsetPos})})}
function pricingTableHeight(){var $tallestCol;$('.pricing-table[data-style="default"]').each(function(){$tallestCol=0;$(this).find('> div ul').each(function(){if($(this).height()>$tallestCol){$tallestCol=$(this).height()}});if($tallestCol==0){$tallestCol='auto'}
$(this).find('> div ul').css('height',$tallestCol)})}
function nectarTestimonialSliders(){$testimonialSliders=[];if(typeof NectarTestimonialSlider=='undefined'){return}
$('.testimonial_slider').each(function(i){var $that_el=$(this),$type=($(this).is('[data-style]'))?$(this).attr('data-style'):'none';$testimonialSliders[i]=new NectarTestimonialSlider($that_el,$type,resizeVideoToCover,fullWidthContentColumns);if($(this).is('.disable-height-animation:not([data-style*="multiple_visible"])')){$testimonialSliders[i].testimonialSliderHeight();setTimeout($testimonialSliders[i].testimonialSliderHeight.bind($testimonialSliders[i]),500)}
if($(this).is('.testimonial_slider[data-style="multiple_visible_minimal"]')){$testimonialSliders[i].testimonialSliderHeightMinimalMult();setTimeout($testimonialSliders[i].testimonialSliderHeightMinimalMult.bind($testimonialSliders[i]),500)}})}
function nectarTestimonialSlidersEvents(){$window.off('smartresize.nectarTestimonials');$window.off('resize.nectarTestimonialsMin');if($testimonialSliders.length>0){$window.on('smartresize.nectarTestimonials',nectarTestimonialMainResize)}
if($('.testimonial_slider[data-style="multiple_visible_minimal"]').length>0){$window.on('resize.nectarTestimonialsMin',nectarTestimonialMiniamlResize)}}
function nectarTestimonialMainResize(){for(var i=0;i<$testimonialSliders.length;i++){$testimonialSliders[i].testimonialSliderHeight();$testimonialSliders[i].testimonialHeightResize()}}
function nectarTestimonialMiniamlResize(){for(var i=0;i<$testimonialSliders.length;i++){$testimonialSliders[i].testimonialSliderHeightMinimalMult()}}
function iconList(){var $iconListOffsetPos=($fullscreenMarkupBool==!0)?'250%':'75%';$($fullscreenSelector+'.nectar-icon-list[data-animate="true"]').each(function(){var $that=$(this),waypoint=new Waypoint({element:$that,handler:function(){if($that.parents('.wpb_tab').length>0&&$that.parents('.wpb_tab').css('visibility')=='hidden'||$that.hasClass('completed')){waypoint.destroy();return}
$that.each(function(){var $listItemAnimationDelay=($that.is('[data-direction="horizontal"]'))?100:300;$(this).find('.nectar-icon-list-item').each(function(i){var $thatt=$(this);setTimeout(function(){$thatt.addClass('animated')},i*$listItemAnimationDelay)})});$that.addClass('completed');waypoint.destroy()},offset:$iconListOffsetPos})})}
function narrowParentBGC(element){var narrowedBGC;if(element.parents('.wpb_column[data-bg-color*="#"]').length>0&&element.parents('.wpb_column[data-bg-opacity="1"]').length>0){narrowedBGC=element.parents('.wpb_column').attr('data-bg-color')}else if(element.parents('.wpb_row').length>0&&element.parents('.wpb_row').find('.row-bg.using-bg-color').length>0||element.parents('.wpb_row').length>0&&element.parents('.wpb_row').find('.row-bg.using-bg-color-excluded').length>0){narrowedBGC=element.parents('.wpb_row').find('.row-bg').css('background-color')}else{if($('#nectar_fullscreen_rows').length>0){narrowedBGC=$('#nectar_fullscreen_rows > .wpb_row .full-page-inner-wrap').css('background-color')}else{narrowedBGC=$('.container-wrap').css('background-color')}}
return narrowedBGC}
function nectarIconMatchColoring(){var nectarMatchingBGCss='';$('.nectar-icon-list[data-icon-style="border"], .nectar_icon_wrap[data-style="border-animation"][data-color*="extra-color-gradient-"]').each(function(i){var $bgColorToSet=narrowParentBGC($(this));if($(this).hasClass('nectar-icon-list')){$(this).find('.list-icon-holder').css('background-color',$bgColorToSet)}else{$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});$(this).addClass('instance-'+i);nectarMatchingBGCss+='.nectar_icon_wrap.instance-'+i+' .nectar_icon:before { background-color: '+$bgColorToSet+'!important; }'}});$('body.material .nectar-button.see-through[class*="m-extra-color-gradient"]').each(function(i){var $bgColorToSet=narrowParentBGC($(this));$(this).removeClass(function(index,className){return(className.match(/(^|\s)instance-\S+/g)||[]).join(' ')});$(this).addClass('instance-'+i);nectarMatchingBGCss+='.nectar-button.see-through.instance-'+i+':after { background-color: '+$bgColorToSet+'!important; }'});nectarCreateStyle(nectarMatchingBGCss,'nectaricon-color-match')}
function oneFourthClasses(){$('.col.span_3, .vc_span3, .vc_col-sm-3').each(function(){if(!$(this).is('[data-t-w-inherits="small_desktop"]')){var $currentDiv=$(this);var $nextDiv=$(this).next('div');if($nextDiv.hasClass('span_3')&&!$currentDiv.hasClass('one-fourths')||$nextDiv.hasClass('vc_span3')&&!$currentDiv.hasClass('one-fourths')||$nextDiv.hasClass('vc_col-sm-3')&&!$currentDiv.hasClass('one-fourths')){$currentDiv.addClass('one-fourths clear-both');$nextDiv.addClass('one-fourths right-edge')}}});$('.span_12 .col.span_6').each(function(){if($(this).next('div').hasClass('span_6')&&$.trim($(this).next('div').html()).length==0){$(this).addClass('empty-second')}})}
function responsiveVideoIframesInit(){$('iframe').each(function(){if(typeof $(this).attr('src')!='undefined'&&!$(this).hasClass('skip-nectar-video-size')&&!$(this).hasClass('iframe-embed')&&$(this).parents('.ult_modal').length==0&&$(this).parents('.ls-slide').length==0&&$(this).parents('.woo-variation-product-gallery').length==0&&$(this).parents('.esg-entry-media').length==0&&$(this).parents('.wpb_video_widget.wpb_content_element').length==0){if($(this).parents('.woocommerce-product-gallery').length>0){if(!$(this).is('[width="100%"]')||!$(this).is('[height="100%"]')){return!0}}
var embedSrcLower=$(this).attr('src').toLowerCase();if(embedSrcLower.indexOf("youtube")>=0||embedSrcLower.indexOf("vimeo")>=0||embedSrcLower.indexOf("twitch.tv")>=0||embedSrcLower.indexOf("kickstarter")>=0||embedSrcLower.indexOf("embed-ssl.ted")>=0||embedSrcLower.indexOf("dailymotion")>=0){$(this).addClass('iframe-embed');if($(this).width()<$(this).parent().width()){$(this).attr('data-aspectRatio',$(this).height()/$(this).width()).removeAttr('height').removeAttr('width')}else{$(this).attr('data-aspectRatio','0.56').removeAttr('height').removeAttr('width')}
if($(this).parents('.post-area.masonry.classic').length>0){$(this).attr('data-aspectRatio','0.56').removeAttr('height').removeAttr('width')}}}})}
function responsiveVideoIframes(){$('iframe[data-aspectRatio]').each(function(){var $el=$(this),newWidth=$el.parent().width();if($(this).parents('.swiper-slide').length>0){if($(this).is(':visible')){$el.width(newWidth).height(newWidth*$el.attr('data-aspectRatio'))}}else{$el.width(newWidth).height(newWidth*$el.attr('data-aspectRatio'))}})}
function audioVideoVis(){$('.video-wrap iframe').unwrap();$('#sidebar iframe[src]').unwrap();$('audio').attr('width','100%').attr('height','100%').css('visibility','visible');$('video').css('visibility','visible');$('.wp-video').each(function(){var video=$(this).find('video').get(0);video.addEventListener('loadeddata',function(){$window.trigger('resize')},!1)});$('.main-content iframe[src]').each(function(){$(this).css({'opacity':'1','visibility':'visible'})})}
function resizeVideoToCover(){var vid_w_orig=1280,vid_h_orig=720,min_w=1200;$('.nectar-video-wrap').each(function(){var $containerHeight,$containerWidth;if($(this).find('video').length==0){return}
if($(this).parents('#page-header-bg').length>0){if($('.container-wrap.auto-height').length>0){return!1}
$containerHeight=$(this).parents('#page-header-bg').outerHeight();$containerWidth=$(this).parents('#page-header-bg').outerWidth()}else{if($(this).hasClass('column-video')){if($body.is('[data-flex-cols="true"]')){$containerHeight=$(this).parents('.vc_column-inner').outerHeight();$containerWidth=$(this).parents('.vc_column-inner').outerWidth()}else{$containerHeight=$(this).parents('.wpb_column').outerHeight();$containerWidth=$(this).parents('.wpb_column').outerWidth()}}else{$containerHeight=$(this).parents('.wpb_row').outerHeight();$containerWidth=($(this).parents('.full-width-section').length>0)?nectarDOMInfo.winW:$(this).parents('.wpb_row').outerWidth()}}
$(this).width($containerWidth);if($(this).parents('#page-header-bg').length>0){$(this).height($containerHeight)}
var scale_h=$containerWidth/vid_w_orig,scale_v=($containerHeight-$containerHeight)/vid_h_orig,scale=scale_h>scale_v?scale_h:scale_v;min_w=1280/720*($containerHeight+40);if(scale*vid_w_orig<min_w){scale=min_w/vid_w_orig}
$(this).find('video, .mejs-overlay, .mejs-poster').width(Math.ceil(scale*vid_w_orig+0));$(this).find('video, .mejs-overlay, .mejs-poster').height(Math.ceil(scale*vid_h_orig+0));$(this).scrollLeft(($(this).find('video').width()-$containerWidth)/2);$(this).scrollTop(($(this).find('video').height()-($containerHeight))/2);$(this).find('.mejs-overlay, .mejs-poster').scrollTop(($(this).find('video').height()-($containerHeight))/2);if($(this).attr('data-bg-alignment')=='center bottom'||$(this).attr('data-bg-alignment')=='bottom'){$(this).scrollTop(($(this).find('video').height()-($containerHeight+6)))}else if($(this).attr('data-bg-alignment')=='center top'||$(this).attr('data-bg-alignment')=='top'){$(this).scrollTop(0)}
$(this).addClass('position-loaded')})}
function videoBGInit(){if($('.nectar-video-wrap').length==0&&$('.nectar-youtube-bg').length==0){return}
setTimeout(function(){resizeVideoToCover();$window.on('resize',resizeVideoToCover);$('.video-color-overlay').each(function(){$(this).css('background-color',$(this).attr('data-color'))});$('.nectar-video-wrap').each(function(){if($(this).find('video').length==0){return}
var $headerVideo=($(this).parents('#page-header-bg').length>0)?!0:!1;var $that=$(this);var videoReady=setInterval(function(){if($that.find('video').get(0).readyState>3){if(!nectarDOMInfo.usingMobileBrowser){$that.transition({'opacity':'1'},400);$that.find('video').transition({'opacity':'1'},400);$that.parent().find('.video-color-overlay').transition({'opacity':'0.7'},400);if($headerVideo==!0){pageHeaderTextEffect()}}
$loadingScreenEl.addClass('loaded');setTimeout(function(){$loadingScreenEl.addClass('hidden')},1000);clearInterval(videoReady)}},60);if(nectarDOMInfo.usingMobileBrowser){if($that.parents('.full-width-section').length>0&&$that.parents('#nectar_fullscreen_rows').length==0&&!$that.hasClass('column-video')){$that.css('left','50%')}else{$that.css('left','0px')}
if($headerVideo==!0){pageHeaderTextEffect()}
$that.find('video')[0].onplay=function(){$that.transition({'opacity':'1'},400);$that.find('video').transition({'opacity':'1'},400);$that.parent().find('.video-color-overlay').transition({'opacity':'0.7'},400)}}})},300);if(nectarDOMInfo.usingMobileBrowser){$('.nectar-video-wrap').each(function(){if(!$(this).find('video').is('[muted]')){$(this).parent().find('.mobile-video-image').show();$(this).remove()}})}
$('.wpb_row:has(".nectar-video-wrap"):not(.fp-section)').each(function(i){$(this).css('z-index',100+i)});$(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.find('.nectar-youtube-bg').length>0?(youtubeUrl=$row.find('.nectar-youtube-bg span').text(),youtubeId=nectarExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),nectarInsertYoutubeVideoAsBackground($row.find('.nectar-youtube-bg'),youtubeId))):$row.find(".nectar-youtube-bg").remove();$row.find('.nectar-youtube-bg span').remove();if(!nectarDOMInfo.usingMobileBrowser){$row.find('.nectar-video-wrap, .nectar-youtube-bg').css({'opacity':'1','width':'100%','height':'100%'})}
$row.find('.video-color-overlay').transition({'opacity':'0.7'},400)});function nectarInsertYoutubeVideoAsBackground($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(){nectarInsertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg"><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},events:{onReady:function(event){event.target.mute().setLoop(!0);nectarResizeVideoBackground($element)}}}),nectarResizeVideoBackground($element),jQuery(window).on("resize",function(){nectarResizeVideoBackground($element)});setTimeout(function(){nectarResizeVideoBackground($element)},100)}
function nectarResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;ratio1/ratio2>containerW/containerH?(iframeW=containerH*(ratio1/ratio2),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(ratio2/ratio1),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 nectarExtractYoutubeId(url){if("undefined"==typeof url){return!1}
var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id?id[1]:!1}}
function blogSingle(){if($body.hasClass('single-post')&&$('.content-inner[data-has-gallery]').length>0){if($('.wp-block-gallery').length>0){$('.content-inner').find('.wp-block-gallery').each(function(i){if(i!==0){$(this).css('display','flex')}})}else{$('.content-inner').find('.gallery').each(function(i){if(i!==0){$(this).css('display','block')}})}}}
function mobileNavMegamenuCorrect(){var $mobileNavSelector=($('#top #mobile-menu').length>0)?'#top #mobile-menu ':'.off-canvas-menu-container.mobile-only ';$($mobileNavSelector+'.menu-item > ul > li > a').each(function(){if($(this).text()=='-'||$(this).text()=='–'||$(this).parent().hasClass('hide-title')||$(this).find('> .remove-menu-item-title').length>0){var $navLIs=$(this).parent().find('> ul > li').clone();if($(this).parent().find('> .widget-area-active').length>0){$(this).parent().find('> a').remove()}else{$(this).parent().find('ul').remove();$(this).parent().parent().append($navLIs);$(this).parent().remove()}}})}
function materialSkinOCM_Init(){if($('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0){OCM_materialWidth();if($wpAdminBar.length>0){var $topToolBar=$wpAdminBar.detach();$('.ocm-effect-wrap-inner').append($topToolBar)}}
OCM_materialIconMarkup();materialSkinTransition();$window.on('resize',OCM_materialSize)}
function materialSkinTransition(){if($('body.material[data-header-search="true"]').length>0||$('body.material .ocm-effect-wrap').length>0){var materialTransTO,allowMaterialResizeCalc=!1,orientTrack=0,$winDOMWidth=nectarDOMInfo.winW,$winDOMHeight=nectarDOMInfo.winH;window.addEventListener("orientationchange",function(){orientTrack=1});$window.on('resize',function(){if(nectarDOMInfo.usingMobileBrowser){if(($window.width()!=$winDOMWidth&&$window.height!=$winDOMHeight)||orientTrack===1){$winDOMWidth=nectarDOMInfo.winW;$winDOMHeight=nectarDOMInfo.winH;orientTrack=0;allowMaterialResizeCalc=!0}}else{allowMaterialResizeCalc=!0}
if(allowMaterialResizeCalc){clearTimeout(materialTransTO);$('body[data-slide-out-widget-area-style="slide-out-from-right"] > a.slide_out_area_close, .material #header-outer, .ocm-effect-wrap, .ocm-effect-wrap-shadow').addClass('no-material-transition');materialTransTO=setTimeout(function(){$('body[data-slide-out-widget-area-style="slide-out-from-right"] > a.slide_out_area_close, .material #header-outer, .ocm-effect-wrap, .ocm-effect-wrap-shadow').removeClass('no-material-transition')},250);OCM_materialWidth();allowMaterialResizeCalc=!1}})}}
function calculateHoverNavMinHeight(){var $widgetHeights=0;$('#slide-out-widget-area > .widget').each(function(){$widgetHeights+=$(this).height()});var $menuHeight;if(($offCanvasEl.height()-25-$('.bottom-meta-wrap').outerHeight(!0)-$widgetHeights)>$('#slide-out-widget-area .off-canvas-menu-container:last-child').height()){$menuHeight=$offCanvasEl.height()-25-$('.bottom-meta-wrap').outerHeight(!0)-$widgetHeights}else{$menuHeight=$('#slide-out-widget-area .off-canvas-menu-container:last-child').height()}
$('#slide-out-widget-area .inner').css({'height':'auto','min-height':$menuHeight})}
function OCM_materialWidth(){$('#slide-out-widget-area.slide-out-from-right').css({'padding-top':$window.height()*0.1,'padding-bottom':$window.height()*0.1});OCM_overflowState()}
function OCM_materialIconMarkup(){if($('body.material').length>0&&$('body[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length==0){if($('body[data-slide-out-widget-area-style*="fullscreen"]').length==0&&$('#mobile-menu').length==0){var $menuIconClone=$('header#top nav ul .slide-out-widget-area-toggle a > span > i').clone();$menuIconClone.addClass('hover-effect');$('header#top nav ul .slide-out-widget-area-toggle a > span').append($menuIconClone);var $menuIconClone2=$('header#top .slide-out-widget-area-toggle.mobile-icon a > span > i').clone();$menuIconClone2.addClass('hover-effect');$('header#top .slide-out-widget-area-toggle.mobile-icon a > span').append($menuIconClone2)}
$('body:not([data-slide-out-widget-area-style="slide-out-from-right"]) header#top .slide-out-widget-area-toggle a > span').append($('<span class="close-wrap"> <span class="close-line close-line1"></span> <span class="close-line close-line2"></span> </span>'));setTimeout(function(){$('header#top .slide-out-widget-area-toggle a > span .close-wrap').addClass('loaded')},200)}
if($('body.material #boxed').length>0&&$('body[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length>0&&$('.ocm-effect-wrap').length>0){$('#ajax-content-wrap > .slide-out-widget-area-toggle.slide-out-hover-icon-effect').insertAfter('.ocm-effect-wrap')}
if($('body.material').length>0&&$('body[data-slide-out-widget-area-style*="fullscreen"]').length==0&&$('.ocm-effect-wrap').length>0){$('body.material #slide-out-widget-area.slide-out-from-right .slide_out_area_close').insertAfter('.ocm-effect-wrap');$('#slide-out-widget-area-bg').insertAfter('.ocm-effect-wrap');$offCanvasEl.insertAfter('.ocm-effect-wrap')}}
function OCM_materialSize(){if($('.ocm-effect-wrap.material-ocm-open').length>0){$('.ocm-effect-wrap').css({'height':$window.height()});$('.ocm-effect-wrap-inner').css({'padding-top':nectarDOMInfo.adminBarHeight})}}
function OCM_dropdownMarkup(){var $nectar_ocm_dropdown_func=($('#slide-out-widget-area[data-dropdown-func]').length>0)?$offCanvasEl.attr('data-dropdown-func'):'default';if($nectar_ocm_dropdown_func=='separate-dropdown-parent-link'){$('#slide-out-widget-area .off-canvas-menu-container li.menu-item-has-children').append('<span class="ocm-dropdown-arrow"><i class="fa fa-angle-down"></i></span>')}}
function OCM_dropdownIconPos(){$('#slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.menu-item-has-children').each(function(){$(this).find('.ocm-dropdown-arrow').css({'top':$(this).find('a').height()/2})});$('#slide-out-widget-area.fullscreen-split .off-canvas-menu-container li.menu-item-has-children').each(function(){$(this).find('.ocm-dropdown-arrow').css({'top':$(this).find('a').height()/2})})}
function OCM_overflowState(){if(nectarDOMInfo.winW<1000||$('body > #boxed').length>0||$('.ocm-effect-wrap-inner > #boxed').length>0){$('#slide-out-widget-area.fullscreen .off-canvas-social-links, #slide-out-widget-area.fullscreen-alt .off-canvas-social-links').appendTo('#slide-out-widget-area .inner');$('#slide-out-widget-area.fullscreen .bottom-text, #slide-out-widget-area.fullscreen-alt .bottom-text').appendTo('#slide-out-widget-area .inner')}else{$('#slide-out-widget-area.fullscreen .off-canvas-social-links,#slide-out-widget-area.fullscreen-alt .off-canvas-social-links').appendTo('#slide-out-widget-area .inner-wrap');$('#slide-out-widget-area.fullscreen .bottom-text, #slide-out-widget-area.fullscreen-alt .bottom-text').appendTo('#slide-out-widget-area .inner-wrap')}
if($('.slide-out-from-right.open .off-canvas-menu-container.mobile-only').length>0&&$('body.mobile').length==0){$('#slide-out-widget-area .slide_out_area_close').trigger('click')}
OCM_dropdownIconPos()}
function OCM_slideOutRightHoverOpen(){calculateHoverNavMinHeight();if(nectarDOMInfo.usingMobileBrowser&&$('#slide-out-widget-area.open').length>0){OCM_mobileSlideOutRightHoverCloseCheck();return!1}
if(nectarDOMInfo.usingMobileBrowser){$('.slide-out-widget-area-toggle a').attr('aria-expanded','true');$offCanvasBG.css({'height':'100%','width':'100%'})}
$offCanvasEl.css({'transform':'translate3d(0,0,0)'}).addClass('open');var withinCustomBreakpoint=mobileBreakPointCheck();if(nectarDOMInfo.winW<1000){withinCustomBreakpoint=!0}
var alignmentPosition=(window.nectarOptions&&window.nectarOptions.mobile_header_format&&window.nectarOptions.mobile_header_format==='centered-menu'&&withinCustomBreakpoint)?'left':'right';if($('header#top .container .span_9 > .slide-out-widget-area-toggle').length>0){var $hIconEl=$('.slide-out-hover-icon-effect'),secondaryBarHeight=nectarDOMInfo.secondaryHeaderHeight;var $nectarHamMenuPos;var $withinCustomBreakpoint=mobileBreakPointCheck();if($('#header-outer[data-format="centered-menu-bottom-bar"]').length>0){$withinCustomBreakpoint=!1}
if($('body.mobile').length>0||$withinCustomBreakpoint){$hIconEl.css({'top':$('header#top .span_9 > .slide-out-widget-area-toggle a').offset().top-nectarDOMInfo.scrollTop});if(alignmentPosition==='left'){$hIconEl.css({'left':parseInt($('#header-outer header > .container').css('padding-right'))+1,'right':''})}else{$hIconEl.css({'right':parseInt($('#header-outer header > .container').css('padding-right'))+1,'left':''})}}else{if($bodyBorderHeaderColorMatch){var $extraCushion=($('#header-outer[data-has-menu="false"]').length>0)?2:1;$hIconEl.css({'top':nectarDOMInfo.adminBarHeight+secondaryBarHeight+parseInt($('header#top nav >ul .slide-out-widget-area-toggle a').css('padding-top')),'right':29+$extraCushion})}else{if($('#header-outer[data-format="centered-menu-bottom-bar"]').length>0){$nectarHamMenuPos=($('header#top .span_9 > .slide-out-widget-area-toggle').css('display')=='flex')?$('header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon a').offset():$('header#top .span_3 .right-side .slide-out-widget-area-toggle > div').offset();if($('#top .span_3 .slide-out-widget-area-toggle.mobile-icon').css('display')=='flex'){$nectarHamMenuPos=$('#top .span_3 .slide-out-widget-area-toggle.mobile-icon a').offset()}
$hIconEl.css({'top':parseInt($nectarHamMenuPos.top)-nectarDOMInfo.scrollTop,'right':parseInt($('#header-outer header >.container').css('padding-right'))+2,'left':''})}else{if($body.hasClass('ascend')){$nectarHamMenuPos=($('header#top .span_9 > .slide-out-widget-area-toggle').css('display')=='block')?$('header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon').position():$('header#top nav .buttons .slide-out-widget-area-toggle > div a > span:not(.screen-reader-text)').position()}else{$nectarHamMenuPos=($('header#top .span_9 > .slide-out-widget-area-toggle').css('display')=='block')?$('header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon').position():$('header#top nav .buttons .slide-out-widget-area-toggle > div').position()}
if($('#header-secondary-outer.hide-up').length>0){secondaryBarHeight=0}
$hIconEl.css({'top':nectarDOMInfo.adminBarHeight+secondaryBarHeight+parseInt($nectarHamMenuPos.top),'right':parseInt($('#header-outer header >.container').css('padding-right'))+2,'left':''})}}}}
$('.slide-out-hover-icon-effect .lines-button').removeClass('no-delay').addClass('unhidden-line');if($('#header-outer[data-permanent-transparent="1"]').length==0&&$('#nectar_fullscreen_rows').length==0&&!nectarDOMInfo.usingFrontEndEditor&&nectarDOMInfo.winW>1000){if(!(nectarDOMInfo.scrollTop==0&&$('#header-outer.transparent').length>0)){if($('body.mobile').length==0&&$bodyBorderHeaderColorMatch){$headerOuterEl.attr('data-transparent','true').addClass('no-bg-color').addClass('slide-out-hover');$('#header-outer header, #header-outer > .cart-outer').addClass('all-hidden')}}
if($('#header-outer[data-remove-fixed="1"]').length==0&&$('body.mobile').length==0&&$bodyBorderHeaderColorMatch){if(headerResize==!0){$window.off('scroll',bigNav);$window.off('scroll',smallNav)}else{$window.off('scroll',opaqueCheck);$window.off('scroll',transparentCheck)}}}
if(!nectarDOMInfo.usingMobileBrowser){$window.on('mousemove.rightOffsetCheck',OCM_slideOutRightHoverCloseCheck)}else{return!1}}
function OCM_slideOutRightHoverCloseCheck(e){var $windowWidth=$window.width();var $ocmHoverWidth=$offCanvasEl.outerWidth();var withinCustomBreakpoint=mobileBreakPointCheck();if(nectarDOMInfo.winW<1000){withinCustomBreakpoint=!0}
var alignmentPosition=(window.nectarOptions&&window.nectarOptions.mobile_header_format&&window.nectarOptions.mobile_header_format==='centered-menu'&&withinCustomBreakpoint)?'left':'right';var conditionalShow=!1;if(alignmentPosition!=='left'){conditionalShow=(e.clientX<$windowWidth-parseInt($ocmHoverWidth)-$bodyBorderWidth)}else{conditionalShow=(e.clientX>parseInt($ocmHoverWidth)+$bodyBorderWidth)}
if(conditionalShow&&$offCanvasEl.hasClass('mouse-accessed')){$offCanvasEl.removeClass('mouse-accessed');$window.off('mousemove.rightOffsetCheck',OCM_slideOutRightHoverCloseCheck);$offCanvasEl.css({'transform':''}).removeClass('open');$headerOuterEl.removeClass('style-slide-out-from-right');$('.slide-out-hover-icon-effect .lines-button').removeClass('unhidden-line').addClass('no-delay');if($('#header-outer[data-permanent-transparent="1"]').length==0){if($('#header-outer[data-remove-fixed="1"]').length==0&&$('body.mobile').length==0&&$bodyBorderHeaderColorMatch){if($('body.mobile').length==0){$headerOuterEl.removeClass('no-bg-color');$('#header-outer header, #header-outer > .cart-outer').removeClass('all-hidden')}}
if($('#header-outer[data-remove-fixed="1"]').length==0&&$('body.mobile').length==0&&$bodyBorderHeaderColorMatch){if(headerResize==!0){$window.off('scroll.headerResizeEffect');if(nectarDOMInfo.scrollTop==0){$window.on('scroll.headerResizeEffect',smallNav);if($('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&$bodyBorderTop.length>0&&$bodyBorderHeaderColorMatch==!0&&$('#header-outer.pseudo-data-transparent').length>0){$('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({'padding':'0'},{queue:!1,duration:250,easing:'easeOutCubic'})}}else{$window.on('scroll.headerResizeEffect',bigNav)}}else{$window.off('scroll.headerResizeEffectOpaque');$window.on('scroll.headerResizeEffectOpaque',opaqueCheck)}}}}}
function OCM_mobileSlideOutRightHoverCloseCheck(){if(nectarDOMInfo.usingMobileBrowser){$('.slide-out-widget-area-toggle a').attr('aria-expanded','false');$offCanvasBG.css({'height':'1px','width':'1px'})}
$offCanvasEl.css({'transform':''}).removeClass('open');$headerOuterEl.removeClass('style-slide-out-from-right');$('.slide-out-hover-icon-effect .lines-button').removeClass('unhidden-line').addClass('no-delay');if($('#header-outer[data-permanent-transparent="1"]').length==0){$headerOuterEl.removeClass('no-bg-color');$('#header-outer header').removeClass('all-hidden')}
if($('#header-outer[data-remove-fixed="1"]').length==0&&$('body.mobile').length==0&&$bodyBorderHeaderColorMatch){if(headerResize==!0){$window.off('scroll.headerResizeEffect');if(nectarDOMInfo.scrollTop==0){$window.on('scroll.headerResizeEffect',smallNav);if($('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&$bodyBorderTop.length>0&&$bodyBorderHeaderColorMatch==!0&&$('#header-outer.pseudo-data-transparent').length>0){$('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({'padding':'0'},{queue:!1,duration:250,easing:'easeOutCubic'})}}else{$window.on('scroll.headerResizeEffect',bigNav)}}else{$window.off('scroll.headerResizeEffectOpaque');$window.on('scroll.headerResizeEffectOpaque',opaqueCheck)}}}
function OCM_slideOutRightHoverInit(){if($('#ajax-content-wrap > .slide-out-widget-area-toggle').length==0){var $iconInsertLocation=($('.slide-out-widget-area-toggle[data-custom-color="true"]').length>0)?'#slide-out-widget-area > div':'#slide-out-widget-area';$('<div class="slide-out-widget-area-toggle slide-out-hover-icon-effect" data-icon-animation="simple-transform"><div> <a href="#sidewidgetarea" class="closed"> <span> <i class="lines-button x2"> <i class="lines"></i> </i> </span> </a> </div> </div>').insertAfter($iconInsertLocation);if($('#header-outer[data-has-menu="true"]').length>0||$('body[data-header-search="true"]').length>0||$('.slide-out-widget-area-toggle a.using-label').length>0||$('.slide-out-widget-area-toggle[data-custom-color="true"]').length>0){$('.slide-out-widget-area-toggle').addClass('small')}}
if(!nectarDOMInfo.usingMobileBrowser){$body.on('mouseenter','#header-outer .slide-out-widget-area-toggle:not(.std-menu) a',OCM_slideOutRightHoverOpen);$offCanvasEl.on('mouseenter',function(){$(this).addClass('mouse-accessed')})}else{$body.on('click','.slide-out-widget-area-toggle:not(.std-menu) a',OCM_slideOutRightHoverOpen);$body.on('click','#slide-out-widget-area-bg',OCM_slideOutRightMobileClose)}
$window.on('smartresize',calculateHoverNavMinHeight)}
function OCM_slideOutRightMobileClose(){if($('.slide-out-from-right-hover.open').length>0){$('.slide-out-widget-area-toggle:not(.std-menu) a').first().addClass('non-human-allowed').trigger('click');setTimeout(function(){$('.slide-out-widget-area-toggle:not(.std-menu) a').removeClass('non-human-allowed')},100)}}
function OCM_slideOutRightOpen(){var $slideOutAmount=($bodyBorderTop.length>0&&$('body.mobile').length==0)?$bodyBorderTop.height():0;var withinCustomBreakpoint=mobileBreakPointCheck();if(nectarDOMInfo.winW<1000){withinCustomBreakpoint=!0}
var alignmentPosition=(window.nectarOptions&&window.nectarOptions.mobile_header_format&&window.nectarOptions.mobile_header_format==='centered-menu'&&withinCustomBreakpoint)?'left':'right';if($('body.material').length==0){$('#slide-out-widget-area .inner').css({'height':'auto','min-height':$offCanvasEl.height()-25-$('.bottom-meta-wrap').height()});if($('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"] .inner > div:first-of-type > .menu > li:first-child').length>0&&$('#slide-out-widget-area .inner > div:first-of-type > .menu > li:first-child').hasClass('menu-item-has-children')){$('#slide-out-widget-area .inner > div:first-of-type').css({'margin-top':'50px'})}
if($('#boxed').length==0){$('.container-wrap, .home-wrap, #footer-outer:not(#nectar_fullscreen_rows #footer-outer), .nectar-box-roll, #page-header-wrap .page-header-bg-image, #page-header-wrap .nectar-video-wrap, #page-header-wrap .mobile-video-image, #page-header-wrap #page-header-bg > .container, .page-header-no-bg, div:not(.container) > .project-title').stop(!0).transition({x:(alignmentPosition==='left')?'300px':'-300px'},700,'easeInOutCubic');var $withinCustomBreakpoint=mobileBreakPointCheck();if($('#header-outer[data-format="centered-logo-between-menu"]').length==0||$withinCustomBreakpoint){if($('#header-outer[data-transparency-option="1"]').length==0||($('#header-outer[data-transparency-option="1"]').length>0&&$('#header-outer[data-full-width="true"]').length==0)||$('body.mobile').length>0){$headerOuterEl.stop(!0).css('transform','translateY(0)').transition({x:(alignmentPosition==='left')?(300+$slideOutAmount)+'px':'-'+(300+$slideOutAmount)+'px'},700,'easeInOutCubic')}else{$headerOuterEl.stop(!0).css('transform','translateY(0)').transition({x:(alignmentPosition==='left')?(300+$slideOutAmount)+'px':'-'+(300+$slideOutAmount)+'px','background-color':'transparent','border-bottom':'1px solid rgba(255,255,255,0.22)'},700,'easeInOutCubic')}}else{$('#header-outer header#top nav > ul.buttons, body:not(.material) #header-outer:not([data-format="centered-logo-between-menu"]) .cart-outer .cart-menu-wrap').transition({x:(alignmentPosition==='left')?'300px':'-300px'},700,'easeInOutCubic')}}
$offCanvasEl.stop(!0).transition({x:(alignmentPosition==='left')?$slideOutAmount+'px':'-'+$slideOutAmount+'px'},700,'easeInOutCubic').addClass('open');if($('#boxed').length==0){if($('#header-outer[data-full-width="true"]').length>0&&!$body.hasClass('mobile')){$headerOuterEl.addClass('highzI');$('#ascrail2000').addClass('z-index-adj');if($('#header-outer[data-format="centered-logo-between-menu"]').length==0){if($bodyBorderWidth==0){$('header#top #logo').stop(!0).transition({x:(300+$slideOutAmount)+'px'},700,'easeInOutCubic')}}
$('header#top .slide-out-widget-area-toggle .lines-button:not(.legacy-double)').addClass('close');$('body #header-outer nav > ul > li > a').css({'margin-bottom':'0'})}}
$headerOuterEl.addClass('style-slide-out-from-right');$offCanvasBG.css({'height':'100%','width':'100%'}).stop(!0).transition({'opacity':1},700,'easeInOutCubic',function(){$('.slide-out-widget-area-toggle:not(.std-menu) > div > a').removeClass('animating')});if($('#header-outer[data-format="centered-logo-between-menu"]').length==0){var $logoWidth=($('#logo img:visible').length>0)?$('#logo img:visible').width():$('#logo').width();if($('header#top nav > .sf-menu').offset().left-$logoWidth-300<20){$headerOuterEl.addClass('hidden-menu')}}else{$headerOuterEl.addClass('hidden-menu-items')}
if($('#header-outer[data-remove-fixed="1"]').length==0&&nectarDOMInfo.winW>1000){if($bodyBorderHeaderColorMatch==!0&&headerResize==!0&&$headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.stop(!0).transition({y:'0'},0).addClass('transparent').css('transition','transform');$window.off('scroll',bigNav);$window.off('scroll',smallNav)}else if($bodyBorderHeaderColorMatch==!0&&$headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.addClass('transparent');$window.off('scroll',opaqueCheck);$window.off('scroll',transparentCheck)}}}else if($('body.material').length>0){if($loadingScreenEl.length>0&&$('.ocm-effect-wrap #ajax-loading-screen').length>0){$loadingScreenEl.insertBefore('.ocm-effect-wrap')}
if(nectarDOMInfo.scrollTop>40){$('body[data-hhun="1"] #header-secondary-outer').addClass('hidden')}
setTimeout(function(){$('.slide-out-widget-area-toggle:not(.std-menu) > div > a').removeClass('animating')},300);$('#slide-out-widget-area, #slide-out-widget-area-bg, #header-outer .slide-out-widget-area-toggle').addClass('material-open');if($('body:not(.mobile) #header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&$('#header-outer[data-format="centered-menu-bottom-bar"] .span_9').css('display')!='none'){$('#header-outer:not(.fixed-menu)').css('top',nectarDOMInfo.adminBarHeight-nectarDOMInfo.scrollTop+'px');if($headerSecondaryEl.length>0&&$('#header-outer.fixed-menu').length>0){$headerSecondaryEl.css('visibility','hidden')}}
$('#ajax-content-wrap').css({'position':'relative','top':'-'+nectarDOMInfo.scrollTop+'px'});$('.ocm-effect-wrap-inner').css({'padding-top':nectarDOMInfo.adminBarHeight});$('#fp-nav').addClass('material-ocm-open');nectarState.materialOffCanvasOpen=!0;$body.addClass('material-ocm-open');$body.addClass('nectar-no-flex-height');$('.ocm-effect-wrap').css({'height':nectarDOMInfo.winH});setTimeout(function(){$('.ocm-effect-wrap').addClass('material-ocm-open')},40);$('body > .slide_out_area_close').addClass('follow-body');$('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').addClass('effect-shown');$('body[data-hhun="1"]:not(.no-scroll):not(.mobile) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({'transition':'none','transform':'translateY('+nectarDOMInfo.adminBarHeight+'px)'});setTimeout(function(){$('body > .slide_out_area_close').addClass('material-ocm-open')},350)}}
function OCM_slideOutRightClose(){if($('body.material').length==0){var withinCustomBreakpoint=mobileBreakPointCheck();if(nectarDOMInfo.winW<1000){withinCustomBreakpoint=!0}
var alignmentPosition=(window.nectarOptions&&window.nectarOptions.mobile_header_format&&window.nectarOptions.mobile_header_format==='centered-menu'&&withinCustomBreakpoint)?'left':'right';$('.container-wrap, .home-wrap, #footer-outer:not(#nectar_fullscreen_rows #footer-outer), .nectar-box-roll, #page-header-wrap .page-header-bg-image,  #page-header-wrap .nectar-video-wrap, #page-header-wrap .mobile-video-image, #page-header-wrap #page-header-bg > .container, .page-header-no-bg, div:not(.container) > .project-title').stop(!0).transition({x:'0px'},700,'easeInOutCubic');if($('#header-outer[data-transparency-option="1"]').length>0&&$('#boxed').length==0){var $currentRowBG=($('#header-outer[data-current-row-bg-color]').length>0)?$headerOuterEl.attr('data-current-row-bg-color'):$headerOuterEl.attr('data-user-set-bg');$headerOuterEl.stop(!0).transition({x:'0px','background-color':$currentRowBG},700,'easeInOutCubic')}else{$headerOuterEl.stop(!0).transition({x:'0px'},700,'easeInOutCubic')}
$offCanvasEl.stop(!0).transition({x:(alignmentPosition==='left')?'-301px':'301px'},700,'easeInOutCubic').removeClass('open');if($('#boxed').length==0){if($('#header-outer[data-full-width="true"]').length>0){$headerOuterEl.removeClass('highzI');$('header#top #logo').stop(!0).transition({x:'0px'},700,'easeInOutCubic');$('.lines-button').removeClass('close')}}
if($('#header-outer[data-format="centered-logo-between-menu"]').length>0){$('#header-outer header#top nav > ul.buttons, #header-outer .cart-outer .cart-menu-wrap').stop(!0).transition({x:'0px'},700,'easeInOutCubic')}
$offCanvasBG.stop(!0).transition({'opacity':0},700,'easeInOutCubic',function(){$('.slide-out-widget-area-toggle a').removeClass('animating');$(this).css({'height':'1px','width':'1px'});if($('#header-outer[data-remove-fixed="1"]').length==0){if($headerOuterEl.hasClass('parallax-contained')&&nectarDOMInfo.scrollTop>0&&$('#header-outer[data-permanent-transparent="1"]').length==0){$headerOuterEl.removeClass('parallax-contained').addClass('detached').removeClass('transparent')}else if(nectarDOMInfo.scrollTop==0&&$('body[data-hhun="1"]').length>0&&$('#page-header-bg[data-parallax="1"]').length>0||nectarDOMInfo.scrollTop==0&&$('body[data-hhun="1"]').length>0&&$('.parallax_slider_outer').length>0){if($('#header-outer[data-transparency-option="1"]').length>0){$headerOuterEl.addClass('transparent')}
$headerOuterEl.addClass('parallax-contained').removeClass('detached')}}
$('.container-wrap').css('transform','none')});$headerOuterEl.removeClass('style-slide-out-from-right');if($('#header-outer[data-remove-fixed="1"]').length==0){if($bodyBorderHeaderColorMatch==!0&&headerResize==!0&&nectarDOMInfo.winW>1000){$window.off('scroll.headerResizeEffect');if(nectarDOMInfo.scrollTop==0){$window.on('scroll.headerResizeEffect',smallNav);if($('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&$bodyBorderTop.length>0&&$bodyBorderHeaderColorMatch==!0&&$('#header-outer.pseudo-data-transparent').length>0){$('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({'padding':'0'},{queue:!1,duration:250,easing:'easeOutCubic'})}}else{$window.on('scroll.headerResizeEffect',bigNav)}
if($headerOuterEl.hasClass('pseudo-data-transparent')){$headerOuterEl.attr('data-transparent-header','false').removeClass('pseudo-data-transparent').removeClass('transparent')}
$headerOuterEl.css('transition','transform')}else if($bodyBorderHeaderColorMatch==!0&&nectarDOMInfo.winW>1000){$window.off('scroll.headerResizeEffectOpaque');$window.on('scroll.headerResizeEffectOpaque',opaqueCheck);$headerOuterEl.css('transition','transform');if($headerOuterEl.hasClass('pseudo-data-transparent')){$headerOuterEl.attr('data-transparent-header','false').removeClass('pseudo-data-transparent').removeClass('transparent')}}}}else if($('body.material').length>0){$offCanvasEl.removeClass('open');$('#slide-out-widget-area, #slide-out-widget-area-bg, #header-outer .slide-out-widget-area-toggle').removeClass('material-open');$('.ocm-effect-wrap, .ocm-effect-wrap-shadow, body > .slide_out_area_close, #fp-nav').removeClass('material-ocm-open');$('body > .slide_out_area_close').removeClass('follow-body');setTimeout(function(){$('.slide-out-widget-area-toggle a').removeClass('animating');$body.removeClass('material-ocm-open');$body.removeClass('nectar-no-flex-height');$('.ocm-effect-wrap').css({'height':'100%'});$('.ocm-effect-wrap-inner').css({'padding-top':'0'});$window.scrollTop(Math.abs(parseInt($('#ajax-content-wrap').css('top'))));$('#ajax-content-wrap').css({'position':'','top':''});if($('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&$('#header-outer[data-format="centered-menu-bottom-bar"] .span_9').css('display')!='none'&&$('body.mobile').length==0){$('#header-outer:not(.fixed-menu)').css('top','');$headerSecondaryEl.css('visibility','')}
$('body[data-hhun="1"]:not(.no-scroll) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({'transform':''});setTimeout(function(){$('body[data-hhun="1"]:not(.no-scroll) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({'transition':''})},30);$('body[data-hhun="1"] #header-secondary-outer.hidden').removeClass('hidden');nectarState.materialOffCanvasOpen=!1},900);setTimeout(function(){$('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').addClass('no-trans').removeClass('effect-shown')},200);setTimeout(function(){$('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').removeClass('no-trans')},500)}}
function OCM_fullscreenOpen(){if($('body.material').length>0){$('header#top .slide-out-widget-area-toggle a').addClass('menu-push-out')}
var $scrollDelay=0;var $scrollDelay2=0;if(nectarDOMInfo.scrollTop+$window.height()>$('.blurred-wrap').height()&&$('#nectar_fullscreen_rows').length==0){$('body,html').stop().animate({scrollTop:$('.blurred-wrap').height()-$window.height()},600,'easeInOutCubic');$scrollDelay=550;$scrollDelay2=200}
$('header#top .slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)').addClass('close');setTimeout(function(){$('.blurred-wrap').addClass('blurred')},$scrollDelay);$('#slide-out-widget-area.fullscreen').show().addClass('open');if($('.nectar-social.fixed').length==0){hideToTop()}
$('.container-wrap').addClass('no-shadow');$headerOuterEl.stop(!0).css('transform','translateY(0)');setTimeout(function(){$('.off-canvas-menu-container .menu > li').each(function(i){$(this).delay(i*50).transition({y:0,'opacity':1},800,'easeOutExpo')});$('#slide-out-widget-area.fullscreen .widget').each(function(i){$(this).delay(i*100).transition({y:0,'opacity':1},800,'easeOutExpo')})},370+$scrollDelay2);setTimeout(function(){$('#slide-out-widget-area .off-canvas-social-links').addClass('line-shown');$('#slide-out-widget-area .off-canvas-social-links li').each(function(i){$(this).delay(i*50).transition({'scale':1},400,'easeOutCubic')});$('#slide-out-widget-area .bottom-text').transition({'opacity':0.7},400,'easeOutCubic')},750+$scrollDelay2);setTimeout(function(){var $easing=($('body.mobile').length>0)?'easeOutCubic':'easeInOutQuint';$offCanvasBG.css({'height':'100%','width':'100%'}).show().stop(!0).transition({'y':'0%'},920,$easing,function(){$('.slide-out-widget-area-toggle > div > a').removeClass('animating')})},50+$scrollDelay2);OCM_overflowState();if($('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&$('.container-wrap').hasClass('no-scroll')){$('#ajax-content-wrap').addClass('at-content')}
var headerOffset=$headerOuterEl.offset().top-nectarDOMInfo.scrollTop+nectarDOMInfo.secondaryHeaderHeight;$('#slide-out-widget-area.fullscreen .inner-wrap').css('padding-top',($headerOuterEl.outerHeight()+headerOffset))}
function OCM_fullscreenClose(){if($('body.material').length>0){setTimeout(function(){$('header#top .slide-out-widget-area-toggle a').removeClass('menu-push-out')},350)}
$('.slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)').removeClass('close');$('.blurred-wrap').removeClass('blurred');$('#slide-out-widget-area.fullscreen').transition({'opacity':0},700,'easeOutQuad',function(){$('#slide-out-widget-area.fullscreen').hide().css('opacity','1')}).removeClass('open');$('#slide-out-widget-area.fullscreen .widget').transition({'opacity':0},700,'easeOutQuad',function(){$(this).transition({y:'110px'},0)});setTimeout(function(){$('.off-canvas-menu-container .menu > li').transition({y:'80px','opacity':0},0);$('#slide-out-widget-area .off-canvas-social-links li').transition({'scale':0},0);$('#slide-out-widget-area .off-canvas-social-links').removeClass('line-shown');$('#slide-out-widget-area .bottom-text').transition({'opacity':0},0);$('#slide-out-widget-area .menuwrapper .menu').removeClass('subview');$('#slide-out-widget-area .menuwrapper .menu li').removeClass('subview subviewopen');$('#slide-out-widget-area.fullscreen .inner .menu-wrap').css('height','auto')},800);setTimeout(function(){if($('.nectar-social.fixed').length==0){showToTop()}
$('.container-wrap').removeClass('no-shadow')},500);$offCanvasBG.stop(!0).transition({'opacity':0},900,'easeOutQuad',function(){if($('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&$('.container-wrap').hasClass('no-scroll')){$('#ajax-content-wrap').removeClass('at-content')}
if($('.mobile #header-outer[data-permanent-transparent="false"]').length==0){$('#slide-out-widget-area.fullscreen .inner-wrap').css('padding-top','0')}
$('.slide-out-widget-area-toggle a').removeClass('animating');var $opacity=0.4;if($offCanvasBG.hasClass('solid')){$opacity=1}
if($offCanvasBG.hasClass('dark')){$opacity=0.93}
if($offCanvasBG.hasClass('medium')){$opacity=0.6}
if($offCanvasBG.hasClass('light')){$opacity=0.4}
$(this).css({'height':'1px','width':'1px','opacity':$opacity}).transition({y:'-100%'},0)})}
function OCM_fullscreenAltOpen(){var $ocm_fullscreen_class=($offCanvasEl.hasClass('fullscreen-alt'))?'.fullscreen-alt':'.fullscreen-split';if($('body.material').length>0){$('header#top .slide-out-widget-area-toggle a').addClass('menu-push-out')}
$('header#top .slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)').addClass('close');if($ocm_fullscreen_class==='.fullscreen-alt'){$('#slide-out-widget-area'+$ocm_fullscreen_class).show().addClass('open')}else{$('#slide-out-widget-area'+$ocm_fullscreen_class).addClass('open').removeClass('hidden')}
$offCanvasBG.addClass('open').removeClass('hidden');$('body > div[class*="body-border"]').css('z-index','9995');if($ocm_fullscreen_class==='.fullscreen-alt'){$('.off-canvas-menu-container .menu').transition({y:'0px','opacity':1},0)}
if($('.nectar-social.fixed').length==0){hideToTop()}
if($('#header-outer.transparent').length>0){if($bodyBorderTop.length>0){$('.admin-bar #slide-out-widget-area-bg'+$ocm_fullscreen_class).css({'padding-top':($bodyBorderTop.outerHeight(!0)+32)+'px'});$('body:not(.admin-bar) #slide-out-widget-area-bg'+$ocm_fullscreen_class).css({'padding-top':($bodyBorderTop.outerHeight(!0))+'px'})}}
$headerOuterEl.stop(!0).css('transform','translateY(0)');if($('#logo .starting-logo').length>0&&$window.width()>1000&&$('#header-outer[data-format="centered-menu-bottom-bar"].fixed-menu').length==0&&$('body.material #header-outer[data-condense="true"]').length==0&&$headerOuterEl.attr('data-transparent-header')=='true'&&!nectarDOMInfo.usingFrontEndEditor){$headerOuterEl.stop(!0).css('transform','translateY(0)').addClass('transparent')}
$('.off-canvas-menu-container .clip-wrap').css('transition-duration','0s');if($ocm_fullscreen_class==='.fullscreen-alt'){setTimeout(function(){$('.off-canvas-menu-container .menu > li').each(function(i){$(this).delay(i*50).transition({y:0,'opacity':1},750,'easeOutCubic').addClass('no-pointer-events')});setTimeout(function(){$('.off-canvas-menu-container .menu > li').removeClass('no-pointer-events');$('.off-canvas-menu-container .clip-wrap').css('transition-duration','.45s')},500);$('#slide-out-widget-area.fullscreen-alt .widget').each(function(i){$(this).delay(i*100).transition({y:0,'opacity':1},650,'easeOutCubic')})},200);setTimeout(function(){$('#slide-out-widget-area .off-canvas-social-links').addClass('line-shown');$('#slide-out-widget-area .off-canvas-social-links li').css('opacity','1').each(function(i){$(this).delay(i*50).transition({'scale':1},400,'easeOutCubic')});$('#slide-out-widget-area .bottom-text').transition({'opacity':1},600,'easeOutCubic')},200)}
var $opacity=0.4;if($offCanvasBG.hasClass('solid')){$opacity=1}
if($offCanvasBG.hasClass('dark')){$opacity=0.97}
if($offCanvasBG.hasClass('medium')){$opacity=0.6}
if($offCanvasBG.hasClass('light')){$opacity=0.4}
$offCanvasBG.removeClass('no-transition');if($ocm_fullscreen_class==='.fullscreen-alt'){$offCanvasBG.addClass('padding-removed').css({'height':'100%','width':'100%','left':'0','opacity':$opacity});OCM_overflowState()}
setTimeout(function(){$('.slide-out-widget-area-toggle > div > a').removeClass('animating')},600);if($('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&$('.container-wrap').hasClass('no-scroll')){$('#ajax-content-wrap').addClass('at-content')}
if($ocm_fullscreen_class==='.fullscreen-alt'){var headerOffset=$headerOuterEl.offset().top-nectarDOMInfo.scrollTop+nectarDOMInfo.secondaryHeaderHeight;$('#slide-out-widget-area'+$ocm_fullscreen_class+' .inner-wrap').css('padding-top',($headerOuterEl.outerHeight()+headerOffset))}else{$('#slide-out-widget-area'+$ocm_fullscreen_class+' .inner-wrap').css('padding-top',$headerOuterEl.outerHeight())}}
function OCM_fullscreenAltClose(){var $ocm_fullscreen_class=($offCanvasEl.hasClass('fullscreen-alt'))?'.fullscreen-alt':'.fullscreen-split';if($('body.material').length>0){setTimeout(function(){$('header#top .slide-out-widget-area-toggle a').removeClass('menu-push-out')},350)}
$('.slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)').removeClass('close');$offCanvasBG.removeClass('open');if($ocm_fullscreen_class==='.fullscreen-split'){setTimeout(function(){$offCanvasBG.addClass('hidden');$('#slide-out-widget-area'+$ocm_fullscreen_class).addClass('hidden')},600)}
if($ocm_fullscreen_class==='.fullscreen-alt'){$('.blurred-wrap').removeClass('blurred');$('#slide-out-widget-area.fullscreen-alt .widget').transition({'opacity':0},500,'easeOutQuad',function(){$(this).transition({y:'40px'},0)});$('#slide-out-widget-area .bottom-text, #slide-out-widget-area .off-canvas-social-links li').transition({'opacity':0},250,'easeOutQuad');$('#slide-out-widget-area .off-canvas-social-links').removeClass('line-shown');$('.off-canvas-menu-container .menu').transition({y:'-13px','opacity':0},400)}
setTimeout(function(){if($ocm_fullscreen_class==='.fullscreen-alt'){$('.off-canvas-menu-container .menu > li').stop(!0,!0).transition({y:'40px','opacity':0},0);$('#slide-out-widget-area .off-canvas-social-links li').transition({'scale':0},0);$('#slide-out-widget-area .off-canvas-social-links').removeClass('line-shown');$('#slide-out-widget-area .menuwrapper .menu').removeClass('subview');$('#slide-out-widget-area .menuwrapper .menu li').removeClass('subview subviewopen');$('#slide-out-widget-area.fullscreen-alt .inner .menu-wrap').css('height','auto');$offCanvasBG.css({'height':'1px','width':'1px','left':'-100%'})}
if($('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&$('.container-wrap').hasClass('no-scroll')){$('#ajax-content-wrap').removeClass('at-content')}
if($('.mobile #header-outer[data-permanent-transparent="false"]').length==0){$('#slide-out-widget-area'+$ocm_fullscreen_class+' .inner-wrap').css('padding-top','0')}
$('.slide-out-widget-area-toggle a').removeClass('animating');if($ocm_fullscreen_class==='.fullscreen-alt'){$('#slide-out-widget-area'+$ocm_fullscreen_class).hide().removeClass('open')}},550);if($ocm_fullscreen_class==='.fullscreen-split'){$('#slide-out-widget-area'+$ocm_fullscreen_class).removeClass('open')}
setTimeout(function(){if($('.nectar-social.fixed').length==0){showToTop()}},600);setTimeout(function(){$offCanvasBG.removeClass('padding-removed')},50);var borderDelay=($bodyBorderHeaderColorMatch==!0)?150:50;setTimeout(function(){if($ocm_fullscreen_class==='.fullscreen-alt'){$offCanvasBG.stop(!0).css({'opacity':0})}
if($('#header-outer[data-transparent-header="true"]').length>0){$('body > div[class*="body-border"]').css('z-index','10000')}},borderDelay);setTimeout(function(){$('#header-outer:not([data-permanent-transparent="1"]).transparent.small-nav, #header-outer[data-hhun="1"]:not([data-permanent-transparent="1"]).transparent.scrolling, #header-outer:not([data-permanent-transparent="1"]).transparent.scrolled-down').removeClass('transparent');if($headerOuterEl.hasClass('pseudo-data-transparent')){$headerOuterEl.attr('data-transparent-header','false').removeClass('pseudo-data-transparent').removeClass('transparent')}},100)}
function OCM_simpleDropdownOpen(classname){$('#mobile-menu').show();$('header#top').find('.'+classname+':not(.std-menu) .lines-button').addClass('close');if($('body.material').length>0){$('header#top').find('.'+classname+' a').addClass('menu-push-out')}
setTimeout(function(){$('header#top').find('.'+classname+' > div > a').removeClass('animating')},100)}
function OCM_simpleDropdownClose(classname){$('#mobile-menu').hide();$('body').find('.'+classname+':not(.std-menu) .lines-button').removeClass('close');setTimeout(function(){if($('body.material').length>0){$('header#top .'+classname+' a').removeClass('menu-push-out')}
$('body').find('.'+classname+' a').removeClass('animating')},350)}
function OCM_simpleStyleInit(){if($('#header-outer #mobile-menu').length==0){return}
$('#header-outer #mobile-menu li.megamenu').removeClass('megamenu');$('#header-outer #mobile-menu ul li a').each(function(){if(!$(this).hasClass('nectar-widget-link')&&$(this).find('.nectar-ext-menu-item').length==0){$(this).wrapInner('<span></span>')}});$('#header-outer #mobile-menu ul li').each(function(){if($(this).find('> ul').length>0){$(this).find('> a').append('<span class="sf-sub-indicator"><i class="fa fa-angle-down"></i></span>')}});$('#header-outer #mobile-menu .sf-sub-indicator').on('click',function(){var $parentLI=$(this).parent().parent();$parentLI.toggleClass('current-open-item');if($parentLI.hasClass('current-open-item')){$parentLI.find('> ul').show();setTimeout(function(){$parentLI.addClass('visible')},30)}else{$parentLI.find('ul').hide();$parentLI.find('li').removeClass('visible').removeClass('current-open-item');$parentLI.removeClass('visible')}
return!1});$window.on('smartresize',function(){if(nectarDOMInfo.winW>1000&&$('.slide-out-widget-area-toggle.mobile-icon a.open').length>0||nectarDOMInfo.winW>1000&&$('.nectar-ocm-trigger-open.simple-mobile-menu a.open').length>0){$('.slide-out-widget-area-toggle.mobile-icon a, .nectar-ocm-trigger-open.simple-mobile-menu a').addClass('non-human-allowed');$('.slide-out-widget-area-toggle.mobile-icon a.open, .nectar-ocm-trigger-open.simple-mobile-menu a.open').trigger('click');setTimeout(function(){$('.slide-out-widget-area-toggle.mobile-icon a, .nectar-ocm-trigger-open.simple-mobile-menu a').removeClass('non-human-allowed')},100)}})}
function OCM_clickTriggeredStylesInit(){$body.on('click','.slide-out-widget-area-toggle:not(.std-menu) a.closed:not(.animating), .nectar-ocm-trigger-open',function(){if(nectarBoxRoll.animating=='true'||$('.slide-out-from-right-hover').length>0){return!1}
$headerOuterEl.removeClass('no-transition');if($(this).hasClass('simple-mobile-menu')){OCM_simpleDropdownOpen('simple-mobile-menu');$(this).find('a').addClass('open');return!1}
if($offCanvasEl.hasClass('slide-out-from-right')){OCM_slideOutRightOpen()}else if($offCanvasEl.hasClass('fullscreen')){OCM_fullscreenOpen()}else if($offCanvasEl.hasClass('fullscreen-alt')||$offCanvasEl.hasClass('fullscreen-split')){OCM_fullscreenAltOpen()}else if($('#header-outer #mobile-menu').length>0){OCM_simpleDropdownOpen('slide-out-widget-area-toggle')}
if($('#header-outer #mobile-menu').length==0){$headerOuterEl.removeClass('side-widget-closed').addClass('side-widget-open');if($('#header-outer[data-transparency-option="1"]').length>0&&$('#boxed').length==0&&$('#header-outer[data-full-width="true"]').length>0&&!nectarDOMInfo.usingFrontEndEditor){if($('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length==0&&$('body.material #header-outer[data-condense="true"]').length==0){$headerOuterEl.addClass('transparent')}}
if($('#header-outer.dark-slide.transparent').length>0&&$('#boxed').length==0&&$('body.material-ocm-open').length==0){$headerOuterEl.removeClass('dark-slide').addClass('temp-removed-dark-slide')}}
$('.slide-out-widget-area-toggle:not(.simple-mobile-menu) > div > a').removeClass('closed').addClass('open').attr('aria-expanded','true');$('.slide-out-widget-area-toggle:not(.simple-mobile-menu) > div > a').addClass('animating');return!1});$body.on('click','.slide-out-widget-area-toggle:not(.std-menu) a.open:not(.animating), .nectar-ocm-trigger-open a.open, #slide-out-widget-area .slide_out_area_close, > .slide_out_area_close, #slide-out-widget-area-bg.slide-out-from-right, .material-ocm-open #ajax-content-wrap',function(e){if(e.originalEvent==undefined&&$('.slide_out_area_close.non-human-allowed').length==0&&$('.slide-out-widget-area-toggle.mobile-icon a.non-human-allowed').length==0){return}
if($('.slide-out-widget-area-toggle:not(.std-menu) a.animating').length>0){return}
$headerOuterEl.removeClass('no-transition');if($(this).parents('.simple-mobile-menu').length>0){OCM_simpleDropdownClose('simple-mobile-menu');$(this).removeClass('open');return!1}
$('.slide-out-widget-area-toggle:not(.std-menu):not(.simple-mobile-menu) a').removeClass('open').addClass('closed').attr('aria-expanded','false');$('.slide-out-widget-area-toggle:not(.simple-mobile-menu):not(.std-menu) a').addClass('animating');if($offCanvasEl.hasClass('slide-out-from-right')){OCM_slideOutRightClose()}else if($offCanvasEl.hasClass('fullscreen')){OCM_fullscreenClose()}else if($offCanvasEl.hasClass('fullscreen-alt')||$offCanvasEl.hasClass('fullscreen-split')){OCM_fullscreenAltClose()}else if($('#header-outer #mobile-menu').length>0){OCM_simpleDropdownClose('slide-out-widget-area-toggle')}
if($('#header-outer #mobile-menu').length==0){if($('#header-outer.temp-removed-dark-slide.transparent').length>0&&$('#boxed').length==0){$headerOuterEl.removeClass('temp-removed-dark-slide').addClass('dark-slide')}
if($('#header-outer[data-permanent-transparent="1"]').length==0&&$('#slide-out-widget-area.fullscreen-alt').length==0){if($('.nectar-box-roll').length==0){if($('#header-outer.small-nav').length>0||$('#header-outer.scrolled-down').length>0){$headerOuterEl.removeClass('transparent')}}else{if($('#header-outer.small-nav').length>0||$('#header-outer.scrolled-down').length>0||$('.container-wrap.auto-height').length>0){$headerOuterEl.removeClass('transparent')}}}
$headerOuterEl.removeClass('hidden-menu');$headerOuterEl.removeClass('side-widget-open').addClass('side-widget-closed')}
return!1})}
function OCM_init(){if($('#slide-out-widget-area.slide-out-from-right-hover').length>0){OCM_slideOutRightHoverInit()}else{OCM_clickTriggeredStylesInit();OCM_simpleStyleInit()}
if($('#slide-out-widget-area.fullscreen-split').length==0&&$('body.material[data-slide-out-widget-area-style*="slide-out-from-right"]').length==0&&$('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length==0){fullscreenMenuInit()}else if($('body.using-mobile-browser[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length>0){$('body #slide-out-widget-area .inner .off-canvas-menu-container li a[href*="#"]').on('click',function(){if($(this).attr('href')!='#'){OCM_close($(this).parent())}})}
if($('#nectar_fullscreen_rows').length>0&&($('body[data-slide-out-widget-area-style*="fullscreen"]').length>0||$('body[data-slide-out-widget-area-style="slide-out-from-right"]:not(.material)').length>0)){$('body #slide-out-widget-area .inner .off-canvas-menu-container li a[href]').on('click',function(){var $link_href=($(this).is('[href*="#"]'))?$(this).attr('href'):'';if($link_href!='#'&&$('div[data-fullscreen-anchor-id="'+$link_href.substr($link_href.indexOf("#")+1)+'"]').length>0){setTimeout(function(){$('#slide-out-widget-area .slide_out_area_close').addClass('non-human-allowed').trigger('click')},100);setTimeout(function(){$('#slide-out-widget-area .slide_out_area_close').removeClass('non-human-allowed')},150)}})}
$body.on('mouseover','#slide-out-widget-area .off-canvas-menu-container .menuwrapper > .sub-menu li > a',function(){var $currentTxt=$(this).text();$('.off-canvas-menu-container .menuwrapper .menu li > a').removeClass('hovered');$('.off-canvas-menu-container .menuwrapper .menu li > a:contains('+$currentTxt+')').addClass('hovered')});$body.on('mouseover','.off-canvas-menu-container .menuwrapper .menu li > a',function(){$('.off-canvas-menu-container .menuwrapper .menu li > a').removeClass('hovered')});setTimeout(OCM_scrolling,500);if(nectarDOMInfo.usingMobileBrowser){$offCanvasEl.addClass('mobile')}}
function OCM_scrolling(){$offCanvasEl.mousewheel(function(event,delta){this.scrollTop-=(event.deltaY*event.deltaFactor)/1.5;event.preventDefault()})}
function OCM_close(item){if($('#slide-out-widget-area.open').length>0){var $windowCurrentLocation=window.location.href.split("#")[0];var $windowClickedLocation=item.find('> a').attr('href').split("#")[0];if($windowCurrentLocation==$windowClickedLocation||item.find('a[href^="#"]').length>0){if(item.parents('.slide-out-from-right-hover').length>0){$('.slide-out-widget-area-toggle.slide-out-hover-icon-effect a').trigger('click')}else{$('.slide-out-widget-area-toggle a').trigger('click')}}}}
function clickToggleSubmenus(){if(!$('#header-outer[data-format="left-header"]').length>0&&!$('body.material[data-slide-out-widget-area-style*="slide-out-from-right"]').length>0&&!$('#slide-out-widget-area.fullscreen-split').length>0&&!$('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length>0){return}
$('#header-outer[data-format="left-header"] nav li.megamenu').removeClass('nectar-megamenu-menu-item').removeClass('megamenu');var $ocm_link_selector;if($('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length>0){$ocm_link_selector='#slide-out-widget-area .off-canvas-menu-container li.menu-item-has-children > .ocm-dropdown-arrow'}else{$ocm_link_selector='body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.menu-item-has-children > a, #slide-out-widget-area.fullscreen-split .off-canvas-menu-container li.menu-item-has-children > a'}
var left_header_selector='#header-outer[data-format="left-header"] nav li.menu-item-has-children > a';var lh_dropdown_func=(window.nectarOptions&&window.nectarOptions.left_header_dropdown_func)?window.nectarOptions.left_header_dropdown_func:'default';if(lh_dropdown_func==='separate-dropdown-parent-link'){left_header_selector='#header-outer[data-format="left-header"] nav li.menu-item-has-children > a .sf-sub-indicator'}
$(left_header_selector+', '+$ocm_link_selector).on('click',function(){var $parentSelector=$(this).parent();if(lh_dropdown_func==='separate-dropdown-parent-link'){$parentSelector=$(this).closest('.menu-item')}
if($parentSelector.hasClass('open-submenu')){$parentSelector.find('.sub-menu').css({'max-height':'0'});$parentSelector.removeClass('open-submenu')}else{var $that=$(this);var $maxSubMenuHeight;$parentSelector.find('> .sub-menu').addClass('no-trans');setTimeout(function(){$parentSelector.find('> .sub-menu').css({'max-height':'none','position':'absolute','visibility':'hidden'});$maxSubMenuHeight=$parentSelector.find('> .sub-menu').height();$parentSelector.find('> .sub-menu').removeClass('no-trans');$parentSelector.find('> .sub-menu').css({'max-height':'0','position':'relative','visibility':'visible'})},25);setTimeout(function(){$that.closest('ul').find('li.menu-item-has-children').removeClass('open-submenu');$that.closest('ul').find('li.menu-item-has-children > .sub-menu').css({'max-height':'0'});$parentSelector.addClass('open-submenu');$parentSelector.find('> .sub-menu').css('max-height',$maxSubMenuHeight);if($that.parents('ul').length>0){$that.parents('ul:not(.sf-menu)').each(function(){$(this).css('max-height');$(this).css('max-height',parseInt($(this).height()+parseInt($(this).css('padding-top'))*2+$maxSubMenuHeight)+'px')})}},50)}
return!1});if($('#header-outer[data-format="left-header"] nav .sf-menu > .current-menu-ancestor.menu-item-has-children > ul > li.current-menu-item').length>0){if(lh_dropdown_func==='separate-dropdown-parent-link'){$('#header-outer[data-format="left-header"] nav .sf-menu > .current-menu-ancestor.menu-item-has-children > a .sf-sub-indicator').trigger('click')}else{$('#header-outer[data-format="left-header"] nav .sf-menu > .current-menu-ancestor.menu-item-has-children > a').trigger('click')}}}
$.DLMenu=function(options,element){this.$el=$(element);this._init(options)};$.DLMenu.defaults={animationClasses:{classin:'dl-animate-in-1',classout:'dl-animate-out-1'},onLevelClick:function(){return!1},onLinkClick:function(){return!1}};$.DLMenu.prototype={_init:function(options){this.options=$.extend(!0,{},$.DLMenu.defaults,options);this._config();var animEndEventNames={'WebkitAnimation':'webkitAnimationEnd','OAnimation':'oAnimationEnd','msAnimation':'MSAnimationEnd','animation':'animationend'},transEndEventNames={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd','msTransition':'MSTransitionEnd','transition':'transitionend'};this.animEndEventName=animEndEventNames.animation+'.menu';this.transEndEventName=transEndEventNames.transition+'.menu',this.supportAnimations=!0,this.supportTransitions=!0;this._initEvents()},_config:function(){this.open=!1;this.$trigger=this.$el.children('.trigger');this.$menu=this.$el.children('ul.menu');this.$menuitems=this.$menu.find('li:not(.back) > a');this.$el.find('ul.sub-menu').prepend('<li class="back"><a href="#"> '+$offCanvasEl.attr('data-back-txt')+' </a></li>');this.$back=this.$menu.find('li.back')},_initEvents:function(){var self=this;this.$trigger.on('click.menu',function(){if(self.open){self._closeMenu()}else{self._openMenu()}
return!1});this.$menuitems.on('click.menu',function(event){var $item=$(this).parent('li'),$submenu=$item.children('ul.sub-menu');$('.fullscreen-alt .off-canvas-menu-container .clip-wrap, .fullscreen-alt .off-canvas-menu-container .clip-wrap span').css('transition-duration','0s');if($submenu.length>0){var $flyin=$submenu.clone().css('opacity',0).insertAfter(self.$menu),onAnimationEndFn=function(){self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classout).addClass('subview');$item.addClass('subviewopen').parents('.subviewopen:first').removeClass('subviewopen').addClass('subview');$flyin.remove();setTimeout(function(){$('.off-canvas-menu-container .menu > li').removeClass('no-pointer-events');$('.off-canvas-menu-container .clip-wrap, .off-canvas-menu-container .clip-wrap span').css('transition-duration','.45s')},300)};setTimeout(function(){$flyin.addClass(self.options.animationClasses.classin);self.$menu.addClass(self.options.animationClasses.classout);if(self.supportAnimations){self.$menu.on(self.animEndEventName,onAnimationEndFn)}else{onAnimationEndFn.call()}
self.options.onLevelClick($item,$item.children('a:first').text())});$item.parents('.menu-wrap').css('height',$item.parents('.off-canvas-menu-container').find('.menuwrapper .menu').height()).transition({'height':$flyin.height()},500,'easeInOutQuad');setTimeout(OCM_overflowState,600);return!1}else{self.options.onLinkClick($item.find('> a'),event)}
OCM_close($item)});this.$back.on('click.menu',function(){var $this=$(this),$submenu=$this.parents('ul.sub-menu:first'),$item=$submenu.parent(),$flyin=$submenu.clone().insertAfter(self.$menu);var onAnimationEndFn=function(){self.$menu.off(self.animEndEventName).removeClass(self.options.animationClasses.classin);$flyin.remove()};setTimeout(function(){$flyin.addClass(self.options.animationClasses.classout);self.$menu.addClass(self.options.animationClasses.classin);if(self.supportAnimations){self.$menu.on(self.animEndEventName,onAnimationEndFn)}else{onAnimationEndFn.call()}
$item.removeClass('subviewopen');var $subview=$this.parents('.subview:first');if($subview.is('li')){$subview.addClass('subviewopen')}
$subview.removeClass('subview')});setTimeout(function(){$item.parents('.menu-wrap').transition({'height':$item.parent().height()},500,'easeInOutQuad');setTimeout(OCM_overflowState,600)},50);return!1})},closeMenu:function(){if(this.open){this._closeMenu()}},_closeMenu:function(){var self=this,onTransitionEndFn=function(){self.$menu.off(self.transEndEventName);self._resetMenu()};this.$menu.removeClass('menuopen');this.$menu.addClass('menu-toggle');this.$trigger.removeClass('active');if(this.supportTransitions){this.$menu.on(this.transEndEventName,onTransitionEndFn)}else{onTransitionEndFn.call()}
this.open=!1},openMenu:function(){if(!this.open){this._openMenu()}},_openMenu:function(){var self=this;$body.off('click').on('click.menu',function(){self._closeMenu()});this.$menu.addClass('menuopen menu-toggle').on(this.transEndEventName,function(){$(this).removeClass('menu-toggle')});this.$trigger.addClass('active');this.open=!0},_resetMenu:function(){this.$menu.removeClass('subview');this.$menuitems.removeClass('subview subviewopen')}};var logError=function(message){if(window.console){window.console.error(message)}};$.fn.dlmenu=function(options){if(typeof options==='string'){var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=$.data(this,'menu');if(!instance){logError("cannot call methods on menu prior to initialization; "+"attempted to call method '"+options+"'");return}
if(!$.isFunction(instance[options])||options.charAt(0)==="_"){logError("no such method '"+options+"' for menu instance");return}
instance[options].apply(instance,args)})}else{this.each(function(){var instance=$.data(this,'menu');if(instance){instance._init()}else{instance=$.data(this,'menu',new $.DLMenu(options,this))}})}
return this};function fullscreenMenuInit(){$('#slide-out-widget-area .off-canvas-menu-container .menu').wrap('<div class="menu-wrap menuwrapper" />');$('#slide-out-widget-area .off-canvas-menu-container .menu').addClass('menuopen');var $ocmAnimationClassNum=($('#slide-out-widget-area.fullscreen-alt').length>0)?'4':'5';$('#slide-out-widget-area .off-canvas-menu-container .menu-wrap').dlmenu({animationClasses:{classin:'dl-animate-in-'+$ocmAnimationClassNum,classout:'dl-animate-out-'+$ocmAnimationClassNum}})}
function pageHeaderSlideInHeight(){var pageHeaderHeight=parseInt($pageHeaderBG.height());$('body[data-aie="slide-down"] #page-header-wrap:not(.fullscreen-header):not([data-responsive="true"])').css('height',pageHeaderHeight+'px')}
function pageHeaderAfterLoad(){if($('#ajax-content-wrap').length==0||!$body.hasClass('ajax-loaded')){$('#page-header-bg[data-parallax="1"]').animate({'opacity':1},350,'easeInCubic')}else if($('#ajax-content-wrap').length==1){$('#page-header-bg[data-parallax="1"]').css({'opacity':1})}
$('#page-header-bg[data-parallax="1"] .nectar-particles').append('<div class="fade-out" />')}
function pageHeaderUnload(){if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1||navigator.userAgent.match(/(iPod|iPhone|iPad)/)){window.onunload=function(){pageHeaderInit();$('#page-header-bg[data-parallax="1"] .span_6').css({'opacity':1})}}}
function pageHeaderInit(){var pageHeaderState={inView:!0}
var $pageHeaderInnerEl=$('#page-header-bg .span_6 .inner-wrap');var $pageHeaderCanvasEl=$('#page-header-bg #canvas');if($('#page-header-bg[data-parallax="1"]').length>0){var img=new Image(),pageHeaderHeight=parseInt($pageHeaderBG.height()),headerSpaceHeight=$('#header-space').height(),globalTopSectionHeight=($('.nectar-global-section.after-nav').length>0)?$('.nectar-global-section.after-nav').height():0,$initialImgCheck=extractUrl($('#page-header-bg[data-parallax="1"]').css('background-image'));if($initialImgCheck&&$initialImgCheck.indexOf('.')!==-1){img.onload=function(){pageHeaderAfterLoad()};img.src=extractUrl($('#page-header-bg[data-parallax="1"]').css('background-image'))}else{pageHeaderAfterLoad()}
if($('body[data-hhun="1"]').length>0&&!$('#header-outer[data-remove-fixed="1"]').length>0){$headerOuterEl.addClass('parallax-contained')}
if(nectarDOMInfo.winW>1000){parallaxPageHeaderCalc()}
window.addEventListener('scroll',function(){if(nectarDOMInfo.winW>1000){window.requestAnimationFrame(parallaxPageHeaderCalc)}},!1)}
var $pt_timeout=($('body[data-ajax-transitions="true"]').length>0&&$('#page-header-bg[data-animate-in-effect="slide-down"]').length>0)?350:0;if($pageHeaderBG.length>0){setTimeout(function(){pageHeaderSlideInHeight()},$pt_timeout);$('#page-header-bg[data-animate-in-effect="fade-in"]').addClass('loaded');var $initialImgCheckAscend=extractUrl($pageHeaderBG.css('background-image'));if($initialImgCheckAscend&&$initialImgCheckAscend.indexOf('.')!==-1){$pageHeaderBG.addClass('has-bg')}
$window.on('smartresize',pageHeaderSlideInHeight)}
function parallaxPageHeaderCalc(){var $multiplier=0.15;if(nectarDOMInfo.winW>=1000&&navigator.userAgent.match(/iPad/i)==null&&nectarState.materialOffCanvasOpen!=!0){if(pageHeaderState.inView==!0){$pageHeaderInnerEl.css({'transform':'translateY('+nectarDOMInfo.scrollTop*$multiplier+'px)','opacity':1-(nectarDOMInfo.scrollTop/((globalTopSectionHeight+pageHeaderHeight)*.7))});if($pageHeaderCanvasEl){$pageHeaderCanvasEl.css({'transform':'translateY('+nectarDOMInfo.scrollTop*$multiplier*2+'px)'})}}
if((nectarDOMInfo.scrollTop/(pageHeaderHeight+headerSpaceHeight+nectarDOMInfo.adminBarHeight))>1){pageHeaderState.inView=!1;$('.nectar-particles, #page-header-bg .fade-out').css('visibility','hidden').addClass('out-of-sight');$('#page-header-bg').addClass('out-of-sight')}else{pageHeaderState.inView=!0;$('#page-header-bg, .nectar-particles, #page-header-bg .fade-out').css('visibility','visible').removeClass('out-of-sight')}}}
if($pageHeaderBG.length>0){pageHeaderUnload();if($('.nectar-box-roll').length==0){pageHeaderTextEffectInit()}}}
function pageHeaderTextEffectMarkup(){$pageHeaderBG.each(function(){if($(this).attr('data-text-effect')=='rotate_in'){var $topHeading='none';if($(this).find('.span_6 h1').length>0){$topHeading='h1'}
if($topHeading!='none'){var $selector=($(this).find('.nectar-particles').length>0)?'.inner-wrap.shape-1':'.span_6';$(this).find($selector).find($topHeading).addClass('top-heading').contents().filter(function(){return this.nodeType===3&&typeof this.data!='undefined'&&this.data.replace(/\s+/,"")}).wrap('<span class="wraped"></span>');$(this).find($selector).find('.wraped').each(function(){var textNode=$(this),text=textNode.text().split(' '),replace='';$.each(text,function(index,value){if(value.replace(/\s+/,"")){replace+='<span class="wraped"><span>'+value+'</span></span> '}});textNode.replaceWith($(replace))})}}})}
function pageHeaderTextEffect(){if($('#page-header-bg .nectar-particles').length==0&&$('#page-header-bg[data-text-effect="none"]').length==0||$('.nectar-box-roll').length>0&&$('#page-header-bg .nectar-particles').length==0){var $selector=($('.nectar-box-roll').length==0)?'#page-header-bg .span_6':'.nectar-box-roll .overlaid-content .span_6';$($selector).find('.wraped').each(function(i){$(this).find('span').delay(i*370).transition({rotateX:'0','opacity':1,y:0},400,'easeOutQuad')});setTimeout(function(){$($selector).find('.inner-wrap > *:not(.top-heading)').each(function(i){$(this).delay(i*370).transition({rotateX:'0','opacity':1,y:0},650,'easeOutQuad')});$('.scroll-down-wrap, .scroll-down-wrap .section-down-arrow').removeClass('hidden')},$($selector).find('.wraped').length*370)}}
function pageHeaderTextEffectInit(){pageHeaderTextEffectMarkup();var $effectTimeout=($loadingScreenEl.length>0)?800:0;if($('#page-header-bg .nectar-video-wrap video').length==0){setTimeout(pageHeaderTextEffect,$effectTimeout)}}
function midnightInit(){if($('#header-outer[data-permanent-transparent="1"]').length>0&&$('body[data-bg-header="true"]').length>0){if($('.container-wrap div[data-midnight]').length==0){$('.container-wrap').attr('data-midnight','dark')}
var $midnightCompatArr=[];$('div[data-midnight]').each(function(){if($(this).attr('data-midnight')=='light'&&$(this).parents('.pum-content').length==0||$(this).attr('data-midnight')=='dark'&&$(this).parents('.pum-content').length==0){if($(this).is('#page-header-bg')&&$(this).parents('#page-header-wrap[data-midnight]').length>0){}else{$midnightCompatArr.push($(this))}}});if($midnightCompatArr.length>0){$.each($midnightCompatArr,function(k,v){if(v.attr('data-midnight')=='light'||v.attr('data-midnight')=='dark'){var $that=v;var waypoint=new Waypoint({element:$that,handler:function(direction){if($('body.material-ocm-open').length>0||$that.css('display')=='none'){return}
var $textColor;if(direction=='down'){$textColor=($that.attr('data-midnight')=='light')?'':'dark-slide';$headerOuterEl.removeClass('dark-slide').addClass($textColor)}else{var $prevMidItem;if(k-1>=0){$prevMidItem=k-1}else{$prevMidItem=k}
$textColor=($midnightCompatArr[$prevMidItem].attr('data-midnight')=='light')?'':'dark-slide';$headerOuterEl.removeClass('dark-slide').addClass($textColor)}},offset:$headerOuterEl.height()})}})}}}
function nectarBoxRollInit(){if($('.nectar-box-roll').length>0&&typeof NectarBoxRoll!=='undefined'){pageHeaderTextEffectInit();$(window).on('nectar-box-roll-scroll-disabled',function(){nectarState.preventScroll=!0});$(window).on('nectar-box-roll-scroll-enabled',function(){nectarState.preventScroll=!1});nectarBoxRoll=new NectarBoxRoll(nectarDOMInfo,waypoints,midnightInit,pageLoadHash,resizeVideoToCover)}}
function waypoints(){rowBGAnimations();columnBGAnimations();colAndImgAnimations();progressBars();dividers();iconList();animatedTitles();highlightedText();imageWithHotspots();clientsFadeIn();splitLineHeadings();svgAnimations();milestoneInit();nectarFancyUlInit();owl_carousel_animate();headerRowColorInheritInit();morphingOutlines();animatedColBorders();wooProductCarouselAnimations();foodMenuItems();vcWaypoints();NectarPostGridWaypoint();nectarRotatingWordsInit()}
function salientPageBuilderElInit(){flexsliderInit();flickityLazyInit();setTimeout(flickityInit,100);twentytwentyInit();standardCarouselInit();productCarouselInit();clientsCarouselInit();carouselfGrabbingClass();setTimeout(tabbedInit,60);accordionInit();accordionClickEvents();largeIconHover();nectarIconMatchColoring();coloredButtons();ctaLinkBG();teamMemberFullscreen();flipBoxInit();owlCarouselInit();mouseParallaxInit();ulCheckmarks();nectarFancyUlIcons();nectarFancyBoxHover();nectarVideoLightbox();nectarKeyframeAssist();morphingOutlinesInit();nectarPostGridInit();cascadingImageInit();imageWithHotspotEvents();pricingTableHeight();pageSubmenuInit();nectarLiquidBGs();nectarTestimonialSliders();nectarTestimonialSlidersEvents();recentPostsTitleOnlyEqualHeight();recentPostsInit();parallaxItemHoverEffect();fsProjectSliderInit();postMouseEvents();masonryPortfolioInit();masonryBlogInit();portfolioCustomColoring();searchResultMasonryInit();stickySidebarInit();portfolioSidebarFollow();splitLineHeadingInit();var stickyEls=new NectarStickyEls()}
function NectarWooCommerceFilters(){this.$toggleBtn=$('.nectar-shop-filters .nectar-shop-filter-trigger');this.$sidebar=$('#sidebar');this.sidebarPos=(this.$sidebar.hasClass('col_last'))?'right':'left';this.state={open:(this.getLS())?this.getLS():'true'};this.setup();this.events()}
NectarWooCommerceFilters.prototype.events=function(){this.$toggleBtn.on('click',this.toggle.bind(this));this.$sidebar.find('.nectar-close-btn-wrap').on('click',this.mobileToggle.bind(this));$(window).on('smartresize',this.mobileToggleResize.bind(this))};NectarWooCommerceFilters.prototype.mobileToggleResize=function(){if(this.$sidebar.hasClass('open')&&nectarDOMInfo.winW>999){this.$sidebar.removeClass('open');this.$sidebar.find('.nectar-close-btn-wrap').removeClass('open');$('.container-wrap').css('z-index','11')}};NectarWooCommerceFilters.prototype.mobileToggle=function(){if(this.$sidebar.hasClass('open')){this.$sidebar.removeClass('open');this.$sidebar.find('.nectar-close-btn-wrap').removeClass('open');$('.container-wrap').css('z-index','11')}else{$('.container-wrap').css('z-index','10000');this.$sidebar.addClass('open');this.$sidebar.find('.nectar-close-btn-wrap').addClass('open')}
return!1};NectarWooCommerceFilters.prototype.toggle=function(){if(nectarDOMInfo.winW<1000){this.mobileToggle();return!1}
var visibility='';if(this.state.open=='true'){this.state.open='false';visibility='false';this.$toggleBtn.find('.hide').hide();this.$toggleBtn.find('.show').show();this.$toggleBtn.find('.top-line, .bottom-line').css({'transform':'translateX(0)'});if(this.sidebarPos=='left'){this.$sidebar.css({'margin-right':'-25%','opacity':'0'})}else{this.$sidebar.css({'margin-left':'-25%','opacity':'0'})}
this.$sidebar.find('> .inner').css({'transform':(this.sidebarPos=='left')?'translateX(-100%)':'translateX(100%)',})}else{this.state.open='true';visibility='true';this.$toggleBtn.find('.show').hide();this.$toggleBtn.find('.hide').show();this.$toggleBtn.find('.top-line').css({'transform':'translateX(10px)'});this.$toggleBtn.find('.bottom-line').css({'transform':'translateX(-10px)'});if(this.sidebarPos=='left'){this.$sidebar.css({'margin-right':'0','opacity':'1'})}else{this.$sidebar.css({'margin-left':'0','opacity':'1'})}
this.$sidebar.find('> .inner').css({'transform':'translateX(0)'})}
setTimeout(function(){$(window).trigger('nectar-product-filters-layout')},425);if(typeof(Storage)!=="undefined"){localStorage.setItem("nectar_product_filters_vis",visibility)}
return!1};NectarWooCommerceFilters.prototype.setup=function(){this.$sidebar.find('.widget.woocommerce').addClass('open-filter').find('ul').css({'display':'block'});if($('.nectar-active-product-filters').length>0){var $filtersHTML=$('.nectar-active-product-filters').clone();this.$sidebar.find('> .inner').prepend($filtersHTML)}};NectarWooCommerceFilters.prototype.getLS=function(){if(typeof(Storage)!=="undefined"){return localStorage.getItem("nectar_product_filters_vis")}
return null};function wooQauntityBtns(){var quantityButtons=new NectarWooCommerceQuantity()}
function NectarWooCommerceQuantity(){this.$qty='';this.step=1;this.ajaxTimeout='';this.ajaxTimeoutDur=500;this.state={max:100000,min:0,currentVal:1,key:0,removeFlag:!1};this.events()}
NectarWooCommerceQuantity.prototype.updateState=function(el){var key=0;if(!0===this.checkMiniCart(this.$qty)){var matches=this.$qty.attr('name').match(/cart\[(\w+)\]/);key=matches[1]}
var currentVal=parseFloat(this.$qty.val());if(!currentVal||currentVal===''||currentVal==='NaN'){currentVal=0}
var max=parseFloat(this.$qty.attr('max'));var min=parseFloat(this.$qty.attr('min'));if(max===''||max==='NaN'||isNaN(max)){max=''}
if(min===''||min==='NaN'||isNaN(min)){min=0}
this.state={currentVal:currentVal,max:max,min:min,key:key}};NectarWooCommerceQuantity.prototype.events=function(){var that=this;$('body').on('click','.quantity .plus',function(){that.$qty=$(this).closest('.quantity').find('.qty');that.setStep();that.updateState();that.increment($(this))});$('body').on('click','.quantity .minus',function(){that.$qty=$(this).closest('.quantity').find('.qty');that.setStep();that.updateState();that.decrement($(this))});$('body').on('keyup','.woocommerce-mini-cart .quantity .qty',function(e){that.$qty=$(this);that.updateState();if(that.state.max&&that.$qty.val()>that.state.max){that.$qty.val(that.state.max)}
if(that.state.min&&(that.state.min==that.state.currentVal||that.state.currentVal<that.state.min)){that.state.removeFlag=!0}
$(this).trigger('change')});$('body').on('change','.woocommerce-mini-cart .quantity .qty',function(e){if(!e.originalEvent&&!0===that.checkMiniCart(that.$qty)){that.updateCart(that.$qty.val())}})};NectarWooCommerceQuantity.prototype.setStep=function(){if(this.$qty.is('[step]')){var step=parseInt(this.$qty.attr('step'));if(!isNaN(step)&&step!=''&&step!=0){this.step=step}}}
NectarWooCommerceQuantity.prototype.increment=function(){if(this.state.max&&(this.state.max==this.state.currentVal||this.state.currentVal>this.state.max)){this.$qty.val(this.state.max)}else{this.$qty.val(this.state.currentVal+parseFloat(this.step))}
this.$qty.trigger('change')};NectarWooCommerceQuantity.prototype.decrement=function(){if(this.state.min&&(this.state.min==this.state.currentVal||this.state.currentVal<this.state.min)){this.$qty.val(0);this.state.removeFlag=!0}else if(this.state.currentVal>0){this.$qty.val(this.state.currentVal-parseFloat(this.step))}
this.$qty.trigger('change')};NectarWooCommerceQuantity.prototype.checkMiniCart=function(el){return(el.parents('.woocommerce-mini-cart').length>0)?!0:!1};NectarWooCommerceQuantity.prototype.updateCart=function(val){var that=this;clearTimeout(this.ajaxTimeout);this.ajaxTimeout=setTimeout(function(){that.$qty.closest('.widget_shopping_cart_content').addClass('loading');that.$qty.closest('.woocommerce-mini-cart-item').addClass('blockUI').addClass('blockOverlay');$.ajax({type:'POST',url:window.nectarLove.ajaxurl,data:{action:"nectar_minicart_update_quantity",quantity:val,item_key:that.state.key},cache:!1,success:function(response){if(response){that.$qty.closest('.widget_shopping_cart_content').removeClass('loading');that.$qty.closest('.woocommerce-mini-cart-item').removeClass('blockUI').removeClass('blockOverlay');var $subtotal=that.$qty.closest('.widget_shopping_cart_content').find('.woocommerce-mini-cart__total');$subtotal.find('.woocommerce-Price-amount').remove();$subtotal.append(response.subtotal);if(that.state.removeFlag===!0){that.$qty.closest('.woocommerce-mini-cart-item').remove();that.state.removeFlag=!1;$(document.body).trigger('updated_wc_div')}
if($('#header-outer a.cart-contents .cart-wrap span').length>0){$('#header-outer a.cart-contents .cart-wrap span').text(response.item_count)}}}})},this.ajaxTimeoutDur)};function NectarWooCommerceCartAJAX(){this.state={processing:!1,productID:!1,type:'regular'};this.events()}
NectarWooCommerceCartAJAX.prototype.events=function(){$('body').on('submit','form.cart',this.addToCartAJAX.bind(this))};NectarWooCommerceCartAJAX.prototype.addNotices=function(notices){var that=this;var $noticeParent=$('.nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart_content')
$.each(notices,function(k,item){$noticeParent.prepend('<div class="nectar-notice">'+item.notice+'</div>')});setTimeout(function(){$noticeParent.find('.nectar-notice').slideUp(function(){$(this).remove()})},6000)};NectarWooCommerceCartAJAX.prototype.addToCartAJAX=function(e){var that=this;var $wooForm=$(e.currentTarget);if($wooForm.closest('.product').hasClass('product-type-external')||(wc_add_to_cart_params&&wc_add_to_cart_params.cart_redirect_after_add==='yes')){return}
e.preventDefault();if(that.state.processing==!0){return}
that.state.processing=!0;that.state.productID=!1;that.state.type='regular';if($wooForm.parents('.nectar-quick-view-box').length>0){that.state.type='quickview'}
var $parentProduct=$wooForm.closest('.product');var $addToCartBtn=$wooForm.find('button.single_add_to_cart_button');var $formData=$wooForm.serializeArray();var regID=0;if($parentProduct.is('[id*="product-"]')){regID=$parentProduct.attr('id').match(/\d+/);if(regID&&regID[0]){that.state.productID=regID[0]}}
if(that.state.productID===!1&&$addToCartBtn.length>0){regID=$addToCartBtn.val().match(/\d+/);if(regID&&regID[0]){that.state.productID=regID[0]}}
if(that.state.productID===!1){console.log('Error: no product ID found.');return}
if(that.state.type==='quickview'){$addToCartBtn=$('.single_add_to_cart_button_wrap .single_add_to_cart_button')}
$addToCartBtn.prepend('<div class="loading-wrap"><div class="loading" /></div></div>');setTimeout(function(){$addToCartBtn.addClass('processing')},50);$formData.push({name:'action',value:'nectar_ajax_add_to_cart'},{name:'add-to-cart',value:that.state.productID});$.ajax({type:'POST',url:window.nectarLove.ajaxurl,data:$formData,cache:!1,success:function(response){setTimeout(function(){that.state.processing=!1;$addToCartBtn.removeClass('processing');$addToCartBtn.find('.loading-wrap').remove()},300);if(response&&response.fragments){$('body').trigger('added_to_cart',[response.fragments,response.cart_hash]);if(response.notices&&response.notices.length>0){setTimeout(function(){that.addNotices(response.notices)},100)}
if(that.state.type==='quickview'){$('.nectar-quick-view-box .close').trigger('click')}}}})};function wooCommerceEvents(){var wooCartTimeout;$body.on('click','.product .add_to_cart_button',function(){var $productHeading=($(this).parents('li').find('h2').length>0)?'h2':'h3',productToAdd=$(this).parents('li').find($productHeading).text();$('#header-outer .cart-notification span.item-name').html(productToAdd)});$body.on('mouseenter','#header-outer .cart-notification',function(){$(this).hide();$('#header-outer .widget_shopping_cart').addClass('open').stop(!0,!0).show();$('#header-outer .cart_list').stop(!0,!0).show();clearTimeout(wooCartTimeout)});var $headerCartSelector='#header-outer .nectar-woo-cart';if($($headerCartSelector).length>0){$($headerCartSelector).hoverIntent(function(){$('#header-outer .widget_shopping_cart').addClass('open').stop(!0,!0).show();$('#header-outer .cart_list').stop(!0,!0).show();clearTimeout(wooCartTimeout);$('#header-outer .cart-notification').hide()})}
$body.on('mouseleave',$headerCartSelector,function(){var $that=$(this);setTimeout(function(){if(!$that.is(':hover')){$('#header-outer .widget_shopping_cart').removeClass('open').stop(!0,!0).fadeOut(300);$('#header-outer .cart_list').stop(!0,!0).fadeOut(300)}},200)});if($('#header-outer[data-cart="false"]').length==0){$body.on('added_to_cart',shopping_cart_dropdown_show);$body.on('added_to_cart',shopping_cart_dropdown)}
function shopping_cart_dropdown(){if(!$('.widget_shopping_cart .widget_shopping_cart_content .cart_list .empty').length&&$('.widget_shopping_cart .widget_shopping_cart_content .cart_list').length>0){$('.cart-menu-wrap').addClass('has_products');$('header#top nav > ul, #search-outer #search #close a, header#top .span_9 >.slide-out-widget-area-toggle').addClass('product_added');if(!$('.cart-menu-wrap').hasClass('static')){$('.cart-menu-wrap, #mobile-cart-link').addClass('first-load')}}}
function shopping_cart_dropdown_show(e){clearTimeout(wooCartTimeout);if(!$('.widget_shopping_cart .widget_shopping_cart_content .cart_list .empty').length&&$('.widget_shopping_cart .widget_shopping_cart_content .cart_list').length>0&&typeof e.type!='undefined'){if($('#header-outer .cart-notification .item-name').length>0&&$('#header-outer .cart-notification .item-name').text().length==0){return}
if(!$('#header-outer .cart-menu-wrap').hasClass('has_products')){setTimeout(function(){$('#header-outer .cart-notification').fadeIn(400)},400)}else if(!$('#header-outer .cart-notification').is(':visible')){$('#header-outer .cart-notification').fadeIn(400)}else{$('#header-outer .cart-notification').show()}
$('body #header-outer [data-cart-style="slide_in_click"] .cart-menu-wrap').trigger('click');wooCartTimeout=setTimeout(hideCart,2700)}}
function hideCart(){$('#header-outer .cart-notification').stop(!0,!0).fadeOut()}
function checkForWooItems(){var checkForCartItems=setInterval(shopping_cart_dropdown,250);setTimeout(function(){clearInterval(checkForCartItems)},4500)}
if($('#header-outer[data-cart="false"]').length==0){checkForWooItems()}
function nectarAccountPageTabs(){if($('body.woocommerce-account #customer_login').length==0){return}
$('.woocommerce-account .woocommerce > #customer_login').prepend('<div class="nectar-form-controls" />');$('.woocommerce-account .woocommerce > #customer_login > div:not(.nectar-form-controls)').each(function(){var $title=$(this).find('> h2').text();$('#customer_login .nectar-form-controls').append('<div class="control">'+$title+'</div>')});$('.woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control').on('click',function(){$('.woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control').removeClass('active');$(this).addClass('active');var formIndex=$(this).index()+1;$('#customer_login div[class*="u-column"]').hide();$('#customer_login div[class*="u-column"].col-'+formIndex).show();setTimeout(function(){$('#customer_login div[class*="u-column"]').removeClass('visible');$('#customer_login div[class*="u-column"].col-'+formIndex).addClass('visible')},30)});$('.woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control:nth-child(1)').trigger('click')}
nectarAccountPageTabs();var bindTextOnHoverMobile=($('.products[data-rm-m-hover="1"]').length>0&&nectarDOMInfo.usingMobileBrowser)?!1:!0;if(bindTextOnHoverMobile){$body.on('mouseover','.text_on_hover .product-wrap, .text_on_hover > a:first-child',function(){$(this).parent().addClass('hovered')});$body.on('mouseout','.text_on_hover .product-wrap, .text_on_hover > a:first-child',function(){$(this).parent().removeClass('hovered')})}
if($('.material.product').length>0||$('.minimal.product').length>0||$('.nectar-fancy-box[data-style="parallax_hover"]').length>0||$('.nectar-category-grid[data-shadow-hover="yes"]').length>0||$('.nectar-post-grid[data-shadow-hover="yes"]').length>0){var $productZindex=101;$body.on('mouseenter','.material.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item',function(){$productZindex++;$(this).css('z-index',$productZindex+1)});$body.on('mouseleave','.material.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item',function(){var $that=$(this);setTimeout(function(){if(!$that.is(':hover')){$that.css('z-index',100)}},350)});if(window.nectarOptions&&window.nectarOptions.woo_minimal_product_effect&&window.nectarOptions.woo_minimal_product_effect==='default'){$body.on('mouseenter','.minimal.product',function(){$productZindex++;$(this).css('z-index',$productZindex+1)});$body.on('mouseleave','.minimal.product',function(){var $that=$(this);setTimeout(function(){if(!$that.is(':hover')){$that.css('z-index',100)}},350)})}
setInterval(function(){if($('.nectar-fancy-box[data-style="parallax_hover"]:hover').length>0||$('.minimal.product:hover').length>0){return}
$('.material.product:not(:hover), .minimal.product:not(:hover), .nectar-fancy-box[data-style="parallax_hover"]:not(:hover), .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item:not(:hover), .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item:not(:hover)').css('z-index',100);$productZindex=101},10000)}
function minimalProductHover(){$('.products .classic .product-wrap .add_to_cart_button').wrapInner('<span />');$('.products .classic .product-wrap .add_to_cart_button').prepend('<i class="normal icon-salient-cart"></i>');var bindMobileHover=($('.products[data-rm-m-hover="1"]').length>0&&nectarDOMInfo.usingMobileBrowser)?!1:!0;if(bindMobileHover&&window.nectarOptions&&window.nectarOptions.woo_minimal_product_effect&&window.nectarOptions.woo_minimal_product_effect==='default'){$body.on('mouseover','.products .minimal.product',function(){minimalProductCalc($(this))});$body.on('mouseleave','.products .minimal.product',function(){$(this).find('.background-color-expand').css({'transform':'scale(1, 1) translateY(0) translateZ(0px)'})})}
$('.products .minimal.product').each(function(){if($(this).is(':hover')){$(this).trigger('mouseover')}})}
function minimalProductCalc(el){var expansionAmtX=40,expansionAmtY=expansionAmtX,translateYAmt=0;var $item=el,$itemWidth=$item.width(),$itemHeight=$item.height(),$wChange=(parseInt($itemWidth)+expansionAmtX)/parseInt($itemWidth),$hChange=(parseInt($itemHeight)+expansionAmtY)/parseInt($itemHeight);$item.addClass('hover-bound');$item.find('.background-color-expand').css({'transform':'scale('+$wChange+','+$hChange+') translateY('+translateYAmt+'px) translateZ(0px)'})}
minimalProductHover();$('.woocommerce #sidebar .widget.woocommerce').each(function(){if($(this).find('> h4').length==0){$(this).addClass('no-widget-title')}});$body.on('click','#sidebar .widget.woocommerce:not(.widget_price_filter) h4',function(){if(window.nectarOptions&&window.nectarOptions.woo_sidebar_toggles!=='false'){if($window.width()<1000){if($(this).parent().is('.widget_product_tag_cloud')){$(this).parent().find('> div').slideToggle()}
if($(this).parent().is('.woocommerce-widget-layered-nav')&&$(this).parent().find('> .woocommerce-widget-layered-nav-dropdown').length>0){$(this).parent().find('> .woocommerce-widget-layered-nav-dropdown').slideToggle()}
$(this).parent().find('> ul').slideToggle();$(this).parent().toggleClass('open-filter')}}});$body.on('mouseenter','#header-outer [data-cart-style="slide_in"] .cart-menu-wrap',openRightCartHover);$body.on('mouseenter','.nectar-slide-in-cart',function(){$(this).addClass('mouse-accessed')});function openRightCartHover(){if($('.nectar-slide-in-cart ul.cart_list li:not(.empty)').length>0){$('.nectar-slide-in-cart').addClass('open');$window.on('mousemove.rightCartOffsetCheck',closeCartCheck)}}
function closeCartCheck(e){var $windowWidth=$window.width();if(e.clientX<$windowWidth-370-$bodyBorderWidth&&$('.nectar-slide-in-cart').hasClass('mouse-accessed')){$window.off('mousemove.rightCartOffsetCheck',closeCartCheck);$('.nectar-slide-in-cart').removeClass('open').removeClass('mouse-accessed')}}
var wooBgOverlayTimeout;$body.on('click','#header-outer [data-cart-style="slide_in_click"] .cart-menu-wrap, #mobile-cart-link[data-cart-style="slide_in_click"]',openRightCart);function openRightCart(){if($body.is('.woocommerce-checkout')||$body.is('.woocommerce-cart')){return!0}
$('.nectar-slide-in-cart, .nectar-slide-in-cart-bg').addClass('open');$('.nectar-slide-in-cart-bg').addClass('revealed');clearTimeout(wooBgOverlayTimeout);$('.style_slide_in_click div.quantity').each(function(){if($(this).find('.minus').length>1){$(this).find('.minus').first().remove()}
if($(this).find('.plus').length>1){$(this).find('.plus').first().remove()}});return!1}
$body.on('click','.nectar-slide-in-cart.style_slide_in_click .close-cart, .nectar-slide-in-cart-bg',closeRightCart);function closeRightCart(){$('.nectar-slide-in-cart, .nectar-slide-in-cart-bg').removeClass('open');wooBgOverlayTimeout=setTimeout(function(){$('.nectar-slide-in-cart-bg').removeClass('revealed')},400);return!1}
wooQauntityBtns();if(window.nectarOptions&&window.nectarOptions.ajax_add_to_cart==='1'){var ajaxAddToCart=new NectarWooCommerceCartAJAX()}
if(window.nectarOptions&&window.nectarOptions.woo_product_filter_toggle==='1'&&$body.is('.archive.woocommerce')){var nectarProductFilters=new NectarWooCommerceFilters()}
$(document).on('yith-wcan-ajax-filtered',nectarLazyImageLoading)}
function NectarQuickSearch(){this.$el=$('#search-outer #search .container #s');this.$container='';this.$parent='';this.$searchEl=$('#search-outer');this.request='';this.timeout='';this.setup();this.events();this.state={requesting:!1,open:!1,prevResults:''}
this.minChars=2}
NectarQuickSearch.prototype.setup=function(){this.$container=$('<div class="inner"></div>');$('#search-outer').append($('<div class="nectar-ajax-search-results"><div class="container"></div></div>'));this.$parent=$('#search-outer .nectar-ajax-search-results');$('#search-outer .nectar-ajax-search-results .container').append(this.$container)};NectarQuickSearch.prototype.events=function(){var that=this;this.throttled=throttle(this.getResults.bind(this),350);this.$el.on('keyup',this.keyHandle.bind(this));$(window).on('resize',this.resize.bind(this));$(window).on('nectar-search-close',function(){that.resetHeight();that.requestCheck()})};NectarQuickSearch.prototype.keyHandle=function(e){var keysToSkip=[16,91,32,37,39,17];if(keysToSkip.indexOf(e.keyCode)!=-1){return}
this.throttled();this.debouncedSearch()};NectarQuickSearch.prototype.debouncedSearch=function(){var that=this;clearTimeout(this.timeout);this.timeout=setTimeout(function(){if(that.state.requesting){return}
that.getResults()},400)};NectarQuickSearch.prototype.resize=function(){this.$parent.css({'max-height':''});if(this.state.open===!0){this.$parent.css({'max-height':parseInt(this.$container.outerHeight())+'px'})}};NectarQuickSearch.prototype.resetHeight=function(){var that=this;this.$parent.css({'max-height':''});setTimeout(function(){$headerOuterEl.removeClass('results-shown')},400);this.state.prevResults='';this.state.open=!1};NectarQuickSearch.prototype.requestCheck=function(){if(this.state.requesting===!0){this.request.abort();this.state.requesting=!1}};NectarQuickSearch.prototype.getResults=function(){var that=this;var val=this.$el.val();if(val.length==0||val.length<this.minChars){$headerOuterEl.removeClass('results-shown');this.requestCheck();this.resetHeight();return}
this.request=$.ajax({type:'POST',url:window.nectarLove.ajaxurl,data:{action:"nectar_ajax_ext_search_results",search:val},cache:!1,success:function(response){that.state.requesting=!1;if(!response){that.resetHeight()}
if(response&&response.content&&response.content!==that.state.prevResults&&that.$searchEl.hasClass('material-open')){that.$container.html(response.content);that.$parent.css({'max-height':parseInt(that.$container.outerHeight())+'px'});setTimeout(function(){$headerOuterEl.addClass('results-shown')},200);if(nectarDOMInfo.winW>=1000&&!$headerOuterEl.hasClass('results-shown')){that.$container.find('.product, .search-post-item').css({'opacity':'0','transform':'translateY(25px)','transition':'none'});setTimeout(function(){that.$container.find('.product, .search-post-item').css({'transition':'box-shadow 0.25s ease, opacity 0.55s cubic-bezier(0.2, 0.6, 0.4, 1), transform 0.55s cubic-bezier(0.2, 0.6, 0.4, 1)'})},50);that.$container.find('.product, .search-post-item').each(function(i){var $that=$(this);setTimeout(function(){$that.css({'opacity':'1','transform':'translateY(0)'})},50+(i*60))})}
that.state.open=!0;that.state.prevResults=response.content}}});this.state.requesting=!0};function navigationSearchInit(){var quickSearch=!1;if(window.nectarOptions&&window.nectarOptions.quick_search&&window.nectarOptions.quick_search==='true'){quickSearch=new NectarQuickSearch()}
var $placeholder=($('#search-outer #search input[type=text][data-placeholder]').length>0)?$('#search-outer #search input[type=text]').attr('data-placeholder'):'';if($body.hasClass('material')&&$('#header-outer .bg-color-stripe').length==0){$headerOuterEl.append('<div class="bg-color-stripe" />')}
$body.on('click','#search-btn a',function(){return!1});$body.on('click','#search-btn a:not(.inactive), #header-outer .mobile-search',function(){if($(this).hasClass('open-search')){return!1}
if($body.hasClass('original')&&$('.slide-out-widget-area-toggle.mobile-icon a.open').length>0){$('.slide-out-widget-area-toggle.mobile-icon a').addClass('non-human-allowed').trigger('click');setTimeout(function(){$('.slide-out-widget-area-toggle.mobile-icon a').removeClass('non-human-allowed')},100)}
if($body.hasClass('ascend')||$('body[data-header-format="left-header"]').length>0&&$('body.material').length==0){$('#search-outer > #search form, #search-outer #search .span_12 span, #search-outer #search #close').css('opacity',0);$('#search-outer > #search form').css('transform','translateY(-30px)');$('#search-outer #search .span_12 span').css('transform','translateY(20px)');$('#search-outer').show();$('#search-outer').stop().transition({scale:'1,0','opacity':1},0).transition({scale:'1,1'},700,'cubic-bezier(0.2, 1, 0.3, 1)');$('#search-outer > #search form').delay(350).transition({'opacity':1,'transform':'translateY(0)'},700,'cubic-bezier(0.2, 1, 0.3, 1)');$('#search-outer #search #close').delay(500).transition({'opacity':1},700,'cubic-bezier(0.2, 1, 0.3, 1)');$('#search-outer #search .span_12 span').delay(450).transition({'opacity':1,'transform':'translateY(0)'},700,'cubic-bezier(0.2, 1, 0.3, 1)')}else if(!$body.hasClass('material')){$('#search-outer').stop(!0).fadeIn(600,'easeOutExpo')}else{$('#header-outer[data-transparent-header="true"] .bg-color-stripe').css('transition','');$('#search-outer, #ajax-content-wrap').addClass('material-open');nectarState.materialSearchOpen=!0;$headerOuterEl.addClass('material-search-open');$('#fp-nav').addClass('material-ocm-open');$(window).trigger('nectar-search-open')}
setTimeout(function(){$('#search input[type=text]').trigger('focus');if($('#search input[type=text]').val()==$placeholder){$('#search input[type=text]').setCursorPosition(0)}},300);$(this).toggleClass('open-search');$('.slide-out-widget-area-toggle a:not(#toggle-nav).open:not(.animating)').trigger('click');return!1});$('body:not(.material)').on('keydown','#search input[type=text]',function(){if($(this).val()==$placeholder){$(this).val('')}});$('body:not(.material)').on('keyup','#search input[type=text]',function(){if($(this).val().length==0){$(this).val($placeholder);$(this).setCursorPosition(0)}});$body.on('click','#close',function(){closeSearch();$searchButtonEl.removeClass('open-search');$('#header-outer .mobile-search').removeClass('open-search');return!1});$('body:not(.material)').on('blur','#search-box input[type=text]',function(){closeSearch();$searchButtonEl.removeClass('open-search');$('#header-outer .mobile-search').removeClass('open-search')});$('body.material').on('click','#ajax-content-wrap',function(e){if(e.originalEvent!==undefined){closeSearch();$searchButtonEl.removeClass('open-search');$('#header-outer .mobile-search').removeClass('open-search')}});if($('body.material').length>0){$(document).on('keyup',function(e){if(e.keyCode==27){closeSearch();$searchButtonEl.removeClass('open-search');if($('.ocm-effect-wrap.material-ocm-open').length>0){$('.slide-out-widget-area-toggle.material-open a').trigger('click')}}})}
function closeSearch(){if($body.hasClass('ascend')||$('body[data-header-format="left-header"]').length>0&&$('body.material').length==0){$('#search-outer').stop().transition({'opacity':0},300,'cubic-bezier(0.2, 1, 0.3, 1)');$searchButtonEl.addClass('inactive');setTimeout(function(){$('#search-outer').hide();$searchButtonEl.removeClass('inactive')},300)}else if($('body.material').length==0){$('#search-outer').stop(!0).fadeOut(450,'easeOutExpo')}
if($body.hasClass('material')){$(window).trigger('nectar-search-close');var closeTimeoutDur=($headerOuterEl.hasClass('results-shown'))?800:400;setTimeout(function(){$('#search-outer #s').val('')},closeTimeoutDur);$('#ajax-content-wrap').removeClass('material-open');nectarState.materialSearchOpen=!1;$headerOuterEl.removeClass('material-search-open');$('#search-outer').removeClass('material-open');$('#fp-nav').removeClass('material-ocm-open')}}}
function centeredNavBottomBarReposition(){var $headerOuter=$headerOuterEl,$headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),$headerSpan3=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3'),$secondaryHeader=$headerSecondaryEl,$headerBtns=$headerSpan3.find('nav >ul.buttons'),$navLogoMargin=parseInt($('body.material #header-outer').attr('data-padding')),$navLogoHeight=parseInt($('body.material #header-outer').attr('data-logo-height')),$separatorExtra=parseInt($headerSpan3.css('margin-bottom')),$triggerCondition=$navLogoMargin+$separatorExtra+$navLogoHeight+parseInt(nectarDOMInfo.secondaryHeaderHeight);if($secondaryHeader.length>0){if($('#header-outer[data-remove-fixed="1"]').length==0&&$('#header-outer[data-condense="true"]').length>0){setTimeout(function(){if($headerSecondaryEl.css('display')!='none'){nectarDOMInfo.secondaryHeaderHeight=$headerSecondaryEl.outerHeight()}},50)}}
function condenseCustomBreakPointHelper(){var $withinCustomBreakpoint=mobileBreakPointCheck();if($withinCustomBreakpoint){$headerOuterEl.addClass('within-custom-breakpoint')}else{$headerOuterEl.removeClass('within-custom-breakpoint')}}
if($('#header-outer[data-condense="true"]').length>0){$window.on('scroll.centeredNavCondense',centeredNavBottomFixed_Scroll);$window.trigger('scroll');$window.on('resize',function(){if(nectarDOMInfo.winW<1000||mobileBreakPointCheck()){$headerOuter.addClass('force-condense-remove');$window.off('scroll.centeredNavCondense')}});$window.on('smartresize',function(){condenseCustomBreakPointHelper();if(nectarDOMInfo.winW>=1000&&!1==mobileBreakPointCheck()){if($headerOuter.hasClass('force-condense-remove')){centeredNavBottomFixed_Scroll();$headerOuter.removeClass('force-condense-remove');setTimeout(function(){if(nectarDOMInfo.scrollTop>=$triggerCondition){$headerOuter.addClass('force-condense');centeredNavBottomFixed_Scroll();$headerOuter.removeClass('force-condense')}
$window.on('scroll.centeredNavCondense',centeredNavBottomFixed_Scroll)},200)}}});condenseCustomBreakPointHelper()}
function centeredNavBottomFixed_Scroll(){if(nectarDOMInfo.winW<1000||$('body.page-template-template-no-header').length>0||$('body.page-template-template-no-header-footer').length>0||$('body.material-ocm-open').length>0||$('#header-outer[data-has-menu="true"][data-format="centered-menu-bottom-bar"] .span_9').css('display')=='none'||$('#header-outer[data-has-menu="true"][data-format="centered-menu-bottom-bar"] .span_9 > nav').css('display')=='none'){return}
$bodyBorderTop=($bodyBorderTop.length>0&&nectarDOMInfo.secondaryHeaderHeight>0)?$bodyBorderTop.height():0;if($headerOuter.hasClass('force-condense')||!$headerOuter.hasClass('fixed-menu')&&nectarDOMInfo.scrollTop>=$triggerCondition){var amountToMove=(parseInt($headerSpan9.position().top)-$navLogoMargin-parseInt(nectarDOMInfo.adminBarHeight))+parseInt(nectarDOMInfo.secondaryHeaderHeight)-$bodyBorderTop;if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer .megamenu').length>0&&$('#header-outer[data-transparent-header="true"]').length>0){$headerOuterEl.removeClass('no-transition')}
$headerOuter.addClass('fixed-menu').removeClass('transparent').css({'top':'-'+amountToMove+'px','position':'fixed'});if(!$headerOuter.is('[data-menu-bottom-bar-align="left"]')){var $headerNavBarOffset=($('header#top .span_9 nav > ul').length>0)?$('header#top .span_9 nav > ul').offset().top:0;var $headerButtonsOffset=($headerBtns.find('li:first-child > *').length>0)?$headerBtns.find('li:first-child > *').offset().top:0;var $headerButtonsHeight=($headerSpan9.find('.sf-menu > li > a').length>0)?(20-parseInt($headerSpan9.find('.sf-menu > li > a').height()))/2:2;$headerBtns.css('transform','translateY('+Math.ceil(parseInt($headerNavBarOffset)-parseInt($headerButtonsOffset)-$headerButtonsHeight)+'px)');$headerBtns.find('.nectar-woo-cart').css('height',$headerOuter.height()+parseInt($headerOuter.css('top'))-parseInt(nectarDOMInfo.adminBarHeight))}}else if($headerOuter.hasClass('force-condense-remove')||$headerOuter.hasClass('fixed-menu')&&nectarDOMInfo.scrollTop<$triggerCondition){$headerOuter.removeClass('fixed-menu').css({'top':'0','position':'absolute'});$headerBtns.css('transform','translateY(0px)');$headerBtns.find('.nectar-woo-cart').css('height','');if($('#header-outer.transparent').length==0){if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer .megamenu').length>0){$headerOuterEl.removeClass('no-transition')}
if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0&&$('#header-outer .megamenu').length>0){if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.nectar-box-roll').length==0&&$('.megamenu.sfHover:not(.width-75):not(.width-50)').length==0){$headerOuterEl.addClass('transparent');$headerOuterEl.removeClass('no-transition')}else if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.nectar-box-roll').length==0&&$('.megamenu.sfHover').length>0){$headerOuterEl.addClass('no-transition')}}else{if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.nectar-box-roll').length==0){$headerOuterEl.addClass('transparent')}}}}}}
function centeredNavBottomBarInit(){if($('#header-outer[data-format="centered-menu-bottom-bar"]').length>0){centeredNavBottomBarReposition()}}
function centeredLogoMargins(){if(nectarDOMInfo.winW>1000){var $navItemLength=$('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li').length;if($('#header-outer #social-in-menu').length>0){$navItemLength--}
var $centerLogoWidth,$extraMenuSpace;if($('#header-outer #top .row .col.span_3 #logo img:visible').length==0){$centerLogoWidth=parseInt($('#header-outer #top .row .col.span_3').width())}else{$centerLogoWidth=parseInt($('#header-outer #top .row .col.span_3 img:visible').width())}
if($('#header-outer[data-lhe="animated_underline"]').length>0){$extraMenuSpace=parseInt($('header#top nav > ul > li:first-child > a').css('margin-right'))}else{$extraMenuSpace=parseInt($('header#top nav > ul > li:first-child > a').css('padding-right'))}
if($extraMenuSpace>30){$extraMenuSpace+=45}else if($extraMenuSpace>20){$extraMenuSpace+=40}else{$extraMenuSpace+=30}
if(!$body.hasClass('rtl')){$('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child('+Math.floor($navItemLength/2)+')').css({'margin-right':($centerLogoWidth+$extraMenuSpace)+'px'}).addClass('menu-item-with-margin')}else{$('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child('+Math.floor($navItemLength/2)+')').css({'margin-left':($centerLogoWidth+$extraMenuSpace)+'px'}).addClass('menu-item-with-margin')}
var $leftMenuWidth=0;var $rightMenuWidth=0;$('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:not(#social-in-menu)').each(function(i){if(i+1<=Math.floor($navItemLength/2)){$leftMenuWidth+=$(this).width()}else{$rightMenuWidth+=$(this).width()}});var $menuDiff=Math.abs($rightMenuWidth-$leftMenuWidth);if($leftMenuWidth>$rightMenuWidth||($body.hasClass('rtl')&&$leftMenuWidth<$rightMenuWidth)){$('#header-outer #top .row > .col.span_9').css('padding-right',$menuDiff)}else{$('#header-outer #top .row > .col.span_9').css('padding-left',$menuDiff)}
$('#header-outer[data-format="centered-logo-between-menu"] nav').css('visibility','visible')}else if($('#header-outer[data-format="centered-logo-between-menu"]').length>0&&nectarDOMInfo.winW<1000){$('#header-outer .row > .col.span_9').css({'padding-right':'0','padding-left':'0'})}}
function centeredLogoHeaderInit(){if($('#header-outer[data-format="centered-logo-between-menu"]').length>0){if(!usingLogoImage){centeredLogoMargins()}else if(usingLogoImage&&$('#header-outer[data-format="centered-logo-between-menu"]').length>0&&$('header#top #logo img:first[src]').length>0){var tempLogoImg=new Image();tempLogoImg.src=$('header#top #logo img:first').attr('src');tempLogoImg.onload=function(){centeredLogoMargins()}}
$window.on('smartresize',centeredLogoMargins)}}
function headerNavPreInit(){if(nectarDOMInfo.usingMobileBrowser&&$('#header-outer[data-remove-fixed="1"]').length==0){$body.attr('data-hhun','0')}
if($('#nectar_fullscreen_rows').length>0){($headerOuterEl.attr('data-permanent-transparent','false'))}
if(nectarDOMInfo.usingMobileBrowser&&$('#header-outer[data-mobile-fixed="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length==0){$('#header-space').css('height',$headerOuterEl.outerHeight())}}
var hhunState={timeoutQueued:!1,visible:!0}
function hhunHeaderEffect(){var previousScroll=0,menuOffset=(headerTransparent==!1&&$('#page-header-bg[data-parallax="1"]').length>0)?200:60,hideShowOffset=3,stickyPageSubmenu=($('.page-submenu[data-sticky="true"]').length>0)?!0:!1,bodyOffsetHeight=document.body.offsetHeight;function getBodyHeight(){if(nectarDOMInfo.winW>999&&nectarState.materialOffCanvasOpen!=!0){bodyOffsetHeight=document.body.offsetHeight}}
setInterval(getBodyHeight,1500);function hhunCalcs(){$headerOuterEl.addClass('detached');var currentScroll=nectarDOMInfo.scrollTop,scrollDifference=Math.abs(currentScroll-previousScroll);if(nectarState.animatedScrolling==!0&&$('#header-outer.detached').length>0||nectarState.preventScroll==!0){if(nectarDOMInfo.winW>999){if(currentScroll>menuOffset){if(nectarState.animatedScrolling==!0&&headerTransparent==!0&&nectarState.permanentTransHeader==!1){$headerOuterEl.removeClass('transparent').addClass('scrolling')}
previousScroll=nectarDOMInfo.scrollTop;currentScroll=nectarDOMInfo.scrollTop}
requestAnimationFrame(hhunCalcs);return}}
if(nectarState.materialOffCanvasOpen==!0||nectarState.materialSearchOpen==!0){if(nectarDOMInfo.winW>999){if(nectarState.materialSearchOpen==!0&&headerTransparent==!0){if(nectarState.permanentTransHeader==!1&&currentScroll>menuOffset){$headerOuterEl.removeClass('transparent').addClass('scrolling')}else{$headerOuterEl.addClass('transparent').removeClass('scrolling')}}
requestAnimationFrame(hhunCalcs);return}}
if(headerMobileFixed==!1&&nectarDOMInfo.winW<1000){$headerOuterEl.removeClass('detached').removeClass('scrolling');return}
if(!$headerOuterEl.hasClass('side-widget-open')&&!$('#header-outer .slide-out-widget-area-toggle a').hasClass('animating')){var heightToAdjust;if(currentScroll>1){if($headerSecondaryEl.length>0){if(currentScroll>menuOffset){$headerSecondaryEl.addClass('hide-up');$headerOuterEl.css('transform','translateY(-'+nectarDOMInfo.secondaryHeaderHeight+'px)')}else{$headerSecondaryEl.removeClass('hide-up');$headerOuterEl.css('transform','0px)')}}}
if(currentScroll>menuOffset){if(nectarState.permanentTransHeader==!1){if(hhunState.timeoutQueued==!1){setTimeout(function(){$headerOuterEl.removeClass('transparent');$headerOuterEl.addClass('scrolling');hhunState.timeoutQueued=!1},400)}
hhunState.timeoutQueued=!0}
if(!$headerOuterEl.hasClass('detached')){$headerOuterEl.addClass('detached').removeClass('parallax-contained')}
$headerOuterEl.removeClass('no-transition');if(scrollDifference>=hideShowOffset){if(currentScroll>previousScroll){if(!$headerOuterEl.hasClass('invisible')){$headerOuterEl.addClass('invisible').removeClass('at-top');if($(".sf-menu").length>0&&$().superfish){$(".sf-menu").superfish('hide');$('header#top nav > ul.sf-menu > li.menu-item-over').removeClass('menu-item-over')}}
if(stickyPageSubmenu==!0){$('.page-submenu.stuck').css('transform','translateY(0px)').addClass('header-not-visible')}}else{if($headerOuterEl.hasClass('invisible')){$headerOuterEl.removeClass('invisible')}
if(stickyPageSubmenu==!0){heightToAdjust=$headerOuterEl.outerHeight();if($headerSecondaryEl.length>0){heightToAdjust-=nectarDOMInfo.secondaryHeaderHeight}
if($bodyBorderTop.length>0&&$('body.mobile').length==0){$bodyBorderSizeToRemove=($bodyBorderHeaderColorMatch)?$bodyBorderTop.height():0;$('.page-submenu.stuck').css('transform','translateY('+(heightToAdjust-$bodyBorderSizeToRemove)+'px)').removeClass('header-not-visible')}else{$('.page-submenu.stuck').css('transform','translateY('+heightToAdjust+'px)').removeClass('header-not-visible')}}}}}else{var $topDetachNum=($('#header-outer[data-using-secondary="1"]').length>0)?32:0;if($bodyBorderTop.length>0){$topDetachNum=($('#header-outer[data-using-secondary="1"]').length>0)?32+$bodyBorderTop.height():$bodyBorderTop.height()}
if(currentScroll<=$topDetachNum){$headerOuterEl.addClass('at-top').removeClass('invisible').removeClass('scrolling');if($('#header-outer[data-megamenu-rt="1"]').length>0&&headerTransparent==!0&&$('#header-outer .megamenu').length>0){if($('.nectar-box-roll').length==0&&$('.megamenu.sfHover:not(.width-75):not(.width-50)').length==0){$headerOuterEl.addClass('transparent').css('transform','translateY(0)').removeClass('no-transition')}else if($('.nectar-box-roll').length>0){$headerOuterEl.css('transform','translateY(0)').addClass('at-top-before-box')}}else{if(headerTransparent==!0&&$('.nectar-box-roll').length==0){$headerOuterEl.addClass('transparent').css('transform','translateY(0)')}else if($('.nectar-box-roll').length>0){$headerOuterEl.css('transform','translateY(0)').addClass('at-top-before-box')}}
if($('#page-header-bg[data-parallax="1"]').length>0){$headerOuterEl.addClass('parallax-contained').css('transform','translateY(0)')}}}
if((nectarDOMInfo.winH+nectarDOMInfo.scrollTop)>=bodyOffsetHeight){$headerOuterEl.removeClass('invisible');if(stickyPageSubmenu==!0){heightToAdjust=$headerOuterEl.outerHeight();if($headerSecondaryEl.length>0){heightToAdjust-=nectarDOMInfo.secondaryHeaderHeight}
if($bodyBorderTop.length>0&&$('body.mobile').length==0){$bodyBorderSizeToRemove=($bodyBorderHeaderColorMatch)?$bodyBorderTop.height():0;$('.page-submenu.stuck').css('transform','translateY('+(heightToAdjust-$bodyBorderSizeToRemove)+'px)').removeClass('header-not-visible')}else{$('.page-submenu.stuck').css('transform','translateY('+heightToAdjust+'px)').removeClass('header-not-visible')}}}}
previousScroll=currentScroll;if(nectarDOMInfo.winW>999){requestAnimationFrame(hhunCalcs)}}
hhunCalcs()}
function smallNav(){var $offset=nectarDOMInfo.scrollTop,$windowWidth=nectarDOMInfo.winW,$scrollTriggerOffset=30;if(headerTransparent==!0&&!nectarDOMInfo.usingMobileBrowser){$scrollTriggerOffset=0}
if($offset>$scrollTriggerOffset&&$windowWidth>=1000&&$('body.material-ocm-open').length==0){if($body.is('.material')){if($('#search-outer.material-open').length==0){$('#header-outer[data-transparent-header="true"] .bg-color-stripe').css('transition','none')}
if($headerSecondaryEl.length>0){$headerSecondaryEl.addClass('hide-up');$headerOuterEl.css('transform','translateY(-'+nectarDOMInfo.secondaryHeaderHeight+'px)')}}
if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0&&$('#header-outer .megamenu').length>0){if($headerOuterEl.attr('data-transparent-header')=='true'&&$('#header-outer.side-widget-open').length==0&&$('#header-outer[data-permanent-transparent="1"]').length==0&&$('.megamenu.sfHover:not(.width-75):not(.width-50)').length==0){$headerOuterEl.removeClass('transparent');$headerOuterEl.removeClass('no-transition')}}else{if($headerOuterEl.attr('data-transparent-header')=='true'&&$('#header-outer.side-widget-open').length==0&&$('#header-outer[data-permanent-transparent="1"]').length==0){$headerOuterEl.removeClass('transparent')}}
$('#header-outer:not(.small-nav) header#top nav > ul > li.menu-item-with-margin').stop(!0,!0).animate({'margin-right':(parseInt($('header#top nav > ul > li.menu-item-with-margin').css('margin-right'))-parseInt(logoShrinkNum)*3)+'px'},{queue:!1,duration:250,easing:'easeOutCubic'});$('#header-outer, #search-outer').addClass('small-nav');if($('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&$bodyBorderTop.length>0&&$bodyBorderHeaderColorMatch==!0){$('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({'padding':'0'},{queue:!1,duration:250,easing:'easeOutCubic'})}
if($('.nectar-box-roll').length>0&&$('#header-outer[data-permanent-transparent="1"]').length==0){$('#ajax-content-wrap').animate({'margin-top':(Math.floor(($logoHeight-logoShrinkNum)+(headerPadding*2)/1.8+nectarDOMInfo.adminBarHeight+nectarDOMInfo.secondaryHeaderHeight))},{queue:!1,duration:250,easing:'easeOutCubic'})}
$window.off('scroll.headerResizeEffect',smallNav);$window.on('scroll.headerResizeEffect',bigNav);$('#header-outer[data-transparent-header="true"]').css('transition','transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out');$('#header-outer[data-transparent-header="true"] .cart-menu').css('transition','none');setTimeout(function(){$('#header-outer[data-transparent-header="true"]').css('transition','transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out');$('#header-outer[data-transparent-header="true"] .cart-menu').css('transition','border-color 0.30s ease')},300)}}
function bigNav(){var $offset=nectarDOMInfo.scrollTop,$windowWidth=nectarDOMInfo.winW,$scrollTriggerOffset=30;if($body.is('.material-ocm-open')){return!1}
if(headerTransparent==!0&&!nectarDOMInfo.usingMobileBrowser){$scrollTriggerOffset=0}
if($offset<=$scrollTriggerOffset&&$windowWidth>=1000||$('.small-nav').length>0&&$('#ajax-content-wrap.no-scroll').length>0){$('#header-outer, #search-outer').removeClass('small-nav');if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0&&$('#header-outer .megamenu').length>0){if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.nectar-box-roll').length==0&&$('.megamenu.sfHover:not(.width-75):not(.width-50)').length==0){$headerOuterEl.addClass('transparent');$headerOuterEl.removeClass('no-transition')}}else{if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.nectar-box-roll').length==0){$headerOuterEl.addClass('transparent')}}
if($('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&$bodyBorderTop.length>0&&$bodyBorderHeaderColorMatch==!0){$('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({'padding':'0 28px'},{queue:!1,duration:250,easing:'easeOutCubic'})}
$('header#top nav > ul > li.menu-item-with-margin').stop(!0,!0).animate({'margin-right':(parseInt($('header#top nav > ul > li.menu-item-with-margin').css('margin-right'))+parseInt(logoShrinkNum)*3)+'px'},{queue:!1,duration:150,easing:'easeOutCubic'});if($headerSecondaryEl.length>0){$headerSecondaryEl.removeClass('hide-up');$headerOuterEl.removeClass('hide-up').css('transform','translateY(0%)')}
if($('.nectar-box-roll').length>0&&$('#header-outer[data-permanent-transparent="1"]').length==0){$('#ajax-content-wrap').animate({'margin-top':(Math.floor(($logoHeight)+(headerPadding*2)+nectarDOMInfo.adminBarHeight+nectarDOMInfo.secondaryHeaderHeight))},{queue:!1,duration:250,easing:'easeOutCubic'})}
$window.off('scroll.headerResizeEffect',bigNav);$window.on('scroll.headerResizeEffect',smallNav);$('#header-outer[data-transparent-header="true"]').css('transition','transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out');$('#header-outer[data-transparent-header="true"] .cart-menu').css('transition','none');setTimeout(function(){$('#header-outer[data-transparent-header="true"]').css('transition','transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out');$('#header-outer[data-transparent-header="true"] .cart-menu').css('transition','border-color 0.30s ease')},300)}}
function opaqueCheck(){if($('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&!$headerOuterEl.hasClass('within-custom-breakpoint')){return}
if(nectarDOMInfo.scrollTop>0){if($('body.material').length>0){$headerOuterEl.addClass('scrolled-down');if($headerSecondaryEl.length>0&&nectarDOMInfo.winW>1000){$headerSecondaryEl.addClass('hide-up');$headerOuterEl.css('transform','translateY(-'+nectarDOMInfo.secondaryHeaderHeight+'px)')}}
if($headerOuterEl.attr('data-transparent-header')=='true'&&$('#header-outer[data-permanent-transparent="1"]').length==0){$headerOuterEl.removeClass('transparent').addClass('scrolled-down')}
$window.off('scroll.headerResizeEffectOpaque',opaqueCheck);$window.on('scroll.headerResizeEffectOpaque',transparentCheck)}}
function transparentCheck(){if($('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&!$headerOuterEl.hasClass('within-custom-breakpoint')){return}
if(nectarDOMInfo.scrollTop==0&&$('body.material-ocm-open').length==0){if($('#header-outer[data-megamenu-rt="1"]').length>0&&$('#header-outer[data-transparent-header="true"]').length>0&&$('#header-outer .megamenu').length>0){if($headerOuterEl.attr('data-transparent-header')=='true'&&$('.megamenu.sfHover:not(.width-75):not(.width-50)').length==0){$headerOuterEl.addClass('transparent').removeClass('scrolled-down');$headerOuterEl.removeClass('no-transition')}else if($headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.removeClass('scrolled-down')}}else{if($headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.addClass('transparent').removeClass('scrolled-down')}}
if($('body.material').length>0){$headerOuterEl.removeClass('scrolled-down');if($headerSecondaryEl.length>0&&nectarDOMInfo.winW>1000){$headerSecondaryEl.removeClass('hide-up');$headerOuterEl.removeClass('hide-up').css('transform','translateY(0%)')}}
$window.off('scroll.headerResizeEffectOpaque',transparentCheck);$window.on('scroll.headerResizeEffectOpaque',opaqueCheck)}}
function mobileHeaderRAF(){if(nectarState.materialOffCanvasOpen==!0){requestAnimationFrame(mobileHeaderRAF);return}
if(nectarDOMInfo.scrollTop>5){if(nectarState.mobileHeader!='scrolled'){if(nectarState.permanentTransHeader==!1){$headerOuterEl.removeClass('transparent')}
if(nectarDOMInfo.secondaryHeaderHeight>0){$headerSecondaryEl.addClass('hide-up');$headerOuterEl.css('transform','translateY(-'+nectarDOMInfo.secondaryHeaderHeight+'px)').addClass('hidden-secondary')}else{$headerOuterEl.removeClass('hidden-secondary')}
$headerOuterEl.addClass('scrolled-down');nectarState.mobileHeader='scrolled'}}else{if(nectarState.mobileHeader!='at-top'){if($headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.addClass('transparent')}
if(nectarDOMInfo.secondaryHeaderHeight>0){$headerSecondaryEl.removeClass('hide-up');$headerOuterEl.css('transform','translateY(0px)')}
$headerOuterEl.removeClass('hidden-secondary').removeClass('scrolled-down');nectarState.mobileHeader='at-top'}}
if(nectarDOMInfo.winW<1000){requestAnimationFrame(mobileHeaderRAF)}}
function bindScrollEffectsMobile(){if(nectarDOMInfo.winW>999){return}
nectarState.mobileHeader='';$window.off('scroll.headerResizeEffect');$window.off('scroll.headerResizeEffectOpaque');$headerOuterEl.removeClass('scrolled-down').removeClass('detached').removeClass('invisible').removeClass('at-top').css('transform','none');if($('#header-outer[data-mobile-fixed="1"]').length>0){requestAnimationFrame(mobileHeaderRAF)}else if($headerOuterEl.attr('data-transparent-header')=='true'){$headerOuterEl.addClass('transparent')}
$window.off('smartresize.nectarNavScrollEffects');$window.on('smartresize.nectarNavScrollEffects',bindScrollEffectsDesktop)}
function bindScrollEffectsDesktop(){if(nectarDOMInfo.winW<1000){return}
if(headerResize==!0&&headerHideUntilNeeded!='1'){$window.off('scroll.headerResizeEffect');if($('#nectar_fullscreen_rows').length==0){$window.on('scroll.headerResizeEffect',smallNav)}else if($('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&nectarDOMInfo.usingMobileBrowser){$window.on('scroll.headerResizeEffect',smallNav)}}else if(headerHideUntilNeeded!='1'){$window.off('scroll.headerResizeEffectOpaque');$window.on('scroll.headerResizeEffectOpaque',opaqueCheck)}else if(headerHideUntilNeeded=='1'){if($('.nectar-box-roll').length>0){$headerOuterEl.addClass('at-top-before-box')}
if($('#header-outer[data-remove-fixed="1"]').length==0){hhunHeaderEffect()}}
if($('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0){if($headerSecondaryEl.length>0){$headerOuterEl.css('transform','')}
if(nectarDOMInfo.scrollTop>200&&!$headerOuterEl.hasClass('fixed-menu')){$headerOuterEl.addClass('fixed-menu')}}
$window.off('smartresize.nectarNavScrollEffects');$window.on('smartresize.nectarNavScrollEffects',bindScrollEffectsMobile)}
function headerNavScrollInit(){if($('#header-outer[data-remove-fixed="1"]').length==0&&nectarDOMInfo.winW>1000){if($(window).scrollTop()!=0&&$('#header-outer.transparent[data-permanent-transparent="false"]').length==1){$headerOuterEl.removeClass('transparent')}}
if($('#nectar_fullscreen_rows').length==0&&$('.nectar-box-roll').length==0){midnightInit()}
if(nectarDOMInfo.winW<1000&&$('.nectar-box-roll').length==0){bindScrollEffectsMobile();$window.on('smartresize.nectarNavScrollEffects',bindScrollEffectsMobile)}else{bindScrollEffectsDesktop();$window.on('smartresize.nectarNavScrollEffects',bindScrollEffectsDesktop)}}
function headerSpace(){if($('.mobile').length>0){if(nectarDOMInfo.winH<nectarDOMInfo.winW&&nectarDOMInfo.winW>1000){if($('#header-outer.small-nav').length==0){$('#header-space').css('height',$headerOuterEl.outerHeight())}}else{$('#header-space').css('height',$headerOuterEl.outerHeight())}}else{if($('.nectar-parallax-scene.first-section').length==0){var headerPadding2=headerPadding-headerPadding/1.8;var $headerHeight=($('#header-outer[data-header-resize="1"]').length>0&&$('.small-nav').length>0)?$headerOuterEl.outerHeight()+(parseInt(logoShrinkNum)+headerPadding2*2):$headerOuterEl.outerHeight();if(Math.abs($headerHeight-$('#header-space').height())>7){$('#header-space').css('height',$headerHeight)}}}}
function headerNavOffsetInit(){var lastPosition=-1;var $headerScrollTop=nectarDOMInfo.scrollTop;function headerOffsetAdjust(){if($body.hasClass('compose-mode')){return}
$headerScrollTop=nectarDOMInfo.scrollTop;if(lastPosition==$headerScrollTop){requestAnimationFrame(headerOffsetAdjust);return!1}else{lastPosition=$headerScrollTop}
headerOffsetAdjustCalc();requestAnimationFrame(headerOffsetAdjust)}
function headerOffsetAdjustCalc(){var $eleHeight=0;if(nectarDOMInfo.winW<1000||(condenseHeaderLayout==!0&&$('#header-outer .span_9').css('display')=='none')||(condenseHeaderLayout==!0&&$('#header-outer .span_9 > nav').css('display')=='none')){$eleHeight=0;var $endOffset=($wpAdminBar.css('position')=='fixed')?$wpAdminBar.height():0;$eleHeight+=nectarDOMInfo.adminBarHeight;if($eleHeight-$headerScrollTop>$endOffset){$headerOuterEl.css('top',$eleHeight-$headerScrollTop+'px')}else{$headerOuterEl.css('top',$endOffset)}}else{if(condenseHeaderLayout==!1){$eleHeight=0;if(!$headerOuterEl.is('[data-remove-fixed="1"]')){$eleHeight+=nectarDOMInfo.adminBarHeight}
$headerOuterEl.css('top',$eleHeight+'px')}}}
if($('#header-outer[data-mobile-fixed="1"]').length>0&&$wpAdminBar.length>0){if($('#nectar_fullscreen_rows').length==0){requestAnimationFrame(headerOffsetAdjust)}else if($('#nectar_fullscreen_rows').length>0&&nectarDOMInfo.usingMobileBrowser){requestAnimationFrame(headerOffsetAdjust)}
$window.on('smartresize',headerOffsetAdjustCalc)}}
function footerRevealCalcs(){var $headerNavSpace=0;var pageHeaderHeight=0;if($headerOuterEl.is('[data-logo-height]')&&$headerOuterEl.is('[data-padding]')){if(!$headerOuterEl.hasClass('transparent')){if($headerOuterEl.find('#logo.no-image').length>0){$headerNavSpace=(headerLayoutFormat=='left-header'&&nectarDOMInfo.winW>1000)?0:parseInt($headerOuterEl.find('#logo.no-image').height())+(parseInt($headerOuterEl.attr('data-padding')*2))}else{$headerNavSpace=(headerLayoutFormat=='left-header'&&nectarDOMInfo.winW>1000)?0:parseInt($headerOuterEl.attr('data-logo-height'))+(parseInt($headerOuterEl.attr('data-padding')*2))}}}else{$headerNavSpace=(headerLayoutFormat=='left-header'&&nectarDOMInfo.winW>1000)?0:$headerOuterEl.outerHeight()}
if($pageHeaderBG.length>0){pageHeaderHeight+=$pageHeaderBG.height()}
if($('.page-header-no-bg').length>0){pageHeaderHeight+=$('.page-header-no-bg').height()}
if(nectarDOMInfo.winH-nectarDOMInfo.adminBarHeight-$headerNavSpace-nectarDOMInfo.footerOuterHeight-1-pageHeaderHeight>0){var $resizeExtra=($('body:not(.material) #header-outer[data-header-resize="1"]').length>0)?55:0;$('body[data-footer-reveal="1"]:not(.nectar_using_pfsr) .container-wrap').css({'margin-bottom':nectarDOMInfo.footerOuterHeight});$('.container-wrap').css({'min-height':nectarDOMInfo.winH-nectarDOMInfo.adminBarHeight-$headerNavSpace-nectarDOMInfo.footerOuterHeight-pageHeaderHeight+$resizeExtra})}else{$('body[data-footer-reveal="1"]:not(.nectar_using_pfsr) .container-wrap').css({'margin-bottom':nectarDOMInfo.footerOuterHeight})}
if(nectarDOMInfo.winW<1000){$footerOuterEl.attr('data-midnight','light')}else{$footerOuterEl.removeAttr('data-midnight')}}
function footerRevealInit(){if($('body[data-footer-reveal="1"]').length>0||$('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0){setTimeout(footerRevealCalcs,60);footerRevealCalcs();$window.on('resize',footerRevealCalcs);if($('body[data-footer-reveal="1"][data-footer-reveal-shadow="large_2"]').length>0){$('.container-wrap').css({boxShadow:'0 70px 110px -30px '+$footerOuterEl.css('backgroundColor')})}}}
function headerRowColorInheritInit(){if($('body[data-header-inherit-rc="true"]').length>0&&$('.mobile').length==0&&$('#header-outer[data-transparent-header="true"]').length>0){var headerOffset=$logoHeight/2+headerPadding+nectarDOMInfo.adminBarHeight;if($('#header-outer[data-permanent-transparent="1"]').length==0){headerOffset=($logoHeight-logoShrinkNum)+Math.ceil((headerPadding*2)/1.8)+nectarDOMInfo.adminBarHeight}
$('.main-content > .row > .wpb_row').each(function(){var $that=$(this);var $textColor;var waypoint=new Waypoint({element:$that,handler:function(direction){if(direction=='down'){if($that.find('.row-bg.using-bg-color').length>0){$textColor=($that.find('> .col.span_12.light').length>0)?'light-text':'dark-text';$headerOuterEl.css('background-color',$that.find('.row-bg').css('background-color')).removeClass('light-text').removeClass('dark-text').addClass($textColor);$headerOuterEl.attr('data-current-row-bg-color',$that.find('.row-bg').css('background-color'));$('body.material #header-outer .bg-color-stripe').css('background-color',$that.find('.row-bg').css('background-color'))}else{$headerOuterEl.css('background-color',$headerOuterEl.attr('data-user-set-bg')).removeClass('light-text').removeClass('dark-text');$headerOuterEl.attr('data-current-row-bg-color',$headerOuterEl.attr('data-user-set-bg'));$('body.material #header-outer .bg-color-stripe').css('background-color','')}}else{if($that.prev('div.wpb_row').find('.row-bg.using-bg-color').length>0){$textColor=($that.prev('div.wpb_row').find('> .col.span_12.light').length>0)?'light-text':'dark-text';$headerOuterEl.css('background-color',$that.prev('div.wpb_row').find('.row-bg').css('background-color')).removeClass('light-text').removeClass('dark-text').addClass($textColor);$headerOuterEl.attr('data-current-row-bg-color',$that.prev('div.wpb_row').find('.row-bg').css('background-color'));$('body.material #header-outer .bg-color-stripe').css('background-color',$that.prev('div.wpb_row').find('.row-bg').css('background-color'))}else{$headerOuterEl.css('background-color',$headerOuterEl.attr('data-user-set-bg')).removeClass('light-text').removeClass('dark-text');$headerOuterEl.attr('data-current-row-bg-color',$headerOuterEl.attr('data-user-set-bg'));$('body.material #header-outer .bg-color-stripe').css('background-color','')}}},offset:headerOffset})})}}
function stickyPageSubmenuInit(){var $=window.jQuery,Waypoint=window.Waypoint,$offsetHeight=calcHeaderNavHeight(),$headerHeight=calcHeaderNavHeight();$window.on('smartresize',function(){$offsetHeight=calcHeaderNavHeight();if($wpAdminBar.length>0&&$wpAdminBar.css('position')=='fixed'){$offsetHeight+=$wpAdminBar.height()}
if($bodyBorderTop.length>0&&$window.width()>1000&&$('body[data-hhun="1"]').length>0){$offsetHeight+=$bodyBorderTop.height()}
if($('.page-submenu.stuck').length>0){$('.page-submenu.stuck').addClass('no-trans').css('top',$offsetHeight).css('transform','translateY(0)').addClass('stuck');setTimeout(function(){$('.page-submenu.stuck').removeClass('no-trans')},50);$('.page-submenu.stuck').parents('.wpb_row').css('z-index',10000);if($('#boxed').length>0){var $negMargin=($window.width()>1000)?$('.container-wrap').width()*0.04:39;$('.page-submenu.stuck').css({'margin-left':'-'+$negMargin+'px','width':$('.container-wrap').width()})}}else{$('.page-submenu.stuck').css('top','0').removeClass('stuck');$('.page-submenu.stuck').parents('.wpb_row').css('z-index','auto');if($('#boxed').length>0){$('.page-submenu.stuck').css({'margin-left':'0px','width':'100%'})}}});function Sticky(options){this.options=$.extend({},Waypoint.defaults,Sticky.defaults,options);this.element=this.options.element;this.$element=$(this.element);this.createWrapper();this.topLevel=($(this.element).parents('.top-level').length>0)?!0:!1;this.createWaypoint()}
Sticky.prototype.createWaypoint=function(){var originalHandler=this.options.handler;$offsetHeight=calcHeaderNavHeight();if(this.topLevel&&$('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0){$offsetHeight+=1;this.$element.css({'margin-top':'-1px',})}
if($wpAdminBar.length>0&&$wpAdminBar.css('position')=='fixed'){$offsetHeight+=$wpAdminBar.height()}
if($bodyBorderTop.length>0&&$window.width()>1000&&$('body[data-hhun="1"]').length>0){$offsetHeight+=$bodyBorderTop.height()}
this.waypoint=new Waypoint($.extend({},this.options,{element:this.wrapper,handler:$.proxy(function(direction){var shouldBeStuck=this.options.direction.indexOf(direction)>-1;var wrapperHeight=shouldBeStuck?this.$element.outerHeight(!0):'';this.$wrapper.height(wrapperHeight);if(shouldBeStuck){var transformAmt=0;if(this.topLevel&&$('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0){var heightToAdjust=$headerOuterEl.outerHeight();var $bodyBorderSizeToRemove=0;if($headerSecondaryEl.length>0){heightToAdjust-=nectarDOMInfo.secondaryHeaderHeight}
if($bodyBorderTop.length>0&&$('body.mobile').length==0){$bodyBorderSizeToRemove=($bodyBorderHeaderColorMatch)?$bodyBorderTop.height():0}
transformAmt=heightToAdjust-$bodyBorderSizeToRemove}
this.$element.addClass('no-trans').css('top',$offsetHeight).css('transform','translateY('+transformAmt+'px)').addClass('stuck');var $that=this;setTimeout(function(){$that.$element.removeClass('no-trans')},50);this.$element.parents('.wpb_row').css('z-index',10000);if($('#boxed').length>0){var $negMargin=($window.width()>1000)?$('.container-wrap').width()*0.04:39;this.$element.css({'margin-left':'-'+$negMargin+'px','width':$('.container-wrap').width()})}}else{this.$element.css('top','0').removeClass('stuck');if($('#boxed').length>0)this.$element.css({'margin-left':'0px','width':'100%'})}
if(originalHandler){originalHandler.call(this,direction)}},this),offset:$offsetHeight}));var $that=this;setInterval(function(){if($('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0){var heightToAdjust=$headerOuterEl.outerHeight();if($headerSecondaryEl.length>0){heightToAdjust-=nectarDOMInfo.secondaryHeaderHeight}
$that.waypoint.options.offset=$offsetHeight+heightToAdjust}else{$that.waypoint.options.offset=$offsetHeight}
Waypoint.refreshAll()},100)};Sticky.prototype.createWrapper=function(){if(this.options.wrapper){this.$element.wrap(this.options.wrapper)}
this.$wrapper=this.$element.parent();this.wrapper=this.$wrapper[0]};Sticky.prototype.destroy=function(){if(this.$element.parent()[0]===this.wrapper){this.waypoint.destroy();this.$element.removeClass(this.options.stuckClass);if(this.options.wrapper){this.$element.unwrap()}}};Sticky.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:'stuck',direction:'down right'};Waypoint.Sticky=Sticky}
function pageSubmenuInit(){if($('.page-submenu[data-sticky="true"]').length>0&&$('#nectar_fullscreen_rows').length==0){stickyPageSubmenuInit();if($('.page-submenu').parents('.span_12').find('> .wpb_column').length>1){var pageMenu=$('.page-submenu').clone(),pageMenuParentRow=$('.page-submenu').parents('.wpb_row');$('.page-submenu').remove();pageMenuParentRow.before(pageMenu)}
var sticky=new Waypoint.Sticky({element:$('.page-submenu[data-sticky="true"]')[0]})}
if($('#nectar_fullscreen_rows').length==0){$('.page-submenu').parents('.wpb_row').css('z-index',10000)}
$('.page-submenu .mobile-menu-link').on('click',function(){$(this).parents('.page-submenu').find('ul').stop(!0).slideToggle(350);return!1});$('.page-submenu ul li a').on('click',function(){if($('body.mobile').length>0){$(this).parents('.page-submenu').find('ul').stop(!0).slideToggle(350)}})}
function vcFullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var windowHeight,offsetTop,fullHeight;windowHeight=$window.height();$(".vc_row-o-full-height").each(function(){offsetTop=$(this).offset().top;if(offsetTop<windowHeight&&$(this).hasClass('top-level')&&!nectarDOMInfo.usingFrontEndEditor){fullHeight=100-offsetTop/(windowHeight/100);$(this).css("min-height",fullHeight+"vh");$(this).find('> .col.span_12').css("min-height",fullHeight+"vh")}else{$(this).css("min-height",windowHeight);$(this).find('> .col.span_12').css("min-height",windowHeight)}})}}
function vcFullHeightRowInit(){if($('.vc_row-o-full-height').length>0){vcFullHeightRow();$window.on('smartresize',vcFullHeightRow)}}
function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).find('> .span_12').css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')});if(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./)){fixIE11Images();$(window).on('resize',fixIE11Images)}}
function fixIE11Images(){$('.img-with-aniamtion-wrap img.img-with-animation').each(function(){if($(this).parents('.tabbed').length==0&&$(this).parents('.toggle').length==0){var $parentWrap=$(this).parents('.img-with-aniamtion-wrap');$parentWrap.css({'height':''});var height=$(this).height();$parentWrap.css({'height':height})}})}
function recentPostsTitleOnlyEqualHeight(){function recentPostHeight(){$('.blog-recent[data-style="title_only"]').each(function(){if($(this).find('> .col').length>1){return!1}
var $parentsSeletor=$(this).parent().parent().parent();if($parentsSeletor.hasClass('vc_col-sm-3')||$parentsSeletor.hasClass('vc_col-sm-4')||$parentsSeletor.hasClass('vc_col-sm-6')||$parentsSeletor.hasClass('vc_col-sm-8')||$parentsSeletor.hasClass('vc_col-sm-9')){if($('body.mobile').length==0&&$(this).next('div').length==0){var tallestColumn=0;$(this).find('> .col').css('padding','50px 20px');$(this).parents('.span_12').find(' > .wpb_column').each(function(){if(Math.floor($(this).height())>tallestColumn){tallestColumn=Math.floor($(this).height())}});if(Math.floor($(this).find('> .col').outerHeight(!0))<Math.floor($(this).parents('.wpb_row').height())-1){$(this).find('> .col').css('padding-top',(tallestColumn-$(this).find('> .col').height())/2+'px');$(this).find('> .col').css('padding-bottom',(tallestColumn-$(this).find('> .col').height())/2+'px')}}else{$(this).find('> .col').css('padding','50px 20px')}}})}
if($('.blog-recent[data-style="title_only"]').length>0){recentPostHeight();$window.on('smartresize',recentPostHeight)}}
function recentPostSliderHeight(){$('.nectar-recent-posts-slider').each(function(){var $minHeight=250,$definedHeight=parseInt($(this).attr('data-height')),dif=($('body[data-ext-responsive="true"]').length>0)?$window.width()/1400:$window.width()/1100,$sliderSelectors=$(this).find('.nectar-recent-post-slide, .flickity-viewport');if(nectarDOMInfo.winW>1000&&$('#boxed').length==0){if($(this).parents('.full-width-content').length==0){if($('body[data-ext-responsive="true"]').length>0&&nectarDOMInfo.winW>=1400){$sliderSelectors.css('height',Math.ceil($definedHeight))}else if($('body[data-ext-responsive="true"]').length==0&&nectarDOMInfo.winW>=1100){$sliderSelectors.css('height',Math.ceil($definedHeight))}else{$sliderSelectors.css('height',Math.ceil($definedHeight*dif))}}else{$sliderSelectors.css('height',Math.ceil($definedHeight*dif))}}else{var $parentCol=($(this).parents('.wpb_column').length>0)?$(this).parents('.wpb_column'):$(this).parents('.col');if($parentCol.length==0){$parentCol=$('.main-content')}
if(!$parentCol.hasClass('vc_span12')&&!$parentCol.hasClass('main-content')&&!$parentCol.hasClass('span_12')&&!$parentCol.hasClass('vc_col-sm-12')){var $parentColWidth=sliderColumnDesktopWidth($parentCol),$aspectRatio=$definedHeight/$parentColWidth;if($aspectRatio*$parentCol.width()<=$minHeight){$sliderSelectors.css('height',$minHeight)}else{$sliderSelectors.css('height',$aspectRatio*$parentCol.width())}}else{if($definedHeight*dif<=$minHeight){$sliderSelectors.css('height',$minHeight)}else{$sliderSelectors.css('height',Math.ceil($definedHeight*dif))}}}})}
function sliderColumnDesktopWidth(parentCol){var $parentColWidth=1100,$columnNumberParsed=$(parentCol).attr('class').match(/\d+/);if($columnNumberParsed=='2'){$parentColWidth=170}else if($columnNumberParsed=='3'){$parentColWidth=260}else if($columnNumberParsed=='4'){$parentColWidth=340}else if($columnNumberParsed=='6'){$parentColWidth=530}else if($columnNumberParsed=='8'){$parentColWidth=700}else if($columnNumberParsed=='9'){$parentColWidth=805}else if($columnNumberParsed=='10'){$parentColWidth=916.3}else if($columnNumberParsed=='12'){$parentColWidth=1100}
return $parentColWidth}
function splitLineText(){$('.nectar-recent-posts-single_featured.multiple_featured').each(function(){var $slideClass=($(this).find('.project-slides').length>0)?'.project-slide':'.nectar-recent-post-slide',$slideInfoClass=($(this).find('.project-slides').length>0)?'.project-info h1':'.inner-wrap h2 a';$(this).find($slideClass).each(function(){$(this).find($slideInfoClass).each(function(){var textArr=$(this).text();textArr=textArr.trim();textArr=textArr.split(' ');$(this)[0].innerHTML='';for(var i=0;i<textArr.length;i++){$(this)[0].innerHTML+='<span>'+textArr[i]+'</span> '}});$(this).find($slideInfoClass+' > span').wrapInner('<span class="inner" />')})})}
function splitLineHeadingMarkup(){$('.nectar-split-heading[data-animation-type="line-reveal-by-space"]').each(function(){var animatedClass=($(this).hasClass('animated-in'))?' animated':'';$(this).find('> *').each(function(){var textArr=$(this).text();textArr=textArr.trim();textArr=textArr.split(' ');$(this)[0].innerHTML='';for(var i=0;i<textArr.length;i++){$(this)[0].innerHTML+='<span><span class="inner'+animatedClass+'">'+textArr[i]+'</span></span> '}});$(this).addClass('markup-generated')});$('.nectar-split-heading[data-animation-type="letter-fade-reveal"]').each(function(){$(this).find('> *').each(function(){var textArr=$(this).text();textArr=textArr.trim();textArr=textArr.split(' ');$(this)[0].innerHTML='';for(var i=0;i<textArr.length;i++){$(this)[0].innerHTML+='<span>'+textArr[i]+'</span> '}});$(this).find('span').each(function(){var $this=$(this);var textArr=$(this).text().split('');$this.empty();$.each(textArr,function(i,el){$this.append("<span>"+el+"</span")})});$(this).addClass('markup-generated')})}
function splitLineHeadingInit(){if($('.nectar-split-heading[data-animation-type="line-reveal-by-space"]').length>0||$('.nectar-split-heading[data-animation-type="letter-fade-reveal"]').length>0){splitLineHeadingMarkup()}}
function recentPostsFlickityInit(){if($('.nectar-recent-posts-slider-inner').length>0){var $rpFGroupCells=($('.nectar-recent-posts-slider_multiple_visible').length>0)?'90%':!1;var $rpF=$('.nectar-recent-posts-slider-inner').flickity({contain:!0,groupCells:$rpFGroupCells,draggable:!0,lazyLoad:!1,imagesLoaded:!0,percentPosition:!0,prevNextButtons:!1,pageDots:!0,resize:!0,setGallerySize:!0,wrapAround:!0,accessibility:!1});setTimeout(function(){$('.nectar-recent-posts-slider-inner').addClass('loaded')},1150);var flkty=$rpF.data('flickity');$rpF.on('dragStart.flickity',function(){$('.flickity-viewport').addClass('is-moving')});$rpF.on('dragEnd.flickity',function(){$('.flickity-viewport').removeClass('is-moving')});var $dragTimeout;$rpF.on('select.flickity',function(){$('.flickity-viewport').addClass('no-hover');clearTimeout($dragTimeout);$dragTimeout=setTimeout(function(){$('.flickity-viewport').removeClass('no-hover')},400)});recentPostSliderHeight();$window.on('resize',recentPostSliderHeight);if(!nectarDOMInfo.usingMobileBrowser&&!nectarDOMInfo.usingFrontEndEditor){$window.on('resize',recentPostSliderParallaxMargins)}}
function multipleLargeFeaturedInit(){$('.nectar-recent-posts-single_featured.multiple_featured').each(function(sliderIndex){if($(this).find('> .normal-container').length>0){$(this).find('> .normal-container').remove()}
$(this).append('<div class="normal-container container"> <ul class="controls" data-color="'+$(this).attr('data-button-color')+'" data-num="'+$(this).find('.nectar-recent-post-slide').length+'"></ul> </div>');var $that=$(this);var tallestFeaturedSlide=0;var $slideClickTimeout;$nectarCustomSliderRotate[sliderIndex]={autorotate:''};$(this).find('.nectar-recent-post-slide').each(function(i){if($(this).find('.recent-post-container').height()>tallestFeaturedSlide){$(this).siblings().removeClass('tallest');$(this).addClass('tallest');tallestFeaturedSlide=$(this).find('.recent-post-container').height()}
var $activeClass=(i==0&&$(this).parents('.nectar-recent-posts-single_featured.multiple_featured[data-autorotate="none"]').length>0)?'class="active"':'';$that.find('.controls').append('<li '+$activeClass+'><span class="title">'+$(this).find('h2').text()+'</span></li>')});$(this).addClass('js-loaded');$(this).find('.controls li').on('click',function(e){if($(this).hasClass('active')){return}
if(e.originalEvent!==undefined){$(this).parent().find('.active').addClass('trans-out')}
var $index=$(this).index(),$oldIndex=$(this).parent().find('.active').index(),$that=$(this);clearTimeout($slideClickTimeout);$(this).siblings().removeClass('active');$(this).addClass('active');$slideClickTimeout=setTimeout(function(){$that.parents('.multiple_featured').find('.nectar-recent-post-slide:not(:eq('+$index+'))').css('opacity','0').removeClass('active');$that.parent().find('.trans-out').removeClass('trans-out')},300);$that.parents('.multiple_featured').find('.nectar-recent-post-slide:not(:eq('+$index+'))').css('z-index','10');$that.parents('.multiple_featured').find('.nectar-recent-post-slide:eq('+$oldIndex+')').css('z-index','15');$(this).parents('.multiple_featured').find('.nectar-recent-post-slide').eq($index).css({'opacity':'1','z-index':'20'}).addClass('active');if($(this).parents('.multiple_featured').attr('data-autorotate')!='none'){nectarCustomSliderResetRotate($that.parents('.nectar-recent-posts-single_featured.multiple_featured'),sliderIndex)}});$that=$(this);if($(this).attr('data-autorotate').length>0&&$(this).attr('data-autorotate')!='none'&&$('body.vc_editor').length==0){setTimeout(function(){var slide_interval=(parseInt($that.attr('data-autorotate'))<100)?4000:parseInt($that.attr('data-autorotate'));$nectarCustomSliderRotate[sliderIndex].autorotate=setInterval(function(){nectarCustomSliderRotate($that)},slide_interval);$that.find('.controls > li:first-child').addClass('active')},30)}});splitLineText();$window.on('resize',splitLineText)}
multipleLargeFeaturedInit()}
function recentPostSliderParallax(){$('.nectar-recent-posts-slider').each(function(){var $offset=parseInt($(this).find('.flickity-slider').position().left),$slides=$(this).find('.nectar-recent-post-slide'),$slideLength=$slides.length,$slideWidth=$slides.width(),$lastChildIndex=$(this).find('.nectar-recent-post-slide:last-child').index(),$slideFirstChildBG=$(this).find('.nectar-recent-post-slide:first-child .nectar-recent-post-bg'),$slideLastChildBG=$(this).find('.nectar-recent-post-slide:last-child .nectar-recent-post-bg');if($offset>=-3){$slideLastChildBG.css('margin-left',parseInt(Math.ceil($slideWidth/3.5))+'px')}else{$slideLastChildBG.css('margin-left','-'+parseInt(Math.ceil($slideWidth/3.5*$lastChildIndex))+'px')}
if(Math.abs($offset)>=($slideLength-1)*$slideWidth){$slideFirstChildBG.css('margin-left','-'+parseInt(Math.ceil(($slideWidth/3.5)*$slideLength))+'px')}else{$slideFirstChildBG.css('margin-left','0px')}
$(this).find('.nectar-recent-post-bg').css('transform','translateX('+Math.ceil($(this).find('.flickity-slider').position().left/-3.5)+'px)')});requestAnimationFrame(recentPostSliderParallax)}
function recentPostSliderParallaxMargins(){$('.nectar-recent-posts-slider').each(function(){var $slideWidth=$(this).find('.nectar-recent-post-slide').width();$(this).find('.nectar-recent-post-slide').each(function(i){$(this).find('.nectar-recent-post-bg').css('margin-left','-'+parseInt(Math.ceil($slideWidth/3.5)*i)+'px')})})}
function recentPostsInit(){recentPostsFlickityInit();$('.blog-recent[data-style="classic_enhanced_alt"] .inner-wrap').each(function(){$(this).find('.post-featured-img').each(function(){var $src=$(this).find('img').attr('src');$(this).css('background-image','url('+$src+')')})});$('.blog-recent[data-style="classic_enhanced"]').each(function(){if($(this).find('.inner-wrap.has-post-thumbnail').length==0){$(this).addClass('no-thumbs')}});if(!nectarDOMInfo.usingMobileBrowser){if($('.nectar-recent-posts-slider').length>0&&!nectarDOMInfo.usingFrontEndEditor){window.requestAnimationFrame(recentPostSliderParallax)}}
if(!nectarDOMInfo.usingMobileBrowser&&!nectarDOMInfo.usingFrontEndEditor){recentPostSliderParallaxMargins()}}
function parallaxItemHoverEffect(){$('.style-5').each(function(){$(this).find('.sizer').insertBefore($(this).find('.parallaxImg'))});$('.style-5').parents('.wpb_row').css('z-index','100');var d=document,bd=d.getElementsByTagName('body')[0],win=window,imgs=d.querySelectorAll('.parallaxImg'),totalImgs=imgs.length,supportsTouch='ontouchstart' in win||navigator.msMaxTouchPoints,lazyLoadedItems=!1;if(totalImgs<=0){return}
for(var l=0;l<totalImgs;l++){var thisImg=imgs[l],layerElems=thisImg.querySelectorAll('.parallaxImg-layer'),totalLayerElems=layerElems.length;if(totalLayerElems<=0){continue}
while(thisImg.firstChild){thisImg.removeChild(thisImg.firstChild)}
var lastMove=0;var eventThrottle=80;if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge/")<1){eventThrottle=1;$('html').addClass('cssreflections')}else{$body.addClass('cssreflections')}
var containerHTML=d.createElement('div'),shineHTML=d.createElement('div'),shadowHTML=d.createElement('div'),layersHTML=d.createElement('div'),layers=[];thisImg.id='parallaxImg__'+l;containerHTML.className='parallaxImg-container';shadowHTML.className='parallaxImg-shadow';layersHTML.className='parallaxImg-layers';for(var i=0;i<totalLayerElems;i++){var layer=d.createElement('div'),layerInner=d.createElement('div'),imgSrc=layerElems[i].getAttribute('data-img');$(layer).html($(layerElems[i]).html());layer.className='parallaxImg-rendered-layer';layer.setAttribute('data-layer',i);if(i==0&&$(thisImg).parents('.wpb_gallery').length==0){layerInner.className='bg-img';if($(thisImg).parents('.nectar-fancy-box').length>0){layerInner.setAttribute('data-nectar-img-src',imgSrc);lazyLoadedItems=!0}else{layerInner.style.backgroundImage='url('+imgSrc+')'}
layer.appendChild(layerInner)}
layersHTML.appendChild(layer);layers.push(layer)}
containerHTML.appendChild(layersHTML);thisImg.appendChild(containerHTML);$(thisImg).wrap('<div class="parallaxImg-wrap" />');if(!(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1)){$(thisImg).parent().append(shadowHTML)}
if(supportsTouch&&$('body.using-mobile-browser').length>0){}else{(function(_thisImg,_layers,_totalLayers,_shine){$(thisImg).parents('.style-5').on('mousemove',function(e){var parentEl=$(this);var parallaxContainer=parentEl.find('.parallaxImg-container');var parallaxShad=parentEl.find('.parallaxImg-shadow');var now=Date.now();var usingGallery=($(_thisImg).parents('.wpb_gallery').length>0)?!0:!1;if(now>lastMove+eventThrottle){lastMove=now;window.requestAnimationFrame(function(){processMovement(e,!1,_thisImg,_layers,_totalLayers,_shine,parentEl,parallaxContainer,parallaxShad,usingGallery)})}});$(thisImg).parents('.style-5').on('mouseenter',function(e){processEnter(e,_thisImg,_layers,_totalLayers,_shine)});$(thisImg).parents('.style-5').on('mouseleave',function(e){processExit(e,_thisImg,_layers,_totalLayers,_shine)})})(thisImg,layers,totalLayerElems,shineHTML)}(function(_thisImg,_layers,_totalLayers,_shine){depths(!1,_thisImg,_layers,_totalLayers,_shine);window.addEventListener('resize',function(){depths(!1,_thisImg,_layers,_totalLayers,_shine)})})(thisImg,layers,totalLayerElems,shineHTML)}
if(lazyLoadedItems){nectarLazyImageLoading()}
function processMovement(e,touchEnabled,elem,layers,totalLayers,shine,parentEl,parallaxContainer,parallaxShad,usingGal){if(!$(elem.firstChild).hasClass('over')){processExit(e,elem,layers,totalLayers,shine);return!1}
var yMult=0.03;var xMult=0.063;var scaleAmount='1.03';var offsetAmount='-10';var usingMasonrySize=!1;if($(elem).parents('.col.wide').length>0){yMult=0.03;xMult=0.063;usingMasonrySize=!0}else if($(elem).parents('.col.regular').length>0||$(elem).parents('.wpb_gallery').length>0){yMult=0.045;xMult=0.045}else if($(elem).parents('.col.tall').length>0){yMult=0.05;xMult=0.015;usingMasonrySize=!0}else if($(elem).parents('.col.wide_tall').length>0){yMult=0.04;xMult=0.04;usingMasonrySize=!0}else if(parentEl.hasClass('nectar-fancy-box')){yMult=0.045;xMult=0.022;scaleAmount='1.06';offsetAmount='-2'}else{yMult=0.045;xMult=0.075}
var bdst=nectarDOMInfo.scrollTop,bdsl=0,pageX=(touchEnabled)?e.touches[0].pageX:e.pageX,pageY=(touchEnabled)?e.touches[0].pageY:e.pageY,offsets=elem.getBoundingClientRect(),w=elem.clientWidth||elem.offsetWidth||elem.scrollWidth,h=elem.clientHeight||elem.offsetHeight||elem.scrollHeight,wMultiple=320/w,offsetX=0.52-(pageX-offsets.left-bdsl)/w,offsetY=0.52-(pageY-offsets.top-bdst)/h,dy=(pageY-offsets.top-bdst)-h/2,dx=(pageX-offsets.left-bdsl)-w/2,yRotate=(offsetX-dx)*(yMult*wMultiple),xRotate=(dy-offsetY)*(xMult*wMultiple);var imgCSS;if(usingGal==!0){imgCSS=' perspective('+w*3+'px) rotateX('+ -xRotate*1.9+'deg) rotateY('+ -yRotate*1.3+'deg)'}else{if(usingMasonrySize==!1){imgCSS=' perspective('+w*3+'px) rotateX('+xRotate+'deg) rotateY('+yRotate+'deg)  translateY('+offsetY*offsetAmount+'px) translateX('+offsetX*offsetAmount+'px) scale('+scaleAmount+')'}else{imgCSS=' perspective('+w*3+'px) rotateX('+xRotate+'deg) rotateY('+yRotate+'deg)  translateY('+offsetY*-10+'px) translateX('+offsetX*-10+'px) scale(1.013)'}}
parallaxContainer.css('transform',imgCSS);if(!(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1)){parallaxShad.css('transform',imgCSS)}}
function processEnter(e,elem){elem.firstChild.className+=' over';elem.className+=' over';$(elem).addClass('transition');if($(elem).parents('.wpb_gallery').length>0){setTimeout(function(){$(elem).removeClass('transition')},450)}else{setTimeout(function(){$(elem).removeClass('transition')},200)}}
function processExit(e,elem){var w=elem.clientWidth||elem.offsetWidth||elem.scrollWidth;var container=elem.firstChild;container.className=container.className.replace(' over','');elem.className=elem.className.replace(' over','');$(container).css('transform','perspective('+w*3+'px) rotateX(0deg) rotateY(0deg) translateZ(0)');$(elem).parents('.parallaxImg-wrap').find('.parallaxImg-shadow').css('transform','perspective('+w*3+'px) rotateX(0deg) rotateY(0deg) translateZ(0)');$(elem).addClass('transition');setTimeout(function(){$(elem).removeClass('transition')},200)}
function depths(touchEnabled,elem,layers,totalLayers){var w=elem.clientWidth||elem.offsetWidth||elem.scrollWidth;var container=elem.firstChild;for(var ly=0;ly<totalLayers;ly++){if(ly==0){$(layers[ly]).css('transform','translateZ(0px)')}else{$(layers[ly]).css('transform','translateZ('+(w*3)/27*(ly*1.1)+'px) ')}}
totalLayers=totalLayers+3;$(container).css('transform','perspective('+w*3+'px)')}}
function nectarFancyBoxHover(){if($('.nectar-fancy-box[data-style="hover_desc"]').length==0){return!1}
var $hoverContentHeight=0;$('body').on('mouseenter touchstart','.nectar-fancy-box[data-style="hover_desc"]',function(){$hoverContentHeight=parseInt($(this).find('.hover-content').outerHeight(!0));$(this).addClass('hovered');$(this).find('.heading-wrap').css('transform','translateY(-'+$hoverContentHeight+'px)')});$('body').on('mouseleave touchend','.nectar-fancy-box[data-style="hover_desc"]',function(){$(this).removeClass('hovered');$(this).find('.heading-wrap').css('transform','translateY(0)')})}
function NectarMouseFollowIcon(el,iconSelector){this.$el=el;this.$iconEl=this.$el.find(iconSelector);this.elX=0;this.elY=0;this.initialX=this.$el.width()/2;this.initialY=this.$el.height()/2;this.elX=0;this.elY=0;this.lastScroll=0;this.scrollAdjust=0;this.lastX=this.initialX;this.lastY=this.initialY;this.activeFollow=!1;this.percentage=0.13;this.percentageTimeout;$window.on('resize',this.resizeEvent.bind(this));this.mouseEvents();this.rafLoop()}
NectarMouseFollowIcon.prototype.resizeEvent=function(){this.initialX=this.$el.width()/2;this.initialY=this.$el.height()/2};NectarMouseFollowIcon.prototype.mouseEvents=function(){var that=this;that.$el.on('mouseenter',function(e){that.activeFollow=!0;that.elX=e.offsetX;that.elY=e.offsetY;that.lastScroll=0;clearTimeout(that.percentageTimeout);that.percentageTimeout=setTimeout(function(){that.percentage=0.2},700)});that.$el.on('mouseleave',function(){that.activeFollow=!1;that.lastScroll=0;clearTimeout(that.percentageTimeout);that.percentage=0.13});that.$el.on('mousemove',function(e){that.elX=e.offsetX;that.elY=e.offsetY;that.lastScroll=0});$(window).on('scroll',function(){if(that.activeFollow==!0&&that.lastScroll==0){that.lastScroll=nectarDOMInfo.scrollTop}})};NectarMouseFollowIcon.prototype.rafLoop=function(){if(this.activeFollow==!0){this.scrollAdjust=(this.lastScroll>0)?nectarDOMInfo.scrollTop-this.lastScroll:0;this.lastY=linearInterpolate(this.lastY,this.elY+this.scrollAdjust,this.percentage);this.lastX=linearInterpolate(this.lastX,this.elX,this.percentage)}else{this.lastY=linearInterpolate(this.lastY,this.initialY,0.13);this.lastX=linearInterpolate(this.lastX,this.initialX,0.13)}
this.$iconEl.css({'transform':'translateX('+this.lastX+'px) translateY('+this.lastY+'px)'});requestAnimationFrame(this.rafLoop.bind(this))};function nectarVideoLightbox(){iconMouseFollowArr=[];$body.on('mouseenter','.nectar_video_lightbox[data-parent-hover="1"]',function(){var $parentRow=$(this).parents('.wpb_row');$parentRow.find('> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner').addClass('transition');$parentRow.find('> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner').css({'transform':'scale(1.08)'})});$body.on('mouseleave','.nectar_video_lightbox[data-parent-hover="1"]',function(){var $parentRow=$(this).parents('.wpb_row');$parentRow.find('> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner').css({'transform':'scale(1)'})});$('.nectar-video-box').each(function(i){if($(this).find('.play_button_mouse_follow')){var $that=$(this);$(this).imagesLoaded(function(){if(!nectarDOMInfo.usingMobileBrowser){iconMouseFollowArr[i]=new NectarMouseFollowIcon($that,'.play_button_mouse_follow')}
var $playColor=($that.is('[data-mouse-icon-color]')&&$that.attr('data-mouse-icon-color').length>0)?$that.attr('data-mouse-icon-color'):'#000';if($that.is('[data-mouse-style="solid_color"]')){$that.find('.play_button_mouse_follow').css({'background-color':$playColor})}
$that.find('.play_button_mouse_follow').addClass('visible')})}})}
function nectarCustomSliderRotate(slider){if($('body.vc_editor').length>0){return}
var $controlSelector=(slider.find('.project-slides').length>0)?'.dot-nav > span':'.controls > li',$controlSelectorInd=(slider.find('.project-slides').length>0)?'span':' li',$slideLength=slider.find($controlSelector).length,$currentSlide=slider.find($controlSelector+'.active').index();if($currentSlide+1==$slideLength){slider.find($controlSelector+':first-child').trigger('click')}else{slider.find($controlSelector+'.active').next($controlSelectorInd).trigger('click')}}
function nectarCustomSliderResetRotate(slider,index){clearInterval($nectarCustomSliderRotate[index].autorotate);if(slider.attr('data-autorotate').length>0){var slide_interval=(parseInt(slider.attr('data-autorotate'))<100)?4000:parseInt(slider.attr('data-autorotate'));$nectarCustomSliderRotate[index].autorotate=setInterval(function(){nectarCustomSliderRotate(slider)},slide_interval)}}
function fsProjectSliderInit(){$fsProjectSliderArr=[];if(typeof SalientRecentProjectsFullScreen==='undefined'){return}
$('.nectar_fullscreen_zoom_recent_projects').each(function(i){$fsProjectSliderArr[i]=new SalientRecentProjectsFullScreen($(this))})}
function portfolioSidebarFollow(){var sidebarFollow=$('.single-portfolio #sidebar').attr('data-follow-on-scroll');if($('body.single-portfolio').length==0||$('#sidebar[data-follow-on-scroll]').length==0){return}
sidebarFollow=$('.single-portfolio #sidebar').attr('data-follow-on-scroll');if(sidebarFollow==1&&!$body.hasClass('mobile')&&parseInt($('#sidebar').height())+50<=parseInt($('.post-area').height())){var $ssExtraTopSpace=50;if($('#header-outer[data-remove-fixed="0"]').length>0&&$('body[data-hhun="1"]').length==0){$ssExtraTopSpace+=$headerOuterEl.outerHeight();if($('#header-outer[data-shrink-num][data-header-resize="1"]').length>0){var headerPadding2=parseInt($headerOuterEl.attr('data-padding'))-parseInt($headerOuterEl.attr('data-padding'))/1.8;$ssExtraTopSpace-=logoShrinkNum;$ssExtraTopSpace-=headerPadding2}
if($('body.mobile').length==0&&$('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');$ssExtraTopSpace=50;$ssExtraTopSpace+=$headerOuterEl.height()-(parseInt($headerSpan9.position().top)-parseInt($('#header-outer #logo').css('margin-top')))-parseInt(nectarDOMInfo.secondaryHeaderHeight)}}
if($wpAdminBar.length>0){$ssExtraTopSpace+=$wpAdminBar.outerHeight()}
$('.single-portfolio #sidebar').theiaStickySidebar({additionalMarginTop:$ssExtraTopSpace,updateSidebarHeight:!1})}}
function infiniteScrollInit(){if($('.infinite_scroll').length>0){$('.portfolio-items.infinite_scroll').infinitescroll({navSelector:"div#pagination",nextSelector:"div#pagination a:first",itemSelector:".portfolio-items.infinite_scroll .element",finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",msgText:" ",},function(newElements){var $container=$('.portfolio-items.infinite_scroll:not(.carousel)'),$newElems=$(newElements).css('opacity',0);$newElems.imagesLoaded(function(){$(newElements).css('opacity',1);$container.isotope('appended',$(newElements));$(newElements).find('.work-item').addClass('ajax-loaded');$(newElements).addClass('ajax-loaded');$(newElements).find('.work-meta, .nectar-love-wrap').css({'opacity':1});if($('.portfolio-filters-inline').length>0||$('.portfolio-filters').length>0){var selector;if($('.portfolio-filters-inline').length>0){selector=$('.portfolio-filters-inline a.active').attr('data-filter')}else{selector=$('.portfolio-filters a.active').attr('data-filter')}
$('.portfolio-filters-inline a.active').attr('data-filter');$container.isotope({filter:selector})}
for(var i=0;i<$portfolio_containers.length;i++){$portfolio_containers[i].reLayout()}
if($(newElements).find('.work-item.style-5').length>0){parallaxItemHoverEffect()}
if($(newElements).find('.inner-wrap').attr('data-animation')=='none'){$('.portfolio-items .col .inner-wrap').removeClass('animated')}else{for(var i=0;i<$portfolio_containers.length;i++){$portfolio_containers[i].masonryZindex();$portfolio_containers[i].portfolioAccentColor()}
$(newElements).each(function(){var $portfolioOffsetPos=($('#nectar_fullscreen_rows').length>0)?'200%':'90%';var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){var $portfolioAnimationDelay=($that.is('[data-masonry-type="photography"].masonry-items'))?85:115;setTimeout(function(){$that.addClass("animated-in")},$portfolioAnimationDelay*$that.attr('data-delay-amount'));waypoint.destroy()},offset:$portfolioOffsetPos})})}
$('.portfolio-items').each(function(){var $unique_id=uniqueIdGenerate();$(this).find('a[rel^="prettyPhoto"], a.pretty_photo').attr('rel','prettyPhoto['+$unique_id+'_gal]').removeClass('pretty_photo')});$('.portfolio-items').each(function(){var $unique_id=uniqueIdGenerate();$(this).find('a[data-fancybox^="group_"]').attr('data-fancybox','group_'+$unique_id)});lightBoxInit();setTimeout(function(){for(var i=0;i<$portfolio_containers.length;i++){$portfolio_containers[i].masonryZindex();$portfolio_containers[i].reLayout();$portfolio_containers[i].isotopeCatSelection()}
$(newElements).removeClass('ajax-loaded')},700);parallaxRowsBGCals()})});$('.post-area.infinite_scroll .posts-container').infinitescroll({navSelector:"div#pagination",nextSelector:"div#pagination a:first",itemSelector:".post-area.infinite_scroll .posts-container .post",finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",msgText:" "},function(newElements){if($(newElements).find('[data-nectar-img-src]').length>0){nectarLazyImageLoading()}
if($('.masonry.classic').length>0||$('.post-area:not(.masonry):not(.featured_img_left)').length>0||$('.post-area.standard-minimal').length>0){flexsliderInit();if($().mediaelementplayer){$(newElements).find('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer()}
lightBoxInit();if($('.carousel').length>0){standardCarouselInit();clientsCarouselInit()}
waypoints();$('.testimonial_slider').animate({'opacity':'1'},800);nectarTestimonialSliders();nectarTestimonialSlidersEvents();setTimeout(function(){responsiveVideoIframesInit();responsiveVideoIframes();$window.trigger('resize')},500);parallaxRowsBGCals();$window.trigger('resize')}else{parallaxRowsBGCals();$window.trigger('resize')}
var $container=$('.infinite_scroll .posts-container');if($container.parent().hasClass('masonry')){$(newElements).addClass('masonry-blog-item')}
var $newElems=$(newElements);if($newElems.find('img').length==0){$newElems=$('body')}
$newElems.imagesLoaded(function(){if($container.parent().hasClass('masonry')&&!$container.parent().hasClass('auto_meta_overlaid_spaced')){$container.isotope('appended',$(newElements))}
for(var i=0;i<$nectarMasonryBlogs.length;i++){$nectarMasonryBlogs[i].flickityBlogInit()}
$(newElements).addClass('ajax-loaded');if($container.parent().hasClass('classic_enhanced')){$container.find('.large_featured.has-post-thumbnail.ajax-loaded .post-featured-img, .wide_tall.has-post-thumbnail.ajax-loaded .post-featured-img').each(function(){var $src=$(this).find('img').attr('src');$(this).css('background-image','url('+$src+')')});$container.find('.large_featured.ajax-loaded .nectar-flickity, .wide_tall.ajax-loaded .nectar-flickity').each(function(){$(this).find('.cell').each(function(){var $src=$(this).find('img').attr('src');$(this).css('background-image','url('+$src+')')})})}
if($(newElements).parents('.posts-container').attr('data-animation')=='none'){$(newElements).find('.inner-wrap').removeClass('animated')}else{for(var i=0;i<$nectarMasonryBlogs.length;i++){$nectarMasonryBlogs[i].blogMasonryZindex()}
$(newElements).each(function(){var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){setTimeout(function(){$that.addClass("animated-in")},80*$that.attr('data-delay-amount'));waypoint.destroy()},offset:'90%'})})}
setTimeout(function(){$(newElements).removeClass('ajax-loaded')},700)})})}}
function toTopBind(){if($('#to-top').length>0&&$window.width()>1020||$('#to-top').length>0&&$('#to-top.mobile-enabled').length>0){if(nectarDOMInfo.scrollTop>350){$window.on('scroll',hideToTop)}else{$window.on('scroll',showToTop)}}}
function showToTop(){if(nectarDOMInfo.scrollTop>350&&!$offCanvasEl.is('.fullscreen.open')){$('#to-top').stop().transition({'transform':'translateY(-50%)'},350,'easeInOutCubic');$window.off('scroll',showToTop);$window.on('scroll',hideToTop)}}
function hideToTop(){if(nectarDOMInfo.scrollTop<350||$offCanvasEl.is('.fullscreen.open')){var $animationTiming=($('#slide-out-widget-area.fullscreen.open').length>0)?1150:350;$('#to-top').stop().transition({'transform':'translateY(105%)'},$animationTiming,'easeInOutQuint');$window.off('scroll',hideToTop);$window.on('scroll',showToTop)}}
function scrollToTopInit(){if($('.nectar-social.fixed').length==0){toTopBind()}
if($('body[data-button-style*="rounded"]').length>0){var $clone=$('#to-top .fa-angle-up').clone();$clone.addClass('top-icon');$('#to-top').prepend($clone)}
$body.on('click','#to-top, a[href="#top"]',function(){$('body,html').stop().animate({scrollTop:0},800,'easeOutQuad',function(){if($('.nectar-box-roll').length>0){$body.trigger('mousewheel',[1,0,0])}});return!1})}
function scrollSpyInit(){var $headerNavSpace=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?0:$headerOuterEl.outerHeight();if($('.page-template-template-no-header-footer').length>0||$('.page-template-template-no-header').length>0){$headerNavSpace=0}
var hashLinksFound=!1;$('header#top .sf-menu li a[href="#"]').on('click',function(e){e.preventDefault()});if($('#nectar_fullscreen_rows').length==0||$nectarFullPage.$usingFullScreenRows==!1){$('a.nectar-next-section').each(function(){if($(this).parents('.wpb_row:not(.inner_row)').length>0){var $parentRow=$(this).parents('.wpb_row:not(.inner_row)');if($parentRow.next('.wpb_row[id]:not(.inner_row)').length>0){var $nextRowID=$parentRow.next('.wpb_row[id]:not(.inner_row)').attr('id');$(this).attr('href','#'+$nextRowID);hashLinksFound=!0}}})}else if($().fullpage){$('a.nectar-next-section').on('click',function(){$.fn.fullpage.moveSectionDown();return!1})}
if($('#slide-out-widget-area .off-canvas-menu-container').length>0){$('#slide-out-widget-area .off-canvas-menu-container').find("a[href*='"+location.pathname+"']").each(function(){var $href=$(this).attr('href');if($href!='#'&&$href.indexOf("#")!=-1&&$href.substr($href.indexOf("#"))!=='#'&&$('div'+$href.substr($href.indexOf("#"))).length>0){$(this).attr('href',$href.substr($href.indexOf("#")));$(this).parent().removeClass('current_page_item').removeClass('current-menu-item')}
if($('div[data-fullscreen-anchor-id="'+$href.substr($href.indexOf("#")+1)+'"]').length>0){$(this).parent().removeClass('current_page_item').removeClass('current-menu-item')}})}
$("#header-outer").find("a[href*='"+location.pathname+"']").each(function(){var $href=$(this).attr('href');if($href.indexOf("#")!=-1&&$href.substr($href.indexOf("#"))!=='#'&&$('div'+$href.substr($href.indexOf("#"))).length>0){$(this).attr('href',$href.substr($href.indexOf("#")));$(this).parent().removeClass('current_page_item').removeClass('current-menu-item')}
if($('div[data-fullscreen-anchor-id="'+$href.substr($href.indexOf("#")+1)+'"]').length>0){$(this).parent().removeClass('current_page_item').removeClass('current-menu-item')}});if($("#header-outer").length>0){$("#header-outer").find("a[href*='#']:not([href='#'])").each(function(){if($(this).attr('href')!=='#'&&$(this).attr('href')!=='#searchbox'&&$(this).attr('href')!=='#sidewidgetarea'){hashLinksFound=!0}})}
if($("#slide-out-widget-area .off-canvas-menu-container").length>0){$("#slide-out-widget-area .off-canvas-menu-container").find("a[href*='#']:not([href='#'])").each(function(){if($(this).attr('href')!=='#'){hashLinksFound=!0}})}
var targetList=[];if(hashLinksFound==!0){targetList.push('#header-outer nav')}
if($('.page-submenu[data-sticky="true"] a[href*="#"]').length>0){targetList.push('.page-submenu[data-sticky="true"]')}
if(targetList.length>0){targetList.forEach(function(tar,i){var $el=(i==0)?$body:$(window);$el.scrollspy({target:tar,offset:$headerNavSpace+nectarDOMInfo.adminBarHeight+40})})}}
function pageLoadHash(){var $hash=window.location.hash;if($hash&&$hash.length>0){$hash=$hash.replace(/<|>/g,'')}
var $hashSubstrng=($hash&&$hash.length>0)?$hash.substring(1,$hash.length):0,headerPadding2=headerPadding-headerPadding/1.8,$hasSlashLength=0;if($hashSubstrng){$hasSlashLength=$hashSubstrng.split("/");$hasSlashLength=$hasSlashLength.length}
if($hashSubstrng&&$hasSlashLength>1){$hashSubstrng=$hashSubstrng.replace(/\//g,"");$hash=$hash.replace(/\//g,"")}
if($hash&&$('.main-content').find($hash).length>0||$hash&&$('.main-content').find('[data-fullscreen-anchor-id="'+$hashSubstrng+'"]').length>0){var $hashObj=($('.main-content').find($hash).length>0)?$('.main-content').find($hash):$('.main-content').find('[data-fullscreen-anchor-id="'+$hashSubstrng+'"]'),$headerNavSpace=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?0:$('#header-space').outerHeight();if($('.page-template-template-no-header-footer').length>0||$('.page-template-template-no-header').length>0){$headerNavSpace=0}
var $timeoutVar=100;if($('.nectar-box-roll').length>0&&$('.container-wrap.bottomBoxOut').length>0){nectarBoxRoll.boxRoll(null,-1);$timeoutVar=2050}
setTimeout(function(){var $scrollTopDistance;if($('body[data-permanent-transparent="1"]').length==0){if(!$body.hasClass('mobile')){var $resize=($('#header-outer[data-header-resize="0"]').length>0)?0:parseInt(logoShrinkNum)+headerPadding2*2;if($('#header-outer[data-remove-fixed="1"]').length>0){$headerNavSpace=0}
$scrollTopDistance=$hashObj.offset().top-parseInt($headerNavSpace)+$resize+3-nectarDOMInfo.adminBarHeight;if($('body.mobile').length==0&&$('#header-outer[data-condense="true"]').length>0&&$('body.page-template-template-no-header').length===0&&$('body.page-template-template-no-header-footer').length===0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),$headerHeightStored=$headerOuterEl.height(),$headerHeightCondensed=$headerHeightStored-(parseInt($headerSpan9.height())+parseInt($('#header-outer #logo').css('margin-top')));$scrollTopDistance=$hashObj.offset().top-parseInt($headerNavSpace)+$headerHeightCondensed-nectarDOMInfo.adminBarHeight}}else{$scrollTopDistance=($('#header-outer[data-mobile-fixed="1"]').length>0)?$hashObj.offset().top+2-$headerNavSpace+nectarDOMInfo.adminBarHeight:$hashObj.offset().top-nectarDOMInfo.adminBarHeight+1}}else{$scrollTopDistance=$hashObj.offset().top-nectarDOMInfo.adminBarHeight+1}
if($('body[data-hhun="1"]').length>0&&$('#header-outer[data-remove-fixed="1"]').length==0){if($('#header-outer.detached').length==0){$scrollTopDistance=$scrollTopDistance+$headerNavSpace}}
var $pageSubMenu=($('.page-submenu[data-sticky="true"]').length>0)?$('.page-submenu').height():0;var $headerSecondary;if($('body.material').length>0&&$headerSecondaryEl.length>0&&$('body[data-hhun="1"]').length==0&&$('#header-outer[data-remove-fixed="1"]').length==0&&!$body.hasClass('mobile')){$headerSecondary=$headerSecondaryEl.height()}else{$headerSecondary=0}
nectar_scrollToY($scrollTopDistance-$pageSubMenu+$headerSecondary,700,'easeInOutQuint')},$timeoutVar)}}
function pageLoadHashInit(){if($('body[data-animated-anchors="true"]').length>0){if($('.nectar-box-roll').length==0&&$('#nectar_fullscreen_rows').length==0){if(typeof nectarGetQueryParam.tab!='undefined'){setTimeout(function(){pageLoadHash()},800)}else{pageLoadHash()}}
if($('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&$('.nectar-box-roll').length==0&&nectarDOMInfo.usingMobileBrowser){pageLoadHash()}}}
function animatedAnchorLinks(){if($('body[data-animated-anchors="true"]').length>0||$('.single-product [data-gallery-style="left_thumb_sticky"]').length>0){var headerPadding2=headerPadding-headerPadding/1.8;setTimeout(scrollSpyInit,200);var $animatedScrollingTimeout;$body.on('click','#header-outer nav .sf-menu a, #footer-outer .nectar-button, #footer-outer .widget_nav_menu a, #mobile-menu li a, .nectar-scrolling-tabs .scrolling-tab-nav a, .container-wrap a:not(.wpb_tabs_nav a):not(.woocommerce-checkout a):not(.um-woo-view-order):not(.magnific):not([data-fancybox]):not(.woocommerce-tabs .tabs a):not(.slider-prev):not(.slider-next):not(.testimonial-next-prev a):not(.page-numbers), .swiper-slide .button a, #slide-out-widget-area a, #slide-out-widget-area .inner div a',function(e){var triggerAnimatedScroll=!0;var $hash=$(this).prop("hash");if(!$(this).hasClass('nectar-next-section')&&headerHideUntilNeeded=='1'){$body.addClass('animated-scrolling');nectarState.animatedScrolling=!0}
clearTimeout($animatedScrollingTimeout);$animatedScrollingTimeout=setTimeout(function(){$body.removeClass('animated-scrolling');nectarState.animatedScrolling=!1},850);var $headerNavSpace=($('body[data-header-format="left-header"]').length>0&&$window.width()>1000)?0:$('#header-space').outerHeight();if($('.page-template-template-no-header-footer').length>0||$('.page-template-template-no-header').length>0||$('#header-space').length==0){$headerNavSpace=0}
if($nectarFullPage.$usingFullScreenRows!=!1&&$('#nectar_fullscreen_rows[data-anchors="on"]').length>0&&$hash&&$hash!=''&&$hash!='#top'&&$('body.material[data-slide-out-widget-area-style="slide-out-from-right"].material-ocm-open').length>0){e.preventDefault();if(!$(this).hasClass('skip-hash')){if(history.pushState){history.pushState(null,null,$hash)}else{location.hash=$hash}}
setTimeout(function(){$(window).trigger('hashchange')},800)}
if($hash&&$body.find($hash).length>0&&$hash!='#top'&&$hash!=''&&$(this).attr('href').indexOf(window.location.href.split("#")[0])!==-1||$(this).is('[href^="#"]')&&$hash!=''&&$body.find($hash).length>0&&$hash!='#top'){if(!$(this).hasClass('skip-hash')){if(history.pushState){history.pushState(null,null,$hash)}else{location.hash=$hash}}
if($(this).parents('ul').length>0){$(this).parents('ul').find('li').removeClass('current-menu-item')}
if($(this).parents('#slide-out-widget-area').length>0){if($('body.material[data-slide-out-widget-area-style="slide-out-from-right"].material-ocm-open').length>0){$('body > .slide_out_area_close').addClass('non-human-allowed').trigger('click');var $clickedLinkStore=$(this);triggerAnimatedScroll=!1;setTimeout(function(){$clickedLinkStore.trigger('click')},1000)}else{$('#slide-out-widget-area .slide_out_area_close').addClass('non-human-allowed').trigger('click')}
setTimeout(function(){if($('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0){$('body > .slide_out_area_close').removeClass('non-human-allowed')}else{$('#slide-out-widget-area .slide_out_area_close').removeClass('non-human-allowed')}},100)}
if($(this).parents('#mobile-menu').length>0){$('.slide-out-widget-area-toggle.mobile-icon a').addClass('non-human-allowed').trigger('click');setTimeout(function(){$('.slide-out-widget-area-toggle.mobile-icon a').removeClass('non-human-allowed')},100)}
var $mobileMenuHeight=($(this).parents('#mobile-menu').length>0)?$(this).parents('#mobile-menu').height():null;var $timeoutVar=1;var $that=$(this);if($('.nectar-box-roll').length>0&&$('.container-wrap.bottomBoxOut').length>0){nectarBoxRoll.boxRoll(null,-1);$timeoutVar=2050}
setTimeout(function(){var $scrollTopDistance;if($('body[data-permanent-transparent="1"]').length==0){if(!$body.hasClass('mobile')){var $resize=($('#header-outer[data-header-resize="0"]').length>0)?0:parseInt(logoShrinkNum)+headerPadding2*2;if($('#header-outer[data-remove-fixed="1"]').length>0){$headerNavSpace=0}
$scrollTopDistance=$($hash).offset().top-$mobileMenuHeight-parseInt($headerNavSpace)+$resize+3-nectarDOMInfo.adminBarHeight;if($('body.mobile').length==0&&$('body.page-template-template-no-header').length===0&&$('body.page-template-template-no-header-footer').length===0&&$('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),$headerHeightStored=$headerOuterEl.height(),$headerHeightCondensed=$headerHeightStored-(parseInt($headerSpan9.height())+parseInt($('#header-outer #logo').css('margin-top')));$scrollTopDistance=$($hash).offset().top-parseInt($headerNavSpace)+$headerHeightCondensed-nectarDOMInfo.adminBarHeight}}else{$scrollTopDistance=($('#header-outer[data-mobile-fixed="1"]').length>0)?$($hash).offset().top+2-$headerNavSpace+nectarDOMInfo.adminBarHeight:$($hash).offset().top-$mobileMenuHeight-nectarDOMInfo.adminBarHeight+1}}else{$scrollTopDistance=$($hash).offset().top-nectarDOMInfo.adminBarHeight+1}
if($('body[data-hhun="1"]').length>0&&$('#header-outer[data-remove-fixed="1"]').length==0){if($('#header-outer.detached').length==0||$that.parents('.page-submenu[data-sticky="true"]').length>0){$scrollTopDistance=$scrollTopDistance+$headerNavSpace}
if($that.parents('.page-submenu[data-sticky="true"]').length>0){$('#header-outer.detached').addClass('invisible');$('.page-submenu').addClass('header-not-visible').css('transform','translateY(0px)')}}
var $pageSubMenu=($that.parents('.page-submenu[data-sticky="true"]').length>0)?$that.parents('.page-submenu').height():0;var $headerSecondary;if($('body.material').length>0&&$headerSecondaryEl.length>0&&$('body[data-hhun="1"]').length==0&&$('#header-outer[data-remove-fixed="1"]').length==0&&!$body.hasClass('mobile')){$headerSecondary=$headerSecondaryEl.height()}else{if($('body[data-hhun="1"]').length>0&&$headerSecondaryEl.length>0&&!$body.hasClass('mobile')&&$('#header-outer[data-remove-fixed="1"]').length==0){$headerSecondary=$headerSecondaryEl.height()}else{$headerSecondary=0}}
if(triggerAnimatedScroll){nectar_scrollToY($scrollTopDistance-$pageSubMenu+$headerSecondary,700,'easeInOutQuint')}},$timeoutVar);e.preventDefault()}
if($hash=='#top'){if($(this).parents('#slide-out-widget-area').length>0){$('#slide-out-widget-area .slide_out_area_close').trigger('click')}}})}}
function searchResultMasonry(){var $searchContainer=$('#search-results'),$dividerNum=($searchContainer.is('[data-layout="masonry-no-sidebar"]'))?4:3;$searchContainer.imagesLoaded(function(){$searchContainer.isotope({itemSelector:'.result',layoutMode:'packery',packery:{gutter:0}});$searchContainer.find('article').css('opacity','1')});$window.on('resize',function(){$searchContainer.isotope({layoutMode:'packery',packery:{gutter:0}})})}
function searchResultMasonryInit(){if($('body.search-results').length>0&&$('#search-results article').length>0&&$('#search-results[data-layout="list-no-sidebar"]').length==0&&$('#search-results[data-layout="list-with-sidebar"]').length==0){searchResultMasonry()}}
function portfolioCustomColoring(){if($('.portfolio-items .col .style-3-alt').length>0||$('.portfolio-items .col .style-3').length>0||$('.portfolio-items .col .style-2').length>0||$('.portfolio-items .col .style-5').length>0){var portfolioColorCss='';$('.portfolio-items .col').each(function(){var $titleColor=$(this).attr('data-title-color'),$subTitleColor=$(this).attr('data-subtitle-color');if($titleColor.length>0){portfolioColorCss+='.col[data-title-color="'+$titleColor+'"] .vert-center h3, .portfolio-items[data-ps="6"] .col[data-title-color="'+$titleColor+'"] .work-meta h4 { color: '+$titleColor+'!important; } ';portfolioColorCss+=' .portfolio-items[data-ps="8"] .col[data-title-color="'+$titleColor+'"] .line { background-color: '+$titleColor+'; }';portfolioColorCss+='.portfolio-items[data-ps="8"] .col[data-title-color="'+$titleColor+'"] .next-arrow line { stroke: '+$titleColor+'; } '}
if($subTitleColor.length>0){portfolioColorCss+='.col[data-subtitle-color="'+$subTitleColor+'"] .vert-center p, .portfolio-items[data-ps="6"] .col[data-title-color="'+$titleColor+'"] .work-meta p { color: '+$subTitleColor+'!important; } '}});nectarCreateStyle(portfolioColorCss,'nectar-portfolio-colors')}}
function postMouseEvents(){$body.on('mouseover','.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a',function(){$(this).parents('.grav-wrap').find('img').addClass('hovered')});$body.on('mouseleave','.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a',function(){$(this).parents('.grav-wrap').find('img').removeClass('hovered')});$body.on('mouseleave','.container-wrap[data-nav-pos="after_project_2"] #portfolio-nav ul li, .blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul li',function(){$(this).addClass('mouse-leaving')})}
function masonryPortfolioInit(){$portfolio_containers=[];var portfolioElCount=0;$('.portfolio-items:not(.carousel)').each(function(i){if($(this).parents('.wpb_gallery').length>0&&$(this).find('.nectar-lazy').length>0){$(this).find('.col').each(function(i){$(this).delay(90*i).queue(function(next){$(this).addClass("animated-in");next()})});return!0}
$(this).attr('instance',i);$(this).parent().parent().find('div[class^=portfolio-filters]').attr('instance',i);if(typeof SalientPortfolio!=='undefined'){$portfolio_containers[portfolioElCount]=new SalientPortfolio($(this),fullWidthContentColumns);portfolioElCount++}})}
function updatePerspectiveOrigin(){if(nectarDOMInfo.winW>690){$('.posts-container[data-load-animation="perspective"]').css('perspective-origin','50% '+(nectarDOMInfo.scrollTop+nectarDOMInfo.winH)+'px')}
requestAnimationFrame(updatePerspectiveOrigin)}
function updatePerspectiveOriginInit(){if($('.posts-container[data-load-animation="perspective"]').length>0){requestAnimationFrame(updatePerspectiveOrigin)}}
function blogLoadIn(post_container){if(post_container.attr('data-load-animation')=='none'){post_container.find('.inner-wrap').removeClass('animated')}else{post_container.find('article').each(function(i){if($(this).visible(!0)){$(this).delay(110*i).queue(function(next){$(this).addClass("animated-in");next()})}else{var $that=$(this);var waypoint=new Waypoint({element:$that,handler:function(){setTimeout(function(){$that.addClass("animated-in")},80*$that.attr('data-delay-amount'));waypoint.destroy()},offset:'90%'})}})}}
function masonryBlogInit(){$nectarMasonryBlogs=[];$('.posts-container').each(function(i){if($(this).parent().hasClass('masonry')&&!$(this).parent().hasClass('auto_meta_overlaid_spaced')){if(typeof NectarMasonryBlog=='undefined'){return}
$nectarMasonryBlogs[i]=new NectarMasonryBlog($(this),fullWidthSections,blogLoadIn)}else{blogLoadIn($(this))}})}
function stickySidebarInit(){if(!$().theiaStickySidebar||nectarDOMInfo.usingMobileBrowser&&nectarDOMInfo.winW<1000){return}
var stickySelectors='#sidebar[data-nectar-ss="true"], #sidebar[data-nectar-ss="1"], .nectar-scrolling-tabs .scrolling-tab-nav';if(window.nectarOptions&&window.nectarOptions.woo_sticky_sidebar&&window.nectarOptions.woo_sticky_sidebar==='1'){stickySelectors+=', .woocommerce.archive #sidebar'}
$(stickySelectors).each(function(){var $ssExtraTopSpace=50;if($('#header-outer[data-remove-fixed="0"]').length>0&&$('body[data-hhun="1"]').length==0&&$('#header-outer[data-format="left-header"]').length==0){$ssExtraTopSpace+=$headerOuterEl.outerHeight();if($('#header-outer[data-shrink-num][data-header-resize="1"]').length>0){var headerPadding2=parseInt($headerOuterEl.attr('data-padding'))-parseInt($headerOuterEl.attr('data-padding'))/1.8;$ssExtraTopSpace-=logoShrinkNum;$ssExtraTopSpace-=headerPadding2}
if($('body.mobile').length==0&&$('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');$ssExtraTopSpace=50;$ssExtraTopSpace+=$headerOuterEl.height()-(parseInt($headerSpan9.position().top)-parseInt($('#header-outer #logo').css('margin-top')))-parseInt(nectarDOMInfo.secondaryHeaderHeight)}}
if($wpAdminBar.length>0){$ssExtraTopSpace+=$wpAdminBar.outerHeight()}
if($(this).parents('.wpb_widgetised_column').length>0){if($('body.vc_editor').length>0){}else{$(this).parents('.wpb_column').theiaStickySidebar({additionalMarginTop:$ssExtraTopSpace,updateSidebarHeight:!1})}}else{$(this).theiaStickySidebar({additionalMarginTop:$ssExtraTopSpace,updateSidebarHeight:!1})}})}
function sectionDownArrowEvent(){var headerPadding2=headerPadding-headerPadding/1.8;$body.on('click','.section-down-arrow, .scroll-down-wrap > .minimal-arrow',function(){if($(this).parents('.nectar-box-roll').length>0){return!1}
var $currentSection=$(this).parents('#page-header-bg'),$topDistance=$currentSection.height(),$offset=($currentSection.parents('.first-section').length==0||$('body[data-transparent-header="false"]').length>0)?$currentSection.offset().top:0,$bodyBorderSize=($bodyBorderTop.length>0&&$window.width()>1000)?$bodyBorderTop.height():0,$headerNavSpace=($('body[data-header-format="left-header"]').length>0)?0:$('#header-space').height(),$materialSecondary=0;if($('body.material').length>0&&$headerSecondaryEl.length>0){$materialSecondary=$headerSecondaryEl.height()}
if($('body[data-permanent-transparent="1"]').length==0){if(!$body.hasClass('mobile')){if($('body[data-hhun="1"]').length>0&&$('#header-outer[data-remove-fixed="1"]').length==0){nectar_scrollToY(parseInt($topDistance)+$offset+2-$bodyBorderSize*2,700,'easeInOutQuint')}else{var $resize=($('#header-outer[data-header-resize="0"]').length>0)?0:parseInt(logoShrinkNum)+headerPadding2*2;if($('#header-outer[data-remove-fixed="1"]').length>0){$headerNavSpace=0;$offset=0}
if($('body.mobile').length==0&&$('#header-outer[data-condense="true"]').length>0){var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');$headerNavSpace=$headerOuterEl.height()-(parseInt($headerSpan9.position().top)-parseInt($('#header-outer #logo').css('margin-top')))-parseInt(nectarDOMInfo.secondaryHeaderHeight)}
nectar_scrollToY(parseInt($topDistance-$headerNavSpace)+$resize+3+$offset+$materialSecondary,700,'easeInOutQuint')}}else{var $scrollPos;if($('#header-outer[data-mobile-fixed="1"]').length>0){$scrollPos=parseInt($topDistance)-$headerNavSpace+parseInt($currentSection.offset().top)+2}else{$scrollPos=parseInt($topDistance)+parseInt($currentSection.offset().top)+2}
nectar_scrollToY($scrollPos-$bodyBorderSize*2,700,'easeInOutQuint')}}else{nectar_scrollToY(parseInt($topDistance)+parseInt($currentSection.offset().top)+2-$bodyBorderSize*2,700,'easeInOutQuint')}
return!1})}
function nectarLiquidBGFP(){$('.nectar-liquid-bg').removeClass('animated-in');for(var k=0;k<$liquidBG_EL.length;k++){if($liquidBG_EL[k].animationType=='displace-filter-fade'&&$($liquidBG_EL[k].canvasContainer).parents('.fp-section.active').length>0){if($($liquidBG_EL[k].canvasContainer).find('.image-added-to-stage').length==0){$liquidBG_EL[k].imgContainer.addChild($liquidBG_EL[k].bg)}
$($liquidBG_EL[k].canvasContainer).find('.nectar-liquid-bg').addClass('image-added-to-stage');$liquidBG_EL[k].animateProps($liquidBG_EL[k])}}}
function nectarFullPageInit(){if($('#nectar_fullscreen_rows').length>0&&$().fullpage){$fullscreenSelector=(window.vc_iframe)?'.vc_element.vc_vc_row.active ':'.wpb_row.active ';var $disableFPonMobile=($('#nectar_fullscreen_rows[data-mobile-disable]').length>0)?$('#nectar_fullscreen_rows').attr('data-mobile-disable'):'off';if(!nectarDOMInfo.usingMobileBrowser){$disableFPonMobile='off'}
if($disableFPonMobile!='on'){$fullscreenMarkupBool=!0}else{$fullscreenSelector=''}
$nectarFullPage=new NectarFullScreenRows(waypoints,$mouseParallaxScenes,nectarLiquidBGFP,nectarDOMInfo,responsiveTooltips,$standAnimatedColTimeout,$svgIcons)}}
function crossBrowserAdjust(){if(nectarDOMInfo.usingMobileBrowser){$body.addClass('using-mobile-browser')}
var ua=window.navigator.userAgent;var msie=ua.indexOf("Edge/");if(msie>0){$body.addClass('msie')}
if($('html.js').length==0){$('html').removeClass('no-js').addClass('js')}
$('code').find('br').remove();$('.wpcf7-form p:has(input[type=submit])').css('padding-bottom','0px');$('.full-width-content .wpcf7-submit').on('click',function(){setTimeout(function(){fullWidthContentColumns()},1000);setTimeout(function(){fullWidthContentColumns()},2000)});$('.gform_body').on('click',function(){setTimeout(function(){fullWidthContentColumns()},200)});$('.pum.pum-theme-salient-page-builder-optimized button.pum-close').wrapInner('<span />');if($('#nectar_fullscreen_rows').length>0&&$('.pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12').length>0){$('.pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12').unwrap()}
if($('.single .blog_next_prev_buttons').length>0){$('.container-wrap').css('padding-bottom',0)}
$('.full-width-section').each(function(){$(this).find('> .span_12 > div.col_last').last().css('margin-bottom','0')});$('.full-width-content .col.boxed').removeClass('boxed');$('.wpb_column.neg-marg').parents('.wpb_row').css('z-index','110');$('.wpb_row.legacy').each(function(){if($(this).find('.wpb_column').length>0){$(this).removeClass('legacy')}})}
function vcMobileColumns(){$('.wpb_row').each(function(){if(typeof $(this).find('.span_12').offset()!='undefined'){$(this).find('[class*="vc_col-"]').each(function(){var $firstChildOffset=$(this).parents('.span_12').offset().left;$(this).removeClass('no-left-margin');if($(this).offset().left<$firstChildOffset+27){$(this).addClass('no-left-margin')}else{$(this).removeClass('no-left-margin')}})}})}
function vcMobileColumnsInit(){var $winDOMWidth=nectarDOMInfo.winW,$winDOMHeight=nectarDOMInfo.winH,$orientChangeTrack=0;if($body.is('[data-flex-cols="true"]')){return}
if($('[class*="vc_col-xs-"], [class*="vc_col-md-"], [class*="vc_col-lg-"]').length>0){vcMobileColumns();if(!nectarDOMInfo.usingMobileBrowser){$window.on('resize',vcMobileColumns)}else{window.addEventListener("orientationchange",function(){$orientChangeTrack=1});$window.on('resize',function(){if(($window.width()!=$winDOMWidth&&$window.height!=$winDOMHeight)||$orientChangeTrack===1){vcMobileColumns();$winDOMWidth=nectarDOMInfo.winW;$winDOMHeight=nectarDOMInfo.winH;$orientChangeTrack=0}})}}}
function select2Init(){$('select:not(.state_select):not(.country_select):not(.comment-form-rating #rating):not(#tribe-bar-form select):not(.woocommerce-currency-switcher):not(.nectar-custom-product-attr select)').each(function(){var $minimumToSearch=(nectarDOMInfo.winW>690)?7:200;if($(this).hasClass('skip-select2-search')||$(this).parents('.skip-select2-search').length>0){$minimumToSearch=1000}
if($(this).parents('#buddypress').length==0){var woo_product_dropdown_style=(window.nectarOptions&&window.nectarOptions.woo_product_variable_select)?window.nectarOptions.woo_product_variable_select:'default';var select2OptionsObj={minimumResultsForSearch:$minimumToSearch,width:'100%'};if(woo_product_dropdown_style=='underline'||$(this).parents('.woocommerce-ordering').length>0){select2OptionsObj={minimumResultsForSearch:$minimumToSearch,dropdownParent:$(this).parent(),dropdownAutoWidth:!0}}
$(this).select2(select2OptionsObj)}})}
function fancySelectStyling(){if($('body[data-fancy-form-rcs="1"]').length>0){$('select:not(.comment-form-rating #rating)').each(function(){var $selector;if($(this).parents('.wpcf7-form-control-wrap').length>0){if($(this).parents('.wpcf7-form-control-wrap').find('.select2-container').length>0){$selector=$($(this).prev('.select2-container'))}else{$selector=$(this)}
if($selector.parents('.wpcf7-form-control-wrap').parent().find('label').length==1){$selector.parents('.wpcf7-form-control-wrap').parent().wrapInner('<div class="fancy-select-wrap" />')}else{$selector.wrap('<div class="fancy-select-wrap" />')}}else{if($(this).prev('.select2-container').length>0){$selector=$(this).prev('.select2-container')}else{$selector=$(this)}
if($(this).parents('#buddypress').length==0&&$(this).parents('.widget_categories').length==0){if($selector.prev('label').length==1){$selector.prev('label').andSelf().wrapAll('<div class="fancy-select-wrap" />')}else if($selector.next('label').length==1){$selector.next('label').andSelf().wrapAll('<div class="fancy-select-wrap" />')}else{$selector.wrap('<div class="fancy-select-wrap" />')}}}});select2Init()}}
function bfCacheAssist(){if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1||navigator.userAgent.match(/(iPod|iPhone|iPad)/)){window.onpageshow=function(event){if(event.persisted){$('.nectar-video-wrap, .nectar-slider-wrap .swiper-slide .video-wrap').each(function(){if($(this).find('video').length>0){$(this).find('video')[0].play()}});if($('body.material-ocm-open').length>0){$('body > .slide_out_area_close').addClass('non-human-allowed').trigger('click');setTimeout(function(){$('body > .slide_out_area_close').removeClass('non-human-allowed')},100)}else if($('#slide-out-widget-area.slide-out-from-right-hover.open').length>0&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)){OCM_mobileSlideOutRightHoverCloseCheck()}else if($('#slide-out-widget-area.fullscreen.open').length>0||$('#slide-out-widget-area.fullscreen-alt.open').length>0||$('#slide-out-widget-area.slide-out-from-right.open').length>0){$('#slide-out-widget-area .slide_out_area_close').addClass('non-human-allowed');$('.slide-out-widget-area-toggle:not(.std-menu) a.open').addClass('non-human-allowed').trigger('click');setTimeout(function(){$('#slide-out-widget-area .slide_out_area_close').removeClass('non-human-allowed')},100)}}}}}
function addRowCtrls(){$('.wpb_row').removeClass('only-ns');$('.nectar-slider-wrap[data-full-width="true"], .page-submenu, .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), .blog-fullwidth-wrap').parents('.wpb_row').addClass('only-ns');$('body.vc_editor.compose-mode .wpb_row .vc_vc_column > .wpb_column > .vc_column-inner').each(function(){if($(this).find('> .vc_element-container > div').length>0){if($(this).find('> .vc_element-container > div:first-child').is('.vc_vc_row_inner')){$(this).find('> .vc_element-container > div:first-child').addClass('first-inner-row-el')}else{$(this).find('> .vc_element-container > div:first-child').removeClass('first-inner-row-el')}}})}
function convertFrontEndPadding(){$('.vc_element > .wpb_column[class*="padding-"][class*="-percent"]').each(function(){var $elPaddingPercent=4;var elclassName=this.className.match(/padding-\d+/);if(elclassName){$elPaddingPercent=elclassName[0].match(/\d+/);if($elPaddingPercent){$elPaddingPercent=$elPaddingPercent[0]/100}else{$elPaddingPercent=0}}
if($elPaddingPercent){var $parentRowWidth=$(this).parents('.span_12').width();if($(this).is('[data-padding-pos="all"]')){$(this).css('padding',$parentRowWidth*$elPaddingPercent)}else if($(this).is('[data-padding-pos="top"]')){$(this).css('padding-top',$parentRowWidth*$elPaddingPercent)}else if($(this).is('[data-padding-pos="bottom"]')){$(this).css('padding-bottom',$parentRowWidth*$elPaddingPercent)}else if($(this).is('[data-padding-pos="left"]')){$(this).css('padding-left',$parentRowWidth*$elPaddingPercent)}else if($(this).is('[data-padding-pos="right"]')){$(this).css('padding-right',$parentRowWidth*$elPaddingPercent)}else if($(this).is('[data-padding-pos="top-bottom"]')){$(this).css({'padding-top':$parentRowWidth*$elPaddingPercent,'padding-bottom':$parentRowWidth*$elPaddingPercent,})}else if($(this).is('[data-padding-pos="top-right"]')){$(this).css({'padding-top':$parentRowWidth*$elPaddingPercent,'padding-right':$parentRowWidth*$elPaddingPercent,})}else if($(this).is('[data-padding-pos="bottom-right"]')){$(this).css({'padding-right':$parentRowWidth*$elPaddingPercent,'padding-bottom':$parentRowWidth*$elPaddingPercent,})}else if($(this).is('[data-padding-pos="bottom-left"]')){$(this).css({'padding-left':$parentRowWidth*$elPaddingPercent,'padding-bottom':$parentRowWidth*$elPaddingPercent,})}else if($(this).is('[data-padding-pos="left-right"]')){$(this).css({'padding-left':$parentRowWidth*$elPaddingPercent,'padding-right':$parentRowWidth*$elPaddingPercent,})}}});$('.wpb_row[class*="vc_custom_"]').each(function(){$(this).parent().addClass('no-bottom-margin')})}
function wpBakeryFrontendInit(){setTimeout(function(){if($('body.compose-mode').length>0){$('.container-wrap').addClass('visible-editor-controls')}
if(nectarDOMInfo.usingFrontEndEditor){addRowCtrls();if(!$body.is('[data-flex-cols="true"]')){convertFrontEndPadding();$window.on('smartresize',convertFrontEndPadding)}}},200);$window.on('vc_reload',function(){addRowCtrls();columnBGColors();coloredButtons();twentytwentyInit();parallaxRowsBGCals();flexsliderInit();accordionInit();ulCheckmarks();nectarFancyUlIcons();nectarFancyBoxHover();oneFourthClasses();carouselfGrabbingClass();nectarPostGridInit();splitLineHeadingInit();nectarVideoLightbox();nectarKeyframeAssist();nectarLazyImageLoading();if($('.carousel').length>0){standardCarouselInit();clientsCarouselInit();carouselHeightCalcs()}
if($('.owl-carousel').length>0){$('.owl-carousel').each(function(){$(this).trigger('destroy.owl.carousel').removeClass('owl-loaded');$(this).find('.owl-stage-outer .owl-stage > *').unwrap();$(this).find('.owl-stage-outer > *').unwrap();$(this).find('.owl-item > *').unwrap();$(this).find('.owl-dots').remove();$(this).find('.owl-nav').remove()});owlCarouselInit()}
if($('.nectar_cascading_images').length>0){imagesLoaded($('.nectar_cascading_images'),function(){cascadingImageBGSizing()})}
fullWidthSections();fwsClasses();recentPostsInit();fullWidthRowPaddingAdjust();if($flickitySliders.length>0){for(var i=0;i<$flickitySliders.length;i++){$flickitySliders[i].reloadCells();$flickitySliders[i].off('scroll.flickity');$flickitySliders[i].off('dragStart.flickity');$flickitySliders[i].off('dragEnd.flickity')}}
flickityLazyInit();setTimeout(function(){flickityInit();if($flickitySliders.length>0){for(var i=0;i<$flickitySliders.length;i++){$flickitySliders[i].reloadCells();$flickitySliders[i].resize()}}},100);if($wooFlickityCarousels.length>0){for(var i=0;i<$wooFlickityCarousels.length;i++){$wooFlickityCarousels[i].flickity('reloadCells');$wooFlickityCarousels[i].off('scroll.flickity');$wooFlickityCarousels[i].off('dragStart.flickity');$wooFlickityCarousels[i].off('dragEnd.flickity')}}
setTimeout(function(){if($('.nectar-woo-flickity').length>0){productCarouselInit()}
if($wooFlickityCarousels.length>0){for(var i=0;i<$wooFlickityCarousels.length;i++){$wooFlickityCarousels[i].flickity('reloadCells');$wooFlickityCarousels[i].flickity('resize')}}},100);nectarTestimonialSliders();for(var i=0;i<$testimonialSliders.length;i++){if($testimonialSliders[i].type=='multiple_visible'||$testimonialSliders[i].type=='multiple_visible_minimal'){$testimonialSliders[i].flickityEl.flickity('reloadCells');$testimonialSliders[i].flickityEl.off('select.flickity');nectarTestimonialSliders();$testimonialSliders[i].flickityEl.resize()}
$testimonialSliders[i].testimonialSliderHeight()}
nectarTestimonialSlidersEvents();pricingTableHeight();nectarIconMatchColoring();lightBoxInit();imageWithHotspotEvents();largeIconHover();nectarBoxRollInit();midnightInit();responsiveVideoIframesInit();responsiveVideoIframes();fullWidthContentColumns();setTimeout(fullWidthContentColumns,1000);videoBGInit();vcFullHeightRowInit();$window.off('scroll.parallaxSections').off('resize.parallaxSections');parallaxScrollInit();masonryBlogInit();masonryPortfolioInit();if($portfolio_containers.length>0){for(var i=0;i<$portfolio_containers.length;i++){$portfolio_containers[i].portfolioAccentColor()}}
parallaxItemHoverEffect();fsProjectSliderInit();setTimeout(function(){if($('.nectar_fullscreen_zoom_recent_projects').length>0){if($fsProjectSliderArr.length>0){for(var i=0;i<$fsProjectSliderArr.length;i++){$fsProjectSliderArr[i].sliderCalcs()}}}},300);$window.unbind('.infscr');infiniteScrollInit();mouseParallaxInit();$('.nectar-video-wrap').each(function(){if($(this).find('video').length>0){$(this).find('video').css('visibility','visible')}});$('.wpb_column[data-t-w-inherits]').each(function(){if($(this).is('[data-t-w-inherits="small_desktop"]')){$(this).parent().addClass('inherits-s-desktop-col')}else{$(this).parent().removeClass('inherits-s-desktop-col')}});if($('#nectar_fullscreen_rows').length>0){if($('#nectar_fullscreen_rows > .vc_element').length==0){$('#nectar_fullscreen_rows').prepend('<div class="vc_element empty_placeholder" />')}
if($('#nectar_fullscreen_rows > .vc_element:not(.empty_placeholder)').length>0){$('#nectar_fullscreen_rows >.vc_element.empty_placeholder').remove()}
$.fn.fullpage.destroy('all');nectarFullPageInit();var nectarFPOffsets=[{el:'',offset:0}];$('#nectar_fullscreen_rows > div.vc_element').each(function(i){nectarFPOffsets[i]={el:$(this),offset:$(this).offset().top}});if($('#nectar_fullscreen_rows > div.vc_element').length===1){$('#nectar_fullscreen_rows').css({'transform':'translate3d(0,0,0)'})}
$body.scrollTo(0,0)}else{if($('body .main-content > .row > .vc_element:first > .wpb_row[class*="full-width-"]').length>0||$('body .main-content > .row > .vc_element:first .nectar-slider-wrap[data-full-width="true"]').length>0){$('.container-wrap').css({'padding-top':'0','margin-top':'0'})}else{$('.container-wrap').css({'padding-top':'40px'})}}
$svgIcons=[];$('.svg-icon-holder').removeClass('animated-in').removeClass('bound');if($('.vc_nectar_gmap').length>0){setTimeout(function(){if(typeof google==='object'&&typeof google.maps==='object'){window.mapAPI_Loaded()}else{if(window.nectarLove.mapApiKey.length>0){$.getScript('https://maps.google.com/maps/api/js?sensor=false&key='+window.nectarLove.mapApiKey+'&callback=mapAPI_Loaded')}}},100)}
stickySidebarInit();if(typeof window.Waypoint!='undefined'){Waypoint.destroyAll();waypoints()}})}
function pageTransitionInit(){var mobileDisabledCondition=!1;if($('body[data-ajax-transitions="true"]').length>0&&$('#ajax-loading-screen[data-disable-mobile="1"]').length>0&&nectarDOMInfo.winW<1000){mobileDisabledCondition=!0}
if($('body[data-ajax-transitions="true"]').length>0&&$('#ajax-loading-screen[data-method="standard"]').length>0&&mobileDisabledCondition==!1){$('html').addClass('page-trans-loaded');if($('#ajax-loading-screen[data-effect="standard"]').length>0){if($('.nectar-particles').length==0){$loadingScreenEl.transition({'opacity':0},500,function(){$(this).css({'display':'none'})});$('#ajax-loading-screen .loading-icon').transition({'opacity':0},500)}
if($('.nectar-box-roll').length==0){setTimeout(function(){waypoints()},550)}}else{if($('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0){setTimeout(function(){$loadingScreenEl.addClass('loaded')},60)}
if($('#page-header-wrap #page-header-bg[data-animate-in-effect="zoom-out"] .nectar-video-wrap').length==0){setTimeout(function(){$('#ajax-loading-screen:not(.loaded)').addClass('loaded');setTimeout(function(){$loadingScreenEl.addClass('hidden')},1000)},150)}
if($('.nectar-box-roll').length==0&&$('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0){setTimeout(function(){waypoints()},750)}else if($('.nectar-box-roll').length==0)setTimeout(function(){waypoints()},350)}
if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1||navigator.userAgent.match(/(iPod|iPhone|iPad)/)){window.onunload=function(){$('#ajax-loading-screen').stop().transition({'opacity':0},800,function(){$(this).css({'display':'none'})});$('#ajax-loading-screen .loading-icon').transition({'opacity':0},600)};window.onpageshow=function(event){if(event.persisted){$('#ajax-loading-screen').stop().transition({'opacity':0},800,function(){$(this).css({'display':'none'})});$('#ajax-loading-screen .loading-icon').transition({'opacity':0},600)}}}else if(navigator.userAgent.indexOf('Firefox')!=-1){window.onunload=function(){}}
$('.portfolio-loading, .nectar-slider-loading .loading-icon').remove();if($('#ajax-loading-screen[data-disable-fade-on-click="1"]').length==0){if($('body.using-mobile-browser #ajax-loading-screen[data-method="standard"][data-disable-mobile="1"]').length==0){var ignore_onbeforeunload=!1;$('a[href^="mailto"], a[href^="tel"], .woocommerce-order-downloads a[class*="downloads-file"], .wpdm-cta.download-link a[data-downloadurl], .nectar-ignore-beforeunload a').on('click',function(){ignore_onbeforeunload=!0});window.addEventListener('beforeunload',function(){if(!ignore_onbeforeunload){$loadingScreenEl.addClass('set-to-fade');transitionPage()}
ignore_onbeforeunload=!1})}}}else{if(mobileDisabledCondition==!0){$loadingScreenEl.css({'opacity':'0','display':'none'}).addClass('loaded').addClass('hidden')}
if($('.nectar-box-roll').length==0&&!nectarDOMInfo.usingFrontEndEditor){setTimeout(function(){waypoints()},80)}}
function transitionPage(){if($('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0){$loadingScreenEl.removeClass('loaded');$loadingScreenEl.addClass('in-from-right');setTimeout(function(){$loadingScreenEl.addClass('loaded')},30)}else{if($('#ajax-loading-screen[data-effect="center_mask_reveal"]').length>0){$loadingScreenEl.css('opacity','0').css('display','block').transition({'opacity':'1'},450)}else{$loadingScreenEl.show().transition({'opacity':'1'},450)}}}}
jQuery(document).ready(function($){nectarDOMInfo.init();nectarBoxRollInit();nectarFullPageInit();nectarLazyImageLoading();initSF();navigationSearchInit();centeredNavBottomBarInit();centeredLogoHeaderInit();headerNavPreInit();headerNavScrollInit();headerNavOffsetInit();salientPageBuilderElInit();columnBGColors();vcMobileColumnsInit();fullWidthSections();fwsClasses();fwCarouselLinkFix();fullWidthSectionsPreInit();firstFWSection();parallaxScrollInit();parallaxRowsBGCals();fullWidthRowPaddingAdjust();fullWidthContentColumns();oneFourthClasses();fixIeFlexbox();vcFullHeightRowInit();lightBoxInit();audioVideoVis();responsiveVideoIframesInit();responsiveVideoIframes();videoBGInit();blogSingle();mobileNavMegamenuCorrect();materialSkinOCM_Init();OCM_dropdownMarkup();OCM_dropdownIconPos();clickToggleSubmenus();OCM_init();pageHeaderInit();footerRevealInit();wooCommerceEvents();fancySelectStyling();infiniteScrollInit();scrollToTopInit();animatedAnchorLinks();updatePerspectiveOriginInit();sectionDownArrowEvent();crossBrowserAdjust();bfCacheAssist();wpBakeryFrontendInit();pageTransitionInit();$window.off('smartresize.srInit');$window.on('smartresize.srInit',smartResizeInit);$window.off('resize.srInit');$window.on('resize.srInit',resizeInit);window.addEventListener("orientationchange",orientationChangeInit);$window.on('load',function(){if($(window).scrollTop()==0){headerSpace()}
$('video').css('visibility','visible');pageLoadHashInit();fullWidthContentColumns();parallaxRowsBGCals();resizeVideoToCover()})})}(window.jQuery,window,document));


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/plugins/salient-core/js/third-party/touchswipe.min.js */
/* Touch swipe */
(function(d){var m="left",l="right",c="up",s="down",b="in",t="out",j="none",o="auto",i="swipe",p="pinch",u="tap",x="horizontal",q="vertical",g="all",e="start",h="move",f="end",n="cancel",a="ontouchstart" in window,v="TouchSwipe";var k={fingers:1,threshold:75,cancelThreshold:25,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};d.fn.swipe=function(A){var z=d(this),y=z.data(v);if(y&&typeof A==="string"){if(y[A]){return y[A].apply(this,Array.prototype.slice.call(arguments,1))}else{d.error("Method "+A+" does not exist on jQuery.swipe")}}else{if(!y&&(typeof A==="object"||!A)){return r.apply(this,arguments)}}return z};d.fn.swipe.defaults=k;d.fn.swipe.phases={PHASE_START:e,PHASE_MOVE:h,PHASE_END:f,PHASE_CANCEL:n};d.fn.swipe.directions={LEFT:m,RIGHT:l,UP:c,DOWN:s,IN:b,OUT:t};d.fn.swipe.pageScroll={NONE:j,HORIZONTAL:x,VERTICAL:q,AUTO:o};d.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:g};function r(y){if(y&&(y.allowPageScroll===undefined&&(y.swipe!==undefined||y.swipeStatus!==undefined))){y.allowPageScroll=j}if(y.click!==undefined&&y.tap===undefined){y.tap=y.click}if(!y){y={}}y=d.extend({},d.fn.swipe.defaults,y);return this.each(function(){var A=d(this);var z=A.data(v);if(!z){z=new w(this,y);A.data(v,z)}})}function w(S,ag){var aJ=(a||!ag.fallbackToMouseEvents),az=aJ?"touchstart":"mousedown",U=aJ?"touchmove":"mousemove",av=aJ?"touchend":"mouseup",D=aJ?null:"mouseleave",R="touchcancel";var ad=0,N=null,ah=0,aF=0,A=0,aj=1,aA=0,aN=0,Z=null;var H=d(S);var O="start";var aI=0;var ai=null;var I=0,Y=0,aD=0,aP=0;try{H.bind(az,at);H.bind(R,L)}catch(aG){d.error("events not supported "+az+","+R+" on jQuery.swipe")}this.enable=function(){H.bind(az,at);H.bind(R,L);return H};this.disable=function(){Q();return H};this.destroy=function(){Q();H.data(v,null);return H};this.option=function(aR,aQ){if(ag[aR]!==undefined){if(aQ===undefined){return ag[aR]}else{ag[aR]=aQ}}else{d.error("Option "+aR+" does not exist on jQuery.swipe.options")}};function at(aS){if(X()){return}if(d(aS.target).closest(ag.excludedElements,H).length>0){return}var aT=aS.originalEvent?aS.originalEvent:aS;var aR,aQ=a?aT.touches[0]:aT;O=e;if(a){aI=aT.touches.length}else{aS.preventDefault()}ad=0;N=null;aN=null;ah=0;aF=0;A=0;aj=1;aA=0;ai=T();Z=aE();z();if(!a||(aI===ag.fingers||ag.fingers===g)||ap()){aO(0,aQ);I=B();if(aI==2){aO(1,aT.touches[1]);aF=A=aa(ai[0].start,ai[1].start)}if(ag.swipeStatus||ag.pinchStatus){aR=aH(aT,O)}}else{aR=false}if(aR===false){O=n;aH(aT,O);return aR}else{ak(true)}}function P(aT){var aW=aT.originalEvent?aT.originalEvent:aT;if(O===f||O===n||af()){return}var aS,aR=a?aW.touches[0]:aW;var aU=V(aR);Y=B();if(a){aI=aW.touches.length}O=h;if(aI==2){if(aF==0){aO(1,aW.touches[1]);aF=A=aa(ai[0].start,ai[1].start)}else{V(aW.touches[1]);A=aa(ai[0].end,ai[1].end);aN=ao(ai[0].end,ai[1].end)}aj=y(aF,A);aA=Math.abs(aF-A)}if((aI===ag.fingers||ag.fingers===g)||!a||ap()){N=ar(aU.start,aU.end);C(aT,N);ad=G(aU.start,aU.end);ah=K();aK(N,ad);if(ag.swipeStatus||ag.pinchStatus){aS=aH(aW,O)}if(!ag.triggerOnTouchEnd||ag.triggerOnTouchLeave){var aQ=true;if(ag.triggerOnTouchLeave){var aV=au(this);aQ=aC(aU.end,aV)}if(!ag.triggerOnTouchEnd&&aQ){O=aM(h)}else{if(ag.triggerOnTouchLeave&&!aQ){O=aM(f)}}if(O==n||O==f){aH(aW,O)}}}else{O=n;aH(aW,O)}if(aS===false){O=n;aH(aW,O)}}function ab(aS){var aU=aS.originalEvent;if(a){if(aU.touches.length>0){aw();return true}}if(af()){aI=aP}aS.preventDefault();Y=B();if(ag.triggerOnTouchEnd||(ag.triggerOnTouchEnd==false&&O===h)){O=f;var aR=((aI===ag.fingers||ag.fingers===g)||!a);var aQ=ai[0].end.x!==0;var aT=aR&&aQ&&(an()||aB());if(aT){aH(aU,O)}else{O=n;aH(aU,O)}}else{if(!ag.triggerOnTouchEnd&&ay()){O=f;am(aU,O,u)}else{if(O===h){O=n;aH(aU,O)}}}ak(false)}function L(){aI=0;Y=0;I=0;aF=0;A=0;aj=1;z();ak(false)}function W(aQ){var aR=aQ.originalEvent;if(ag.triggerOnTouchLeave){O=aM(f);aH(aR,O)}}function Q(){H.unbind(az,at);H.unbind(R,L);H.unbind(U,P);H.unbind(av,ab);if(D){H.unbind(D,W)}ak(false)}function aM(aT){var aS=aT;var aR=aq();var aQ=ae();if(!aR){aS=n}else{if(aQ&&aT==h&&(!ag.triggerOnTouchEnd||ag.triggerOnTouchLeave)){aS=f}else{if(!aQ&&aT==f&&ag.triggerOnTouchLeave){aS=n}}}return aS}function aH(aS,aQ){var aR=undefined;if(ac()){aR=am(aS,aQ,i)}if(ap()&&aR!==false){aR=am(aS,aQ,p)}if(ay()&&aR!==false){aR=am(aS,aQ,u)}if(aQ===n){L(aS)}if(aQ===f){if(a){if(aS.touches.length==0){L(aS)}}else{L(aS)}}return aR}function am(aT,aQ,aS){var aR=undefined;if(aS==i){H.trigger("swipeStatus",[aQ,N||null,ad||0,ah||0,aI]);if(ag.swipeStatus){aR=ag.swipeStatus.call(H,aT,aQ,N||null,ad||0,ah||0,aI);if(aR===false){return false}}if(aQ==f&&aB()){H.trigger("swipe",[N,ad,ah,aI]);if(ag.swipe){aR=ag.swipe.call(H,aT,N,ad,ah,aI);if(aR===false){return false}}switch(N){case m:H.trigger("swipeLeft",[N,ad,ah,aI]);if(ag.swipeLeft){aR=ag.swipeLeft.call(H,aT,N,ad,ah,aI)}break;case l:H.trigger("swipeRight",[N,ad,ah,aI]);if(ag.swipeRight){aR=ag.swipeRight.call(H,aT,N,ad,ah,aI)}break;case c:H.trigger("swipeUp",[N,ad,ah,aI]);if(ag.swipeUp){aR=ag.swipeUp.call(H,aT,N,ad,ah,aI)}break;case s:H.trigger("swipeDown",[N,ad,ah,aI]);if(ag.swipeDown){aR=ag.swipeDown.call(H,aT,N,ad,ah,aI)}break}}}if(aS==p){H.trigger("pinchStatus",[aQ,aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchStatus){aR=ag.pinchStatus.call(H,aT,aQ,aN||null,aA||0,ah||0,aI,aj);if(aR===false){return false}}if(aQ==f&&an()){switch(aN){case b:H.trigger("pinchIn",[aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchIn){aR=ag.pinchIn.call(H,aT,aN||null,aA||0,ah||0,aI,aj)}break;case t:H.trigger("pinchOut",[aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchOut){aR=ag.pinchOut.call(H,aT,aN||null,aA||0,ah||0,aI,aj)}break}}}if(aS==u){if(aQ===n||aQ===f){if((aI===1||!a)&&(isNaN(ad)||ad===0)){H.trigger("tap",[aT.target]);if(ag.tap){aR=ag.tap.call(H,aT,aT.target)}}}}return aR}function ae(){var aQ=true;if(ag.threshold!==null){aQ=ad>=ag.threshold}if(aQ&&ag.cancelThreshold!==null){aQ=(M(N)-ad)<ag.cancelThreshold}return aQ}function al(){if(ag.pinchThreshold!==null){return aA>=ag.pinchThreshold}return true}function aq(){var aQ;if(ag.maxTimeThreshold){if(ah>=ag.maxTimeThreshold){aQ=false}else{aQ=true}}else{aQ=true}return aQ}function C(aQ,aR){if(ag.allowPageScroll===j||ap()){aQ.preventDefault()}else{var aS=ag.allowPageScroll===o;switch(aR){case m:if((ag.swipeLeft&&aS)||(!aS&&ag.allowPageScroll!=x)){aQ.preventDefault()}break;case l:if((ag.swipeRight&&aS)||(!aS&&ag.allowPageScroll!=x)){aQ.preventDefault()}break;case c:if((ag.swipeUp&&aS)||(!aS&&ag.allowPageScroll!=q)){aQ.preventDefault()}break;case s:if((ag.swipeDown&&aS)||(!aS&&ag.allowPageScroll!=q)){aQ.preventDefault()}break}}}function an(){return al()}function ap(){return !!(ag.pinchStatus||ag.pinchIn||ag.pinchOut)}function ax(){return !!(an()&&ap())}function aB(){var aQ=aq();var aS=ae();var aR=aS&&aQ;return aR}function ac(){return !!(ag.swipe||ag.swipeStatus||ag.swipeLeft||ag.swipeRight||ag.swipeUp||ag.swipeDown)}function E(){return !!(aB()&&ac())}function ay(){return !!(ag.tap)}function aw(){aD=B();aP=event.touches.length+1}function z(){aD=0;aP=0}function af(){var aQ=false;if(aD){var aR=B()-aD;if(aR<=ag.fingerReleaseThreshold){aQ=true}}return aQ}function X(){return !!(H.data(v+"_intouch")===true)}function ak(aQ){if(aQ===true){H.bind(U,P);H.bind(av,ab);if(D){H.bind(D,W)}}else{H.unbind(U,P,false);H.unbind(av,ab,false);if(D){H.unbind(D,W,false)}}H.data(v+"_intouch",aQ===true)}function aO(aR,aQ){var aS=aQ.identifier!==undefined?aQ.identifier:0;ai[aR].identifier=aS;ai[aR].start.x=ai[aR].end.x=aQ.pageX||aQ.clientX;ai[aR].start.y=ai[aR].end.y=aQ.pageY||aQ.clientY;return ai[aR]}function V(aQ){var aS=aQ.identifier!==undefined?aQ.identifier:0;var aR=J(aS);aR.end.x=aQ.pageX||aQ.clientX;aR.end.y=aQ.pageY||aQ.clientY;return aR}function J(aR){for(var aQ=0;aQ<ai.length;aQ++){if(ai[aQ].identifier==aR){return ai[aQ]}}}function T(){var aQ=[];for(var aR=0;aR<=5;aR++){aQ.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return aQ}function aK(aQ,aR){aR=Math.max(aR,M(aQ));Z[aQ].distance=aR}function M(aQ){return Z[aQ].distance}function aE(){var aQ={};aQ[m]=aL(m);aQ[l]=aL(l);aQ[c]=aL(c);aQ[s]=aL(s);return aQ}function aL(aQ){return{direction:aQ,distance:0}}function K(){return Y-I}function aa(aT,aS){var aR=Math.abs(aT.x-aS.x);var aQ=Math.abs(aT.y-aS.y);return Math.round(Math.sqrt(aR*aR+aQ*aQ))}function y(aQ,aR){var aS=(aR/aQ)*1;return aS.toFixed(2)}function ao(){if(aj<1){return t}else{return b}}function G(aR,aQ){return Math.round(Math.sqrt(Math.pow(aQ.x-aR.x,2)+Math.pow(aQ.y-aR.y,2)))}function F(aT,aR){var aQ=aT.x-aR.x;var aV=aR.y-aT.y;var aS=Math.atan2(aV,aQ);var aU=Math.round(aS*180/Math.PI);if(aU<0){aU=360-Math.abs(aU)}return aU}function ar(aR,aQ){var aS=F(aR,aQ);if((aS<=45)&&(aS>=0)){return m}else{if((aS<=360)&&(aS>=315)){return m}else{if((aS>=135)&&(aS<=225)){return l}else{if((aS>45)&&(aS<135)){return s}else{return c}}}}}function B(){var aQ=new Date();return aQ.getTime()}function au(aQ){aQ=d(aQ);var aS=aQ.offset();var aR={left:aS.left,right:aS.left+aQ.outerWidth(),top:aS.top,bottom:aS.top+aQ.outerHeight()};return aR}function aC(aQ,aR){return(aQ.x>aR.left&&aQ.x<aR.right&&aQ.y>aR.top&&aQ.y<aR.bottom)}}})(jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/* info: https://kaosbusters.com/wp-content/plugins/gdpr-cookie-compliance/dist/scripts/main.js */
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.postscribe=o():e.postscribe=o()}(this,function(){return function(e){function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o,t){"use strict";var r=t(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,o,t){"use strict";function r(){}function n(){var e=f.shift();if(e){var o=_.last(e);o.afterDequeue(),e.stream=i.apply(void 0,e),o.afterStreamStart()}}function i(e,o,t){function i(e){e=t.beforeWrite(e),u.write(e),t.afterWrite(e)}u=new c.default(e,t),u.id=g++,u.name=t.name||u.id,s.streams[u.name]=u;var d=e.ownerDocument,p={close:d.close,open:d.open,write:d.write,writeln:d.writeln};a(d,{close:r,open:r,write:function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];return i(o.join(""))},writeln:function(){for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];return i(o.join("")+"\n")}});var _=u.win.onerror||r;return u.win.onerror=function(e,o,r){t.error({msg:e+" - "+o+": "+r}),_.apply(u.win,[e,o,r])},u.write(o,function(){a(d,p),u.win.onerror=_,t.done(),u=null,n()}),u}function s(e,o,t){if(_.isFunction(t))t={done:t};else if("clear"===t)return f=[],u=null,void(g=0);t=_.defaults(t,l),e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e;var i=[e,o,t];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},t.beforeEnqueue(i),f.push(i),u||n(),e.postscribe}o.__esModule=!0;var a=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};o.default=s;var d=t(2),c=function(e){return e&&e.__esModule?e:{default:e}}(d),p=t(4),_=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(p),l={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:r,error:function(e){throw new Error(e.msg)},releaseAsync:!1},g=0,f=[],u=null;a(s,{streams:{},queue:f,WriteStream:c.default})},function(e,o,t){"use strict";function r(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function n(e,o){var t=_+o,r=e.getAttribute(t);return p.existy(r)?String(r):r}function i(e,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=_+o;p.existy(t)&&""!==t?e.setAttribute(r,t):e.removeAttribute(r)}o.__esModule=!0;var s=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=t(3),d=function(e){return e&&e.__esModule?e:{default:e}}(a),c=t(4),p=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(c),_="data-ps-",l="ps-style",g="ps-script",f=function(){function e(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.root=o,this.options=t,this.doc=o.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new d.default("",{autoFix:t.autoFix}),this.actuals=[o],this.proxyHistory="",this.proxyRoot=this.doc.createElement(o.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var o=this.writeQueue.shift();p.isFunction(o)?this._callFunction(o):this._writeImpl(o)}},e.prototype._callFunction=function(e){var o={type:"function",value:e.name||e.toString()};this._onScriptStart(o),e.call(this.win,this.doc),this._onScriptDone(o)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var o=void 0,t=void 0,r=void 0,n=[];(o=this.parser.readToken())&&!(t=p.isScript(o))&&!(r=p.isStyle(o));)(o=this.options.beforeWriteToken(o))&&n.push(o);n.length>0&&this._writeStaticTokens(n),t&&this._handleScriptToken(o),r&&this._handleStyleToken(o)},e.prototype._writeStaticTokens=function(e){var o=this._buildChunk(e);return o.actual?(o.html=this.proxyHistory+o.actual,this.proxyHistory+=o.proxy,this.proxyRoot.innerHTML=o.html,this._walkChunk(),o):null},e.prototype._buildChunk=function(e){for(var o=this.actuals.length,t=[],r=[],n=[],i=e.length,s=0;s<i;s++){var a=e[s],d=a.toString();if(t.push(d),a.attrs){if(!/^noscript$/i.test(a.tagName)){var c=o++;r.push(d.replace(/(\/?>)/," "+_+"id="+c+" $1")),a.attrs.id!==g&&a.attrs.id!==l&&n.push("atomicTag"===a.type?"":"<"+a.tagName+" "+_+"proxyof="+c+(a.unary?" />":">"))}}else r.push(d),n.push("endTag"===a.type?d:"")}return{tokens:e,raw:t.join(""),actual:r.join(""),proxy:n.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,o=[this.proxyRoot];p.existy(e=o.shift());){var t=1===e.nodeType;if(!(t&&n(e,"proxyof"))){t&&(this.actuals[n(e,"id")]=e,i(e,"id"));var r=e.parentNode&&n(e.parentNode,"proxyof");r&&this.actuals[r].appendChild(e)}o.unshift.apply(o,p.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var o=this,t=this.parser.clear();t&&this.writeQueue.unshift(t),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){o._onScriptDone(e)}))},e.prototype._handleStyleToken=function(e){var o=this.parser.clear();o&&this.writeQueue.unshift(o),e.type=e.attrs.type||e.attrs.TYPE||"text/css",e=this.options.beforeWriteToken(e),e&&this._writeStyleToken(e),o&&this.write()},e.prototype._writeStyleToken=function(e){var o=this._buildStyle(e);this._insertCursor(o,l),e.content&&(o.styleSheet&&!o.sheet?o.styleSheet.cssText=e.content:o.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var o=this.doc.createElement(e.tagName);return o.setAttribute("type",e.type),p.eachKey(e.attrs,function(e,t){o.setAttribute(e,t)}),o},e.prototype._insertCursor=function(e,o){this._writeImpl('<span id="'+o+'"/>');var t=this.doc.getElementById(o);t&&t.parentNode.replaceChild(e,t)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){return e!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},e.prototype._writeScriptToken=function(e,o){var t=this._buildScript(e),r=this._shouldRelease(t),n=this.options.afterAsync;e.src&&(t.src=e.src,this._scriptLoadHandler(t,r?n:function(){o(),n()}));try{this._insertCursor(t,g),t.src&&!r||o()}catch(e){this.options.error(e),o()}},e.prototype._buildScript=function(e){var o=this.doc.createElement(e.tagName);return p.eachKey(e.attrs,function(e,t){o.setAttribute(e,t)}),e.content&&(o.text=e.content),o},e.prototype._scriptLoadHandler=function(e,o){function t(){e=e.onload=e.onreadystatechange=e.onerror=null}function r(){t(),null!=o&&o(),o=null}function n(e){t(),a(e),null!=o&&o(),o=null}function i(e,o){var t=e["on"+o];null!=t&&(e["_on"+o]=t)}var a=this.options.error;i(e,"load"),i(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){n({msg:"onload handler failed "+o+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){return void n({msg:"onerror handler failed "+o+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();o.default=f},function(e,o,t){!function(o,t){e.exports=function(){return function(e){function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var t={};return o.m=e,o.c=t,o.p="",o(0)}([function(e,o,t){"use strict";var r=t(1),n=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=n.default},function(e,o,t){"use strict";function r(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var i=t(2),s=r(i),a=t(3),d=r(a),c=t(6),p=function(e){return e&&e.__esModule?e:{default:e}}(c),_=t(5),l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},g=function(){function e(){var o=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.stream=t;var i=!1,a={};for(var d in s)s.hasOwnProperty(d)&&(r.autoFix&&(a[d+"Fix"]=!0),i=i||a[d+"Fix"]);i?(this._readToken=(0,p.default)(this,a,function(){return o._readTokenImpl()}),this._peekToken=(0,p.default)(this,a,function(){return o._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e].test(this.stream)){var o=d[e](this.stream);if(o)return"startTag"===o.type&&/script|style/i.test(o.tagName)?null:(o.text=this.stream.substr(0,o.length),o)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var o=void 0;o=this.readToken();)if(e[o.type]&&!1===e[o.type](o))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();o.default=g,g.tokenToString=function(e){return e.toString()},g.escapeAttributes=function(e){var o={};for(var t in e)e.hasOwnProperty(t)&&(o[t]=(0,_.escapeQuotes)(e[t],null));return o},g.supports=s;for(var f in s)s.hasOwnProperty(f)&&(g.browserHasFlaw=g.browserHasFlaw||!s[f]&&f)},function(e,o){"use strict";o.__esModule=!0;var t=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,o.tagSoup=t=n.innerHTML!==i}catch(e){o.tagSoup=t=!1}try{n.innerHTML="<P><i><P></P></i></P>",o.selfClose=r=2===n.childNodes.length}catch(e){o.selfClose=r=!1}n=null,o.tagSoup=t,o.selfClose=r},function(e,o,t){"use strict";function r(e){var o=e.indexOf("--\x3e");if(o>=0)return new c.CommentToken(e.substr(4,o-1),o+3)}function n(e){var o=e.indexOf("<");return new c.CharsToken(o>=0?o:e.length)}function i(e){if(-1!==e.indexOf(">")){var o=e.match(p.startTag);if(o){var t=function(){var e={},t={},r=o[2];return o[2].replace(p.attr,function(o,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(e[arguments[5]]="",t[arguments[5]]=!0):e[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":e[n]="",r=r.replace(o,"")}),{v:new c.StartTagToken(o[1],o[0].length,e,t,!!o[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===t?"undefined":d(t)))return t.v}}}function s(e){var o=i(e);if(o){var t=e.slice(o.length);if(t.match(new RegExp("</\\s*"+o.tagName+"\\s*>","i"))){var r=t.match(new RegExp("([\\s\\S]*?)</\\s*"+o.tagName+"\\s*>","i"));if(r)return new c.AtomicTagToken(o.tagName,r[0].length+o.length,o.attrs,o.booleanAttrs,r[1])}}}function a(e){var o=e.match(p.endTag);if(o)return new c.EndTagToken(o[1],o[0].length)}o.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.comment=r,o.chars=n,o.startTag=i,o.atomicTag=s,o.endTag=a;var c=t(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,o,t){"use strict";function r(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0,o.EndTagToken=o.AtomicTagToken=o.StartTagToken=o.TagToken=o.CharsToken=o.CommentToken=o.Token=void 0;var n=t(5),i=(o.Token=function e(o,t){r(this,e),this.type=o,this.length=t,this.text=""},o.CommentToken=function(){function e(o,t){r(this,e),this.type="comment",this.length=t||(o?o.length:0),this.text="",this.content=o}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),o.CharsToken=function(){function e(o){r(this,e),this.type="chars",this.length=o,this.text=""}return e.prototype.toString=function(){return this.text},e}(),o.TagToken=function(){function e(o,t,n,i,s){r(this,e),this.type=o,this.length=n,this.text="",this.tagName=t,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t="<"+e.tagName;for(var r in e.attrs)if(e.attrs.hasOwnProperty(r)){t+=" "+r;var i=e.attrs[r];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[r]||(t+='="'+(0,n.escapeQuotes)(i)+'"')}return e.rest&&(t+=" "+e.rest),t+=e.unary&&!e.html5Unary?"/>":">",void 0!==o&&null!==o&&(t+=o+"</"+e.tagName+">"),t},e}());o.StartTagToken=function(){function e(o,t,n,i,s,a){r(this,e),this.type="startTag",this.length=t,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return e.prototype.toString=function(){return i.formatTag(this)},e}(),o.AtomicTagToken=function(){function e(o,t,n,i,s){r(this,e),this.type="atomicTag",this.length=t,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return e.prototype.toString=function(){return i.formatTag(this,this.content)},e}(),o.EndTagToken=function(){function e(o,t){r(this,e),this.type="endTag",this.length=t,this.text="",this.tagName=o}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,o){"use strict";function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,function(e,o){return/\\/.test(o)?o+'"':o+'\\"'}):o}o.__esModule=!0,o.escapeQuotes=t},function(e,o){"use strict";function t(e){return e&&"startTag"===e.type&&(e.unary=a.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function r(e,o){var r=e.stream,n=t(o());return e.stream=r,n}function n(e,o){var t=o.pop();e.prepend("</"+t.tagName+">")}function i(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var o=this.last();return o&&o.tagName&&o.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var o,t=0;o=this[t];t++)if(o.tagName===e)return!0;return!1},e}function s(e,o,s){function a(){var o=r(e,s);o&&p[o.type]&&p[o.type](o)}var c=i(),p={startTag:function(t){var r=t.tagName;"TR"===r.toUpperCase()&&c.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),a()):o.selfCloseFix&&d.test(r)&&c.containsTagName(r)?c.lastTagNameEq(r)?n(e,c):(e.prepend("</"+t.tagName+">"),a()):t.unary||c.push(t)},endTag:function(t){c.last()?o.tagSoupFix&&!c.lastTagNameEq(t.tagName)?n(e,c):c.pop():o.tagSoupFix&&(s(),a())}};return function(){return a(),t(s())}}o.__esModule=!0,o.default=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,d=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(e,o){"use strict";function t(e){return void 0!==e&&null!==e}function r(e){return"function"==typeof e}function n(e,o,t){var r=void 0,n=e&&e.length||0;for(r=0;r<n;r++)o.call(t,e[r],r)}function i(e,o,t){for(var r in e)e.hasOwnProperty(r)&&o.call(t,r,e[r])}function s(e,o){return e=e||{},i(o,function(o,r){t(e[o])||(e[o]=r)}),e}function a(e){try{return Array.prototype.slice.call(e)}catch(t){var o=function(){var o=[];return n(e,function(e){o.push(e)}),{v:o}}();if("object"===(void 0===o?"undefined":l(o)))return o.v}}function d(e){return e[e.length-1]}function c(e,o){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e)||!~e.tagName.toLowerCase().indexOf(o))}function p(e){return c(e,"script")}function _(e){return c(e,"style")}o.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.existy=t,o.isFunction=r,o.each=n,o.eachKey=i,o.defaults=s,o.toArray=a,o.last=d,o.isTag=c,o.isScript=p,o.isStyle=_}])}),function(e,o){e.gdpr_lightbox=function(e,o){"use strict";function t(e){var o=I();return U&&e.length?(e.one(U,o.resolve),setTimeout(o.resolve,500)):o.resolve(),o.promise()}function r(e,t,r){if(1===arguments.length)return o.extend({},e);if("string"==typeof t){if(void 0===r)return void 0===e[t]?null:e[t];e[t]=r}else o.extend(e,t);return this}function n(e){for(var o,t=decodeURI(e.split("#")[0]).split("&"),r={},n=0,i=t.length;n<i;n++)t[n]&&(o=t[n].split("="),r[o[0]]=o[1]);return r}function i(e,t){return e+(e.indexOf("?")>-1?"&":"?")+o.param(t)}function s(e,o){var t=e.indexOf("#");return-1===t?o:(t>0&&(e=e.substr(t)),o+e)}function a(e){return o('<span class="gdpr_lightbox-error"></span>').append(e)}function d(e,t){var r=t.opener()&&t.opener().data("gdpr_lightbox-desc")||"Image with no description",n=o('<img src="'+e+'" alt="'+r+'"/>'),i=I(),s=function(){i.reject(a("Failed loading image"))};return n.on("load",function(){if(0===this.naturalWidth)return s();i.resolve(n)}).on("error",s),i.promise()}function c(e,t){var r,n,i;try{r=o(e)}catch(e){return!1}return!!r.length&&(n=o('<i style="display:none !important"></i>'),i=r.hasClass("gdpr_lightbox-hide"),t.element().one("gdpr_lightbox:remove",function(){n.before(r).remove(),i&&!r.closest(".gdpr_lightbox-content").length&&r.addClass("gdpr_lightbox-hide")}),r.removeClass("gdpr_lightbox-hide").after(n))}function p(e){var t=P.exec(e);return!!t&&f(s(e,i("https://www.youtube"+(t[2]||"")+".com/embed/"+t[4],o.extend({autoplay:1},n(t[5]||"")))))}function _(e){var t=R.exec(e);return!!t&&f(s(e,i("https://player.vimeo.com/video/"+t[3],o.extend({autoplay:1},n(t[4]||"")))))}function l(e){var t=F.exec(e);return!!t&&(0!==e.indexOf("http")&&(e="https:"+e),f(s(e,i("https://www.facebook.com/plugins/video.php?href="+e,o.extend({autoplay:1},n(t[4]||""))))))}function g(e){var o=M.exec(e);return!!o&&f(s(e,i("https://www.google."+o[3]+"/maps?"+o[6],{output:o[6].indexOf("layer=c")>0?"svembed":"embed"})))}function f(e){return'<div class="gdpr_lightbox-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+e+'"/></div>'}function u(){return C.documentElement.clientHeight?C.documentElement.clientHeight:Math.round(S.height())}function v(e){var o=k();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&m(e,o))}function m(e,o){var t=o.element().find(E),r=t.index(C.activeElement);e.shiftKey&&r<=0?(t.get(t.length-1),e.preventDefault()):e.shiftKey||r!==t.length-1||(t.get(0),e.preventDefault())}function h(){o.each(O,function(e,o){o.resize()})}function b(e){1===O.unshift(e)&&(N.addClass("gdpr_lightbox-active"),S.on({resize:h,keydown:v})),o("body > *").not(e.element()).addClass("gdpr_lightbox-hidden").each(function(){var e=o(this);void 0===e.data(D)&&e.data(D,e.attr(j)||null)}).attr(j,"true")}function y(e){var t;e.element().attr(j,"true"),1===O.length&&(N.removeClass("gdpr_lightbox-active"),S.off({resize:h,keydown:v})),O=o.grep(O,function(o){return e!==o}),t=O.length?O[0].element():o(".gdpr_lightbox-hidden"),t.removeClass("gdpr_lightbox-hidden").each(function(){var e=o(this),t=e.data(D);t?e.attr(j,t):e.removeAttr(j),e.removeData(D)})}function k(){return 0===O.length?null:O[0]}function w(e,t,r,n){var i,s="inline",a=o.extend({},r);return n&&a[n]?(i=a[n](e,t),s=n):(o.each(["inline","iframe"],function(e,o){delete a[o],a[o]=r[o]}),o.each(a,function(o,r){return!r||(!(!r.test||r.test(e,t))||(i=r(e,t),!1!==i?(s=o,!1):void 0))})),{handler:s,content:i||""}}function x(e,n,i,s){function a(e){p=o(e).css("max-height",u()+"px"),c.find(".gdpr_lightbox-loader").each(function(){var e=o(this);t(e).always(function(){e.remove()})}),c.removeClass("gdpr_lightbox-loading").find(".gdpr_lightbox-content").empty().append(p),l=!0,p.trigger("gdpr_lightbox:ready",[_])}var d,c,p,_=this,l=!1,g=!1;n=o.extend({},A,n),c=o(n.template),_.element=function(){return c},_.opener=function(){return i},_.options=o.proxy(r,_,n),_.handlers=o.proxy(r,_,n.handlers),_.resize=function(){l&&!g&&p.css("max-height",u()+"px").trigger("gdpr_lightbox:resize",[_])},_.close=function(){if(l&&!g){g=!0,y(_);var e=I();return s&&(C.activeElement===c[0]||o.contains(c[0],C.activeElement)),p.trigger("gdpr_lightbox:close",[_]),c.removeClass("gdpr_lightbox-opened").addClass("gdpr_lightbox-closed"),t(p.add(c)).always(function(){p.trigger("gdpr_lightbox:remove",[_]),c.remove(),c=void 0,e.resolve()}),e.promise()}},d=w(e,_,n.handlers,n.handler),c.attr(j,"false").addClass("gdpr_lightbox-loading gdpr_lightbox-opened gdpr_lightbox-"+d.handler).appendTo("body").on("click","[data-gdpr_lightbox-close]",function(e){o(e.target).is("[data-gdpr_lightbox-close]")&&_.close()}).trigger("gdpr_lightbox:open",[_]),b(_),o.when(d.content).always(a)}function T(e,t,r){e.preventDefault?(e.preventDefault(),r=o(this),e=r.data("gdpr_lightbox-target")||r.attr("href")||r.attr("src")):r=o(r);var n=new x(e,o.extend({},r.data("gdpr_lightbox-options")||r.data("gdpr_lightbox"),t),r,C.activeElement);if(!e.preventDefault)return n}var C=e.document,S=o(e),I=o.Deferred,N=o("html"),O=[],j="aria-hidden",D="gdpr_lightbox-"+j,E='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',A={esc:!0,handler:null,handlers:{image:d,inline:c,youtube:p,vimeo:_,googlemaps:g,facebookvideo:l,iframe:f},template:'<div class="gdpr_lightbox" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="gdpr_lightbox-wrap" data-gdpr_lightbox-close role="document"><div class="gdpr_lightbox-loader" aria-hidden="true">Loading...</div><div class="gdpr_lightbox-container"><div class="gdpr_lightbox-content"></div><button class="gdpr_lightbox-close" type="button" aria-label="Close (Press escape to close)" data-gdpr_lightbox-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,P=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,R=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,F=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,U=function(){var e=C.createElement("div"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in o)if(void 0!==e.style[t])return o[t];return!1}();return d.test=function(e){return J.test(e)},T.options=o.proxy(r,T,A),T.handlers=o.proxy(r,T,A.handlers),T.current=k,o(C).on("click.gdpr_lightbox","[data-gdpr_lightbox]",T),T}(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this),function(e){var o={common:{init:function(){"use strict";function o(e){var o;try{o=new URL(e)}catch(e){return!1}return"http:"===o.protocol||"https:"===o.protocol}function t(e){try{new URLSearchParams(window.location.search).has("gdpr_dbg")&&console.warn(e)}catch(e){console.warn(e)}}function r(){"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")&&e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){t("dbg - cookies removed")})}function n(){r();var o=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:0,thirdparty:0,advanced:0,wp_lang:o},function(e){var o={};o.strict=1,o.thirdparty=0,o.advanced=0,h(),i("script_inject",o),_(o)}):h()}function i(e,o){try{jQuery().gdpr_cookie_compliance_analytics(e,o)}catch(e){}}function s(e){try{jQuery().gdpr_cookie_compliance_consent_log(e)}catch(e){}}function a(){var e=u("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced,_(o),i("script_inject",e)),void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.advanced)&&d()):"1"!==moove_frontend_gdpr_scripts.strict_init&&d(),o}function d(){e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))})}function c(e){w=!0,i("accept_all",""),f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),y),p("enabled-all")}function p(r){var n=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(n=!0)}catch(e){}var s=a(),d=moove_frontend_gdpr_scripts.enabled_default.third_party,c=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==d||1==c){var p=u("moove_gdpr_popup");1==d&&(N.strict=1,N.thirdparty=d),1==c&&(N.strict=1,N.advanced=c),N&&(parseInt(s.strict)-parseInt(N.strict)<0&&(n=!0),parseInt(s.thirdparty)-parseInt(N.thirdparty)<0&&(n=!0),parseInt(s.advanced)-parseInt(N.advanced)<0&&(n=!0))}if(n)if(p={strict:0,thirdparty:0,advanced:0},i("script_inject",p),void 0!==moove_frontend_gdpr_scripts.scripts_defined)setTimeout(function(){location.reload(!0)},800);else{var _=e(document).find('script[src*="googletagmanager.com"]');_.length>0&&_.each(function(){var t=e(this).attr("src");if(t&&o(t)){var r=new URL(t),n=r.searchParams.get("id");n&&(document.cookie="woocommerce_"+n+"=true; expires=Thu, 31 Dec 1970 23:59:59 UTC; path=/",window["ga-disable-"+n]=!0),window.gtag&&window.gtag("remove"),e(this).remove()}});var g=void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"true";if("function"==typeof navigator.sendBeacon)if("true"===g){var f=new FormData;f.append("action","moove_gdpr_remove_php_cookies"),navigator.sendBeacon(moove_frontend_gdpr_scripts.ajaxurl,f),location.reload(!0)}else location.reload(!0);else"true"===g?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){location.reload(!0)}).fail(function(){location.reload(!0)}):location.reload(!0)}else{var m=u("moove_gdpr_popup");t("dbg - inject - 4"),v(m),l(),e("#moove_gdpr_save_popup_settings_button").show()}}function _(o){o&&(i("script_inject",o),1===parseInt(o.strict)?(e("#moove_gdpr_strict_cookies").is(":checked")||(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","allow")):(e("#moove_gdpr_strict_cookies").is(":checked")&&(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","deny")),1===parseInt(o.thirdparty)?(e("#moove_gdpr_performance_cookies").is(":checked")||e("#moove_gdpr_performance_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","allow")):(e("#moove_gdpr_performance_cookies").is(":checked")&&e("#moove_gdpr_performance_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","deny")),1===parseInt(o.advanced)?(e("#moove_gdpr_advanced_cookies").is(":checked")||e("#moove_gdpr_advanced_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","allow")):(e("#moove_gdpr_advanced_cookies").is(":checked")&&e("#moove_gdpr_advanced_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","deny")),e('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",e("#moove_gdpr_performance_cookies").is(":checked")),e('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",e("#moove_gdpr_strict_cookies").is(":checked")),e('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",e("#moove_gdpr_advanced_cookies").is(":checked")))}function l(){e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide())}function g(){var o=!0;if("undefined"!=typeof sessionStorage&&1===parseInt(sessionStorage.getItem("gdpr_infobar_hidden"))&&(o=!1),void 0!==moove_frontend_gdpr_scripts.display_cookie_banner&&o){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""));else if(e("#moove_gdpr_cookie_info_bar").length>0){e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide();var r={strict:1,thirdparty:1,advanced:1};t("dbg - inject - 5"),v(JSON.stringify(r))}}else e("#moove_gdpr_cookie_info_bar").length>0&&o&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""))}function f(e,o,r){var n;if(r>0){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),n="; expires="+i.toGMTString()}else n="";try{var a="SameSite=Lax";void 0!==moove_frontend_gdpr_scripts.cookie_attributes&&(a=moove_frontend_gdpr_scripts.cookie_attributes),void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&(o=JSON.parse(o),o.version=moove_frontend_gdpr_scripts.gdpr_consent_version,o=JSON.stringify(o)),"moove_gdpr_popup"===e&&0===parseInt(o.strict)?void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor?document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a:document.cookie=encodeURIComponent(e)+"=; Path=/;":document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a,o!==A&&(A=o,s(o))}catch(e){t("error - moove_gdpr_create_cookie: "+e)}}function u(e){for(var o=encodeURIComponent(e)+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(o)){var i=decodeURIComponent(n.substring(o.length,n.length)),s=JSON.parse(i);if(void 0!==s.version){if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version){var a=moove_frontend_gdpr_scripts.gdpr_consent_version;if(parseFloat(a)>parseFloat(s.version))return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null}}else if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&parseFloat(moove_frontend_gdpr_scripts.gdpr_consent_version)>1)return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null;return i}}return null}function v(o){if(N=a(),o){var t=o;o=JSON.parse(o);a();if(!1!==O){var r=JSON.parse(O);1===parseInt(r.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(r.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0")}if(i("script_inject",o),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.advanced)&&d()):1===parseInt(o.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var s=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(o.strict))1===parseInt(o.thirdparty)&&void 0===k.thirdparty&&(s.thirdparty.header&&postscribe(document.head,s.thirdparty.header),s.thirdparty.body&&e(s.thirdparty.body).prependTo(document.body),s.thirdparty.footer&&postscribe(document.body,s.thirdparty.footer),k.thirdparty=!0),1===parseInt(o.advanced)&&void 0===k.advanced&&(s.advanced.header&&postscribe(document.head,s.advanced.header),s.advanced.body&&e(s.advanced.body).prependTo(document.body),s.advanced.footer&&postscribe(document.body,s.advanced.footer),k.advanced=!0);else{var o=u("moove_gdpr_popup");o&&(h(),n())}}catch(e){console.error(e)}else if(void 0===k.thirdparty||void 0===k.advanced){1===o.thirdparty&&(k.thirdparty=!0),1===o.advanced&&(k.advanced=!0);var c=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(o.thirdparty)&&0===parseInt(o.advanced)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced,wp_lang:c},function(r){O=t,i("script_inject",o);var n=JSON.parse(r);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}else g()}function m(){var o=!0;e(document).find("#moove_gdpr_cookie_modal input[type=checkbox]").each(function(){e(this).is(":checked")||(o=!1)})}function h(o){try{e(document).find("script[data-gdpr]").each(function(){t("script_removed: "+e(this).attr("src"))});for(var r=document.cookie.split(";"),n=window.location.hostname,i=0;i<r.length;i++){var s=r[i],a=s.indexOf("="),d=a>-1?s.substr(0,a):s;d.includes("woocommerce")||d.includes("wc_")||d.includes("moove_gdpr_popup")||d.includes("wordpress")||(document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+n,document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=."+n,t("cookie removed: "+d+" - "+n))}}catch(e){t("error in gdpr_delete_all_cookies: "+e)}"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("gdpr_session")}function b(o){var t=u("moove_gdpr_popup");o&&(h(),r());var n="0",i="0",s="0",a=!1;t&&(t=JSON.parse(t),n=t.strict,i=t.advanced,s=t.thirdparty),e("#moove_gdpr_strict_cookies").length>0?e("#moove_gdpr_strict_cookies").is(":checked")?(n="1",a=!0):n="0":(a=!0,n="1"),e("#moove_gdpr_performance_cookies").is(":checked")?(s="1",a=!0):s="0",e("#moove_gdpr_advanced_cookies").is(":checked")?(i="1",a=!0):i="0",!t&&a?(f("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i}),y),l(),e("#moove_gdpr_save_popup_settings_button").show()):t&&(w||f("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i}),y));var t=u("moove_gdpr_popup");t&&(t=JSON.parse(t),"0"==t.strict&&"0"==t.advanced&&"0"==t.thirdparty&&h())}var y=365,k=[],w=!1;void 0!==moove_frontend_gdpr_scripts.cookie_expiration&&(y=moove_frontend_gdpr_scripts.cookie_expiration),e(document).on("click","#moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .main-modal-content .moove-gdpr-tab-main:not(#privacy_overview) .tab-title",function(o){window.innerWidth<768&&(e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").is(":visible")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideUp(300):e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideDown(300))}),e(document).on("click tap",'#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn, [href*="#gdpr-reject-cookies"], .moove-gdpr-modal-reject-all',function(o){o.preventDefault(),h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),p("reject-btn")});var x=!1,T=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),C=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),S=0,I=!1;e(document).on("keydown",function(o){if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v1")){if(38==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode)if(o.preventDefault(),I){var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}else{var t=e("#moove-gdpr-menu li.menu-item-selected"),n=t.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal #moove-gdpr-menu > li");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),(e(s).hasClass("menu-item-on")||e(s).hasClass("menu-item-off"))&&e(s).find("button").trigger("click"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();e(".moove-gdpr-tab-main:visible").find(".moove-gdpr-status-bar input[type=checkbox]").trigger("click")}13==o.keyCode&&(o.preventDefault(),e(document).find(".focus-g").length>0?e(document).find(".focus-g").trigger("click"):e(".moove-gdpr-modal-save-settings").trigger("click"))}if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v2")){if(38==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),r=t.prev();0===r.length&&(r=e("#moove-gdpr-menu li").last()),r.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode){o.preventDefault();var t=e("#moove-gdpr-menu li.menu-item-selected"),n=t.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(32==o.keyCode){o.preventDefault();e("#moove_gdpr_cookie_modal").find(".focus-g").trigger("click")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .cookie-switch, #moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal a:not(.moove-gdpr-branding), #moove_gdpr_cookie_modal .moove-gdpr-modal-close");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}13==o.keyCode&&(e("#moove_gdpr_cookie_modal .focus-g").length>0&&(e("#moove_gdpr_cookie_modal .focus-g").hasClass("mgbutton")||e("#moove_gdpr_cookie_modal .focus-g").hasClass("moove-gdpr-modal-close")||e("#moove_gdpr_cookie_modal .focus-g").attr("href"))?e("#moove_gdpr_cookie_modal .focus-g").attr("href")?e("#moove_gdpr_cookie_modal .focus-g").trigger("click"):(o.preventDefault(),e("#moove_gdpr_cookie_modal .focus-g").trigger("click")):(o.preventDefault(),e(".moove-gdpr-modal-save-settings").trigger("click")))}}),e(document).on("keyup",function(e){16==e.keyCode&&(I=!1),17!=e.keyCode&&18!=e.keyCode&&13!=e.keyCode||(I=!1)}),document.addEventListener("visibilitychange",function(e){I=!1}),e(document).on("keydown",function(o){if(16==o.keyCode&&(I=!0),e("body").hasClass("gdpr-infobar-visible")&&!e("body").hasClass("moove_gdpr_overflow")&&e("#moove_gdpr_cookie_info_bar").hasClass("gdpr-full-screen-infobar")){if(9==o.keyCode){o.preventDefault(),console.warn("fsw-tab");var t=e('#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar span.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar button.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="third_party_cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="advanced-cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .mgbutton');if(t.length>0){var r=!1;if(S<=t.length?(I?S--:S++,r=t[S],e(r).is(":visible")||(I?S--:S++,r=t[S])):(S=0,r=t[S]),e("#moove_gdpr_cookie_info_bar .focus-g").removeClass("focus-g"),S<0&&I&&(S=t.length),!r&&S>t.length&&(S=0,r=t[S]),e(document).find("*").blur(),e(r).addClass("focus-g").trigger("focus"),e(r).length>0)try{e(r)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_info_bar").find(".gdpr-shr-switch.focus-g input[type=checkbox]");console.warn("space"),i.trigger("click")}}13==o.keyCode&&e(document.activeElement).length>0&&e(document.activeElement).closest("#moove_gdpr_cookie_info_bar").length>0&&(o.preventDefault(),e(document.activeElement).trigger("click"))}),e.fn.moove_gdpr_read_cookies=function(e){var o=u("moove_gdpr_popup"),t={};return t.strict="0",t.thirdparty="0",t.advanced="0",o&&(o=JSON.parse(o),t.strict=parseInt(o.strict),t.thirdparty=parseInt(o.thirdparty),t.advanced=parseInt(o.advanced)),t};var N=a(),O=!1,j=!1,D="",E=!1,A="";e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn",function(o){if(o.preventDefault(),void 0!==moove_frontend_gdpr_scripts.close_btn_action){var t=parseInt(moove_frontend_gdpr_scripts.close_btn_action);1===t&&(l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)),2===t&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),p("reject-btn")),3===t&&c("enable_all close-btn"),4===t&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500)),void 0!==moove_frontend_gdpr_scripts.close_btn_rdr&&""!==moove_frontend_gdpr_scripts.close_btn_rdr?window.parent.location.href=moove_frontend_gdpr_scripts.close_btn_rdr:p("reject-btn"))}else l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)}),e.fn.moove_gdpr_save_cookie=function(o){var t=u("moove_gdpr_popup"),r=t,s=e(window).scrollTop();if(!t){if(o.thirdParty)var a="1";else var a="0";if(o.advanced)var c="1";else var c="0";if(o.scrollEnable){var p=o.scrollEnable;e(window).scroll(function(){!j&&e(this).scrollTop()-s>p&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c}),y),t=JSON.parse(t),_(t)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c}),y),t=JSON.parse(t),_(t));if(t=u("moove_gdpr_popup"))if(t=JSON.parse(t),i("script_inject",t),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&t&&1===parseInt(t.advanced)&&d()):1===parseInt(t.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var l=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(t.strict))1===parseInt(t.thirdparty)&&void 0===k.thirdparty&&(l.thirdparty.header&&postscribe(document.head,l.thirdparty.header),l.thirdparty.body&&e(l.thirdparty.body).prependTo(document.body),l.thirdparty.footer&&postscribe(document.body,l.thirdparty.footer),k.thirdparty=!0),1===parseInt(t.advanced)&&void 0===k.advanced&&(l.advanced.header&&postscribe(document.head,l.advanced.header),l.advanced.body&&e(l.advanced.body).prependTo(document.body),l.advanced.footer&&postscribe(document.body,l.advanced.footer),k.advanced=!0);else{var t=u("moove_gdpr_popup");t&&(h(),n())}}catch(e){console.error(e)}else if(void 0===k.thirdparty||void 0===k.advanced){1===t.thirdparty&&(k.thirdparty=!0),1===t.advanced&&(k.advanced=!0);var g=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(t.thirdparty)&&0===parseInt(t.advanced)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:t.strict,thirdparty:t.thirdparty,advanced:t.advanced,wp_lang:g},function(o){O=r,i("script_inject",t);var n=JSON.parse(o);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}},function(){var o=(location.pathname,e(window).scrollTop());e("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,n=moove_frontend_gdpr_scripts.enabled_default.advanced;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(r)&&1!==parseInt(n)&&(r=1,n=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==n){var i=u("moove_gdpr_popup");if(i){var s=a();"0"==s.strict&&"0"==s.advanced&&"0"==s.thirdparty&&(h(),g())}else{var d=!1;if("undefined"!=typeof sessionStorage&&(d=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll){if(d)try{_(JSON.parse(d)),j=!0,t("dbg - inject - 1"),v(d),f("moove_gdpr_popup",d,y),l()}catch(e){}else if((!j&&1==moove_frontend_gdpr_scripts.enabled_default.third_party||!j&&1==moove_frontend_gdpr_scripts.enabled_default.advanced)&&(i={strict:1,thirdparty:r,advanced:n},_(i),i=JSON.stringify(i),x=!0,g(),t("dbg - default scroll inject")),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("1"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("1"))&&(t("dbg - enable on scroll - enter"),e(window).scroll(function(){if((!j||x)&&e(this).scrollTop()-o>200){i={strict:1,thirdparty:r,advanced:n},u("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((d=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(i)),d=sessionStorage.getItem("gdpr_session")));try{_(i),i=JSON.stringify(i),g(),j=!0,t("dbg - inject - 2 - accept on scroll"),x||v(i),x=!1,f("moove_gdpr_popup",i,y),l(),p("check reload on scroll"),e("#moove_gdpr_save_popup_settings_button").show()}catch(e){}}})),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("2"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("2"))){var c=30;if(void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds)var c=parseInt(moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds);t("dbg - hidetimer - enter, seconds: "+c),setTimeout(function(){if(t("dbg - hidetimer - is_created: "+j),!j){i={strict:1,thirdparty:r,advanced:n};var o=u("moove_gdpr_popup");t("dbg - hidetimer - cookies_stored: "+o),o||"undefined"!=typeof sessionStorage&&((d=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(i)),d=sessionStorage.getItem("gdpr_session")));try{_(i),i=JSON.stringify(i),g(),j=!0,t("dbg - inject - 2a"),v(i),f("moove_gdpr_popup",i,y),p("check reload hidetimer")}catch(e){}}l(),e("#moove_gdpr_save_popup_settings_button").show()},1e3*c)}}else i={strict:1,thirdparty:r,advanced:n},_(i),i=JSON.stringify(i),g()}t("dbg - inject - 3"),v(i)}else g()}(),e(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(e){e.preventDefault()}),e(document).on("click tap",".moove-gdpr-modal-close",function(o){o.preventDefault(),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close()}),e(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),e("#moove-gdpr-menu li").removeClass("menu-item-selected"),e(this).parent().addClass("menu-item-selected"),e(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),e(e(this).attr("href")).show(),e(e(this).attr("data-href")).show(),i("clicked_to_tab",e(this).attr("data-href"))}),e(document).on("gdpr_lightbox:close",function(o,t){e(document).moove_gdpr_lightbox_close()}),e.fn.moove_gdpr_lightbox_close=function(o){E&&(e("body").removeClass("moove_gdpr_overflow"),E=!1)},e.fn.moove_gdpr_lightbox_open=function(o){if(E){e("body").addClass("moove_gdpr_overflow");var t=u("moove_gdpr_popup");document.activeElement.blur(),"none"===moove_frontend_gdpr_scripts.show_icons&&e("body").addClass("gdpr-no-icons"),e(".moove-gdpr-status-bar input[type=checkbox]").each(function(){e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),t?(t=JSON.parse(t),_(t)):e("#moove_gdpr_strict_cookies").is(":checked")||(e("#advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled"),e("#third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled")),void 0!==moove_frontend_gdpr_scripts.hide_save_btn&&"true"===moove_frontend_gdpr_scripts.hide_save_btn?e(".moove-gdpr-modal-save-settings").removeClass("button-visible").hide():e(".moove-gdpr-modal-save-settings").addClass("button-visible").show(),m()}},e(document).on("gdpr_lightbox:open",function(o,t){e(document).moove_gdpr_lightbox_open()}),e(document).on("click tap",".fl-disabled",function(o){e("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?e("#moove_gdpr_strict_cookies").length>0&&(e("#moove_gdpr_strict_cookies").trigger("click"),e(this).trigger("click")):e(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),e(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(o){e(".moove-gdpr-modal-save-settings").addClass("button-visible").show();var t=e(this).closest(".moove-gdpr-tab-main").attr("id");e(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),e(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),e("#moove-gdpr-menu .menu-item-"+t).toggleClass("menu-item-off"),e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),e(this).is("#moove_gdpr_strict_cookies")&&(e(this).is(":checked")?(e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(e(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){e(this).prop("checked",!1)}),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),e('input[data-name="'+e(this).attr("name")+'"]').prop("checked",e(this).is(":checked")),m()}),e(document).on("click tap",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")}),e(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(o){var t=e(this).attr("data-name"),r=e("#"+t);e(this).is(":checked")?(e('input[data-name="'+t+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==e(this).attr("data-name")&&(e(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(e('input[data-name="'+t+'"]').prop("checked",!1),e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(e('input[data-name="'+t+'"]').prop("checked",e(this).is(":checked")),"moove_gdpr_strict_cookies"===e(this).attr("data-name")&&e(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),r.trigger("click")}),e(document).on("click tap",'.moove-gdpr-modal-allow-all, [href*="#gdpr-accept-cookies"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1),e(document).moove_gdpr_lightbox_close()}),e(document).on("click tap",".moove-gdpr-infobar-allow-all",function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all allow-btn"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1)}),e(document).on("click tap",".moove-gdpr-modal-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")});if(window.location.hash){var J=window.location.hash.substring(1);J=J.replace(/\/$/,""),"moove_gdpr_cookie_modal"!==J&&"gdpr_cookie_modal"!==J||(E=!0,i("opened_modal_from_link",""),setTimeout(function(){e("#moove_gdpr_cookie_modal").length>0&&(D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open())},500)),"gdpr-accept-cookies"===J&&(e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!0),e(document).moove_gdpr_lightbox_close()),"gdpr-reject-cookies"===J&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),g(),f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y),setTimeout(function(){f("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0"}),y)},500))}},finalize:function(){}}},t={fire:function(e,t,r){var n,i=o;t=void 0===t?"init":t,n=""!==e,n=n&&i[e],(n=n&&"function"==typeof i[e][t])&&i[e][t](r)},loadEvents:function(){var o=!1,r=!1;if(void 0!==moove_frontend_gdpr_scripts.gpc&&1===parseInt(moove_frontend_gdpr_scripts.gpc)&&void 0!==navigator.globalPrivacyControl&&(gpcValue=navigator.globalPrivacyControl,gpcValue&&(r=!0,console.warn("GDPR Cookie Compliance - Blocked by Global Policy Control (GPC)"))),!r)if(void 0!==moove_frontend_gdpr_scripts.geo_location&&"true"===moove_frontend_gdpr_scripts.geo_location)jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_localize_scripts"},function(e){var r=JSON.parse(e);void 0!==r.display_cookie_banner&&(moove_frontend_gdpr_scripts.display_cookie_banner=r.display_cookie_banner),void 0!==r.enabled_default&&(moove_frontend_gdpr_scripts.enabled_default=r.enabled_default),o||(o=!0,t.fire("common"))});else{var n=void 0!==typeof moove_frontend_gdpr_scripts.script_delay&&parseInt(moove_frontend_gdpr_scripts.script_delay)>=0?parseInt(moove_frontend_gdpr_scripts.script_delay):0;n>0?setTimeout(function(){t.fire("common")},n):t.fire("common")}e.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(e,o){t.fire(o),t.fire(o,"finalize")}),t.fire("common","finalize")}};e(document).ready(t.loadEvents)}(jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
var gdpr_consent__strict = "true"
var gdpr_consent__thirdparty = "false"
var gdpr_consent__advanced = "false"
var gdpr_consent__cookies = "strict"

/* info: https://kaosbusters.com/wp-content/plugins/js_composer_salient/assets/js/dist/js_composer_front.min.js */
/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2021 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */

// jscs:disable
// jshint ignore: start
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() {
            /* nectar addition */
        }), "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() {
            0 < jQuery(".wpb_googleplus").length && function() {
                var po = document.createElement("script");
                po.type = "text/javascript", po.async = !0, po.src = "https://apis.google.com/js/plusone.js";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(po, s)
            }()
        }), "function" != typeof window.vc_pinterest && (window.vc_pinterest = function() {
            0 < jQuery(".wpb_pinterest").length && function() {
                var po = document.createElement("script");
                po.type = "text/javascript", po.async = !0, po.src = "https://assets.pinterest.com/js/pinit.js";
                var s = document.getElementsByTagName("script")[0];
                s.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(content) {
                content && content.preventDefault && content.preventDefault();
                var element = jQuery(this).closest(".vc_toggle"),
                    content = element.find(".vc_toggle_content");
                element.hasClass("vc_toggle_active") ? content.slideUp({
                    duration: 300,
                    complete: function() {
                        element.removeClass("vc_toggle_active")
                    }
                }) : content.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(ver) {
            var $call, old_version;
            jQuery.ui && ($call = ver || 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, $call.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(length) {
                    var index;
                    length && length.preventDefault && length.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"), length = $tabs.find(".wpb_tab").length, index = jQuery(this).parent().hasClass("wpb_next_slide") ? length <= index + 1 ? 0 : index + 1 : index - 1 < 0 ? length - 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),
                    $tabs = !1 === active_tab || "yes" === $this.data("collapsible"),
                    $tabs = $this.find(".wpb_accordion_wrapper").accordion({
                        header: "> div > h3",
                        autoHeight: !1,
                        heightStyle: "content",
                        active: active_tab,
                        collapsible: $tabs,
                        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") && ($tabs.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($thumbs) {
                    $thumbs && $thumbs.preventDefault && $thumbs.preventDefault();
                    $thumbs = jQuery(this).data("isotope");
                    jQuery(this).parent().parent().find(".active").removeClass("active"), jQuery(this).parent().addClass("active"), $thumbs.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 fluid_ul = jQuery(this);
                !0 !== fluid_ul.data("carousel_enabled") && fluid_ul.is(":visible") && (fluid_ul.data("carousel_enabled", !0), getColumnsCount(jQuery(this)), jQuery(this).hasClass("columns_count_1"), (fluid_ul = jQuery(this).find(".wpb_thumbnails-fluid li")).css({
                    "margin-right": fluid_ul.css("margin-left"),
                    "margin-left": 0
                }), (fluid_ul = jQuery(this).find("ul.wpb_thumbnails-fluid")).width(fluid_ul.width() + 300), jQuery(window).on("resize", function() {
                    screen_size != (screen_size = getSizeName()) && window.setTimeout(function() {
                        location.reload()
                    }, 20)
                }))
            })
        }), "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 vcSkrollrOptions, callSkrollInit, $ = window.jQuery;

            function fullWidthRow() {
                var $elements = $('[data-vc-full-width="true"]');
                $.each($elements, function(key, item) {
                    var $el = $(this);
                    $el.addClass("vc_hidden");
                    var el_margin_left, el_margin_right, offset, width, padding, paddingRight, $el_full = $el.next(".vc_row-full-width");
                    ($el_full = !$el_full.length ? $el.parent().next(".vc_row-full-width") : $el_full).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(), "rtl" === $el.css("direction") && (offset -= $el_full.width(), offset += width, offset += el_margin_left, offset += el_margin_right), $el.css({
                        position: "relative",
                        left: offset,
                        "box-sizing": "border-box",
                        width: width
                    }), $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
                    }))
                }), $(document).trigger("vc-full-width-row", $elements)
            }

            function fullHeightRow() {
                var fullHeight, offsetTop, $element = $(".vc_row-o-full-height:first");
                $element.length && (fullHeight = $(window).height(), (offsetTop = $element.offset().top) < fullHeight && (fullHeight = 100 - offsetTop / (fullHeight / 100), $element.css("min-height", fullHeight + "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(), callSkrollInit = !1, 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 skrollrStart, $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;"), skrollrStart = 100 * $(this).data("vcParallax"), ($parallaxElement = $("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrStart + "%"), parallaxImage = $(this).data("vcParallaxImage"), (youtubeId = vcExtractYoutubeId(parallaxImage)) ? insertYoutubeVideoAsBackground($parallaxElement, youtubeId) : void 0 !== parallaxImage && $parallaxElement.css("background-image", "url(" + parallaxImage + ")"), skrollrStart = -(skrollrStart - 100), $parallaxElement.attr("data-bottom-top", "top: " + skrollrStart + "%;").attr("data-top-bottom", "top: 0%;")
            }), callSkrollInit && window.skrollr && (vcSkrollrOptions = {
                forceHeight: !1,
                smoothScrolling: !1,
                mobileCheck: function() {
                    return !1
                }
            }, window.vcParallaxSkroll = skrollr.init(vcSkrollrOptions), 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++
            }
        });
        var screen_size = getSizeName();

        function getSizeName() {
            var screen_w = jQuery(window).width();
            return 1170 < screen_w ? "desktop_wide" : 960 < screen_w && screen_w < 1169 ? "desktop" : 768 < screen_w && screen_w < 959 ? "tablet" : 300 < screen_w && screen_w < 767 ? "mobile" : screen_w < 300 ? "mobile_portrait" : ""
        }
        "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"),
                $frame = panel.find(".vc_line-chart"),
                $google_maps = 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
            }), $frame.length && jQuery.fn.vcLineChart && $frame.vcLineChart({
                reload: !1
            }), $google_maps.length && jQuery.fn.carousel && $google_maps.carousel("resizeAction"), $frame = panel.find(".isotope, .wpb_image_grid_ul"), $google_maps = panel.find(".wpb_gmaps_widget"), 0 < $frame.length && $frame.isotope("layout"), $google_maps.length && !$google_maps.is(".map_ready") && (($frame = $google_maps.find("iframe")).attr("src", $frame.attr("src")), $google_maps.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 youtubeId, $element = jQuery(this);
                $element.data("vcVideoBg") ? (youtubeId = $element.data("vcVideoBg"), (youtubeId = vcExtractYoutubeId(youtubeId)) && ($element.find(".vc_video-bg").remove(), insertYoutubeVideoAsBackground($element, youtubeId)), 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,
                    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(id) {
            if (void 0 === id) return !1;
            id = id.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);
            return null !== id && id[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),
                    perspective = 4 * $this.width() + "px";
                $this.css("perspective", perspective)
            })
        }), "function" != typeof window.vc_setHoverBoxHeight && (window.vc_setHoverBoxHeight = function(hoverBox) {
            hoverBox.each(function() {
                var hoverBoxHeight = jQuery(this),
                    hoverBoxInner = hoverBoxHeight.find(".vc-hoverbox-inner");
                hoverBoxInner.css("min-height", 0);
                var frontHeight = hoverBoxHeight.find(".vc-hoverbox-front-inner").outerHeight(),
                    hoverBoxHeight = hoverBoxHeight.find(".vc-hoverbox-back-inner").outerHeight(),
                    hoverBoxHeight = hoverBoxHeight < frontHeight ? frontHeight : hoverBoxHeight;
                hoverBoxHeight < 250 && (hoverBoxHeight = 250), hoverBoxInner.css("min-height", hoverBoxHeight + "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);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
var gdpr_consent__strict = "true"
var gdpr_consent__thirdparty = "false"
var gdpr_consent__advanced = "false"
var gdpr_consent__cookies = "strict"
