try{var gtm4wp_datalayer_name="dataLayer";var dataLayer=dataLayer||[];}catch(e){} try{console.log('PixelYourSite Free version 7.1.3');}catch(e){} try{ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr(props, pass) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g"+this.cursorChar+"");this.el.after(this.cursor);} if(this.stringsElement){self.strings=[];this.stringsElement.hide();var strings=this.stringsElement.find('p');$.each(strings,function(key,value){self.strings.push($(value).html());});} this.init();},typewrite:function(curString,curStrPos){if(this.stop===true){return;} var humanize=Math.round(Math.random()*(100-30))+this.typeSpeed;var self=this;self.timeout=setTimeout(function(){var charPause=0;var substr=curString.substr(curStrPos);if(substr.charAt(0)==='^'){var skip=1;if(/^\^\d+/.test(substr)){substr=/\d+/.exec(substr)[0];skip+=substr.length;charPause=parseInt(substr);} curString=curString.substring(0,curStrPos)+curString.substring(curStrPos+skip);} if(self.contentType==='html'){var curChar=curString.substr(curStrPos).charAt(0) if(curChar==='<'||curChar==='&'){var tag='';var endTag='';if(curChar==='<'){endTag='>'}else{endTag=';'} while(curString.substr(curStrPos).charAt(0)!==endTag){tag+=curString.substr(curStrPos).charAt(0);curStrPos++;} curStrPos++;tag+=endTag;}} self.timeout=setTimeout(function(){if(curStrPos===curString.length){self.options.onStringTyped(self.arrayPos);if(self.arrayPos===self.strings.length-1){self.options.callback();self.curLoop++;if(self.loop===false||self.curLoop===self.loopCount) return;} self.timeout=setTimeout(function(){self.backspace(curString,curStrPos);},self.backDelay);}else{if(curStrPos===0) self.options.preStringTyped(self.arrayPos);var nextString=curString.substr(0,curStrPos+1);if(self.attr){self.el.attr(self.attr,nextString);}else{if(self.isInput){self.el.val(nextString);}else if(self.contentType==='html'){self.el.html(nextString);}else{self.el.text(nextString);}} curStrPos++;self.typewrite(curString,curStrPos);}},charPause);},humanize);},backspace:function(curString,curStrPos){if(this.stop===true){return;} var humanize=Math.round(Math.random()*(100-30))+this.backSpeed;var self=this;self.timeout=setTimeout(function(){if(self.contentType==='html'){if(curString.substr(curStrPos).charAt(0)==='>'){var tag='';while(curString.substr(curStrPos).charAt(0)!=='<'){tag-=curString.substr(curStrPos).charAt(0);curStrPos--;} curStrPos--;tag+='<';}} var nextString=curString.substr(0,curStrPos);if(self.attr){self.el.attr(self.attr,nextString);}else{if(self.isInput){self.el.val(nextString);}else if(self.contentType==='html'){self.el.html(nextString);}else{self.el.text(nextString);}} if(curStrPos>self.stopNum){curStrPos--;self.backspace(curString,curStrPos);} else if(curStrPos<=self.stopNum){self.arrayPos++;if(self.arrayPos===self.strings.length){self.arrayPos=0;if(self.shuffle)self.sequence=self.shuffleArray(self.sequence);self.init();}else self.typewrite(self.strings[self.sequence[self.arrayPos]],curStrPos);}},humanize);},shuffleArray:function(array){var tmp,current,top=array.length;if(top)while(--top){current=Math.floor(Math.random()*(top+1));tmp=array[current];array[current]=array[top];array[top]=tmp;} return array;},reset:function(){var self=this;clearInterval(self.timeout);var id=this.el.attr('id');this.el.after('') this.el.remove();if(typeof this.cursor!=='undefined'){this.cursor.remove();} self.options.resetCallback();}};$.fn.typed=function(option){return this.each(function(){var $this=$(this),data=$this.data('typed'),options=typeof option=='object'&&option;if(!data)$this.data('typed',(data=new Typed(this,options)));if(typeof option=='string')data[option]();});};$.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:false,backDelay:500,loop:false,loopCount:false,showCursor:true,cursorChar:"|",attr:null,contentType:'html',callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}};}(window.jQuery);}catch(e){} try{jQuery(document).ready(function(jQuery){jQuery('.typed_perview_div').each(function(){var strings=jQuery(this).attr('data-strings').split(';#$#;');var speed=jQuery(this).attr('data-speed');var delay=jQuery(this).attr('data-delay');var back_delay=jQuery(this).attr('data-back-delay');var back_speed=jQuery(this).attr('data-back-speed');var loop=jQuery(this).attr('data-loop');if(loop=='yes') loop=true else loop=false;var cursor=jQuery(this).attr('data-cursor');if(cursor=='yes') cursor=true else cursor=false;var cursor_char=jQuery(this).attr('data-cursor-char');jQuery(this).typed({strings:strings,typeSpeed:parseInt(speed),startDelay:parseInt(delay),backSpeed:parseInt(back_speed),backDelay:parseInt(back_delay),loop:loop,showCursor:cursor,cursorChar:cursor_char,});});});}catch(e){} try{jQuery(function(){jQuery(":input").on("focus",function(){var input=jQuery(this);var inputID=input.attr("id")||"(no input ID)";var inputName=input.attr("name")||"(no input name)";var inputClass=input.attr("class")||"(no input class)";var form=jQuery(this.form);var formID=form.attr("id")||"(no form ID)";var formName=form.attr("name")||"(no form name)";var formClass=form.attr("class")||"(no form class)";window[gtm4wp_datalayer_name].push({'event':'gtm4wp.formElementEnter','inputID':inputID,'inputName':inputName,'inputClass':inputClass,'formID':formID,'formName':formName,'formClass':formClass});}).on("blur",function(){var input=jQuery(this);var inputID=input.attr("id")||"(no input ID)";var inputName=input.attr("name")||"(no input name)";var inputClass=input.attr("class")||"(no input class)";var form=jQuery(this.form);var formID=form.attr("id")||"(no form ID)";var formName=form.attr("name")||"(no form name)";var formClass=form.attr("class")||"(no form class)";window[gtm4wp_datalayer_name].push({'event':'gtm4wp.formElementLeave','inputID':inputID,'inputName':inputName,'inputClass':inputClass,'formID':formID,'formName':formName,'formClass':formClass});});});}catch(e){} try{;}catch(e){} try{Calendly.initBadgeWidget({url:'https://calendly.com/kintegra/30min',text:'Schedule for demo',color:'#248cb6',branding:true});}catch(e){} try{(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-PMPRDRF');}catch(e){} try{!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');}catch(e){} try{fbq('init','247389175832488',[],{"agent":"wordpress-4.9.5-1.7.25"});}catch(e){} try{fbq('track','PageView',[]);}catch(e){} try{console.warn('PixelYourSite: no pixel configured.');}catch(e){} try{!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/29bb1611246f10cea21e6a57f/cbee1f14fa3bfc70970e26bf4.js");}catch(e){} try{var ajaxurl='https://kintegra.io/wp-admin/admin-ajax.php';}catch(e){} try{window.fcSettings={token:"3ecb6b5f-49ec-43ab-88f8-69cdecf6ebfe",host:"https://wchat.freshchat.com",firstName:'Kiwebsite Visitor#'+new Date().getTime(),siteId:"Kintegra Website",config:{headerProperty:{backgroundColor:'#248cb6',borderColor:'transparent #4E6773 transparent transparent !important',},},};}catch(e){} try{"use strict";function cssInit(delay,speed){delay+='ms';speed+='ms';return{'transition-duration':speed,'animation-duration':speed,'transition-timing-function':'ease','transition-delay':delay};} function initAnima(obj){(function($){var animaTimeout=$.fn.getGlobalVar("animaTimeout");var animaTimeout_2=$.fn.getGlobalVar("animaTimeout_2");var da=$(obj).attr("data-anima");var an=$(obj).find(".anima,*[data-anima]");var t=$(obj).attr("data-time");var ta=$(obj).attr("data-target");var tm=$(obj).attr("data-timeline");var tmt=$(obj).attr("data-timeline-time");var tr=$(obj).attr("data-trigger");var len=$(an).length;var default_anima=$.fn.getGlobalVar("default_anima");if(da=="default"&&!isEmpty(default_anima))da=default_anima;if(isEmpty(tmt))tmt=500;if(isEmpty(an))an=obj;$(an).each(function(i){if(!isEmpty($(this).attr("data-anima"))&&i===0){an=obj;return false;}});if(!isEmpty(ta))an=$(ta);if(isEmpty(t))t=500;var time=0,p=1;if(!isEmpty(tm)&&tm==="desc"){time=(len-1)*tmt;p=-1};var cont=null;$(an).each(function(index){var time_now=time;if(index===len-1&&tm==="desc")time_now=0;if(!$(this).hasClass("anima")&&an!=obj&&isEmpty(ta)){cont=this;}else{if(cont!=null&&!$.contains(cont,this)||cont===null){var tobj=this;var pos=$(this).css("position");if(pos!='absolute'&&pos!='fixed')$(this).css("position","relative");var aid=Math.random(5)+"";$(tobj).attr("aid",aid);if(animaTimeout.length>30){animaTimeout.shift();animaTimeout_2.shift();} animaTimeout.push([aid,setTimeout(function(){$(tobj).css(cssInit(0,0));var da_=da;if(!isEmpty($(tobj).attr('class'))&&$(tobj).attr('class').indexOf("anima-")!=-1){var arr_a=$(tobj).attr('class').split(" ");for(var i=0;i0&&op<1)$(this).css("opacity",1);}}});if(o=="hide"){$(an).css(cssInit(0,t)).css("opacity",0);setTimeout(function(){$(an).css("opacity",0);},400);}} $.fn.setGlobalVar(animaTimeout,"animaTimeout");$.fn.setGlobalVar(animaTimeout_2,"animaTimeout_2");}(jQuery));} function setImgPos(n){var t=parseInt($(n).find(".maso img").css("height"),10),i=parseInt($(n).find(".maso").css("height"),10);i0){if(target.indexOf('collapse')===-1){try{jQuery('html, body').stop().animate({'scrollTop':(jtarget.offset().top-150)},900,'swing',function(){if(history.pushState){history.pushState(null,null,target);}else{location.hash=target;}});}catch(e){}}}else{if(target!="#"&&target.length>2&&jQuery(this).closest("header").length)document.location=window.location.protocol+"//"+window.location.host;}});}} function getOptionsString(txt,mainArray){var optionsArr=txt.split(",");for(var i=0;i0||typeof(obj)=='number'||typeof(obj.length)=="undefined")&&obj!=="undefined")return false;else return true;} function correctValue(n){return typeof n=="number"?parseFloat(n):n=="true"?!0:n=="false"?!1:n} function isScrollView(t){var tp=jQuery(window).height()*0.5+jQuery(window).scrollTop();var e=jQuery(t).offset().top;if((e<(tp+300)||((jQuery(window).scrollTop()+jQuery(window).height()==jQuery(document).height()))))return true;else return false;} (function($){var arrFA=[];var firstLoad=true;var animaTimeout=[];var animaTimeout_2=[];var default_anima;(function(n){if(typeof define=="function"&&define.amd)define(n);else if(typeof exports=="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n();t.noConflict=function(){return window.Cookies=i,t}}})(function(){function n(){for(var n=0,r={},t,i;n1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=encodeURIComponent(String(u)),u=u.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,h=0;h$(this).height())$(this).css("height",h+"px");}} $.fn.setMiddleBox=function(target){if(isEmpty(target))target=".box-middle";var t=$(this).find(target);var a=parseInt($(this).outerHeight(),10);var b=parseInt($(t).outerHeight(true),10);if(b992&&iframe)$(t).find(".videobox").css("height","130%");var vidH=$(obj).height();var vidW=$(obj).width();var proportion=cH/vidH;var newWidth=vidW*proportion;if(newWidth/vidW>1&&($(window).width()0){if(typeof window["jQuery"]["fn"][functionName]==="function"||typeof window[functionName]==="function"){myfunction();}else{timer=setInterval(function(){if(typeof window["jQuery"]["fn"][functionName]==="function"||typeof window[functionName]==="function"){myfunction();clearInterval(timer);}},300);}}} $.fn.getGlobalVar=function(name){return eval(name);};$.fn.setGlobalVar=function(value,name){window[name]=value;};$.fn.renderLoadedImgs=function(){if($.isFunction($.fn.imagesLoaded)){var isIsotope=false;var $isotope;var imgLoad=imagesLoaded($(this));if($(this).hasClass("maso-box")){isIsotope=true;$isotope=this;} imgLoad.on('progress',function(instance,image){var result=image.isLoaded?'loaded':'broken';var target="a" if($(image.img).closest("ul.slides").length)target=".slides li";if($(image.img).closest(".img-box").length)target=".img-box";if($(image.img).closest(".img-box.thumbnail span img").length)target="span";if($(image.img).closest("figure").length)target="figure";var cont=$(image.img).closest(target);var imgHeight=image.img.clientHeight;var imgWidth=image.img.clientWidth;var colWidth=0;var colHeight=0;if(!isEmpty(cont.get(0))){colWidth=cont.get(0).clientWidth;colHeight=cont.get(0).clientHeight;} if(result=="loaded"){if(isIsotope){$isotope.isotope('layout');var mi=$(image.img).closest('.maso-item');$(mi).css("visibility","visible");$(mi).find("> *").animate({"opacity":1},300);} if(imgHeight>colHeight){$(image.img).css("margin-top","-"+Math.floor(((imgHeight-colHeight)/2))+"px");}else{var proportion=colHeight/imgHeight;var newWidth=imgWidth*proportion;if(newWidth/imgWidth>1){$(image.img).css("max-width",Math.ceil(newWidth)+"px").css("width",Math.ceil(newWidth)+"px");$(image.img).css("margin-left","-"+Math.floor(((newWidth-colWidth)/2))+"px");}}}});}} $.fn.initPagination=function(){var opt=$(this).attr("data-options");var a=$(this).attr("data-pagination-anima");var p=parseInt($(this).attr("data-page-items"),10);var c=$(this).closest(".maso-list");var t=$(c).find(".maso-box");var items=t.isotope('getItemElements');var n=$(items).length;var type="";if($(this).hasClass('load-more-maso'))type='load-more';if($(this).hasClass('pagination-maso'))type='pagination';for(var i=p;i First",last:"Last ",next:"Next ",prev:" Previous",onPageClick:function(event,page){t.isotope('remove',t.isotope('getItemElements'));for(var i=(p*(page-1));i<(p*(page));i++){t.isotope('insert',items[i]);} t.isotope('layout');if(!isEmpty(opt)&&opt.indexOf("scrollTop:true")!=-1)$(c).scrollTo();}} if(!isEmpty(opt)){optionsArr=opt.split(",");options=getOptionsString(opt,options);} $(this).twbsPagination(options);} if(type=='load-more'){var tl=this;$(tl).on("click",function(index){loadMoreMaso(this);});if(!isEmpty(opt)&&opt.indexOf("lazyLoad:true")!=-1){$(window).scroll(function(){if($(window).scrollTop()+$(window).height()==$(document).height()){if($.fn.getGlobalVar("firstLoad"))setTimeout(function(){loadMoreMaso(tl)},800);else loadMoreMaso(tl);}});}} function loadMoreMaso(obj){var page=$(obj).attr("data-current-page");if(isEmpty(page))page=1;page++;$(obj).attr("data-current-page",page);var s=p*(page-1);var e=p*(page);for(var i=s;i<(p*(page));i++){t.isotope('insert',items[i]);} t.isotope('layout');if($.isFunction($.fn.renderLoadedImgs)){$(t).renderLoadedImgs();} if(e>=n)$(obj).hide(300);}} $.fn.initIsotope=function(){if($.isFunction($.fn.isotope)){var m=$(this).find('.maso-box');var menu=$(this).find(".maso-filters");var optionsString=$(this).attr("data-options");var optionsArr;var options={itemSelector:'.maso-item',percentPosition:true,masonry:{columnWidth:'.maso-item',},getSortData:{number:function(e){return parseInt(jQuery(e).attr('data-sort'),10);}},sortBy:'number'} if(!isEmpty(optionsString)){optionsArr=optionsString.split(",");options=getOptionsString(optionsString,options);} if($(menu).length){var len=$(m).find(".maso-item").length;$(menu).find("li a:not(.maso-filter-auto)").each(function(){var cat=$(this).attr("data-filter");var current_len=$(m).find("."+cat).length;if((current_len==len||current_len==0)&&(cat!="maso-item"&&!isEmpty(cat))){$(this).closest("li").remove();}});} $(m).isotope(options);if($.isFunction($.fn.renderLoadedImgs)){var items=m.isotope('getItemElements');$(m).renderLoadedImgs();} $(this).find(".pagination-maso,.load-more-maso").initPagination();}};$.fn.showPopupBanner=function(){var t=this;var a=$(t).attr("data-popup-anima");if(isEmpty(a))a="fade-in";$(t).css("opacity",0);$(t).showAnima(a);$(t).css("display","block");};$.fn.initMagnificPopup=function(){var obj=this;var optionsString=$(obj).attr("data-options");var trigger=$(obj).attr("data-trigger");if(isEmpty(trigger))trigger="";var a=$(obj).attr("data-lightbox-anima");var href=$(obj).attr("href");if(isEmpty(href))href="";var optionsArr;var options={type:'iframe'} if(!isEmpty(optionsString)){optionsArr=optionsString.split(",");options=getOptionsString(optionsString,options);} if(isEmpty(options['mainClass']))options['mainClass']="";if(trigger=="load"||trigger=="scroll"){var l=$(obj).attr("data-link");var c=$(obj).attr("data-click");if(isEmpty(l)){href="#"+$(this).attr("id");options['mainClass']+=' custom-lightbox';} else href=l;if(!isEmpty(c)){$("body").on("click",".lightbox-on-load",function(){if($(obj).attr("data-click-target")=="_blank")window.open(c);else document.location=c;});}} if($(obj).hasClass("grid-box")||$(obj).hasClass("maso-box")){options["type"]="image";options["delegate"]="a.img-box,.advs-box a:not(.img-box)";options["gallery"]={enabled:1};} if((href.indexOf(".jpg")!=-1)||(href.indexOf(".png")!=-1))options['type']='image';if(href.indexOf("#")==0){options['type']='inline';options['mainClass']+=' box-inline';options['closeBtnInside']=0;} options["callbacks"]={open:function(){var mfp_cnt=$('.mfp-content');if(!isEmpty(a)){$(mfp_cnt).showAnima(a);$(mfp_cnt).css("opacity",0);}else{if((!isEmpty(optionsString))&&optionsString.indexOf("anima:")!=-1){$(mfp_cnt).showAnima(options['anima']);$(mfp_cnt).css("opacity",0);}} if(href.indexOf("#")==0){$(href).css("display","block");} if($.isFunction($.fn.initFlexSlider)){var i=0;$(mfp_cnt).find(".flexslider").each(function(){$(this).initFlexSlider();i++;});if(i)$(window).trigger('resize').trigger('scroll');} var gm=$(mfp_cnt).find(".google-map");if($.isFunction($.fn.googleMap)&&$(gm).length)$(gm).googleMap();},change:function(item){var h=this.content;$('.mfp-container').removeClass("active");setTimeout(function(){$('.mfp-container').addClass("active");},500);if($.isFunction($.fn.initFlexSlider)){setTimeout(function(){var i=0;$(h).find(".flexslider").each(function(){$(this).initFlexSlider();i++;});if(i)$(window).trigger('resize').trigger('scroll');},100);} var gm=$(h).find(".google-map");if($.isFunction($.fn.googleMap)&&$(gm).length)$(gm).googleMap();},close:function(){if($.isFunction($.fn.fullpage)&&$.isFunction($.fn.fullpage.setMouseWheelScrolling))$.fn.fullpage.setMouseWheelScrolling(true);}};if(trigger!="load"&&trigger!="scroll")$(obj).magnificPopup(options);else{if(href.indexOf("#")==0)$(href).css("display","block");options['items']={'src':href} options['mainClass']+=' lightbox-on-load';$.magnificPopup.open(options);}};$.fn.initSlimScroll=function(){var width=$(window).width();function getHeightFullscreen(t,wh){var vh=$(t).attr("data-height");var lh=$(t).attr("data-height-remove");if(isEmpty(vh)||vh=="auto"){var h=wh-$(t)[0].getBoundingClientRect().top-$("footer").outerHeight(),ch=$(t).outerHeight();if(!isEmpty(lh))h=wh-lh;vh=(ch150))h=wh-lh;else h=wh-100;vh=h;} return vh;} if(!$(this).hasClass("scroll-mobile-disabled")||width>993){var optionsString=$(this).attr("data-options");var optionsArr;var options={height:0,size:'4px'} if(!isEmpty(optionsString)){optionsArr=optionsString.split(",");options=getOptionsString(optionsString,options);} if(width<993)options['alwaysVisible']=true;var vh=getHeightFullscreen(this,$(window).height());var lh=$(this).attr("data-height-remove");if(isEmpty(lh))lh=0;vh+="";if((vh.indexOf("#")!=-1)||(vh.indexOf(".")!=-1))vh=""+($(this).closest(vh).height()-lh);options['height']=vh+"px";$(this).slimScroll(options);var gm=$(this).find(".google-map");if($.isFunction($.fn.googleMap)&&$(gm).length)$(gm).googleMap();if(!options['alwaysVisible'])$(".slimScrollBar").hide();if($(window).width()<993)$(this).find(".slimScrollBar").css("height","50px");$(this).on("mousewheel DOMMouseScroll",function(n){n.preventDefault()});$(this).slimScroll().bind('slimscroll',function(e,pos){if(pos!="scrolling"){$(this).removeClass("scroll-pos-top").removeClass("scroll-pos-bottom");} $(this).addClass("scroll-pos-"+pos);});}} $.fn.restartFlexSlider=function(){var t=this;setTimeout(function(){$(t).removeData('flexslider');$(t).find('li.clone').remove();$(t).find('.flex-control-nav').remove();$(t).initFlexSlider();},100);} $.fn.initFlexSlider=function(){function animaSlider(obj){var anima_li=$(obj).find(".flex-active-slide");var anima=$(anima_li).attr("data-slider-anima");if(!isEmpty(anima)){$(anima_li).attr("data-anima",anima);initAnima(anima_li);}} var obj=this;var itemWidth=250;var optionsString=$(obj).attr("data-options");var optionsArr;var options={animation:"slide",slideshowSpeed:6000,controlNav:($(obj).hasClass("thumb"))?"thumbnails":true,start:function(){if(!$(obj).hasClass("advanced-slider")&&$.fn.renderLoadedImgs)$(obj).find(".slides").renderLoadedImgs();if($(obj).hasClass("carousel")){$(obj).find(".slides > li").css("width",itemWidth+"px");} if($(obj).hasClass("thumb")||$(obj).hasClass("nav-middle"))$(obj).find(".flex-prev,.flex-next").css("top",$(obj).find(".slides > li img")[0].clientHeight/2+"px");$(obj).find(".background-page video,.section-bg-video").each(function(){$(this).setVideoBgSize($(window).height(),$(window).width());});$(obj).find(".pos-slider.pos-center").each(function(){$(this).css("margin-left","-"+$(this).width()/2+"px");});$(obj).find(".pos-slider.pos-middle").each(function(){$(this).css("margin-top","-"+$(this).height()/2+"px");});animaSlider(obj);},after:function(){animaSlider(obj);}} if(!isEmpty(optionsString)){optionsArr=optionsString.split(",");options=getOptionsString(optionsString,options);if(optionsString.indexOf("controlNav:false")!=-1)$(this).addClass("no-navs");} if($(obj).hasClass("carousel")){var slides=$(obj).find(".slides > li");var minWidth=110;if($(window).width()<993){minWidth=180;} var itemMargin=5;var numItems=3;var ow=$(obj).outerWidth();if(!isEmpty(optionsString)){for(var i=0;iminWidth)numItems=2;if(ow/3>minWidth)numItems=3;itemWidth=ow/numItems;} if(numItems==1)itemMargin=0;itemWidth=itemWidth+itemMargin/numItems;itemWidth=itemWidth.toFixed(1);minWidth=itemWidth;options["itemWidth"]=itemWidth;options["itemMargin"]=itemMargin;var m=Math.ceil(slides.length/numItems);options["move"]=(m>numItems)?numItems:m;if(slides.length0){$(slides).css("padding-right",itemMargin+"px");}} var slider_anima=$("[data-slider-anima] .anima");$(slider_anima).each(function(){$(this).css("opacity",0);});$(obj).flexslider(options);} $(document).ready(function(){var wh=$(window).width();var hh=$(window).height();var device_screen_size;var cache;if(wh<993)device_screen_size="device-xs";if(wh>992&&wh<1200)device_screen_size="device-m";if(wh>1200)device_screen_size="device-l";$("body").addClass(device_screen_size);cache=$(".background-page video,.section-bg-video,.header-video");$(cache).each(function(){$(this).setVideoBgSize(hh,wh);});if(wh<992&&$(".section-bg-video,.header-video").length){setInterval(function(){cache=$(".background-page video,.section-bg-video");$(cache).each(function(){$(this).setVideoBgSize();});},600);} $("body").on("click","[data-social]",function(){var a=$(this).attr("data-social");var link=$(this).attr("data-social-url");var purl=link;if(isEmpty(link))purl=window.location.href;var url='https://www.facebook.com/sharer/sharer.php?u='+purl;if(a=='share-twitter'){url='https://twitter.com/intent/tweet?text='+$('meta[name=description]').attr("content");if(!isEmpty(link))url='https://twitter.com/intent/tweet?url='+link;} if(a=='share-google')url='https://plus.google.com/share?url='+purl;if(a=='share-linkedin')url='https://www.linkedin.com/shareArticle?url='+purl;openWindow(url);});$(".navbar-toggle").toggleClick(function(){$(this).closest('.navbar').find('.navbar-collapse').expandItem();},function(){$(this).closest('.navbar').find('.navbar-collapse').collapseItem();$(".subline-bar ul").hide();});$("body").on("click","[data-toggle='dropdown']",function(){var href=$(this).attr("href");if(!isEmpty(href)&&href.length>5&&!href.startsWith("#"))document.location=href;});setTimeout(function(){if(isEmpty($("header").attr("data-menu-height")))$("header.fixed-top").css("height",$("header > div").height()+"px");else $("header").css("height",$("header").attr("data-menu-height")+"px");},150);cache=$(".fixed-area");$(cache).each(function(i){$(this).css("width",$(this).outerWidth()+"px");var top=$(this).attr("data-topscroll");if(isEmpty(top))top=$("header div").outerHeight(true);arrFA[i]=[$(this).offset().top,$(this).offset().left,top];$(this).closest(".section-item").css("z-index","4").css("overflow","visible");});cache=$("[data-anima]");$(cache).each(function(){var tr=$(this).attr("data-trigger");if(isEmpty(tr)||tr=="scroll"||tr=="load"){var an=$(this).find(".anima,*[data-anima]");if(isEmpty(an))an=this;var cont=null;var x=0;$(an).each(function(){if(!$(this).hasClass("anima")&&an!=this){cont=this;}else{if(cont!=null&&!$.contains(cont,this)||cont==null){$(this).css("opacity",0);x++;}}});if(x==0)$(this).css("opacity",0);} if(!isEmpty(tr)&&tr=="load")initAnima(this);});$("body").on("click",'*[data-anima]*[data-trigger="click"]',function(){outAnima(this);initAnima(this);});$('*[data-anima]*[data-trigger="hover"]').on("mouseenter",function(){initAnima(this);}).mouseleave(function(){$(this).stop(true,false);outAnima(this);});$("body").on("click",".nav > li",function(){var n=$(this).closest('.nav');$(n).find("li").removeClass("active").removeClass("current-active");$(this).addClass("active current-active");});if(device_screen_size!="device-xs"){cache=$("[data-menu-anima]");$(cache).each(function(){var a=$(this).closest("[data-menu-anima]").attr("data-menu-anima");$(this).find("ul:not(.side-menu):first-child li").on("mouseenter",function(){$(this).find(" > ul, > .mega-menu").css("opacity",0).css("transition-duration","0ms").showAnima(a);});$(this).find(".side-menu li").on("mouseenter",function(){$(this).find(".panel").css("opacity",0).css("transition-duration","0ms").showAnima(a);});if($(this).hasClass("side-menu-lateral")){$(this).find(".side-menu li").on("mouseenter",function(){$(this).find("ul").css("opacity",0).css("transition-duration","0ms").showAnima(a);});}});$("body").on("mouseenter",".nav > li",function(){$(this).closest(".nav").find("li").removeClass("open");});} function hide_mobile_menu(t){var a=$(t).attr("data-menu-anima");if(isEmpty(a))a="fade-in";$(".hamburger-menu,.side-menu-fixed").css("visibility","hidden").css("opacity","0").removeClass(a);$(t).removeClass("active");$("body").css("overflow","");} function show_mobile_menu(t){var a=$(t).attr("data-menu-anima");if(isEmpty(a))a="fade-in";$(".hamburger-menu,.side-menu-fixed").css("visibility","visible").showAnima(a);$(t).addClass("active");if(device_screen_size=="device-xs")$("body").css("overflow","hidden");} function start_vertical_menu(t){cache=$(".side-menu > li");$(cache).each(function(){if(t!==this){$(this).removeClass("active");$(this).find(".collapse").removeClass("in").removeClass("open");}});var ul=$(t).find("ul");if($(ul).length==0){hide_mobile_menu($(".hamburger-button"));}else{if($(t).hasClass("active")){$(t).removeClass("active");$(ul).removeClass("in").removeClass("open");}else{$(t).addClass("active");$(ul).addClass("in").addClass("open");}}} if(device_screen_size=="device-xs"){$("body").on("click",".side-menu > li.panel-item",function(e){if($(e.target).closest(".collapse").length==0)$(this).toggleClass("active");});$("body").on("click",".side-menu > li",function(e){start_vertical_menu(this);});$("header .dropdown-toggle").attr("href","#");} if($(".side-menu-fixed").length){var mh=$(window).height()-($('.side-menu-fixed .top-area').outerHeight(true)+$('.side-menu-fixed .bottom-area').outerHeight(true));$('.side-menu-fixed .sidebar').css('height',mh+"px");$(".side-menu-fixed .scroll-content").attr("data-height",mh);if($.isFunction($.fn.slimScroll)){$("body").on("click",".side-menu li",function(){$(".side-menu-fixed .scroll-content").slimScroll();});}} $("body").on("click",".side-menu .panel-item",function(){$(this).find(".panel").toggleClass("open");});$("body").on("click",".side-menu .panel-item li",function(){$(this).closest(".panel").toggleClass("open");});cache=$(".side-menu");$(cache).each(function(){if($.isFunction($.fn.metisMenu))$(this).metisMenu();});cache=$(".one-page-menu,.navbar-nav.inner,.side-menu:not(#fullpage-menu)");$(cache).each(function(){onePageScroll(this);});if($('.side-menu .panel-item').length){var width=$(".side-menu-fixed").css("width");$('.side-menu .panel-item .panel').css("left",width);} if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1){$("body").on("mouseover","header .dropdown",function(){$(this).find(".dropdown-menu").css("animation","none");});} $(".hamburger-button").toggleClick(function(){show_mobile_menu(this);},function(){if($(this).hasClass("active"))hide_mobile_menu(this);else show_mobile_menu(this);});$('a[href="#"]').on('click',function(e){e.preventDefault();});$("[data-href].lightbox").each(function(){$(this).attr("href",$(this).attr("data-href"));$(this).initMagnificPopup();});$("body").on("click","[data-href]",function(e){var css=$(this).attr("class");if(css.indexOf("scroll-to")==-1&&css.indexOf("lightbox")==-1){var link=$(this).attr("data-href");if(link.indexOf("#")==0){$(link).scrollTo();e.preventDefault();}else{var target=$(this).attr("data-target");if(!isEmpty(target)&&target=="_blank")window.open(link);else document.location=link;}}});$("body").on("click",".img-box .caption",function(){var a=$(this).closest(".img-box").find("a.img-box");var link=$(a).attr("href");$(a).click();if(!isEmpty(link)&&link.indexOf("http")>-1){var t=a.attr("target");if(!isEmpty(t)&&t=="_blank")window.open(link);else document.location=link;}});cache=$(".grid-list[class^='row-'], .grid-list[class*=' row-'],.maso-list[class^='row-'], .maso-list[class*=' row-']");$(cache).each(function(){var css=$.grep(this.className.split(" "),function(v,i){return v.indexOf('row')===0;}).join();$(this).find(".grid-item > *,.grid-item .flexslider li > *").addClass(css);});$(".header-slider,.header-video,.header-title").setMiddleBox(".container > div");$(".full-screen-title .container > div").css("margin-top","");cache=$(".full-screen-size");$(cache).each(function(){var h=$(this).attr("data-sub-height");$(this).sizeFullScreen((isEmpty(h)?null:h));});cache=$(".full-screen-title");$(cache).each(function(){var h=$(this).attr("data-sub-height");$(this).titleFullScreen((isEmpty(h)?null:h));});cache=$(".box-middle-container");$(cache).each(function(){$(this).setMiddleBox();});$(".social-group-button .social-button").toggleClick(function(){var t=$(this).closest(".social-group-button");$(t).find(".social-group").css("display","block");$(t).find(".social-group i").showAnima("fade-left");},function(){var t=$(this).closest(".social-group-button");$(t).find(".social-group").css("display","none");$(t).find(".social-group i").css("opacity","0");});if(device_screen_size!="device-xs"){cache=$(".section-two-blocks .content");$(cache).each(function(){var t=this;setTimeout(function(){var h=$(t).outerHeight();var cnt=$(t).closest(".section-two-blocks");if(isEmpty($(cnt).attr("data-parallax")))$(cnt).css("height",h);$(cnt.find(".row > div:first-child")).renderLoadedImgs();},300);});} if($("#wpadminbar").length){if($("header").hasClass("fixed-top"))$("header > .navbar").css("margin-top","32px");if($("header").hasClass("side-menu-header"))$("header .side-menu-fixed,header .navbar-fixed-top").css("margin-top","32px");} cache=$("header a");$(cache).each(function(){if($(this).attr("href")==window.location.href){if($(this).closest(".dropdown-menu").length){$(this).closest(".dropdown.multi-level:not(.dropdown-submenu),.dropdown.mega-dropdown").addClass("active");}else{$(this).closest("li").addClass("active");}}});cache=$("[data-video-youtube]");$(cache).each(function(){var id=$(this).attr("data-video-youtube");if(id.indexOf("http:")!=-1||id.indexOf("www.you")!=-1||id.indexOf("youtu.be")!=-1){if(id.indexOf("?v=")!=-1)id=id.substring(id.indexOf("v=")+2);if(id.indexOf("youtu.be")!=-1)id=id.substring(id.lastIndexOf("/")+1);} var vq=$(this).attr("data-video-quality");var pars="";if(!isEmpty(vq)){if(vq=="hc-hd")pars+="&vq=hd1080";} $(this).html('');});if($(".background-page iframe").length){$(".background-page iframe").css("height",$(window).height()+300+"px").css("width",$(window).width()+300+"px").css("margin-left","-150px");} $(".btn-search").toggleClick(function(){$(this).closest(".search-box-menu").find(".search-box").css("opacity",0).css("display","block").showAnima("fade-bottom");$(this).find("span").attr("class","fa fa-close");},function(){$(this).closest(".search-box-menu").find(".search-box").css("display","none");$(this).find("span").attr("class","fa fa-search");});function showSublineMenu(item){var p=$(item).closest("header");var t=$(p).find(".subline-bar ul:eq("+$(item).index()+")");$(p).find(".subline-bar ul").css("display","none");$(t).css("opacity","0").css("display","block").animate({"opacity":1},300);} $(".subline-menu > li").mouseover(function(){showSublineMenu(this);});$(".subline-bar").on("mouseleave",function(){$(this).find("ul").css("display","none");});if($("header").hasClass("fixed-top"))$(".subline-bar").css("margin-top",$("header").height()+"px");$(".navbar-mini .form-control").focusin(function(){$(this).toggleClass("focus");});$(".navbar-mini .form-control").focusout(function(){$(this).toggleClass("focus");});setTimeout(function(){$(window).scroll();},50);$("body").on("click",".scroll-top",function(){$("html, body").stop().animate({scrollTop:0},'500','swing');});$("body").on("click",".scroll-to",function(e){var t=$(this).attr("data-scroll-to");if(isEmpty(t))t=$(this).attr("href");if(isEmpty(t))t=$(this).attr("data-href");try{$(t).scrollTo();}catch(e){} if(t.indexOf("#")==0&&($(this).hasClass("btn")||$(this).hasClass("btn-text")))e.preventDefault();});$('#preloader').fadeOut(300);var cnt_title=$(".header-slider .container,.header-video .container,.header-title .container,.header-animation .container");var parallax_title=$(".header-parallax");var fixed_area=$(".fixed-area");var data_anima=$("*[data-anima]");var old_scroll=0;var scroll_1=$(".scroll-hide");var scroll_2=$(".scroll-change");var scroll_3=$(".scroll-show");var scroll_4=$(".menu-transparent");var scroll_5=$(".scroll-top-mobile");var scroll_6=$(".scroll-show-mobile");var scroll_7=$(".footer-parallax");var scroll_8=$('header.scroll-change .navbar-brand');var scroll_len=$(".fp-enabled").length;$(window).scroll(function(){var po=window.pageYOffset;$(cnt_title).css("margin-top",po/2).css("opacity",(100/po<1)?(100/po):1);var scroll=$(window).scrollTop();var go=true;var dh=$(document).height();if($(parallax_title).length){if(po>$(window).outerHeight())$(parallax_title).css("visibility","hidden");else $(parallax_title).css("visibility","visible");$(parallax_title).find(".layer-parallax").css("margin-top",-1*po/2);} $(fixed_area).each(function(i){if(arrFA.length&&scroll>arrFA[i][0]){$(this).css("top",arrFA[i][2]+"px").css("left",arrFA[i][1]+"px").css("position","fixed").addClass("active");}else $(this).css("top","").css("position","").css("left","").removeClass("active");var _bottom=$(this).attr("data-bottom");if(!isEmpty(_bottom)){if(scroll+hh>dh-_bottom){if(old_scrollscroll){$(this).clearQueue();$(this).css("margin-top","")}}}});if(scroll>100&&go){go=false;$(scroll_1).addClass('hidden');$(scroll_2).addClass("scroll-css");$(scroll_3).addClass('showed');$(scroll_4).removeClass("bg-transparent");$(scroll_5).css("opacity",1);if(device_screen_size=="device-xs")$(scroll_6).removeClass('hidden');$(scroll_8).hide().show(0);if(scroll+hh>(dh-hh)){$(scroll_7).css("opacity",1);}else $(scroll_7).css("opacity",0);} if(scroll<100){go=true;$(scroll_1).removeClass("hidden");if(!scroll_len)$(scroll_2).removeClass("scroll-css");$(scroll_3).removeClass('showed');$(scroll_4).addClass("bg-transparent");$(scroll_5).css("opacity",0);$(scroll_8).hide().show(0);} $(data_anima).each(function(){var tr=$(this).attr("data-trigger");if(isEmpty(tr)||tr=="scroll"){if(isScrollView(this)){if(!isEmpty($(this).attr("data-anima")))initAnima(this);$(this).attr("data-anima","");}}});old_scroll=scroll;});populateShoppingCart();function populateShoppingCart(){if($("meta[content='wordpress']").length&&$(".shop-menu-cnt").length){jQuery.ajax({method:"POST",url:ajax_url,data:{action:'hc_get_wc_cart_items'}}).done(function(response){if(!isEmpty(response)&&response.length>10){var arr=JSON.parse(response);if(arr.length>0){var shop_menu=$(".shop-menu-cnt");var currency=$(shop_menu).find(".cart-total").attr("data-currency");var total=0;var html="";for(var i=0;i
'+arr[i]["title"]+'
'+arr[i]["quantity"]+' x '+currency+""+arr[i]["price"]+'
';} $(shop_menu).find(".shop-cart").html(html);$(shop_menu).find(".cart-total span").html(currency+""+total);$(shop_menu).removeClass("shop-menu-empty");$(shop_menu).find("i").html(''+arr.length+'');}}});}} $("body").on("click",".ajax_add_to_cart,.product-remove a",function(){setTimeout(function(){populateShoppingCart();},2000);});$(".img-box").executeFunction("imagesLoaded",function(){$(".img-box").each(function(){$(this).renderLoadedImgs();});});$(".maso-list").executeFunction("isotope",function(){setTimeout(function(){$.fn.setGlobalVar(false,"firstLoad");},1000);$('.maso-list').each(function(){if($(this).attr("data-trigger")!="manual")$(this).initIsotope();});});$("body").on("click",".maso-filters a",function(){var f=$(this).attr('data-filter');var t=$(this).closest(".maso-list");if(!isEmpty(f))$(t).find('.maso-box').isotope({filter:"."+$(this).attr('data-filter')});var lm=$(t).find('.load-more-maso');if(lm.length){setTimeout(function(){var i=0;var num=parseInt($(lm).attr("data-page-items"),10);$(t).find('.maso-box .maso-item').each(function(){if($(this).attr("style").indexOf("display: none")==-1)i++;});if(i");}else{t.isotope({sortAscending:true});$(this).attr("data-sort","asc");$(this).html("data-sort");$(this).html("");}});$(".maso-item .advs-box").each(function(){$(this).css("visibility","visible").css("opacity","1");$(this).find("> *").animate({"opacity":1},300);});$(".bootgrid-table").executeFunction("bootgrid",function(){$(".bootgrid-table").each(function(){var optionsString=$(this).attr("data-options");var optionsArr;var options={caseSensitive:false,formatters:{"image":function(column,row){var val=row[column.id];var img,thumb;if(val.split(",").length>1){img=val.split(",")[0];thumb=val.split(",")[1];}else img=thumb=val;return'';},"button":function(column,row){var val=row[column.id];return''+val.split(",")[0]+'';},"link":function(column,row){var val=row[column.id];return''+val.split(",")[0]+'';},"link-icon":function(column,row){var val=row[column.id];return'';}}} if(!isEmpty(optionsString)){optionsArr=optionsString.split(",");options=getOptionsString(optionsString,options);} $(this).bootgrid(options).on("loaded.rs.jquery.bootgrid",function(e){if($.isFunction($.fn.magnificPopup)){$(this).find('a.lightbox').magnificPopup({type:'image'});}});});});$(".coverflow-slider").executeFunction("flipster",function(){$(".coverflow-slider").each(function(){if($(this).attr("data-trigger")!="manual"){var w=$(this).attr("data-width");var wm=$(this).attr("data-mobile-width");if($(window).width()<768&&!isEmpty(wm))w=wm;var options={};var opt=$(this).attr("data-options");if(!isEmpty(opt)){options=getOptionsString(opt,options);} if(!isEmpty(w))$(this).find("ul > li").css("width",w+"%");$(this).flipster(options);}});});$("body").on("click",".coverflow-slider .coverflow-lightbox",function(){var p=$(this).closest(".flip-item");if($(p).hasClass("flip-current")){$.magnificPopup.open({items:{src:$(this).attr("href")},type:($(this).hasClass("mfp-iframe"))?'iframe':'image'});e.preventDefault();}});$(".grid-list.gallery .grid-box,.maso-list.gallery .maso-box, .lightbox,.box-lightbox,.popup-banner,.popup-trigger,.lightbox-trigger,.woocommerce-product-gallery__image a").executeFunction("magnificPopup",function(){$('.grid-list.gallery .grid-box,.maso-list.gallery .maso-box,.lightbox,.woocommerce-product-gallery__image a').each(function(){$(this).initMagnificPopup();});$('*[data-trigger="load"].popup-banner').each(function(){var e=$(this).attr("data-expire");if(!isEmpty(e)&&e>0){var id=$(this).attr("id");if(isEmpty(Cookies.get(id))){$(this).showPopupBanner();Cookies.set(id,'expiration-cookie',{expire:e});}}else $(this).showPopupBanner();});$('.popup-trigger').on("click",function(){$($(this).attr("href")).showPopupBanner();});$('.popup-banner [data-click]').each(function(){var t=this;var c=$(t).attr("data-click");if(!isEmpty(c)){$("body").on("click",$(t).attr("data-click-trigger"),function(){if($(t).attr("data-click-target")=="_blank")window.open(c);else document.location=c;});}});$(window).scroll(function(event){$('*[data-trigger="scroll"].popup-trigger').each(function(){if(isScrollView(this)){var t=$(this).attr("href");var a=$(t).attr("data-popup-anima");if(!isEmpty(a)){$(t).css("opacity",0);$(t).showAnima(a);} $(t).css("display","block");$(this).removeClass("popup-trigger");}});$('*[data-trigger="scroll"].lightbox-trigger').each(function(){if(isScrollView(this)){$($(this).attr("href")).initMagnificPopup();$(this).attr("data-trigger","null");}});});var url=getURLParameter("lightbox");var id=getURLParameter("id");if(!isEmpty(id))id="#"+id+" ";if(!isEmpty(url)){if(url.indexOf("list")>-1){$(id+".grid-box .grid-item:nth-child("+url.replace("list-","")+") .img-box").click();$(id+".maso-box .maso-item:nth-child("+url.replace("list-","")+") .img-box").click();}else{if(url.indexOf("slide")>-1){$(id+".slides > li:nth-child("+url.replace("slide-","")+") .img-box").click();}else{var t=$("#"+url);if($(t).length){if($(t).hasClass(".img-box")||$(t).hasClass(".lightbox"))$(t).click();else{var c=$(t).find(".img-box,.lightbox");if(c.length){$(c).click();}else{if($(t).hasClass("box-lightbox")){$.magnificPopup.open({type:'inline',items:{'src':'#'+url},mainClass:'lightbox-on-load'});}}}}}}}});$("body").on("click",".popup-close",function(){$(this).closest(".popup-banner").hide();});$('[data-trigger="load"].box-lightbox').each(function(){var e=$(this).attr("data-expire");if(!isEmpty(e)&&e>0){var id=$(this).attr("id");if(isEmpty(Cookies.get(id))){$(this).initMagnificPopup();Cookies.set(id,'expiration-cookie',{expire:e});}}else $(this).initMagnificPopup();});$(".scroll-content").executeFunction("slimScroll",function(){$(".scroll-content").each(function(){$(this).initSlimScroll();});});$(".section-bg-animation,.header-animation").executeFunction("pan",function(){$(".header-animation .overlay.center").each(function(){$(this).css("margin-left","-"+$(this).width()/2+"px");});var overlay=$(".section-bg-animation,.header-animation").find("img.overlay");$('#anima-layer-a').pan({fps:30,speed:0.7,dir:'left',depth:30});$('#anima-layer-b').pan({fps:30,speed:1.2,dir:'left',depth:70});$(window).scroll(function(){var po=window.pageYOffset;$(overlay).css("opacity",(100/po<1)?(100/po):1);});});$("[data-parallax]").executeFunction("parallax",function(){$("[data-parallax]").each(function(){var bleed_=$(this).attr("data-bleed");var pos=$(this).attr("data-position");if(isEmpty(bleed_))bleed_=70;if(isEmpty(pos))pos="center";$(this).parallax({bleed:bleed_,positionY:pos});});$(".section-bg-image,.section-bg-animation,[data-parallax].header-title").each(function(index){var ken="";if($(this).hasClass("ken-burn"))ken="ken-burn";if($(this).hasClass("ken-burn-out"))ken="ken-burn-out";if($(this).hasClass("ken-burn-center"))ken="ken-burn-center";if($(this).hasClass("parallax-side"))ken+=" parallax-side-cnt";if(ken.length>0){setTimeout(function(){$(".parallax-mirror:eq("+(index-1)+")").addClass(ken);},100)}});var timerVar;var times=0;var isFP=$("html").hasClass("fp-enabled");timerVar=self.setInterval(function(){if(times>30){clearInterval(timerVar);}else{if(!isFP)$(window).trigger('resize').trigger('scroll');} times=times+1;},100);if($(".section-bg-animation,.header-animation").length){var c=$(".section-bg-animation,.header-animation");var lays=$(c).find(".anima-layer");$(window).scroll(function(){var po=window.pageYOffset-(c.offset().top-c.getHeight()/4);$(lays).css("margin-top",po/1.5);});} if($("[data-parallax]").length){setInterval(function(){$(window).trigger('resize').trigger('scroll');},400);}});$(".flexslider").executeFunction("flexslider",function(){$('.flexslider.slider,.flexslider.carousel').each(function(){if($(this).attr("data-trigger")!="manual")$(this).initFlexSlider();});});});}(jQuery));}catch(e){} try{var ajax_url='https://kintegra.io/wp-admin/admin-ajax.php';}catch(e){} try{ if(typeof jQuery==='undefined'){ throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($){ 'use strict'; var version=$.fn.jquery.split(' ')[0].split('.') if((version[0] < 2&&version[1] < 9)||(version[0]==1&&version[1]==9&&version[2] < 1)){ throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher') }}(jQuery); +function ($){ 'use strict'; var Button=function (element, options){ this.$element=$(element) this.options=$.extend({}, Button.DEFAULTS, options) this.isLoading=false } Button.VERSION='3.3.5' Button.DEFAULTS={ loadingText: 'loading...' } Button.prototype.setState=function (state){ var d='disabled' var $el=this.$element var val=$el.is('input') ? 'val':'html' var data=$el.data() state +='Text' if(data.resetText==null) $el.data('resetText', $el[val]()) setTimeout($.proxy(function (){ $el[val](data[state]==null ? this.options[state]:data[state]) if(state=='loadingText'){ this.isLoading=true $el.addClass(d).attr(d, d) }else if(this.isLoading){ this.isLoading=false $el.removeClass(d).removeAttr(d) }}, this), 0) } Button.prototype.toggle=function (){ var changed=true var $parent=this.$element.closest('[data-toggle="buttons"]') if($parent.length){ var $input=this.$element.find('input') if($input.prop('type')=='radio'){ if($input.prop('checked')) changed=false $parent.find('.active').removeClass('active') this.$element.addClass('active') }else if($input.prop('type')=='checkbox'){ if(($input.prop('checked'))!==this.$element.hasClass('active')) changed=false this.$element.toggleClass('active') } $input.prop('checked', this.$element.hasClass('active')) if(changed) $input.trigger('change') }else{ this.$element.attr('aria-pressed', !this.$element.hasClass('active')) this.$element.toggleClass('active') }} function Plugin(option){ return this.each(function (){ var $this=$(this) var data=$this.data('bs.button') var options=typeof option=='object'&&option if(!data) $this.data('bs.button', (data=new Button(this, options))) if(option=='toggle') data.toggle() else if(option) data.setState(option) }) } var old=$.fn.button $.fn.button=Plugin $.fn.button.Constructor=Button $.fn.button.noConflict=function (){ $.fn.button=old return this } $(document) .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e){ var $btn=$(e.target) if(!$btn.hasClass('btn')) $btn=$btn.closest('.btn') Plugin.call($btn, 'toggle') if(!($(e.target).is('input[type="radio"]')||$(e.target).is('input[type="checkbox"]'))) e.preventDefault() }) .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e){ $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) }) }(jQuery); +function ($){ 'use strict'; var backdrop='.dropdown-backdrop' var toggle='[data-toggle="dropdown"]' var Dropdown=function (element){ $(element).on('click.bs.dropdown', this.toggle) } Dropdown.VERSION='3.3.5' function getParent($this){ var selector=$this.attr('data-target') if(!selector){ selector=$this.attr('href') selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/, '') } var $parent=selector&&$(selector) return $parent&&$parent.length ? $parent:$this.parent() } function clearMenus(e){ if(e&&e.which===3) return $(backdrop).remove() $(toggle).each(function (){ var $this=$(this) var $parent=getParent($this) var relatedTarget={ relatedTarget: this } if(!$parent.hasClass('open')) return if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0], e.target)) return $parent.trigger(e=$.Event('hide.bs.dropdown', relatedTarget)) if(e.isDefaultPrevented()) return $this.attr('aria-expanded', 'false') $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget) }) } Dropdown.prototype.toggle=function (e){ var $this=$(this) if($this.is('.disabled, :disabled')) return var $parent=getParent($this) var isActive=$parent.hasClass('open') clearMenus() if(!isActive){ if('ontouchstart' in document.documentElement&&!$parent.closest('.navbar-nav').length){ $(document.createElement('div')) .addClass('dropdown-backdrop') .insertAfter($(this)) .on('click', clearMenus) } var relatedTarget={ relatedTarget: this } $parent.trigger(e=$.Event('show.bs.dropdown', relatedTarget)) if(e.isDefaultPrevented()) return $this .trigger('focus') .attr('aria-expanded', 'true') $parent .toggleClass('open') .trigger('shown.bs.dropdown', relatedTarget) } return false; } Dropdown.prototype.keydown=function (e){ if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName)) return var $this=$(this) e.preventDefault() e.stopPropagation() if($this.is('.disabled, :disabled')) return var $parent=getParent($this) var isActive=$parent.hasClass('open') if(!isActive&&e.which!=27||isActive&&e.which==27){ if(e.which==27) $parent.find(toggle).trigger('focus') return $this.trigger('click') } var desc=' li:not(.disabled):visible a' var $items=$parent.find('.dropdown-menu' + desc) if(!$items.length) return var index=$items.index(e.target) if(e.which==38&&index > 0) index-- if(e.which==40&&index < $items.length - 1) index++ if(!~index) index=0 $items.eq(index).trigger('focus') } function Plugin(option){ return this.each(function (){ var $this=$(this) var data=$this.data('bs.dropdown') if(!data) $this.data('bs.dropdown', (data=new Dropdown(this))) if(typeof option=='string') data[option].call($this) }) } var old=$.fn.dropdown $.fn.dropdown=Plugin $.fn.dropdown.Constructor=Dropdown $.fn.dropdown.noConflict=function (){ $.fn.dropdown=old return this } $(document) .on('click.bs.dropdown.data-api', clearMenus) .on('click.bs.dropdown.data-api', '.dropdown form', function (e){ e.stopPropagation() }) .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) }(jQuery); +function ($){ 'use strict'; function ScrollSpy(element, options){ this.$body=$(document.body) this.$scrollElement=$(element).is(document.body) ? $(window):$(element) this.options=$.extend({}, ScrollSpy.DEFAULTS, options) this.selector=(this.options.target||'') + ' a' this.offsets=[] this.targets=[] this.activeTarget=null this.scrollHeight=0 this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) this.refresh() this.process() } ScrollSpy.VERSION='3.3.5' ScrollSpy.DEFAULTS={ offset: 10 } ScrollSpy.prototype.getScrollHeight=function (){ return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) } ScrollSpy.prototype.refresh=function (){ var that=this var offsetMethod='offset' var offsetBase=0 this.offsets=[] this.targets=[] this.scrollHeight=this.getScrollHeight() if(!$.isWindow(this.$scrollElement[0])){ offsetMethod='position' offsetBase=this.$scrollElement.scrollTop() } this.$body .find(this.selector) .map(function (){ var $el=$(this) var href=$el.data('target')||$el.attr('href') var $href=/^#./.test(href)&&$(href) return ($href && $href.length && $href.is(':visible') && [[$href[offsetMethod]().top + offsetBase, href]])||null }) .sort(function (a, b){ return a[0] - b[0] }) .each(function (){ that.offsets.push(this[0]) that.targets.push(this[1]) }) } ScrollSpy.prototype.process=function (){ var scrollTop=this.$scrollElement.scrollTop() + this.options.offset var scrollHeight=this.getScrollHeight() var maxScroll=this.options.offset + scrollHeight - this.$scrollElement.height() var offsets=this.offsets var targets=this.targets var activeTarget=this.activeTarget var i if(this.scrollHeight!=scrollHeight){ this.refresh() } if(scrollTop >=maxScroll){ return activeTarget!=(i=targets[targets.length - 1])&&this.activate(i) } if(activeTarget&&scrollTop < offsets[0]){ this.activeTarget=null return this.clear() } for (i=offsets.length; i--;){ activeTarget!=targets[i] && scrollTop >=offsets[i] && (offsets[i + 1]===undefined||scrollTop < offsets[i + 1]) && this.activate(targets[i]) }} ScrollSpy.prototype.activate=function (target){ this.activeTarget=target this.clear() var selector=this.selector + '[data-target="' + target + '"],' + this.selector + '[href="' + target + '"]' var active=$(selector) .parents('li') .addClass('active') if(active.parent('.dropdown-menu').length){ active=active .closest('li.dropdown') .addClass('active') } active.trigger('activate.bs.scrollspy') } ScrollSpy.prototype.clear=function (){ $(this.selector) .parentsUntil(this.options.target, '.active') .removeClass('active') } function Plugin(option){ return this.each(function (){ var $this=$(this) var data=$this.data('bs.scrollspy') var options=typeof option=='object'&&option if(!data) $this.data('bs.scrollspy', (data=new ScrollSpy(this, options))) if(typeof option=='string') data[option]() }) } var old=$.fn.scrollspy $.fn.scrollspy=Plugin $.fn.scrollspy.Constructor=ScrollSpy $.fn.scrollspy.noConflict=function (){ $.fn.scrollspy=old return this } $(window).on('load.bs.scrollspy.data-api', function (){ $('[data-spy="scroll"]').each(function (){ var $spy=$(this) Plugin.call($spy, $spy.data()) }) }) }(jQuery); +function ($){ 'use strict'; function transitionEnd(){ var el=document.createElement('bootstrap') var transEndEventNames={ WebkitTransition:'webkitTransitionEnd', MozTransition:'transitionend', OTransition:'oTransitionEnd otransitionend', transition:'transitionend' } for (var name in transEndEventNames){ if(el.style[name]!==undefined){ return { end: transEndEventNames[name] }} } return false } $.fn.emulateTransitionEnd=function (duration){ var called=false var $el=this $(this).one('bsTransitionEnd', function (){ called=true }) var callback=function (){ if(!called) $($el).trigger($.support.transition.end) } setTimeout(callback, duration) return this } $(function (){ $.support.transition=transitionEnd() if(!$.support.transition) return $.event.special.bsTransitionEnd={ bindType: $.support.transition.end, delegateType: $.support.transition.end, handle: function (e){ if($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) }} }) }(jQuery);}catch(e){} try{(function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b=!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p/g,"
");html=html.replace(/!--\?/g,"\?");html=html.replace(/\?-->/g,"?>");$(this).html(html);});window.prettyPrint&&prettyPrint()})}(window.jQuery);}catch(e){} try{"use strict"; !function (){ function e(){ z.keyboardSupport&&f("keydown", a) } function t(){ if(!A&&document.body){ A = !0; var t=document.body, o=document.documentElement, n=window.innerHeight, r=t.scrollHeight; if(B=document.compatMode.indexOf("CSS") >=0 ? o:t, D=t, e(), top!=self) X = !0; else if(r > n&&(t.offsetHeight <=n||o.offsetHeight <=n)){ var a=document.createElement("div"); a.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:" + B.scrollHeight + "px", document.body.appendChild(a); var i; T=function (){ i||(i=setTimeout(function (){ L||(a.style.height="0", a.style.height=B.scrollHeight + "px", i=null) }, 500)) }, setTimeout(T, 10), f("resize", T); var l={ attributes: !0, childList: !0, characterData: !1 }; if(M=new V(T), M.observe(t, l), B.offsetHeight <=n){ var c=document.createElement("div"); c.style.clear="both", t.appendChild(c) }} z.fixedBackground||L || (t.style.backgroundAttachment="scroll", o.style.backgroundAttachment="scroll") }} function o(){ M&&M.disconnect(), h(I, r), h("mousedown", i), h("keydown", a), h("resize", T), h("load", t) } function n(e, t, o){ if(p(t, o), 1!=z.accelerationMax){ var n=Date.now(), r=n - R; if(r < z.accelerationDelta){ var a=(1 + 50 / r) / 2; a > 1&&(a=Math.min(a, z.accelerationMax), t *=a, o *=a) } R=Date.now() } if(q.push({ x: t, y: o, lastX: 0 > t ? .99:-.99, lastY: 0 > o ? .99:-.99, start: Date.now() }), !P){ var i=e===document.body, l=function (){ for (var n=Date.now(), r=0, a=0, c=0; c < q.length; c++){ var u=q[c], d=n - u.start, s=d >=z.animationTime, m=s ? 1:d / z.animationTime; z.pulseAlgorithm&&(m=x(m)); var f=u.x * m - u.lastX >> 0, h=u.y * m - u.lastY >> 0; r +=f, a +=h, u.lastX +=f, u.lastY +=h, s&&(q.splice(c, 1), c--) } i ? window.scrollBy(r, a):(r&&(e.scrollLeft +=r), a&&(e.scrollTop +=a)), t||o || (q=[]), q.length ? _(l, e, 1e3 / z.frameRate + 1):P = !1 }; _(l, e, 0), P = !0 }} function r(e){ A||t(); var o=e.target, r=u(o); if(!r||e.defaultPrevented||e.ctrlKey) return !0; if(w(D, "embed")||w(o, "embed")&&/\.pdf/i.test(o.src)||w(D, "object")) return !0; var a=-e.wheelDeltaX||e.deltaX||0, i=-e.wheelDeltaY||e.deltaY||0; return K&&(e.wheelDeltaX&&b(e.wheelDeltaX, 120)&&(a=-120 * (e.wheelDeltaX / Math.abs(e.wheelDeltaX))), e.wheelDeltaY&&b(e.wheelDeltaY, 120)&&(i=-120 * (e.wheelDeltaY / Math.abs(e.wheelDeltaY)))), a||i || (i=-e.wheelDelta||0), 1===e.deltaMode&&(a *=40, i *=40), !z.touchpadSupport&&v(i) ? !0:(Math.abs(a) > 1.2&&(a *=z.stepSize / 120), Math.abs(i) > 1.2&&(i *=z.stepSize / 120), n(r, a, i), e.preventDefault(), void l()) } function a(e){ var t=e.target, o=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==N.spacebar; document.contains(D)||(D=document.activeElement); var r=/^(textarea|select|embed|object)$/i, a=/^(button|submit|radio|checkbox|file|color|image)$/i; if(r.test(t.nodeName)||w(t, "input")&&!a.test(t.type)||w(D, "video")||y(e)||t.isContentEditable||e.defaultPrevented||o) return !0; if((w(t, "button")||w(t, "input")&&a.test(t.type))&&e.keyCode===N.spacebar) return !0; var i, c=0, d=0, s=u(D), m=s.clientHeight; switch (s==document.body&&(m=window.innerHeight), e.keyCode){ case N.up: d=-z.arrowScroll; break; case N.down: d=z.arrowScroll; break; case N.spacebar: i=e.shiftKey ? 1:-1, d=-i * m * .9; break; case N.pageup: d=.9 * -m; break; case N.pagedown: d=.9 * m; break; case N.home: d=-s.scrollTop; break; case N.end: var f=s.scrollHeight - s.scrollTop - m; d=f > 0 ? f + 10:0; break; case N.left: c=-z.arrowScroll; break; case N.right: c=z.arrowScroll; break; default: return !0 } n(s, c, d), e.preventDefault(), l() } function i(e){ D=e.target } function l(){ clearTimeout(E), E=setInterval(function (){ F={}}, 1e3) } function c(e, t){ for (var o=e.length; o--;) F[j(e[o])]=t; return t } function u(e){ var t=[], o=document.body, n=B.scrollHeight; do { var r=F[j(e)]; if(r) return c(t, r); if(t.push(e), n===e.scrollHeight){ var a=s(B)&&s(o), i=a||m(B); if(X&&d(B)||!X&&i) return c(t, $()) }else if(d(e)&&m(e)) return c(t, e) } while (e=e.parentElement) } function d(e){ return e.clientHeight + 10 < e.scrollHeight } function s(e){ var t=getComputedStyle(e, "").getPropertyValue("overflow-y"); return "hidden"!==t } function m(e){ var t=getComputedStyle(e, "").getPropertyValue("overflow-y"); return "scroll"===t||"auto"===t } function f(e, t){ window.addEventListener(e, t, !1) } function h(e, t){ window.removeEventListener(e, t, !1) } function w(e, t){ return (e.nodeName||"").toLowerCase()===t.toLowerCase() } function p(e, t){ e=e > 0 ? 1:-1, t=t > 0 ? 1:-1, (Y.x!==e||Y.y!==t)&&(Y.x=e, Y.y=t, q=[], R=0) } function v(e){ return e ? (O.length||(O=[e, e, e]), e=Math.abs(e), O.push(e), O.shift(), clearTimeout(H), H=setTimeout(function (){ window.localStorage&&(localStorage.SS_deltaBuffer=O.join(",")) }, 1e3), !g(120)&&!g(100)):void 0 } function b(e, t){ return Math.floor(e / t)==e / t } function g(e){ return b(O[0], e)&&b(O[1], e)&&b(O[2], e) } function y(e){ var t=e.target, o = !1; if(-1!=document.URL.indexOf("www.youtube.com/watch")) do if(o=t.classList&&t.classList.contains("html5-video-controls")) break; while (t=t.parentNode); return o } function S(e){ var t, o, n; return e *=z.pulseScale, 1 > e ? t=e - (1 - Math.exp(-e)):(o=Math.exp(-1), e -=1, n=1 - Math.exp(-e), t=o + n * (1 - o)), t * z.pulseNormalize } function x(e){ return e >=1 ? 1:0 >=e ? 0:(1==z.pulseNormalize&&(z.pulseNormalize /=S(1)), S(e)) } function k(e){ for (var t in e) C.hasOwnProperty(t)&&(z[t]=e[t]) } var D, M, T, E, H, C={ frameRate: 150, animationTime: 400, stepSize: 100, pulseAlgorithm: !0, pulseScale: 4, pulseNormalize: 1, accelerationDelta: 10, accelerationMax: 3, keyboardSupport: !0, arrowScroll: 50, touchpadSupport: !1, fixedBackground: !0, excluded: "" }, z=C, L = !1, X = !1, Y={ x: 0, y: 0 }, A = !1, B=document.documentElement, O=[], K=/^Mac/.test(navigator.platform), N={ left: 37, up: 38, right: 39, down: 40, spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 }, q=[], P = !1, R=Date.now(), j=function (){ var e=0; return function (t){ return t.uniqueID||(t.uniqueID=e++) }}(), F={}; window.localStorage&&localStorage.SS_deltaBuffer&&(O=localStorage.SS_deltaBuffer.split(",")); var I, _=function (){ return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function (e, t, o){ window.setTimeout(e, o||1e3 / 60) }}(), V=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver, $=function (){ var e; return function (){ if(!e){ var t=document.createElement("div"); t.style.cssText="height:10000px;width:1px;", document.body.appendChild(t); { var o=document.body.scrollTop; document.documentElement.scrollTop } window.scrollBy(0, 1), e=document.body.scrollTop!=o ? document.body:document.documentElement, window.scrollBy(0, -1), document.body.removeChild(t) } return e }}(), U=window.navigator.userAgent, W=/Edge/.test(U), G=/chrome/i.test(U)&&!W, J=/safari/i.test(U)&&!W, Q=/mobile/i.test(U), Z=(G||J)&&!Q; "onwheel" in document.createElement("div") ? I="wheel":"onmousewheel" in document.createElement("div")&&(I="mousewheel"), I&&Z && (f(I, r), f("mousedown", i), f("load", t)), k.destroy=o, window.SmoothScrollOptions&&k(window.SmoothScrollOptions), "object"==typeof exports ? module.exports=k:window.SmoothScroll=k }();}catch(e){} try{function heateorSssLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}};var heateorSssSharingAjaxUrl='https://kintegra.io/wp-admin/admin-ajax.php',heateorSssCloseIconPath='https://kintegra.io/wp-content/plugins/sassy-social-share/public/../images/close.png',heateorSssPluginIconPath='https://kintegra.io/wp-content/plugins/sassy-social-share/public/../images/logo.png',heateorSssHorizontalSharingCountEnable=1,heateorSssVerticalSharingCountEnable=0,heateorSssSharingOffset=-10;var heateorSssMobileStickySharingEnabled=0;var heateorSssCopyLinkMessage="Link copied.";var heateorSssUrlCountFetched=[],heateorSssSharesText='Shares',heateorSssShareText='Share';function heateorSssPopup(e){window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")};var heateorSssWhatsappShareAPI="web";}catch(e){} try{function heateorSssCallAjax(e){if(typeof jQuery!="undefined"){e()}else{heateorSssGetScript("https://code.jquery.com/jquery-latest.min.js",e)}} function heateorSssGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)} function heateorSssDetermineWhatsappShareAPI(a){if(a)return-1!=navigator.userAgent.indexOf("Mobi")?"api.whatsapp.com":"web.whatsapp.com";var p=jQuery("i.heateorSssWhatsappBackground a").attr("href");return void 0!==p?-1!=navigator.userAgent.indexOf("Mobi")?(jQuery("i.heateorSssWhatsappBackground a").attr("href",p.replace("web.whatsapp.com","api.whatsapp.com")),"api.whatsapp.com"):(jQuery("i.heateorSssWhatsappBackground a").attr("href",p.replace("api.whatsapp.com","web.whatsapp.com")),"web.whatsapp.com"):""} function heateorSssMoreSharingPopup(elem,postUrl,postTitle,twitterTitle){postUrl=encodeURIComponent(postUrl);concate='';var heateorSssMoreSharingServices={facebook:{title:"Facebook",locale:"en-US",redirect_url:"https://www.facebook.com/sharer.php?u="+postUrl+"&t="+postTitle+"&v=3",},twitter:{title:"Twitter",locale:"en-US",redirect_url:"https://twitter.com/intent/tweet?text="+(twitterTitle?twitterTitle:postTitle)+" "+postUrl,},linkedin:{title:"Linkedin",locale:"en-US",redirect_url:"https://www.linkedin.com/shareArticle?mini=true&url="+postUrl+"&title="+postTitle,},pinterest:{title:"Pinterest",locale:"en-US",redirect_url:"https://pinterest.com/pin/create/button/?url="+postUrl+"&media=${media_link}&description="+postTitle,bookmarklet_url:"javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());"},CopyLink:{title:"Copy Link",locale:"en-US",redirect_url:"",bookmarklet_url:""},Diaspora:{title:"Diaspora",locale:"en-US",redirect_url:"https://joindiaspora.com/bookmarklet?url="+postUrl+"&title="+postTitle+"&v=1"},Douban:{title:"Douban",locale:"en-US",redirect_url:"https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel="},Draugiem:{title:"Draugiem",locale:"en-US",redirect_url:"https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle},Facebook_Messenger:{title:"Facebook Messenger",locale:"en-US",redirect_url:"https://www.facebook.com/dialog/send?app_id=1904103319867886&display=popup&link="+postUrl+"&redirect_uri="+postUrl},Google_Classroom:{title:"Google Classroom",locale:"en-US",redirect_url:"https://classroom.google.com/u/0/share?url="+postUrl},Kik:{title:"Kik",locale:"en-US",redirect_url:"https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl},Papaly:{title:"Papaly",locale:"en-US",redirect_url:"https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle},Refind:{title:"Refind",locale:"en-US",redirect_url:"https://refind.com/?url="+postUrl},Skype:{title:"Skype",locale:"en-US",redirect_url:"https://web.skype.com/share?url="+postUrl},SMS:{title:"SMS",locale:"en-US",bookmarklet_url:"sms://?&body="+postTitle+" "+postUrl},Trello:{title:"Trello",locale:"en-US",redirect_url:"https://trello.com/add-card?mode=popup&url="+postUrl+"&name="+postTitle+"&desc="},Viber:{title:"Viber",locale:"en-US",bookmarklet_url:"viber://forward?text="+postTitle+" "+postUrl},Threema:{title:"Threema",locale:"en-US",bookmarklet_url:"threema://compose?text="+postTitle+" "+postUrl},Telegram:{title:"Telegram",locale:"en-US",redirect_url:"https://telegram.me/share/url?url="+postUrl+"&text="+postTitle},email:{title:"Email",locale:"en-US",redirect_url:"mailto:?subject="+postTitle+"&body=Link: "+postUrl,},reddit:{title:"Reddit",locale:"en-US",redirect_url:"http://reddit.com/submit?url="+postUrl+"&title="+postTitle,},float_it:{title:"Float it",locale:"en-US",redirect_url:"http://www.designfloat.com/submit.php?url="+postUrl+"&title="+postTitle,},google_mail:{title:"Google Gmail",locale:"en-US",redirect_url:"https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su="+postTitle+"&body=Link: "+postUrl,},gentlereader:{title:"GentleReader",locale:"en-US",redirect_url:"https://app.gentlereader.com/bookmark?url="+postUrl,},google_bookmarks:{title:"Google Bookmarks",locale:"en-US",redirect_url:"http://www.google.com/bookmarks/mark?op=edit&bkmk="+postUrl+"&title="+postTitle,},digg:{title:"Digg",locale:"en-US",redirect_url:"http://digg.com/submit?phase=2&url="+postUrl+"&title="+postTitle,},printfriendly:{title:"PrintFriendly",locale:"en-US",redirect_url:"http://www.printfriendly.com/print?url="+postUrl,},print:{title:"Print",locale:"en-US",redirect_url:"http://www.printfriendly.com/print?url="+postUrl,},tumblr:{title:"Tumblr",locale:"en-US",redirect_url:"https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl="+postUrl+"&title="+postTitle+"&caption=",bookmarklet_url:"javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s),u=f+p;try{if(!/^(.*\\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0);"},vk:{title:"Vkontakte",locale:"ru",redirect_url:"https://vk.com/share.php?url="+postUrl+"&title="+postTitle,},evernote:{title:"Evernote",locale:"en-US",redirect_url:"https://www.evernote.com/clip.action?url="+postUrl+"&title="+postTitle,bookmarklet_url:"javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();"},amazon_us_wish_list:{title:"Amazon Wish List",locale:"en-US",redirect_url:"http://www.amazon.com/wishlist/add?u="+postUrl+"&t="+postTitle,bookmarklet_url:"javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,x='undefined',u='http://www.amazon.com/gp/wishlist/add';if(typeof s!='object')l.href=u+'?u='+e(l)+'&t='+e(d.title);function g(){if(d.readyState&&d.readyState!='complete'){setTimeout(g,200);}else{if(typeof AUWLBook==x)s.setAttribute('src',u+'.js?loc='+e(l)),d.body.appendChild(s);function f(){(typeof AUWLBook==x)?setTimeout(f,200):AUWLBook.showPopover();}f();}}g();}())"},wordpress_blog:{title:"WordPress",locale:"en-US",redirect_url:"http://www.addtoany.com/ext/wordpress/press_this?linkurl="+postUrl+"&linkname="+postTitle,},whatsapp:{title:"Whatsapp",locale:"en-US",bookmarklet_url:"https://"+heateorSssDetermineWhatsappShareAPI(true)+"/send?text="+postTitle+" "+postUrl,},diigo:{title:"Diigo",locale:"en-US",redirect_url:"http://www.diigo.com/post?url="+postUrl+"&title="+postTitle,},yc_hacker_news:{title:"Hacker News",locale:"en-US",redirect_url:"http://news.ycombinator.com/submitlink?u="+postUrl+"&t="+postTitle,},box_net:{title:"Box.net",locale:"en-US",redirect_url:"https://www.box.net/api/1.0/import?url="+postUrl+"&name="+postTitle+"&import_as=link",},aol_mail:{title:"AOL Mail",locale:"en-US",redirect_url:"http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject="+postTitle+"&body="+postUrl,},yahoo_mail:{title:"Yahoo Mail",locale:"en-US",redirect_url:"http://compose.mail.yahoo.com/?Subject="+postTitle+"&body=Link: "+postUrl,},instapaper:{title:"Instapaper",locale:"en-US",redirect_url:"http://www.instapaper.com/edit?url="+postUrl+"&title="+postTitle,},plurk:{title:"Plurk",locale:"en-US",redirect_url:"http://www.plurk.com/m?content="+postUrl+"&qualifier=shares",},wanelo:{title:"Wanelo",locale:"en-US",redirect_url:"http://wanelo.com/p/post?bookmarklet=&images%5B%5D=&url="+postUrl+"&title="+postTitle+"&price=&shop=",bookmarklet_url:"javascript:void ((function(url){if(!window.waneloBookmarklet){var productURL=encodeURIComponent(url),cacheBuster=Math.floor(Math.random()*1e3),element=document.createElement('script');element.setAttribute('src','//wanelo.com/bookmarklet/3/setup?*='+cacheBuster+'&url='+productURL),element.onload=init,element.setAttribute('type','text/javascript'),document.getElementsByTagName('head')[0].appendChild(element)}else init();function init(){window.waneloBookmarklet()}})(window.location.href))"},aim:{title:"AIM",locale:"en-US",redirect_url:"http://share.aim.com/share/?url="+postUrl+"&title="+postTitle,},viadeo:{title:"Viadeo",locale:"en-US",redirect_url:"http://www.viadeo.com/shareit/share/?url="+postUrl+"&title="+postTitle,},pinboard_in:{title:"Pinboard",locale:"en-US",redirect_url:"http://pinboard.in/add?url="+postUrl+"&title="+postTitle,},blogger_post:{title:"Blogger Post",locale:"en-US",redirect_url:"http://www.blogger.com/blog_this.pyra?t=&u="+postUrl+"&l&n="+postTitle,},typepad_post:{title:"TypePad Post",locale:"en-US",redirect_url:"http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title="+postTitle+"&qp_href="+postUrl+"&qp_text="+postTitle,},buffer:{title:"Buffer",locale:"en-US",redirect_url:"http://bufferapp.com/add?url="+postUrl+"&text="+postTitle,},flipboard:{title:"Flipboard",locale:"en-US",redirect_url:"https://share.flipboard.com/bookmarklet/popout?v=2&url="+postUrl+"&title="+postTitle,},pocket:{title:"Pocket",locale:"en-US",redirect_url:"https://readitlaterlist.com/save?url="+postUrl+"&title="+postTitle,},fark:{title:"Fark",locale:"en-US",redirect_url:"http://cgi.fark.com/cgi/fark/submit.pl?new_url="+postUrl,},fintel:{title:"Fintel",locale:"en-US",redirect_url:"https://fintel.io/submit?url="+postUrl,},yummly:{title:"Yummly",locale:"en-US",redirect_url:"http://www.yummly.com/urb/verify?url="+postUrl+"&title="+postTitle,},app_net:{title:"App.net",locale:"en-US",redirect_url:"https://account.app.net/login/",},balatarin:{title:"Balatarin",locale:"en-US",redirect_url:"https://www.balatarin.com/login",},bibSonomy:{title:"BibSonomy",locale:"en-US",redirect_url:"http://www.bibsonomy.org/login",},Bitty_Browser:{title:"Bitty Browser",locale:"en-US",redirect_url:"http://www.bitty.com/manual/?contenttype=&contentvalue="+postUrl,},Blinklist:{title:"Blinklist",locale:"en-US",redirect_url:"http://blinklist.com/blink?t="+postTitle+"&d=&u="+postUrl,},BlogMarks:{title:"BlogMarks",locale:"en-US",redirect_url:"http://blogmarks.net/my/new.php?mini=1&simple=1&title="+postTitle+"&url="+postUrl,},Bookmarks_fr:{title:"Bookmarks.fr",locale:"en-US",redirect_url:"http://www.bookmarks.fr/Connexion/?action=add&address="+postUrl+"&title="+postTitle,},BuddyMarks:{title:"BuddyMarks",locale:"en-US",redirect_url:"http://buddymarks.com/login.php?bookmark_title="+postTitle+"&bookmark_url="+postUrl+"&bookmark_desc=&bookmark_tags=",},Care2_news:{title:"Care2 News",locale:"en-US",redirect_url:"http://www.care2.com/passport/login.html?promoID=10&pg=http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]="+postTitle+"&share[link_url]="+postUrl+"&share[content]=",},CiteULike:{title:"Cite U Like",locale:"en-US",redirect_url:"http://www.citeulike.org/posturl?url="+postUrl+"&title="+postTitle,},Diary_Ru:{title:"Diary.Ru",locale:"en-US",redirect_url:"http://www.diary.ru/?newpost&title="+postTitle+"&text="+postUrl,},dzone:{title:"DZone",locale:"en-US",redirect_url:"http://www.dzone.com/links/add.html?url="+postUrl+"&title="+postTitle,},Folkd:{title:"Folkd",locale:"en-US",redirect_url:"http://www.folkd.com/page/social-bookmarking.html?addurl="+postUrl,},Hatena:{title:"Hatena",locale:"en-US",redirect_url:"http://b.hatena.ne.jp/bookmarklet?url="+postUrl+"&btitle="+postTitle,},Jamespot:{title:"Jamespot",locale:"en-US",redirect_url:"//my.jamespot.com/",},Kakao:{title:"Kakao",locale:"en-US",redirect_url:"https://story.kakao.com/share?url="+postUrl,},Kindle_It:{title:"Kindle_It",locale:"en-US",redirect_url:"//fivefilters.org/kindle-it/send.php?url="+postUrl,},Known:{title:"Known",locale:"en-US",redirect_url:"https://withknown.com/share/?url="+postUrl+"&title="+postTitle,},Line:{title:"Line",locale:"en-US",redirect_url:"https://social-plugins.line.me/lineit/share?url="+postUrl,},LiveJournal:{title:"LiveJournal",locale:"en-US",redirect_url:"http://www.livejournal.com/update.bml?subject="+postTitle+"&event="+postUrl,},Mail_Ru:{title:"Mail.Ru",locale:"en-US",redirect_url:"https://connect.mail.ru/share?share_url="+postUrl,},Mendeley:{title:"Mendeley",locale:"en-US",redirect_url:"https://www.mendeley.com/sign-in/",},Meneame:{title:"Meneame",locale:"en-US",redirect_url:"https://www.meneame.net/submit.php?url="+postUrl,},MeWe:{title:"MeWe",locale:"en-US",redirect_url:"https://mewe.com/share?link="+postUrl,},Mix:{title:"Mix",locale:"en-US",redirect_url:"https://mix.com/mixit?url="+postUrl,},Mixi:{title:"Mixi",locale:"en-US",redirect_url:"https://mixi.jp/share.pl?mode=login&u="+postUrl,},MySpace:{title:"MySpace",locale:"en-US",redirect_url:"https://myspace.com/post?u="+encodeURIComponent(postUrl)+"&t="+postTitle+"&l=3&c="+postTitle,},Netvouz:{title:"Netvouz",locale:"en-US",redirect_url:"http://www.netvouz.com/action/submitBookmark?url="+postUrl+"&title="+postTitle+"&popup=no&description=",},Odnoklassniki:{title:"Odnoklassniki",locale:"en-US",redirect_url:"https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl="+postUrl+"&st.client_id=-1",},Outlook_com:{title:"Outlook.com",locale:"en-US",redirect_url:"https://mail.live.com/default.aspx?rru=compose?subject="+postTitle+"&body="+postUrl+"&lc=1033&id=64855&mkt=en-us&cbcxt=mai",},Protopage_Bookmarks:{title:"Protopage_Bookmarks",locale:"en-US",redirect_url:"http://www.protopage.com/add-button-site?url="+postUrl+"&label=&type=page",},Pusha:{title:"Pusha",locale:"en-US",redirect_url:"//www.pusha.se/posta?url="+postUrl,},Qzone:{title:"Qzone",locale:"en-US",redirect_url:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+postUrl,},Rediff_MyPage:{title:"Rediff MyPage",locale:"en-US",redirect_url:"//share.rediff.com/bookmark/addbookmark?bookmarkurl="+postUrl+"&title="+postTitle,},Renren:{title:"Renren",locale:"en-US",redirect_url:"//www.connect.renren.com/share/sharer?url="+postUrl+"&title="+postTitle,},Sina_Weibo:{title:"Sina Weibo",locale:"en-US",redirect_url:"//service.weibo.com/share/share.php?url="+postUrl+"&title="+postTitle,},SiteJot:{title:"SiteJot",locale:"en-US",redirect_url:"http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=",},Slashdot:{title:"Slashdot",locale:"en-US",redirect_url:"//slashdot.org/submission?url="+postUrl,},StockTwits:{title:"StockTwits",locale:"en-US",redirect_url:"https://stocktwits.com/widgets/share?body="+postTitle+" "+postUrl,},Svejo:{title:"Svejo",locale:"en-US",redirect_url:"https://svejo.net/story/submit_by_url?url="+postUrl+"&title="+postTitle+"&summary=",},Symbaloo_Feeds:{title:"Symbaloo_Feeds",locale:"en-US",redirect_url:"//www.symbaloo.com/",},Tuenti:{title:"Tuenti",locale:"en-US",redirect_url:"https://www.tuenti.com/share?p=b5dd6602&url="+postUrl,},Twiddla:{title:"Twiddla",locale:"en-US",redirect_url:"//www.twiddla.com/New.aspx?url="+postUrl+"&title="+postTitle,},Webnews:{title:"Webnews",locale:"en-US",redirect_url:"//www.webnews.de/login",},Wykop:{title:"Wykop",locale:"en-US",redirect_url:"//www.wykop.pl/dodaj?url="+postUrl+"&title="+postTitle,},Xing:{title:"Xing",locale:"en-US",redirect_url:"https://www.xing.com/spi/shares/new?cb=0&url="+postUrl,},Yoolink:{title:"Yoolink",locale:"en-US",redirect_url:"//yoolink.to/addorshare?url_value="+postUrl+"&title="+postTitle,}} var heateorSssMoreSharingServicesHtml='
    ';for(var i in heateorSssMoreSharingServices){var tempTitle=heateorSssCapitaliseFirstLetter(heateorSssMoreSharingServices[i].title.replace(/[_. ]/g,""));heateorSssMoreSharingServicesHtml+='
  • '+heateorSssMoreSharingServices[i].title+'
  • ';} heateorSssMoreSharingServicesHtml+=concate;var mainDiv=document.createElement('div');mainDiv.innerHTML=heateorSssMoreSharingServicesHtml;mainDiv.setAttribute('id','heateor_sss_sharing_more_providers');var bgDiv=document.createElement('div');bgDiv.setAttribute('id','heateor_sss_popup_bg');jQuery('body').append(mainDiv).append(bgDiv);document.getElementById('heateor_sss_popup_bg').onclick=document.getElementById('heateor_sss_sharing_popup_close').onclick=function(){mainDiv.parentNode.removeChild(mainDiv);bgDiv.parentNode.removeChild(bgDiv);}} if(heateorSssHorizontalSharingCountEnable||heateorSssVerticalSharingCountEnable){heateorSssLoadEvent(function(){heateorSssCallAjax(function(){heateorSssGetSharingCounts();});});} function heateorSssFilterSharing(val){jQuery('ul.mini li a').each(function(){if(jQuery(this).text().toLowerCase().indexOf(val.toLowerCase())!=-1){jQuery(this).parent().css('display','block');}else{jQuery(this).parent().css('display','none');}});};var heateorSssFacebookTargetUrls=[];function heateorSssGetSharingCounts(){var targetUrls=[];jQuery('.heateor_sss_sharing_container').each(function(){if(typeof jQuery(this).attr('heateor-sss-no-counts')=='undefined'){var currentTargetUrl=jQuery(this).attr('heateor-sss-data-href');if(currentTargetUrl!=null&&jQuery.inArray(currentTargetUrl,heateorSssUrlCountFetched)==-1){targetUrls.push(currentTargetUrl);heateorSssUrlCountFetched.push(currentTargetUrl);}}});if(targetUrls.length==0){return;} jQuery.ajax({type:'GET',dataType:'json',url:heateorSssSharingAjaxUrl,data:{action:'heateor_sss_sharing_count',urls:targetUrls,},success:function(data,textStatus,XMLHttpRequest){if(data.status==1){if(data.facebook){heateorSssFacebookTargetUrls=data.facebook_urls;} for(var i in data.message){var sharingContainers=jQuery("div[heateor-sss-data-href='"+i+"']");jQuery(sharingContainers).each(function(){var totalCount=0;for(var j in data.message[i]){var sharingCount=parseInt(data.message[i][j])||0;var targetElement=jQuery(this).find('.heateor_sss_'+j+'_count');if(jQuery(targetElement).attr('sss_st_count')){sharingCount=parseInt(sharingCount)+parseInt(jQuery(targetElement).attr('sss_st_count'));} totalCount+=parseInt(sharingCount);if(sharingCount<1){continue;} jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility':'visible','display':'block'});if((typeof heateorSssReduceHorizontalSvgWidth!='undefined'&&jQuery(this).hasClass('heateor_sss_horizontal_sharing'))||(typeof heateorSssReduceVerticalSvgWidth!='undefined'&&jQuery(this).hasClass('heateor_sss_vertical_sharing'))){jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float','left');} if((typeof heateorSssReduceHorizontalSvgHeight!='undefined'&&jQuery(this).hasClass('heateor_sss_horizontal_sharing'))||(typeof heateorSssReduceVerticalSvgHeight!='undefined'&&jQuery(this).hasClass('heateor_sss_vertical_sharing'))){jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop','0');}} var totalCountContainer=jQuery(this).find('.heateorSssTCBackground'),totalShares=heateorSssCalculateApproxCount(totalCount);jQuery(totalCountContainer).each(function(){var containerHeight=jQuery(this).css('height');jQuery(this).html('
    '+totalShares+'
    '+(totalCount==0||totalCount>1?heateorSssSharesText:heateorSssShareText)+'
    ').css('visibility','visible');});});} if(heateorSssFacebookTargetUrls.length!=0){heateorSssFetchFacebookShares(heateorSssFacebookTargetUrls);}}}});} function heateorSssFetchFacebookShares(targetUrls){var loopCounter=0;for(var i in targetUrls){for(var j in targetUrls[i]){loopCounter++;heateorSssFBShareJSONCall(targetUrls[i][j],loopCounter,targetUrls[0].length*targetUrls.length,targetUrls[0][j]);}}} function heateorSssFBShareJSONCall(targetUrl,loopCounter,targetUrlsLength,dataHref){jQuery.getJSON('//graph.facebook.com/?id='+targetUrl,function(data){if(data.share&&data.share.share_count>=0){var sharingContainers=jQuery("div[heateor-sss-data-href='"+dataHref+"']");jQuery(sharingContainers).each(function(){var targetElement=jQuery(this).find('.heateor_sss_facebook_count');var facebookBackground=jQuery(this).find('i.heateorSssFacebookBackground');var sharingCount=parseInt(data.share.share_count);if(jQuery(targetElement).attr('sss_st_count')!==undefined){sharingCount+=parseInt(jQuery(targetElement).attr('sss_st_count'));} if(sharingCount>0){if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares')=='undefined'){jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility':'visible','display':'block'});jQuery(facebookBackground).attr('heateor-sss-fb-shares',sharingCount);}else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares')!='undefined'){var tempShareCount=parseInt(jQuery(facebookBackground).attr('heateor-sss-fb-shares'));jQuery(facebookBackground).attr('heateor-sss-fb-shares',sharingCount+tempShareCount);jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount+tempShareCount));} if((typeof heateorSssReduceHorizontalSvgWidth!='undefined'&&jQuery(this).hasClass('heateor_sss_horizontal_sharing'))||(typeof heateorSssReduceVerticalSvgWidth!='undefined'&&jQuery(this).hasClass('heateor_sss_vertical_sharing'))){jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float','left');} if((typeof heateorSssReduceHorizontalSvgHeight!='undefined'&&jQuery(this).hasClass('heateor_sss_horizontal_sharing'))||(typeof heateorSssReduceVerticalSvgHeight!='undefined'&&jQuery(this).hasClass('heateor_sss_vertical_sharing'))){jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop','0');} var totalCountContainer=jQuery(this).find('.heateorSssTCBackground');jQuery(totalCountContainer).each(function(){var totalShareCountElem=jQuery(this).find('.heateorSssTotalShareCount');var totalShareCount=jQuery(totalShareCountElem).text();var newTotalCount=heateorSssCalculateActualCount(totalShareCount)+sharingCount;jQuery(totalShareCountElem).text(heateorSssCalculateApproxCount(newTotalCount));jQuery(this).find('.heateorSssTotalShareText').text(newTotalCount==0||newTotalCount>1?heateorSssSharesText:heateorSssShareText);});}});} if(loopCounter==targetUrlsLength){setTimeout(function(){var facebookShares={};for(var i in heateorSssFacebookTargetUrls[0]){var sharingContainers=jQuery("div[heateor-sss-data-href='"+heateorSssFacebookTargetUrls[0][i]+"']");jQuery(sharingContainers).each(function(){var facebookCountElement=jQuery(this).find('.heateor_sss_facebook_count');var facebookCountElementBg=jQuery(this).find('i.heateorSssFacebookBackground');var shareCountString=typeof jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares')!='undefined'?jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares').trim():'';if(shareCountString!=''){var shareCount=parseInt(heateorSssCalculateActualCount(shareCountString));if(jQuery(facebookCountElement).attr('sss_st_count')!==undefined){var startingCount=parseInt(jQuery(facebookCountElement).attr('sss_st_count').trim());shareCount=Math.abs(shareCount-startingCount);} facebookShares[heateorSssFacebookTargetUrls[0][i]]=shareCount;return;}});} if(!jQuery.isEmptyObject(facebookShares)){heateorSssSaveFacebookShares(facebookShares);}},1000);}});} function heateorSssSaveFacebookShares(facebookShares){jQuery.ajax({type:'GET',dataType:'json',url:heateorSssSharingAjaxUrl,data:{action:'heateor_sss_save_facebook_shares',share_counts:facebookShares,},success:function(data,textStatus,XMLHttpRequest){}});} function heateorSssCalculateApproxCount(sharingCount){if(sharingCount>999&&sharingCount<10000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>9999&&sharingCount<100000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>99999&&sharingCount<1000000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>999999){sharingCount=(Math.round(sharingCount/100000))/10+'M';} return sharingCount;} function heateorSssCalculateActualCount(sharingCount){if(sharingCount.indexOf('K')>0){sharingCount=sharingCount.replace('K','')*1000;}else if(sharingCount.indexOf('M')>0){sharingCount=sharingCount.replace('M','')*1000000;} return parseInt(sharingCount);} function heateorSssCapitaliseFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)} jQuery(function(){var heateorSssWhatsappJSAPI=heateorSssDetermineWhatsappShareAPI(false);var classes=['heateor_sss_vertical_sharing','heateor_sss_vertical_counter'];for(var i=0;i=0){var removeClass='heateorSssPushIn',margin='Right',alignment='right',addClass='heateorSssPullOut';}else{var removeClass='heateorSssPullOut',margin='Left',alignment='left',addClass='heateorSssPushIn';} jQuery(this).html(verticalSharingHtml+'
    ');});}} if(heateorSssMobileStickySharingEnabled==1){if(jQuery('div.heateor_sss_vertical_sharing').length){jQuery(document.body).append("");}} var heateorSssClipboard=new Clipboard('.heateorSssCopyLinkBackground, .heateorSssCopyLinkShare, .heateorSssCopyLinkSvg',{text:function(trigger){if(jQuery(trigger).hasClass('heateorSssCopyLinkShare')){var element=trigger.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";}else if(jQuery(trigger).hasClass('heateorSssCopyLinkSvg')){var element=trigger.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("heateor-sss-data-href")||"";if(!url){var element=trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";}} return url;}});heateorSssClipboard.on('success',function(e){alert(heateorSssCopyLinkMessage);});});function heateorSssHideSharing(elem,removeClass,addClass,margin,alignment){var animation={},counter=jQuery(elem).parent().hasClass('heateor_sss_vertical_counter'),offset=parseInt(jQuery(elem).parent().css('width'))+10-(counter?16:0);var ssOffset=jQuery(elem).parent().attr('ss-offset');if(ssOffset){var savedOffset=parseInt(ssOffset);}else{var savedOffset=(counter?heateorSssCounterOffset:heateorSssSharingOffset);} if(jQuery(elem).attr('title')=='Hide'){animation[alignment]="-="+(offset+savedOffset);jQuery(elem).parent().animate(animation,400,function(){jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title','Share');if(counter){var cssFloat=alignment=='left'?'right':'left';jQuery(elem).css('float',cssFloat);}else{jQuery(elem).css('margin'+margin,offset+'px')}});}else{animation[alignment]="+="+(offset+savedOffset);jQuery(elem).parent().animate(animation,400,function(){jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title','Hide');if(counter){jQuery(elem).css('float',alignment);}else{jQuery(elem).css('margin'+margin,'0px');}});}} !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand (this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});}catch(e){} try{!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);}catch(e){};