HEX
Server: Apache
System: Linux digivps 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: www (1000)
PHP: 8.3.15
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/healthyton.com/wp-content/cache/minify/b1da4.js
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>d,speak:()=>p});const n=window.wp.domReady;var o=e.n(n);const i=window.wp.i18n;function a(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let r="";function d(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,i.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&a("assertive"),null===n&&a("polite")}function p(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}o()(d),(window.wp=window.wp||{}).a11y=t})();
;/*!
 * jQuery UI Autocomplete 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
;(function($){'use strict';var selectors={'wrapper':'div[role=search]','form':'form.g1-searchform-ajax','input':'form.g1-searchform-ajax input.search-field','results':'.g1-searches-ajax','seeAll':'.bimber-see-all-results'};g1.ajaxSearch=function(){if(!$.fn.autocomplete){return;}
var minLength=2;$(selectors.input).each(function(){var $input=$(this);var $form=$input.parents(selectors.form);var $wrapper=$input.parents(selectors.wrapper);$input.autocomplete({'appendTo':$form,'delay':500,'minLength':minLength,'source':function(request){var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_search','bimber_term':request.term}});xhr.done(function(res){if(res.status==='success'){$wrapper.find(selectors.results).html(res.html);}});}});$input.on('keyup search',function(){if($(this).val().length<minLength){$wrapper.find(selectors.results).html('');}});$wrapper.on('click',selectors.seeAll,function(e){e.preventDefault();$form.submit();});});};$(document).ready(function(){g1.ajaxSearch();});})(jQuery);;(function($){'use strict';g1.customShareButtons=function(){openCustomSharesInNewWindow();};function openCustomSharesInNewWindow(){$('.mashicon-pinterest, .mashicon-google').click(function(e){var winWidth=750;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if('#'===url){url=$(this).attr('data-mashsb-url');}
window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);e.preventDefault();});}
$('body').on('g1NewContentLoaded',function(){if(typeof lashare_fb=="undefined"&&typeof mashsb!=='undefined'){$('.mashicon-facebook').click(function(mashfb){var winWidth=520;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);mashfb.preventDefault(mashfb);return false;});}
if(typeof mashsb!=='undefined'){$('.mashicon-twitter').click(function(e){var winWidth=520;var winHeight=350;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if(mashsb.twitter_popup==='1'){window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);}
e.preventDefault();return false;});}});})(jQuery);(function($){'use strict';g1.customizeShareButtons=function(){overrideOnOffSwitch();subscribeViaMailbox();};function overrideOnOffSwitch(){var $onoffswitch=$('.onoffswitch');var $onoffswitch2=$('.onoffswitch2');$onoffswitch.off('click');$onoffswitch2.off('click');$onoffswitch.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).hide();$('.secondary-shares',$container).show();$('.onoffswitch2',$container).show();});$onoffswitch2.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).show();$('.secondary-shares',$container).hide();});}
function subscribeViaMailbox(){if(typeof mashsb!=='undefined'&&mashsb.subscribe==='content'){return;}
if(typeof mashsb!=='undefined'&&mashsb.subscribe_url!==''){return;}
$('a.mashicon-subscribe').each(function(){var $link=$(this);if($link.attr('href')==='#'){$link.off('click');var postTitle=$('head > title').text();var postUrl=location.href;var subject=g1.config.i18n.newsletter.subscribe_mail_subject_tpl.replace('%subject%',postTitle);var body=postTitle+'%0A%0A'+postUrl;var mailTo='mailto:?subject={subject}&body={body}';mailTo=mailTo.replace('{subject}',subject);mailTo=mailTo.replace('{body}',body);$link.attr('href',mailTo);}});}})(jQuery);(function($){'use strict';g1.shareBarTopOffsetSelectors=['#wpadminbar'];g1.shareBar=function(){var $shareBar=g1.activateShareBar();$('body').on('g1PageHeightChanged',function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}});enquire.register('screen and ( min-width: 801px )',{match:function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}},unmatch:function(){if($shareBar!==false){g1.updateShareBarPosition($shareBar);}}});};g1.activateShareBar=function(){var $shareBar=$('.g1-sharebar');var $shareButtons=$('.mashsb-main:first');if($shareBar.length===0||$shareButtons.length===0){return false;}
var $shareBarInner=$shareBar.find('.g1-sharebar-inner');if(!$shareBar.is('.g1-sharebar-loaded')){var $clonedShareButtons=$shareButtons.clone(true);if(typeof mashsb!=='undefined'&&mashsb.animate_shares==='1'&&$clonedShareButtons.find('.mashsbcount').length){$clonedShareButtons.find('.mashsbcount').text(mashsb.shares);}
$shareBarInner.append($clonedShareButtons);$shareBar.addClass('g1-sharebar-loaded');g1.updateShareBarPosition($shareBar);}
new Waypoint({element:$('body'),handler:function(direction){if(direction==='down'){$shareBar.addClass('g1-sharebar-on');$shareBar.removeClass('g1-sharebar-off');}else{$shareBar.removeClass('g1-sharebar-on');$shareBar.addClass('g1-sharebar-off');}},offset:function(){return-100;}});return $shareBar;};g1.updateShareBarPosition=function($shareBar){var shareBarWidth=parseInt($shareBar.outerWidth(),10);var cssMediaQueryBreakpoint=800;if(shareBarWidth<=cssMediaQueryBreakpoint){$shareBar.css('top','');}else{var top=0;for(var i=0;i<g1.shareBarTopOffsetSelectors.length;i++){var $element=$(g1.shareBarTopOffsetSelectors[i]);if($element.length>0&&$element.is(':visible')){top+=parseInt($element.outerHeight(),10);}}
$shareBar.css('top',top+'px');}};})(jQuery);(function($){'use strict';g1.loadNextPostConfig={'offset':'500%'};var selectors={'button':'.bimber-load-next-post','urlWaypoint':'.bimber-url-waypoint','elementButton':'.g1-auto-load-button'};g1.loadNextPost=function(){var mainUrl=window.location.href;var autoLoadLimit=g1.config.auto_load_limit;var loadedPosts=0;var loadNextEvent=function(e){e.preventDefault();if(autoLoadLimit>0&&loadedPosts>=autoLoadLimit){$(this).remove();return;}
var $button=$(this);var template='classic';if($('#secondary').length===0){template='row';}
$button.css('position','relative');$button.addClass('g1-collection-more-loading');var postUrl=$('a',this).attr('href');var gaPostUrl=$('a',this).attr('data-bimber-analytics-href');var url=postUrl+'?bimber_auto_load_next_post_template='+template;$('a',this).remove();var xhr=$.get(url);loadedPosts+=1;xhr.done(function(data){var $html=$($.parseHTML(data,document,true));var $content=$html.find('#content');var title=$($content.find('.entry-title')[0]).text();$content.find('#secondary').remove();var $insta=$('script[src="//platform.instagram.com/en_US/embeds.js"]');var mejsLoaded=typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined';if(!mejsLoaded){var matches=data.match(/<script(.|\n)*?<\/script>/g);var mejsCode='';matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){match=match.replace('<script','<script async');mejsCode+=match;}});matches=data.match(/<link(.|\n)*?\/>/g);matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){mejsCode+=match;}});$button.after(mejsCode);}
$button.before('<div class="g1-divider"></div>');$('body').trigger('g1BeforeNewContentReady',[$content]);var $scope=$($content.html()).insertAfter($button);if($insta.length>0){window.instgrm.Embeds.process();}
$button.remove();$('body').trigger('g1NewContentLoaded',[$scope]);if(typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined'){window.wp.mediaelement.initialize();}
if(typeof ga!=='undefined'&&typeof ga.getAll!=='undefined'){ga('create',ga.getAll()[0].get('trackingId'),'auto');ga('set',{location:gaPostUrl,title:title});ga('send','pageview');}
var $nonce=$html.find('#bimber-wpp-nonce');if($nonce.length>0){var nonce=$nonce.attr('data-bimber-wpp-nonce');var postId=$nonce.attr('data-bimber-wpp-id');g1.updatePostViews(nonce,postId);}
bindEvents();});xhr.always(function(){$button.removeClass('g1-collection-more-loading');});};var bindEvents=function(){$(selectors.button).click(loadNextEvent);$(selectors.elementButton).click(function(){window.history.replaceState({},'',mainUrl);});$(selectors.button).waypoint(function(direction){if('down'===direction){$(selectors.button).trigger('click');}},{offset:g1.loadNextPostConfig.offset});$(selectors.urlWaypoint).waypoint(function(direction){var $waypoint=$(this.element);if('up'===direction){var $waypointUp=$waypoint.parent('article').prev('.bimber-url-waypoint');if($waypointUp.length>0){$waypoint=$waypointUp;}}
var url=$waypoint.attr('data-bimber-post-url');var title=$waypoint.attr('data-bimber-post-title');var currentUrl=window.location.href;if(url!==currentUrl){var $article=$waypoint.next('article');var $mashShare=$('.mashsb-container',$article);var $shareBar=$('.g1-sharebar .g1-sharebar-inner');if($mashShare.length>0&&$.trim($shareBar.html())){$shareBar.html($mashShare[0].outerHTML);}
var $essbShare=$('.essb_topbar_inner',$article);var $essbBar=$('.essb_topbar_inner');if($essbShare.length>0&&$.trim($essbBar.html())){$essbBar.html($essbShare[0].outerHTML);}
g1.customizeShareButtons();window.history.replaceState({},'',url);document.title=title;}});};bindEvents();};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comments','tabs':'.g1-tab-items > li','tab':'.g1-tab-item','currentTab':'.g1-tab-item-current','commentType':'.g1-comment-type'};var classes={'currentTab':'g1-tab-item-current','currentType':'g1-tab-pane-current','type':'g1-tab-pane','loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;g1.comments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length===0){return;}
if($wrapper.find('.cace-comments').length>0){return;}
g1.facebookComments();g1.disqusComments();initTabs();};var initTabs=function(){var $tabs=$wrapper.find(selectors.tabs);var currentType=$tabs.filter(selectors.currentTab).attr('data-bimber-type');if(!currentType){var types=g1.config.comment_types;if(types&&types.length>0){currentType=types[0];}else{currentType='wp';}}
$wrapper.find(selectors.commentType).each(function(){var $type=$(this);$type.addClass(classes.type);});if('dsq'===currentType){setTimeout(function(){selectTab(currentType);},1000);}else{selectTab(currentType);}
$tabs.on('click',function(){var type=$(this).attr('data-bimber-type');selectTab(type);});};var selectTab=function(type){var $tab=$wrapper.find(selectors.tab+'-'+type);var $type=$wrapper.find(selectors.commentType+'-'+type);if('fb'===type){if(!$type.hasClass(classes.loaded)){$type.addClass(classes.loading);}}
$wrapper.find(selectors.commentType).removeClass(classes.currentType);$type.addClass(classes.currentType);$type.trigger('loadComments');$wrapper.find(selectors.tabs).removeClass(classes.currentTab);$tab.addClass(classes.currentTab);};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-fb','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-fb'};var classes={'loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;var loaded=false;g1.facebookComments=function(){$wrapper=$(selectors.wrapper);if(!$wrapper.is('.g1-on-demand')){loaded=true;}
if($wrapper.length>0){init();return $wrapper;}else{return false;}};var init=function(){var origFbAsyncInit=window.fbAsyncInit;window.fbAsyncInit=function(){if(typeof FB==='undefined'){return;}
FB.Event.subscribe('xfbml.render',function(){$wrapper.removeClass(classes.loading);$wrapper.addClass(classes.loaded);var $counter=$wrapper.find(selectors.counter);var url=$counter.find('.fb_comments_count').attr('data-bimber-graph-api-url');FB.api('/'+url,'GET',{'fields':'engagement'},function(response){if(response.engagement){var count=response.engagement.comment_plugin_count;$('.fb_comments_count').html(count);}});var realCount=parseInt($counter.find('.fb_comments_count').text(),10);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);if(realCount!==postCount){save(realCount);}});FB.Event.subscribe('comment.create',function(){changeCommentsNumber(1);});FB.Event.subscribe('comment.remove',function(){changeCommentsNumber(-1);});if(typeof origFbAsyncInit==='function'){origFbAsyncInit();}};$wrapper.on('loadComments',function(){if(loaded){return;}
$wrapper.addClass(classes.loading);loadComments(function(html){g1.resetFacebookSDK();$wrapper.find(selectors.list).html(html);$wrapper.removeClass(classes.loading);});});};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);postCount+=diff;$wrapper.find('.fb_comments_count').text(postCount);$counter.attr('data-bimber-fb-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $fbCount=$(selectors.tab).find('a > span');if($fbCount.length>0){var fbCount=parseInt($fbCount.text(),10);$fbCount.text(fbCount+diff);}
save(postCount);};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_update_fb_comment_count','post_id':postId,'security':nonce,'count':newCount}});};var loadComments=function(callback){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'data':{'action':'bimber_load_fbcommentbox','post_id':postId}});xhr.done(function(res){callback(res);loaded=true;});};})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-dsq','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-dsq'};var classes={'loading':'g1-loading'};var $wrapper;var loaded=false;g1.disqusComments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length>0){init();return $wrapper;}else{return false;}};var init=function(){var origDsqConfig=window.disqus_config;window.disqus_config=function(){if(typeof origDsqConfig==='function'){origDsqConfig();$wrapper.removeClass(classes.loading);loaded=true;}
var $counter=$wrapper.find(selectors.counter);var realCount=parseInt($counter.find('.disqus-comment-count').text(),10);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);if(realCount!==postCount){save(realCount);}
this.callbacks.onNewComment=[function(){changeCommentsNumber(1);}];};$wrapper.on('loadComments',function(){if(loaded){return;}
$wrapper.addClass(classes.loading);loadComments();});};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);postCount+=diff;$wrapper.find('.disqus-comment-count').text(postCount);$counter.attr('data-bimber-dsq-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $dsqCount=$(selectors.tab).find('a > span');if($dsqCount.length>0){var dsqCount=parseInt($dsqCount.text(),10);$dsqCount.text(dsqCount+diff);}
save(postCount);};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_dsq_update_comment_count','post_id':postId,'security':nonce,'count':newCount}});};var loadComments=function(){var dsq=document.createElement('script');dsq.type='text/javascript';dsq.async=true;dsq.src='https://'+disqus_shortname+'.disqus.com/embed.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(dsq);};})(jQuery);(function($){'use strict';$(document).ready(function(){g1.customShareButtons();g1.customizeShareButtons();if(g1.config.sharebar==='on'){g1.shareBar();}
g1.comments();g1.loadNextPost();});})(jQuery);;(function($){"use strict";$(document).ready(function(){});$(window).load(function(){});})(jQuery);;(function($){'use strict';g1.backToTop=function(){var $scrollToTop=$('.g1-back-to-top');toggleVisibility($scrollToTop);$scrollToTop.on('click',function(e){e.preventDefault();var multipier=200;var durationRange={min:200,max:1000};var winHeight=$(window).height();var docHeight=$(document).height();var proportion=Math.floor(docHeight/winHeight);var duration=proportion*multipier;if(duration<durationRange.min){duration=durationRange.min;}
if(duration>durationRange.max){duration=durationRange.max;}
$('html, body').animate({scrollTop:0},duration);});$(window).scroll(function(){window.requestAnimationFrame(function(){toggleVisibility($scrollToTop);});});};function toggleVisibility($scrollToTop){if($(window).scrollTop()>240){$scrollToTop.addClass('g1-back-to-top-on').removeClass('g1-back-to-top-off');}else{$scrollToTop.addClass('g1-back-to-top-off').removeClass('g1-back-to-top-on');}}
$(document).ready(function(){g1.backToTop();});})(jQuery);