function getWidgetIndex(t){return null!=t&&"widget_index"!=t||(t=1),jQuery("#chaty-widget-"+t).length||jQuery("#chaty-widget_-"+t).length||jQuery(".chaty").length&&0!=(t=jQuery(".chaty:first").data("id"))&&(t=t.replace(/[^0-9]/g,"")),t}function activateChatyWidget(t){jQuery(".chaty-outer-forms").removeClass("active"),jQuery("#chaty-widget-"+t).length&&jQuery("#chaty-widget-"+t).addClass("active"),jQuery("#chaty-widget-_"+t).length&&jQuery("#chaty-widget-_"+t).addClass("active")}function launch_chaty(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery("#chaty-widget-"+t).length&&jQuery("#chaty-widget-"+t+" .chaty-cta-button .open-chaty").trigger("click"),jQuery("#chaty-widget-_"+t).length&&jQuery("#chaty-widget-_"+t+" .chaty-cta-button .open-chaty").trigger("click")}function open_chaty_whatsapp_popup(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery("#chaty-widget-"+t).length&&jQuery("#chaty-widget-"+t+" .Whatsapp-channel").trigger("click"),jQuery("#chaty-widget-_"+t).length&&jQuery("#chaty-widget-_"+t+" .Whatsapp-channel").trigger("click")}function close_chaty_whatsapp_popup(t){t=getWidgetIndex(t),jQuery("#chaty-form-"+t+"-Whatsapp").length&&jQuery("#chaty-form-"+t+"-Whatsapp .whatsapp-form-close-btn").trigger("click"),jQuery("#chaty-form-_"+t+"-Whatsapp").length&&jQuery("#chaty-form-_"+t+"-Whatsapp .whatsapp-form-close-btn").trigger("click")}function open_chaty_contact_form(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery("#chaty-widget-"+t).length&&jQuery("#chaty-widget-"+t+" .Contact_Us-channel").trigger("click"),jQuery("#chaty-widget-_"+t).length&&jQuery("#chaty-widget-_"+t+" .Contact_Us-channel").trigger("click")}function close_chaty_contact_form(t){t=getWidgetIndex(t),jQuery("#chaty-form-"+t+"-Contact_Us").length&&jQuery("#chaty-form-"+t+"-Contact_Us .chaty-close-button").trigger("click"),jQuery("#chaty-form-_"+t+"-Contact_Us").length&&jQuery("#chaty-form-_"+t+"-Contact_Us .chaty-close-button").trigger("click")}!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t,e){var a,c,n=[],i="",s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))?1:0,o=["System Stack","Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia","-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"],h=!0,l=!1,r=0,d=!1,y=!1,g=[],p=0,f=0,u="",w=0,m="";function v(a){if(t("#chaty-widget-"+a).data("animation")!=e&&"none"!=t("#chaty-widget-"+a).data("animation")){var c="chaty-animation-"+t("#chaty-widget-"+a).data("animation");t("#chaty-widget-"+a+" ."+c).removeClass(c)}t("#chaty-widget-"+a+" .ch-pending-msg").remove()}function _(){var e,a=!1;n.length&&t.each(n,(function(t,e){E(e.triggers.has_countries)&&!B(e.triggers.countries)&&e.triggers.countries.length&&(a=!0)})),a?""!=(i=H())?b():(e="https://www.cloudflare.com/cdn-cgi/trace",t.get(e,(function(t){var e,a=t.match("loc=(.*)");a.length>1&&(a=a[1])&&(""==(a=a.toUpperCase())&&(a="-"),e=a,"undefined"!=typeof Storage?null==window.sessionStorage.getItem("chaty_user_country_code")&&window.sessionStorage.setItem("chaty_user_country_code",e):V("chaty_user_country_code")||N("chaty_user_country_code",e,365),b())}))):b()}function b(){n.length&&(t("body").append('<svg width="39" height="39" viewBox="0 0 39 39" class="hide-cht-svg-bg" fill="none" xmlns="http://www.w3.org/2000/svg"><defs> <linearGradient id="linear-gradient" x1="0.892" y1="0.192" x2="0.128" y2="0.85" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="#4a64d5"/> <stop offset="0.322" stop-color="#9737bd"/> <stop offset="0.636" stop-color="#f15540"/> <stop offset="1" stop-color="#fecc69"/> </linearGradient> <linearGradient id="linear-gradient-insta-dm" x1="0.892" y1="0.192" x2="0.128" y2="0.85" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="#4A64D5"></stop> <stop offset="0.322" stop-color="#9737BD"></stop> <stop offset="0.636" stop-color="#F15540"></stop> <stop offset="1" stop-color="#FECC69"></stop> </linearGradient></defs>'),t.each(n,(function(e,a){var c="",h="",g=0,p=[],f={},w=function(e){if(E(e.triggers.has_countries)&&!B(e.triggers.countries)&&e.triggers.countries.length&&"-"!=(i=H())&&-1==t.inArray(i,e.triggers.countries))return!1;return!0}(a);w=w&&function(t){if(t.triggers.has_date_scheduling_rules){var e=t.triggers.date_scheduling_rules.start_date_time,a=t.triggers.date_scheduling_rules.end_date_time,c=new Date,n=(c=q(c,t.triggers.time_diff)).getFullYear()+"-"+A(c.getMonth()+1)+"-"+A(c.getDate())+" "+A(c.getHours())+":"+A(c.getMinutes())+":"+A(c.getSeconds());return""==a&&e<=n||(""==e&&a>=n||""!=e&&""!=a&&e<=n&&a>=n)}return!0}(a),w=w&&function(t){var e=!0;if(E(t.triggers.has_day_hours_scheduling_rules)&&t.triggers.day_hours_scheduling_rules.length>0){var a=t.triggers.day_hours_scheduling_rules;if(a.length>0){e=!1;for(var c=new Date,n=(c=q(c,t.triggers.day_time_diff)).getHours(),i=c.getMinutes(),s=c.getDay(),o=0;o<a.length;o++){var h=0,l=0;-1==a[o].days?l=1:a[o].days>=0&&a[o].days<=6?a[o].days==s&&(l=1):7==a[o].days?s>=0&&s<=4&&(l=1):8==a[o].days?s>=1&&s<=5&&(l=1):9==a[o].days&&(6!=s&&0!=s||(l=1)),1==l&&(n>a[o].start_hours&&n<a[o].end_hours?h=1:n==a[o].start_hours&&n<a[o].end_hours?i>=a[o].start_min&&(h=1):n>a[o].start_hours&&n==a[o].end_hours?i<=a[o].end_min&&(h=1):n==a[o].start_hours&&n==a[o].end_hours&&i>=a[o].start_min&&i<=a[o].end_min&&(h=1),1==h&&i>=a[o].start_min&&i<=a[o].end_min&&1),1==h&&1==l&&(e=1),1==e&&(o=a.length+1)}}}return e}(a);let m=null,v=0,_=null,b=!1;t.each(a.channels,(function(t,e){x(e)&&("Chatway"===e.channel?(v=!0,_=e.chatway_position,m=e,"inside-chaty"!==_&&"chat-view"!==a.settings.cta_type||(b=!0,g++,p.push(e))):(f=e,p.push(e),g++))})),"open"==a.settings.default_state&&1==g&&"chat-view"!=a.settings.cta_type&&(a.settings.default_state="click",n[e].settings.default_state="click");let I="";if(v&&(I="has-chatway-channel"),(1!=g||!b)&&w&&g>0&&!t("#chaty-widget-"+a.id).length){var M=L(a.settings);M="right"==M?"right":"left";var S=U(a);if("chat-view"==a.settings.cta_type){var Q="<div style='display: none' class='chaty chaty-has-chat-view chaty-id-"+a.id+" chaty-widget-"+a.id+" chaty-key-"+e+"' id='chaty-widget-"+a.id+"' data-key='"+e+"' data-id='"+a.id+"' data-identifier='"+a.identifier+"' data-nonce='"+a.settings.widget_token+"' ><div class='chaty-widget "+M+"-position'><div class='chaty-channels'><div class='chaty-channel-list' id='csaas-channels-"+a.id+"'></div><div class='chaty-i-trigger csaas-widget-trigger "+I+"'></div></div></div></div>";t("body").append(Q),function(e){var a=e.id,c=T(a);null==c&&(c=-1);var n=e.settings.cta_body,i=e.settings.cta_head,s=t("title").text();B(s)?(n=n.replace(/{title}/g,""),i=i.replace(/{title}/g,"")):(n=n.replace(/{title}/g,s),i=i.replace(/{title}/g,s));n=n.replace(/{url}/g,"<a target='_blank' href='"+window.location.href+"'>"+window.location.href+"</a>"),i=i.replace(/{url}/g,"<a target='_blank' href='"+window.location.href+"'>"+window.location.href+"</a>");var o="";o+="<div style='display:none;' class='chaty-chat-view chaty-chat-view-"+a+" chaty-form-"+a+"' data-channel='chaty-chat-view' id='chaty-form-"+a+"-chaty-chat-view' data-widget='"+a+"' data-index='"+c+"'>",o+="<div class='chaty-view-body'>",o+="<div class='chaty-view-header'>"+i,o+="<div role='button' class='chaty-close-view-list'><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 330'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'/></svg></div>",o+="</div>",o+="<div class='chaty-view-content'>",o+="<div class='chaty-top-content'>",o+=n,o+="</div>",o+="<div class='chaty-view-channels'>",o+="</div>",o+="</div>",o+="</div>",o+="</div>",t("#chaty-widget-"+a).append(o)}(a)}else{Q="<div style='display: none' class='chaty chaty-id-"+a.id+" chaty-widget-"+a.id+" chaty-key-"+e+"' id='chaty-widget-"+a.id+"' data-key='"+e+"' data-id='"+a.id+"' data-identifier='"+a.identifier+"' data-nonce='"+a.settings.widget_token+"' ><div class='chaty-widget "+M+"-position'><div class='chaty-channels'><div class='chaty-channel-list' id='csaas-channels-"+a.id+"'></div><div class='chaty-i-trigger csaas-widget-trigger "+I+"'></div></div></div></div>";t("body").append(Q)}E(a.triggers.auto_hide_widget)&&parseInt(a.triggers.hide_after)>0&&(t("#chaty-widget-"+a.id).addClass("auto-hide-chaty"),t("#chaty-widget-"+a.id).attr("data-time",a.triggers.hide_after));var z=R(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==g&&"chat-view"!=a.settings.cta_type){"vertical"!=a.settings.icon_view&&(S="right"!=M?"right":"left");var P=j(f,a.id,S);t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(P),t("#chaty-widget-"+a.id+" .chaty-i-trigger").addClass("single-channel"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("single"),t("#chaty-widget-"+a.id+" .chaty-widget").addClass("has-single");var N=a.settings.cta_text;"first_click"==a.settings.show_cta&&(z?(t("#chaty-widget-"+a.id+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").addClass("active").addClass("chaty-tooltip").addClass("pos-"+S),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").append("<span class='on-hover-text'>"+N+"</span>").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append("<span class='on-hover-text'>"+N+"</span>").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-text",N)):t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append("<span class='on-hover-text'>"+N+"</span>").removeClass("active").addClass("has-on-hover")),"all_time"==a.settings.show_cta&&(t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-tooltip").append("<span class='on-hover-text'>"+N+"</span>").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel a").attr("data-text",N));var O=f;("Instagram"!=O.channel_type||"#ffffff"!=O.icon_color&&"#fff"!=O.icon_color)&&(c+="#chaty-widget-"+a.id+" ."+O.channel+"-channel .color-element{ fill: "+O.icon_color+"; color: "+O.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+O.channel+" .color-element{ fill: "+O.icon_color+"; color: "+O.icon_color+";}"),c+="#chaty-widget-"+a.id+" ."+O.channel+"-channel .chaty-custom-icon { background-color: "+O.icon_color+"; }",c+="#chaty-widget-"+a.id+" ."+O.channel+"-channel .chaty-svg { background-color: "+O.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+O.channel+" .chaty-svg { background-color: "+O.icon_color+";}","Contact_Us"==O.channel_type&&(c+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+O.contact_form_settings.button_bg_color+"; color: "+O.contact_form_settings.button_text_color+";} ",c+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+O.contact_form_settings.title_bg_color+"; } ");var G='<div class="chaty-channel chaty-cta-close chaty-tooltip pos-'+S+'" data-hover="'+a.settings.close_text+'"><div class="chaty-cta-button"><button type="button"><span class="chaty-svg"><svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="'+a.settings.widget_color+'"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="'+a.settings.widget_icon_color+'"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="'+a.settings.widget_icon_color+'"></rect></svg></span><span class="sr-only">Hide chaty</span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(G)}else{t.each(a.channels,(function(e,n){if(x(n)&&("Chatway"!==n.channel||"inside-chaty"===_||"chat-view"===a.settings.cta_type)){if(W(n.channel_type)&&(n.channel_type=n.channel),"chat-view"==a.settings.cta_type){var i=j(n,a.id,"top");t(".chaty-chat-view-"+a.id+" .chaty-view-channels").append(i)}else{i=j(n,a.id,S);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(i)}("Instagram"!=n.channel_type&&"Instagram_DM"!=n.channel_type||"#ffffff"!=n.icon_color&&"#fff"!=n.icon_color)&&(c+="#chaty-widget-"+a.id+" ."+n.channel+"-channel .color-element{ fill: "+n.icon_color+"; color: "+n.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+n.channel+" .color-element{ fill: "+n.icon_color+"; color: "+n.icon_color+";}"),c+="#chaty-widget-"+a.id+" ."+n.channel+"-channel .chaty-custom-icon { background-color: "+n.icon_color+"; }",c+="#chaty-widget-"+a.id+" ."+n.channel+"-channel .chaty-svg { background-color: "+n.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+n.channel+" .chaty-svg { background-color: "+n.icon_color+";}",c+=".chaty-chat-view-"+a.id+" ."+n.channel+"-channel .chaty-custom-icon { background-color: "+n.icon_color+"; }",c+=".chaty-chat-view-"+a.id+" ."+n.channel+"-channel .chaty-svg { background-color: "+n.icon_color+";}",c+=".chaty-chat-view-"+a.id+" .channel-icon-"+n.channel+" .chaty-svg { background-color: "+n.icon_color+";}","Contact_Us"==n.channel_type&&(c+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+n.contact_form_settings.button_bg_color+"; color: "+n.contact_form_settings.button_text_color+";} ",c+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+n.contact_form_settings.title_bg_color+"; } ")}}));var V=function(t,e){(""==t.widget_icon||"chat-image"==t.widget_icon&&B(t.widget_icon_url)||"chat-fa-icon"==t.widget_icon&&B(t.widget_fa_icon))&&(t.widget_icon="chat-base");return"chat-image"==t.widget_icon?"<span class='chaty-svg' style='background-color: "+t.widget_color+"'><img src='"+t.widget_icon_url+"' alt='Chaty Widget' /></span>":"chat-fa-icon"==t.widget_icon?"<span class='chaty-svg' style='background-color: "+t.widget_color+"'><i class='"+t.widget_fa_icon+" widget-fa-icon' style='color: "+t.widget_icon_color+"'></i></span>":'<span class="chaty-svg">'+function(t,e,a,c){switch(t){case"chat-smile":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-496.8 507.1 54 54" xml:space="preserve"><style type="text/css">.chaty-sts1-'+c+"{fill:"+a+';} .chaty-sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts1-'+c+'" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="chaty-sts2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="chaty-sts2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-496.9 507.1 54 54" xml:space="preserve"><style type="text/css">.chaty-sts2-'+c+"{fill:"+a+';}</style><g><circle  cx="-469.9" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts2-'+c+'" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9   c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z   M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z   M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z   M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-496 507.1 54 54" xml:space="preserve"><style type="text/css">.chaty-sts3-'+c+"{fill:"+a+';}</style><g><circle  cx="-469" cy="534.1" r="27" fill="'+e+'"/></g><path class="chaty-sts3-'+c+'" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="chaty-sts3-'+c+'" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-496 507.7 54 54" xml:space="preserve"><style type="text/css">.chaty-sts4-'+c+"{fill: "+a+';}.chaty-st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+e+'"/></g><path class="chaty-sts4-'+c+'" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="chaty-st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="chaty-st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'}}(t.widget_icon,t.widget_color,t.widget_icon_color,e)+"</span>"}(a.settings,a.id);N=a.settings.cta_text;"first_click"==a.settings.show_cta&&(z||(N=""));var X=S;"horizontal"==a.settings.icon_view&&(X="left"==M?"right":"left");var Z='<div class="chaty-channel chaty-cta-main chaty-tooltip has-on-hover pos-'+X+' active" data-widget="'+a.id+'" ><span class="on-hover-text">'+N+'</span><div class="chaty-cta-button"><button type="button" class="open-chaty">'+V+'<span class="sr-only">Open chaty</span></button><button type="button" class="open-chaty-channel"><span class="sr-only">chaty buttons</span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(Z);G='<div class="chaty-channel chaty-cta-close chaty-tooltip pos-'+S+'" data-hover="'+a.settings.close_text+'"><div class="chaty-cta-button"><button type="button"><span class="chaty-svg"><svg viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="26" cy="26" rx="26" ry="26" fill="'+a.settings.widget_color+'"></ellipse><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="'+a.settings.widget_icon_color+'"></rect><rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="'+a.settings.widget_icon_color+'"></rect></svg></span><span class="sr-only">Hide chaty</span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(G)}t.each(a.channels,(function(t,e){"Contact_Us"==e.channel_type&&"yes"==e.hide_recaptcha_badge&&(c+=".grecaptcha-badge {visibility: hidden;}")})),"chat-view"==a.settings.cta_type&&a.settings.show_close_button,!(z=R(a.id,"c-widget"))||"open"==a.settings.default_state&&1!=g||(function(e,a){var c=R(a,"c-widget");c&&E(e.is_pending_mesg_enabled)&&parseInt(e.pending_mesg_count)>0&&(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?"sheen"==e.attention_effect||"spin"==e.attention_effect||"pulse"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):"jump"==e.attention_effect||"waggle"==e.attention_effect||"blink"==e.attention_effect||"pulse-icon"==e.attention_effect||"floating"==e.attention_effect?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main").append("<span class='ch-pending-msg'>"+e.pending_mesg_count+"</span>"))}(a.settings,a.id),function(e,a){var c=R(a,"c-widget");c&&"none"!=e.attention_effect&&""!=e.attention_effect&&(t("#chaty-widget-"+a).attr("data-animation",e.attention_effect),t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+e.attention_effect):t("#chaty-widget-"+a+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+e.attention_effect))}(a.settings,a.id));var Y=0;if("open"!=a.settings.default_state||E(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),Y=1),v&&(t("#chaty-widget-"+a.id+" .chaty-widget").addClass(_),"above-chaty"===_)){t("#chaty-widget-"+a.id+" .chaty-widget").addClass("has-chatway");let e=U(a),n=j(m,a.id,e,a.settings);t("#chaty-widget-"+a.id).length&&(t("#chaty-widget-"+a.id+" .chaty-channel-list").prepend(n),u+="#chaty-widget-"+a.id+" ."+m.channel_type+"-channel .color-element{ fill: "+m.icon_color+"; color: "+m.icon_color+";}",u+="#chaty-widget-"+a.id+" ."+m.channel_type+"-channel .csaas-svg { background-color: "+m.icon_color+";}",u+=".channel-"+a.id+"-"+m.channel_type+" .csaas-svg { background-color: "+m.icon_color+";}",c+="#chaty-widget-"+a.id+" ."+m.channel_type+"-channel .chaty-custom-icon { background-color: "+m.icon_color+"; }",c+="#chaty-widget-"+a.id+" ."+m.channel_type+"-channel .chaty-svg { background-color: "+m.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+m.channel_type+" .chaty-svg { background-color: "+m.icon_color+";}")}E(a.settings.is_google_analytics_enabled)&&(t("#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a").addClass("has-gae"),t("#chaty-form-"+a.id+"-chaty-chat-view .chaty-channel > a").addClass("has-gae"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel > a").addClass("has-gae"),t(".chaty-outer-forms.chaty-whatsapp-btn-form.chaty-form-"+a.id+" form.add-analytics").addClass("form-google-analytics"),t(".whatsapp-chaty-form-"+a.id).addClass("has-form-gae")),E(a.settings.has_custom_css)&&!B(a.settings.custom_css)&&(h+=a.settings.custom_css),"hover"==a.settings.default_state?t("#chaty-widget-"+a.id).addClass("open-on-hover"):"open"==a.settings.default_state&&(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("default-open"),!z&&E(a.settings.show_close_button)||t("#chaty-widget-"+a.id+" .chaty-widget:not(.has-single)").addClass("chaty-open"),z||t("#chaty-widget-"+a.id+" .chaty-widget").removeClass("default-open")),t("#chaty-widget-"+a.id+" .chaty-widget:not(.has-single):not(.chaty-no-close-button)").hasClass("default-open")?E(a.settings.bg_blur_effect)&&t("body").addClass("add-bg-blur-effect"):t("body").removeClass("add-bg-blur-effect"),E(a.settings.bg_blur_effect)&&t("#chaty-widget-"+a.id+" .chaty-widget:not(.chaty-no-close-button)").addClass("has-bg-blur-effect");var F=function(t){return t}(a.settings.widget_size,a.settings.custom_widget_size);if(F=parseInt(F),c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a .chaty-custom-icon {display:block; width: "+F+"px; height: "+F+"px; line-height: "+F+"px; font-size: "+parseInt(F/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel button {width: "+F+"px; height: "+F+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg img {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel span.chaty-icon {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel a {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+F+"px; height: "+F+"px; line-height: "+F+"px; display: block; font-size:"+parseInt(F/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button {background-color: "+a.settings.widget_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button button {background-color: "+a.settings.widget_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a .chaty-custom-icon {display:block; width: "+F+"px; height: "+F+"px; line-height: "+F+"px; font-size: "+parseInt(F/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel button {width: "+F+"px; height: "+F+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg img {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel span.chaty-icon {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a {width: "+F+"px; height: "+F+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+F+"px; height: "+F+"px; line-height: "+F+"px; display: block; font-size:"+parseInt(F/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .ch-pending-msg {background-color: "+a.settings.pending_mesg_count_bgcolor+"; color: "+a.settings.pending_mesg_count_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg .widget-fa-icon {line-height: "+F+"px; font-size:"+parseInt(F/2)+"px; }","vertical"==a.settings.icon_view){c+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+g*(F+8)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(F+8)+"px; }";for(var J=0;J<=g;J++)c+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(J+1)+"){-webkit-transform: translateY(-"+(F+8)*(g-J-Y)+"px); transform: translateY(-"+(F+8)*(g-J-Y)+"px);}",c+="#chaty-widget-"+a.id+" .chaty-open.above-chaty.has-chatway .chaty-channel-list .chaty-channel:nth-child("+(J+1)+"){-webkit-transform: translateY(-"+(F+8)*(g-J-Y+1)+"px); transform: translateY(-"+(F+8)*(g-J-Y+1)+"px);}";if(v&&"inside-chaty"==_){let t=0,e=1;for(let n=0;n<p.length;n++)O=p[n],c+="body.chatway--active #chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel."+O.channel+"-link {-webkit-transform: translateY(-"+(F+8)*(g-t-Y)+"px); transform: translateY(-"+(F+8)*(g-t-Y)+"px);}","Chatway"!=O.channel?c+="body:not(.chatway--active) #chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel."+O.channel+"-channel-link {-webkit-transform: translateY(-"+(F+8)*(g-t-e-Y)+"px); transform: translateY(-"+(F+8)*(g-t-e-Y)+"px);}":e=0,t++}else{let t=0;for(t=0;t<=g;t++)c+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t+1)+"){-webkit-transform: translateY(-"+(F+8)*(g-t-Y)+"px); transform: translateY(-"+(F+8)*(g-t-Y)+"px);}";"above-chaty"==_&&(c+="#chaty-widget-"+a.id+" .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateY(-"+(F+8)*Y+"px); transform: translateY(-"+(F+8)*(1-Y)+"px);}")}}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),c+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+g*(F+8)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+F+"px; }";let e=0;if(v&&"inside-chaty"==_){let t=0,e=1;for(let n=0;n<p.length;n++)O=p[n],c+="body.chatway--active .chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t+1)+"){-webkit-transform: translateX("+(F+8)*(g-t-Y)+"px); transform: translateX("+(F+8)*(g-t-Y)+"px);}",c+="body.chatway--active .chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t+1)+"){-webkit-transform: translateX(-"+(F+8)*(g-t-Y)+"px); transform: translateX(-"+(F+8)*(g-t-Y)+"px);}","Chatway"!=O.channel?(c+="body:not(.chatway--active) #chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t+1)+"){-webkit-transform: translateX("+(F+8)*(g-t-e-Y)+"px); transform: translateX("+(F+8)*(g-t-e-Y)+"px);}",c+="body:not(.chatway--active) #chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(t+1)+"){-webkit-transform: translateX(-"+(F+8)*(g-t-e-Y)+"px); transform: translateX(-"+(F+8)*(g-t-e-Y)+"px);}"):e=0,t++}else{for(e=0;e<=g;e++)c+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(e+1)+"){-webkit-transform: translateX("+(F+8)*(g-e-Y)+"px); transform: translateX("+(F+8)*(g-e-Y)+"px);}",c+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(e+1)+"){-webkit-transform: translateX(-"+(F+8)*(g-e-Y)+"px); transform: translateX(-"+(F+8)*(g-e-Y)+"px);}";"above-chaty"==_&&(c+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX("+(F+8)*(1-Y)+"px); transform: translateX("+(F+8)*(1-Y)+"px);}",c+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX(-"+(F+8)*(1-Y)+"px); transform: translateX(-"+(F+8)*(1-Y)+"px);}")}}var $=a.settings.bottom_spacing,K=a.settings.side_spacing;c+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+$+"px}","left"==M?(c+="#chaty-widget-"+a.id+" .chaty-widget {left: "+K+"px; right: auto;}",c+=".chaty-outer-forms.pos-left.chaty-form-"+a.id+" {left: "+K+"px}",t(".chaty-form-"+a.id).addClass("pos-left")):(c+="#chaty-widget-"+a.id+" .chaty-widget {right: "+K+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("pos-right"),c+=".chaty-outer-forms.pos-right.chaty-form-"+a.id+" {right: "+K+"px; left:auto;}"),t(".chaty-form-"+a.id).show();var tt=F+15+parseInt($);c+=".chaty-outer-forms.active.chaty-form-"+a.id+" {-webkit-transform: translateY(-"+tt+"px); transform: translateY(-"+tt+"px)} ",c+="#chaty-widget-"+a.id+".chaty:not(.form-open) .chaty-widget.chaty-open + .chaty-chat-view {-webkit-transform: translateY(-"+tt+"px); transform: translateY(-"+tt+"px)} ",c+="#chaty-widget-"+a.id+" .chaty-tooltip:after {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top:before {border-top-color: "+a.settings.cta_bg_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left:before {border-left-color: "+a.settings.cta_bg_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right:before {border-right-color: "+a.settings.cta_bg_color+";}",c+="#chaty-widget-"+a.id+" .on-hover-text {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",c+="#chaty-widget-"+a.id+" .on-hover-text p{background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top .on-hover-text:before {border-top-color: "+a.settings.cta_bg_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left .on-hover-text:before {border-left-color: "+a.settings.cta_bg_color+"; }",c+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right .on-hover-text:before {border-right-color: "+a.settings.cta_bg_color+";}";var et=tt+72+F;et>0&&(c+=".chaty-outer-forms.chaty-form-"+a.id+" .chaty-agent-body {max-height: calc(100vh - "+et+"px); overflow-y: auto; } "),c+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header {background-color: "+a.settings.cta_head_bg_color+";}",c+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header {color: "+a.settings.cta_head_text_color+";}",c+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header svg {fill:"+a.settings.cta_head_text_color+";}";var at=tt+82+F;at>0&&(c+=".chaty-outer-forms.chaty-contact-form-box.chaty-form-"+a.id+" .chaty-contact-inputs {max-height: calc(100vh - "+at+"px); overflow-y: auto; } "),25==$&&25==K||(t(".chaty-outer-forms.chaty-form-"+a.id).addClass("custom-cht-pos"),t("#chaty-widget-"+a.id).addClass("has-custom-pos"));var ct=parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-header").outerHeight())+parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-footer").outerHeight())+parseInt(F)+parseInt($)+20;if(c+="#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-body { max-height: calc(100vh - "+ct+"px); overflow-y: auto; }",R(a.id,"v-widget")&&(E(a.triggers.exit_intent)||E(a.triggers.has_time_delay)||E(a.triggers.has_display_after_page_scroll)>0)?(E(a.triggers.has_time_delay)&&0==parseInt(a.triggers.time_delay)?(k(a.id),t("#chaty-widget-"+a.id).addClass("active")):E(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(l=!0,parseInt(a.triggers.time_delay)>r&&(r=a.triggers.time_delay),t("#chaty-widget-"+a.id).addClass("on-chaty-delay"),t("#chaty-widget-"+a.id).addClass("delay-time-"+parseInt(a.triggers.time_delay)),t("#chaty-widget-"+a.id).attr("data-time",parseInt(a.triggers.time_delay))),E(a.triggers.has_display_after_page_scroll)&&0==parseInt(a.triggers.display_after_page_scroll)?(k(a.id),t("#chaty-widget-"+a.id).addClass("active")):E(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0&&(d=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-scroll"),t("#chaty-widget-"+a.id).addClass("page-scroll-"+parseInt(a.triggers.display_after_page_scroll)),t("#chaty-widget-"+a.id).attr("data-scroll",parseInt(a.triggers.display_after_page_scroll))),E(a.triggers.exit_intent)&&(y=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(k(a.id),t("#chaty-widget-"+a.id).addClass("active")),!B(a.settings.font_family)&&"none"!=a.settings.font_family){var nt=a.settings.font_family;-1!=t.inArray(nt,o)?"System Stack"==nt&&(nt="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append('<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family='+nt+'&display=swap">'),t("head").append('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family='+nt+'&display=swap">')),c+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+nt+"}"}}y&&(s?function(){if(window.history&&window.history.pushState&&y){function e(){y&&""!==location.hash.split("#!/")[1]&&""===window.location.hash&&D()}var a=100;window.history.state&&window.history.state.page&&(a=window.history.state.page),window.history.pushState({page:a+1},""),window.history.pushState({page:a+2},""),window.onpopstate=function(){e()},window.history.onpopstate=function(){e()},window.addEventListener("popstate",(function(){e()})),document.addEventListener("backbutton",(function(){e()})),window.addEventListener("backbutton",(function(){e()})),t(window).on("popstate",(function(){e()}))}}():t(document).mouseleave((function(t){function e(t,e,a){t.addEventListener?(t.addEventListener(e,a,!1),D()):t.attachEvent&&t.attachEvent("on"+e,a)}e(document,"mouseout",(function(t){null==t.toElement&&null==t.relatedTarget&&D()}))}))),""!=c&&(t("#custom-chaty-css").length||t("head").append("<style id='custom-chaty-css'></style>"),t("#custom-chaty-css").append(c)),""!=h&&(t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(h)),n.length,t(".chaty-sms-channel").length&&t(".chaty-sms-channel").each((function(){var e=t(this).attr("href");e=(e=e.replace(/{title}/g,C())).replace(/{url}/g,window.location.href),t(this).attr("href",e)})),t(document).on("click","#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel",(function(){t(this).closest(".chaty-widget").hasClass("has-single")?t(this).closest(".chaty").hasClass("form-open")&&(E(a.settings.bg_blur_effect)?t("body").addClass("add-bg-blur-effect"):t("body").removeClass("add-bg-blur-effect")):t(this).closest(".chaty-widget").hasClass("chaty-open")?t("body").removeClass("add-bg-blur-effect"):t(this).closest(".chaty-widget").hasClass("chaty-no-close-button")||E(a.settings.bg_blur_effect)&&t("body").addClass("add-bg-blur-effect")}))})),t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(u),(t(".v3_site_key").length&&!B(t(".v3_site_key").val())||t(".v2_site_key").length&&!B(t(".v2_site_key").val()))&&function(){if(jQuery(".v2_site_key").length&&""!=jQuery(".v2_site_key").val()){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://www.google.com/recaptcha/api.js?onload=onloadChatyCallback&render=explicit&hl=en",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(t)}jQuery(".v3_site_key").length&&""!=jQuery(".v3_site_key").val()&&jQuery(".v3_site_key").length&&""!=jQuery(".v3_site_key").val()&&jQuery(".front-google-captcha").length&&jQuery(".front-google-captcha:not(.loaded)").each((function(){jQuery(this).addClass("loaded");var t=jQuery(".v3_site_key").val(),e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://www.google.com/recaptcha/api.js?onload=onloadCallbackChatyV3&render="+t,(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),e.loadEventEnd=function(){}}))}()),t(".chaty-tooltip").each((function(){""==t(this).data("hover")&&t(this).removeClass("left").removeClass("right").removeClass("top").removeClass("chaty-tooltip")})),function(){t(".chaty.auto-hide-chaty").length&&(c=setInterval((function(){var e=++w;if(t(".chaty.auto-hide-chaty.hide-after-"+w).length){var a=t(".chaty.auto-hide-chaty.hide-after-"+e).data("id");t(".chaty-form-"+a).removeClass("active"),t(".chaty.auto-hide-chaty.hide-after-"+e).removeClass("active"),t("#chaty-widget-"+a).removeClass("auto-hide-chaty"),t("body").removeClass("add-bg-blur-effect")}0==t(".chaty.auto-hide-chaty").length&&clearInterval(c)}),1e3));l&&(a=setInterval((function(){(p++,t(".chaty.delay-time-"+p).length)&&z(t(".chaty.delay-time-"+p).data("id"))}),1e3));if(d){t(window).on("scroll",(function(){if(d){var e=t(document).height()-t(window).height(),a=t(window).scrollTop();if(0!=e){var c=parseInt(a/e*100);if(f<=c){var n=f;f=c;for(var i=n;i<=c;i++)-1==t.inArray(i,g)&&t(".chaty.on-chaty-scroll.page-scroll-"+i).length&&t(".chaty.on-chaty-scroll.page-scroll-"+i).each((function(){var e=t(this).data("id");t(this).removeClass("on-chaty-scroll"),z(e)}));f=c}}}}));window.innerWidth,document.documentElement.clientWidth}}()}function C(){return t("title").length?t("title").text():""}function x(t){if(E(t.is_agent)){if(t.agent_data.length&&(!s&&E(t.is_agent_desktop)||s&&E(t.is_agent_mobile)))return!0}else if((!s&&E(t.is_desktop)||s&&E(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel||"Chatway"==t.channel))return!0;return!1}function k(a){if(t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").length){var c=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").data("form");if(!B(c)){var i=R(a,"c-"+t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"));if(i&&(t("#"+c).addClass("is-active"),t("#"+c).length)){var o=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").html()+"<span class='hide-cht-svg-bg'>"+chaty_settings.lang.hide_whatsapp_form+"</span>";if(v(a),t("#chaty-widget-"+a).find(".ch-pending-msg").remove(),t("#chaty-widget-"+a+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+a).addClass("form-open"),t("#"+c).addClass("active"),t("#chaty-widget-"+a+" .chaty-widget:not(.chaty-no-close-button)").hasClass("has-bg-blur-effect")&&t("body").addClass("add-bg-blur-effect"),setTimeout((function(){t(".chaty-whatsapp-btn-form.active .chaty-whatsapp-input").focus()}),100),t("#chaty-widget-"+a+" .open-chaty-channel").html(o),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))(y=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(y+=w,t("#chaty-widget-"+a).addClass("hide-after-"+y));if("on"==chaty_settings.data_analytics_settings){var l=[],r=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel");if(R(a,"v-"+r)&&void 0!==r&&(G(a,"v-"+r),l.push(r)),!h&&l.length){var d=t("#chaty-widget-"+a).data("nonce");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,widgetNonce:d,action:"update_chaty_channel_views"},type:"post",dataType:"json",success:function(t){},error:function(t,e,a){}})}}return}}}var y;(t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))&&((y=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(y+=w,t("#chaty-widget-"+a).addClass("hide-after-"+y)));O("hide-bg-blur-effect")&&t("body").removeClass("add-bg-blur-effect");var g=R(a,"v-widget");if(g){G(a,"v-widget");t("#chaty-widget-"+a).data("user"),l=[];var p=0,f=0,u=t("#chaty-widget-"+a).data("key");if(typeof n[u]!=e){var m=O("activechatyWidgets");null!=m&&"string"==typeof m?(m=m.split(","),-1==t.inArray(a,m)&&(m.push(a),N("activechatyWidgets",m=m.join(","),1))):N("activechatyWidgets",m=a,1)}if(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single"))p=1,r=t("#chaty-widget-"+a+" .chaty-channel").data("channel"),R(a,"v-"+r)&&void 0!==r&&(G(a,"v-"+r),l.push(r));else t("#chaty-widget-"+a+" .chaty-widget").hasClass("chaty-open")&&(f=1,t("#chaty-widget-"+a).hasClass("chaty-has-chat-view")?t(".chaty-chat-view.chaty-chat-view-"+a+" .chaty-view-channels").find(".chaty-channel").each((function(){chatyChannel=t(this).data("channel"),(i=R(a,"v-"+chatyChannel))&&"undefined"!=typeof chatyChannel&&(G(a,"v-"+chatyChannel),l.push(chatyChannel))})):t("#chaty-widget-"+a+" .chaty-channel-list .chaty-channel").each((function(){r=t(this).data("channel"),R(a,"v-"+r)&&void 0!==r&&(G(a,"v-"+r),l.push(r))})));if(g&&!h){d=t("#chaty-widget-"+a).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,isOpen:f,isSingle:p,widgetNonce:d,action:"update_chaty_widget_views"},type:"post",dataType:"json",success:function(t){},error:function(t,e,a){}})}}}function j(e,a,c){var n="";if(!E(e.is_agent)){W(e.channel_type)&&(e.channel_type=e.channel);o=S(e,Q(e),c,a);if("Contact_Us"==e.channel_type)n+=" has-chaty-box chaty-contact-form";else if("Whatsapp"==e.channel_type){if(E(e.is_default_open))R(a,"c-"+e.channel_type)&&(n+=" chaty-default-open")}return"<div class='chaty-channel "+e.channel+"-channel-link"+n+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}if(e.agent_data.length){var i=0;if(t.each(e.agent_data,(function(t,e){""!=e.value&&(i++,e)})),i>0){var o,h=T(a);return null==h&&(h=-1),function(e,a){var c="",n=T(a);null==n&&(n=-1);c+="<div style='display:none;' class='chaty-outer-forms chaty-agent-data chaty-agent-data-"+a+" chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+n+"'>",c+="<div class='chaty-form'>",c+="<div class='chaty-form-body'>",c+="<div role='button' class='chaty-close-agent-list'><svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 330'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'/></svg></div>",c+="<div class='chaty-agent-header agent-info-"+a+"-"+e.channel+"'>",B(e.header_text)||(c+="<div class='agent-main-header'>"+e.header_text+"</div>");B(e.header_sub_text)||(c+="<div class='agent-sub-header'>"+e.header_sub_text+"</div>");c+="</div>",c+="<div class='chaty-agent-body agents-body-"+a+" agent-body-"+a+"-"+e.channel+"'>",t.each(e.agent_data,(function(n,i){if(""!=i.value){var o=i.svg_icon;B(i.agent_image)||(o="<img class='chaty-agent-img' src='"+i.agent_image+"' alt='"+i.agent_title+"' />");var h=function(e,a,c,n,i,o){var h=e.value,l="_blank";if("Whatsapp"==a.channel_type){var r=I(e.value),d="";if(!B(e.pre_set_message)){d=decodeURI(e.pre_set_message);var y=t("title").text();d=(d=B(y)?d.replace(/{title}/g,""):d.replace(/{title}/g,y)).replace(/{url}/g,window.location),d=encodeURIComponent(d)}s?(l="",h="https://wa.me/"+r+"?text="+d):(l="_blank",h=E(e.use_whatsapp_web)?"https://web.whatsapp.com/send?phone="+r+"&text="+d:"https://wa.me/"+r+"?text="+d)}else"WeChat"==a.channel_type?(l="",h="#"):"Email"==a.channel_type?(l="",h="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?l=s?"":"_blank":"SMS"==a.channel_type?(l="",h="sms:"+e.value):"Telegram"==a.channel_type?(h="https://telegram.me/"+(h=M(e.value,"@")),l="_blank"):"Twitter"==a.channel_type?h="https://twitter.com/"+t.trim(e.value):"Instagram"==a.channel_type?h="https://www.instagram.com/"+M(e.value,"@"):"Instagram_DM"==a.channel_type?h="https://ig.me/m/"+M(e.value,"@"):"Phone"==a.channel_type?(l="",h="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(l="",h="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?h="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?h="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?h="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(""!=e.viber_url?h="viber://pa?chatURI="+e.value:(h=M(e.value,"+"),isNaN(h)||(h=h.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(h="+"+h),h="viber://chat?number="+h)),l=""):"TikTok"==a.channel_type&&(h="https://www.tiktok.com/@"+(h=M(t.trim(e.value),"@")),l="");return"<a href='"+h+"' target='"+l+"'><span class='chaty-agent-icon'>"+i+"</span><span class='chaty-agent-title'>"+o+"</span></a>"}(i,e,0,0,o,i.agent_title);c+="<div class='chaty-agent agent-info-"+a+"-"+e.channel+" agent-info-"+n+"'>"+h+"</div>"}u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+n+" .chaty-agent-icon img { background-color: "+i.agent_bg_color+"; } ",("Instagram"!=e.channel_type&&"Instagram_DM"!=e.channel_type||"#ffffff"!=i.agent_bg_color&&"#fff"!=i.agent_bg_color)&&(u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+n+" .chaty-agent-icon .color-element { fill: "+i.agent_bg_color+"; } "),u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+n+" .chaty-custom-icon { background-color: "+i.agent_bg_color+"; } "})),c+="</div>",c+="</div>",c+="</div>",c+="</div>",u+=".chaty-agent-header.agent-info-"+a+"-"+e.channel+" { background-color: "+e.header_bg_color+"; color: "+e.header_text_color+" } ",u+=".agent-info-"+a+"-"+e.channel+" .chaty-close-agent-list svg { fill: "+e.header_text_color+" } ",t("body").append(c)}(e,a),o=S(e,Q(e),c,a),("Instagram"!=e.channel_type&&"Instagram_DM"!=e.channel_type||"#ffffff"!=e.icon_color&&"#fff"!=e.icon_color)&&(u+=".chaty-agent-"+a+"-"+e.channel+" .color-element {fill: "+e.icon_color+"; color: "+e.icon_color+";}"),u+=".chaty-agent-"+a+"-"+e.channel+" .chaty-custom-icon { background-color: "+e.icon_color+";}",u+=".chaty-agent-"+a+"-"+e.channel+" .chaty-svg-img { background-color: "+e.icon_color+";}","<div data-form='chaty-form-"+a+"-"+e.channel+"' class='chaty-channel chaty-agent-button chaty-agent-"+a+"-"+e.channel+" "+e.channel+"-channel"+n+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}}}function I(t){return t=(t=(t=(t=M(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function M(e,a){for(e=t.trim(e);e.charAt(0)==a;)e=e.substring(1);for(;e.charAt(e.length-1)==a;)e=e.substring(0,e.length-1);return e}function S(e,a,c,n){var i="";if(E(e.is_agent))e.url="#",e.target="";else if("Whatsapp"==e.channel_type)if(E(e.has_welcome_message))e.url="#",e.target="",i+=" has-chaty-box chaty-whatsapp-btn-form",function(e,a){const c=new Date;var n=c.getMinutes()<10?"0"+c.getMinutes():c.getMinutes();const i=(c.getHours()<10?"0"+c.getHours():c.getHours())+":"+n;var o="",h=T(a);null==h&&(h=-1);var l="https://web.whatsapp.com/send",r="";s?l="https://wa.me/"+e.value:(l=E(e.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+e.value,r="_blank");o+="<div style='display:none;' class='chaty-outer-forms chaty-popup-whatsapp-form chaty-whatsapp-btn-form chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+h+"'>",o+="<div class='chaty-whatsapp-form'>";var d=B(e.wp_popup_headline)?"":e.wp_popup_headline;o+="<div class='chaty-whatsapp-header'>",o+="<div class='header-wp-icon'>",o+='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="33" viewBox="0 0 32 33" fill="none"> <g filter="url(#filter0_f_9477_7201)"> <path d="M9.95924 25.2858L10.3674 25.5276C12.0818 26.545 14.0475 27.0833 16.052 27.0842H16.0562C22.2122 27.0842 27.2221 22.0753 27.2247 15.919C27.2258 12.9357 26.0652 10.1303 23.9565 8.01998C22.9223 6.97924 21.6919 6.15397 20.3365 5.59195C18.9812 5.02992 17.5278 4.74231 16.0606 4.74576C9.89989 4.74576 4.88975 9.75407 4.88756 15.91C4.88453 18.0121 5.47648 20.0722 6.59498 21.852L6.86071 22.2742L5.73223 26.394L9.95924 25.2858ZM2.50586 29.5857L4.41235 22.6249C3.23657 20.5878 2.618 18.2768 2.61873 15.9091C2.62183 8.50231 8.64941 2.47656 16.0564 2.47656C19.6508 2.47839 23.0245 3.87717 25.5618 6.41629C28.0991 8.95542 29.4952 12.3305 29.4939 15.9199C29.4906 23.3262 23.4621 29.353 16.0562 29.353H16.0504C13.8016 29.3521 11.592 28.788 9.62923 27.7177L2.50586 29.5857Z" fill="#B3B3B3"/> </g> <path d="M2.36719 29.447L4.27368 22.4862C3.09587 20.4442 2.47721 18.1278 2.48005 15.7705C2.48316 8.36364 8.51074 2.33789 15.9177 2.33789C19.5121 2.33972 22.8859 3.73849 25.4232 6.27762C27.9605 8.81675 29.3565 12.1918 29.3552 15.7812C29.3519 23.1875 23.3234 29.2143 15.9175 29.2143H15.9117C13.663 29.2134 11.4533 28.6493 9.49056 27.5791L2.36719 29.447Z" fill="white"/> <path d="M15.715 3.84769C9.17146 3.84769 3.85 9.16696 3.84767 15.7051C3.84445 17.9377 4.47318 20.1257 5.66119 22.016L5.94343 22.4646L4.48888 27.2525L9.23469 25.663L9.66824 25.9199C11.4891 27.0005 13.5769 27.5719 15.7061 27.5731H15.7105C22.249 27.5731 27.5705 22.2532 27.573 15.7146C27.5779 14.1562 27.2737 12.6123 26.6778 11.1722C26.082 9.73214 25.2064 8.42458 24.1017 7.3252C23.0032 6.21981 21.6963 5.34329 20.2567 4.74637C18.8171 4.14946 17.2734 3.844 15.715 3.84769Z" fill="#25D366"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0858 9.60401C11.8138 9.00922 11.5276 8.99717 11.2692 8.98687L10.5736 8.97852C10.3316 8.97852 9.93846 9.0679 9.60608 9.42544C9.27369 9.78297 8.33594 10.6471 8.33594 12.4046C8.33594 14.1622 9.63628 15.8605 9.81747 16.0991C9.99866 16.3377 12.3277 20.0594 16.0162 21.4913C19.0813 22.6813 19.705 22.4446 20.3706 22.3852C21.0361 22.3257 22.5175 21.521 22.8197 20.6869C23.1219 19.8527 23.1221 19.138 23.0315 18.9886C22.9409 18.8391 22.6989 18.7503 22.3357 18.5716C21.9725 18.3928 20.1888 17.5287 19.8562 17.4094C19.5236 17.2901 19.2818 17.2308 19.0396 17.5883C18.7975 17.9459 18.1029 18.7501 17.8911 18.9886C17.6793 19.227 17.4679 19.2569 17.1047 19.0783C16.7416 18.8998 15.5731 18.5224 14.1867 17.3054C13.108 16.3585 12.3799 15.1892 12.1679 14.8318C11.9559 14.4745 12.1454 14.2809 12.3274 14.1029C12.4902 13.9428 12.6901 13.6858 12.8719 13.4773C13.0537 13.2688 13.1135 13.1197 13.2343 12.8817C13.3551 12.6437 13.2949 12.4346 13.2041 12.256C13.1133 12.0774 12.4083 10.3105 12.0858 9.60401Z" fill="white"/> <defs> <filter id="filter0_f_9477_7201" x="1.21611" y="1.18682" width="29.5678" height="29.6889" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="0.644873" result="effect1_foregroundBlur_9477_7201"/> </filter> </defs> </svg>',o+="</div>",o+="<div class='header-wp-title'>",o+=d,o+="</div>",o+="<div class='whatsapp-form-close-btn'>",o+='<svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1 1L7.31429 8L14 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </svg>',o+="</div>",o+="</div>",o+="<div class='chaty-whatsapp-body'>",B(e.chat_welcome_message)||(""!=e.wp_popup_profile?(o+="<div class='chaty-whatsapp-content has-content'>",o+="<div class='wp-profile-img'>",o+="<img src='"+e.wp_popup_profile+"'>",o+="</div>"):o+="<div class='chaty-whatsapp-content'>",o+="<div class='chaty-whatsapp-message'>",o+="<div class='chaty-whatsapp-message-nickname'>"+e.wp_popup_nickname+"</div>",o+="<div class='chaty-whatsapp-message-content'></div>",o+="<div class='chaty-whatsapp-message-time'>"+i+"</div>",o+="</div>",o+="</div>");o+="</div>",o+="<div class='chaty-whatsapp-footer'>",o+="<form action='"+l+"' target='"+r+"' class='whatsapp-chaty-form-"+a+" whatsapp-chaty-form "+(E(e.is_default_open)?"add-analytics":"")+"' data-widget='"+a+"' data-channel='"+e.channel_type+"' autocomplete='off'>",o+="<div class='chaty-whatsapp-data'>",o+=`<div class='chaty-whatsapp-field ${E(e.emoji_picker)?"has_emoji":""}'>`,E(e.emoji_picker)&&(o+='<button type="button" class="chaty-wp-emoji-input"><span class="hide-cht-svg-bg">"+chaty_settings.lang.emoji_picker+"</span><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12 2C6.47 2 2 6.5 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM15.5 8C15.8978 8 16.2794 8.15804 16.5607 8.43934C16.842 8.72064 17 9.10218 17 9.5C17 9.89782 16.842 10.2794 16.5607 10.5607C16.2794 10.842 15.8978 11 15.5 11C15.1022 11 14.7206 10.842 14.4393 10.5607C14.158 10.2794 14 9.89782 14 9.5C14 9.10218 14.158 8.72064 14.4393 8.43934C14.7206 8.15804 15.1022 8 15.5 8ZM8.5 8C8.89782 8 9.27936 8.15804 9.56066 8.43934C9.84196 8.72064 10 9.10218 10 9.5C10 9.89782 9.84196 10.2794 9.56066 10.5607C9.27936 10.842 8.89782 11 8.5 11C8.10218 11 7.72064 10.842 7.43934 10.5607C7.15804 10.2794 7 9.89782 7 9.5C7 9.10218 7.15804 8.72064 7.43934 8.43934C7.72064 8.15804 8.10218 8 8.5 8ZM12 17.5C9.67 17.5 7.69 16.04 6.89 14H17.11C16.3 16.04 14.33 17.5 12 17.5Z" fill="#CDD9E2"/> </svg></button>');o+="<label class='sr-only' for='chaty_whatsapp_input'>WhatsApp Message</label>",o+="<input name='text' type='text' id='chaty_whatsapp_input' class='chaty-whatsapp-input' />",o+="<button type='submit' class='chaty-whatsapp-button-button' >",o+="<span class='hide-cht-svg-bg'>"+chaty_settings.lang.whatsapp_button+"</span>",o+='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><g clip-path="url(#clip0_9452_6982)"><path d="M18.5703 9.99996L2.66037 17.6603L5.60665 9.99996L2.66037 2.33963L18.5703 9.99996Z" fill="white" stroke="white" stroke-width="1.6625" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8.24069 9.99947L3.07723 9.99992" stroke="#C6D7E3" stroke-width="1.6625" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_9452_6982"><rect width="20" height="20" fill="white"></rect></clipPath></defs></svg>',o+="</button>",o+="</div>",o+="</div>",!s&&E(e.is_use_web_version)&&(o+="<input type='hidden' name='phone' value='"+e.value+"' />");if(o+="</form>",o+="</div>",o+="</div>",o+="</div>",t("body").append(o),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-message .chaty-whatsapp-message-content").html(e.chat_welcome_message),!B(e.pre_set_message)){var y=e.pre_set_message,g=t("title").text();y=(y=B(g)?y.replace(/{title}/g,""):y.replace(/{title}/g,g)).replace(/{url}/g,window.location),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-input").val(y)}t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-input").attr("placeholder",e.input_placeholder),t("#chaty-form-"+a+"-"+e.channel_type).show(),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-header").css("background-color",e.wp_popup_head_bg_color)}(e,n);else{var o="";if(!B(e.pre_set_message))o=decodeURI(e.pre_set_message),o=(o=B(h=t("title").text())?o.replace(/{title}/g,""):o.replace(/{title}/g,h)).replace(/{url}/g,window.location),o=encodeURIComponent(o);s?(e.target="",e.url="https://wa.me/"+e.value+"?text="+o):(e.target="_blank",E(e.is_use_web_version)?e.url="https://web.whatsapp.com/send?phone="+e.value+"&text="+o:e.url="https://wa.me/"+e.value+"?text="+o)}else if("WeChat"==e.channel_type)B(e.qr_code_image_url)||(!function(e,a){var c="",n=T(a);null==n&&(n=-1);var i=B(e.wechat_header)?"":e.wechat_header+": ";i+=e.value,c+="<div style='display:none;' class='chaty-outer-forms chaty-wechat-form chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+n+"'>",c+="<div class='chaty-form'>",c+="<div class='chaty-form-body qr-code-body'>",c+='<div class="qr-code-header"><div class="qr-code-head-title"><svg width="25" height="22" viewBox="0 0 25 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.2315 6.81844C17.6918 6.81844 18.1403 6.85385 18.5769 6.91286C17.7744 3.40752 14.092 0.751953 9.66605 0.751953C4.64999 0.751953 0.578125 4.15108 0.578125 8.34096C0.578125 10.7605 1.93541 12.8967 4.04806 14.2894L2.85601 16.6853L6.1135 15.2808C6.80985 15.5287 7.5416 15.7293 8.32057 15.8356C8.21435 15.3753 8.15533 14.9032 8.15533 14.4075C8.14353 10.2294 12.2154 6.81844 17.2315 6.81844ZM12.6875 4.16288C12.8363 4.16288 12.9836 4.19218 13.1211 4.24912C13.2586 4.30607 13.3835 4.38952 13.4887 4.49474C13.5939 4.59995 13.6773 4.72486 13.7343 4.86232C13.7912 4.99979 13.8205 5.14712 13.8205 5.29592C13.8205 5.44471 13.7912 5.59205 13.7343 5.72951C13.6773 5.86698 13.5939 5.99189 13.4887 6.0971C13.3835 6.20231 13.2586 6.28577 13.1211 6.34271C12.9836 6.39965 12.8363 6.42896 12.6875 6.42896C12.387 6.42896 12.0988 6.30958 11.8863 6.0971C11.6738 5.88461 11.5545 5.59642 11.5545 5.29592C11.5545 4.99542 11.6738 4.70722 11.8863 4.49474C12.0988 4.28225 12.387 4.16288 12.6875 4.16288ZM6.63281 6.44076C6.33231 6.44076 6.04412 6.32139 5.83163 6.1089C5.61914 5.89641 5.49977 5.60822 5.49977 5.30772C5.49977 5.00722 5.61914 4.71903 5.83163 4.50654C6.04412 4.29405 6.33231 4.17468 6.63281 4.17468C6.93331 4.17468 7.2215 4.29405 7.43399 4.50654C7.64648 4.71903 7.76585 5.00722 7.76585 5.30772C7.76585 5.60822 7.64648 5.89641 7.43399 6.1089C7.2215 6.32139 6.93331 6.44076 6.63281 6.44076Z" fill="white"/> <path d="M24.7978 14.4102C24.7978 11.0583 21.4105 8.34375 17.2324 8.34375C13.0543 8.34375 9.66699 11.0583 9.66699 14.4102C9.66699 17.7621 13.0543 20.4767 17.2324 20.4767C17.9169 20.4767 18.5779 20.3823 19.2034 20.2407L23.2871 21.9992L21.8708 19.1666C23.6412 18.0572 24.7978 16.3577 24.7978 14.4102ZM14.9545 14.0326C14.7304 14.0326 14.5114 13.9661 14.325 13.8416C14.1387 13.7171 13.9935 13.5401 13.9077 13.3331C13.822 13.1261 13.7995 12.8983 13.8432 12.6785C13.887 12.4587 13.9949 12.2568 14.1533 12.0983C14.3118 11.9399 14.5137 11.832 14.7335 11.7882C14.9533 11.7445 15.1811 11.767 15.3881 11.8527C15.5951 11.9385 15.7721 12.0837 15.8966 12.27C16.0211 12.4564 16.0876 12.6754 16.0876 12.8995C16.0994 13.525 15.58 14.0326 14.9545 14.0326ZM19.4985 14.0326C19.198 14.0326 18.9098 13.9132 18.6973 13.7007C18.4848 13.4882 18.3654 13.2 18.3654 12.8995C18.3654 12.599 18.4848 12.3108 18.6973 12.0983C18.9098 11.8858 19.198 11.7665 19.4985 11.7665C19.799 11.7665 20.0872 11.8858 20.2997 12.0983C20.5121 12.3108 20.6315 12.599 20.6315 12.8995C20.6315 13.2 20.5121 13.4882 20.2997 13.7007C20.0872 13.9132 19.799 14.0326 19.4985 14.0326Z" fill="white"/> </svg>'+i+'</div><div class="qr-code-hide-btn chaty-close-button"><svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1 1L7.31429 8L14 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </svg></div></div>',B(e.wechat_qr_code_title)||(c+='<div class="qr-code-title">'+e.wechat_qr_code_title+":</div>");c+="<div role='button' class='close-chaty-form is-whatsapp-btn'><div aria-hidden='true' class='chaty-close-button'></div><span class='hide-cht-svg-bg'>"+chaty_settings.lang.hide_whatsapp_form+"</span></div></div>",c+="<div class='qr-code-box'><div class='qr-code-image'><img src='"+e.qr_code_image_url+"' alt='"+e.title+"' /></div>",c+="</div>",c+="</div>",c+="</div>",t("body").append(c),t("#chaty-form-"+a+"-"+e.channel_type+" .qr-code-header").css("background-color",e.wechat_header_color)}(e,n),e.url="#",e.target="",i+=" has-chaty-box chaty-qr-code-form");else if("Contact_Us"==e.channel_type)!function(e,a){var c="",n=T(a);null==n&&(n=-1);c+="<div style='display:none;' class='chaty-outer-forms chaty-contact-form-box chaty-form-"+a+"' data-channel='"+e.channel_type+"' id='chaty-form-"+a+"-"+e.channel_type+"' data-widget='"+a+"' data-index='"+n+"'>",c+="<div class='chaty-form'>",c+="<div class='chaty-form-body'>",c+="<div role='button' class='close-chaty-form'><div aria-hidden='true' class='chaty-close-button'></div><span class='hide-cht-svg-bg'>"+chaty_settings.lang.hide_whatsapp_form+"</span></div>",c+="<form class='chaty-ajax-contact-form' id='chaty-ajax-contact-form-"+n+"' method='post' data-channel='"+e.channel_type+"' data-widget='"+a+"' data-token='"+e.widget_token+"' data-index='"+e.widget_index+"' enctype='multipart/form-data'>",c+="<div class='chaty-contact-form-body'>",c+="<div class='chaty-contact-form-title'><div class='form-title'>"+e.contact_form_settings.contact_form_title+"</div><div aria-hidden='true' class='chaty-close-button'><span class='hide-cht-svg-bg'>"+chaty_settings.lang.hide_whatsapp_form+"</span><svg width='15' height='9' viewBox='0 0 15 9' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M1 1L7.31429 8L14 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg></div></div>",c+="<div class='chaty-contact-inputs'>",t.each(e.contact_fields,(function(e,n){c+="<div class='chaty-contact-input'>";var i=E(n.is_required)?"is-required":"",s="";E(n.is_required)&&(s="<span class='required_indicate'>*</span>"),E(n.is_custom)?(c+="<label class='chaty-form-label' for='"+n.field_dropdown+"-"+e+"'>"+n.field_label+" "+s+"</label>",c+="<input type='hidden' name='custom_fields["+e+"][label_"+n.field_dropdown+"]' value='"+n.field_label+"'>",c+="<input type='hidden' name='custom_fields["+e+"][slug]' value='"+n.field_dropdown+"'>","text"==n.field_dropdown||"url"==n.field_dropdown||"date"==n.field_dropdown?c+="<input type='"+n.field_dropdown+"' class='chaty-input-field "+i+" field-"+n.field_dropdown+"' placeholder='"+n.placeholder+"' name='custom_fields["+e+"]["+n.field_dropdown+"]' id='"+n.field_dropdown+"-"+e+"' />":"file"==n.field_dropdown?c+="<input type='file' class='chaty-input-field "+i+" field-"+n.field_dropdown+"' name='custom_fields["+e+"]["+n.field_dropdown+"]' id='"+n.field_dropdown+"-"+e+"' accept='.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.pps,.ppsx,.odt,.xls,.xlsx,.mp3,.mp4,.wav,.mpg,.avi,.mov,.wmv,.3gp,.ogv' multiple/>":"textarea"==n.field_dropdown?c+="<textarea class='chaty-textarea-field "+i+" field-"+n.field_dropdown+"' placeholder='"+n.placeholder+"' name='custom_fields["+e+"]["+n.field_dropdown+"]' id='"+n.field_dropdown+"-"+e+"' ></textarea>":"dropdown"==n.field_dropdown?(c+="<select name='custom_fields["+e+"]["+n.field_dropdown+"]' class='chaty-input-field "+i+"'>",n.dropdown_placeholder&&(c+="<option value=''>"+n.dropdown_placeholder+"</option>"),t.each(n.dropdown_option,(function(t,e){e&&(c+="<option value='"+e+"'>"+e+"</option>")})),c+="</select>"):"textblock"==n.field_dropdown?c+=n.placeholder:"number"==n.field_dropdown&&(c+="<input type='tel' class='chaty-input-field "+i+" field-"+n.field_dropdown+"' placeholder='"+n.placeholder+"' name='custom_fields["+e+"]["+n.field_dropdown+"]' id='"+n.field_dropdown+"-"+e+"' />")):"textarea"==n.type?(B(n.title)?c+="<label class='sr-only' for='"+n.field+"-"+a+"'>"+n.field+"</label>":c+="<label class='chaty-form-label' for='"+n.field+"-"+a+"'>"+n.title+" "+s+"</label>",c+="<textarea type='"+n.type+"' class='chaty-textarea-field "+i+" field-"+n.field+"' placeholder='"+n.placeholder+"' name='"+n.field+"' id='"+n.field+"-"+a+"' ></textarea>"):(B(n.title)?c+="<label class='sr-only' for='"+n.field+"-"+a+"'>"+n.field+"</label>":c+="<label class='chaty-form-label' for='"+n.field+"-"+a+"'>"+n.title+" "+s+"</label>",c+="<input type='"+n.type+"' class='chaty-input-field "+i+" field-"+n.field+"' placeholder='"+n.placeholder+"' name='"+n.field+"' id='"+n.field+"-"+a+"' />","email"==n.field&&(c+='<p id="email_suggestion'+a+'" class="email_suggestion"></p>')),c+="</div>"})),E(e.enable_recaptcha)&&(B(e.v2_site_key)||(c+="<div class='chaty-contact-input'>",c+="<div class='front-google-captcha' id='front_recaptcha_"+n+"'></div>",c+="</div>"),B(e.v3_site_key)||(c+="<div class='chaty-contact-input'>",c+="<div class='front-google-captcha' id='front_recaptcha_"+n+"'></div>",c+="</div>"));c+="</div>",c+="<div class='chaty-contact-form-button'><button type='submit' id='chaty-submit-button-"+a+"' class='chaty-submit-button'>"+e.contact_form_settings.button_text+"<span class='chaty-loader'><span class='dashicons dashicons-update'></span></span></button></div>",c+="</div>",c+="<input type='hidden' name='nonce' value='"+e.widget_token+"'>",c+="<input type='hidden' name='action' value='chaty_front_form_save_data'>",c+='<input type="hidden" name="channel" value="'+e.channel_type+'">',c+='<input type="hidden" name="widget" value="'+a+'">',c+='<input type="hidden" name="ref_url" value="'+window.location.href+'">',c+='<input type="hidden" name="token" value="'+googleV3Token+'">',c+='<input type="hidden" name="page_id" value="'+chaty_settings.page_id+'">',c+='<input type="hidden" name="page_title" value="'+C()+'">';var i=t(".g-recaptcha-response").length?t(".g-recaptcha-response").val():"";c+='<input type="hidden" name="v2token" value="'+i+'">',E(e.enable_recaptcha)&&(B(e.v2_site_key)||(c+="<input type='hidden' id='v2_site_key' class='v2_site_key' value='"+e.v2_site_key+"'>"),B(e.v3_site_key)||(c+="<input type='hidden' id='v3_site_key' class='v3_site_key' value='"+e.v3_site_key+"'>"));c+="</form>",c+="</div>",c+="</div>",c+="</div>",t("body").append(c)}(e,n),e.url="#",e.target="",i+=" has-chaty-box chaty-contact-us-form";else if("Email"==e.channel_type){if(!B(e.mail_subject)){var h,l=decodeURI(e.mail_subject);l=(l=B(h=t("title").text())?l.replace(/{title}/g,""):l.replace(/{title}/g,h)).replace(/{url}/g,window.location),l=encodeURIComponent(l),e.url+="?subject="+l}}else"Viber"==e.channel_type?(""!=e.viber_url?e.url="viber://pa?chatURI="+e.value:(e.value=M(e.value,"+"),s&&!isNaN(e.value)&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(e.value="+"+e.value),e.url="viber://chat?number="+e.value),e.target=""):"Vkontakte"==e.channel_type?e.url="https://vk.me/"+t.trim(e.value):"Waze"==e.channel_type&&(e.url=decodeURI(t.trim(e.value)));m="Link"==e.channel||"Custom_Link"==e.channel||"Custom_Link_3"==e.channel||"Custom_Link_4"==e.channel||"Custom_Link_5"==e.channel?B(e.hover_text)?e.channel:e.hover_text:e.channel;var r="";return B(e.click_event)||(r='onclick="'+e.click_event+'"',e.target="",e.url="#"),"<a href='"+e.url+"' "+r+" target='"+e.target+"' rel='nofollow noopener' aria-label='"+m+"' class='chaty-tooltip "+e.channel_type+"-channel chaty-link chaty-"+e.channel_type.toLowerCase()+"-channel pos-"+c+i+"' data-form='chaty-form-"+n+"-"+e.channel_type+"' data-hover='"+e.hover_text+"'>"+a+"</a>"}function T(e){var a=null;return n.length&&t.each(n,(function(t,c){c.id==e&&(a=t)})),a}function B(e){return null==e||""==e||""==t.trim(e)}function Q(t){return""!=t.custom_image_url&&"null"!=t.custom_image_url?"<span class='chaty-icon channel-icon-"+t.channel+"'><span class='chaty-svg chaty-svg-img'><img src='"+t.custom_image_url+"' alt='"+t.hover_text+"' /></span></span>":"<span class='chaty-icon channel-icon-"+t.channel+"'><span class='chaty-svg'>"+t.svg_icon+"</span></span>"}function W(e){return""==e||""==t.trim(e)||null==e||"null"==e}function L(t){return"custom"==t.position?t.custom_position:t.position}function U(t){return"vertical"!=t.settings.icon_view?"top":"right"==L(t.settings)?"left":"right"}function D(){y&&t(".on-chaty-exit-intent").length&&t(".on-chaty-exit-intent").each((function(){var e=t(this).data("id");t(this).removeClass("on-chaty-exit-intent"),z(e),t("#chaty-widget-"+e+" .chaty-widget").append("<div class='chaty-exit-intent'></div>"),setTimeout((function(){t(".chaty-exit-intent").addClass("animate"),setTimeout((function(){t(".chaty-exit-intent").removeClass("animate")}),2500)}),500)}))}function z(e){k(e),t(".chaty-widget-"+e).removeClass("on-chaty-delay"),t(".chaty-widget-"+e).removeClass("on-chaty-exit-intent"),t(".chaty-widget-"+e).removeClass("on-chaty-scroll"),t(".chaty.on-chaty-delay").length||(clearInterval(a),l=!1),t(".chaty.on-chaty-exit-intent").length||(y=!1),t(".chaty.on-chaty-scroll").length||(d=!1)}function A(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function E(t){return"1"==t||1==t||1==t||"true"==t||"yes"==t||"on"==t}function q(t,e){if(isNaN(e)){var a=new Date(t.toLocaleString("en-US",{timeZone:e})),c=t.getTime()-a.getTime();return new Date(t.getTime()-c)}var n=new Date;if(n=n.toLocaleString("en-US",{timeZone:"UTC"}),n=new Date(n),-1!=e.indexOf("+")){var i=e.replace("+",""),s=parseInt(i),o=60*parseFloat(i%s);(o=n.getUTCMinutes()+o)>59&&(s+=parseInt(o/60),o%=60),n.setUTCHours(n.getUTCHours()+s,o)}else if(-1!=e.indexOf("-")){i=e.replace("-",""),s=parseInt(i),o=60*parseFloat(i%s);(o=n.getUTCMinutes()-o)<0&&(s-=parseInt(o/60),o%=60),n.setUTCHours(n.getUTCHours()-s,-o)}c=t.getTime()-n.getTime();return new Date(t.getTime()-c)}function H(){return i="","undefined"!=typeof Storage&&null!=window.sessionStorage.getItem("chaty_user_country_code")?i=window.sessionStorage.getItem("chaty_user_country_code"):V("chaty_user_country_code")&&(i=O("chaty_user_country_code")),i}function P(){t(".chaty-widget.default-open.has-bg-blur-effect").length&&t(".chaty-widget.default-open.has-bg-blur-effect").each((function(){G(t(this).closest(".chaty").data("id"),"c-widget")}))}function N(t,e,a){if(a){const c=Date.now()+24*a*60*60*1e3;localStorage.setItem(t,JSON.stringify({value:e,expiry:c}))}else localStorage.setItem(t,e)}function O(t){const e=localStorage.getItem(t);if(!e)return null;try{const a=JSON.parse(e);return a&&"object"==typeof a&&"expiry"in a?Date.now()>a.expiry?(localStorage.removeItem(t),null):a.value:a}catch(t){return e}}function G(t,e){var a=O("chatyWidget_"+t),c=[];null!=a&&""!=a&&(c=JSON.parse(a));var n=!1;if(c.length>0)for(var i=0;i<c.length;i++)c[i].k==e&&(n=!0,c[i].v=new Date);n||c.push({k:e,v:new Date}),N("chatyWidget_"+t,a=JSON.stringify(c),"7")}function R(t,e){var a=function(t,e){var a=O("chatyWidget_"+t),c=[];if(null!=a&&""!=a&&(c=JSON.parse(a)),c.length>0)for(var n=0;n<c.length;n++)if(c[n].k==e)return c[n].v;return null}(t,e);if(null!=a&&""!=a){a=new Date(a);var c=Math.abs(new Date-a);return Math.floor(c/864e5)>=2}return!0}function V(t){const e=localStorage.getItem(t);if(!e)return!1;try{const t=JSON.parse(e);return!t||"object"!=typeof t||!("expiry"in t)||Date.now()>t.expiry}catch(t){return!0}}t(document).ready((function(){var a=new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),c=navigator.userAgent;a.test(c)&&(h=!0),s?t("body").addClass("cht-in-mobile"):t("body").addClass("cht-in-desktop"),E(chaty_settings.has_chatway)&&t("body").addClass("csaas-has-chatway"),"undefined"==typeof chaty_settings?(console.log("Chaty settings doesn't exists"),chatyInterval=setInterval((function(){"object"==typeof chaty_settings&&(clearInterval(chatyInterval),"object"!=typeof chaty_settings||"on"==chaty_settings.data_analytics_settings&&"off"!=chaty_settings.data_analytics_settings||(h=!0),E(chaty_settings.has_chatway)&&t("body").addClass("csaas-has-chatway"),n=chaty_settings.chaty_widgets,_())}),1e3)):0==chaty_settings.chaty_widgets.length?console.log("Chaty widget doesn't exists"):(n=chaty_settings.chaty_widgets,_(),("object"==typeof chaty_settings&&"on"!=chaty_settings.data_analytics_settings||"off"==chaty_settings.data_analytics_settings)&&(h=!0)),t(window).height()>t(window).width()?t("body").addClass("cht-portrait").removeClass("cht-landscape"):t("body").addClass("cht-landscape").removeClass("cht-portrait"),t(document).on("click","html, body",(function(e){t(".chaty-popup-whatsapp-form.active").length&&t(".chaty-popup-whatsapp-form.active").each((function(){var e=t(this).data("widget"),a=R(e,"c-Whatsapp");B(e)&&0!=e||!a||G(e,"c-Whatsapp")})),t(".form-open").removeClass("form-open"),t(".chaty-outer-forms").removeClass("active"),t(".chaty .chaty-widget.chaty-no-close-button:not(.has-single)").addClass("chaty-open"),t(".chaty .chaty-widget").hasClass("chaty-open")&&(t(".chaty .chaty-widget:not(.chaty-no-close-button)").removeClass("chaty-open"),t("body").removeClass("add-bg-blur-effect")),t("body").removeClass("add-bg-blur-effect"),N("hide-bg-blur-effect",!0,365),P()})),t(document).on("click",".chaty, .chaty-outer-forms",(function(t){t.stopPropagation()})),t(document).on("click",".chaty.form-open .chaty-i-trigger.single-channel a",(function(e){t("body").removeClass("add-bg-blur-effect")})),t(document).on("click",".chaty.form-open .chaty-i-trigger.single-channel .chaty-cta-close",(function(e){t("body").removeClass("add-bg-blur-effect")})),t(document).on("click",".chaty-close-view-list",(function(){t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t("body").removeClass("add-bg-blur-effect"),N("hide-bg-blur-effect",!0,365),P()})),t(document).on("submit",".whatsapp-chaty-form",(function(){if(t(this).hasClass("form-google-analytics")){var e="Whatsapp";if(window.hasOwnProperty("gtag")&&gtag("event","chaty_"+e,{eventCategory:"chaty_"+e,event_action:"chaty_"+e,method:"chaty_"+e}),window.hasOwnProperty("ga")){var a=window.ga.getAll()[0];a&&a.send("event","click",{eventCategory:"chaty_"+e,eventAction:"chaty_"+e,method:"chaty_"+e})}}var c=t(this).data("widget"),n=t(this).data("channel"),i=R(c,"c-"+n);if((!B(c)||0==c)&&i){G(c,"c-"+n);var o=t("#chaty-widget-"+c).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:c,userId:c,isMobile:s,channel:n,nonce:o,action:"update_chaty_channel_click"},dataType:"json",method:"post"})}t("#chaty-widget-"+c).length&&(t("#chaty-widget-"+c).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+c).find(".chaty-widget").hasClass("cssas-no-close-button")&&t("#chaty-widget-"+c).find(".chaty-widget:not(.has-single)").addClass("chaty-open")),t("body").hasClass("add-bg-blur-effect")&&(t("body").removeClass("add-bg-blur-effect"),P())})),t(document).on("click",".chaty-close-button, .chaty-close-agent-list, .whatsapp-form-close-btn",(function(e){e.preventDefault(),e.stopPropagation();var a=t(this).closest(".chaty-outer-forms").data("widget");if(!B(a)||0==a){if(t("#chaty-widget-"+a).length&&(t("#chaty-widget-"+a).removeClass("form-open"),t(this).closest(".chaty-outer-forms").removeClass("active"),t("#chaty-widget-"+a).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+a).find(".chaty-widget:not(.has-single)").addClass("chaty-open")),t(this).closest(".chaty-whatsapp-btn-form").length){var c=t(this).closest(".chaty-outer-forms").data("channel");if(!B(c)){var n=R(a,"c-"+c);n&&G(a,"c-"+c)}R(a,"v-widget")&&k(a)}t(this).hasClass("whatsapp-form-close-btn")&&(n=R(a,"c-Whatsapp"),B(a)&&0!=a||!n||G(a,"c-Whatsapp"))}t("body").removeClass("add-bg-blur-effect")})),t(document).on("keypress",'.chaty-contact-input input[type="tel"]',(function(e){var a=e.which?e.which:e.keyCode;return 43==a&&""==t(this).val()||a>=48&&a<=57})),t(document).on("change",'.chaty-contact-input input[type="tel"]',(function(){var e=new RegExp(/^(\+)?\d*$/),a=t(this).val();e.test(a)||t(this).val("")})),t(document).on("click","a.chaty-qr-code-form",(function(e){e.preventDefault();var a=t(this).data("form");if(!B(a)&&t("#"+a).length){var c=t(this).html();t("#"+a).hasClass("active")?(t(this).closest(".chaty").find(".chaty-widget:not(.has-single)").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active"),t("body").removeClass("add-bg-blur-effect")):(t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),c=t(this).closest(".chaty").find(".chaty-widget .chaty-cta-close").find("button").html(),t(this).closest(".chaty").find(".open-chaty-channel").html(c))}})),t(document).on("click","a.chaty-contact-us-form",(function(e){e.preventDefault();var a=t(this).data("form");B(a)||t("#"+a).length&&(""!=googleV3Token&&(googleV3Token="",refreshG3Token()),t("#"+a).hasClass("active")?(t(this).closest(".chaty").find(".chaty-widget:not(.has-single)").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active"),t("body").removeClass("add-bg-blur-effect")):(t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t("#"+a).find(".chaty-ajax-success-message").remove(),t("#"+a).find(".chaty-ajax-error-message").remove(),t("#"+a).find(".has-chaty-error").removeClass("has-chaty-error"),buttonHtml=t(this).closest(".chaty").find(".chaty-widget .chaty-cta-close").find("button").html(),t(this).closest(".chaty").find(".open-chaty-channel").html(buttonHtml)))})),t(document).on("click","a.chaty-whatsapp-btn-form",(function(e){e.preventDefault();var a=t(this).data("form");if(!B(a)&&t("#"+a).length){if(t("#"+a).hasClass("active"))t(this).closest(".chaty").find(".chaty-widget:not(.has-single)").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active"),t("body").removeClass("add-bg-blur-effect"),setTimeout((function(){t("body").removeClass("add-bg-blur-effect")}),100);else{t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active");var c=t(this).closest(".chaty").find(".chaty-widget .chaty-cta-close").find("button").html();t(this).closest(".chaty").find(".chaty-widget").find(".open-chaty-channel").html(c)}setTimeout((function(){t(".chaty-whatsapp-btn-form.active .chaty-whatsapp-input").focus()}),100)}})),t(document).on("click",".chaty-channel.chaty-agent-button",(function(e){e.preventDefault();var a=t(this).data("form");if(!B(a)&&t("#"+a).length)if(t(this).closest(".chaty").find(".chaty-widget").hasClass("has-single"))t(this).closest(".chaty").hasClass("form-open")?(t(this).closest(".chaty").find(".chaty-widget:not(.has-single)").addClass("chaty-open"),t(this).closest(".chaty").removeClass("form-open"),t("#"+a).removeClass("active"),t("body").removeClass("add-bg-blur-effect")):(c=t(this).closest(".chaty").find(".chaty-widget .chaty-cta-close").find("button").html(),t("#"+a).addClass("is-active"),t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),t(this).closest(".chaty").find(".open-chaty-channel").html(c));else{var c=t(this).html();t("#"+a).addClass("is-active"),t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t(this).closest(".chaty").addClass("form-open"),t("#"+a).addClass("active"),c=t(this).closest(".chaty").find(".chaty-widget .chaty-cta-close").find("button").html(),t(this).closest(".chaty").find(".open-chaty-channel").html(c)}})),t(document).on("click",".chaty-channel a.has-gae",(function(a){var c=t(this).closest(".chaty-channel").data("channel");if(c!==e&&""!=c&&null!=c&&(window.hasOwnProperty("gtag")&&gtag("event","chaty_"+c,{eventCategory:"chaty_"+c,event_action:"chaty_"+c,method:"chaty_"+c}),window.hasOwnProperty("ga"))){var n=window.ga.getAll()[0];n&&n.send("event","click",{eventCategory:"chaty_"+c,eventAction:"chaty_"+c,method:"chaty_"+c})}})),t(document).on("mouseover",".chaty-widget.has-single .chaty-channel a.has-on-hover[data-hover]",(function(){t(this).find(".on-hover-text").text(t(this).data("hover"))})).on("mouseleave",".chaty-widget.has-single .chaty-channel a.has-on-hover[data-text]",(function(){t(this).find(".on-hover-text").html(t(this).data("text"))})),t(document).on("submit",".whatsapp-chaty-form.has-form-gae",(function(){var a=t(this).data("widget"),c=t("#Whatsapp-"+a+"-channel").data("channel");if(c!==e&&""!=c&&null!=c&&(window.hasOwnProperty("gtag")&&gtag("event","chaty_whatsapp_redirect",{eventCategory:"chaty_whatsapp_redirect",event_action:"chaty_whatsapp_redirect",method:"chaty_whatsapp_redirect"}),window.hasOwnProperty("ga"))){var n=window.ga.getAll()[0];n&&n.send("event","click",{eventCategory:"chaty_whatsapp_redirect",eventAction:"chaty_whatsapp_redirect",method:"chaty_whatsapp_redirect"})}})),t(document).on("click",".chaty-i-trigger:not(.single-channel)",(function(){t(this).closest(".chaty").hasClass("form-open")?(t(this).closest(".chaty").removeClass("form-open"),t(this).closest(".chaty-widget:not(.has-single)").addClass("chaty-open")):t(this).closest(".chaty-widget").toggleClass("chaty-open"),t(".chaty-outer-forms.active").each((function(){t(this).removeClass("active");var e=t(this).data("widget");t("#chaty-widget-"+e).removeClass("form-open")})),t(this).closest(".chaty").find(".chaty-widget").hasClass("chaty-no-close-button")&&t(this).closest(".chaty").find(".chaty-widget:not(.has-single)").addClass("chaty-open")})),t(document).on("click",".chaty-i-trigger.single-channel .chaty-cta-close",(function(){if(t(this).closest(".chaty").hasClass("form-open")){t(this).closest(".chaty").removeClass("form-open");var e=t(this).closest(".chaty").data("id");t("#chaty-form-"+e+"-Whatsapp").length&&t("#chaty-form-"+e+"-Whatsapp").hasClass("active")&&(clickStatus=R(e,"c-Whatsapp"),B(e)&&0!=e||!clickStatus||G(e,"c-Whatsapp"))}t(".chaty-outer-forms.active").each((function(){t(this).removeClass("active");var e=t(this).data("widget");t("#chaty-widget-"+e).removeClass("form-open")}))})),s||t(document).on("mouseover","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",(function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").hasClass("on-chaty-widget")||(t(this).closest(".chaty-widget").addClass("on-chaty-widget"),t(this).find(".chaty-cta-main").trigger("click"))})).on("mouseleave","body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)",(function(){t(this).closest(".chaty-widget").hasClass("chaty-open")||t(this).closest(".chaty-widget").removeClass("on-chaty-widget")})),t(document).on("click",".chaty-channel.single a",(function(){var e=t(this).closest(".chaty").data("id");t(this).closest(".chaty").hasClass("first_click")&&t(this).closest(".chaty-channel").removeClass("active"),v(e)})),t(document).on("click",".chaty-chatway-channel",(function(){"object"==typeof window.$chatway&&window.$chatway.openChatwayWidget()})),t(document).on("click",".chaty-channel a, .chaty-channel button",(function(e){var a,c;t(this).is("a")&&"#"==t(this).attr("href")&&e.preventDefault();var n=[],i=0,o=t(this).closest(".chaty").data("id");if(void 0!==o&&void 0!==t("#chaty-widget-"+o).data("identifier")){var l=t("#chaty-widget-"+o).data("user");if(v(o),t(this).closest(".chaty-channel").hasClass("chaty-cta-main")||t(this).closest(".chaty-channel").hasClass("chaty-cta-close")){if(t("#chaty-form-"+o+"-Whatsapp").length&&t("#chaty-form-"+o+"-Whatsapp").hasClass("active")&&(a=R(o,"c-Whatsapp"),B(o)&&0!=o||!a||G(o,"c-Whatsapp")),a=R(o,"c-widget"),t("#chaty-widget-"+o).find(".ch-pending-msg").remove(),a&&(G(o,"c-widget"),t(this).closest(".chaty-channel").hasClass("chaty-cta-main"))){n=[],t("#chaty-widget-"+o).hasClass("chaty-has-chat-view")?t(".chaty-chat-view.chaty-chat-view-"+o+" .chaty-view-channels").find(".chaty-channel").each((function(){c=t(this).data("channel"),(a=R(o,"v-"+c))&&void 0!==c&&(G(o,"v-"+c),n.push(c))})):t("#chaty-widget-"+o+" .chaty-channel-list").find(".chaty-channel").each((function(){c=t(this).data("channel"),(a=R(o,"v-"+c))&&void 0!==c&&(G(o,"v-"+c),n.push(c))}));var r=t("#chaty-widget-"+o).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channels:n,isSingle:0,nonce:r,action:"update_chaty_widget_click"},dataType:"json",method:"post"})}t("#chaty-widget-"+o).hasClass("first_click")&&(t("#chaty-widget-"+o+" .chaty-cta-main").removeClass("active"),t("#chaty-widget-"+o+" .chaty-cta-main").removeClass("chaty-tooltip"))}else if(t(this).closest(".chaty-channel").hasClass("single")){t("#chaty-widget-"+o).find(".ch-pending-msg").remove(),a=R(o,"c-widget");r=t("#chaty-widget-"+o).data("nonce");a&&(G(o,"c-widget"),i=0,n=[],c=t(this).closest(".chaty-channel").data("channel"),(a=R(o,"c-"+c))&&(n.push(c),i=1),h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channels:n,isSingle:i,nonce:r,action:"update_chaty_widget_click"},dataType:"json",method:"post"})),t("#chaty-widget-"+o).hasClass("first_click")&&(t("#chaty-widget-"+o+" .chaty-tooltip").removeClass("chaty-tooltip"),t("#chaty-widget-"+o+" .single-channel a").addClass("chaty-tooltip"))}else if(t(this).hasClass("chaty-link")&&(c=t(this).closest(".chaty-channel").data("channel"),a=R(o,"c-"+c))){G(o,"c-"+c);r=t("#chaty-widget-"+o).data("nonce");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channel:c,nonce:r,action:"update_chaty_channel_click"},dataType:"json",method:"post"})}}})),t(document).on("submit",".chaty-ajax-contact-form",(function(e){e.preventDefault();var a=0;if(t(this).find(".has-chaty-error").each((function(){t(this).removeClass("has-chaty-error")})),t(this).find(".chaty-error-msg").remove(),t(this).find(".chaty-ajax-error-message").remove(),t(this).find(".chaty-ajax-success-message").remove(),t(this).find(".is-required").each((function(){""==jQuery.trim(t(this).val())&&(a++,t(this).addClass("has-chaty-error"),t(this).hasClass("chaty-text-block")&&t(this).closest(".chaty-contact-input").find(".mce-tinymce").addClass("mce-error"))})),0==a){var c=t(this),n=c[0],i=new FormData(n);t(".chaty-submit-button").attr("disabled",!0),t("#chaty-submit-button-"+c.data("index")+" .chaty-loader").addClass("active"),jQuery.ajax({url:chaty_settings.ajax_url,enctype:"multipart/form-data",data:i,type:"post",dataType:"json",cache:!1,contentType:!1,processData:!1,success:function(e){if(""!=googleV3Token&&(googleV3Token="",refreshG3Token()),t(".chaty-ajax-error-message").remove(),t(".chaty-ajax-success-message").remove(),t(".chaty-submit-button").attr("disabled",!1),1==e.status){if(t("#chaty-submit-button-"+c.data("index")+" .chaty-loader").removeClass("active"),t(".chaty-contact-inputs").append("<div class='chaty-ajax-success-message'>"+e.message+"</div>"),t(".chaty-ajax-contact-form").find(".chaty-contact-input .mce-tinymce").removeClass("mce-error"),t(".field-name, .field-email, .field-message, .field-phone").val(""),t(".chaty-ajax-contact-form").find(".chaty-input-field").val(""),t(".chaty-ajax-contact-form").find(".chaty-textarea-field").val(""),t("#"+c.find(".chaty-text-block").attr("id")+"_ifr").contents().find("body").html(""),"yes"==e.redirect_action)if("yes"==e.link_in_new_tab)null==window.open(e.redirect_link,"_blank")&&window.open(e.redirect_link);else window.location=e.redirect_link;"yes"==e.close_form_after&&setTimeout((function(){if(t(".chaty-outer-forms.active").length){var e=t(".chaty-outer-forms.active").data("widget");B(e)&&0!=e||t("#chaty-widget-"+e).length&&(t("#chaty-widget-"+e).removeClass("form-open"),t("body").removeClass("add-bg-blur-effect"),t(".chaty-outer-forms.active").removeClass("active"),t("#chaty-widget-"+e).find(".chaty-widget").hasClass("chaty-no-close-button")&&t("#chaty-widget-"+e).find(".chaty-widget:not(.has-single)").addClass("chaty-open"))}}),1e3*parseInt(e.close_form_after_seconds))}else if(1==e.error){if(e.errors.length)for(var a=0;a<e.errors.length;a++)t("."+e.errors[a].field).addClass("has-chaty-error"),t("."+e.errors[a].field).after("<span class='chaty-error-msg'>"+e.errors[a].message+"</span>");t(".chaty-loader").removeClass("active")}else 0==e.status&&(t(".chaty-contact-inputs").append("<div class='chaty-ajax-error-message'>"+e.message+"</div>"),t(".chaty-loader").removeClass("active"));t(".email_suggestion").html("")}})}else t(".has-chaty-error:first").focus();return!1})),t(document).on("blur",".chaty-contact-form-box .field-email",(function(e){var a=t(this).closest(".chaty-contact-form-box").data("widget");t(this).mailcheck({suggested:function(e,c){t("#email_suggestion"+a).html("Did you mean <b><i>"+c.full+"</b></i>?")},empty:function(e){t("#email_suggestion"+a).html("")}})})),t(".chaty-contact-form-box .field-email").length&&t(".chaty-contact-form-box .field-email").emailautocomplete({domains:["protonmail.com","yahoo.com","gmail.com"]}),t(document).on("click",".email_suggestion i",(function(){t(this).closest(".chaty-contact-form-box").find(".field-email").val(t(this).text()).focus(),jQuery(this).closest(".email_suggestion").html("")})),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel",(function(){window.location=t(this).find("a").prop("href")})),t(document).on("click",".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel a, .picmo__popupContainer",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),t(document).on("click",".chaty-wp-emoji-input",(function(){if(t(".picmo__popupContainer").length);else{const{createPopup:e}=window.picmoPopup,a=document.querySelector("#chaty_whatsapp_input"),c=e({},{referenceElement:a,triggerElement:a,position:"top",hideOnEmojiSelect:!1});c.toggle(),c.addEventListener("emoji:select",(e=>{t(".chaty-whatsapp-input").val(t(".chaty-whatsapp-input").val()+e.emoji)}))}})),t(document).on("click","#chaty_whatsapp_input",(function(){t(".picmo__popupContainer").length&&t(".picmo__popupContainer").remove()}))})),t(window).resize((function(){t(window).height()>t(window).width()?t("body").addClass("cht-portrait").removeClass("cht-landscape"):t("body").addClass("cht-landscape").removeClass("cht-portrait")}))}));var googleV3Token="";function onloadCallbackChatyV3(){var t=jQuery(".v3_site_key").val();t&&""==googleV3Token&&grecaptcha.ready((function(){grecaptcha.execute(t,{action:"contact_form"}).then((function(t){googleV3Token=t}))}))}function refreshG3Token(){if("function"==typeof grecaptcha||"object"==typeof grecaptcha){var t=jQuery(".v3_site_key").val();t&&""==googleV3Token&&grecaptcha.ready((function(){grecaptcha.execute(t,{action:"contact_form"}).then((function(t){googleV3Token=t}))}))}}function onloadChatyCallback(){jQuery(".v2_site_key").length&&""!=jQuery(".v2_site_key").val()&&jQuery(".front-google-captcha").length&&jQuery(".front-google-captcha:not(.loaded)").each((function(){var t=jQuery(this).attr("id");jQuery(this).addClass("loaded"),document.getElementById(t)&&grecaptcha.render(t,{sitekey:jQuery(".v2_site_key").val()})}))};
(()=>{var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var k=S((exports,module)=>{(function(){var e=["DOMMouseScroll","mousewheel"];if(jQuery.event.fixHooks)for(var t=e.length;t;)jQuery.event.fixHooks[e[--t]]=jQuery.event.mouseHooks;jQuery.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=e.length;n;)this.addEventListener(e[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=e.length;n;)this.removeEventListener(e[--n],i,!1);else this.onmousewheel=null}},jQuery.fn.extend({mousewheel:function(n){return n?this.on("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.off("mousewheel",n)},iLightBoxOuterHeight:function(...n){return this.outerHeight(...n)||null},iLightBoxOuterWidth:function(...n){return this.outerWidth(...n)||null}});function i(n){var o=n||window.event,r=[].slice.call(arguments,1),a=0,l=0,s=0;return n=jQuery.event.fix(o),n.type="mousewheel",o.wheelDelta&&(a=o.wheelDelta/120),o.detail&&(a=-o.detail/3),s=a,o.axis!==void 0&&o.axis===o.HORIZONTAL_AXIS&&(s=0,l=-1*a),o.wheelDeltaY!==void 0&&(s=o.wheelDeltaY/120),o.wheelDeltaX!==void 0&&(l=-1*o.wheelDeltaX/120),r.unshift(n,a,l,s),(jQuery.event.dispatch||jQuery.event.handle).apply(this,r)}})();var varUnknown,verticalDistanceThreshold=100;function fnGetElementDimension(e,t){return parseInt(e.css(t),10)||0}function fnGetWindowDimensions(){var e=window,t="inner";return"innerWidth"in window||(t="client",e=document.documentElement||document.body),{width:e[t+"Width"],height:e[t+"Height"]}}function fnScrollToPageOffset(){var e=fnGetPageOffset();window.location.hash="",window.scrollTo(e.x,e.y)}function fnGetMediaUrls(e){var t=[];return jQuery("*",e).each(function(){var i="";if(jQuery(this).css("background-image")!="none"?i=jQuery(this).css("background-image"):typeof jQuery(this).attr("src")!="undefined"&&this.nodeName.toLowerCase()=="img"&&(i=jQuery(this).attr("src")),i.indexOf("gradient")==-1){i=i.replace(/url\("/g,""),i=i.replace(/url\(/g,""),i=i.replace(/"\)/g,""),i=i.replace(/\)/g,""),i=i.split(",");for(var n=0;n<i.length;n++)if(0<i[n].length&&jQuery.inArray(i[n],t)==-1){var o="";varBrowserDetection.msie&&9>varBrowserDetection.version&&(o="?"+Math.floor(3e3*Math.random())),t.push(i[n]+o)}}}),t}function fnTrimFileExt(e,t){var i=e.replace(/^.*[/\\]/g,"");return typeof t=="string"&&i.substr(i.length-t.length)==t&&(i=i.substr(0,i.length-t.length)),i}function fnIdentifyFileExt(e,t){var i="",n="",o=0,r={},a=0,l=0,s=a=!1,c=!1;if(!e)return!1;t||(t="PATHINFO_ALL");var h={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(n in h)h.PATHINFO_ALL|=h[n];if(typeof t!="number"){for(t=[].concat(t),l=0;l<t.length;l++)h[t[l]]&&(o=o|h[t[l]]);t=o}n=function(u){u=u+"";var d=u.lastIndexOf(".")+1;return d?d!==u.length?u.substr(d):"":!1},t&h.PATHINFO_DIRNAME&&(o=e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,""),r.dirname=o===e?".":o),t&h.PATHINFO_BASENAME&&(a===!1&&(a=fnTrimFileExt(e)),r.basename=a),t&h.PATHINFO_EXTENSION&&(a===!1&&(a=fnTrimFileExt(e)),s===!1&&(s=n(a)),s!==!1&&(r.extension=s)),t&h.PATHINFO_FILENAME&&(a===!1&&(a=fnTrimFileExt(e)),s===!1&&(s=n(a)),c===!1&&(c=a.slice(0,a.length-(s?s.length+1:s===!1?0:1))),r.filename=c),a=0;for(i in r)a++;return a==1?r[i]:r}function fnIdentifyItemTypeFromURL(e){return e=fnIdentifyFileExt(e,"PATHINFO_EXTENSION"),e=jQuery.isPlainObject(e)?null:String(e).toLowerCase(),0<=varMediaTypes.image.indexOf(e)?"image":0<=varMediaTypes.flash.indexOf(e)?"flash":0<=varMediaTypes.video.indexOf(e)?"video":"iframe"}function fnParseInt(e,t){return parseInt(t/100*e)}function fnPhoneHomeSourceCheck(e,t){jQuery.ajax({url:"http://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),dataType:"jsonp"}).error(function(){t(!1)})}function fnParseUrl(e){return String(e).replace(/^\s+|\s+$/g,"").match(/^([^:/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/)?{href:e[0]||"",protocol:e[1]||"",authority:e[2]||"",host:e[3]||"",hostname:e[4]||"",port:e[5]||"",pathname:e[6]||"",search:e[7]||"",hash:e[8]||""}:null}function fnNormalizeUrl(e,t){function i(n){var o=[];return n.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^/]*/g,function(r){r==="/.."?o.pop():o.push(r)}),o.join("").replace(/^\//,n.charAt(0)==="/"?"/":"")}return t=fnParseUrl(t||""),e=fnParseUrl(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+i(t.protocol||t.authority||t.pathname.charAt(0)==="/"?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function fnGetPageOffset(){var e=0,t=0;return typeof window.pageYOffset=="number"?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{x:e,y:t}}function fnMakeAttrFromObject(e,t,i){var n;return n=varEmbedElement[e+t],n==null&&(n=varEmbedElement[t]),n!=null?(t.indexOf(e)==0&&i==null&&(i=t.substring(e.length)),i==null&&(i=t),i+'="'+n+'" '):""}function fnMakeAttr(e,t){return e.indexOf("emb#")==0?"":(e.indexOf("obj#")==0&&t==null&&(t=e.substring(4)),fnMakeAttrFromObject("obj#",e,t))}function fnMakeAttr2(e,t){return e.indexOf("obj#")==0?"":(e.indexOf("emb#")==0&&t==null&&(t=e.substring(4)),fnMakeAttrFromObject("emb#",e,t))}function fnMakeAttr3(e,t){var i,n="",o=t?" />":">";return e.indexOf("emb#")==-1&&(i=varEmbedElement["obj#"+e],i==null&&(i=varEmbedElement[e]),e.indexOf("obj#")==0&&(e=e.substring(4)),i!=null&&(n='  <param name="'+e+'" value="'+i+'"'+o+`
`)),n}function fnCleanAttrs(){for(var e=0;e<arguments.length;e++){var t=arguments[e];delete varEmbedElement[t],delete varEmbedElement["emb#"+t],delete varEmbedElement["obj#"+t]}}function fnCreateEmbedObject(){var e;e="QT_GenerateOBJECTText";var t=arguments;if(4>t.length||t.length%2!=0)t=varErroeMessage1,t=t.replace("%%",e),alert(t),e="";else{varEmbedElement=[],varEmbedElement.src=t[0],varEmbedElement.width=t[1],varEmbedElement.height=t[2],varEmbedElement.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",varEmbedElement.pluginspage="http://www.apple.com/quicktime/download/",e=t[3],(e==null||e=="")&&(e="6,0,2,0"),varEmbedElement.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+e;for(var i,n=4;n<t.length;n=n+2)i=t[n].toLowerCase(),e=t[n+1],i=="name"||i=="id"?varEmbedElement.name=e:varEmbedElement[i]=e;t="<object "+fnMakeAttr("classid")+fnMakeAttr("width")+fnMakeAttr("height")+fnMakeAttr("codebase")+fnMakeAttr("name","id")+fnMakeAttr("tabindex")+fnMakeAttr("hspace")+fnMakeAttr("vspace")+fnMakeAttr("border")+fnMakeAttr("align")+fnMakeAttr("class")+fnMakeAttr("title")+fnMakeAttr("accesskey")+fnMakeAttr("noexternaldata")+`>
`+fnMakeAttr3("src",!1),n="  <embed "+fnMakeAttr2("src")+fnMakeAttr2("width")+fnMakeAttr2("height")+fnMakeAttr2("pluginspage")+fnMakeAttr2("name")+fnMakeAttr2("align")+fnMakeAttr2("tabindex"),fnCleanAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(i in varEmbedElement)e=varEmbedElement[i],e!=null&&(n=n+fnMakeAttr2(i),t=t+fnMakeAttr3(i,!1));e=t+n+`> </embed>
</object>`}return e}function fnMakeHashUri(e){return e=e||window.location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var varMediaTypes={flash:"swf",image:"bmp gif jpeg jpg png tiff tif jfif jpe",iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt",video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v"},$window=jQuery(window),$document=jQuery(document),varBrowserDetection,varPropTransform,varPropPerspective,varFullscreenState="",varHasTouchEvents="ontouchstart"in window,varEventClick=varHasTouchEvents?"itap.iLightBox":"click.iLightBox",varEventMousedown=varHasTouchEvents?"touchstart.iLightBox":"mousedown.iLightBox",varEventMouseup=varHasTouchEvents?"touchend.iLightBox":"mouseup.iLightBox",varEventMouseMove=varHasTouchEvents?"touchmove.iLightBox":"mousemove.iLightBox",iLightBoxClass=function(e,t,i,n){var o=this;o.options=t,o.selector=e.selector||e,o.context=e.context,o.instant=n,1>i.length?o.attachItems():o.items=i,o.vars={total:o.items.length,start:0,current:null,next:null,prev:null,BODY:jQuery("body"),loadRequests:0,overlay:jQuery('<div class="ilightbox-overlay"></div>'),loader:jQuery('<div class="ilightbox-loader"><div></div></div>'),toolbar:jQuery('<div class="ilightbox-toolbar"></div>'),innerToolbar:jQuery('<div class="ilightbox-inner-toolbar"></div>'),title:jQuery('<div class="ilightbox-title"></div>'),closeButton:jQuery('<a class="ilightbox-close" title="'+o.options.text.close+'"></a>'),fullScreenButton:jQuery('<a class="ilightbox-fullscreen" title="'+o.options.text.enterFullscreen+'"></a>'),innerPlayButton:jQuery('<a class="ilightbox-play" title="'+o.options.text.slideShow+'"></a>'),innerNextButton:jQuery('<a class="ilightbox-next-button" title="'+o.options.text.next+'"></a>'),innerPrevButton:jQuery('<a class="ilightbox-prev-button" title="'+o.options.text.previous+'"></a>'),holder:jQuery('<div class="ilightbox-holder" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:jQuery('<div class="ilightbox-holder ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:jQuery('<div class="ilightbox-holder ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:jQuery('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+o.options.text.next+'"><span></span></a>'),prevButton:jQuery('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+o.options.text.previous+'"><span></span></a>'),thumbnails:jQuery('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},o.vars.hideableElements=o.vars.nextButton.add(o.vars.prevButton),o.normalizeItems(),o.availPlugins(),o.options.startFrom=0<o.options.startFrom&&o.options.startFrom>=o.vars.total?o.vars.total-1:o.options.startFrom,o.options.startFrom=o.options.randomStart?Math.floor(Math.random()*o.vars.total):o.options.startFrom,o.vars.start=o.options.startFrom,n?o.instantCall():o.patchItemsEvents(),o.options.linkId&&(o.hashChangeHandler(),$window.iLightBoxHashChange(function(){o.hashChangeHandler()})),varHasTouchEvents&&(e=/(click|mouseenter|mouseleave|mouseover|mouseout)/ig,o.options.caption.show=o.options.caption.show.replace(e,"itap"),o.options.caption.hide=o.options.caption.hide.replace(e,"itap"),o.options.social.show=o.options.social.show.replace(e,"itap"),o.options.social.hide=o.options.social.hide.replace(e,"itap")),o.options.controls.arrows&&jQuery.extend(o.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};iLightBoxClass.prototype={showLoader:function(){this.vars.loadRequests+=1,this.options.path.toLowerCase()=="horizontal"?this.vars.loader.stop().animate({top:"-30px"},this.options.show.speed):this.vars.loader.stop().animate({left:"-30px"},this.options.show.speed)},hideLoader:function(){this.vars.loadRequests-=1,this.vars.loadRequests=0>this.vars.loadRequests?0:this.vars.loadRequests,this.options.path.toLowerCase()=="horizontal"?0>=this.vars.loadRequests&&this.vars.loader.stop().animate({top:"-192px"},this.options.show.speed,"easeInCirc"):0>=this.vars.loadRequests&&this.vars.loader.stop().animate({left:"-192px"},this.options.show.speed,"easeInCirc")},createUI:function(){var e=this;e.ui={currentElement:e.vars.holder,nextElement:e.vars.nextPhoto,prevElement:e.vars.prevPhoto,currentItem:e.vars.current,nextItem:e.vars.next,prevItem:e.vars.prev,hide:function(){e.closeAction()},refresh:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var item=this,itemObjects=[],items=[];jQuery(item.selector,item.context).each(function(){var $this=jQuery(this),URL=$this.attr(item.options.attr)||null,options=$this.data("options")&&eval("({"+$this.data("options")+"})")||{},caption=$this.data("caption"),title=$this.data("title"),type=$this.data("type")||fnIdentifyItemTypeFromURL(URL);items.push({URL,caption,title,type,options}),item.instant||itemObjects.push($this)}),item.items=items,item.itemsObject=itemObjects},normalizeItems:function(){var e=this,t=[];jQuery.each(e.items,function(i,n){typeof n=="string"&&(n={url:n});var o=n.url||n.URL||null,r=n.options||{},a=n.caption||null,l=n.title||null,s=n.type?n.type.toLowerCase():fnIdentifyItemTypeFromURL(o),c=typeof o!="object"?fnIdentifyFileExt(o,"PATHINFO_EXTENSION"):"";r.thumbnail=r.thumbnail||(s=="image"?o:null),r.videoType=r.videoType||null,r.skin=r.skin||e.options.skin,r.width=r.width||null,r.height=r.height||null,r.mousewheel=typeof r.mousewheel!="undefined"?r.mousewheel:!0,r.swipe=typeof r.swipe!="undefined"?r.swipe:!0,r.social=typeof r.social!="undefined"?r.social:e.options.social.buttons&&jQuery.extend({},{},e.options.social.buttons),s=="video"&&(r.html5video=typeof r.html5video!="undefined"?r.html5video:{},r.html5video.webm=r.html5video.webm||r.html5video.WEBM||null,r.html5video.controls=typeof r.html5video.controls!="undefined"?r.html5video.controls:"controls",r.html5video.preload=r.html5video.preload||"metadata",r.html5video.autoplay=typeof r.html5video.autoplay!="undefined"?r.html5video.autoplay:!1),r.width&&r.height||(s=="video"?(r.width=1280,r.height=720):s=="iframe"?(r.width="100%",r.height="90%"):s=="flash"&&(r.width=1280,r.height=720)),delete n.url,n.URL=o,n.caption=a,n.title=l,n.type=s,n.options=r,n.ext=c,t.push(n)}),e.items=t},instantCall:function(){var e=this.vars.start;this.vars.current=e,this.vars.next=this.items[e+1]?e+1:null,this.vars.prev=this.items[e-1]?e-1:null,this.addContents(),this.patchEvents()},addContents:function(){var e=this,t=e.vars,i=e.options,n=fnGetWindowDimensions(),o=i.path.toLowerCase();i.mobileOptimizer&&!i.innerToolbar&&(t.isMobile=n.width<=t.mobileMaxWidth),t.overlay.addClass(i.skin).hide().css({opacity:i.overlay.opacity}),i.linkId&&t.overlay.attr("linkid",i.linkId),i.controls.toolbar&&(t.toolbar.addClass(i.skin).append(t.closeButton),i.controls.fullscreen&&t.toolbar.append(t.fullScreenButton),i.controls.slideshow&&t.toolbar.append(t.innerPlayButton),1<t.total&&t.toolbar.append(t.innerPrevButton).append(t.innerNextButton)),t.BODY.addClass("ilightbox-noscroll").append(t.overlay).append(t.loader).append(t.holder).append(t.nextPhoto).append(t.prevPhoto),i.innerToolbar||t.BODY.append(t.toolbar),i.controls.arrows&&t.BODY.append(t.nextButton).append(t.prevButton),i.controls.thumbnail&&1<t.total&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(i.skin).addClass("ilightbox-"+o),jQuery("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0),n=i.path.toLowerCase()=="horizontal"?{left:parseInt(n.width/2-t.loader.iLightBoxOuterWidth()/2)}:{top:parseInt(n.height/2-t.loader.iLightBoxOuterHeight()/2)},t.loader.addClass(i.skin).css(n),t.nextButton.add(t.prevButton).addClass(i.skin),o=="horizontal"&&t.loader.add(t.nextButton).add(t.prevButton).addClass("horizontal"),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),i.infinite||(t.prevButton.add(t.prevButton).add(t.innerPrevButton).add(t.innerNextButton).removeClass("disabled"),i.startFrom!=0&&t.current!=0||t.prevButton.add(t.innerPrevButton).addClass("disabled"),(i.startFrom>=t.total-1||t.current>=t.total-1)&&t.nextButton.add(t.innerNextButton).addClass("disabled")),i.show.effect?setTimeout(function(){e.generateBoxes()},i.show.speed):e.generateBoxes(),i.show.effect?(t.overlay.stop().fadeIn(i.show.speed),t.toolbar.stop().fadeIn(i.show.speed)):(t.overlay.show(),t.toolbar.show());var r=t.total;i.smartRecognition&&1<t.total&&jQuery.each(e.items,function(a){var l=e.items[a];e.ogpRecognition(l,function(s){s&&jQuery.extend(!0,l,{type:s.type,options:{html5video:s.html5video,width:s.type=="image"?0:s.width||l.width,height:s.type=="image"?0:s.height||l.height,thumbnail:l.options.thumbnail||s.thumbnail}}),r--,r==0&&(t.dontGenerateThumbs=!1,e.generateThumbnails())})}),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(a){e.goTo(a)},refresh:function(){e.refresh()},reposition:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(a){e.setOption(a)},destroy:function(){e.closeAction(),e.dispatchItemsEvents()}},i.linkId&&(t.hashLock=!0,window.location.hash=i.linkId+"/"+t.current,setTimeout(function(){t.hashLock=!1},55)),i.slideshow.startPaused||(e.resume(),t.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),typeof e.options.callback.onOpen=="function"&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,i){var n=this,o,r;switch(n.createUI(),e.speed=i||n.options.effects.loadedFadeSpeed,t=="current"&&(n.vars.lockWheel=!e.options.mousewheel,n.vars.lockSwipe=!e.options.swipe),t){case"current":o=n.vars.holder,r=n.vars.current;break;case"next":o=n.vars.nextPhoto,r=n.vars.next;break;case"prev":o=n.vars.prevPhoto,r=n.vars.prev}if(o.removeAttr("style class").addClass("ilightbox-holder").addClass(e.options.skin),jQuery("div.ilightbox-inner-toolbar",o).remove(),e.title||n.options.innerToolbar){if(i=n.vars.innerToolbar.clone(),e.title&&n.options.show.title){var a=n.vars.title.clone();a.empty().html(e.title),i.append(a)}n.options.innerToolbar&&i.append(1<n.vars.total?n.vars.toolbar.clone():n.vars.toolbar),o.prepend(i)}n.options.smartRecognition||e.options.smartRecognition?n.ogpRecognition(e,function(l){var s=e,c=jQuery.extend({},e,{});l&&(e=jQuery.extend(!0,e,{type:l.type,options:{html5video:l.html5video,width:l.type=="image"?0:l.width||e.width,height:l.type=="image"?0:l.height||e.height,thumbnail:e.options.thumbnail||l.thumbnail}}),s=jQuery.extend({},e,{URL:l.source}),e.options.smartRecognition&&!c.options.thumbnail&&(n.vars.dontGenerateThumbs=!1,n.generateThumbnails())),n.loadSwitcher(s,o,r,t)}):n.loadSwitcher(e,o,r,t)},loadSwitcher:function(e,t,i,n){var o=this,r=o.options,a={element:t,position:i},l;switch(e.type){case"image":typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(e.URL,function(f){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),t.data({naturalWidth:f?f.width:400,naturalHeight:f?f.height:200}),jQuery("div.ilightbox-container",t).empty().append(f?'<img src="'+e.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+r.errors.loadImage+"</span>"),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),o.addContent(t,e),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t);break;case"iframe":o.showLoader(),t.data({naturalWidth:e.options.width,naturalHeight:e.options.height});var s=o.addContent(t,e);typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),l=function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.hideLoader(),o.configureHolder(e,n,t),s.off("load")},s[0].contentDocument.readyState==="complete"?l():s.on("load",function(){l(),s.off("load")});break;case"inline":s=jQuery(e.URL);var c=o.addContent(t,e),h=fnGetMediaUrls(t);t.data({naturalWidth:o.items[i].options.width||s.iLightBoxOuterWidth(),naturalHeight:o.items[i].options.height||s.iLightBoxOuterHeight()}),c.children().eq(0).show(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(h,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.configureHolder(e,n,t)});break;case"flash":s=o.addContent(t,e),t.data({naturalWidth:o.items[i].options.width||s.iLightBoxOuterWidth(),naturalHeight:o.items[i].options.height||s.iLightBoxOuterHeight()}),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),o.configureHolder(e,n,t);break;case"ajax":var u=e.options.ajax||{};typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.showLoader(),jQuery.ajax({url:e.URL||r.ajaxSetup.url,data:u.data||null,dataType:u.dataType||"html",type:u.type||r.ajaxSetup.type,cache:u.cache||r.ajaxSetup.cache,crossDomain:u.crossDomain||r.ajaxSetup.crossDomain,global:u.global||r.ajaxSetup.global,ifModified:u.ifModified||r.ajaxSetup.ifModified,username:u.username||r.ajaxSetup.username,password:u.password||r.ajaxSetup.password,beforeSend:u.beforeSend||r.ajaxSetup.beforeSend,complete:u.complete||r.ajaxSetup.complete,success:function(f,m,b){o.hideLoader();var g=jQuery(f),y=jQuery("div.ilightbox-container",t),w=o.items[i].options.width||parseInt(g.attr("width")),x=o.items[i].options.height||parseInt(g.attr("height")),L=g.attr("width")&&g.attr("height")?{overflow:"hidden"}:{};y.empty().append(jQuery('<div class="ilightbox-wrapper"></div>').css(L).html(g)),t.show().data({naturalWidth:w||y.iLightBoxOuterWidth(),naturalHeight:x||y.iLightBoxOuterHeight()}).hide(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),g=fnGetMediaUrls(t),o.loadImage(g,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.configureHolder(e,n,t)}),r.ajaxSetup.success(f,m,b),typeof u.success=="function"&&u.success(f,m,b)},error:function(f,m,b){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),o.hideLoader(),jQuery("div.ilightbox-container",t).empty().append('<span class="ilightbox-alert">'+r.errors.loadContents+"</span>"),o.configureHolder(e,n,t),r.ajaxSetup.error(f,m,b),typeof u.error=="function"&&u.error(f,m,b)}});break;case"html":c=e.URL;var d=jQuery("div.ilightbox-container",t);c[0].nodeName?s=c.clone():(c=jQuery(c),s=c.selector?jQuery("<div>"+c+"</div>"):c);var v=o.items[i].options.width||parseInt(s.attr("width")),p=o.items[i].options.height||parseInt(s.attr("height"));o.addContent(t,e),s.appendTo(document.documentElement).hide(),typeof r.callback.onRender=="function"&&r.callback.onRender.call(o,o.ui,i),typeof e.options.onRender=="function"&&e.options.onRender.call(o,a),h=fnGetMediaUrls(t),typeof r.callback.onBeforeLoad=="function"&&r.callback.onBeforeLoad.call(o,o.ui,i),typeof e.options.onBeforeLoad=="function"&&e.options.onBeforeLoad.call(o,a),o.loadImage(h,function(){typeof r.callback.onAfterLoad=="function"&&r.callback.onAfterLoad.call(o,o.ui,i),typeof e.options.onAfterLoad=="function"&&e.options.onAfterLoad.call(o,a),t.show().data({naturalWidth:v||d.iLightBoxOuterWidth(),naturalHeight:p||d.iLightBoxOuterHeight()}).hide(),s.remove(),o.configureHolder(e,n,t)})}},configureHolder:function(e,t,i){var n=this,o=n.vars,r=n.options;if(t!="current"&&(t=="next"?i.addClass("ilightbox-next"):i.addClass("ilightbox-prev")),t=="current")var a=o.current;else if(t=="next"){var l=r.styles.nextOpacity;a=o.next}else l=r.styles.prevOpacity,a=o.prev;var s={element:i,position:a};n.items[a].options.width=n.items[a].options.width||0,n.items[a].options.height=n.items[a].options.height||0,t=="current"?r.show.effect?i.css(varPropTransform,varPropPerspective).fadeIn(e.speed,function(){if(i.css(varPropTransform,""),e.caption){n.setCaption(e,i);var c=jQuery("div.ilightbox-caption",i),h=parseInt(c.iLightBoxOuterHeight()/i.iLightBoxOuterHeight()*100);r.caption.start&50>=h&&c.fadeIn(r.effects.fadeSpeed)}c=e.options.social,c&&(n.setSocial(c,e.URL,i),r.social.start&&jQuery("div.ilightbox-social",i).fadeIn(r.effects.fadeSpeed)),n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)}):(i.show(),n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)):r.show.effect?i.fadeTo(e.speed,l,function(){t=="next"?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)}):(i.css({opacity:l}).show(),t=="next"?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),typeof r.callback.onShow=="function"&&r.callback.onShow.call(n,n.ui,a),typeof e.options.onShow=="function"&&e.options.onShow.call(n,s)),setTimeout(function(){n.repositionPhoto()},0)},generateBoxes:function(){var e=this.vars,t=this.options;t.infinite&&3<=e.total?(e.current==e.total-1&&(e.next=0),e.current==0&&(e.prev=e.total-1)):t.infinite=!1,this.loadContent(this.items[e.current],"current",t.show.speed),this.items[e.next]&&this.loadContent(this.items[e.next],"next",t.show.speed),this.items[e.prev]&&this.loadContent(this.items[e.prev],"prev",t.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,i=e.options,n=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var o=t.thumbnails,r=jQuery("div.ilightbox-thumbnails-container",o),a=jQuery("div.ilightbox-thumbnails-grid",r),l=0;a.removeAttr("style").empty(),jQuery.each(e.items,function(s,c){var h=t.current==s?"ilightbox-active":"",u=t.current==s?i.thumbnails.activeOpacity:i.thumbnails.normalOpacity,d=c.options.thumbnail,v=jQuery('<div class="ilightbox-thumbnail"></div>'),p=jQuery('<div class="ilightbox-thumbnail-icon"></div>');v.css({opacity:0}).addClass(h),c.type!="video"&&c.type!="flash"||typeof c.options.icon!="undefined"?c.options.icon&&(p.addClass("ilightbox-thumbnail-"+c.options.icon),v.append(p)):(p.addClass("ilightbox-thumbnail-video"),v.append(p)),d&&e.loadImage(d,function(f){l++,f?v.data({naturalWidth:f.width,naturalHeight:f.height}).append('<img src="'+d+'" border="0" />'):v.data({naturalWidth:i.thumbnails.maxWidth,naturalHeight:i.thumbnails.maxHeight}),clearTimeout(n),n=setTimeout(function(){e.positionThumbnails(o,r,a)},20),setTimeout(function(){v.fadeTo(i.effects.loadedFadeSpeed,u)},20*l)}),a.append(v)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,i){var n=this,o=n.vars,r=n.options,a=fnGetWindowDimensions(),l=r.path.toLowerCase();e||(e=o.thumbnails),t||(t=jQuery("div.ilightbox-thumbnails-container",e)),i||(i=jQuery("div.ilightbox-thumbnails-grid",t));var s=jQuery(".ilightbox-thumbnail",i);o=l=="horizontal"?a.width-r.styles.pageOffsetX:s.eq(0).iLightBoxOuterWidth()-r.styles.pageOffsetX,a=l=="horizontal"?s.eq(0).iLightBoxOuterHeight()-r.styles.pageOffsetY:a.height-r.styles.pageOffsetY;var c=l=="horizontal"?0:o,h=l=="horizontal"?a:0,u=jQuery(".ilightbox-active",i),d={};3>arguments.length&&(s.css({opacity:r.thumbnails.normalOpacity}),u.css({opacity:r.thumbnails.activeOpacity})),s.each(function(p){p=jQuery(this);var f=p.data(),m=l=="horizontal"?0:r.thumbnails.maxWidth,b=l=="horizontal"?r.thumbnails.maxHeight:0,g=n.getNewDimenstions(m,b,f.naturalWidth,f.naturalHeight,!0);p.css({width:g.width,height:g.height}),l=="horizontal"&&p.css({float:"left"}),l=="horizontal"?c=c+p.iLightBoxOuterWidth():h=h+p.iLightBoxOuterHeight()}),d={width:c,height:h},i.css(d),d={},s=i.offset();var v=u.length?u.offset():{top:parseInt(a/2),left:parseInt(o/2)};s.top-=$document.scrollTop(),s.left-=$document.scrollLeft(),v.top=v.top-s.top-$document.scrollTop(),v.left=v.left-s.left-$document.scrollLeft(),l=="horizontal"?(d.top=0,d.left=parseInt(o/2-v.left-u.iLightBoxOuterWidth()/2)):(d.top=parseInt(a/2-v.top-u.iLightBoxOuterHeight()/2),d.left=0),3>arguments.length?i.stop().animate(d,r.effects.repositionSpeed,"easeOutCirc"):i.css(d)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var i=this,n=e.length;0<n?(i.showLoader(),jQuery.each(e,function(o){var r=new Image;r.onload=function(){n=n-1,n==0&&(i.hideLoader(),t(r))},r.onerror=r.onabort=function(){n=n-1,n==0&&(i.hideLoader(),t(!1))},r.src=e[o]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,i=varHasTouchEvents?"itap.iLightBox":"click.iLightBox",n=varHasTouchEvents?"click.iLightBox":"itap.iLightBox";jQuery.each(e.itemsObject,function(o,r){r.on(i,function(){return t.current=o,t.next=e.items[o+1]?o+1:null,t.prev=e.items[o-1]?o-1:null,e.addContents(),e.patchEvents(),!1}).on(n,function(){return!1})})},dispatchItemsEvents:function(){jQuery.each(this.itemsObject,function(e,t){t.off(".iLightBox")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){function e(c){c.type!=="mousemove"||i.isMobile||(i.mouseID||i.hideableElements.show(),i.mouseID=clearTimeout(i.mouseID),i.mouseID=setTimeout(function(){i.hideableElements.hide(),i.mouseID=clearTimeout(i.mouseID)},3e3))}var t=this,i=t.vars,n=t.options,o=n.path.toLowerCase(),r=jQuery(".ilightbox-holder"),a=varFullscreenState.fullScreenEventName+".iLightBox",l=verticalDistanceThreshold;$window.on("resize.iLightBox",function(){var c=fnGetWindowDimensions();n.mobileOptimizer&&!n.innerToolbar&&(i.isMobile=c.width<=i.mobileMaxWidth),i.BODY[i.isMobile?"addClass":"removeClass"]("isMobile"),t.repositionPhoto(null),varHasTouchEvents&&(clearTimeout(i.setTime),i.setTime=setTimeout(function(){var h=fnGetPageOffset().y;window.scrollTo(0,h-30),window.scrollTo(0,h+30),window.scrollTo(0,h)},2e3)),i.thumbs&&t.positionThumbnails()}).on("keydown.iLightBox",function(c){if(n.controls.keyboard)switch(c.keyCode){case 13:c.shiftKey&&n.keyboard.shift_enter&&t.fullScreenAction();break;case 27:n.keyboard.esc&&t.closeAction();break;case 37:n.keyboard.left&&!i.lockKey&&t.moveTo("prev");break;case 38:n.keyboard.up&&!i.lockKey&&t.moveTo("prev");break;case 39:n.keyboard.right&&!i.lockKey&&t.moveTo("next");break;case 40:n.keyboard.down&&!i.lockKey&&t.moveTo("next")}}),varFullscreenState.supportsFullScreen&&$window.on(a,function(){t.doFullscreen()}),a=[n.caption.show+".iLightBox",n.caption.hide+".iLightBox",n.social.show+".iLightBox",n.social.hide+".iLightBox"].filter(function(c,h,u){return u.lastIndexOf(c)===h});var s="";jQuery.each(a,function(c,h){c!=0&&(s=s+" "),s=s+h}),$document.on(varEventClick,".ilightbox-overlay",function(){n.overlay.blur&&t.closeAction()}).on(varEventClick,".ilightbox-next, .ilightbox-next-button",function(){t.moveTo("next")}).on(varEventClick,".ilightbox-prev, .ilightbox-prev-button",function(){t.moveTo("prev")}).on(varEventClick,".ilightbox-thumbnail",function(){var c=jQuery(this);c=jQuery(".ilightbox-thumbnail",i.thumbnails).index(c),c!=i.current&&t.goTo(c)}).on(s,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(c){var h=jQuery("div.ilightbox-caption",i.holder),u=jQuery("div.ilightbox-social",i.holder),d=n.effects.fadeSpeed;i.nextLock||i.prevLock?(c.type!=n.caption.show||h.is(":visible")?c.type==n.caption.hide&&h.is(":visible")&&h.fadeOut(d):h.fadeIn(d),c.type!=n.social.show||u.is(":visible")?c.type==n.social.hide&&u.is(":visible")&&u.fadeOut(d):u.fadeIn(d)):(c.type!=n.caption.show||h.is(":visible")?c.type==n.caption.hide&&h.is(":visible")&&h.stop().fadeOut(d):h.stop().fadeIn(d),c.type!=n.social.show||u.is(":visible")?c.type==n.social.hide&&u.is(":visible")&&u.stop().fadeOut(d):u.stop().fadeIn(d))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(c){i.lockWheel=c.type=="mouseenter"}).on(varEventClick,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var c=jQuery(this);c.hasClass("ilightbox-fullscreen")?t.fullScreenAction():c.hasClass("ilightbox-play")?(t.resume(),c.addClass("ilightbox-pause").removeClass("ilightbox-play")):c.hasClass("ilightbox-pause")?(t.pause(),c.addClass("ilightbox-play").removeClass("ilightbox-pause")):t.closeAction()}).on(varEventMouseMove,".ilightbox-overlay, .ilightbox-thumbnails-container",function(c){c.preventDefault()}),n.controls.arrows&&!varHasTouchEvents&&$document.on("mousemove.iLightBox",e),n.controls.slideshow&&n.slideshow.pauseOnHover&&$document.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(c){c.type=="mouseenter"&&i.cycleID?t.pause():c.type=="mouseleave"&&i.isPaused&&t.resume()}),a=jQuery(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails"),n.controls.mousewheel&&a.on("mousewheel.iLightBox",function(c,h){i.lockWheel||(c.preventDefault(),0>h?t.moveTo("next"):0<h&&t.moveTo("prev"))}),n.controls.swipe&&r.on(varEventMousedown,function(c){function h(m){if(p){var b=m.originalEvent.touches?m.originalEvent.touches[0]:m;f={time:new Date().getTime(),coords:[b.pageX-v,b.pageY-d]},r.each(function(){var g=jQuery(this),y=g.data("offset")||{top:g.offset().top-d,left:g.offset().left-v},w=y.top;y=y.left;var x=[p.coords[0]-f.coords[0],p.coords[1]-f.coords[1]];o=="horizontal"?g.stop().css({left:y-x[0]}):g.stop().css({top:w-x[1]})}),m.preventDefault()}}function u(){r.each(function(){var m=jQuery(this),b=m.data("offset")||{top:m.offset().top-d,left:m.offset().left-v},g=b.top;b=b.left,m.css(varPropTransform,varPropPerspective).stop().animate({top:g,left:b},500,"easeOutCirc",function(){m.css(varPropTransform,"")})})}if(!i.nextLock&&!i.prevLock&&i.total!=1&&!i.lockSwipe){i.BODY.addClass("ilightbox-closedhand"),c=c.originalEvent.touches?c.originalEvent.touches[0]:c;var d=$document.scrollTop(),v=$document.scrollLeft(),p={time:new Date().getTime(),coords:[c.pageX-v,c.pageY-d]},f;r.on(varEventMouseMove,h),$document.one(varEventMouseup,function(){r.off(varEventMouseMove,h),i.BODY.removeClass("ilightbox-closedhand"),p&&f&&(o=="horizontal"&&1e3>f.time-p.time&&Math.abs(p.coords[0]-f.coords[0])>l&&Math.abs(p.coords[1]-f.coords[1])<verticalDistanceThreshold?p.coords[0]>f.coords[0]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,t.moveTo("next")):u():i.current!=0||n.infinite?(i.isSwipe=!0,t.moveTo("prev")):u():o=="vertical"&&1e3>f.time-p.time&&Math.abs(p.coords[1]-f.coords[1])>l&&Math.abs(p.coords[0]-f.coords[0])<verticalDistanceThreshold?p.coords[1]>f.coords[1]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,t.moveTo("next")):u():i.current!=0||n.infinite?(i.isSwipe=!0,t.moveTo("prev")):u():u()),p=f=varUnknown})}})},goTo:function(e){var t=this,i=t.vars,n=t.options,o=e-i.current;if(n.infinite&&(e==i.total-1&&i.current==0&&(o=-1),i.current==i.total-1&&e==0&&(o=1)),o==1)t.moveTo("next");else if(o==-1)t.moveTo("prev");else{if(i.nextLock||i.prevLock)return!1;typeof n.callback.onBeforeChange=="function"&&n.callback.onBeforeChange.call(t,t.ui),n.linkId&&(i.hashLock=!0,window.location.hash=n.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:i.lockWheel=!0,i.lockSwipe=!t.items[e].options.swipe),jQuery.each([i.holder,i.nextPhoto,i.prevPhoto],function(r,a){a.css(varPropTransform,varPropPerspective).fadeOut(n.effects.loadedFadeSpeed)}),i.current=e,i.next=e+1,i.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},n.effects.loadedFadeSpeed+50),jQuery(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),i.current==0&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.resetCycle(),typeof n.callback.onAfterChange=="function"&&n.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,i=t.vars,n=t.options,o=n.path.toLowerCase(),r=fnGetWindowDimensions(),a=n.effects.switchSpeed;if(i.nextLock||i.prevLock)return!1;var l=e=="next"?i.next:i.prev;if(n.linkId&&(i.hashLock=!0,window.location.hash=n.linkId+"/"+l),e=="next"){if(!t.items[l])return!1;var s=i.nextPhoto,c=i.holder,h=i.prevPhoto,u="ilightbox-prev",d="ilightbox-next"}else if(e=="prev"){if(!t.items[l])return!1;s=i.prevPhoto,c=i.holder,h=i.nextPhoto,u="ilightbox-next",d="ilightbox-prev"}typeof n.callback.onBeforeChange=="function"&&n.callback.onBeforeChange.call(t,t.ui),e=="next"?i.nextLock=!0:i.prevLock=!0;var v=jQuery("div.ilightbox-caption",c),p=jQuery("div.ilightbox-social",c);v.length&&v.stop().fadeOut(a,function(){jQuery(this).remove()}),p.length&&p.stop().fadeOut(a,function(){jQuery(this).remove()}),t.items[l].caption&&(t.setCaption(t.items[l],s),v=jQuery("div.ilightbox-caption",s),p=parseInt(v.iLightBoxOuterHeight()/s.iLightBoxOuterHeight()*100),n.caption.start&&50>=p&&v.fadeIn(a)),v=t.items[l].options.social,v&&(t.setSocial(v,t.items[l].URL,s),n.social.start&&jQuery("div.ilightbox-social",s).fadeIn(n.effects.fadeSpeed)),jQuery.each([s,c,h],function(w,x){x.removeClass("ilightbox-next ilightbox-prev")});var f=s.data("offset");v=r.width-n.styles.pageOffsetX,r=r.height-n.styles.pageOffsetY,p=f.newDims.width;var m=f.newDims.height,b=f.thumbsOffset;f=f.diff;var g=parseInt(r/2-m/2-f.H-b.H/2);f=parseInt(v/2-p/2-f.W-b.W/2),s.css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:1},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){s.css(varPropTransform,"")}),jQuery("div.ilightbox-container",s).animate({width:p,height:m},a,i.isSwipe?"easeOutCirc":"easeInOutCirc"),m=c.data("offset");var y=m.object;f=m.diff,p=m.newDims.width,m=m.newDims.height,p=parseInt(p*n.styles[e=="next"?"prevScale":"nextScale"]),m=parseInt(m*n.styles[e=="next"?"prevScale":"nextScale"]),g=o=="horizontal"?parseInt(r/2-y.offsetY-m/2-f.H-b.H/2):parseInt(r-y.offsetX-f.H-b.H/2),e=="prev"?f=o=="horizontal"?parseInt(v-y.offsetX-f.W-b.W/2):parseInt(v/2-p/2-f.W-y.offsetY-b.W/2):(g=o=="horizontal"?g:parseInt(y.offsetX-f.H-m-b.H/2),f=o=="horizontal"?parseInt(y.offsetX-f.W-p-b.W/2):parseInt(v/2-y.offsetY-p/2-f.W-b.W/2)),jQuery("div.ilightbox-container",c).animate({width:p,height:m},a,i.isSwipe?"easeOutCirc":"easeInOutCirc"),c.addClass(u).css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:n.styles.prevOpacity},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){c.css(varPropTransform,""),jQuery(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(l).addClass("ilightbox-active"),t.positionThumbnails(),t.items[l]&&(i.lockWheel=!t.items[l].options.mousewheel,i.lockSwipe=!t.items[l].options.swipe),i.isSwipe=!1,e=="next"?(i.nextPhoto=h,i.prevPhoto=c,i.holder=s,i.nextPhoto.hide(),i.next+=1,i.prev=i.current,i.current+=1,n.infinite&&(i.current>i.total-1&&(i.current=0),i.current==i.total-1&&(i.next=0),i.current==0&&(i.prev=i.total-1)),t.createUI(),t.items[i.next]?t.loadContent(t.items[i.next],"next"):i.nextLock=!1):(i.prevPhoto=h,i.nextPhoto=c,i.holder=s,i.prevPhoto.hide(),i.next=i.current,i.current=i.prev,i.prev=i.current-1,n.infinite&&(i.current==i.total-1&&(i.next=0),i.current==0&&(i.prev=i.total-1)),t.createUI(),t.items[i.prev]?t.loadContent(t.items[i.prev],"prev"):i.prevLock=!1),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),i.current==0&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),typeof n.callback.onAfterChange=="function"&&n.callback.onAfterChange.call(t,t.ui)}),g=o=="horizontal"?fnGetElementDimension(h,"top"):e=="next"?parseInt(-(r/2)-h.iLightBoxOuterHeight()):parseInt(2*g),f=o=="horizontal"?e=="next"?parseInt(-(v/2)-h.iLightBoxOuterWidth()):parseInt(2*f):fnGetElementDimension(h,"left"),h.css(varPropTransform,varPropPerspective).animate({top:g,left:f,opacity:n.styles.nextOpacity},a,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(varPropTransform,"")}).addClass(d)},setCaption:function(e,t){var i=jQuery('<div class="ilightbox-caption"></div>');e.caption&&(i.html(e.caption),jQuery("div.ilightbox-container",t).append(i))},normalizeSocial:function(e,t){var i=this.options,n=window.location.href;return jQuery.each(e,function(o,r){var a,l;switch(o.toLowerCase()){case"facebook":a="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",l="Share on Facebook";break;case"twitter":a="http://twitter.com/home?status={URL}",l="Share on Twitter";break;case"googleplus":a="https://plus.google.com/share?url={URL}",l="Share on Google+";break;case"delicious":a="http://delicious.com/post?url={URL}",l="Share on Delicious";break;case"digg":a="http://digg.com/submit?phase=2&url={URL}",l="Share on Digg";break;case"reddit":a="http://reddit.com/submit?url={URL}",l="Share on reddit"}e[o]={URL:r.URL&&fnNormalizeUrl(n,r.URL)||i.linkId&&window.location.href||typeof t!="string"&&n||t&&fnNormalizeUrl(n,t)||n,source:r.source||a||r.URL&&fnNormalizeUrl(n,r.URL)||t&&fnNormalizeUrl(n,t),text:l||r.text||"Share on "+o,width:typeof r.width=="undefined"||isNaN(r.width)?640:parseInt(r.width),height:r.height||360}}),e},setSocial:function(e,t,i){var n=jQuery('<div class="ilightbox-social"></div>'),o="<ul>";e=this.normalizeSocial(e,t),jQuery.each(e,function(r,a){r.toLowerCase();var l=a.source.replace("{URL}",encodeURIComponent(a.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+"));o=o+('<li class="'+r+'"><a href="'+l+'" onclick="javascript:window.open(this.href'+(0>=a.width||0>=a.height?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+a.height+",width="+a.width+",left=40,top=40'")+');return false;" title="'+a.text+'" target="_blank"></a></li>')}),o=o+"</ul>",n.html(o),jQuery("div.ilightbox-container",i).append(n)},fullScreenAction:function(){varFullscreenState.supportsFullScreen?varFullscreenState.isFullScreen()?varFullscreenState.cancelFullScreen(document.documentElement):varFullscreenState.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this.vars,t=fnGetWindowDimensions(),i=this.options;if(i.fullAlone){var n=e.holder,o=this.items[e.current],r=t.width,a=t.height,l=[n,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.overlay,e.toolbar,e.thumbnails,e.loader];if(t=[e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails],e.isInFullScreen)e.isInFullScreen=e.lockKey=e.lockWheel=e.lockSwipe=!1,e.overlay.css({opacity:this.options.overlay.opacity}),jQuery.each(t,function(c,h){h.show()}),e.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),jQuery.each(l,function(c,h){h.removeClass("ilightbox-fullscreen")}),typeof i.callback.onExitFullScreen=="function"&&i.callback.onExitFullScreen.call(this,this.ui);else{if(e.isInFullScreen=e.lockKey=e.lockWheel=e.lockSwipe=!0,e.overlay.css({opacity:1}),jQuery.each(t,function(c,h){h.hide()}),e.fullScreenButton.attr("title",i.text.exitFullscreen),i.fullStretchTypes.indexOf(o.type)!=-1)n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:a});else{t=o.options.fullViewPort||i.fullViewPort||"",e=r,o=a,r=n.data("naturalWidth");var s=n.data("naturalHeight");t.toLowerCase()=="fill"?(o=e/r*s,o<a&&(e=a/s*r,o=a)):t.toLowerCase()=="fit"?(a=this.getNewDimenstions(e,o,r,s,!0),e=a.width,o=a.height):t.toLowerCase()!="stretch"&&(a=this.getNewDimenstions(e,o,r,s,r>e||s>o),e=a.width,o=a.height),n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:e,naturalHeight:o})}jQuery.each(l,function(c,h){h.addClass("ilightbox-fullscreen")}),typeof i.callback.onEnterFullScreen=="function"&&i.callback.onEnterFullScreen.call(this,this.ui)}}else e.isInFullScreen=!e.isInFullScreen;this.repositionPhoto(!0)},closeAction:function(){var e=this.vars,t=this.options;$window.off(".iLightBox"),e.isInFullScreen&&varFullscreenState.cancelFullScreen(document.documentElement),$document.off(".iLightBox"),jQuery(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),t.hide.effect?e.overlay.stop().fadeOut(t.hide.speed,function(){e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")),jQuery.each([e.toolbar,e.holder,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails],function(i,n){n.removeAttr("style").remove()}),e.dontGenerateThumbs=e.isInFullScreen=!1,window.iLightBox=null,t.linkId&&(e.hashLock=!0,fnScrollToPageOffset(),setTimeout(function(){e.hashLock=!1},55)),typeof t.callback.onHide=="function"&&t.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var e=this.vars,t=this.options,i=t.path.toLowerCase(),n=fnGetWindowDimensions(),o=n.width,r=n.height;n=e.isInFullScreen&&t.fullAlone||e.isMobile||i=="horizontal"?0:e.thumbnails.iLightBoxOuterWidth();var a=e.isMobile?e.toolbar.iLightBoxOuterHeight():e.isInFullScreen&&t.fullAlone?0:i=="horizontal"?e.thumbnails.iLightBoxOuterHeight():0;o=e.isInFullScreen&&t.fullAlone?o:o-t.styles.pageOffsetX,r=e.isInFullScreen&&t.fullAlone?r:r-t.styles.pageOffsetY;var l=i=="horizontal"?parseInt(this.items[e.next]||this.items[e.prev]?2*(t.styles.nextOffsetX+t.styles.prevOffsetX):30>=o/10?30:o/10):parseInt(30>=o/10?30:o/10)+n,s=i=="horizontal"?parseInt(30>=r/10?30:r/10)+a:parseInt(this.items[e.next]||this.items[e.prev]?2*(t.styles.nextOffsetX+t.styles.prevOffsetX):30>=r/10?30:r/10);n={type:"current",width:o,height:r,item:this.items[e.current],offsetW:l,offsetH:s,thumbsOffsetW:n,thumbsOffsetH:a,animate:arguments.length,holder:e.holder},this.repositionEl(n),this.items[e.next]&&(n=jQuery.extend(n,{type:"next",item:this.items[e.next],offsetX:t.styles.nextOffsetX,offsetY:t.styles.nextOffsetY,holder:e.nextPhoto}),this.repositionEl(n)),this.items[e.prev]&&(n=jQuery.extend(n,{type:"prev",item:this.items[e.prev],offsetX:t.styles.prevOffsetX,offsetY:t.styles.prevOffsetY,holder:e.prevPhoto}),this.repositionEl(n)),t=i=="horizontal"?{left:parseInt(o/2-e.loader.iLightBoxOuterWidth()/2)}:{top:parseInt(r/2-e.loader.iLightBoxOuterHeight()/2)},e.loader.css(t)},repositionEl:function(e){var t=this.vars,i=this.options,n=i.path.toLowerCase(),o=e.type=="current"&&t.isInFullScreen&&i.fullAlone?e.width:e.width-e.offsetW,r=e.type=="current"&&t.isInFullScreen&&i.fullAlone?e.height:e.height-e.offsetH,a=e.item,l=e.item.options,s=e.holder,c=e.offsetX||0,h=e.offsetY||0,u=e.thumbsOffsetW,d=e.thumbsOffsetH;switch(e.type=="current"?(typeof l.width=="number"&&l.width&&(o=t.isInFullScreen&&i.fullAlone&&(i.fullStretchTypes.indexOf(a.type)!=-1||l.fullViewPort||i.fullViewPort)||l.width>o?o:l.width),typeof l.height=="number"&&l.height&&(r=t.isInFullScreen&&i.fullAlone&&(i.fullStretchTypes.indexOf(a.type)!=-1||l.fullViewPort||i.fullViewPort)||l.height>r?r:l.height)):(typeof l.width=="number"&&l.width&&(o=l.width>o?o:l.width),typeof l.height=="number"&&l.height&&(r=l.height>r?r:l.height)),r=parseInt(r-jQuery(".ilightbox-inner-toolbar",s).iLightBoxOuterHeight()),t=typeof l.width=="string"&&l.width.indexOf("%")!=-1?fnParseInt(parseInt(l.width.replace("%","")),e.width):s.data("naturalWidth"),a=typeof l.height=="string"&&l.height.indexOf("%")!=-1?fnParseInt(parseInt(l.height.replace("%","")),e.height):s.data("naturalHeight"),a=typeof l.width=="string"&&l.width.indexOf("%")!=-1||typeof l.height=="string"&&l.height.indexOf("%")!=-1?{width:t,height:a}:this.getNewDimenstions(o,r,t,a),o=jQuery.extend({},a,{}),e.type=="prev"||e.type=="next"?(t=parseInt(a.width*(e.type=="next"?i.styles.nextScale:i.styles.prevScale)),a=parseInt(a.height*(e.type=="next"?i.styles.nextScale:i.styles.prevScale))):(t=a.width,a=a.height),r=parseInt((fnGetElementDimension(s,"padding-left")+fnGetElementDimension(s,"padding-right")+fnGetElementDimension(s,"border-left-width")+fnGetElementDimension(s,"border-right-width"))/2),l=parseInt((fnGetElementDimension(s,"padding-top")+fnGetElementDimension(s,"padding-bottom")+fnGetElementDimension(s,"border-top-width")+fnGetElementDimension(s,"border-bottom-width")+jQuery(".ilightbox-inner-toolbar",s).iLightBoxOuterHeight())/2),e.type){case"current":var v=parseInt(e.height/2-a/2-l-d/2),p=parseInt(e.width/2-t/2-r-u/2);break;case"next":v=n=="horizontal"?parseInt(e.height/2-h-a/2-l-d/2):parseInt(e.height-c-l-d/2),p=n=="horizontal"?parseInt(e.width-c-r-u/2):parseInt(e.width/2-t/2-r-h-u/2);break;case"prev":v=n=="horizontal"?parseInt(e.height/2-h-a/2-l-d/2):parseInt(c-l-a-d/2),p=n=="horizontal"?parseInt(c-r-t-u/2):parseInt(e.width/2-h-t/2-r-u/2)}s.data("offset",{top:v,left:p,newDims:o,diff:{W:r,H:l},thumbsOffset:{W:u,H:d},object:e}),0<e.animate&&i.effects.reposition?(s.css(varPropTransform,varPropPerspective).stop().animate({top:v,left:p},i.effects.repositionSpeed,"easeOutCirc",function(){s.css(varPropTransform,"")}),jQuery("div.ilightbox-container",s).stop().animate({width:t,height:a},i.effects.repositionSpeed,"easeOutCirc"),jQuery("div.ilightbox-inner-toolbar",s).stop().animate({width:t},i.effects.repositionSpeed,"easeOutCirc",function(){jQuery(this).css("overflow","visible")})):(s.css({top:v,left:p}),jQuery("div.ilightbox-container",s).css({width:t,height:a}),jQuery("div.ilightbox-inner-toolbar",s).css({width:t}))},resume:function(e){var t=this,i=t.vars,n=t.options;!n.slideshow.pauseTime||n.controls.slideshow&&1>=i.total||e<i.isPaused||(i.isPaused=0,i.cycleID&&(i.cycleID=clearTimeout(i.cycleID)),i.cycleID=setTimeout(function(){i.current==i.total-1?t.goTo(0):t.moveTo("next")},n.slideshow.pauseTime))},pause:function(e){var t=this.vars;e<t.isPaused||(t.isPaused=e||100,t.cycleID&&(t.cycleID=clearTimeout(t.cycleID)))},resetCycle:function(){var e=this.vars;this.options.controls.slideshow&&e.cycleID&&!e.isPaused&&this.resume()},getNewDimenstions:function(e,t,i,n,o){var r=e?t?Math.min(e/i,t/n):e/i:t/n;return o||(r>this.options.maxScale?r=this.options.maxScale:r<this.options.minScale&&(r=this.options.minScale)),e=this.options.keepAspectRatio?Math.round(i*r):e,t=this.options.keepAspectRatio?Math.round(n*r):t,{width:e,height:t,ratio:r}},setOption:function(e){this.options=jQuery.extend(!0,this.options,e||{}),this.refresh()},availPlugins:function(){var e=document.createElement("video");this.plugins={flash:0<=parseInt(varPluginDetect.getVersion("Shockwave"))||0<=parseInt(varPluginDetect.getVersion("Flash")),quicktime:0<=parseInt(varPluginDetect.getVersion("QuickTime")),html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var i;switch(t.type){case"video":i=!1;var n=t.videoType,o=t.options.html5video;(n=="video/mp4"||t.ext=="mp4"||t.ext=="m4v"||o.h264)&&this.plugins.html5H264?(t.ext="mp4",t.URL=o.h264||t.URL):o.webm&&this.plugins.html5WebM?(t.ext="webm",t.URL=o.webm||t.URL):o.ogg&&this.plugins.html5Vorbis&&(t.ext="ogv",t.URL=o.ogg||t.URL),!this.plugins.html5H264||n!="video/mp4"&&t.ext!="mp4"&&t.ext!="m4v"?!this.plugins.html5WebM||n!="video/webm"&&t.ext!="webm"?!this.plugins.html5Vorbis||n!="video/ogg"&&t.ext!="ogv"?!this.plugins.html5QuickTime||n!="video/quicktime"&&t.ext!="mov"&&t.ext!="qt"||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?i=jQuery("<video />",{width:"100%",height:"100%",preload:o.preload,autoplay:o.autoplay,poster:o.poster,controls:o.controls}).append(jQuery("<source />",{src:t.URL,type:n})):this.plugins.quicktime?(i=jQuery("<object />",{type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download"}).attr({data:t.URL,width:"100%",height:"100%"}).append(jQuery("<param />",{name:"src",value:t.URL})).append(jQuery("<param />",{name:"autoplay",value:"false"})).append(jQuery("<param />",{name:"loop",value:"false"})).append(jQuery("<param />",{name:"scale",value:"tofit"})),varBrowserDetection.msie&&(i=fnCreateEmbedObject(t.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):i=jQuery("<span />",{class:"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.apple.com/quicktime/download").replace("{type}","QuickTime")});break;case"flash":if(this.plugins.flash){var r="",a=0;t.options.flashvars?jQuery.each(t.options.flashvars,function(l,s){a!=0&&(r=r+"&"),r=r+(l+"="+encodeURIComponent(s)),a++}):r=null,i=jQuery("<embed />").attr({type:"application/x-shockwave-flash",src:t.URL,width:typeof t.options.width=="number"&&t.options.width&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.width:"100%",height:typeof t.options.height=="number"&&t.options.height&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:r,fullscreen:"yes"})}else i=jQuery("<span />",{class:"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.adobe.com/go/getflash").replace("{type}","Adobe Flash player")});break;case"iframe":i=jQuery("<iframe />").attr({width:typeof t.options.width=="number"&&t.options.width&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.width:"100%",height:typeof t.options.height=="number"&&t.options.height&&this.options.minScale=="1"&&this.options.maxScale=="1"?t.options.height:"100%",src:t.URL,frameborder:0,webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":i=jQuery('<div class="ilightbox-wrapper"></div>').html(jQuery(t.URL).clone(!0));break;case"html":i=t.URL,i[0].nodeName||(i=jQuery(t.URL),i=i.selector?jQuery("<div>"+i+"</div>"):i),i=jQuery('<div class="ilightbox-wrapper"></div>').html(i)}return jQuery("div.ilightbox-container",e).empty().html(i),i},ogpRecognition:function(e,t){var i=this,n=e.URL,o={length:!1};i.showLoader(),fnPhoneHomeSourceCheck(n,function(r){if(i.hideLoader(),r.status==200){r=r.results;var a=r.type,l=r.source;o.source=l.src,o.width=l.width&&parseInt(l.width)||0,o.height=l.height&&parseInt(l.height)||0,o.type=a,o.thumbnail=l.thumbnail||r.images[0],o.html5video=r.html5video||{},o.length=!0,l.type=="application/x-shockwave-flash"?o.type="flash":l.type.indexOf("video/")!=-1?o.type="video":l.type.indexOf("/html")!=-1?o.type="iframe":l.type.indexOf("image/")!=-1&&(o.type="image")}else if(typeof r.response!="undefined")throw r.response;t(o.length?o:!1)})},hashChangeHandler:function(e){var t=this.vars,i=this.options;e=fnParseUrl(e||window.location.href).hash;var n=e.indexOf("#"+i.linkId+"/"),o=e.split("/");t.hashLock||"#"+i.linkId!=o[0]&&1<e.length||(n!=-1?(t=o[1]||0,this.items[t]?(e=jQuery(".ilightbox-overlay"),e.length&&e.attr("linkid")==i.linkId?this.goTo(t):this.itemsObject[t].trigger("click")):(e=jQuery(".ilightbox-overlay"),e.length&&this.closeAction())):(e=jQuery(".ilightbox-overlay"),e.length&&this.closeAction()))}};jQuery.fn.iLightBox=function(){var e=arguments,t=jQuery.isPlainObject(e[0])?e[0]:e[1],i=Array.isArray(e[0])||typeof e[0]=="string"?e[0]:e[1];t||(t={}),t=jQuery.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(){},cache:!1,complete:function(){},crossDomain:!1,error:function(){},success:function(){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},t);var n=!!(Array.isArray(i)||typeof i=="string");i=Array.isArray(i)?i:[],typeof e[0]=="string"&&(i[0]=e[0]);var o=new iLightBoxClass(jQuery(this),t,i,n);return{close:function(){o.closeAction()},fullscreen:function(){o.fullScreenAction()},moveNext:function(){o.moveTo("next")},movePrev:function(){o.moveTo("prev")},goTo:function(r){o.goTo(r)},refresh:function(){o.refresh()},reposition:function(){0<arguments.length?o.repositionPhoto(!0):o.repositionPhoto()},setOption:function(r){o.setOption(r)},destroy:function(){o.closeAction(),o.dispatchItemsEvents()}}};jQuery.iLightBox=function(e,t){return jQuery.fn.iLightBox(e,t)};jQuery.extend(jQuery.easing,{easeInCirc:jQuery.easing.swing,easeOutCirc:jQuery.easing.swing,easeInOutCirc:jQuery.easing.swing});jQuery(document);jQuery.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){jQuery.fn[t]=function(i){return i?this.on(t,i):this.trigger(t)},jQuery.attrFn&&(jQuery.attrFn[t]=!0)});jQuery.event.special.itap={setup:function(){var e=this,t=jQuery(this),i,n;t.on("touchstart.iTap",function(){i=fnGetPageOffset(),t.one("touchend.iTap",function(o){n=fnGetPageOffset(),o=jQuery.event.fix(o||window.event),o.type="itap",i&&n&&i.x==n.x&&i.y==n.y&&(jQuery.event.dispatch||jQuery.event.handle).call(e,o),i=n=varUnknown})})},teardown:function(){jQuery(this).off("touchstart.iTap")}};(function(){var e={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},t=["webkit","moz","o","ms","khtml"];if(typeof document.cancelFullScreen!="undefined")e.supportsFullScreen=!0;else for(var i=0,n=t.length;i<n;i++)if(e.prefix=t[i],typeof document[e.prefix+"CancelFullScreen"]!="undefined"){e.supportsFullScreen=!0;break}e.supportsFullScreen&&(e.fullScreenEventName=e.prefix+"fullscreenchange",e.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},e.requestFullScreen=function(o){return this.prefix===""?o.requestFullScreen():o[this.prefix+"RequestFullScreen"]()},e.cancelFullScreen=function(){return this.prefix===""?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})})();(function(){var e,t;e=window.navigator.userAgent,e=e.toLowerCase(),t=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],e=t[1]||"",t=t[2]||"0",varBrowserDetection={},e&&(varBrowserDetection[e]=!0,varBrowserDetection.version=t),varBrowserDetection.chrome?varBrowserDetection.webkit=!0:varBrowserDetection.webkit&&(varBrowserDetection.safari=!0)})();(function(){function e(n){for(var o=0,r=t.length;o<r;o++){var a=t[o]?t[o]+n.charAt(0).toUpperCase()+n.slice(1):n;if(i.style[a]!==varUnknown)return a}}var t=["","webkit","moz","ms","o"],i=document.createElement("div");varPropTransform=e("transform")||"",varPropPerspective=e("perspective")?"translateZ(0) ":""})();var varPluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(e,t,i){return function(){e(t,i)}},openTag:"<",isDefined:function(e){return typeof e!="undefined"},isArray:function(e){return/array/i.test(Object.prototype.toString.call(e))},isFunc:function(e){return typeof e=="function"},isString:function(e){return typeof e=="string"},isNum:function(e){return typeof e=="number"},isStrNum:function(e){return typeof e=="string"&&/\d/.test(e)},getNumRegx:/[\d][\d._,-]*/,splitNumRegx:/[._,-]/g,getNum:function(e,t){var i=this.isStrNum(e)?(this.isDefined(t)?RegExp(t):this.getNumRegx).exec(e):null;return i?i[0]:null},compareNums:function(e,t,i){var n=parseInt;if(this.isStrNum(e)&&this.isStrNum(t)){if(this.isDefined(i)&&i.compareNums)return i.compareNums(e,t);for(e=e.split(this.splitNumRegx),t=t.split(this.splitNumRegx),i=0;i<Math.min(e.length,t.length);i++){if(n(e[i],10)>n(t[i],10))return 1;if(n(e[i],10)<n(t[i],10))return-1}}return 0},formatNum:function(e,t){var i,n;if(!this.isStrNum(e))return null;for(this.isNum(t)||(t=4),t--,n=e.replace(/\s/g,"").split(this.splitNumRegx).concat(["0","0","0","0"]),i=0;4>i;i++)/^(0+)(.+)$/.test(n[i])&&(n[i]=RegExp.$2),(i>t||!/\d/.test(n[i]))&&(n[i]="0");return n.slice(0,4).join(",")},$$hasMimeType:function(e){return function(t){if(!e.isIE&&t){var i,n,o=e.isArray(t)?t:e.isString(t)?[t]:[];for(n=0;n<o.length;n++)if(e.isString(o[n])&&/[^\s]/.test(o[n])&&(i=(t=navigator.mimeTypes[o[n]])?t.enabledPlugin:0)&&(i.name||i.description))return t}return null}},findNavPlugin:function(e,t,i){e=RegExp(e,"i"),t=!this.isDefined(t)||t?/\d/:0,i=i?RegExp(i,"i"):0;var n=window.navigator.plugins,o,r,a;for(o=0;o<n.length;o++)if(a=n[o].description||"",r=n[o].name||"",(e.test(a)&&(!t||t.test(RegExp.leftContext+RegExp.rightContext))||e.test(r)&&(!t||t.test(RegExp.leftContext+RegExp.rightContext)))&&(!i||!i.test(a)&&!i.test(r)))return n[o];return null},getMimeEnabledPlugin:function(e,t,i){var n;t=RegExp(t,"i"),i=i?RegExp(i,"i"):0;var o,r,a=this.isString(e)?[e]:e;for(r=0;r<a.length;r++)if((n=this.hasMimeType(a[r]))&&(n=n.enabledPlugin)&&(o=n.description||"",e=n.name||"",t.test(o)||t.test(e))&&(!i||!i.test(o)&&!i.test(e)))return n;return 0},getPluginFileVersion:function(e,t){var i,n,o,r,a=-1;if(2<this.OS||!e||!e.version||!(i=this.getNum(e.version)))return t;if(!t)return i;for(i=this.formatNum(i),t=this.formatNum(t),n=t.split(this.splitNumRegx),o=i.split(this.splitNumRegx),r=0;r<n.length;r++)if(-1<a&&r>a&&n[r]!="0"||o[r]!=n[r]&&(a==-1&&(a=r),n[r]!="0"))return t;return i},AXO:window.ActiveXObject,getAXO:function(e){var t=null;try{t=new this.AXO(e)}catch{}return t},convertFuncs:function(e){var t,i,n=/^[$][$]/;for(t in e)if(n.test(t))try{i=t.slice(2),0<i.length&&!e[i]&&(e[i]=e[t](e),delete e[t])}catch{}},initObj:function(e,t,i){var n;if(e){if(e[t[0]]==1||i)for(n=0;n<t.length;n=n+2)e[t[n]]=t[n+1];for(n in e)(i=e[n])&&i[t[0]]==1&&this.initObj(i,t)}},initScript:function(){var e=window.navigator,t,i=document,n=e.userAgent||"",o=e.vendor||"",r=e.platform||"";e=e.product||"",this.initObj(this,["$",this]);for(t in this.Plugins)this.Plugins[t]&&this.initObj(this.Plugins[t],["$",this,"$$",this.Plugins[t]],1);if(this.convertFuncs(this),this.OS=100,r){var a=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(t=a.length-2;0<=t;t=t-2)if(a[t]&&RegExp(a[t],"i").test(r)){this.OS=a[t+1];break}}if(this.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null,this.verIE=(this.isIE=new Function("return/*@cc_on!@*/!1")())&&/MSIE\s*(\d+\.?\d*)/i.test(n)?parseFloat(RegExp.$1,10):null,this.docModeIE=this.verIEfull=null,this.isIE){t=document.createElement("div");try{t.style.behavior="url(#default#clientcaps)",this.verIEfull=t.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch{}t=parseFloat(this.verIEfull||"0",10),this.docModeIE=i.documentMode||(/back/i.test(i.compatMode||"")?5:t)||this.verIE,this.verIE=t||this.docModeIE}if(this.ActiveXEnabled=!1,this.isIE){for(i="Msxml2.XMLHTTP Msxml2.DOMDocument Microsoft.XMLDOM ShockwaveFlash.ShockwaveFlash TDCCtl.TDCCtl Shell.UIHelper Scripting.Dictionary wmplayer.ocx".split(" "),t=0;t<i.length;t++)if(this.getAXO(i[t])){this.ActiveXEnabled=!0;break}}this.verGecko=(this.isGecko=/Gecko/i.test(e)&&/Gecko\s*\/\s*\d/i.test(n))?this.formatNum(/rv\s*:\s*([\.,\d]+)/i.test(n)?RegExp.$1:"0.9"):null,this.verChrome=(this.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(n))?this.formatNum(RegExp.$1):null,this.verSafari=(this.isSafari=(/Apple/i.test(o)||!o&&!this.isChrome)&&/Safari\s*\/\s*(\d[\d.]*)/i.test(n))&&/Version\s*\/\s*(\d[\d\.]*)/i.test(n)?this.formatNum(RegExp.$1):null,this.verOpera=(this.isOpera=/Opera\s*[/]?\s*(\d+\.?\d*)/i.test(n))&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(n)||1)?parseFloat(RegExp.$1,10):null,this.addWinEvent("load",this.handler(this.runWLfuncs,this))},init:function(e){var t,i={status:-3,plugin:0};return this.isString(e)?e.length==1?(this.getVersionDelimiter=e,i):(e=e.toLowerCase().replace(/\s/g,""),t=this.Plugins[e],!t||!t.getVersion?i:(i.plugin=t,this.isDefined(t.installed)||(t.installed=null,t.version=null,t.version0=null,t.getVersionDone=null,t.pluginName=e),this.garbage=!1,this.isIE&&!this.ActiveXEnabled&&e!=="java"?(i.status=-2,i):(i.status=1,i))):i},fPush:function(e,t){this.isArray(t)&&(this.isFunc(e)||this.isArray(e)&&0<e.length&&this.isFunc(e[0]))&&t.push(e)},callArray:function(e){var t;if(this.isArray(e))for(t=0;t<e.length&&e[t]!==null;t++)this.call(e[t]),e[t]=null},call:function(e){var t=this.isArray(e)?e.length:-1;0<t&&this.isFunc(e[0])?e[0](this,1<t?e[1]:0,2<t?e[2]:0,3<t?e[3]:0):this.isFunc(e)&&e(this)},getVersionDelimiter:",",$$getVersion:function(e){return function(t,i,n){return t=e.init(t),0>t.status?null:(t=t.plugin,t.getVersionDone!=1&&(t.getVersion(null,i,n),t.getVersionDone===null&&(t.getVersionDone=1)),e.cleanup(),i=(i=t.version||t.version0)?i.replace(e.splitNumRegx,e.getVersionDelimiter):i)}},cleanup:function(){this.garbage&&this.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(e,t){var i=!1,n='<object width="1" height="1" style="display:none" '+e.getCodeBaseVersion(t)+">"+e.HTML+this.openTag+"/object>";if(!this.head)return i;this.head.insertBefore(document.createElement("object"),this.head.firstChild),this.head.firstChild.outerHTML=n;try{this.head.firstChild.classid=e.classID}catch{}try{this.head.firstChild.object&&(i=!0)}catch{}try{i&&4>this.head.firstChild.readyState&&(this.garbage=!0)}catch{}return this.head.removeChild(this.head.firstChild),i},codebaseSearch:function(e,t){var i=this;if(!i.ActiveXEnabled||!e)return null;e.BIfuncs&&e.BIfuncs.length&&e.BIfuncs[e.BIfuncs.length-1]!==null&&i.callArray(e.BIfuncs);var n,o=e.SEARCH;if(i.isStrNum(t))return o.match&&o.min&&0>=i.compareNums(t,o.min)?!0:o.match&&o.max&&0<=i.compareNums(t,o.max)?!1:((n=i.isActiveXObject(e,t))&&(!o.min||0<i.compareNums(t,o.min))&&(o.min=t),n||o.max&&!(0>i.compareNums(t,o.max))||(o.max=t),n);var r=[0,0,0,0],a=[].concat(o.digits),l=o.min?1:0,s,c,h=function(u,d){var v=[].concat(r);return v[u]=d,i.isActiveXObject(e,v.join(","))};if(o.max){for(n=o.max.split(i.splitNumRegx),s=0;s<n.length;s++)n[s]=parseInt(n[s],10);n[0]<a[0]&&(a[0]=n[0])}if(o.min){for(c=o.min.split(i.splitNumRegx),s=0;s<c.length;s++)c[s]=parseInt(c[s],10);c[0]>r[0]&&(r[0]=c[0])}if(c&&n)for(s=1;s<c.length&&c[s-1]==n[s-1];s++)n[s]<a[s]&&(a[s]=n[s]),c[s]>r[s]&&(r[s]=c[s]);if(o.max){for(s=1;s<a.length;s++)if(0<n[s]&&a[s]==0&&a[s-1]<o.digits[s-1]){a[s-1]+=1;break}}for(s=0;s<a.length;s++){for(c={},o=0;20>o&&!(1>a[s]-r[s])&&(n=Math.round((a[s]+r[s])/2),!c["a"+n]);o++)c["a"+n]=1,h(s,n)?(r[s]=n,l=1):a[s]=n;if(a[s]=r[s],!l&&h(s,r[s])&&(l=1),!l)break}return l?r.join(","):null},addWinEvent:function(e,t){var i=window,n;this.isFunc(t)&&(i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent?i.attachEvent("on"+e,t):(n=i["on"+e],i["on"+e]=this.winHandler(t,n)))},winHandler:function(e,t){return function(){e(),typeof t=="function"&&t()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(e){e.winLoaded=!0,e.callArray(e.WLfuncs0),e.callArray(e.WLfuncs),e.onDoneEmptyDiv&&e.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(e){return function(t){e.winLoaded?e.call(t):e.fPush(t,e.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var e,t,i,n;if(this.div&&this.div.childNodes)for(e=this.div.childNodes.length-1;0<=e;e--){if((i=this.div.childNodes[e])&&i.childNodes)for(t=i.childNodes.length-1;0<=t;t--){n=i.childNodes[t];try{i.removeChild(n)}catch{}}if(i)try{this.div.removeChild(i)}catch{}}if(!this.div&&(e=document.getElementById(this.divID))&&(this.div=e),this.div&&this.div.parentNode){try{this.div.parentNode.removeChild(this.div)}catch{}this.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var e,t;if(this.winLoaded&&(!this.WLfuncs||!this.WLfuncs.length||this.WLfuncs[this.WLfuncs.length-1]===null)){for(e in this)if((t=this[e])&&t.funcs&&(t.OTF==3||t.funcs.length&&t.funcs[t.funcs.length-1]!==null))return;for(e=0;e<this.DONEfuncs.length;e++)this.callArray(this.DONEfuncs);this.emptyDiv()}},getWidth:function(e){return e&&(e=e.scrollWidth||e.offsetWidth,this.isNum(e))?e:-1},getTagStatus:function(e,t,i,n){var o=e.span,r=this.getWidth(o);i=i.span;var a=this.getWidth(i);t=t.span;var l=this.getWidth(t);if(!(o&&i&&t&&this.getDOMobj(e)))return-2;if(a<l||0>r||0>a||0>l||l<=this.pluginSize||1>this.pluginSize)return 0;if(r>=l)return-1;try{if(r==this.pluginSize&&(!this.isIE||this.getDOMobj(e).readyState==4)&&(!e.winLoaded&&this.winLoaded||e.winLoaded&&this.isNum(n)&&(this.isNum(e.count)||(e.count=n),10<=n-e.count)))return 1}catch{}return 0},getDOMobj:function(e,t){var i=e?e.span:0,n=i&&i.firstChild?1:0;try{n&&t&&this.div.focus()}catch{}return n?i.firstChild:null},setStyle:function(e,t){var i=e.style,n;if(i&&t)for(n=0;n<t.length;n=n+2)try{i[t[n]]=t[n+1]}catch{}},insertDivInBody:function(e,t){var i=null,n=t?window.top.document:window.document,o=n.getElementsByTagName("body")[0]||n.body;if(!o)try{n.write('<div id="pd33993399">.'+this.openTag+"/div>"),i=n.getElementById("pd33993399")}catch{}(o=n.getElementsByTagName("body")[0]||n.body)&&(o.insertBefore(e,o.firstChild),i&&o.removeChild(i))},insertHTML:function(e,t,i,n,o){o=document;var r,a=o.createElement("span"),l,s="outlineStyle none borderStyle none padding 0px margin 0px visibility visible".split(" ");if(this.isDefined(n)||(n=""),this.isString(e)&&/[^\s]/.test(e)){for(e=e.toLowerCase().replace(/\s/g,""),r=this.openTag+e+' width="'+this.pluginSize+'" height="'+this.pluginSize+'" ',r=r+'style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ',l=0;l<t.length;l=l+2)/[^\s]/.test(t[l+1])&&(r=r+(t[l]+'="'+t[l+1]+'" '));for(r=r+">",l=0;l<i.length;l=l+2)/[^\s]/.test(i[l+1])&&(r=r+(this.openTag+'param name="'+i[l]+'" value="'+i[l+1]+'" />'));r=r+(n+this.openTag+"/"+e+">")}else r=n;if(this.div||(t=o.getElementById(this.divID),t?this.div=t:(this.div=o.createElement("div"),this.div.id=this.divID),this.setStyle(this.div,s.concat(["width",this.divWidth+"px","height",this.pluginSize+3+"px","fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","block"])),t||(this.setStyle(this.div,"position absolute right 0px top 0px".split(" ")),this.insertDivInBody(this.div))),this.div&&this.div.parentNode){this.setStyle(a,s.concat(["fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{a.innerHTML=r}catch{}try{this.div.appendChild(a)}catch{}return{span:a,winLoaded:this.winLoaded,tagName:e,outerHTML:r}}return{span:null,winLoaded:this.winLoaded,tagName:"",outerHTML:r}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(e){return'codebase="#version='+e+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(e){var t=this.$,i=null,n=null;if(t.isIE){if(t.isStrNum(e)&&(e=e.split(t.splitNumRegx),3<e.length&&0<parseInt(e[3],10)&&(e[3]="9999"),e=e.join(",")),t.isStrNum(e)&&t.verIE>=this.minIEver&&0<this.canUseIsMin()){this.installed=this.isMin(e),this.getVersionDone=0;return}this.getVersionDone=1,!i&&t.verIE>=this.minIEver&&(i=this.CDBASE2VER(t.codebaseSearch(this))),i||(n=t.getAXO(this.progID))&&n.QuickTimeVersion&&(i=n.QuickTimeVersion.toString(16),i=parseInt(i.charAt(0),16)+"."+parseInt(i.charAt(1),16)+"."+parseInt(i.charAt(2),16))}else t.hasMimeType(this.mimeType)&&(n=t.OS!=3?t.findNavPlugin("QuickTime.*Plug-?in",0):null)&&n.name&&(i=t.getNum(n.name));this.installed=i?1:n?0:-1,this.version=t.formatNum(i,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(e,t){var i=t.split(e.$.splitNumRegx);return[i[0],i[1].charAt(0),i[1].charAt(1),i[2]].join()},null],CDBASE2VER:function(e){var t=this.$,i,n=this.cdbaseUpper,o=this.cdbaseLower;if(e){for(e=t.formatNum(e),i=0;i<n.length;i++)if(n[i]&&0>t.compareNums(e,n[i])&&o[i]&&0<=t.compareNums(e,o[i])&&this.cdbase2ver[i])return this.cdbase2ver[i](this,e)}return e},canUseIsMin:function(){var e=this.$,t,i=this.canUseIsMin,n=this.cdbaseUpper,o=this.cdbaseLower;if(!i.value)for(i.value=-1,t=0;t<n.length;t++){if(n[t]&&e.codebaseSearch(this,n[t])){i.value=1;break}if(o[t]&&e.codebaseSearch(this,o[t])){i.value=-1;break}}return this.SEARCH.match=i.value==1?1:0,i.value},isMin:function(e){return this.$.codebaseSearch(this,e)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var e=function(a){return a&&(a=/[\d][\d,\.\s]*[rRdD]{0,1}[\d,]*/.exec(a))?a[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},t=this.$,i,n=null,o=null,r=null;if(t.isIE){for(i=15;2<i;i--)if(o=t.getAXO(this.progID+"."+i),o){r=i.toString();break}if(o||(o=t.getAXO(this.progID)),r=="6")try{o.AllowScriptAccess="always"}catch{return"6,0,21,0"}try{n=e(o.GetVariable("$version"))}catch{}!n&&r&&(n=r)}else{if(o=t.hasMimeType(this.mimeType),o){i=t.getDOMobj(t.insertHTML("object",["type",this.mimeType],[],"",this));try{n=t.getNum(i.GetVariable("$version"))}catch{}}n||((i=o?o.enabledPlugin:null)&&i.description&&(n=e(i.description)),n&&(n=t.getPluginFileVersion(i,n)))}return this.installed=n?1:-1,this.version=t.formatNum(n),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var e=null,t=null,i=this.$;if(i.isIE){try{t=i.getAXO(this.progID).ShockwaveVersion("")}catch{}i.isString(t)&&0<t.length?e=i.getNum(t):i.getAXO(this.progID+".8")?e="8":i.getAXO(this.progID+".7")?e="7":i.getAXO(this.progID+".1")&&(e="6")}else(t=i.findNavPlugin("Shockwave\\s*for\\s*Director"))&&t.description&&i.hasMimeType(this.mimeType)&&(e=i.getNum(t.description)),e&&(e=i.getPluginFileVersion(t,e));this.installed=e?1:-1,this.version=i.formatNum(e)}},zz:0}};varPluginDetect.initScript();var varErroeMessage1=`The "%%" function requires an even number of arguments.
Arguments should be in the form "atttributeName", "attributeValue", ...`,varEmbedElement=null,varHashChange="iLightBoxHashChange",varDocument=document,varSprite,varEventSpecial=jQuery.event.special,varDocumentMode=varDocument.documentMode,varCanUseSprites="on"+varHashChange in window&&(varDocumentMode===varUnknown||7<varDocumentMode);jQuery.fn[varHashChange]=function(e){return e?this.on(varHashChange,e):this.trigger(varHashChange)};jQuery.fn[varHashChange].delay=50;varEventSpecial[varHashChange]=jQuery.extend(varEventSpecial[varHashChange],{setup:function(){if(varCanUseSprites)return!1;jQuery(varSprite.start)},teardown:function(){if(varCanUseSprites)return!1;jQuery(varSprite.stop)}});varSprite=function(){function e(){var l=fnMakeHashUri(),s=a(n);l!==n?(r(n=l,s),jQuery(window).trigger(varHashChange)):s!==n&&(window.location.href=window.location.href.replace(/#.*/,"")+s),i=setTimeout(e,jQuery.fn[varHashChange].delay)}var t={},i,n=fnMakeHashUri(),o=function(l){return l},r=o,a=o;return t.start=function(){i||e()},t.stop=function(){i&&clearTimeout(i),i=varUnknown},varBrowserDetection.msie&&!varCanUseSprites&&function(){var l,s;t.start=function(){l||(s=(s=jQuery.fn[varHashChange].src)&&s+fnMakeHashUri(),l=jQuery('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){s||r(fnMakeHashUri()),e()}).attr("src",s||"javascript:0").insertAfter("body")[0].contentWindow,varDocument.onpropertychange=function(c){try{c.propertyName==="title"&&(l.document.title=varDocument.title)}catch{}})},t.stop=o,a=function(){return fnMakeHashUri(l.location.href)},r=function(c,h){var u=l.document,d=jQuery.fn[varHashChange].domain;c!==h&&(u.title=varDocument.title,u.open(),d&&u.write('<script>document.domain="'+d+'"<\/script>'),u.close(),l.location.hash=c)}}(),t}();Array.prototype.filter||(Array.prototype.filter=function(e,t){if(this==null)throw new TypeError;var i=Object(this),n=i.length>>>0;if(typeof e!="function")throw new TypeError;for(var o=[],r=0;r<n;r++)if(r in i){var a=i[r];e.call(t,a,r,i)&&o.push(a)}return o});Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){if(this==null)throw new TypeError;var t=Object(this),i=t.length>>>0;if(i===0)return-1;var n=i;for(1<arguments.length&&(n=Number(arguments[1]),n!=n?n=0:n!=0&&n!=1/0&&n!=-(1/0)&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),i=0<=n?Math.min(n,i-1):i-Math.abs(n);0<=i;i--)if(i in t&&t[i]===e)return i;return-1});(function(e){e(()=>{window.csGlobal.rivet.attach("[data-x-element-lightbox]",(t,i)=>{if(!(i.disable||window.csGlobal&&window.csGlobal.isPreview)){var n={skin:"light",overlay:{opacity:i.opacity,blur:!0},styles:{prevScale:i.prevScale,prevOpacity:i.prevOpacity,nextScale:i.nextScale,nextOpacity:i.nextOpacity},path:i.orientation,controls:{thumbnail:i.thumbnails}};i.deeplink&&(n.linkId="gallery-image"),e(i.selector).iLightBox(n)}})})})(window.jQuery)});k();})();
(function(){
let recaptchaWidgets=[];
recaptchaCallback=function(){
let forms=document.getElementsByTagName('form');
let pattern=/(^|\s)g-recaptcha(\s|$)/;
for(let i=0; i < forms.length; i++){
let recaptchas=forms[ i ].getElementsByClassName('wpcf7-recaptcha');
for(let j=0; j < recaptchas.length; j++){
let sitekey=recaptchas[ j ].getAttribute('data-sitekey');
if(recaptchas[ j ].className&&recaptchas[ j ].className.match(pattern)&&sitekey){
let params={
'sitekey': sitekey,
'type': recaptchas[ j ].getAttribute('data-type'),
'size': recaptchas[ j ].getAttribute('data-size'),
'theme': recaptchas[ j ].getAttribute('data-theme'),
'align': recaptchas[ j ].getAttribute('data-align'),
'badge': recaptchas[ j ].getAttribute('data-badge'),
'tabindex': recaptchas[ j ].getAttribute('data-tabindex')
};
let callback=recaptchas[ j ].getAttribute('data-callback');
if(callback&&'function'==typeof window[ callback ]){
params[ 'callback' ]=window[ callback ];
}
let expired_callback=recaptchas[ j ].getAttribute('data-expired-callback');
if(expired_callback&&'function'==typeof window[ expired_callback ]){
params[ 'expired-callback' ]=window[ expired_callback ];
}
let widget_id=grecaptcha.render(recaptchas[ j ], params);
recaptchaWidgets.push(widget_id);
break;
}}
}};
document.addEventListener('wpcf7submit', function(event){
switch(event.detail.status){
case 'spam':
case 'mail_sent':
case 'mail_failed':
for(let i=0; i < recaptchaWidgets.length; i++){
grecaptcha.reset(recaptchaWidgets[ i ]);
}}
}, false);
})();